retagged by
188 views
2 votes
2 votes

Which one of the following statements is TRUE?

  1. SLR parser is more powerful than LALR.
  2. LALR parser is more powerful than Canonical LR.
  3. Canonical LR is more powerful than LALR parser.
  4. SLR, Canonical LR and LALR parsers have the same power.
retagged by

1 Answer

Best answer
2 votes
2 votes

parser in terms of powerful

LL(1)<LR(1)<SLR(1)<LALR(1)<CLR(1).

C is Correct.

selected by
Answer:

Related questions

2 votes
2 votes
0 answers
1
Bikram asked Nov 25, 2016
444 views
$\textbf{goto}$ function of LR class of grammar is represented as:Deterministic Finite Automata transitionsNon-deterministic Finite Automata transitionsPDA transitionsPar...
3 votes
3 votes
1 answer
2
Bikram asked Nov 25, 2016
442 views
Consider the following grammar:$E \rightarrow E + T \mid T$$T \rightarrow T ^* F \mid F$$F \rightarrow (E) \mid id$What are the productions for E, T and F after convertin...
2 votes
2 votes
1 answer
3
Bikram asked Nov 25, 2016
299 views
Which one of the following statements is TRUE?SLR parser has more states than LALR parser.LALR parser has more states than Canonical LR.Canonical LR has fewer states than...
3 votes
3 votes
1 answer
4
Bikram asked Nov 25, 2016
977 views
Which one of the following can be handled by predictive parsers?Left recursionLeft factorsAmbiguityNon-determinism