-
Which of the following statements about parser is/are CORRECT?
I. Canonical LR is more powerful than SLR.
II. SLR is more powerful than LALR.
III. SLR is more powerful than Canonical LR.
-
- I only
- II only
- III only
- II and III only
- I only
Correct Option: A
Bottom up Parsers in decreasing order of their power: CLR >> LALR ≥ SLR ≥ LR , then
1. Connonical (CLR) is the most powerful Parsers among all the LR(k) Parsers or SLR. So, it is correct.
2. SLR is more powerful than LALR is incorrect.
3. SLR is more powerful than canonical LR is incorrect.
So, option (a) is correct.