loading
Papers Papers/2022 Papers Papers/2022

Research.Publish.Connect.

Paper

Paper Unlock

Authors: Yannis Lilis 1 ; Anthony Savidis 2 and Yannis Valsamakis 1

Affiliations: 1 Institute of Computer Science, Greece ; 2 Institute of Computer Science and University of Crete, Greece

Keyword(s): Model-Driven Engineering, Multistage Languages, Code Generation, Compile-Time Metaprogramming.

Related Ontology Subjects/Areas/Topics: Methodologies, Processes and Platforms ; Model Transformations and Generative Approaches ; Model-Driven Software Development ; Software Engineering

Abstract: We focus on MDE tools generating source code, entire or partial, providing a basis for programmers to introduce custom system refinements and extensions. The latter may introduce two maintenance issues once code is freely edited: (i) if source tags are affected model reconstruction is broken; and (ii) code inserted without special tags is overwritten on regeneration. Additionally, little progress has been made in combining sources whose code originates from multiple generative tools. To address these issues we propose an alternative path. Instead of generating code MDE tools generate source fragments as abstract syntax trees (ASTs). Then, programmers deploy metaprogramming to manipulate, combine and insert code on-demand from ASTs with calls resembling macro invocations. The latter shifts responsibility for source code emission from MDE tools to embedded metaprograms and enables programmers control where the produced code is inserted and integrated. Moreover, it supports source regen eration and model reconstruction causing no maintenance issues since MDE tools produce non-editable ASTs. We validate our proposition with case studies involving a user-interface builder and a general purpose modeling tool. (More)

CC BY-NC-ND 4.0

Sign In Guest: Register as new SciTePress user now for free.

Sign In SciTePress user: please login.

PDF ImageMy Papers

You are not signed in, therefore limits apply to your IP address 18.118.32.213

In the current month:
Recent papers: 100 available of 100 total
2+ years older papers: 200 available of 200 total

Paper citation in several formats:
Lilis, Y.; Savidis, A. and Valsamakis, Y. (2014). Staged Model-Driven Generators - Shifting Responsibility for Code Emission to Embedded Metaprograms. In Proceedings of the 2nd International Conference on Model-Driven Engineering and Software Development - MODELSWARD; ISBN 978-989-758-007-9; ISSN 2184-4348, SciTePress, pages 509-521. DOI: 10.5220/0004878605090521

@conference{modelsward14,
author={Yannis Lilis. and Anthony Savidis. and Yannis Valsamakis.},
title={Staged Model-Driven Generators - Shifting Responsibility for Code Emission to Embedded Metaprograms},
booktitle={Proceedings of the 2nd International Conference on Model-Driven Engineering and Software Development - MODELSWARD},
year={2014},
pages={509-521},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0004878605090521},
isbn={978-989-758-007-9},
issn={2184-4348},
}

TY - CONF

JO - Proceedings of the 2nd International Conference on Model-Driven Engineering and Software Development - MODELSWARD
TI - Staged Model-Driven Generators - Shifting Responsibility for Code Emission to Embedded Metaprograms
SN - 978-989-758-007-9
IS - 2184-4348
AU - Lilis, Y.
AU - Savidis, A.
AU - Valsamakis, Y.
PY - 2014
SP - 509
EP - 521
DO - 10.5220/0004878605090521
PB - SciTePress