Added expand-lambda-body

This commit is contained in:
Justin Ethier 2016-02-05 22:52:39 -05:00
parent 4ec87c20c8
commit f5cd5d0fdf

View file

@ -110,6 +110,7 @@
cell-get?
cell-get->cell
expand
expand-lambda-body
let=>lambda
isolate-globals
has-global?
@ -823,6 +824,10 @@
(else
(error "unknown exp: " exp))))
;; Nicer interface to expand-body
(define (expand-lambda-body exp env)
(expand-body '() exp env))
;; Helper to expand a lambda body, so we can splice in any begin's
(define (expand-body result exp env)
(cond