recategorized by
7,731 views
20 votes
20 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
recategorized by

8 Answers

2 votes
2 votes
A)Only 1

CLR is more powerful than SLR

CLR>LALR>SLR
1 votes
1 votes
CLR > LALR > SLR

CLR is more powerful than LALR

LALR is more powerful than SLR

Only option (A) is correct....
0 votes
0 votes

Canonical LR is more powerful than SLR (True)

SLR is more powerful than LALR (False but reverse is True)

SLR is more powerful than Canonical LR(False but reverse is True)

So Option A

Answer:

Related questions

39 votes
39 votes
5 answers
1
Madhav asked Feb 14, 2017
9,522 views
Match the following according to input (from the left column) to the compiler phase (in the right column) that processes it:$$\begin{array}{|l|l|}\hline \text{P. Syntax t...