首页> 外文期刊>Science of Computer Programming >Recognition is not parsing - SPPF-style parsing from cubic recognisers
【24h】

Recognition is not parsing - SPPF-style parsing from cubic recognisers

机译:识别不是解析-三次识别器的SPPF样式解析

获取原文
获取原文并翻译 | 示例
           

摘要

In their recogniser forms, the Earley and RIGLR algorithms for testing whether a string can be derived from a grammar are worst-case cubic on general context free grammars (CFG). Earley gave an outline of a method for turning his recognisers into parsers, but it turns out that this method is incorrect. Tomita's GLR parser returns a shared packed parse forest (SPPF) representation of all derivations of a given string from a given CFG but is worst-case unbounded polynomial order. The parser version of the RIGLR algorithm constructs Tomita-style SPPFs and thus is also worst-case unbounded polynomial order. We have given a modified worst-case cubic GLR algorithm, that, for any string and any CFG, returns a binarised SPPF representation of all possible derivations of a given string. In this paper we apply similar techniques to develop worst-case cubic Earley and RIGLR parsing algorithms.
机译:在它们的识别器形式中,用于测试字符串是否可以从语法导出的Earley和RIGLR算法是通用上下文无关语法(CFG)的最坏情况三次方。 Earley概述了将识别器转换为解析器的方法,但事实证明该方法是不正确的。 Tomita的GLR解析器返回一个共享打包解析森林(SPPF)表示形式,该表示形式是从给定CFG中给定字符串的所有派生形式的,但它是最坏情况下的无界多项式阶数。 RIGLR算法的解析器版本可构造富田式SPPF,因此也是最坏情况的无界多项式阶。我们给出了一种改进的最坏情况三次GLR算法,该算法对于任何字符串和任何CFG,都将返回给定字符串所有可能派生形式的二值化SPPF表示。在本文中,我们应用类似的技术来开发最坏情况的三次Earley和RIGLR解析算法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号