An LALR(1) parser for a grammar G can have shift-reduce (S-R) conflicts if and…

PYQ GATE 2008

An LALR(1) parser for a grammar G can have shift-reduce (S-R) conflicts if and only if

  1. A.

    the SLR(1) parser for G has S-R conflicts

  2. B.

    the LR(1) parser for G has S-R conflicts

  3. C.

    the LR(0) parser for G has S-R conflicts

  4. D.

    the LALR(1) parser for G has reduce-reduce conflicts

Attempted by 222 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…