Open In App
Related Articles

GATE | GATE-CS-2015 (Set 3) | Question 26

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report
Among simple LR (SLR), canonical LR, and look-ahead LR (LALR), which of the following pairs identify the method that is very easy to implement and the method that is the most powerful, in that order? (A) SLR, LALR (B) Canonical LR, LALR (C) SLR, canonical LR (D) LALR, canonical LR

Answer: (C)

Explanation: SLR parser is a type of LR parser with small parse tables and a relatively simple parser generator algorithm. Canonical LR parser or LR(1) parser is an LR(k) parser for k=1, i.e. with a single lookahead terminal. It can handle all deterministic context-free languages. LALR parser or Look-Ahead LR parser is a simplified version of a canonical LR parser,

Quiz of this Question

Last Updated : 07 Sep, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads