All mock tests are FREE till 31 December — register to save your progress

Which of the following parsers is the most powerful?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. Canonical LR

Explanation

Canonical LR(1) handles the largest class: operator precedence ⊂ SLR ⊂ LALR ⊂ CLR.

More Theory of Computation and Compilers questions