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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access