Technische Universität Braunschweig
  • Study & Teaching
    • Beginning your Studies
      • Prospective Students
      • Degree Programmes
      • Application
      • Fit4TU
      • Why Braunschweig?
    • During your Studies
      • Fresher's Hub
      • Term Dates
      • Courses
      • Practical Information
      • Beratungsnavi
      • Additional Qualifications
      • Financing and Costs
      • Special Circumstances
      • Health and Well-being
      • Campus life
    • At the End of your Studies
      • Discontinuation and Credentials Certification
      • After graduation
      • Alumni
    • For Teaching Staff
      • Strategy, Offers and Information
      • Learning Management System Stud.IP
    • Contact
      • Study Service Centre
      • Academic Advice Service
      • Student Office
      • Career Service
  • Research
    • Research Profile
      • Core Research Areas
      • Clusters of Excellence at TU Braunschweig
      • Research Projects
      • Research Centres
      • Professors‘ Research Profiles
    • Early Career Researchers
      • Support in the early stages of an academic career
      • PhD-Students
      • Postdocs
      • Junior research group leaders
      • Junior Professorship and Tenure-Track
      • Habilitation
      • Service Offers for Scientists
    • Research Data & Transparency
      • Transparency in Research
      • Research Data
      • Open Access Strategy
      • Digital Research Announcement
    • Research Funding
      • Research Funding Network
      • Research funding
    • Contact
      • Research Services
      • Academy for Graduates
  • International
    • International Students
      • Why Braunschweig?
      • Degree seeking students
      • Exchange Studies
      • TU Braunschweig Summer School
      • Refugees
      • International Student Support
      • International Career Service
    • Going Abroad
      • Studying abroad
      • Internships abroad
      • Teaching and research abroad
      • Working abroad
    • International Researchers
      • Welcome Support for International Researchers
      • Service for Host Institutes
    • Language and intercultural competence training
      • Learning German
      • Learning Foreign Languages
      • Intercultural Communication
    • International Profile
      • Internationalisation
      • International Cooperations
      • Strategic partnerships
      • International networks
    • International House
      • About us
      • Contact & Office Hours
      • News and Events
      • International Days
      • 5th Student Conference: Internationalisation of Higher Education
      • Newsletter, Podcast & Videos
      • Job Advertisements
  • TU Braunschweig
    • Our Profile
      • Aims & Values
      • Regulations and Guidelines
      • Alliances & Partners
      • The University Development Initiative 2030
      • Facts & Figures
      • Our History
    • Career
      • Working at TU Braunschweig
      • Vacancies
    • Economy & Business
      • Entrepreneurship
      • Friends & Supporters
    • General Public
      • Check-in for Students
      • CampusXperience
      • The Student House
      • Access to the University Library
    • Media Services
      • Communications and Press Service
      • Services for media
      • Film and photo permits
      • Advices for scientists
      • Topics and stories
    • Contact
      • General Contact
      • Getting here
  • Organisation
    • Presidency & Administration
      • Executive Board
      • Designated Offices
      • Administration
      • Committees
    • Faculties
      • Carl-Friedrich-Gauß-Fakultät
      • Faculty of Life Sciences
      • Faculty of Architecture, Civil Engineering and Environmental Sciences
      • Faculty of Mechanical Engineering
      • Faculty of Electrical Engineering, Information Technology, Physics
      • Faculty of Humanities and Education
    • Institutes
      • Institutes from A to Z
    • Facilities
      • University Library
      • Gauß-IT-Zentrum
      • Professional and Personnel Development
      • International House
      • The Project House of the TU Braunschweig
      • Transfer Service
      • University Sports Center
      • Facilities from A to Z
    • Equal Opportunity Office
      • Equal Opportunity Office
      • Family
      • Diversity for Students
  • Search
  • Quicklinks
    • People Search
    • Webmail
    • cloud.TU Braunschweig
    • Messenger
    • Cafeteria
    • Courses
    • Stud.IP
    • Library Catalogue
    • IT Services
    • Information Portal (employees)
    • Link Collection
    • DE
    • EN
    • Instagram
    • YouTube
    • LinkedIn
    • Mastodon
    • Bluesky
Menu
  • Organisation
  • Faculties
  • Carl-Friedrich-Gauß-Fakultät
  • Institutes
  • Institute of Software Engineering and Automotive Informatics
  • Teaching
Logo Institut für Softwaretechnik und Fahrzeuginformatik der TU Braunschweig

MDSD Lab

Lab on Model-Driven Software Development: Creating a Model-Based Programming Language

The lab guides students through the process of designing and realizing an own model-based programming language, writing a compiler to an intermediate language and creating an execution environment revolving around the language's interpreter.

MDSD Example Slide 2
MDSD Example Slide 1

Formalities

  • Date:
    • Thursday 13:15 – 16:30 on the dates with class room introductions
    • Thursday 15:00 – 16:30 on dates with class room discussions
    • Deviating dates:
      • 1. Class room session: 24.10.18, 10:00 – 11:45
      • 2. Class room session: 29.10.18, 13:15 – 16:30
    • See the timetable for details.
  • Room: IZ 413a, Terminal Room of ISF
  • Language: The slides and assignments of the lab are in English. The lab will be held in English unless there are exclusively German-speaking participants present.
  • Module: This lab is an instance of the module "Softwaretechnik, vertiefendes Praktikum" (INF-SSE-37) and awards 5 ECTS credits.
  • Passing Criteria: To pass the lab, students have to attend the mandatory class room sessions, complete all assignments, implement at least one extension proactively and present their results at the end of the lab. There will be individual grades for completing the lab.
  • Instructors: Dr.-Ing. Christoph Seidl, Prof. Dr.-Ing. Ina Schaefer
  • Registration: Write an email to c.seidl(at)tu-braunschweig.de to register. To ensure intensive individual tutoring, the attendance for this lab is strictly limited!

Content

In guided tasks, students create a programming language, an intermediate language and the respective execution environment. In a free exercise, students create extensions to the language infrastructure.

Model-Based Programming Language (MPL)
MPL is a Turing complete programming language with variables, calculations, control flow statements and operations. MPL is developed in four revisions with increasing complexity, where the first one is developed in a class-room tutorial and the other three in homework assignments. The resulting metamodel and textual syntax are used to generate an editor.

Model-Based Intermediate Language (MIL)
MIL features an instruction set similar to that of processors with a total of 19 instructions, which are easy to execute. MIL is developed in four revisions that align with those of MPL. In class-room tutorials and homework assignments, students design a metamodel and textual syntax for MIL while learning the semantics of each instruction.

Execution Environment
Instead of executing MPL directly, it is compiled to MIL by model-to-model transformation. Students devise and implement appropriate translations from MPL constructs to MIL instructions. The execution environment for MIL is a hybrid stack/register machine students implement in Java. The implementation is relatively straight forward, which makes it portable so that MIL instructions and, thus, MPL code can be executed on different platforms when necessary.

Extensions to Language Infrastructure
Students follow up on the guided tasks in free exercises where they can choose from a number of potential topics to extend and refine the language infrastructure, e.g., introducing a type system to MPL, creating a graphical programming language that compiles to MIL, writing a debugger for MIL or compiling MIL to a binary format with an interpreter for embedded devices. To complete the lab, students have to realize at least one free exercise topic.

When Starting this Lab, ...

You must...

  • ... know Java programming
  • ... have a background in MDSD
  • ... know Ecore and the Eclipse Modeling Framework (EMF)

You should...

  • ... know some basics of compilers
  • ... be interested in ...
    • ... MDSD
    • ... compiler construction
    • ... language design
    • ... software engineering

When Completing this Lab, ...

You will have...

  • ... created a programming language
  • ... generated a parser
  • ... implemented a compiler
  • ... created an intermediate language
  • ... written a stack/register machine
  • ... implemented an interpreter
  • ... integrated components into Eclipse

You may have...

  • ... implemented a debugger
  • ... designed a type system
  • ... created a graphical programming language using the intermediate language
  • ... written a compiler to binary byte code
  • ... ported the interpreter to a different programming language

Lab Organization

Structure

  • Three class room sessions with interleaved tutorials
  • Three assignment sheets
  • Free exercise

To pass this lab...

  • ... attend mandatory class room sessions
  • ... follow the tutorials
  • ... complete all assignments
  • ... implement at least one free-exercise assignment
  • ... present your final results

Lab Assignments

Assignment 1: MPL & Constraints Assignment 2: MIL & Interpreter Assignment 3: Compiler
Create metamodel Create metamodel Devise encoding of MPL to MIL
Create grammar (parser & editor) Create grammar (parser & editor) Create MPL to MIL compiler (operative semantics)
Create constraints (static semantics) Write interpreter (execution environment) Integrate into Eclipse
- Integrate into Eclipse -

Timetable

Week Date and Time Class Room Session Lab Work
1 24.10.18, 10:00 – 11:45 18.10.18, 13:15 – 16:30 Introduction: Lab Overview & Recap Setup Eclipse and MDSD
2 29.10.18, 13:15 – 16:30 25.10.18, 13:15 – 16:30 Introduction: MPL – The Model-Based Programming Language Work on MPL
3 01.11.18 Discussion: MPL Assignment Work on MPL
4 08.11.18, 15:00 – 16:30 Discussion: MPL Assignment Work on MPL
5 15.11.18, 13:15 – 16:30 Introduction: MIL – The Model-Based Intermediate Language Work on MIL
6 22.11.18 - Work on MIL
7 29.11.18, 15:00 – 16:30 Discussion: MIL Assignment Work on MIL
8 06.12.18, 13:15 – 16:30 Introduction: The MPL to MIL Compiler Work on Compiler
9 13.12.18, 13:15 – 16:30 Discussion: Compiler Assignment, Introduction: Free Exercise Work on Compiler
10 20.12.18, 13:15 – 16:30 - Work on own Extensions
x 03.01.19 -
11 10.01.19 - Work on own Extensions
12 17.01.19, 15:00 – 16:30 Feedback: Free Exercise Work on own Extensions
13 24.01.19 - Work on own Extensions
14 31.01.19, 13:15 – 15:30 Final Presentations -
Photo credits on this page

For All Visitors

Vacancies of TU Braunschweig
Career Service' Job Exchange 
Merchandising

For Students

Term Dates
Courses
Degree Programmes
Information for Freshman
TUCard

Internal Tools

Glossary (GER-EN)
Change your Personal Data

Contact

Technische Universität Braunschweig
Universitätsplatz 2
38106 Braunschweig

P. O. Box: 38092 Braunschweig
GERMANY

Phone: +49 (0) 531 391-0

Getting here

© Technische Universität Braunschweig
Legal Notice Privacy Accessibility

TU Braunschweig uses the software Matomo for anonymised web analysis. The data serve to optimise the web offer.
You can find more information in our data protection declaration.