Skip to content

UGC NET CS 2023Theory of Computation and Compilers › Syntax AnalysisVerified

UGC NET CS 2023 PYQ: Which of the following parser is most powerful parser?

Which of the following parser is most powerful parser?

  1. A
    Operator precedence
  2. B
    $\text{SLR}$
  3. C
    Canonical $\text{LR}$
    Correct answer
  4. D
    $\text{LALR}$

Answer

(C) Canonical $\text{LR}$

Approach

Compare the power of parser classes in the LR family against operator precedence.

Reviewed by UGC IQ Editorial Team.