CS 421: Programming Languages and Compilers
Machine Lab 3 (ML3)
ML3 will help you learn to work with Algebraic Datatypes, and will familiarize you with implementing code transformations, and CPS transformation in particular. 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("Whatever you would like"))

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
ml3.pdf
ml3.tar.gz
ml3-sol.ml