Back to Search Start Over

Formalizing and testing the consistency of DSL transformations.

Authors :
Keshishzadeh, Sarmen
Mooij, Arjan
Source :
Formal Aspects of Computing; Apr2016, Vol. 28 Issue 2, p181-206, 26p
Publication Year :
2016

Abstract

A domain specific language (DSL) focuses on the essential concepts in a specific problem domain, and abstracts from low-level implementation details. The development of DSLs usually centers around the meta-model, grammar and code generator, possibly extended with transformations to analysis models. Typically, little attention is given to the formal semantics of the language, whereas this is essential for reasoning about DSL models, and for assessing the correctness of the generated code and analysis models. We argue that the semantics of a DSL should be defined explicitly and independently of any code generator, to avoid all kinds of complexities from low-level implementation details. As the generated analysis models must reflect some of these implementation details, we propose to formalize them separately. To assess the correctness and consistency of the generated code and analysis models in a practical way, we use conformance testing. We extensively illustrate this general approach using specific formalizations for an industrial DSL on collision prevention. We do not aim for a generic semantic model for any DSL, but this specific DSL indicates the potential of a modular semantics to facilitate reuse among DSLs. [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISSN :
09345043
Volume :
28
Issue :
2
Database :
Complementary Index
Journal :
Formal Aspects of Computing
Publication Type :
Academic Journal
Accession number :
114327192
Full Text :
https://doi.org/10.1007/s00165-016-0359-1