Projects / pyPEG

pyPEG

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
Licenses
Implementation

RSS Last announcement

pyC11 published 05 May 2013

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 ...

RSS Recent releases

Release Notes: This release supports keeping automatically-removed feeble things in the AST, like whitespace or comments.

Release Notes: This maintenance release fixes some small bugs which occurred when Symbol.check_keywords = True and adds the omit() function.

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.

Screenshot

Project Spotlight

Efax-gtk

A GUI frontend for the efax fax program.

Screenshot

Project Spotlight

check_tfl

A Nagios check for Transport For London services.