Visualize and grep through the AST nodes for your codebases.
What are ASTs you might ask? Here you go
Clone this repo
Run the following commands in the project folder
mkdir build && cd build
cmake ../
make
It is advised to have
clang
on your system for generating the AST.
# Where x.c is a random C source file.
clang -Xclang -ast-dump=json -fsyntax-only x.c > ast.json
./plot <path-to-json-file>