Is there a python library to parse C++ code file?

A

Allerdyce.John

Is there a python library to parse C++ code file?
If yes, can you please tell me where is it?

Thank you.
 
F

Fredrik Lundh

Is there a python library to parse C++ code file?
If yes, can you please tell me where is it?

depends on how you want to parse the file, and what information you
want to extract. without more details, I'd recommend

http://www.gccxml.org/HTML/Index.html

combined with some python xml library, e.g.

http://www.effbot.org/zone/element-index.htm
http://www.effbot.org/zone/element-iterparse.htm

which gives you something like:

http://www.boost.org/libs/python/pyste/

which might be a good thing to look at before you start ...

or maybe you had something much simpler in mind ?

</F>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,125
Latest member
VinayKumar Nevatia_
Top