Gate CS-2008 Question Paper With Solutions

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

only if

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

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

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

(D) The LALR(1) parser for G has reduce-reduce conflicts

Answer: (B)

Explanation:

Gate CS-2008 Question Paper With Solutions

Learn More:   Gate EC-2016 - 3 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here