Update number lexing comments
This commit is contained in:
parent
5d78d5f823
commit
40367d7e57
|
@ -135,7 +135,8 @@
|
||||||
:else (add-error scanner "Unexpected " char "after keyword :" key)))))
|
:else (add-error scanner "Unexpected " char "after keyword :" key)))))
|
||||||
|
|
||||||
;; TODO: improve number parsing?
|
;; TODO: improve number parsing?
|
||||||
;; This will currently parse 000001 as 1. Is that correct behaviour?
|
;; Currently this uses Clojure's number formatting rules (since we use the EDN reader)
|
||||||
|
;; These rules are here: https://cljs.github.io/api/syntax/number
|
||||||
(defn- add-number [char scanner]
|
(defn- add-number [char scanner]
|
||||||
(loop [scanner scanner
|
(loop [scanner scanner
|
||||||
num (str char)
|
num (str char)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user