edited by
12,725 views
24 votes
24 votes

Which of the following statements is true?

  1. SLR parser is more powerful than LALR

  2. LALR parser is more powerful than Canonical LR parser

  3. Canonical LR parser is more powerful than LALR parser

  4. The parsers SLR, Canonical CR, and LALR have the same power

edited by

2 Answers

Best answer
30 votes
30 votes
  1. SLR paper is more powerful than LALR . False .

  2. LALR parser is more powerful than Canonical LR parser . False .

  3. Canonical LR parser is more powerful than LALR parser. True.

  4. The parsers SLR, Canonical CR, and LALR have the same power.  False.

answer - C

edited by
4 votes
4 votes
LR parseres in term of power CLR>LALR>SLR>LR(0)
Answer:

Related questions

46 votes
46 votes
2 answers
1
Kathleen asked Sep 25, 2014
13,931 views
Type checking is normally done duringlexical analysissyntax analysissyntax directed translationcode optimization
18 votes
18 votes
2 answers
3
Kathleen asked Sep 25, 2014
5,878 views
A linker reads four modules whose lengths are $200, 800, 600$ and $500$ words, respectively. If they are loaded in that order, what are the relocation constants?$0, 200, ...
26 votes
26 votes
3 answers
4
Kathleen asked Sep 25, 2014
9,371 views
In a resident – OS computer, which of the following systems must reside in the main memory under all situations?AssemblerLinkerLoaderCompiler