MCQ · 2 marks · Context Free Languages

GATE CS 2017 CS-1 — Q37

Consider the context-free grammars over the alphabet {a,b,c}\lbrace a, b, c \rbrace given below. SS and TT are non-terminals.

G1:S→aSb∣T,T→cT∣εG_1: S \to aSb \mid T, T \to cT \mid \varepsilon
G2:S→bSa∣T,T→cT∣εG_2: S \to bSa \mid T, T \to cT \mid \varepsilon

The language L(G1)∩L(G2)L(G_1) \cap L(G_2) is
Select one option