O'Reilly logo

The Definitive ANTLR 4 Reference, 2nd Edition by Terence Parr

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Generating a Call Graph

Software is hard to write and maintain, which is why we try to build tools to increase our productivity and effectiveness. For example, over the past decade we’ve seen an explosion of testing frameworks, code coverage tools, and code analyzers. It’s also nice to see a class hierarchy visually as a tree, and most development environments support this. The other visualization I like is called a call graph, which has functions as nodes and function calls as directed edges between the nodes.

In this section, we’re going to build a call graph generator using the Cymbol grammar from Parsing Cymbol. I think you’ll be surprised at how simple it is, especially given how cool the results are. To give you an idea of what we’re ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required