CIS 352   —   SPRING 2008

Lab 6: Hello Eval


You'll need your copy of EOPL for this lab!!

Getting started with the interpreter

This lab uses the interpreter used in class so far, covering features discussed in EOPL Sections 3.1 and 3.2. Refer to those sections if you have questions about how the pieces of the interpreter fit together.

Once you catch on, this lab is quite easy. But, please ask us for help if you are confused about what goes where.

You will need to grab a copy of init-interp.scm. Load the file into DrScheme and invoke the interpreter:

  (read-eval-print)
To try out the interpreter, type the following expressions (one at a time) to the "-->" prompt:
  3
  v
  add1(v)
  *(add1(6),-(7,sub1(v)))
To get out of the interpreter loop, force an error. For example, type
  hazzah

Notes


Your problems

  1. EOPL 3.5

  2. EOPL 3.6

  3. EOPL 3.7


Back to the CIS 352 Homepage
Jim Royer /