The file ~comp311/Assignments/1/in
contains
a sample input program.
Create a README file in the your directory program/1 that
Each procedure or method in your program should include a short comment stating precisely what it does. For routines that parse a particular form of program phrase, give a grammar rule(s) describing that form.
To submit your program, make sure that everything that you want to submit is located in the directory programs/1 and type the command turnin311 1. The command will inform you whether or not your submission succeeded. Only submit one copy of your program per team. If you need to resubmit an improved version your program, submit it from the same account as the original so that the old version is replaced.
Implementation Hints
Use an ``unparser'' to print a concrete representation
for an abstract syntax tree. Then you can directly compare test
input strings and output strings (up to differences
in whitespace and parentheses using for grouping).