TypeScript interface of loquat, a monadic parser combinator library for JavaScript.
# npm
npm i https://github.com/susisu/typed-loquat
# yarn
yarn add https://github.com/susisu/typed-loquat
You can find some parser examples in examples
directory:
json.ts
: simple JSON parsers_exp.ts
: S-expression parser, using Haskell'sdo
like notation with generatorscalc.ts
: calculator, using expression parser generatorlambda.ts
: lambda-expression parser, using token parser generator