mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-12 15:27:36 +02:00
Use common tagged-list? function
This commit is contained in:
parent
78de607312
commit
d6d1b31521
2 changed files with 1 additions and 5 deletions
5
eval.scm
5
eval.scm
|
@ -17,11 +17,6 @@
|
|||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Expression handling helper functions
|
||||
(define (tagged-list? tag exp)
|
||||
(if (pair? exp)
|
||||
(equal? (car exp) tag)
|
||||
#f))
|
||||
|
||||
(define (self-evaluating? exp)
|
||||
(cond ((number? exp) #t)
|
||||
((boolean? exp) #t)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
(define-library (scheme eval)
|
||||
(import
|
||||
(scheme cyclone util)
|
||||
(scheme base)
|
||||
(scheme file)
|
||||
(scheme write)
|
||||
|
|
Loading…
Add table
Reference in a new issue