Follow these steps to run our program:
-
Download the zip file and decompress it.
-
Open terminal and navigate to the project directory.
-
make sure you have flex and bison installed in your pc. If not, use ”sudo apt install flex” and then ”sudo apt install bison”.
-
Open the ”hello.txt” file and copy your input program into it. (We are sorry for not making this interactive)
-
enter ”make clean” command.
-
enter ”make all” command.
-
enter ”./Generate” command.
-
Copy numerical values from output.txt to this.tree variable in tree.js.
-
Copy strings values from output.txt to this.value variable in tree.js file.
-
This is hard coded as JavaScript does not have access to local files.
-
run index.html.