首页> 外文期刊>Software >Reusable specification modules for type analysis
【24h】

Reusable specification modules for type analysis

机译:可重用的规范模块,用于类型分析

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

摘要

Type analysis can be characterized by a language-independent collection of standard computational roles such as 'typed identifier use' (e.g. a variable name appearing in an expression) and 'dyadic expression' (e.g. addition of two values). A type analyzer for a specific language is then defined by stating which language construct(s) play each role. The computational roles provide a framework for understanding the general process and a vocabulary for applying that understanding to the solution of particular problems. We have captured this knowledge in attribute grammar modules that are carefully designed to be combinable and adaptable, exporting language-independent roles that define the general type analysis problem. From this collection, the compiler designer instantiates the appropriate modules and identifies the relevant source-language constructs; an attribute grammar processor then weaves the necessary computations into the compiler's semantic analyzer. Our attribute grammar modules provide a precise definition of the actions constituting the various roles and the dependences among them. They can therefore also be used to describe the type analysis process to students, or to specify a hand-coded semantic analyzer.
机译:类型分析的特征在于独立于语言的标准计算角色集合,例如``类型化标识符使用''(例如,出现在表达式中的变量名)和``二进式表达式''(例如,两个值的加法)。然后,通过说明哪种语言构造扮演每个角色来定义特定语言的类型分析器。计算角色为理解一般过程提供了框架,并且为将这种理解应用于特定问题的解决提供了词汇。我们已经在属性语法模块中掌握了这些知识,这些属性语法模块经过精心设计以具有可组合性和适应性,可以导出定义一般类型分析问题的独立于语言的角色。编译器设计者从该集合中实例化适当的模块,并标识相关的源语言构造。然后,属性语法处理器将必要的计算编织到编译器的语义分析器中。我们的属性语法模块为构成各种角色及其之间的依存关系的动作提供了精确的定义。因此,它们还可以用于向学生描述类型分析过程,或指定手动编码的语义分析器。

著录项

  • 来源
    《Software》 |2009年第9期|833-864|共32页
  • 作者

    Uwe Kastens; William M. Waite;

  • 作者单位

    Universitaet Paderborn, 33102 Paderborn, Germany;

    University of Colorado, Boulder, CO 80309-0425, U.S.A.;

  • 收录信息 美国《科学引文索引》(SCI);美国《工程索引》(EI);
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

    compilers; type analysis; attribute grammars; reuse;

    机译:编译器;类型分析;属性语法;重用;
  • 入库时间 2022-08-17 13:03:57

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号