Is there a better way of doing this?

Roman Yakovenko roman.yakovenko at gmail.com
Sun May 29 08:56:19 EDT 2005


On 5/29/05, Cyril BAZIN <cyril.bazin at gmail.com> wrote:
> Hi,
>  
>  I don't know very well what you want to do, but if you want to parse c++,
> take a look at "GCC-XML python" (http://www.gccxml.org) and the python
> binding (http://pygccxml.sourceforge.net/). These tools
> translate c++ code to XML. Then, you can parse xml with your favorite tools
> and find the namespaces for example...

Small correction: pygccxml does not translate C++ to xml. The purpose
of pygccxml is to read file generated by GCC-XML and provide simple
framework to navigate C++ declarations using python classes.

Roman



More information about the Python-list mailing list