Dynsem: A DSL for dynamic semantics specification

Conference Paper (2015)
Author(s)

Vlad Vergu (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Pierre Neron (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Eelco Visser (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Research Group
Programming Languages
DOI related publication
https://doi.org/10.4230/LIPIcs.RTA.2015.365 Final published version
More Info
expand_more
Publication Year
2015
Language
English
Research Group
Programming Languages
Volume number
36
Pages (from-to)
365-378
ISBN (electronic)
9783939897859
Event
26th International Conference on Rewriting Techniques and Applications, RTA 2015 (2015-06-29 - 2015-07-01), Warsaw, Poland
Page Views
396
Collections
Institutional Repository
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

The formal semantics of a programming language and its implementation are typically separately defined, with the risk of divergence such that properties of the formal semantics are not properties of the implementation. In this paper, we present DynSem, a domain-specific language for the specification of the dynamic semantics of programming languages that aims at supporting both formal reasoning and efficient interpretation. DynSem supports the specification of the operational semantics of a language by means of statically typed conditional term reduction rules. DynSem supports concise specification of reduction rules by providing implicit build and match coercions based on reduction arrows and implicit term constructors. DynSem supports modular specification by adopting implicit propagation of semantic components from I-MSOS, which allows omitting propagation of components such as environments and stores from rules that do not affect those. DynSem supports the declaration of native operators for delegation of aspects of the semantics to an external definition or implementation. DynSem supports the definition of auxiliary meta-functions, which can be expressed using regular reduction rules and are subject to semantic component propagation. DynSem specifications are executable through automatic generation of a Java-based AST interpreter.