rnix-parser icon indicating copy to clipboard operation
rnix-parser copied to clipboard

misparsing floats/ints starting with zeroes

Open yorickvP opened this issue 2 years ago • 5 comments

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 ]

Additional context

yorickvP avatar Mar 09 '23 13:03 yorickvP