Allowing complex with #d prefix in srfi-38.

This commit is contained in:
Alex Shinn 2012-11-04 00:42:23 +09:00
parent c55fa6fe4d
commit 6a0b9ee10b

View file

@ -161,9 +161,8 @@
(cond
((and (not (eof-object? c))
(or (char-numeric? c)
(memv (char-downcase c) '(#\a #\b #\c #\d #\e #\f))))
(read-label (cons (read-char in) res)))
((and (memv c '(#\+ #\-)) (null? res))
(memv (char-downcase c)
'(#\- #\+ #\a #\b #\c #\d #\e #\f #\i))))
(read-label (cons (read-char in) res)))
((and (eqv? c #\/) (not (memv #\/ res)))
(read-label (cons (read-char in) res)))