Is there a tool that helps you visualise how a C expression is parsed. In other words can someone see the expression tree
Asked
Active
Viewed 305 times
4
-
Are you looking for a C expression parser *in C* or will any language do? – Matti Virkkunen Jul 29 '11 at 08:33
-
1Any language would do, although a GUI showing the expression tree would be fantastic. – shreyasva Jul 29 '11 at 08:34
-
1possible duplicate of [AST from C code](http://stackoverflow.com/questions/239722/ast-from-c-code) – Aaron Digulla Jul 29 '11 at 08:34
-
2I doubt that this is a duplicate of [AST From C Code](http://stackoverflow.com/questions/239722/ast-from-c-code). This question explicitly asks about **visualization** (of the AST), the other does not. The OP might want to indicate this by adjusting the question's title. – Christian.K Aug 08 '11 at 08:11
2 Answers
0
Take a look at ROSE. I have found that making it work was a bit cumbersome -- not the easiest piece of software to build from sources, and I doubt they have a binary release. There are a set of tools and library support for making pdf/graphviz dump of the AST. And then there's a tool called roseQt which you might find useful.

sajith
- 59
- 1
- 4