首页> 外文期刊>Computer Languages, Systems & Structures >On different LL and LR parsers used in LLLR parsing
【24h】

On different LL and LR parsers used in LLLR parsing

机译:在LLLR解析中使用的不同的LL和LR解析器上

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

摘要

As described in Slivnik (2016), LLLR parsing is a method that parses as much of its input string as possible using the backbone SLL(k) parser and uses small embedded canonical left LR(k) parsers to resolve LL conflicts. Once the LL conflict is resolved, the embedded parser produces the left parse of the substring it has just parsed and passes the control back to the backbone parser together with the information about how the backbone parser should realign its stack as a part of the input has been read by the embedded parser. The LLLR parser produces the left parse of the input string without any backtracking and, if used for a syntax -directed translation, it evaluates semantic actions using the same top -down strategy as the canonical LL(k) parser. In this paper, a more general approach towards LLLR parsing is presented as it is described how any kind of canonical LL(k) or LA(k)LL(k') parser can be used as the backbone parser and how different kinds of embedded canonical left LR(k) or left LA(k)LR(W) parsers can be used for LL conflict resolution. (C) 2017 Elsevier Ltd. All rights reserved.
机译:如Slivnik(2016)中所述,LLLR解析是一种使用主干SLL(k)解析器解析尽可能多的输入字符串并使用小型嵌入式规范左LR(k)解析器解决LL冲突的方法。解决了LL冲突后,嵌入式解析器将生成刚解析的子字符串的左解析,并将控制权连同有关骨干解析器应如何重新对齐其堆栈作为输入一部分的信息传递回骨干解析器被嵌入式解析器读取。 LLLR解析器将生成输入字符串的左侧解析,而不会进行任何回溯,并且如果用于语法指导的转换,它将使用与规范LL(k)解析器相同的自上而下的策略来评估语义动作。本文介绍了一种更通用的LLLR解析方法,因为它描述了如何将任何类型的规范LL(k)或LA(k)LL(k')解析器用作主干解析器以及如何进行不同类型的嵌入式规范的左LR(k)或左LA(k)LR(W)解析器可用于LL冲突解决。 (C)2017 Elsevier Ltd.保留所有权利。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号