It is important to note that Chevrotain is NOT a parser generator. It solves the same kind of problems as a parser generator, just without any code generation. Chevrotain Grammars are pure code which can be created/debugged/edited as any other pure code without requiring any new tools or processes.
npm install chevrotain
The npm package contains Chevrotain as concatenated and minified files ready for use in a browser.
These can also be accessed directly via UNPKG in a script tag.
- Explicit version number:
Documentation & Resources
There is a single dependency to regexp-to-ast library. This dependency is included in the bundled artifacts, for ease of consumption in browsers.
The CI build runs the tests under:
- Node.js (6 / 8 / 10).
- Latest stable: Chrome, FireFox, Safari, IE Edge and IE 11.
Uses UMD to work with common module loaders (browser global / amd / commonjs).
Contributions are greatly appreciated. See CONTRIBUTING.md for details.
Some interesting samples: