about summary refs log tree commit diff stats
path: root/continuation3.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-11-06 01:28:53 -0800
committerKartik K. Agaram <vc@akkartik.com>2017-11-06 01:28:53 -0800
commitd55e77387fd9cc3eae2f17a6c1993f3bcb061a60 (patch)
treeff395f7d64f196c68560654b027fb1e59bf8bccc /continuation3.mu
parent3b776ac3843e925ee24f49e8df51ab6a1db6c085 (diff)
downloadmu-d55e77387fd9cc3eae2f17a6c1993f3bcb061a60.tar.gz
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.
Diffstat (limited to 'continuation3.mu')
-rw-r--r--continuation3.mu12
1 files changed, 10 insertions, 2 deletions
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