15,706 views
3 votes
3 votes

 Synthesized attribute can be easily simulated by a

(A) LL grammar            (B) Ambiguous grammar

(C) LR grammar           (D) None of the above

Answer: C

1 Answer

2 votes
2 votes
Synthesized attributes can be easily simulated by a LR grammar bcz synthesized attributes evaluates in bottom up fashion and LR grammar also evaluates in  bottom up fashion.

Related questions

0 votes
0 votes
0 answers
1
Sarahcs asked 6 days ago
44 views
directed acyclic graph(DAG)is a simplified step from the AST. Solve the following expressions by AST and DAG: X=(((a+a))+((a+a)+(a+a)))
0 votes
0 votes
0 answers
2
0 votes
0 votes
0 answers
3
1 votes
1 votes
0 answers
4
Ebrahim asked May 5
34 views
1. Generate intermediate code for the following code segment. a) (x<y) and (y>z) and not z b) if(i%2==0)evensum=evensum+elseoddsum=oddsum+i;