ICS 142: Compilers and Interpreters

Summer Session II, August 6 – September 12, 2001


Homework Assignments

As part of your homework assignments, you will construct an interpreter and compiler for Simple, the simple imperative language example. While the assignments are available above, we will provide some notes and hints on the project parts here.

General Instructions

Short Version: We need all your sources, excluding standard libraries. We need a file called "sc" that accepts one command line parameter, the file to be processed. We need either a Makefile or a script "mksc" that performs the compilation from your sources to an executable program we can run using "sc". We need all this printed, as well as sent to the email address listed on the handout in the form of a tar archive compressed with gzip; the archive should be named "sc-studentid.tar.gz" and create a directory "sc-studentid" with everything in it (studentid should be your eight digit UCI student ID number).

Long Version:

Assignment 1: A Scanner for Simple

Assignment 2: A Parser for Simple

Assignment 3: The Simple Intermediate Representation

Assignment 4: An Interpreter for Simple

Assignment 5: A Code Generator for Simple


Copyright © 2001 Peter H. Fröhlich. All rights reserved.
$Id: assignments.html,v 1.9 2002/01/08 18:50:02 phf Exp $
Valid XHTML 1.0!