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

Discussion in 'Python' started by Allerdyce.John@gmail.com, Mar 17, 2006.

  1. Guest

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

    Thank you.
    , Mar 17, 2006
    #1
    1. Advertising

  2. 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>
    Fredrik Lundh, Mar 17, 2006
    #2
    1. Advertising

  3. Roman Yakovenko, Mar 17, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Reese
    Replies:
    3
    Views:
    657
    John Reese
    Jan 21, 2005
  2. Paul Boddie
    Replies:
    0
    Views:
    417
    Paul Boddie
    Jan 21, 2005
  3. kuangye
    Replies:
    3
    Views:
    528
    Philip Semanchuk
    Mar 13, 2011
  4. kuangye
    Replies:
    0
    Views:
    214
    kuangye
    Mar 13, 2011
  5. kuangye
    Replies:
    5
    Views:
    782
Loading...

Share This Page