mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-02 13:00:26 +02:00
conditional->branch
This commit is contained in:
parent
3b32d180b1
commit
f8618a522f
2 changed files with 8 additions and 8 deletions
|
@ -47,10 +47,10 @@
|
|||
(make-return (make-call (name->id k) (map compile-exp exps))))
|
||||
|
||||
(($ il:branch test then else)
|
||||
(make-conditional (make-call (make-refine *scheme* (make-const "is_true"))
|
||||
(list (compile-exp test)))
|
||||
(list (compile-exp then))
|
||||
(list (compile-exp else))))
|
||||
(make-branch (make-call (make-refine *scheme* (make-const "is_true"))
|
||||
(list (compile-exp test)))
|
||||
(list (compile-exp then))
|
||||
(list (compile-exp else))))
|
||||
|
||||
(($ il:const c)
|
||||
(compile-const c))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue