GATE CS 2015, set 3 · Question 15 · Compiler Design · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

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?

  1. (A) SLR, LALR
  2. (B) Canonical LR, LALR
  3. (C) SLR, canonical LR
  4. (D) LALR, canonical LR
Answer

Answer (C)

Answer from the official GATE CS 2015 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes