Fulltext available Open Access
Title: Model specification for template-based source code generation
Language: English
Authors: Dießner, Marcel 
Keywords: Meta-Model; Templates; Code-Generation; CobiGen; Pre-Processing
Issue Date: 30-May-2025
Abstract: 
Template-based source code generation is used in industrial generator frameworks as a fully automated process. Varying input data is used to evaluate placeholders in Templates. When less data is available than is required for template evaluation, many generators terminate, leading to no generation output. By pre-processing input and template, missing data can be discovered and manually added by the generator’s user to the input data, before the actual template evaluation. This ensures that the generation will give output under any incomplete input, with the downside of falling into a semi -automated process. In this thesis we will explore this idea in detail, investigating different popular Template Engines and Frameworks and afterwards applying our solution to advanced template-based source code generators, to collect problems and future ideas to be expanded on further.

Die Template-basierte Source Code Generierung wird in modernen Generator-Frameworks als vollautomatischer Prozess eingesetzt. Variierende Eingabedaten werden verwendet, um Platzhalter in Templates auszuwerten. Wenn weniger Daten zur Verfügung stehen, als für die Evaluation einer Templates benötigt werden, brechen viele Generatoren ab, sodass keine Ausgabe generiert wird. Durch die Vorverarbeitung von Eingabe und Template können fehlende Daten entdeckt und vom Benutzer des Generators manuell zu den Eingabedaten hinzugefügt werden, bevor die tatsächliche Template-Evaluierung durchgeführt wird. Auf diese Weise wird sichergestellt, dass die Generierung auch bei unvollständigen Eingabedaten eine Ausgabe liefert. In dieser Arbeit wird diese Idee im Detail erläutert, indem verschiedene populäre Template Engines sowie Frameworks analysiert werden und anschließend unser Lösungsansatz auf komplexe Template-basierte Source Code Generatoren angewandt wird. Entstehende Probleme und potentielle Weiterentwicklungsansätze können so gesammelt und künftig weiter vorangetrieben werden.
URI: https://hdl.handle.net/20.500.12738/17711
Institute: Fakultät Technik und Informatik 
Department Informatik 
Type: Thesis
Thesis type: Bachelor Thesis
Advisor: Sarstedt, Stefan 
Referee: Zukunft, Olaf 
Appears in Collections:Theses

Files in This Item:
File Description SizeFormat
BA_Template-based source code generation.pdf1.16 MBAdobe PDFView/Open
Show full item record

Google ScholarTM

Check

HAW Katalog

Check

Note about this record


Items in REPOSIT are protected by copyright, with all rights reserved, unless otherwise indicated.