mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-08 13:37:33 +02:00
Added expand-lambda-body
This commit is contained in:
parent
4ec87c20c8
commit
f5cd5d0fdf
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue