利用选择性左角变换和因子分解的紧致非左递归文法
Compact non-left-recursive grammars using the selective left-corner transform and factoring
摘要:
左角变换从(概率)上下文无关文法和统一文法中移除左递归,从而允许使用简单的自顶向下解析技术。不幸的是,由标准左角变换产生的语法通常比原始的要大得多。本文所描述的选择性左角变换产生了一个变换后的语法,它模拟了用户指定的一组原始产品的左角识别,以及自顶向下的其他识别。结合两个因子分解,它产生的非左递归文法并不比原来的文法大多少。
英文摘要:
The left-corner transform removes left-recursion from (probabilistic) context-free grammars and unification grammars, permitting simple top-down parsing techniques to be used. Unfortunately the grammars produced by the standard left-corner transform are usually much larger than the original. The selective left-corner transform described in this paper produces a transformed grammar which simulates left-corner recognition of a user-specified set of the original productions, and top-down recognition of the others. Combined with two factorizations, it produces non-left-recursive grammars that are not much larger than the original.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。