-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
number parser returns 13 for "015" #1
Comments
src/zetta/parser/seq.clj
Roman: instead of using LispReader as kjw pointed out, how about using Java's BigInteger constructor, and convert it to appropriate Clojure data type?
|
and also we should provide the previous |
note that Roman, the author of zetta-parser, is busy in May so let's just wait until the end of month :) |
Problem with using |
Due to the use of clojure's reader in
zetta.parser.seq/number
.Clojure's reader interprets a sequence of digits with leading 0s as base 8, e.g.
(parse-number "010") => 8
,(parse-number "08") => nil
and(parse-number "07") => 7
.The text was updated successfully, but these errors were encountered: