Programming Assigment 9
Course Project: Phase 5 -- AST to 3AC
Background:
- Due Date:
Overview:
As the fifth step in the compiler project, you are to perform translation from your Abstract Syntax Tree into 3 Address Code. This is done by writing a routine that takes the AST output from the previous assignment, reads it in, and then traverses it to output 3 Address Code psuedo assembler.
Program Structure:
This program will be a stand-alone program. Note that it could be called directly by the parser in place of the dump of the AST at the end of the parse.
3 Address Code Overview:
Your text covers 3 Address Code in Section 6.2
Here is a brief list of suggestions