Grako (for grammar compiler) is a tool that takes grammars in a variation of EBNF as input, and outputs memoizing (Packrat) PEG parsers in Python.

Grako is different from other PEG parser generators in that the generated parsers use Python's very efficient exception-handling system to backtrack. Grako generated parsers simply assert what must be parsed; there are no complicated if-then-else sequences for decision making or backtracking.

Requires: 2.7+, 3.3+, PyPy

Grako (last edited 2014-06-05 05:14:39 by UcheOgbuji)

Unable to edit the page? See the FrontPage for instructions.