mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Expand top-level program as if it was a lambda body, to allow begin splicing
This commit is contained in:
parent
f5cd5d0fdf
commit
6e870cd6d3
1 changed files with 6 additions and 1 deletions
|
@ -113,7 +113,12 @@
|
|||
(macro:load-env! *defined-macros* (create-environment '() '()))
|
||||
|
||||
;; Expand macros
|
||||
(set! input-program (expand input-program (macro:get-env)))
|
||||
(set! input-program
|
||||
((if program?
|
||||
expand-lambda-body
|
||||
expand)
|
||||
input-program
|
||||
(macro:get-env)))
|
||||
(trace:info "---------------- after macro expansion:")
|
||||
(trace:info input-program) ;pretty-print
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue