首页> 外文会议>Software language engineering >Modelling GLL Parser Implementations
【24h】

Modelling GLL Parser Implementations

机译:建模GLL解析器实现

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

摘要

We describe the development of space-efficient implementations of GLL parsers, and the process by which we refine a set-theoretic model of the algorithm into a practical parser generator that creates practical parsers. GLL parsers are recursive descent-like, in that the structure of the parser's code closely mirrors the grammar rules, and so grammars (and their parsers) may be debugged by tracing the running parser in a debugger. While GLL recognisers are straightforward to describe, full GLL parsers present technical traps and challenges for the unwary. In particular, naive implementations based closely on the theoretical description of GLL can result in data structures that are not practical for grammars for real programming language grammars such as ANSI-C. We develop an equivalent formulation of the algorithm as a high-level set-theoretic model supported by table-based indices, in order to then explore a set of alternative implementations which trade space for time in ways which preserve the cubic bound.
机译:我们描述了GLL解析器的节省空间的实现的开发,以及将算法的集合论模型提炼为创建实际解析器的实际解析器生成器的过程。 GLL解析器类似于递归下降,因为解析器代码的结构紧密地反映了语法规则,因此可以通过在调试器中跟踪正在运行的解析器来调试语法(及其解析器)。虽然GLL识别器很容易描述,但完整的GLL解析器却为那些粗心的人带来了技术陷阱和挑战。特别地,紧密基于GLL的理论描述的幼稚实现可能会导致数据结构对于诸如ANSI-C之类的实际编程语言语法的语法不实用。我们开发了一种等效的算法表述形式,作为由基于表的索引支持的高级集合理论模型,以便随后探索一组替代实现方案,这些实现方案以保留立方边界的方式来交换时间。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号