CS G111 Machine Problem 5b: Manipulating the Store

Out: October 23, 2007

Due: October 30, 2007

Mail messages related to this assignment will be archived here. FAQs for this assignment are collected here. You should check this archive before asking a question.


For this problem, you will extend the language IMPLICIT-REFS, found at /course/csg111/interps/lecture05/implicit-refs.

Do the following exercises:

  1. Add multiple-argument procedures and multiple-declaration let-expressions to IMPLICIT-REFS. No rules required for this one. [10 points]
  2. Write a rule for let in IMPLICIT-REFS, in the style of the rules on page 21 of the notes. You may use either the "rule" style or the "equation" style. Write this as a comment to the appropriate line of the interpreter. [2 points]

    You should submit a single set of files for questions 1 and 2. In these files, use the test harness drscheme-init.scm, as usual. Your top-level file should be named top-implicit-refs.scm.

  3. Implement the statement language given in the notes. The interpreter on page 36 of the notes is available at /course/csg111/interps/mp5/statements.scm. The expressions of your statement language should be the expressions of question 1. [10 points]
  4. Add while to the statement language. Write a rule or rules in the style of the rules on page 35 of the notes [3 points], and implement them [5 points]. As in question 2, you may use either the "rule" style or the "equation" style.

    You should submit a single set of files for questions 3 and 4. The top-level file should be named top-statements.scm. This set of files can, but need not, be disjoint from the files for questions 1 and 2.

    Further notes on questions 3 and 4:

Last modified: Tue Feb 27 15:28:34 EST 2007