edited by
18,110 views

6 Answers

2 votes
2 votes
0 votes
0 votes
For option D

An ambiguous grammar can never be LR(k) for any k, because LR(k) algorithm aren’t designed to handle ambiguous grammars. It would get stuck into undecidability problem, if employed upon an ambiguous grammar, no matter how large the constant k is.
Answer:

Related questions

20 votes
20 votes
2 answers
1
Kathleen asked Sep 14, 2014
3,663 views
Remove left-recursion from the following grammar: $S \rightarrow Sa \mid Sb \mid a \mid b$Consider the following grammar: $S \rightarrow aSbS\mid bSaS \mid �...