This problem requires Lecture 20 and book section 3.7.
Exercise 3.39, p.103 - (60 minutes)
Add the expression begin to the language.
| begin-exp (exp exps) |
A begin expression may contain one or more subexpressions separated by semi-colons. These are evaluated in order and the value of the last is returned. Implement this by modifying eval-expression.
| The BNF for <expression> (begin-exp added) |
|---|
|
The interpreter with variable assignment.
Instructions on submitting homework is here
Last updated at 2:14 pm on Monday, July 18, 2005.