Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

diveshuttam/CS-F363

Repository files navigation

CS-F363

Compiler Construction Group 34

INSTRUCTIONS (for Linux)

  • 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 file a.mylang to save time during debugging)
  • run make all for output without debug statements (asks for which file to compile)

Graphics output

  • 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

AST

Notes:

  • Remember to free whatever is malloc'ed else we get random malloc errors