JSPM

prscombinator

0.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q16908F
  • License MIT

parser combinator library, produces recursive descent PEG parser. returns an abstract syntax tree as return value. Usable from both nodejs and browser

Package Exports

  • prscombinator
  • prscombinator/prs.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (prscombinator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

prs.js - A small Javascript module for building parser combinators

A module to build parser combinators prs.js - the resulting parser is a top-down parser, also known a parsing expression parser PEG

This is a standalone script, you can use it both with nodejs and in a browser.

Installation

npm i prscombinator

or download library file from github: link

See the package page on npm

Documentation & Examples

See the generated documentation

See example usage in test test

Also the PYX interpreter/shell is using this parser generator. here