CPSC 425 Assignment 11
Lexical Addressing
Due Before Class on Monday, March 8th
Read sections 3.5 through 3.7 of Essentials of Programming Languages and complete the following exercises:
- 3.38 (pg. 101)
- example usage : (run "let x = 1 in cond zero?(x) ==> x zero?(-(x,x)) ==> -(0,x) end") = #(struct:num-val -1)
- 3.39 (pg. 101)
- example usage : (run "let x = 1 in unpack x y = cons(2 : cons(x : ~())) in -(x,y)") = #(struct:num-val 1)
Submission: Submit through the course blackboard site.