A Lazy Desugaring System for Evaluating Programs with Sugars

被引:1
|
作者
Yang, Ziyi [1 ]
Xiao, Yushuo [2 ,3 ]
Guan, Zhichao [2 ,3 ]
Hu, Zhenjiang [2 ,3 ]
机构
[1] Natl Univ Singapore, Sch Comp, Singapore, Singapore
[2] Minist Educ, Key Lab High Confidence Software Technol, Beijing, Peoples R China
[3] Peking Univ, Sch Comp Sci, Beijing, Peoples R China
关键词
D O I
10.1007/978-3-030-99461-7_14
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Extending a programming language with syntactic sugars is common practice in language design. Given a core language, one can define a surface language on top of it with sugars. We propose a lazy desugaring system, which can generate the evaluation sequences of sugar programs in the syntax of the surface language. Specifically, we define an evaluation strategy on a mixed language which combines syntactic sugars with the core language. We formulate two properties, emulation and laziness, and prove that the evaluation strategy produces correct evaluation sequences. Besides, we have implemented a system based on this novel method and demonstrate its usefulness with several examples.
引用
收藏
页码:243 / 261
页数:19
相关论文
共 50 条
  • [1] A transformation system for lazy functional logic programs
    Alpuente, M
    Falaschi, M
    Moreno, G
    Vidal, G
    FUNCTIONAL AND LOGIC PROGRAMMING, PROCEEDINGS, 1999, 1722 : 147 - 162
  • [2] LAZY DEBUGGING OF LAZY FUNCTIONAL PROGRAMS
    SNYDER, RM
    NEW GENERATION COMPUTING, 1990, 8 (02) : 139 - 161
  • [3] Lazy Programs Leak Secrets
    Buiras, Pablo
    Russo, Alejandro
    SECURE IT SYSTEMS, NORDSEC 2013, 2013, 8208 : 116 - 122
  • [4] SYSTEM FOR EVALUATING TRAINING-PROGRAMS
    DEMING, BS
    PERSONNEL, 1979, 56 (06) : 33 - 41
  • [5] Specialization of lazy functional logic programs
    Alpuente, M
    Falaschi, M
    Julian, P
    Vidal, G
    ACM SIGPLAN NOTICES, 1997, 32 (12) : 151 - 162
  • [6] Axioms for strict and lazy functional programs
    Stärk, RE
    ANNALS OF PURE AND APPLIED LOGIC, 2005, 133 (1-3) : 293 - 318
  • [7] AUTOMATIC PARALLELIZATION OF LAZY FUNCTIONAL PROGRAMS
    HOGEN, G
    KINDLER, A
    LOOGEN, R
    LECTURE NOTES IN COMPUTER SCIENCE, 1992, 582 : 254 - 268
  • [8] Lazy functional programs in a concurrent environment
    Feijs, LMG
    Reniers, MA
    COMPUTER JOURNAL, 1997, 40 (09): : 572 - 584
  • [9] Automated system for evaluating higher education programs
    Serhani, Mohamed Adel
    Bouktif, Salah
    Al-Qirim, Nabeel
    El Kassabi, Hadeel T.
    EDUCATION AND INFORMATION TECHNOLOGIES, 2019, 24 (05) : 3107 - 3128
  • [10] Automated system for evaluating higher education programs
    Mohamed Adel Serhani
    Salah Bouktif
    Nabeel Al-Qirim
    Hadeel T. El Kassabi
    Education and Information Technologies, 2019, 24 : 3107 - 3128