请输入您要查询的字词:

 

单词 ambiguous grammar
释义
ambiguous grammar

Computer
  • A context-free grammar that derives the same word by different derivation trees, or equivalently by different derivation sequences. A familiar programming language example is:

    Sif C then S else SSif C then S

    where S and C stand for statement and condition. This grammar is ambiguous since the following compound statement

    ifc1thenifc2thens2elses1

    has two interpretations, corresponding with two derivation trees, as shown in the diagram. See also inherently ambiguous language.

    ambiguous grammar

    Ambiguous grammar. Two derivation trees in an ambiguous grammar


随便看

 

科学参考收录了60776条科技类词条,基本涵盖了常见科技类参考文献及英语词汇的翻译,是科学学习和研究的有利工具。

 

Copyright © 2000-2023 Sciref.net All Rights Reserved
京ICP备2021023879号 更新时间:2025/3/10 5:42:49