Modelling Systems and Languages
AbstractThe goal of this course is to give you a mindset of working with software in an abstract and semi-automated fashion, as in a production process (as opposed to a hand crafting process).
This is the first course of the Software Analysis specialization and it focuses on constructive skills: you learn to design, evaluate, and implement new languages that meet the needs of your projects. You use them to describe systems concisely and with less errors.
The goals of this course are achieved by introducing modeling languages and models as first class artifacts that are designed, manipulated, transformed and translated to code in an automatic fashion.
Subjects will include
- Domain-modeling, feature modeling, meta-modeling and design of domain specific languages
- Concrete Syntax, and concrete syntax editors
- Parsing with parser combinators
- Architecture modeling, product line architectures, variability modeling
- Structural constraints
- Model Transformation and code generation
- Implementation of external domain-specific languages using generic tools
- Implementation of internal domain-specific languages
All programming is performed in Java, Xtend or Scala
to enable common discussion, joint supervision and a shared learning process.
However, the ideas can be realized in many programming languages.
Formal prerequisitesYou are a confident software developer, knowledgeable in programming language paradigms and concepts, able to work with (moderately) complex development projects yourself. These abilities can normally be obtained by following a Bachelor programme in software development.
- Classes and Interfaces
- Generic Types
- Basic data structures
- Lists, Trees and Graphs
- Basic complexity
- Abstract and Concrete Syntax
- Parsing, Interpretation and Compilation
- Development Processes
- Quality Assurance
- Modeling (e.g., UML Class Diagrams)
Intended learning outcomes
After the course, the student should be able to:
- Perform domain analysis of a problem domain, obtain a meta-model expressed as a class diagram or an algebraic data type.
- Design and implement external domain specific languages
- Design and implement internal domain specific languages
- Define semantics of simple operational and structural languages
- Describe and discuss the main techniques used for domain modeling and implementation (domain specific languages, modelling frameworks, transformation languages, code generators, concrete syntax and models, type checkers)
- Manipulate abstract syntax representations programatically
- Design and improve concrete textual syntax for modeling language, including writing and refactoring context free grammars, eliminating left-recursion, etc.
- Implement declarative constraints and type rules for domain specific languages.
- Implement declarative and imperative transformations, code generators and interpreters, in various scenarios such as from text to models, from models to text, involving XML, database, etc.
- Test implementations of modeling languages
- Characterize, classify and compare programming and modeling languages along a host of properties.
A substantial part of course (ca. 30%) consists of a project in which you build your own language. The project is submitted for the exam.
The course literature is published in the course page in LearnIT.
Student Activity BudgetEstimated distribution of learning activities for the typical student
- Preparation for lectures and exercises: 10%
- Lectures: 20%
- Exercises: 15%
- Assignments: 5%
- Project work, supervision included: 30%
- Exam with preparation: 20%
Ordinary examExam type:
D: Submission of written work with following oral, External (7-point scale)
D2G: Submission for groups with following oral exam supplemented by the submission. Shared responsibility for the report.
Time and dateOrdinary Exam - submission Fri, 4 Jun 2021, 08:00 - 14:00
Ordinary Exam Wed, 23 Jun 2021, 09:00 - 20:55
Ordinary Exam Thu, 24 Jun 2021, 09:00 - 20:55
Reexam - submission Wed, 14 Jul 2021, 08:00 - 14:00
Reexam Thu, 19 Aug 2021, 09:00 - 20:55