A grammar is ambiguous if some word has two different parse trees. Two grammars are weakly equivalent if they generate the same language, whatever trees they give.
else: in , the else belongs to the inner if (left) or to the outer one (right).Computer Science · المسرد
يُعرف أيضًا باسم: ambiguous grammar · weak equivalence (grammars)
A grammar is ambiguous if some word has two different parse trees. Two grammars are weakly equivalent if they generate the same language, whatever trees they give.
else: in , the else belongs to the inner if (left) or to the outer one (right).