Towards Code-centric Code Generators

Daniel Busch

Abstract


This paper presents a novel approach to code generation. While common code generator approaches lack in support for code evolution and maintenance such as refactoring, the presented Code-centric generator (CCG) approach attempts to overcome these issues. Instead of mixing generator abstractions and actual code snippets, CCG provides a layer between the generator and prototypical target code. The new layer provides the ability to map code generator operations directly onto code AST subtrees, and generates the resulting generators based on these mappings and the prototypical target implementation.

Full Text:

PDF


DOI: http://dx.doi.org/10.14279/tuj.eceasst.82.1218

DOI (PDF): http://dx.doi.org/10.14279/tuj.eceasst.82.1218.1137

Hosted By Universitätsbibliothek TU Berlin.