左递归
在计算机科学里面,左递归是一种递归的特殊状况。
在上下文无关文法内里的说法,,若一个非终端符号(non-terminal)r
有任何直接的文法规则或者透过多个文法规则,推导出的句型(sentential form)其中最左边的符号 又会出现r
,则我们说这个非终端符号r
是左递归的。
使用类似的方式我们可以定义出某文法本身是左递归的。
单词 | Left recursion |
释义 |
Left recursion
中文百科
左递归在计算机科学里面,左递归是一种递归的特殊状况。 在上下文无关文法内里的说法,,若一个非终端符号(non-terminal) 使用类似的方式我们可以定义出某文法本身是左递归的。
英语百科
Left recursion 左递归![]() ![]() In the formal language theory of computer science, left recursion is a special case of recursion where a string is recognized as part of a language by the fact that it decomposes into a string from that same language (on the left) and a suffix (on the right). For instance, |
随便看 |
|
英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。