parsimmon-addon-combinators
v0.2.0
Published
An Parsimmon addon to add new combinators on.
Downloads
2
Readme
Parsimmon Combinators Add-on
An extension module to Parsimmon
to add Parsec-like combinators.
API
This introduces following combinators:
- endBy
- endBy1
- many1
- manyTill
Usage
Install via npm
or yarn
.
npm install parsimmon-addon-combinators
Then, import this after parsimmon.
import * as P from 'parsimmon';
import 'parsimmon-addon-combinators';
P.any.endBy1(P.string(';')).parse('a;b;c;');