[Baypiggies] C++ parsing in Python for testing backward compatibility

Drew Perttula drewp at bigasterisk.com
Fri Feb 29 06:59:09 CET 2008


William Deegan wrote:

> Not necessarily a python solution, but..
> Can you use cppunit to craft the suite of tests?
> Also I think boost has a c++ parser, and there's a python layer for boost.
> (Though I'm not sure it hooks into the boost c++ parser).
> 

Another one that might help is synopsis:

   http://synopsis.fresco.org/

I looked into GCC-XML at one point, but I think it only does prototypes. 
I wanted the whole parse tree, so I could look for where people called 
functions, a la cscope. Ideally, I'd have a python interface to the 
cscope database :)


More information about the Baypiggies mailing list