S->aSb/ab
If you try to check what strings the grammar generates then you will find that they are in the form of {anbn/n>0}.
S->aSb>aaSbb->aaaSbbb->aaaabbbb (like this)
This can't be a regular language because we have to remember the count of a and match it with b. In FSM we don't have any mechanism to "remember" anything..
64.3k questions
77.9k answers
244k comments
80.0k users