diveshuttam / CS-F363

Compiler Construction Group 34

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Notes:

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

About

Compiler Construction Group 34


Languages

Language:JavaScript 46.3%Language:C 42.2%Language:HTML 5.2%Language:CSS 5.0%Language:Makefile 0.7%Language:C++ 0.6%