I'm trying to figure out what will be the CFG for a language described like that:
- only one a
- 0 or more b
- 0 or more c
I tried this:
S -> a | Sb | Sc
Or something like that:
S -> a | B | C
B -> Bb
C -> Cc
but it doesn't seem to work. Is there any other/better way to describe that language with a CFG?