CS 152: Compiler Design - Downloads

Winter Quarter 2003: January 3, 2003 - March 14, 2003


Less: Notes Handouts Assignments Exams   |   More: Books Downloads Policies Schedule Scores   |   Home

Notes

More and more things you can download for class will be collected here. All the sample solutions come without any warranty. Please report any problems you find! Note that many of the links do not work right now! Slides for the lectures are available from the Schedule page.


Handouts

Select Compiler

VMICS Processor

Report Templates


Assignments

Assignment 0 | Betul's C++ Solution | Jia's C++ Solution | Lan's C++ Solution | Peter's Python Solution

Assignment 1 | Sample Solution

Assignment 2 | Sample Solution

Assignment 3 | Sample Solution

Assignment 4

Assignment 5

Assignment 6

Assignment 7

I had to change the way I distribute code to you. Instead of archives for each assignment, I will have one archive for each one of us, which is updated with the "new stuff" after the due date. A little note tells you "how far along" that particular solution is. The reason is simply that you can not compile "subsets" nicely in C++ because of #include dependencies.

Betul's C++ Solution (scanner, parser, symbol table, abstract syntax tree, interpreter)
Jia's C++ Solution (scanner)
Lan's C++ Solution (scanner, parser, symbol table, abstract syntax tree) (Jia & Lan)
Peter's Python Solution (scanner)

Finally, here's my old Python solution which does not work 100% for this quarter. However, since I can't finish the new one, I provide this as a "straw" for those of you who use Python.

Peter's Python Solution (scanner, parser, symbol table, abstract syntax tree, interpreter)


Exams

Entrance Exam (20 minutes) | Sample Solution

Midterm Exam (40 minutes) | Sample Solution

Final Exam (80 minutes) | Sample Solution


Copyright © 2001-2003 Peter H. Fröhlich. All rights reserved.
$Id: downloads.html,v 1.18 2003/03/06 05:10:33 phf Exp $
Valid XHTML 1.1!