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|
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 Python. The grammar supports Python 2.7 and 3.x. The test bench requires py.test. This is an initial upload. The grammar is incomplete. Parsing C expressions works, but parsing complete C programs does not work yet. The Freecode page: https://freecode.com/projects/pyc11 The Bitbucket repository: https://bitbucket.org/fdik/pyc11
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.