Composition of functions with accumulating parameters

  • Authors:
  • Janis Voigtländer;Armin Kühnemann

  • Affiliations:
  • Department of Computer Science, Dresden University of Technology, D-01062 Dresden, Germany (e-mail: voigt@tcs.inf.tu-dresden.de);Department of Computer Science, Dresden University of Technology, D-01062 Dresden, Germany (e-mail: kuehne@tcs.inf.tu-dresden.de

  • Venue:
  • Journal of Functional Programming
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

Many functional programs with accumulating parameters are contained in the class of macro tree transducers. We present a program transformation technique that can be used to solve the efficiency problems due to creation and consumption of intermediate data structures in compositions of such functions, where classical deforestation techniques fail. To do so, given two macro tree transducers under appropriate restrictions, we construct a single macro tree transducer that implements the composition of the two original ones. The imposed restrictions are more liberal than those in the literature on macro tree transducer composition, thus generalising previous results.