HIGHER-ORDER ATTRIBUTE GRAMMARS

被引:0
|
作者
SWIERSTRA, D
VOGT, H
机构
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Higher Order Attribute Grammars (HAGs) are an extension of normal attribute grammars in the sense that the distinction between the domain of parse-trees and the domain of attributes has disappeared: parse trees may be computed in attributes and grafted to the parse tree at various places. As a result semantic functions may be described by attribute evaluation. We will present the basic definitions for HAGs, and compare them with attribute coupled grammars, extended affix grammars and functional programming languages. We will indicate how multi-pass compilers and a compiler for supercombinators can be described this way. It will be shown that, especially in the case of incremental evaluation, the conventional execution model has to be generalised. Such a model, based on function caching, hash-consing and combinator construction will be discussed. This model encompasses many of the more ad-hoc optimisations one finds in standard implementations of normal attribute grammars.
引用
收藏
页码:256 / 296
页数:41
相关论文
共 50 条
  • [1] HIGHER-ORDER ATTRIBUTE GRAMMARS
    VOGT, HH
    SWIERSTRA, SD
    KUIPER, MF
    [J]. SIGPLAN NOTICES, 1989, 24 (07): : 131 - 145
  • [2] Termination analysis for higher-order attribute grammars
    Krishnan, Lijesh
    Van Wyk, Eric
    [J]. Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2013, 7745 LNCS : 44 - 63
  • [3] HIGHER-ORDER ATTRIBUTE GRAMMARS AND EDITING ENVIRONMENTS
    TEITELBAUM, T
    CHAPMAN, R
    [J]. SIGPLAN NOTICES, 1990, 25 (06): : 197 - 208
  • [4] Circular Higher-Order Reference Attribute Grammars
    Soderberg, Emma
    Hedin, Gorel
    [J]. SOFTWARE LANGUAGE ENGINEERING (SLE 2013), 2013, 8225 : 302 - 321
  • [5] EFFICIENT INCREMENTAL EVALUATION OF HIGHER-ORDER ATTRIBUTE GRAMMARS
    VOGT, H
    SWIERSTRA, D
    KUIPER, M
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1991, 528 : 231 - 242
  • [6] Component-based programming for higher-order attribute grammars
    Saraiva, J
    [J]. GENERATIVE PROGRAMMING AND COMPONENT ENGINEERING 2002, PROCEEDINGS, 2002, 2487 : 268 - 282
  • [7] Monolithic and modular termination analyses for higher-order attribute grammars
    Krishnan, Lijesh
    Van Wyk, Eric
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 2014, 96 : 511 - 526
  • [8] Efficient model-based fuzz testing using higher-order attribute grammars
    [J]. Pan, F. (dynamozhao@163.com), 1600, Academy Publisher (08):
  • [9] Memoized zipper-based attribute grammars and their higher order extension
    Fernandes, Joao Paulo
    Martins, Pedro
    Pardo, Alberto
    Saraiva, Joao
    Viera, Marcos
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 2019, 173 : 71 - 94
  • [10] HIGHER-ORDER ATTRIBUTE SEMANTICS OF FLAT DECLARATIVE LANGUAGES
    Grigorenko, Pavel
    Tyugu, Enn
    [J]. COMPUTING AND INFORMATICS, 2010, 29 (02) : 251 - 280