1.

Given the production rules of a grammar G1 asS1 ? AB | aaBA ? a | AaB ? b and the production rules of a grammar G2 asS2 ? aS2bS2 | bS2aS2 | ?Which of the following is correct statement?

A. G1 is ambiguous and G2 is not ambiguous.
B. G1 is ambiguous and G2 is ambiguous.
C. G1 is not ambiguous and G2 is ambiguous.
D. G1 is not ambiguous and G2 is not ambiguous.
Answer» C. G1 is not ambiguous and G2 is ambiguous.


Discussion

No Comment Found