Due: Tuesday, Nov 22nd by 11:59 PM
Using the code for the PROC interpreter as a starting point, do exercises 3.19, 3.20, and 3.21 from the textbook. (They are on page 80.)
Test program for 3.19:
letproc f(x) -(x, 1) in (f 4)
This program should yield the result 3.
Test program for 3.21:
let f = proc(x, y) -(x, -(0, y)) in (f 12 7)
This program should yield the result 19.
- 3.19 - 30%
- 3.20 - 25%
- 3.21 - 45%
Submit a zip file containing two files:
- A Scheme file with your solutions to problems 3.19 and 3.21
- A text file with your answer to problem 3.20
Submit the zip file to Marmoset as assign6:
IMPORTANT: after uploading, you should download a copy of your submission and double-check it to make sure that it contains the correct file(s). You are responsible for making sure your submission is correct. You may receive a grade of 0 for an incorrectly submitted assignment.