The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+13 votes
1.8k views

Which of the following statements is true?

  1. SLR paper 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

asked in Compiler Design by Veteran (59.5k points)
edited by | 1.8k views

3 Answers

+17 votes
Best answer
  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

answered by Loyal (9k points)
edited by
0
CLR>LALR>SLR>LR(0)
+3 votes
LR parseres in term of power CLR>LALR>SLR>LR(0)
answered by Active (4.3k points)
0
what about LR(1)..? it is more powerful than SLR(1) and LALR(1)... rt.?
+1
@rishu_darkshadow

LR(1) is another name of CLR(1)
0
okzzz
0 votes
Ans: C
answered by Loyal (7.2k points)


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

38,079 questions
45,572 answers
132,067 comments
49,045 users