The grammar
‘G1’
S ->OSO| ISI | 0|1|e
and the grammar‘G2’ is
S ->as |asb| X,
X ->Xa | a.
Which is the
correct statement ?
(A) G1 is
ambiguous, G2 is unambiguous
(B) G1 is
unambiguous, G2 is ambiguous
(C) Both G1 and
G2 are ambiguous
(D) Both G1 and
G2 are unambiguous
Answer(B).
No comments:
Post a Comment
Note: only a member of this blog may post a comment.