mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-12 23:37:38 +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
|
;; Expression handling helper functions
|
||||||
(define (tagged-list? tag exp)
|
|
||||||
(if (pair? exp)
|
|
||||||
(equal? (car exp) tag)
|
|
||||||
#f))
|
|
||||||
|
|
||||||
(define (self-evaluating? exp)
|
(define (self-evaluating? exp)
|
||||||
(cond ((number? exp) #t)
|
(cond ((number? exp) #t)
|
||||||
((boolean? exp) #t)
|
((boolean? exp) #t)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
(define-library (scheme eval)
|
(define-library (scheme eval)
|
||||||
(import
|
(import
|
||||||
|
(scheme cyclone util)
|
||||||
(scheme base)
|
(scheme base)
|
||||||
(scheme file)
|
(scheme file)
|
||||||
(scheme write)
|
(scheme write)
|
||||||
|
|
Loading…
Add table
Reference in a new issue