add sc-macro-transformer/rsc-maro-transformer
This commit is contained in:
parent
1ab588d21f
commit
7b026fbd0a
|
@ -177,6 +177,16 @@
|
||||||
(single-for-each f list)
|
(single-for-each f list)
|
||||||
(multiple-for-each f (cons list lists))))
|
(multiple-for-each f (cons list lists))))
|
||||||
|
|
||||||
|
(define sc-macro-transformer
|
||||||
|
(lambda (f)
|
||||||
|
(lambda (expr use-env mac-env)
|
||||||
|
(make-syntactic-closure mac-env '() (f expr use-env)))))
|
||||||
|
|
||||||
|
(define rsc-macro-transformer
|
||||||
|
(lambda (f)
|
||||||
|
(lambda (expr use-env mac-env)
|
||||||
|
(make-syntactic-closure use-env '() (f expr mac-env)))))
|
||||||
|
|
||||||
(define-macro (let bindings . body)
|
(define-macro (let bindings . body)
|
||||||
(if (symbol? bindings)
|
(if (symbol? bindings)
|
||||||
(begin
|
(begin
|
||||||
|
|
Loading…
Reference in New Issue