Find out the most powerful parsers.

2021

Find out the most powerful parsers.

Answer: C. Canonical LRAmong LR parsers: SLR < LALR < Canonical LR (CLR) in power Canonical LR parser can handle the largest class of grammars, hence it is the most powerful parser.

  1. A.

    SLR

  2. B.

    LALR

  3. C.

    Canonical LR

  4. D.

    Operator-precedence

  5. E.

    Question not attempted

Attempted by 289 students.

Show answer & explanation

Correct answer: C

Among LR parsers:
SLR < LALR < Canonical LR (CLR) in power

Canonical LR parser can handle the largest class of grammars, hence it is the most powerful parser.

Explore the full course: Bpsc

Loading lesson…