Tool Support for Component-Based Semantics

被引:9
作者
van Binsbergen, L. Thomas [1 ]
Sculthorpe, Neil [1 ]
Mosses, Peter D. [2 ]
机构
[1] Royal Holloway Univ London, Dept Comp Sci, London, England
[2] Swansea Univ, Dept Comp Sci, Swansea, W Glam, Wales
来源
COMPANION PROCEEDINGS OF THE 15TH INTERNATIONAL CONFERENCE ON MODULARITY (MODULARITY COMPANION'16) | 2016年
基金
英国工程与自然科学研究理事会;
关键词
Programming language semantics; modularity; reusability; tool support; rapid prototyping;
D O I
10.1145/2892664.2893464
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
The developers of a programming language need to document its intended syntax and semantics, and to update the documentation when the language evolves. They use formal grammars to define context-free syntax, but usually give only an informal description of semantics. Use of formal semantics could greatly increase the consistency and completeness of language documentation, support rapid prototyping, and allow empirical validation. Modularity of semantics is essential for practicality when scaling up to definitions of larger languages. Component-based semantics takes modularity to the highest possible level. In this approach, the semantics of a language is defined by equations translating its constructs (compositionally) to combinations of so-called fundamental constructs, or 'funcons'. The definition of each funcon is a small, highly reusable component. The PLANCOMPS project has defined a substantial library of funcons, and shown their reusability in several case studies. We have designed a meta-language called CBS for component-based semantics, and an IDE to support development, rapid prototyping, and validation of definitions in CBS. After introducing and motivating CBS, we demonstrate how the IDE can be used to browse and edit the CBS definition of a toy language, to generate a prototype implementation of the language, and to parse and run programs.
引用
收藏
页码:8 / 11
页数:4
相关论文
共 12 条
  • [11] An overview of the K semantic framework
    Rosu, Grigore
    Serbanuta, Traian Florin
    [J]. JOURNAL OF LOGIC AND ALGEBRAIC PROGRAMMING, 2010, 79 (06): : 397 - 434
  • [12] [No title captured]