Abstract
Continuation marks are a programming language feature which generalize stack inspection. Despite its usefulness, this feature has not been adopted by languages which rely on stack inspection, e.g., for dynamic security checks. One reason for this neglect may be that continuation marks do not yet enjoy a transformation to the plain λ-calculus which would allow higher-order languages to provide continuation marks at little cost. We present a CPS-like transformation from the call-by-value λ-calculus augmented with continuation marks to the pure call-by-value λ-calculus. We discuss how this transformation simplifies the construction of compilers which treat continuation marks correctly. We document an iterative, feedback-based approach using Redex. We accompany the transformation with a meaning-preservation theorem.
Degree
MS
College and Department
Physical and Mathematical Sciences; Computer Science
Rights
http://lib.byu.edu/about/copyright/
BYU ScholarsArchive Citation
Germane, Kimball Richard, "A CPS-Like Transformation of Continuation Marks" (2012). Theses and Dissertations. 3436.
https://scholarsarchive.byu.edu/etd/3436
Date Submitted
2012-11-26
Document Type
Thesis
Handle
http://hdl.lib.byu.edu/1877/etd5702
Keywords
continuation marks, continuation-passing style, Redex
Language
English