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.
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. Correct Answer I only
Concept: LR parsers in terms of their power:
CLR > LALR > SLR > LR (0)
Explanation:
I. Canonical LR is more powerful than SLR. TRUE
II. SLR is more powerful than LALR. FALSE
III. SLR is more powerful than Canonical LR. FALSE
মোঃ আরিফুল ইসলাম
Feb 20, 2025