Which of the following parser is most powerful Parser?

2023

Which of the following parser is most powerful Parser?

  1. A.

    Operator Precedence

  2. B.

    SLR

  3. C.

    Canonical LR

  4. D.

    LALR

Attempted by 85 students.

Show answer & explanation

Correct answer: C

In compiler design, “powerful” means:

Ability to parse the maximum number of grammars without conflicts.

So we compare parsing power:

Operator Precedence<SLR<LALR<Canonical LR

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor