1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 20:30:28 +02:00

Compile cps $prompt form to javascript

This commit is contained in:
Ian Price 2015-06-15 23:18:16 +01:00
parent 48e84c5a2c
commit 5827ad4f03
4 changed files with 85 additions and 8 deletions

View file

@ -155,6 +155,15 @@
(make-call (make-refine *scheme* (make-const "Closure"))
(list (name->id label) (make-const nfree)))))
(($ il:prompt escape? tag handler)
;; never a tailcall
(make-call (make-refine (make-refine *scheme* (make-const "primitives"))
(make-const "prompt"))
(list (compile-const escape?) (name->id tag) (name->id handler))))
(($ il:seq body)
(make-block (map compile-exp body)))
(($ il:id name)
(name->id name))))