Conference paper
Cite …

Capture-Avoiding Program Transformations with name-fix

Sebastian Erdweg ORCID iD icon 1, Tijs van der Storm and Yi Dai
1 Institute for Program Structures and Data Organisation (IPD), Karlsruhe Institute of Technology (KIT)
Abstract

We present an algorithm called name-fix that automatically eliminates variable capture from a generated program by systematically renaming variables. name-fix is guided by a graph representation of the binding structure of a program, and requires name-resolution algorithms for the source language and the target language of a transformation. name-fix is generic and works for arbitrary transformations in any transformation system that supports origin tracking for names.