mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-09 22:17:33 +02:00
Issue #52 - Recognize flonums with a leading dot
This commit is contained in:
parent
a5a2683f19
commit
ad94e0eed9
1 changed files with 5 additions and 1 deletions
|
@ -498,7 +498,11 @@
|
|||
(define (token-numeric? a)
|
||||
(or (char-numeric? (car a))
|
||||
(and (> (length a) 1)
|
||||
(char-numeric? (cadr a))
|
||||
(eq? #\. (car a))
|
||||
(char-numeric? (cadr a)))
|
||||
(and (> (length a) 1)
|
||||
(or (char-numeric? (cadr a))
|
||||
(eq? #\. (cadr a)))
|
||||
(sign? (car a)))))
|
||||
|
||||
;; parse-atom -> [chars] -> literal
|
||||
|
|
Loading…
Add table
Reference in a new issue