mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-14 08:17:35 +02:00
Relocated functions
This commit is contained in:
parent
044d135b84
commit
957672fe70
2 changed files with 12 additions and 13 deletions
|
@ -13,9 +13,6 @@
|
|||
(scheme cyclone util)
|
||||
)
|
||||
(export
|
||||
define-syntax?
|
||||
let-syntax?
|
||||
letrec-syntax?
|
||||
macro:macro?
|
||||
macro:expand
|
||||
macro:add!
|
||||
|
@ -51,15 +48,6 @@
|
|||
(define (macro:get-defined-macros) *macro:defined-macros*)
|
||||
|
||||
;; Macro section
|
||||
(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)
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
(scheme char))
|
||||
(export
|
||||
;; Code analysis
|
||||
define-syntax?
|
||||
let-syntax?
|
||||
letrec-syntax?
|
||||
tagged-list?
|
||||
if?
|
||||
if-syntax?
|
||||
|
@ -121,6 +124,14 @@
|
|||
(= (length exp) 3)
|
||||
(= (length exp) 4))))
|
||||
|
||||
(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))
|
||||
|
||||
; begin? : exp -> boolean
|
||||
(define (begin? exp)
|
||||
|
|
Loading…
Add table
Reference in a new issue