Algorithms - Computer simulation - Problem solving - Recursive functions;
D O I:
10.1017/S0956796801004221
中图分类号:
TP31 [计算机软件];
学科分类号:
081202 ;
0835 ;
摘要:
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 lambda-calculus.