mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 14:49:18 +02:00
Allowing fractions with prefixes in srfi-38.
This commit is contained in:
parent
5f323551c9
commit
c55fa6fe4d
1 changed files with 2 additions and 0 deletions
|
@ -165,6 +165,8 @@
|
|||
(read-label (cons (read-char in) res)))
|
||||
((and (memv c '(#\+ #\-)) (null? res))
|
||||
(read-label (cons (read-char in) res)))
|
||||
((and (eqv? c #\/) (not (memv #\/ res)))
|
||||
(read-label (cons (read-char in) res)))
|
||||
(else
|
||||
(list->string (reverse res))))))
|
||||
(define (read-number base)
|
||||
|
|
Loading…
Add table
Reference in a new issue