I have these two deterministic context-free grammars:
G1
and G2
with G1=(N1,T,P1,S1)
and G2=(N2,T,P2,S2)
(note that both grammars share the same set of terminal symbols)
I need to construct a grammar G3
with L(G3)=L(G1){L(G2)}*
I think the crucial point here is the common set of terminals. But I don't know how to proceed...
Any help?