Syntax-Directed Generation of
3AC
4/69
1) Parser directs the creation of an abstract-syntax tree (AST) , which is then converted to 3AC.
Basic approaches:
2) Parser directs the creation of a postfix notation (PN) , which is then converted to 3AC.
3) A parser directs the creation of 3AC.
AST
Intermediate code generator
3AC
Stack-code
Intermediate code generator
3AC
3AC