CIS 400 Assignment 1
For your first assignment you are to write an
interpreter for the calculator language defined below. You
may assume that there are no operator precedence rules if
you wish.
::= |
::= |
::= | .
::= |
::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
::= + | -
::= + | - | * | /
You may use any language you wish to do this
assignment. You will need to devise a set of test strings to
demonstrate the correctness of your work. You will need to
turn in a clearly commented source listing of your program,
listings of your test data files, and all relevant computer
output. You will also need to write a 2 page memo describing
your program and the results of your program testing.