pyPEG 2.15 released

Volker Birk bumens at dingens.org
Fri Jan 10 11:35:03 CET 2014


pyPEG now supports adding feeble things to the AST like automatically
removed comments or whitespace.

pyPEG is a quick and easy solution for creating a parser in Python
programs. pyPEG uses a PEG like language in Python data structures to
parse, so it can be used dynamically to parse nearly every context free
language. The output is a plain Python data structure called pyAST, or,
as an alternative, XML.

pyPEG implements an intrinsic Packrat parser. Memoization is used for
performance improvements. pyPEG is used by defining a data model with a
grammar. Therefore it cannot only be used to parse text, but to compose
text out of the language model, too. It can be used for code generation.

You can find pyPEG2 in the PyPI repository. The homepage is here:
<http://fdik.org/pyPEG>. pyPEG is maintained in a Bitbucket repository
at <https://bitbucket.org/fdik/pypeg/>.

Yours,
VB.
-- 
"Back when PHP had less than 100 functions and the function hashing mechanism
was strlen(). In order to get a nice hash distribution of function names
across the various function name lengths names were picked specifically to
make them fit into a specific length bucket."  (Rasmus Lerdorf)


More information about the Python-announce-list mailing list