loquat
v2.0.0
Published
Monadic parser combinator
Downloads
16
Maintainers
Readme
loquat
Monadic parser combinator library for JavaScript, inspired by (and almost clone of) Parsec.
Features
- Construct complex parser from simple parsers and combinators
- Friendly syntax using generators, like do-notation in Haskell
- Expression parser builder
- Regular expression parser
- Unicode aware
- Extensions
Install
npm i --save loquat
Examples
- json.js: JSON parser
- json_generators.js: JSON parser, using do-notation with generators
- calc.js: Simple calculator, an example of expression parser builder
License
Author
Contributing
Issues and pull requests are welcome! Please read contributing guidelines first when you make a contribution.