mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 20:45:06 +02:00
Read literal whitespace chars
This commit is contained in:
parent
02e3e58352
commit
1048375003
1 changed files with 8 additions and 6 deletions
|
@ -448,12 +448,14 @@
|
||||||
(in-port:get-cnum ptbl))))))
|
(in-port:get-cnum ptbl))))))
|
||||||
(define (loop buf)
|
(define (loop buf)
|
||||||
(let ((c (peek-char fp)))
|
(let ((c (peek-char fp)))
|
||||||
(if (or (eof-object? c)
|
(cond
|
||||||
(char-whitespace? c)
|
((or (eof-object? c)
|
||||||
(and (> (length buf) 0)
|
(and (char-whitespace? c) (> (length buf) 0))
|
||||||
(equal? c #\))))
|
(and (> (length buf) 0)
|
||||||
(done buf)
|
(equal? c #\))))
|
||||||
(loop (cons (read-char fp) buf)))))
|
(done buf))
|
||||||
|
(else
|
||||||
|
(loop (cons (read-char fp) buf))))))
|
||||||
(loop '()))
|
(loop '()))
|
||||||
|
|
||||||
(define (read-str fp buf ptbl)
|
(define (read-str fp buf ptbl)
|
||||||
|
|
Loading…
Add table
Reference in a new issue