From: "Marc A. Criley" <mcNOSPAM@mckae.com>
Subject: Re: Can I get access to an AST of parsed ADA code?
Date: Tue, 23 May 2006 15:40:15 -0500
Date: 2006-05-23T15:40:15-05:00 [thread overview]
Message-ID: <1017f$4473732d$45491254$31569@KNOLOGY.NET> (raw)
In-Reply-To: <1148411956.791815.32040@j33g2000cwa.googlegroups.com>
ssaammee@gmail.com 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
next prev parent reply other threads:[~2006-05-23 20:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-23 19:19 Can I get access to an AST of parsed ADA code? ssaammee
2006-05-23 20:40 ` Marc A. Criley [this message]
2006-05-24 13:56 ` idbaxter
2006-05-24 17:16 ` Marc A. Criley
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox