0
$\begingroup$

I look for grammar which use letters $a,b,c$ that numbers of letters $c$ is greater than number of letters $b$.

Example: $acbccba$

I thought about:

$$S \rightarrow aS \mid bS \mid SCS$$ $$C \rightarrow cb \mid ca$$

but not sure if it work. Could you help me, please.

$\endgroup$
0

0

Browse other questions tagged or ask your own question.