请输入您要查询的字词:

 

单词 top-down parsing
释义
top-down parsing

Computer
  • A strategy for parsing sentences of context-free grammars that attempts to construct a parse tree from the top down. The term includes techniques that may or may not involve backtracking.

    Beginning with a parse tree consisting of just the start symbol of the grammar, a top-down parser attempts to expand those leaf nodes labelled by nonterminals from left to right using the productions of the grammar. As leaves labelled by terminals are created they are matched against the input string. Should the match fail, new alternatives for the interior nodes are tried in a systematic way until the entire input string has been matched or no more alternatives are possible. A top-down parser without backtracking uses the information contained in the portion of the input string not yet matched to decide once and for all which alternatives to choose. The LL parsing technique is the most powerful example of the top-down strategy.

    Top-down parsing is often implemented as a set of recursive procedures, one for each nonterminal in the grammar, and is then called recursive descent parsing.


随便看

 

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

 

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