Professional Documents
Culture Documents
Semantic Analysis
or actions.
◻ The general approach to syntax-directed translation is to
bottom-up order.
Inherited attributes
(1)
(2)
(3)
SDD for expression (4)
B C C
L-attributed Grammar
❑ Uses both Synthesized and inherited attribute
❑ Each inherited attribute is restricted to inherit
either from parent or left siblings only
For eg A🡪XYZ
{Y.s=A.s , Y.s =X.s , Y.s=Z.s}