3

Suppose I have the following context-free grammar:

$ S = A \\ A = aA $

Will the resulting language be context-free?

If it is, this would also mean a Turing machine should be able to produce it, since it's higher in the hierarchy. But how? Wouldn't it infinite loop?

If it is not, does that mean that there are certain context-free grammars that do not produce a context-free language? This seems bizarre.

0 Answers0