Is it possible to generate an AST from IL code? There are only questions regarding translation of source code (c#/vb) to ASTs (link)
Asked
Active
Viewed 421 times
2
-
Sure, you could take the output of a disassembler and parse it. – Hans Passant Jun 13 '12 at 13:35
-
This doesn't seem like a very interesting thing to do. What will you get out having ASTs for IL? I'd think you'd want something closer to a data flow graph or triples. – Ira Baxter Jun 13 '12 at 14:48
1 Answers
3
Have a look at the CCI project on CodePlex.
This is the same framework behind Microsoft Roslyn.

leppie
- 115,091
- 17
- 196
- 297