in Compiler Design recategorized by
1,650 views
1 vote
1 vote

The most powerful parser is

  1. $\text{SLR}$
  2. $\text{LALR}$
  3. Canonical $\text{LR}$
  4. Operator-precedence
in Compiler Design recategorized by
by
1.7k views

1 comment

In terms of power of parsing

Canonical LR > LALR > Simple LR

Operator precedence parser can parse all grammar that is LR(1) and doesn't have two adjacent non terminal or epsilon production.But it can parse even ambiguous grammar which other three cannot.

So not sure how exactly they are comparing power of these two class of parser (LR Parser and Operator precedence parser) as some part is parsed by one but not other.
0
0

1 Answer

1 vote
1 vote
Canonical LR is most powerful parser.

CLR  >  LALR > SLR > LR(0)

option c will be correct option
Answer: