1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 11:50:28 +02:00

separate js-il functions into actual functions and those for continuations

This commit is contained in:
Ian Price 2015-06-06 20:10:57 +01:00
parent 9e498f2430
commit 54ce470cf8
3 changed files with 20 additions and 131 deletions

View file

@ -29,11 +29,10 @@
(list (compile-exp entry) entry-call)))
'())))
(($ il:function #f params body)
(($ il:continuation params body)
(make-function (map rename params) (list (compile-exp body))))
(($ il:function name params body)
;; TODO: split il:function into closure (with self) and cont types
(make-function (map rename (cons name params)) (list (compile-exp body))))
(($ il:local bindings body)