Wrapping to 80 columns.

This commit is contained in:
Alex Shinn 2014-11-24 11:05:17 +09:00
parent 161fad8167
commit 636a74d044

View file

@ -206,7 +206,10 @@
(let ((c (peek-char in))) (let ((c (peek-char in)))
(cond (cond
((char-numeric? c) ((char-numeric? c)
(lp (+ res (* (- (char->integer (read-char in)) (char->integer #\0)) k)) (* k 0.1))) (lp (+ res (* (- (char->integer (read-char in))
(char->integer #\0))
k))
(* k 0.1)))
((or (eof-object? c) (memv c delimiters)) res) ((or (eof-object? c) (memv c delimiters)) res)
(else (read-error "invalid char in float syntax" c)))))) (else (read-error "invalid char in float syntax" c))))))
(define (read-name c in) (define (read-name c in)
@ -280,10 +283,12 @@
x))) x)))
((eqv? #\# (peek-char in)) ((eqv? #\# (peek-char in))
(read-char in) (read-char in)
(cond ((assv n shared) => cdr) (cond
((assv n shared) => cdr)
(else (read-error "read error: unknown reference" n)))) (else (read-error "read error: unknown reference" n))))
(else (else
(read-error "read error: expected # after #n" (read-char in)))))) (read-error "read error: expected # after #n"
(read-char in))))))
((#\;) ((#\;)
(read-char in) (read-char in)
(read-one) ;; discard (read-one) ;; discard
@ -374,7 +379,8 @@
(read-error "expected end of list after dot"))))) (read-error "expected end of list after dot")))))
((char-numeric? (peek-char in)) ((char-numeric? (peek-char in))
(lp (cons (read-float-tail in) res))) (lp (cons (read-float-tail in) res)))
(else (lp (cons (string->symbol (read-name #\. in)) res))))) (else
(lp (cons (string->symbol (read-name #\. in)) res)))))
(else (else
(if (eof-object? c) (if (eof-object? c)
(read-incomplete-error "unterminated list") (read-incomplete-error "unterminated list")