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 条
  • [31] Isomer generation: Syntactic rules for detection of isomorphism
    Lukovits, I
    JOURNAL OF CHEMICAL INFORMATION AND COMPUTER SCIENCES, 1999, 39 (03): : 563 - 568
  • [32] REPRESENTATIONS WITHOUT RULES, CONNECTIONISM AND THE SYNTACTIC ARGUMENT
    AIZAWA, K
    SYNTHESE, 1994, 101 (03) : 465 - 492
  • [33] Inferring meaning from syntactic structures in acquisition: The case of transitivity and telicity
    Wagner, Laura
    LANGUAGE AND COGNITIVE PROCESSES, 2010, 25 (10): : 1354 - 1379
  • [34] Syntactic type abstraction
    Grossman, D
    Morrisett, G
    Zdancewic, S
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2000, 22 (06): : 1037 - 1080
  • [35] SUGAR RULES FOR PROTEIN DRUGS
    不详
    CHEMICAL & ENGINEERING NEWS, 2011, 89 (06) : 26 - 26
  • [36] Inferring the importance of arguments: Order effects and conversational rules
    Igou, ER
    Bless, H
    JOURNAL OF EXPERIMENTAL SOCIAL PSYCHOLOGY, 2003, 39 (01) : 91 - 99
  • [37] Inferring acceptance and rejection in dialog by default rules of inference
    Walker, MA
    LANGUAGE AND SPEECH, 1996, 39 : 265 - 304
  • [38] Inferring Crypto API Rules from Code Changes
    Paletov, Rumen
    Tsankov, Petar
    Raychev, Veselin
    Vechev, Martin
    PROCEEDINGS OF THE 39TH ACM SIGPLAN CONFERENCE ON PROGRAMMING LANGUAGE DESIGN AND IMPLEMENTATION, PLDI 2018, 2018, : 450 - 464
  • [39] Identification of wetland based on machine learning rules inferring
    Ruan, R
    Feng, X
    Xiao, P
    IGARSS 2005: IEEE INTERNATIONAL GEOSCIENCE AND REMOTE SENSING SYMPOSIUM, VOLS 1-8, PROCEEDINGS, 2005, : 2478 - 2481
  • [40] Inferring Hierarchical Pronunciation Rules from a Phonetic Dictionary
    Pigliapoco, Erika
    Freschi, Valerio
    Bogliolo, Alessandro
    PROCEEDINGS OF WORLD ACADEMY OF SCIENCE, ENGINEERING AND TECHNOLOGY, VOL 28, 2008, 28 : 75 - 82