Menu

GNAT Parser

2006-05-22
2012-09-15
  • Nobody/Anonymous

    Hello All,

    I have legacy ADA and C++ code, and I need to export this code into an XML format so I can create a tool to analyze and work with it. I tried various tree-dump-* commands with g++ and didn't find anything that looked to be read-able or anything that was at a high level like my code (GIMPLE was much to low level for me because I want to maintain variable names and such).

    Is there a way I can access the parser for either C++ or ADA so that I can access a high level parsed version of my code? If not, can a parser dump command be recommended?

    Any help would be appreciated!

    Thank you,
    -Sam Edwards
    Sedwards At Harmonia Dot Com

     
    • Nobody/Anonymous

      Thank you, Google Groups helped a lot.

       
    • Martin Krischik

      Martin Krischik - 2006-05-23

      While "Open Discussion" is by definition never off topic I would suggest you ask that questions somewhere else - like for example comp.lang.ada.

      http://groups.google.com/group/comp.lang.ada

      Not that we don't want to help but you will get a far wider audience there then here and prehaps better responce there.

      With Regards

      Martin

      PS: Ada is named after Augusta Ada King, Countess of Lovelace [1]. ADA [2] is the American Dental Association.

      [1] http://en.wikipedia.org/wiki/Ada_Lovelace
      [2] http://en.wikipedia.org/wiki/ADA

       

Log in to post a comment.