aboutsummaryrefslogtreecommitdiffstats
path: root/csc/loop.csc
diff options
context:
space:
mode:
authorRose Hogenson <rhogenson@posteo.net>2022-07-03 14:37:10 -0700
committerRose Hogenson <rhogenson@posteo.net>2022-07-03 14:37:10 -0700
commitbcb098e8eb18637b6999789585a38ff9168de9d5 (patch)
treefe2bee9fcc5cac8c2f8362c836901f7a3643cb03 /csc/loop.csc
parentWrite closure conversion. (diff)
downloadchromatopelma-bcb098e8eb18637b6999789585a38ff9168de9d5.tar.zst
Add a diff library.
I was hesitant to add a diff library, but it was surprisingly easy. A straightforward application of dynamic programming.
Diffstat (limited to 'csc/loop.csc')
-rw-r--r--csc/loop.csc4
1 files changed, 3 insertions, 1 deletions
diff --git a/csc/loop.csc b/csc/loop.csc
index dbd6200..ffe0f3f 100644
--- a/csc/loop.csc
+++ b/csc/loop.csc
@@ -16,7 +16,9 @@
(define-syntax return
(syntax-rules ()
((return expr)
- (raise (make-return-exception (lambda () expr))))))
+ (raise (make-return-exception (lambda () expr))))
+ ((return)
+ (return #f))))
(define-record-type <loop-termination>