This commit is contained in:
Justin Ethier 2017-08-14 17:38:05 +00:00
parent d0c0c18d74
commit eb57300bdd

View file

@ -742,12 +742,14 @@
((eq? t #\))
(reverse lis))
(else
(loop (cons t lis) (parse2 fp)))))
)
;; Close parent, stop current read loop
;; Quote
;; , - could be unquote or unquote-splicing
;; # - get next char(s)
(loop (cons t lis) (parse2 fp))))))
((eq? token #\')
(list 'quote (parse2 fp)))
((eq? token #\`)
(list 'quasiquote (parse2 fp)))
;; TODO: , - tricky, could be unquote or unquote-splicing
;;((eq? t #\`)
;; (list 'quasiquote (parse2 fp)))
;; Other special cases?
(else
token))))