Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 841 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 841 Bytes

compilers-2015

Example code for compilers class.

You will need a copy of the example code from the textbook also.

http://www.cs.princeton.edu/~appel/modern/ml/project.html

Code for example problems

maxargs.sml - a modified exercise, count the maximum number of arguments in any constructor for straight line programs. My version is buggy. You need to fix it.

interp.sml - half of a working interpreter for straight line programs. You need to implement update and the rest of interpexp and interpstm.

slp/ - a nearly correct parser and interpreter for straight line programs. See the README for usage instructions. You need to fix some shift/reduce conflicts.

tiger/ - A skeleton compiler for tiger, using the code from Chapter 3-6 and the examples we did in class. See the README.md there for more details and examples.