This commit is contained in:
Justin Ethier 2017-08-17 16:36:01 +00:00
parent 4b7f2cba63
commit f61ba6ee4a

View file

@ -765,7 +765,7 @@
result))) result)))
(define (parse2 fp) (define (parse2 fp)
(let ((token (read-token fp))) ;; TODO: this will be a C call (let ((token (read-token fp)))
;(write `(token ,token)) ;(write `(token ,token))
(cond (cond
((Cyc-opaque? token) ((Cyc-opaque? token)
@ -791,7 +791,7 @@
((Cyc-opaque-unsafe-eq? token #\,) ((Cyc-opaque-unsafe-eq? token #\,)
(list 'unquote (parse2 fp))) (list 'unquote (parse2 fp)))
(else (else
token))) ;; TODO: error if this is returned to original caller of parse2 token))) ;; error if this is returned to original caller of parse2
((vector? token) ((vector? token)
(cond (cond
((= (vector-length token) 2) ;; Special case: number ((= (vector-length token) 2) ;; Special case: number