Concepts as syntactic sugar

被引:2
|
作者
David, Valentin [1 ]
Haveraaen, Magne [1 ]
机构
[1] Univ Bergen, Inst Informat, N-5020 Bergen, Norway
来源
2009 NINTH IEEE INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION, PROCEEDINGS | 2009年
关键词
D O I
10.1109/SCAM.2009.26
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The coming standard for C++ will contain language extensions. It can be expected that there will be some years between the release of the new standard and the time when most compilers will be compliant, like it happened for the 1998 standard. Concepts are an extension proposed for the new standard. We show how we can translate ConceptC++ code into pure C++03 using the C++ template mechanism. Such a translation tool could be used for example to port software written using a ConceptC++ compiler to architectures having only older compilers. Or a library written using concepts could be used by a project written in pure C++. The goal of this transformation is not to provide all capabilities of ConceptC++, but with restrictions we can afford, to be as simple as possible.
引用
收藏
页码:147 / 156
页数:10
相关论文
共 50 条
  • [1] Semantics Lifting for Syntactic Sugar
    Guan, Zhichao
    Cao, Yiyuan
    Yu, Tailai
    Wang, Ziheng
    Wang, Di
    Hu, Zhenjiang
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2024, 8 (OOPSLA):
  • [2] CONNECTIONISM AND SYNTACTIC BINDING OF CONCEPTS
    DORFFNER, G
    BEHAVIORAL AND BRAIN SCIENCES, 1993, 16 (03) : 456 - 457
  • [3] Inferring Type Rules for Syntactic Sugar
    Pombrio, Justin
    Krishnamurthi, Shriram
    ACM SIGPLAN NOTICES, 2018, 53 (04) : 812 - 825
  • [4] 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
  • [5] Inferring type rules for syntactic sugar
    Pombrio J.
    Krishnamurthi S.
    ACM SIGPLAN Notices, 2018, 53 (04): : 812 - 825
  • [6] ALGEBRAIC CONCEPTS CONNECTIVE WITH SYNTACTIC ANALYSIS
    PAIR, C
    REVUE FRANCAISE D INFORMATIQUE DE RECHERCHE OPERATIONNELLE, 1970, 4 (NR3): : 3 - &
  • [7] ALGEBRAIC CONCEPTS BOUND TO SYNTACTIC ANALYSIS
    PAIR, C
    REVUE FRANCAISE D AUTOMATIQUE INFORMATIQUE RECHERCHE OPERATIONNELLE, 1970, 4 (NR3): : 3 - 29
  • [8] Alternative concepts for sugar silos
    Bergerhoff, Peter-Dirk
    SUGAR INDUSTRY-ZUCKERINDUSTRIE, 2013, 138 (01): : 44 - 51
  • [9] 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
  • [10] Resugaring: Lifting Evaluation Sequences through Syntactic Sugar
    Pombrio, Justin
    Krishnamurthi, Shriram
    ACM SIGPLAN NOTICES, 2014, 49 (06) : 361 - 371