Gate1998_1.26

Which of the following statements is true?
(a) SLR parser is more powerful than LALR
(b) LALR parser is more powerful than Canonical LR parser
(c) Canonical LR parser is more powerful than LALR parser.
(d) The parsers SLR, Canonical CR, and LALR have the same power

Answer

Discuss

6Comments
paramesh @gouniparamesh
15 Mar 2017 07:42 am

b

Shubh @shubhammeshr
17 Aug 2017 02:40 pm

it's option C

rachakondagopi @gopisrikanth
15 Mar 2017 07:43 am

c

rachakondagopi @gopisrikanth
15 Mar 2017 07:49 am

option c is correct because in canonical LR parser only the reduced moves should be placed only in lookahead whereas in other parser doesnot in LALR also reduced moves placed only in look ahead but from canonical LR parser only we can derive LALR PARSER so canonical LR parser is more powerful than LALR parser

Akash @akashdinkar
16 Mar 2017 09:27 pm
C

Shivam @shivampatidar
17 Aug 2017 05:38 pm
C

Pages