pathxp 0.4.0
pathxp: ^0.4.0 copied to clipboard
Like regular expressions but for defining paths in a grid
Pathxp #
Like regular expressions but for defining paths in a grid

Installation 💻 #
❗ In order to start using Pathxp you must have the Dart SDK installed on your machine.
Install via dart pub add:
dart pub add pathxp
Using it #
pathxp have a very simple syntax, between {}, you can use T (top), B (bottom), L (left)
or R (right), separated by ,, to define a path.
For example:
{T, L, B}
Represents a path goes up, left and finally, bottom.
To define multiples steps in the same direction, a number can be added in front of the direction symbol:
{2T, L, 3B}
This expression means two steps up, one left and 3 down.
Modifiers #
Paths can also have modifiers, which is meant to define metadata about a path, they are done
by adding their special identifier at the beginning of the expression, like [modifiers]{...}.
Available modifiers:
- Repeating (
R): Means that the path should repeat. - Infinite (
I): Means that the path start again when it ends..
Online editor #
A simple online editor where you can test expressions is available at: https://erickzanardo.github.io/pathxp/