|
|
|
DSLs for Product Lines - Approaches, Tools, Experiences
The goal of this turorial is to show how Domain-Specific Languages fit into the over PLE approach, and how they
relate to and integrate with feature models.
Domain-Specific Languages are languages narrowly focused on a particular problem domain. Compared to feature models
they are more expressive, but possibly not as easy to use. Compared to source code, they are usually simpler, more
targeted and hence easier to use - although not quite as flexible. DSLs can play an important role in PLE, filling
the gap between configuration via feature models and low-level programming.
In this tutorial I will cover approaches, tools and experiences of using DSLs in PLE. I will start with briefly
introducing DSLs and their role in PLE. We will then look at a real-world DSL that has been used to describe a
product line of electrical devices. Next we will spend some time extending a DSL built with Eclipse Xtext to get
a feel for the tool and the involved effort. After that we will look at and extend a DSL for robot control, that
integrates nicely with the C programming language and feature models. This example is based on JetBrains MPS.
|