Which of the following parser is most powerful Parser?
2023
Which of the following parser is most powerful Parser?
- A.
Operator Precedence
- B.
SLR
- C.
Canonical LR
- 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.