On the Transformation between Direct and Continuation Semantics
On the Transformation between Direct and Continuation Semantics
复制标题
论直接语义与延续语义的转换
DOI:
10.1007/3-540-58027-1_31
复制
发表时间:
1993
期刊:
影响因子:
--
通讯作者:
J. Hatcliff
中科院分区:
文献类型:
--
作者:
O. Danvy;J. Hatcliff
Proving the congruence between a direct semantics and a continuation semantics is often surprisingly complicated considering that direct-style λ-terms can be transformed into continuation style automatically. However, transforming the representation of a direct-style semantics into continuation style usually doesnotyield the expected representation of a continuation-style semantics (i.e., one written by hand).The goal of our work is to automate the transformation between textual representations of direct semantics and of continuation semantics. Essentially, we identify properties of a direct-style representation (e.g., totality), and we generalize the transformation into continuation style accordingly. As a result, we can produce the expected representation of a continuation semantics, automatically. It is important to understand the transformation between representations of direct and of continuation semantics because it is these representations that get processed in any kind of semantics-based program manipulation (e.g., compiling, compiler generation, and partial evaluation). A tool producing a variety of continuation-style representations is a valuable new one in a programming-language workbench.