CSE 304: Compiler Design
Fall 2009
Homeworks
-
Homework #1: Lexical Analysis (Due: Sep 21).
-
Homework #2: Parsing (Part A due Sep 27; Part B due Oct
2).
Supplementary material: parse.tgz
Bug fix: The lexer I originally supplied did not recognize
"carriage returns" as a valid white space character, and gave
errors on multi-line inputs created on Windows machines. Here is
the new file: lex.yy.c. For
completeness, here is the Flex specification from which the lexer
was derived: decaf.l.
Place lex.yy.c in src directory and recompile;
that should fix the bug.
-
Homework #3: Abstract Syntax Tree (Due: Nov 9).
Supplementary Material: ast.tgz
-
Homework #4: Code Generation (Due: Dec 11).
Supplementary Material: code.tgz
See Homeworks area on Blackboard for submission form.
C.R. Ramakrishnan
Last updated on
Thu Dec 3 05:52:59 EST 2009