Inferring Type Rules for Syntactic Sugar

被引:0
|
作者
Pombrio, Justin [1 ]
Krishnamurthi, Shriram [1 ]
机构
[1] Brown Univ, Providence, RI 02912 USA
关键词
Programming Languages; Syntactic Sugar; Macros; Type Systems; Resugaring;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Type systems and syntactic sugar are both valuable to programmers, but sometimes at odds. While sugar is a valuable mechanism for implementing realistic languages, the expansion process obscures program source structure. As a result, type errors can reference terms the programmers did not write (and even constructs they do not know), baffling them. The language developer must also manually construct type rules for the sugars, to give a typed account of the surface language. We address these problems by presenting a process for automatically reconstructing type rules for the surface language using rules for the core. We have implemented this theory, and show several interesting case studies.
引用
收藏
页码:812 / 825
页数:14
相关论文
共 50 条
  • [21] Inferring the semantic properties of sentences by mining syntactic parse trees
    Galitsky, Boris A.
    Lluis de la Rosa, Josep
    Dobrocsi, Gabor
    DATA & KNOWLEDGE ENGINEERING, 2012, 81-82 : 21 - 45
  • [22] Inferring understandable rules through digital synthesis
    Muselli, M
    Liberati, D
    NEURAL NETS - WIRN VIETRI-99, 1999, : 284 - 289
  • [23] Inferring comprehensible business/ICT alignment rules
    Cumps, Bjorn
    Martens, David
    De Backer, Manu
    Haesen, Raf
    Viaene, Stijn
    Dedene, Guido
    Baesens, Bart
    Snoeck, Monique
    INFORMATION & MANAGEMENT, 2009, 46 (02) : 116 - 124
  • [24] Inferring the rules of social interaction in migrating caribou
    Torney, Colin J.
    Lamont, Myles
    Debell, Leon
    Angohiatok, Ryan J.
    Leclerc, Lisa-Marie
    Berdahl, Andrew M.
    PHILOSOPHICAL TRANSACTIONS OF THE ROYAL SOCIETY B-BIOLOGICAL SCIENCES, 2018, 373 (1746)
  • [25] Inferring grammar rules of programming language dialects
    Dubey, Alpana
    Jalote, Pankaj
    Aggarwal, Sanjeev Kumar
    GRAMMATICAL INFERENCE: ALGORITHMS AND APPLICATIONS, PROCEEDINGS, 2006, 4201 : 201 - 213
  • [26] INFERRING THE DISTRIBUTIONAL EFFECTS OF BUREAUCRATIC DECISION RULES
    COULTER, PB
    POLICY STUDIES JOURNAL, 1983, 12 (02) : 347 - 355
  • [27] A description method of syntactic rules on Japanese filmscript
    Kurosawa, Y
    Ichimura, T
    Aizawa, T
    KNOWLEDGE-BASED INTELLIGNET INFORMATION AND ENGINEERING SYSTEMS, PT 2, PROCEEDINGS, 2003, 2774 : 446 - 453
  • [28] SYNTACTIC BLOCKING OF PHONOLOGICAL RULES IN SPEECH PRODUCTION
    COOPER, WE
    LAPOINTE, SG
    PACCIA, JM
    JOURNAL OF THE ACOUSTICAL SOCIETY OF AMERICA, 1977, 61 (05): : 1314 - 1320
  • [29] Inference rules of syntactic spread for the alignment of words
    Ozdowska, Sylwia
    Claveau, Vincent
    TRAITEMENT AUTOMATIQUE DES LANGUES, 2006, 47 (01): : 167 - 186
  • [30] Inferring individual rules from collective behavior
    Lukeman, Ryan
    Li, Yue-Xian
    Edelstein-Keshet, Leah
    PROCEEDINGS OF THE NATIONAL ACADEMY OF SCIENCES OF THE UNITED STATES OF AMERICA, 2010, 107 (28) : 12576 - 12580