Post Format

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.

Parser Generator for JavaScript

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.





2 comments

  1. the link is broken, it needs to be without “www.”.
    ( http://pegjs.majda.cz/ will do the job.)

    karfau

    Reply

Leave a Reply

Required fields are marked *.


four − = 0