in Compiler Design edited by
1,263 views
4 votes
4 votes

Synthesized attribute can easily be simulated by an

  1. LL grammar
  2. ambiguous grammar
  3. LR grammar
  4. none of the above
in Compiler Design edited by
by
1.3k views

4 Answers

1 vote
1 vote
LR grammar best simulates the Synthesized attributes. synthesized attributes generally work in bottom up parsing.

Hence answer should be option C.
by
0 votes
0 votes
it is synthesized attribute,

It is processed best by Bottom up parser which is also LR parser.
0 votes
0 votes
Since in S attributed grammar first the child are evaluated first then the parent.So LR grammar will be suitable for this.Hence option C
Answer:

Related questions