Tips and Hints

  • Review the Tips and Hints from the generator assignment: much of it applies to this assignment as well. In particular, the style and design sections are necessary.

  • Write tests before you implement the things they will test. The testing script provided is designed to handle failed test cases. You can reduce output in the testing tool by passing the -q flag.

  • As with the generator assignment, the ANTLR visitor pattern is best for implementing the interpreter.