Program static analysis with ANTLR
Posted on Mon 29 March 2021 in blog • Tagged with blog, ANTLR, compiler, tutorial
Static analysis means extracting specific information from the program artifacts, e.g., source code, without any execution of the program. The ANTLR tool can be used to perform all types of static analysis at the source-code level. In this tutorial, I explain how we can use the ANTLR tool to perform some basic kinds of static analysis of the C++ programs in the Python programming language. The task I chose to explain is extracting the class diagram and computing the relevant design metrics.
Continue reading