Python code to parse and inspect c++
c++, python
Solution
In the past I've used for such purposes gccxml (a C++ parser that emits easily-parseable XML) -- I hacked up my own Python interfaces to it, but now there's a pygccxml which should package that up nicely for you.
Problem
Is there a library for Python that will allow me to parse c++ code? For example, let's say I want to parse some c++ code and find the names of all classes and their member functions/variables. I can think of a few ways to hack it together using regular expressions, but if there is an existing library it would be more helpful.