Home

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