CSE401 Assignment 6

Assigned: Monday 10/30/00

Readings (in the Dragon Book)
Read before the lecture on the specified day

11/1/00 Wednesday Section 7.7
11/3/00 Friday Sections 8.1, 8.3

 

NOTE WELL:
YOU CAN DO THE PROJECT PART IN PAIRS, BUT THE
ASSIGNMENTS FROM THE BOOK, ETC., MUST BE DONE ON YOUR OWN.

Assignment/Project

11/6/00 Monday

Implement type-checking and other semantic checking and analysis for the extended 
PL/0 language. 

Turn in printouts of your AST .h files and your type-checking files, with your type-checking changes highlighted. Turn in commented printouts of your test programs (including programs containing type errors!), along with output 
demonstrating that your type-checker checks the extended language. 

Run the extended compiler with the ``­p ­s ­S'' options to print the abstract parse tree, the symbol table, and then stop. 

As usual, you will be graded on correctness of your implementation, on clarity and 
good design of your implementation, and on sufficiency of your test cases.