From d55e77387fd9cc3eae2f17a6c1993f3bcb061a60 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 6 Nov 2017 01:28:53 -0800 Subject: 4117 - done with delimited continuations At least this particular implementation of them. Let's play with them now for a while, see if they're fully equivalent to shift/reduce. --- continuation3.mu | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'continuation3.mu') diff --git a/continuation3.mu b/continuation3.mu index 043828d5..57d54084 100644 --- a/continuation3.mu +++ b/continuation3.mu @@ -1,5 +1,13 @@ -# example program showing that a function call can be 'paused' multiple times, -# creating different continuation values +# Example program showing that a function call can be 'paused' multiple times, +# creating different continuation values. +# +# Expected output: +# caller 0 +# callee 0 +# caller 1 +# callee 1 +# caller 2 +# callee 2 def main [ local-scope -- cgit 1.4.1-2-gfad0