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

https://hal.inria.fr/hal-01110885
Contributor : Anne Jaigu <>
Submitted on : Thursday, January 29, 2015 - 10:30:00 AM
Last modification on : Wednesday, December 20, 2017 - 5:42:07 PM
Long-term archiving on: : Wednesday, May 27, 2015 - 1:51:03 PM

File

23106B.pdf
Files produced by the author(s)

Identifiers

Collections

Citation

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⟩

Share

Metrics

Record views

240

Files downloads

378