28 28 votes Which of the following statements about parser is/are CORRECT?$\text{Canonical LR}$ is more powerful than $\text{SLR}$$\text{SLR}$ is more powerful than $\text{LALR}$$\text{SLR}$ is more powerful than $\text{Canonical LR}$I onlyII onlyIII onlyII and III only Compiler Design gatecse-2017-set2 compiler-design parsing lr-parser + – Arjun 12.4k views answer comment Share Follow Print See all 3 Comments 3 3 Comments reply Prashant. commented Feb 14, 2017 reply Follow flag previous year question. https://gateoverflow.in/1663/gate1998_1-26 2 2 replyShare `JEET commented Dec 7, 2019 reply Follow flag Repeated $\mathbf{thrice}$ in GATE. 5 5 replyShare Mitali gupta commented Aug 26, 2020 reply Follow flag I would like to mention one more fact : If number of states LR(0) = n1, number of states SLR = n2, number of states LALR = n3, number of states CLR = n4 then, n1 = n2 = n3 <= n4 12 12 replyShare Please log in or register to add a comment.
Best answer 48 48 votes For a parser more power means it can parse more strings. So, here only the first statement is correct. Correct Answer: $A$ 2018 answered Feb 14, 2017 • edited May 1, 2021 by gatecse 2018 comment Share Follow 0 reply Please log in or register to add a comment.
9 9 votes Correct Answer: $A $$\text{LALR}$ is more powerful than $\text{SLR}$ because $\text{SLR}$ has more restrictive reduction rules.$\text{Canonical LR}$ means $\text{LR(1).}$ It is more powerful than $\text{SLR.}$Reference: http://stackoverflow.com/questions/2676144/what-is-the-difference-between-lr-slr-and-lalr-parsers Kloseup answered Feb 14, 2017 • edited Oct 30, 2025 by Umesh Shelke Kloseup comment Share Follow 0 reply Please log in or register to add a comment.
6 6 votes $CLR(1)>LALR(1)>SLR(1)>LR(0)>LL(1)$ Purvi Agrawal answered Mar 6, 2017 • edited Oct 30, 2025 by Umesh Shelke 1 flag: ✌ Low quality (Aman Shukla “LALR=SLR”) Purvi Agrawal comment Share Follow 0 reply Please log in or register to add a comment.
3 3 votes CLR is the most powerful among all LR(k) parsers. gargshreya answered Feb 14, 2017 • edited Nov 7, 2023 by Hira Thakur gargshreya comment Share Follow 0 reply Please log in or register to add a comment.
2 2 votes A)Only 1 CLR is more powerful than SLR CLR>LALR>SLR Ravijha answered Jun 20, 2019 1 flag: ✌ Low quality (Aman Shukla “LALR=SLR”) Ravijha comment Share Follow 0 reply Please log in or register to add a comment.
1 1 vote CLR > LALR > SLR CLR is more powerful than LALR LALR is more powerful than SLR Only option (A) is correct.... akash.dinkar12 answered Apr 14, 2017 akash.dinkar12 comment Share Follow 0 reply Please log in or register to add a comment.