470,586 Members | 1,610 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,586 developers. It's quick & easy.

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

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

Thank you.

Mar 17 '06 #1
2 1459
Al************@gmail.com wrote:
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>

Mar 17 '06 #2
On 3/17/06, Fredrik Lundh <fr*****@pythonware.com> wrote:
Al************@gmail.com wrote:
Is there a python library to parse C++ code file?
If yes, can you please tell me where is it?


pygccxml.

http://www.language-binding.net/pygccxml/pygccxml.html

Very powerful package :-)! It has built-in support for type analisys,
cache and ....
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
Mar 17 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

220 posts views Thread by Brandon J. Van Every | last post: by
2 posts views Thread by martino | last post: by
68 posts views Thread by Lad | last post: by
reply views Thread by Kurt B. Kaiser | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.