Template-based code generation is an idiom for program transformation in which the structure of the _target_ code drives the generation process. Jonne van Wijngaarden developed a nice idiom for writing ASP-style target driven templates directly in Stratego using [[concrete syntax]] and [[term wrap]] patterns. See Jonne's thesis on '[[Code Generation from a Domain Specific Language]]'. -- Main.EelcoVisser - 23 Jul 2003 ----- CategoryGlossary