Home
Scholarly Works
CPS in little pieces: composing partial...
Journal article

CPS in little pieces: composing partial continuations

Abstract

This paper presents a new two-stage CPS algorithm. The first stage plants trivial partial continuations via a recursive-descent traversal and the second stage is a rewrite system that transforms all nontail calls into tail calls. The algorithm combines the metaphors of the Plotkin-style CPS transformation along with reduction in the λ-calculus.

Authors

FRIEDMAN DP; SABRY A

Journal

Journal of Functional Programming, Vol. 12, No. 6, pp. 617–622

Publisher

Cambridge University Press (CUP)

Publication Date

November 1, 2002

DOI

10.1017/s0956796801004221

ISSN

0956-7968

Contact the Experts team