Parser Generator for JavaScript: PEG.JS
PEG.js is a parser generator for JavaScript based on the parsing expression grammar formalism.
It enables you to easily build fast parsers which process complex data or computer languages. You can use it as an underlying tool when writing various data processors, transformers, interpreters, or compilers.
Features
- Simple and expressive grammar syntax
- No separate lexical analysis step — both lexical and syntactical analysis are handled by one tool
- Handles wide class of grammars (superset of LL(k) and LR(k))
- Precise and human-friendly error reporting
Both the parser generator and generated parsers should run well in all major browsers: IE6+, Firefox, Chrome, Safari, Opera and Rhino.
the link is broken, it needs to be without “www.”.
( http://pegjs.majda.cz/ will do the job.)
karfau
Thanks karfau! the link is fixed now!