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).