recategorized by
12,443 views
28 28 votes

Which of the following statements about parser is/are CORRECT?

  1. $\text{Canonical LR}$ is more powerful than $\text{SLR}$
  2. $\text{SLR}$ is more powerful than $\text{LALR}$
  3. $\text{SLR}$ is more powerful than $\text{Canonical LR}$
  1. I only
  2. II only
  3. III only
  4. II and III only

9 Answers

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$

edited by
2 2 votes
A)Only 1

CLR is more powerful than SLR

CLR>LALR>SLR
1 flag:
✌ Low quality (Aman Shukla “LALR=SLR”)
Answer:
Position:
Show:

Related questions

26 26 votes
6 6 answers
10.7k
10.7k views
Arjun asked Feb 27, 2025
10,671 views
​​Given a Context-Free Grammar $\text{G}$ as follows:\[\begin{array}{l}S \rightarrow A a|b A c| d c \mid b d a \\A \rightarrow d\end{array}\]Which ONE of the following st...
35 35 votes
2 answers 2 answers
13.4k
13.4k views
go_editor asked Feb 14, 2015
13,367 views
Among simple LR (SLR), canonical LR, and look-ahead LR (LALR), which of the following pairs identify the method that is very easy to implement and the method that is the ...
79 79 votes
5 5 answers
27.6k
27.6k views
Misbah Ghaya asked Feb 12, 2015
27,614 views
Which one of the following is TRUE at any valid state in shift-reduce parsing?Viable prefixes appear only at the bottom of the stack and not insideViable prefixes appear ...
56 56 votes
7 answers 7 answers
47.9k
47.9k views
go_editor asked Sep 26, 2014
47,932 views
A canonical set of items is given below$S \to L . R $$Q \to R.$On input symbol $<$ the set hasa shift-reduce conflict and a reduce-reduce conflict.a shift-reduce conflict...