Hostname: page-component-89b8bd64d-5bvrz Total loading time: 0 Render date: 2026-05-13T22:03:19.815Z Has data issue: false hasContentIssue false

π-RED+ An interactive compiling graph reduction system for an applied λ-calculus

Published online by Cambridge University Press:  07 November 2008

Dietmar Gärtner
Affiliation:
Christian-Albrechts-Universität Kiel, Institut für Informatik, D-24105 Kiel, Germany e-mail: wk@informatik.uni--kiel.d400.de
Werner E. Kluge
Affiliation:
Christian-Albrechts-Universität Kiel, Institut für Informatik, D-24105 Kiel, Germany e-mail: wk@informatik.uni--kiel.d400.de
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

This paper describes a compiling graph reduction system which realizes the reduction semantics of a fully-fledged applied λ-calculus. High-level functional programs are conceptually executed as sequences of program transformations governed by full β-reductions. They may be carried out step-by-step, and intermediate programs may be displayed in high-level notation, rendering the system suitable for interactive program design, high-level debugging, and also for teaching basic programming language concepts and language interpretation. Run-time efficiency for production runs is achieved by means of an abstract stack machine ASM which serves as an intermediate level of code generation. It employs multiple stacks for reasonably fast function calls, optimized tail-end recursions, and earliest possible releases of subgraphs that are no longer needed. The ASM involves an interpreter if and only if potential naming conflicts need to be resolved when reducing partial function applications.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 1996
Submit a response

Discussions

No Discussions have been published for this article.