guys I've been working on this assignment for my formal languages class for a couple of days now, and I'm stuck when it comes to generating grammars for a given language. I don't have an example in my textbook similar to this question to follow, so I was hoping anyone could provide an explanation. thank you.
To solve the problem:
I actually did this part for you: L
defines that any words in that language start with any number (including 0) of a
or b
, followed by 1 or more a
s, follwoed by one b
, maybe followed by any number of a
s, followed by the same character it started with (or a repetition of them).