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 the initial upload. The grammar is incomplete. Parsing C expressions works, but parsing complete C programs does not work yet.
pyC11 is meant to be used for parsing, modifying and generating C expressions and programs. It is a real world sample how to use pyPEG. pyC11 is provided under the GNU GPL 2.0.
You can find pyC11 on Bitbucket at https://bitbucket.org/fdik/pyc11.