mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
WIP
This commit is contained in:
parent
d0c0c18d74
commit
eb57300bdd
1 changed files with 8 additions and 6 deletions
14
read.scm
14
read.scm
|
@ -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))))
|
||||
|
|
Loading…
Add table
Reference in a new issue