开发者

Expression parsing in C

开发者 https://www.devze.com 2023-03-24 06:13 出处:网络
Is there a tool that helps you visualise how a C expression i开发者_JAVA技巧s parsed. In other words can someone see the expression treeYou can give ANTLR a try, it has a nice front-end(ANTLRWorks) fo

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号