NADAR SARASWATHI COLLEGE OF
ARTS & SCIENCE
COMPILER DESIGN
IMPLEMENTATION OF SYNTAX-DIRECTED TRANSLATORS
&
INTERMEDIATE CODE
Presented by,
NANDHINI K
I - M.Sc. CS
Defining Implementation of syntax-directed translators
Syntax Directed Definitions
Example of syntax-directed translation scheme
System – directed translation scheme for desk
calculator
Implementation of desk calculator
Synthesized attributes
Evaluating an SDD at the nodes of a parse tree
Example of Parse tree with translations
INTERMEDIATE CODE
Defining intermediate code
Example of intermediate code diagram
Intermediate code possible
Intermediate text introduces symbols
Four kinds of intermediate code
THANK YOU

Syntax directed translators intermediate