Pergunta

I need help creating a Context Free Grammar which starts and ends with 00.

The language to be used will be {0,1}

Foi útil?

Solução

S -> AA | AAA | AABAA
A -> 0
B -> eps | 0B | 1B
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top