Choosing the right parser for parsing C headers

Thomas Heller theller at python.net
Tue Feb 8 06:22:51 EST 2005


"Jean  de Largentaye" <jlargentaye at gmail.com> writes:

> Hi,
>
> I need to parse a subset of C (a header file), and generate some unit
> tests for the functions listed in it. I thus need to parse the code,
> then rewrite function calls with wrong parameters. What I call "shaking
> the broken tree" :)

IMO, for parsing 'real-world' C header files, nothing can beat gccxml.

Thomas



More information about the Python-list mailing list