edited by
392 views

1 Answer

0 votes
0 votes

S -> Saab / aSab / aaSb / aabS/ Saba / aSba / abSa / abaS / Sbaa / bSaa / baSa/ baaS / $\epsilon$

More simplified - 

S -> aSaSbS / aSbSaS / bSaSaS / $\epsilon$

edited by

Related questions

2 votes
2 votes
1 answer
1
Lakshya Mission 1 asked Jul 8, 2016
427 views
Please write grammar for it and explain with example.$L=\{w \: : n_a(w) n_b(w) \}$
0 votes
0 votes
1 answer
3
admin asked May 1, 2019
555 views
Give a context-free grammar that generates the language $A=\{a^{i}b^{j}c^{k}\mid i=j$ $\text{or}$ $ j=k$ $\text{where}$ $ i,j,k\geq 0\}.$ Is your grammar ambiguous$?$ Why...
0 votes
0 votes
0 answers
4