Exercício 08.21

Converta para a Forma Normal de Chomsky a gramática:

G = ({S, T, L}, {a, b, +, -, *, /, [, ]}, P, S)
P = {< S >  ->  < T > + < S >
            |   < T > - < S >
            |   < T >
     < T >  ->  < L > * < T >
            |   < L > / < T >
            |   < L >
     < L >  ->  a
            |   b
            |   [ < S > ] }

Recomendamos

Clique Alimentos Copy Duolingo