COMPILER DESIGN

SEMANTIC ANALYSIS

ATTRIBUTE GRAMMARS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Synthesized attributes can be easily simulated by
A
LL grammar
B
LR grammar
C
Ambiguous Grammar
D
None of the above
Explanation: 

Detailed explanation-1: -9. Explanation: Through LR grammar synthesized attributes can be simulated.

Detailed explanation-2: -Synthesized attributes If S is taking values from its child nodes (A, B, C), then it is said to be a synthesized attribute, as the values of ABC are synthesized to S. As in our previous example (E → E + T), the parent node E gets its value from its child node.

There is 1 question to complete.