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
Syntax
analyzer
Semantic
 analyzer
Intermediate code generator
3AC
Stack-code
Syntax
analyzer
Semantic
 analyzer
Intermediate code generator
3AC
Syntax
analyzer
Semantic
 analyzer
3AC