Compiler Construction Group 34
- clone this repo:
git clone https://github.com/diveshuttam/CS-F363
cd CS-F363
- create a folder named
build
in the above directory:mkdir build
- run
make deubg
for running with debug output (runs always automatically with filea.mylang
to save time during debugging) - run
make all
for output without debug statements (asks for which file to compile)
- run
make graphics
to print graphics output - create json file for tree using
./visualize_exe ./testcases/testcase1.txt ./testcases/testcase1.json
- open visualize/visualize.html in a browser
- select the json file (here testcases1.json) to visualize the tree output
One can also visualize a json file at https://diveshuttam.github.io/CS-F363/graphics/visualize
- Remember to free whatever is malloc'ed else we get random malloc errors