Parsing C Preprocessor files

Peter Hansen peter at engcorp.com
Wed Jun 23 14:32:08 CEST 2004


Bram Stolk wrote:

> What could I use to parse CPP macros in Python?
> I tried the Parnassus Vaults, and python lib docs, but could not
> find a suitable module.

Does it really need to be in Python?  There are probably
dozens of free and adequate macro preprocessors out there
already.

(You might also want to clarify what you mean by "parse"
in this case... do you mean actually running the whole
preprocessor over an input file and expanding all macros,
or do you mean something else?)

-Peter



More information about the Python-list mailing list