shreyasva
shreyasva

Reputation: 13456

Expression parsing in C

Is there a tool that helps you visualise how a C expression is parsed. In other words can someone see the expression tree

Upvotes: 4

Views: 324

Answers (2)

sajith
sajith

Reputation: 71

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.

Upvotes: 0

Necrolis
Necrolis

Reputation: 26171

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.

Upvotes: 2

Related Questions