Added new predicates

This commit is contained in:
Justin Ethier 2017-11-21 13:23:08 -05:00
parent 24fc89f320
commit 09cb431219

View file

@ -14,6 +14,8 @@
)
(export
define-syntax?
let-syntax?
letrec-syntax?
macro:macro?
macro:expand
macro:add!
@ -52,6 +54,12 @@
(define (define-syntax? exp)
(tagged-list? 'define-syntax exp))
(define (let-syntax? exp)
(tagged-list? 'let-syntax exp))
(define (letrec-syntax? exp)
(tagged-list? 'letrec-syntax exp))
(define (macro:macro? exp defined-macros) (assoc (car exp) defined-macros))
(define (macro:expand exp macro mac-env rename-env)