50 likes | 71 Views
Explore operational semantics, interpreter, and code chunks in µ-Scheme, comparing with Impcore. Prepare with readings for next time.
E N D
CS603 Programming Language Organization • Lecture 14 • Spring 2003 • Department of Computer Science
Overview • Questions • µ-Scheme Operational Semantics Conclusion • µ-Scheme Interpreter • Reading for next time
µ-Scheme Interpreter • Like Impcore, eval and topeval • Like Impcore, arguments match operational semantics • eval(Exp *e, Env *env) 106a • topeval(Toplevel *t, Env *env, int echo) 111d
• Write sequence of code chunk numbers for: (val zero? ((curry =) 0)) • Write sequence of code chunk numbers for: (zero? 0) µ-Scheme Interpreter Pair Up: • Write sequence of code chunk numbers for: (define curry (f) (lambda (x) (lambda (y) (f x y)))
Reading for Next Time • Sections 3.15