
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Implementing Subtyping
Due: Thursday, November 21, 2002, by 4PM
1 Exercise 16.2.5 in TAPL.
2 Exercise In
http://www.seas.upenn.edu/∼cis500/hw/errorexercise http://www.seas.upenn.edu/∼cis500/hw/errorexercise.tar you will find an OCaml implementation of a typechecker and interpreter for a simply typed lambda-calculus with subtyping, records, and simple exceptions. Several parts of the file core.ml have been omitted and marked with a comment like (* ############ Fill in ########### *) (In some cases, the omitted text is replaced by assert false so that the file will still compile.) Fill in all these parts. You can test your code by building an executable file f and then typing ./f test. The output should be:
3 Debriefing