A grammar with more than one parse tree is called:

A grammar with more than one parse tree is called:
A. Unambiguous
B. Ambiguous
C. Regular
D. None of the mentioned
 
Answer: B
Explanation: A context free grammar G is ambiguous if there is at least one string in L(G) having two or more distinct derivation trees or equivalently, two or more distinct leftmost derivations.
 

Tìm kiếm

Back
Top