I have the following exercise (L={a^nb^ma^n|n,m>=1}) I solved similar questions, but I got stuck on that.
Asked
Active
Viewed 38 times
0
-
HINT: Design the grammar to generate the $a$s first and then switch over to generating $b$s. It can be done with just four productions using just two non-terminal symbols. – Brian M. Scott Nov 07 '20 at 21:00
-
Thank you for your help,i get it – proghan Nov 08 '20 at 18:47
-
Excellent! You’re welcome. – Brian M. Scott Nov 08 '20 at 18:49