An extension module to Parsimmon
to add Parsec-like combinators.
This introduces following combinators:
- endBy
- endBy1
- many1
- manyTill
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;');