Skip to Main content Skip to Navigation
Conference papers

Tracing Program Transformations with String Origins

Abstract : Program transformations play an important role in domain-specific languages and model-driven development. Tracing the execution of such transfor-mations has well-known benefits for debugging, visualization and error reporting. In this paper, we introduce string origins, a lightweight, generic and portable technique to establish a tracing relation between the textual fragments in the input and output of a program transformation. We discuss the semantics and the imple-mentation of string origins using the Rascal meta programming language as an example. We illustrate the utility of string origins by presenting data structures and operations for tracing generated code, implementing protected regions, performing name resolution and fixing inadvertent name capture in generated code.
Document type :
Conference papers
Complete list of metadata

Cited literature [14 references]  Display  Hide  Download
Contributor : Anne Jaigu Connect in order to contact the contributor
Submitted on : Thursday, January 29, 2015 - 10:30:00 AM
Last modification on : Thursday, January 20, 2022 - 4:16:05 PM
Long-term archiving on: : Wednesday, May 27, 2015 - 1:51:03 PM


Files produced by the author(s)




Pablo Inostroza, Tijs van Der Storm, Sebastian Erdweg. Tracing Program Transformations with String Origins. ICMT - Proceedings of International Conference on Model Transformation, 2014, York, United Kingdom. pp.154 - 169, ⟨10.1007/978-3-319-08789-4_12⟩. ⟨hal-01110885⟩



Record views


Files downloads