I have tried a few solutions to the above problem but havig huge doubts. Can someone please break it down for me step by step on how to reach a solution if I want to define a CFG with atmost 3 a's (over alphabets a,b)?
I thought of:
- S -> BABABAB
- A -> a
- A -> b
A -> e (blank)
B -> bB
- B -> b
- B -> e (blank)
( I have a feeling it is not right)