The following grammar G = (N, T, P, S) N = {S, A, B}
T = {a, b, c}
P : S ? aSa
S ? aAa
A ? bB
B ? bB
B ? c is
T = {a, b, c}
P : S ? aSa
S ? aAa
A ? bB
B ? bB
B ? c is
is type 2 but not type 3
Well Done.
is type 3
is type 1 but not type 2
is type 0 but not type 1