If this is your first time running eclipse, make sure your workspace is in a place that is backed up reliably.
Run the application by right- (control-) clicking on Main in the package explorer, and then selecting Run as..Java Application.
Tip: After running an application the first time, subsequent runs can be launched by clicking the green circle with the white triangle near the top of eclipse's window.
The output should appear in the console window.
In report.txt, indicate which examples passed the parse and which failed.
As a group, read through the program and discuss which portions of the input declare variables, assign values, and print values. Use the tree shown in Figure 2.4 as a guide.
Answer the questions in report.txt.
The parse is structured by the grammar shown in Figure 2.1. For each example that did not parse correctly, use the grammar to determine why the example is not syntactically correct, and document your findings in report.txt.
Answer the questions in report.txt.
Implement these changes as a group. Modify the test inputs in Main and make sure your changes work.
How does the abstraction of the print keyword as a PRINT token in Token.java facilitate the change you just made? Document your findings in report.txt.
Compare the code for Stmts() in Parser with the pseudocode in Figure 2.8. Discuss and document in report.txt the similarities and differences.
Consider adding a new symbol to the language, spelled as # that represents infinity. What production should be added go Figure 2.1, so that # can serve as a value?
Test your augmented software by running it on some examples from Main, using the # value occasionally.
Try out some examples that include the * operator.
Submit your work as directed by your instructor.