请输入您要查询的字词:

 

单词 parse tree
释义
parse tree

Computer
  • A tree defining the syntactic structure of a sentence in a context-free language. The interior nodes are labelled by nonterminals of the context-free grammar; the descendants of a node labelled by A, say, spell from left to right the right-hand side of some production having left-hand side A. The leaf nodes of a parse tree may be terminals or nonterminals. If all the leaves are terminals then they spell from left to right a sentence of the language.

    parse tree

    Parse tree.

    An example of a parse tree is shown in the diagram. It is assumed that the grammar in question has productions

    ABC,Bb,Ccc
    Note that it is conventional for the top of the tree to be its root and the bottom to be its leaves.

    An early stage in compiling a program usually consists of generating a parse tree in which the constructs that make up the program are expressed in terms of the syntax of the programming language.


随便看

 

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

 

Copyright © 2000-2023 Sciref.net All Rights Reserved
京ICP备2021023879号 更新时间:2024/6/30 23:09:08