MCQ · 2 marks · Parsing

GATE CS 2026 CS-2 — Q41

Consider the canonical LR(0)LR(0) parsing of the grammar below using terminals {a,b,c}\{a, b, c\} and non-terminals {A,B,C,S}\{A, B, C, S\} with SS as the start symbol.

S→ACBS \rightarrow ACB

A→aA∣ϵA \rightarrow aA \mid \epsilon

C→cC∣ϵC \rightarrow cC \mid \epsilon

B→bB∣bB \rightarrow bB \mid b

Which one of the following options gives the number of shift-reduce conflicts that will occur in the LR(0)LR(0) ACTION table?
Select one option