Readable AST Tree
"Sam Edwards" <[email protected]> Mon, 22 May 2006 06:19:42 -0700
| Newsgroups | gmane.comp.gcc.g++.general,gmane.comp.gcc.gnat |
|---|---|
| Message-ID | <8482053CF4711D4FA16E34926CB145A70306D0B5@ehost010-7.exch010.intermedia.net> |
This is a multi-part message in MIME format. --===============1195595718== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C67DA2.631DB73C" This is a multi-part message in MIME format. ------_=_NextPart_001_01C67DA2.631DB73C Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable 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). =20 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 ------_=_NextPart_001_01C67DA2.631DB73C Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <META content=3D"MSHTML 6.00.5346.5" name=3DGENERATOR></HEAD> <BODY> <DIV><FONT face=3DArial size=3D2><SPAN class=3D674000313-22052006>Hello = All,<BR><BR>I=20 have legacy ADA and C++ code, and I need to export this code into = an XML=20 format so I can create a tool to analyze and work with it. I tried = various=20 tree-dump-* commands with g++ and didn't find anything that looked = to be=20 read-able or anything that was at a high level like my code (GIMPLE was = much to=20 low level for me because I want to maintain variable names and=20 such). <BR><BR>Is there a way I can access the parser for = either C++=20 or ADA so that I can access a high level parsed version of my = code? =20 If not, can a parser dump command be recommended?<BR><BR>Any help = would be=20 appreciated!<BR><BR>Thank you,<BR>-Sam = Edwards</SPAN></FONT></DIV></BODY></HTML> ------_=_NextPart_001_01C67DA2.631DB73C-- --===============1195595718== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gplusplus mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gplusplus --===============1195595718==--