Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Commit

Permalink
dot
Browse files Browse the repository at this point in the history
  • Loading branch information
russellw committed Oct 8, 2018
1 parent be77aca commit a1d84f1
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions read.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -241,21 +241,20 @@
(err "unexpected end of file"))

; Left-Parenthesis
((equal *tok* "(")
((equal *tok* "(" )
(lex)
(prog1
(loop
until(equal *tok*")")
collect(read*)
)
(lex)
(let((s
(loop
until (member *tok* '(")" "."):test #'string=)
collect (read*)
)))
(when(equal *tok* ".")
(lex)
(setf s(append s(read*)))
)
(lex)
s
)
)
)

;dot
((equal *tok* ".")
(prog1 (list +special+ *tok*) (lex)))

; Right-Parenthesis
((equal *tok* ")")
Expand Down

0 comments on commit a1d84f1

Please sign in to comment.