Multiple choice

Which of the following is the most powerful parsing method?

  1. LL

  2. <font size="2">C</font>anonical LR

  3. SLR

  4. LALR

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Canonical LR (CLR) is the most powerful parsing method - it handles all grammars that LR parsing can handle, while SLR, LALR, and LL are progressively more restrictive subsets.