Hostname: page-component-848d4c4894-nmvwc Total loading time: 0 Render date: 2024-06-30T09:19:48.725Z Has data issue: false hasContentIssue false

CPS in little pieces: composing partial continuations

Published online by Cambridge University Press:  13 November 2002

DANIEL P. FRIEDMAN
Affiliation:
Computer Science Department, Indiana University, Bloomington, IN 47405, USA
AMR SABRY
Affiliation:
Computer Science Department, Indiana University, Bloomington, IN 47405, USA
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 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.

Type
THEORETICAL PEARL
Copyright
© 2002 Cambridge University Press
Submit a response

Discussions

No Discussions have been published for this article.