pyPEG is a quick and easy solution for creating a parser in Python programs. pyPEG uses a PEG 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.
| Tags | Scientific/Engineering Mathematics Software Development Code Generators Compilers Interpreters Text Processing Linguistic parsing Parsing Expression Grammar |
|---|---|
| Licenses | GPLv2 |
| Implementation | Python |
Last announcement
pyC11 is a grammar to parse programs in the C programming language following ISO/IEC 9899:2011. It is written using pyPEG, a parsing framework for ...
Recent releases


Release Notes: Feature enhancements are provided, like a method for memory cache clearing and improving composing and text representation. Some small bugs are fixed.


Release Notes: This release adds the ability to have class int as grammar, supporting optional attributes in xml2thing() and thing2xml().


Release Notes: Implements a portable way to have new style function declarations without syntax errors in Python 2.7. Extends the synopsis of the csl() function. Minor documentation enhancements. Code cleanup.


Release Notes: This release adds documentation updates.


Release Notes: This release fixes a bug with a case mismatch of module names in setup.