RE: Readable AST Tree
"Sam Edwards" <[email protected]> Tue, 23 May 2006 06:35:07 -0700
| Newsgroups | gmane.comp.gcc.gnat |
|---|---|
| Message-ID | <8482053CF4711D4FA16E34926CB145A70306D0B8@ehost010-7.exch010.intermedia.net> |
This is a multi-part message in MIME format. --===============1227505469== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C67E6D.B4BEF2B9" This is a multi-part message in MIME format. ------_=_NextPart_001_01C67E6D.B4BEF2B9 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_01C67E6D.B4BEF2B9 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 dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff size=3D2> <DIV><FONT face=3DArial size=3D2><SPAN class=3D674000313-22052006> <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=20 Edwards</SPAN></FONT></DIV></SPAN></FONT></DIV></FONT></DIV></BODY></HTML= > ------_=_NextPart_001_01C67E6D.B4BEF2B9-- --===============1227505469== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnat mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gnat --===============1227505469==--