ICS 142: Compilers and Interpreters

Summer Session II, August 6 – September 12, 2001


Downloads

We provide various things here that you can download and look at in the convenience of your own home. All of these come with absolutely no warranty of any kind. You have been warned...

Slides

Lecture 1 Lecture 2 Lecture 3 Lecture 4 Lecture 5 Lecture 6 Lecture 7 Lecture 8 Lecture 9 Lecture 10 Lecture 11 Lecture 12 Lecture 13

Homework Assignments

Assignment 1 Assignment 2 Assignment 3 Assignment 4 Assignment 5

Exams

Progress Quiz Final Exam

Partial Homework Solutions

Assignment 1 Assignment 2 Assignment 3 Assignment 4

Partial Project Solutions

Joe's Java Code

Scanner Parser Intermediate Representation Interpreter

Peter's Python Code

Scanner Parser Intermediate Representation Interpreter

The Select Compiler

Select (Simple Expression Language Example for Compiler Trainees) is a very simple programming language with expressions, constants, and a PRINT instruction. The compiler generates code for the VMICS processor. It also contains an interpreter, as well as the usual frontend tasks of lexical analysis, syntax analysis, semantic analysis, and construction of the intermediate representation. This might give you some ideas for your own compiler.

Select Compiler

The VMICS Processor

This is a stable release of the VMICS processor. A number of bugs have been fixed, including those regarding negative numbers. However, other bugs might still be hiding somewhere. Please monitor the mailing list for updates!

VMICS Processor


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