Representation of C # 3 code as an abstract syntax tree in XML

I was wondering if there is something similar to GCC_XML for C # 3; basically a way of representing the entire syntactic structure of a program in XML.

After creating the view, I was hoping to parse it into an XDocument and interpret or query it from there.

Are there any tools for this?

+3
source share
1 answer

Our DMS Software Reengineering Toolkit can do this with C # 2/3/4 . (EDIT 2014: and now C # 5)

DMS has exact compiler parsers for C # (as well as Java and many other languages).

, . AST node file/line/column , node, API DMS. , . DMS AST AST; .

XML AST, node, ( ) . :

 run DMSDomainParser ++XML  <path_to_your_file>

DMS : , ( , ), -.

, , , C, COBOL Java; #.

DMS , XML .

+1

All Articles