mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 16:57:35 +02:00
Wrap AST lambda bodies in a list
This commit is contained in:
parent
f440d45dd0
commit
18b81a75af
1 changed files with 4 additions and 3 deletions
|
@ -209,9 +209,10 @@
|
||||||
`(define call/cc
|
`(define call/cc
|
||||||
,(ast:make-lambda
|
,(ast:make-lambda
|
||||||
'(k f)
|
'(k f)
|
||||||
(list 'f 'k
|
(list
|
||||||
(ast:make-lambda '(_ result)
|
(list 'f 'k
|
||||||
'(k result)))))
|
(ast:make-lambda '(_ result)
|
||||||
|
(list '(k result)))))))
|
||||||
;(lambda (k f) (f k (lambda (_ result) (k result)))))
|
;(lambda (k f) (f k (lambda (_ result) (k result)))))
|
||||||
cps)));)
|
cps)));)
|
||||||
(else
|
(else
|
||||||
|
|
Loading…
Add table
Reference in a new issue