CPSC 425 Assignment 9
A Language with Procedures
Due Before Class on Wednesday, February 10th
Read sections 3.3 and 3.4 of Essentials of Programming Languages and complete the following exercises:
- 3.19 (pg. 80)
- example usage : (run "letproc double (x) = -(x,-(0,x)) in (double 3)") = #(struct:num-val 6)
- 3.31 (pg. 83)
- example usage : (run "letrec fun (x , y) = if zero? (x) then y else -(y , (fun -(x , 1) y)) in (fun 3 1)") = #(struct:num-val 0)
Submission: Submit through the course blackboard site.