Expression parsing in C
Is there a tool that helps you visualise how a C expression i开发者_JAVA技巧s parsed. In other words can someone see the expression tree
You can give ANTLR a try, it has a nice front-end(ANTLRWorks) for visualization and there is a c99 for it avialable from the same site.
It will probably take a little work to visual things as you want them, but all the tools are already there.
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.
精彩评论