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 条
  • [1] Inferring Type Rules for Syntactic Sugar
    Pombrio, Justin
    Krishnamurthi, Shriram
    PROCEEDINGS OF THE 39TH ACM SIGPLAN CONFERENCE ON PROGRAMMING LANGUAGE DESIGN AND IMPLEMENTATION, PLDI 2018, 2018, : 812 - 825
  • [2] Inferring type rules for syntactic sugar
    Pombrio J.
    Krishnamurthi S.
    ACM SIGPLAN Notices, 2018, 53 (04): : 812 - 825
  • [3] Inferring syntactic rules for word alignment through Inductive Logic Programming
    Ozdowska, Sylwia
    Claveau, Vincent
    LREC 2010 - SEVENTH INTERNATIONAL CONFERENCE ON LANGUAGE RESOURCES AND EVALUATION, 2010,
  • [4] Syntactic rules predict song type matching in a songbird
    Searcy, William A. A.
    Chronister, Lauren M. M.
    Nowicki, Stephen
    BEHAVIORAL ECOLOGY AND SOCIOBIOLOGY, 2023, 77 (01)
  • [5] Syntactic rules predict song type matching in a songbird
    William A. Searcy
    Lauren M. Chronister
    Stephen Nowicki
    Behavioral Ecology and Sociobiology, 2023, 77
  • [6] SYNTACTIC COPYING RULES
    KONIG, E
    ROHDENBU.G
    LINGUISTICS, 1972, (92) : 46 - 54
  • [7] Concepts as syntactic sugar
    David, Valentin
    Haveraaen, Magne
    2009 NINTH IEEE INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION, PROCEEDINGS, 2009, : 147 - 156
  • [8] BUNDLES AS SYNTACTIC RULES
    REIMANN, D
    JOURNAL OF LINGUISTIC CALCULUS, 1980, (04): : 47 - 65
  • [9] SYNTACTIC RULES IN GERMAN
    LEROT, J
    DEUTSCHE SPRACHE, 1985, 13 (02): : 137 - 142
  • [10] Syntactic rules alone can account for song type matching in a songbird
    Nowicki, Steve
    Chronister, Lauren
    Soha, Jill
    Peters, Susan
    Searcy, William
    INTEGRATIVE AND COMPARATIVE BIOLOGY, 2024, 64 : S377 - S378