【24h】

Generation of Indexes for Compiling Efficient Parsers from Formal Specifications

机译:根据正式规范生成用于编译高效解析器的索引

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

摘要

Parsing schemata provide a formal, simple and uniform way to describe, analyze and compare different parsing algorithms. The notion of a parsing schema comes from considering parsing as a deduction process which generates intermediate results called items. An initial set of items is directly obtained from the input sentence, and the parsing process consists of the application of inference rules (called deductive steps) which produce new items from existing ones. Each item contains a piece of information about the sentence's structure, and a successful parsing process will produce at least one final item containing a full parse tree for the sentence or guaranteeing its existence. Their abstraction of low-level details makes parsing schemata useful to define parsers in a simple and straightforward way. Comparing parsers, or considering aspects such as their correction and completeness or their computational complexity, also becomes easier if we think in terms of schemata. However, when we want to actually use a parser by running it on a computer, we need to implement it in a programming language, so we have to abandon the high level of abstraction and worry about implementation details that were irrelevant at the schema level. In particular, we study in this article how the source parsing schema should be analysed to decide what kind of indexes need to be generated in order to obtain an efficient parser.
机译:解析方案提供了描述,分析和比较不同解析算法的正式,简单且统一的方式。解析模式的概念来自将解析视为一种演绎过程,该演绎过程会生成称为项目的中间结果。从输入句子中直接获得一组初始项,而解析过程包括应用推理规则(称为演绎步骤),这些规则从现有项中产生新项。每个项目都包含一条有关句子结构的信息,一个成功的解析过程将产生至少一个最终项目,其中包含一个完整的句子分析树或保证其存在。他们对低层细节的抽象使解析模式对于以简单明了的方式定义解析器很有用。如果我们从图式方面考虑,比较分析器或考虑诸如校正和完整性或计算复杂性等方面也将变得更加容易。但是,当我们想通过在计算机上运行来实际使用解析器时,我们需要以编程语言来实现它,因此我们不得不放弃较高的抽象级别,并担心与架构级别无关的实现细节。特别是,我们在本文中研究如何分析源解析模式,以决定需要生成哪种索引才能获得有效的解析器。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号