高级检索

    属性文法及其应用

    Attributed Grammars and Their Application

    • 摘要: 本文介绍属性文法及其在编译结构中的应用。属性文法是描述程序设计语言语义特性的合适工具。GAG系统是建立在属性文法基础上的编译生成系统。本文先扼要介绍属性文法、GAG系统以及GAG的输入语言ALADIN.然后使用ALADIN语言给出程序设计语言的作用域规则、类型和类型检查、运算符超载等语义特性的形式说明的方法。本文最后列举在VAX/VMS下生成词法分析程序、语法分析程序、编译程序以及运行编译程序的操作系统命令。

       

      Abstract: Astract: In this paper attributed grammars and their application to compiler construction are presented. The attributed grammars are a well suitable tool for describing semantic properties of programming languages. GAG-System is a compiler generator based on attributed grammars. In this paper we briefly present the attributed grammars, GAGSystem and its input language ALADIN, and then give a method for formally specifying semantic properties of programming languages scope rules, types, type checking, and operator overloading by means of ALADIN. In the end, we enumerate the commands of generating scanner, parser, compiler and compiler running under VAX/VMS.

       

    /

    返回文章
    返回