rnix-parser
rnix-parser copied to clipboard
misparsing floats/ints starting with zeroes
Describe the bug
rnix-parser does not parse floats/ints the same as the nix official parser.
Code Snippet to reproduce
let e="e"; in [001.22e01e.30.4]
(yes, this is valid nix)
Gets parsed into
[email protected] "001.22e01"
Expected behavior
semantically equivalent to [ 1 2.2 "e" 0.3 0.4 ]