From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_20,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,65f843fd61eafb22,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!j33g2000cwa.googlegroups.com!not-for-mail From: "ssaammee@gmail.com" Newsgroups: comp.lang.ada Subject: Can I get access to an AST of parsed ADA code? Date: 23 May 2006 12:19:16 -0700 Organization: http://groups.google.com Message-ID: <1148411956.791815.32040@j33g2000cwa.googlegroups.com> NNTP-Posting-Host: 206.158.107.22 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1148411962 13648 127.0.0.1 (23 May 2006 19:19:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 23 May 2006 19:19:22 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: j33g2000cwa.googlegroups.com; posting-host=206.158.107.22; posting-account=D2MLxQ0AAACKO-0N8L4vuZQItFLx7Irs Xref: g2news2.google.com comp.lang.ada:4383 Date: 2006-05-23T12:19:16-07:00 List-Id: 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