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 条
  • [41] A method for inferring design rules with explicit bounds of applicability
    Rawson, Kevin
    Stahovich, Thomas F.
    Proceedings of the ASME International Design Engineering Technical Conferences and Computers and Information in Engineering Conference, 2005, Vol 2, Pts A and B, 2005, : 33 - 42
  • [42] Inferring higher level policies from firewall rules
    Tongaonkar, Alok
    Inamdar, Niranjan
    Sekar, R.
    USENIX ASSOCIATION PROCEEDING OF THE 21ST LARGE INSTALLATION SYSTEMS ADMINISTRATION CONFERENCE, 2007, : 17 - 26
  • [43] Songbirds possess the spontaneous ability to discriminate syntactic rules
    Kentaro Abe
    Dai Watanabe
    Nature Neuroscience, 2011, 14 : 1067 - 1074
  • [44] Visualization of differences between rules' syntactic and semantic similarities
    Tsumoto, S
    INTERNATIONAL CONFERENCE ON SYSTEMS, MAN AND CYBERNETICS, VOL 1-4, PROCEEDINGS, 2005, : 3588 - 3592
  • [46] Inferring Crypto API Rules from Code Changes
    Paletov, Rumen
    Tsankov, Petar
    Raychev, Veselin
    Vechev, Martin
    ACM SIGPLAN NOTICES, 2018, 53 (04) : 450 - 464
  • [47] Inferring Business Rules from Natural Language Expressions
    Aiello, Giovanni
    Di Bernardo, Roberto
    Maggio, Martino
    Di Bona, Daniele
    Lo Re, Giuseppe
    2014 IEEE 7TH INTERNATIONAL CONFERENCE ON SERVICE-ORIENTED COMPUTING AND APPLICATIONS (SOCA), 2014, : 131 - 136
  • [48] Korean Syntactic Analysis using Dependency Rules and Segmentation
    Park, Yong-uk
    Kwon, Hyuk-chul
    ALPIT 2008: SEVENTH INTERNATIONAL CONFERENCE ON ADVANCED LANGUAGE PROCESSING AND WEB INFORMATION TECHNOLOGY, PROCEEDINGS, 2008, : 59 - +
  • [49] Modeling With Monads Extensible Modeling Semantics as Syntactic Sugar
    Hoeger, Christoph
    7TH INTERNATIONAL WORKSHOP ON EQUATION-BASED OBJECT-ORIENTED MODELING LANGUAGES AND TOOLS, 2016, : 15 - 24
  • [50] Resugaring: Lifting Evaluation Sequences through Syntactic Sugar
    Pombrio, Justin
    Krishnamurthi, Shriram
    ACM SIGPLAN NOTICES, 2014, 49 (06) : 361 - 371