pathxp 0.3.0 copy "pathxp: ^0.3.0" to clipboard
pathxp: ^0.3.0 copied to clipboard

Like regular expressions but for defining paths in a grid

Pathxp #

style: very good analysis Powered by Mason License: MIT

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.

Online editor #

A simple online editor where you can test expressions is available at: https://erickzanardo.github.io/pathxp/


1
likes
150
pub points
88%
popularity

Publisher

unverified uploader

Like regular expressions but for defining paths in a grid

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on pathxp