Typed quote/antiquote or: Compile-time parsing

被引:0
|
作者
Hinze, Ralf [1 ]
机构
[1] Univ Oxford, Dept Comp Sci, Oxford OX1 3QD, England
关键词
D O I
10.1017/S0956796811000050
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Haskell (Peyton Jones, 2003) is often used as a host language for embedding other languages. Typically, the abstract syntax of the guest language is defined by a collection of datatype declarations; parsers and pretty-printers convert between the concrete syntax and its abstract representation. A quote/antiquote mechanism permits a tighter integration of the guest language into the host language by allowing one to use phrases in the guest language's concrete syntax. For a simple example, assume that the abstract syntax of the guest language is given by the following datatype of binary trees. © 2011 Cambridge University Press.
引用
收藏
页码:219 / 234
页数:16
相关论文
共 50 条
  • [41] COMPILE-TIME ANALYSIS OF OBJECT-ORIENTED PROGRAMS
    VITEK, J
    HORSPOOL, RN
    UHL, JS
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1992, 641 : 236 - 250
  • [42] A FOUNDATION FOR ADVANCED COMPILE-TIME ANALYSIS OF LINDA PROGRAMS
    CARRIERO, N
    GELERNTER, D
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1992, 589 : 389 - 404
  • [43] RAD: A compile-time solution to buffer overflow attacks
    Chiueh, TC
    Hsu, FH
    [J]. 21ST INTERNATIONAL CONFERENCE ON DISTRIBUTED COMPUTING SYSTEMS, PROCEEDINGS, 2001, : 409 - 417
  • [44] COMPILE-TIME ANALYSIS OF NONLINEAR CONSTRAINTS IN CLP(R)
    HANUS, M
    [J]. NEW GENERATION COMPUTING, 1995, 13 (02) : 155 - 186
  • [45] Compile-time garbage collection for lazy functional languages
    Hamilton, GW
    [J]. MEMORY MANAGEMENT, 1995, 986 : 119 - 144
  • [46] DATA DESCRIPTORS - A COMPILE-TIME MODEL OF DATA AND ADDRESSING
    HOLT, RC
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1987, 9 (03): : 367 - 389
  • [47] Compile-time concurrent marking write barrier removal
    Nandivada, VK
    Detlefs, D
    [J]. CGO 2005: INTERNATIONAL SYMPOSIUM ON CODE GENERATION AND OPTIMIZATION, 2005, : 37 - 48
  • [48] Compile-time debugging of C programs working on trees
    Elgaard, J
    Moller, A
    Schwartzbach, MI
    [J]. PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2000, 1782 : 119 - 134
  • [49] Compile-Time Analysis and Specialization of Clocks in Concurrent Programs
    Vasudevan, Nalini
    Tardieu, Olivier
    Dolby, Julian
    Edwards, Stephen A.
    [J]. COMPILER CONSTRUCTION, PROCEEDINGS, 2009, 5501 : 48 - +
  • [50] Compile-Time Optimization of the Energy Consumption of Numerical Computations
    Ben Khalifa, Dorra
    Martel, Matthieu
    [J]. PROCEEDINGS OF THE 21ST ACM INTERNATIONAL CONFERENCE ON COMPUTING FRONTIERS 2024-WORKSHOPS AND SPECIAL SESSIONS, CF 2024 COMPANION, 2024, : 5 - 7