Parsing C code with Python

M.-A. Lemburg mal at lemburg.com
Sat Jun 16 19:14:06 EDT 2001


Stéphane BAUSSON wrote:
> 
> Hello,
> 
> I am interested by examples of program parsing C code. The C code generates
> raw data, and these raw data I want to parse them after with python to
> display the data in something meaning full for human.
> 
> The problem is how to analyze the C code, with the struct, union, etc ....
> 
> If somebody has some idea ...

You should check out the partial C parser in Tools/scripts/fixcid.py
which is included in the Python source distribution.

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                        http://www.lemburg.com/python/




More information about the Python-list mailing list