The next step in creating an interpreter for TIPS is to create a parsetree of the input while checking the syntax of the input.

nter (sometimes NULL) to the ELSE clause. A compound statement needs to contain a vector (or other dynamically allocated list) of pointers to statements.
The text produced by an in-order traversal of the parse tree and the result of deleting the root node are shown in the sample.correct, input2.correct, and input4.correct files given in the starting point zip file.
NOTE: The parse tree is not output when a syntax error is found. That is why I am only supplying *.correct files and graphical parse trees for “correct” TIPS programs. The output when a syntax error is found is exactly the same as the output for Part 2.


Author Since: November 30, 2020