mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Added new predicates
This commit is contained in:
parent
24fc89f320
commit
09cb431219
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue