首页> 外文学位 >Indexical attribute grammars.
【24h】

Indexical attribute grammars.

机译:索引属性语法。

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

摘要

In this dissertation we define a new attribute grammar system--Indexical Attribute Grammars (IAG). In IAG we define attributes over an implicit indexical context space. The indexical context space is a multidimensional space which is the product of a tree dimension, a multitime dimension, and an identifier dimension. Attributes on the indexical context space are intensions, whose values vary over different contexts: nodes of a parse tree, multitime points, and symbols. Indexical attribute grammars with denotational semantics form a new class of attribute grammars.;Indexical attribute grammars allow non-local attribute dependencies by using node switching operators. The use of communication attributes can therefore be reduced substantially in indexical attribute grammars.;Indexical attribute grammars can define attributes based on iterative algorithms. The value of an attribute at a node on a given parse tree can be defined as a data stream (or a nested data stream for a nested iteration) over the multitime dimension. The value of an attribute at a time point can be viewed as the value of the attribute at a particular step of the iteration. The attributes defined by iterative algorithms are temporal attributes, varying over the multitime dimension. Circular attributes whose evaluation can be terminated can be defined as non-circular but temporal attributes using time switching operators.;In indexical attribute grammars, we can define an aggregate attribute at a node on a given parse tree as a collection of values, gathered from other nodes, which varies over the identifier dimension. The information about identifiers can be collected as elements at the corresponding identifier points in the aggregate attribute. An aggregated value in the identifier dimension is not monolithic, its individual elements can be referred to by other attribute definitions through context switching operators.;The attribute evaluation of indexical attribute grammars is based on the tagged demand-driven computation model. The definitions of attributes on a given parse tree form a dataflow graph. The evaluation of the attributes on the tree is the evaluation of the corresponding dataflow graph. Following the demand-driven method, only the values that are demanded at certain contexts are evaluated.
机译:本文定义了一种新的属性语法系统-索引属性语法(IAG)。在IAG中,我们在隐式索引上下文空间上定义属性。索引上下文空间是多维空间,它是树维,多时维和标识符维的乘积。索引上下文空间上的属性是内涵,它们的值在不同的上下文中有所不同:解析树的节点,多时间点和符号。具有指称语义的索引属性语法构成了一类新的属性语法。索引属性语法通过使用节点切换运算符允许非本地属性依赖性。因此,在索引属性语法中可以大大减少通信属性的使用。索引属性语法可以基于迭代算法定义属性。可以将给定解析树上某个节点上的属性值定义为多时维度上的数据流(或嵌套迭代的嵌套数据流)。在某个时间点的属性值可以视为迭代特定步骤的属性值。迭代算法定义的属性是时间属性,在多时维度上变化。可以终止其评估的循环属性可以使用时间切换运算符定义为非圆形但时间属性。在索引属性语法中,我们可以将给定解析树上某个节点的聚合属性定义为从中收集的值的集合其他节点,它们在标识符维度上有所不同。可以将有关标识符的信息作为元素收集在聚合属性中的相应标识符点处。标识符维度中的聚合值不是唯一的,其他元素定义可以通过上下文切换运算符引用其单个元素。索引属性语法的属性评估基于标记的需求驱动的计算模型。给定的分析树上的属性定义形成数据流图。树上属性的评估是对相应数据流图的评估。遵循需求驱动方法,仅评估在特定上下文中需求的值。

著录项

  • 作者

    Tao, Senhua.;

  • 作者单位

    University of Victoria (Canada).;

  • 授予单位 University of Victoria (Canada).;
  • 学科 Computer science.
  • 学位 Ph.D.
  • 年度 1994
  • 页码 162 p.
  • 总页数 162
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号