Give a regular grammar for L= {a^n b^n : n<=100}
I would do something like this :
s---> A | empty string
A---> aB| empty String
b---> Ab
but How do we keep count of the number in the grammar? meaning How does it know when there are more that 100 a's. Also I'm not even sure if my way makes sense.
Any help would be appreciated.