Proceedingsbeitrag
Zitieren …

Capture-Avoiding Program Transformations with name-fix

Sebastian Erdweg ORCID-iD-Icon 1, Tijs van der Storm und Yi Dai
1 Institut für Programmstrukturen und Datenorganisation (IPD), Karlsruher Institut für Technologie (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.