Skip to Main content Skip to Navigation
Journal articles

Extracting Models from Source Code in Software Modernization

Javier Cánovas 1 Jesus Garcia Molina 2 
1 ATLANMOD - Modeling Technologies for Software Production, Operation, and Evolution
LINA - Laboratoire d'Informatique de Nantes Atlantique, Département informatique - EMN, Inria Rennes – Bretagne Atlantique
2 Modelum
Modelum - Departamento de Informática y Sistemas [Murcia]
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.
Document type :
Journal articles
Complete list of metadata

Cited literature [21 references]  Display  Hide  Download
Contributor : Javier Canovas Connect in order to contact the contributor
Submitted on : Friday, November 16, 2012 - 1:23:34 PM
Last modification on : Wednesday, April 27, 2022 - 3:44:04 AM
Long-term archiving on: : Saturday, December 17, 2016 - 11:21:35 AM


Files produced by the author(s)



Javier Cánovas, Jesus Garcia Molina. Extracting Models from Source Code in Software Modernization. Software and Systems Modeling, Springer Verlag, 2014, 13 (2), pp.21. ⟨10.1007/s10270-012-0270-z⟩. ⟨hal-00752688⟩



Record views


Files downloads