Re: Can I get access to an AST of parsed ADA code?



ssaammee@xxxxxxxxx wrote:
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?

For C++ you can use GCC_XML from http://www.gccxml.org/HTML/Index.html, and for Ada you have ASIS2XML, http://www.pushface.org/asis2xml.

For Ada the code will have to be compilable by a version of GNAT with its corresponding ASIS implementation.

-- Marc A. Criley
-- McKae Technologies
-- www.mckae.com
-- DTraq - XPath In Ada - XML EZ Out
.



Relevant Pages

  • Can I get access to an AST of parsed ADA code?
    ... 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. ... looked to be read-able or anything that was at a high level like my ... Is there a way I can access the parser for either C++ or ADA so that I ...
    (comp.lang.ada)
  • Re: Char type verification
    ... Ludovic> from Ada's nature as a high level language, ... Good point - however not specific to Ada. ... requested by a client to implement a solution (whether network design, ... that people will misunderstand or misread it. ...
    (comp.lang.ada)
  • Re: Larger matrices
    ... How extremely high level! ... Declarative languages are notably ... What if the language, like Ada, does not specify ... Domain-specific languages are of very low level, ...
    (comp.lang.ada)
  • Re: Teaching programming (was: Java)
    ... Ada has been successfully used as an introductory language. ... The high level language provides high level ... I am not sure why you think I/O is not integrated in Ada. ...
    (comp.programming)
  • Re: ADA Popularity Discussion Request
    ... > with an Ada program that does the same thing. ... APL program easier to read. ... Concise mathematical notation makes it possible to reason ... about mathematical objects at a high level. ...
    (comp.lang.ada)