Software & Systems Modeling

, Volume 13, Issue 2, pp 713–734

Extracting models from source code in software modernization

  • Javier Luis Cánovas Izquierdo
  • Jesús García Molina
Theme Section Paper

DOI: 10.1007/s10270-012-0270-z

Cite this article as:
Cánovas Izquierdo, J.L. & García Molina, J. Softw Syst Model (2014) 13: 713. doi:10.1007/s10270-012-0270-z

Abstract

Model-driven software modernization is a discipline in which model-driven development (MDD) techniques are used in the modernization of legacy systems. When existing software artifacts are evolved, they must be transformed into models to apply MDD techniques such as model transformations. Since most modernization scenarios (e.g., application migration) involve dealing with code in general-purpose programming languages (GPL), the extraction of models from GPL code is an essential task in a model-based modernization process. This activity could be performed by tools to bridge grammarware and MDD technical spaces, which is normally carried out by dedicated parsers. Grammar-to-Model Transformation Language (Gra2MoL) is a domain-specific language (DSL) tailored to the extraction of models from GPL code. This DSL is actually a text-to-model transformation language which can be applied to any code conforming to a grammar. Gra2MoL aims to reduce the effort needed to implement grammarware-MDD bridges, since building dedicated parsers is a complex and time-consuming task. Like ATL and RubyTL languages, Gra2MoL incorporates the binding concept needed to write mappings between grammar elements and metamodel elements in a simple declarative style. The language also provides a powerful query language which eases the retrieval of scattered information in syntax trees. Moreover, it incorporates extensibility and grammar reuse mechanisms. This paper describes Gra2MoL in detail and includes a case study based on the application of the language in the extraction of models from Delphi code.

Keywords

Model-driven engineeringModel-driven software developmentDomain-specific languages Software modernizationModel-driven software modernization

Copyright information

© Springer-Verlag 2012

Authors and Affiliations

  • Javier Luis Cánovas Izquierdo
    • 1
    • 3
    • 4
  • Jesús García Molina
    • 1
    • 2
  1. 1.University of MurciaMurciaSpain
  2. 2.Depto. de Informática y Sistemas, Facultad de Informática Universidad de Murcia, Campus de EspinardoMurciaSpain
  3. 3.AtlanModEcole des Mines de Nantes, INRIA, LINA, EMNNantesFrance
  4. 4.École des Mines de NantesNantesFrance