Question:

Which of the following parser is most powerful?

Show Hint

Power order: \[ \text{Predictive} < \text{SLR} < \text{LALR} < \text{CLR} \]
Updated On: Jun 25, 2026
  • Predictive Parser
  • SLR Parser
  • CLR Parser
  • LALR Parser
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Concept: Parser power comparison: \[ \text{Predictive} < \text{SLR} < \text{LALR} < \text{CLR} \]

Step 1:
Understand CLR.
CLR stands for Canonical LR Parser. It recognizes the largest class of LR grammars.

Step 2:
Compare with others.
SLR and LALR are simplified versions of LR parsing. CLR has the greatest parsing power.

Step 3:
Write answer.
Hence \[ \boxed{\text{CLR Parser}} \] is correct.
Was this answer helpful?
0
0