 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
• |
Gives a flavour
for how each construct in
|
|
the language
should be translated
|
|
|
• |
Structure of
compiler
|
|
|
|
– |
Translate/Translate.java
contains a method
|
|
|
to translate
each construct
|
|
|
|
• |
These make calls
to constructors in Tree
|
|
|
|
– |
Semant.java
contains calls to these
|
|
|
translator
methods
|
|