首页> 外文OA文献 >The Lane Table Method Of Constructing LR(1) Parsers
【2h】

The Lane Table Method Of Constructing LR(1) Parsers

机译:构建LR(1)解析器的通道表方法

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

The first practical application of the LR algorithm was by [1] for the LALR(1) subset of LR(1) grammars. In [2] an efficient method of producing an LR(1) parser for all LR(1) grammars was described which involves resolving conflicts at states of the LR(0) parsing machine, employing two phases. In Phase 1 the contexts of the productions involved in conflicts are evaluated by a process described there called “lane tracing”. If conflicts cannot be resolved by these means, then in Phase 2 the parts of the machine involved in lane tracing are regenerated, avoiding the combination of states that potentially lead to conflicts. Other works along the same lines include [4, 5]. The criterion employed in [2] for determining whether or not states may be combined was that of weak compatibility, as defined in [3]. In this paper we describe an alternative method for determining whether states can be combined. According to testing by [6] this method requires less computation. It is also more efficient. when extending the method from LR(1) to LR(k) parsing as described in [7] where very large grammars may be used for the purposes of natural language translation. Taken together with Phase 1, this new method of Phase 2 will, as before, produce a conflict-free LR(1) parser for all LR(1) grammars.
机译:LR算法的第一个实际应用是由[1]处理LR(1)语法的LALR(1)子集。在[2]中,描述了一种为所有LR(1)语法生成LR(1)解析器的有效方法,该方法涉及解决LR(0)解析器的状态冲突,采用两个阶段。在第1阶段中,冲突所涉及的生产环境通过此处描述的称为“车道跟踪”的过程进行评估。如果无法通过这些方式解决冲突,则在阶段2中,将重新生成涉及车道跟踪的机器零件,避免可能导致冲突的状态组合。同样的其他著作包括[4,5]。如[3]中所定义,[2]中用于确定是否可以组合状态的标准是兼容性较弱的标准。在本文中,我们描述了一种确定状态是否可以组合的替代方法。根据[6]的测试,此方法需要较少的计算。效率也更高。当将方法从LR(1)扩展到LR(k)解析时,如[7]中所述,其中很大的语法可用于自然语言翻译。与阶段1一起,阶段2的这种新方法将像以前一样为所有LR(1)语法生成无冲突的LR(1)解析器。

著录项

  • 作者

    Pager D.;

  • 作者单位
  • 年度 2009
  • 总页数
  • 原文格式 PDF
  • 正文语种 en-US
  • 中图分类

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号