首页> 外文学位 >Boolean grammars: Expressive power and parsing algorithms.
【24h】

Boolean grammars: Expressive power and parsing algorithms.

机译:布尔语法:表达能力和解析算法。

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

摘要

Context-free grammars are extended with Boolean operations, yielding a new language specification formalism named Boolean grammars. By virtue of having been produced out of two intuitively clear fundamental concepts, Boolean grammars retain some of their genuine clarity, at the same time allowing to express more than could be expressed using the context-free grammars. The semantics of the formalism is defined using language equations. As a by-product of this definition, the fundamentals of the theory of language equations with Boolean operations are established.; Various sample grammars are given, ranging from the descriptions of the standard examples of non-context-free languages to a complete specification of the syntax of a simple imperative programming language. This shows Boolean grammars to be a sufficiently potent tool for language specification. At the same time, the major context-free parsing techniques, such as recursive descent, generalized LR and the Cocke-Kasami-Younger tabular algorithm, are demonstrated to have extensions for Boolean grammars. Several practically usable parsing algorithms for Boolean grammars are constructed and implemented in a research-oriented parser generator. It is shown that the increased expressive power of Boolean grammars does not demand sacrifices in terms of parsing complexity.; It is proved that the languages generated by Boolean grammars are context-sensitive. One more class of grammars, called dual concatenation grammars, is introduced and shown to be equivalent to Boolean grammars. A subclass of Boolean grammars, the linear Boolean grammars, is shown to be computationally equivalent to trellis automata and to linear conjunctive grammars.
机译:上下文无关的语法通过布尔运算进行了扩展,从而产生了一种新的语言规范形式,称为布尔语法。由于布尔语法是从两个直观清晰的基本概念中产生的,因此保留了一些真正的清晰度,同时允许表达的内容比使用上下文无关的语法表达的内容更多。形式主义的语义是使用语言方程式定义的。作为该定义的副产品,建立了具有布尔运算的语言方程式理论的基础。给出了各种示例语法,范围从非上下文无关语言的标准示例的描述到简单命令式编程语言的语法的完整规范。这表明布尔语法是用于语言规范的足够有效的工具。同时,主要的无上下文解析技术(例如递归下降,广义LR和Cocke-Kasami-Younger表格算法)被证明具有布尔语法的扩展。在面向研究的解析器生成器中构造并实现了几种布尔语法的实际可用解析算法。结果表明,布尔语法的增强表达能力在解析复杂度方面并不需要牺牲。事实证明,布尔语法生成的语言是上下文相关的。引入了另一类语法,称为双重级联语法,并显示为与布尔语法等效。布尔语法的子类,即线性布尔语法,在计算上等效于网格自动机和线性合取语法。

著录项

  • 作者

    Okhotin, Alexander.;

  • 作者单位

    Queen's University at Kingston (Canada).;

  • 授予单位 Queen's University at Kingston (Canada).;
  • 学科 Computer Science.
  • 学位 Ph.D.
  • 年度 2005
  • 页码 295 p.
  • 总页数 295
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类 自动化技术、计算机技术;
  • 关键词

  • 入库时间 2022-08-17 11:42:54

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号