CS 250 - Programming Languages                                 Spring 2004

Assignment 3 -- Due 5:00pm February 27.

Read appropriate sections of chapters 3 and 4, and answer the following questions. You may turn them in either in hardcopy or by e-mail to allen@bowdoin.edu

To test this interpreter, copy these files to your cs250 directory, and then run the driver program with the command:
java interpreter program.jay
Confirm that the program is correct by comparing its output with the file interpreter.output , which shows the complete abstract syntax tree, type checking results, and final state that should appear.

Finally, run this interpreter using each of the files program0.jay - program9.jay as input.  For each error, write down the kind of error (syntax, type error, or run-time error) that occurred and the source statement in the Jay program that caused the error.