Skip to main content
  • Textbook
  • © 2023

Domain-Specific Languages

Effective Modeling, Automation, and Reuse

  • Shows methods, design patterns, guidelines, and QA practices for defining high-level languages to build better software

  • Gives a unified language-independent account, covering object-oriented, functional, model-, and grammar-based paradigms

  • Includes many examples from industry and from open-source projects along with 277 programming and modeling exercises

Buying options

eBook USD 44.99
Price excludes VAT (USA)
  • ISBN: 978-3-031-23669-3
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book USD 59.99
Price excludes VAT (USA)

This is a preview of subscription content, access via your institution.

Table of contents (13 chapters)

  1. Front Matter

    Pages i-xix
  2. Using Modeling Languages

    • Andrzej Wąsowski, Thorsten Berger
    Pages 5-24
  3. Building Modeling Languages

    • Andrzej Wąsowski, Thorsten Berger
    Pages 25-46
  4. Domain Analysis and Abstract Syntax

    • Andrzej Wąsowski, Thorsten Berger
    Pages 47-85
  5. Concrete Syntax

    • Andrzej Wąsowski, Thorsten Berger
    Pages 87-142
  6. Static Semantics

    • Andrzej Wąsowski, Thorsten Berger
    Pages 143-199
  7. Static Semantics with Type Systems

    • Andrzej Wąsowski, Thorsten Berger
    Pages 201-232
  8. Model and Program Transformation

    • Andrzej Wąsowski, Thorsten Berger
    Pages 233-292
  9. Interpretation

    • Andrzej Wąsowski, Thorsten Berger
    Pages 293-320
  10. Code Generation

    • Andrzej Wąsowski, Thorsten Berger
    Pages 321-355
  11. Internal Domain-Specific Languages

    • Andrzej Wąsowski, Thorsten Berger
    Pages 357-394
  12. Software Product Lines

    • Andrzej Wąsowski, Thorsten Berger
    Pages 395-435
  13. Feature Modeling

    • Andrzej Wąsowski, Thorsten Berger
    Pages 437-457
  14. Model and Language Variability

    • Andrzej Wąsowski, Thorsten Berger
    Pages 459-486

About this book

This textbook describes the theory and the pragmatics of using and engineering high-level software languages – also known as modeling or domain-specific languages (DSLs) – for creating quality software. This includes methods, design patterns, guidelines, and testing practices for defining the syntax and the semantics of languages. While remaining close to technology, the book covers multiple paradigms and solutions, avoiding a particular technological silo. It unifies the modeling, the object-oriented, and the functional-programming perspectives on DSLs. 

The book has 13 chapters. Chapters 1 and 2 introduce and motivate DSLs. Chapter 3 kicks off the DSL engineering lifecycle, describing how to systematically develop abstract syntax by analyzing a domain. Chapter 4 addresses the concrete syntax, including the systematic engineering of context-free grammars. Chapters 5 and 6 cover the static semantics – with basic constraints as a starting point and type systems for advanced DSLs. Chapters 7 (Transformation), 8 (Interpretation), and 9 (Generation) describe different paradigms for designing and implementing the dynamic semantics, while covering testing and other kinds of quality assurance. Chapter 10 is devoted to internal DSLs. Chapters 11 to 13 show the application of DSLs and engage with simpler alternatives to DSLs in a highly distinguished domain: software variability. These chapters introduce the underlying notions of software product lines and feature modeling.

The book has been developed based on courses on model-driven software engineering (MDSE) and DSLs held by the authors. It aims at senior undergraduate and junior graduate students in computer science or software engineering. Since it includes examples and lessons from industrial and open-source projects, as well as from industrial research, practitioners will also find it a useful reference. The numerous examples include code in Scala 3, ATL, Alloy, C#, F#, Groovy, Java, JavaScript, Kotlin, OCL, Python, QVT, Ruby, and Xtend.  The book contains as many as 277 exercises. The associated code repository facilitates learning and using the examples in a course.


Keywords

  • Model-Driven Software Engineering
  • Software Language Design
  • Domain Analysis
  • Conceptual Modeling
  • Design Patterns
  • Domain Specific Languages
  • Software Development Methods

Authors and Affiliations

  • Department of Computer Science, IT University of Copenhagen, Copenhagen, Denmark

    Andrzej Wąsowski

  • Faculty of Computer Science, Ruhr University Bochum, Bochum, Germany

    Thorsten Berger

About the authors

Andrzej Wąsowski is a Professor of Software Engineering at the IT University of Copenhagen in Denmark. He has previously held visiting positions at Aalborg University (Denmark), INRIA Rennes (France), and University of Waterloo (Canada). His research and teaching concerns building better software in concrete software domains, where raising the level of abstraction is often necessary. He used, designed, and evolved domain specific languages for embedded systems, operating systems, robotics, data analytics, variability management, and safety engineering. He is an editorial board member of the International Journal on Software and Systems Modeling (SoSyM), has been General Chair of the ACM/IEEE International Conference on Model Driven Engineering Languages and System, is a Steering Committee Chair of International Conference on Fundamental Approaches to Software Engineering (FASE), and member of the steering committee of European joint Conferences on Theory and Practice of Software.

 

Thorsten Berger is a Professor in Computer Science at Ruhr University Bochum in Germany, with previous positions at Chalmers | University of Gothenburg (Sweden), University of Waterloo (Canada), IT University of Copenhagen (Denmark), and Leipzig University (Germany). His research focuses on automating software engineering for the next generation of intelligent, autonomous, and variant-rich software systems. Since automation requires abstraction, and abstraction requires  language, he has built many DSLs, as well has he taught building DSLs for model-driven software engineering in graduate courses. His research was supported by highly ranked grants, such as a Starting Grant from the Swedish Research Council and a fellowship from the Royal Swedish Academy of Sciences and the Wallenberg Foundation, one of the highest recognitions for researchers in Sweden. He received two best-paper awards, three distinguished reviewer awards, and two most-influential paper awards, the latter for studies of DSLs.


Bibliographic Information

  • Book Title: Domain-Specific Languages

  • Book Subtitle: Effective Modeling, Automation, and Reuse

  • Authors: Andrzej Wąsowski, Thorsten Berger

  • DOI: https://doi.org/10.1007/978-3-031-23669-3

  • Publisher: Springer Cham

  • eBook Packages: Computer Science, Computer Science (R0)

  • Copyright Information: Springer Nature Switzerland AG 2023

  • Softcover ISBN: 978-3-031-23668-6Published: 02 February 2023

  • eBook ISBN: 978-3-031-23669-3Published: 01 February 2023

  • Edition Number: 1

  • Number of Pages: XIX, 485

  • Number of Illustrations: 1 b/w illustrations

  • Topics: Software Engineering, IT in Business

Buying options

eBook USD 44.99
Price excludes VAT (USA)
  • ISBN: 978-3-031-23669-3
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book USD 59.99
Price excludes VAT (USA)