Grako 3.7.0 released
Juancarlo Añez
juancarlo.anez at gmail.com
Thu Mar 10 16:31:37 EST 2016
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.
In this release:
* Added suport for `constant` expressions which don't consume any input yet
return the specified constant.
* Now an empty closure ({}) consumes no input and generates an empty list
as AST.
* Removed the --binary command-line option. It went unused, it was
untested, and it was incorrectly implemented.
* Generated parsers pass on KeyboardInterrupt.
* Moved the bulk of the entry code for generated parsers to
util.generic_main(). This allows for the verbose code to be verified by the
usual tools.
* Deprecate {e}* and {e}- by removing them from the documentation.
* Added the Python-inspired join operator, s.{e}, as a convenient syntax
for parsing sequences with separators.
Links:
https://pypi.python.org/pypi/grako/
https://bitbucket.org/apalala/grako/
--
Juancarlo *Añez*
tel:+58(414)901-2021
skype:juancarloanez
More information about the Python-announce-list
mailing list