A parser generator for JavaScript.
Jison produces a parser from a context-free grammar.
Highlights:
- Close compatibility with
bison
,lex
andyacc
grammars for lexer and parser definitions. - As the parsers it generates are plain JavaScript, they can be embedded in a web page executing inside the browser (similarly to OmetaJS, in that regard).
Resources:
- Project page at GitHub
- Online demo
- jison-lex - If you need just the lexer/scanner/flex part.
Note:
There is the original Jison (AKA Vanilla Jison) that has not been updated lately and the GitHub GerHobbelt fork that is actively maintained.