The first grammar generates
because adds two 's and terminates the derivation.
In the second grammar, is a nonproductive nonterminal: every right-hand side of a -production still contains a . Consequently the branch never yields a terminal word. Every terminal derivation from instead uses repeatedly and ends with , so
The grammars are therefore equivalent, although they are not isomorphic.

Articles by others on the same topic (0)

There are currently no matching articles.