Visualize and grep through the AST nodes for your codebases.
-
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>