首页> 外文期刊>New Generation Computing >Circular Attribute Grammars with Remote Attribute References and their Evaluators
【24h】

Circular Attribute Grammars with Remote Attribute References and their Evaluators

机译:具有远程属性引用的圆形属性文法及其评估器

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

摘要

Attribute grammars (AGs) are a suitable formalism for the development of language processing systems. However, for languages including unrestricted labeled jumps, such as "goto" in C, the optimizers in compilers are difficult to write in AGs. This is due to two problems that few previous researchers could deal with simultaneously, i.e., references of attribute values on distant nodes and circularity in attribute dependency. This paper proposes circular remote attribute grammars (CRAGs), an extension of AGs that allows (1) direct relations between two distant attribute instances through pointers referring to other nodes in the derivation tree, and (2) circular dependencies, under certain conditions including those that arise from remote references. This extension gives AG programmers a natural means of describing language processors and programming environments for languages that include any type of jump structure. We also show a method of constructing an efficient evaluator for CRAGs called a mostly static evaluator. The performance of the proposed evaluator has been measured and compared with dynamic and static evaluators.
机译:属性语法(AG)是语言处理系统开发的合适形式。但是,对于包括不受限制的标记跳转的语言,例如C语言中的“ goto”,编译器中的优化器很难在AG中编写。这是由于以前的研究人员很少能同时处理的两个问题,即遥远节点上属性值的引用和属性依赖中的循环性。本文提出了循环远程属性文法(CRAG),它是AG的扩展,它允许(1)通过引用派生树中其他节点的指针在两个遥远的属性实例之间建立直接关系,以及(2)在某些条件下包括这些条件的循环依赖关系源自远程引用。该扩展为AG程序员提供了一种自然的方式来描述语言处理器和包含任何类型跳转结构的语言的编程环境。我们还展示了一种构造CRAG的有效评估器的方法,该方法称为静态评估器。已对拟议评估人员的绩效进行了评估,并与动态和静态评估人员进行了比较。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号