CS 421: Programming Languages and Compilers
Machine Problem 11 (MP11)

In MP11, you will finish the implementation of a set of picture-drawing combinators.

The current posting is preliminary. We do not have a tarball ready (including a tests file and handin procedure). We have posted the skeleton file, and we believe there is enough information to do the assignment. We have also posted the compiled solution (the cmo and cmi files; if you start OCaml and enter #load "mp11soln.cmo" and open Mp11soln", you will be able to run the solution). In addition, the skeleton file contains, at the end, several examples with their output (commented out).

Keep in mind that your solution must define every required function, otherwise the grading program will not compile and you will receive no points for the entire homework set. For example, if you decide not to implement the function splat (for whatever reason), you need to have it defined as:

let splat x = raise (Failure(""))

IMPORTANT: Make sure that you read the README file in the grader bundle . This file contains important information.

Also, make sure you read the "Guide for Doing MPs".

Files
  mp11.pdf
  tarball
  solution