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.
19/01/2011 @ 03:48
the link is broken, it needs to be without “www.”.
( http://pegjs.majda.cz/ will do the job.)
karfau
20/01/2011 @ 01:03
Thanks karfau! the link is fixed now!