views:

155

answers:

3
A: 

You could take a look at Elsa. It can output an XML AST for a C or C++ source file. http://scottmcpeak.com/elkhound/

Richard Pennington
+1  A: 

The DMS Software Reengineering Toolkit has production quality C and C++ parsers (and Java, C#, COBOL, PHP, many others), and can emit XML representing the AST.

Ira Baxter
+1  A: 

srcML does this.

andrew