Keywords: 1

Next: About this document ... Up: C311 - Program 1: Syntax, Previous: Input Language Specification:

# Testing and Submitting Your Program

The file `~comp311/Assignments/1/in` contains a sample input program. Create a README file in the your directory `program/1` that

- gives the names and userids of both team members,
- outlines the organization of your program, and
- specifies what testing process you used to confirm the correctness of your program.

Your test data files should be stored in the `programs/1` directory.

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).

Next: About this document ... Up: C311 - Program 1: Syntax, Previous: Input Language Specification: