Closed jakobnissen closed 2 months ago
We have had some discussion of switching to llvm's float parser in the past, since we already include it, and it is known to handle cases like this correctly and probably fairly fast
imo the ideal case would be for us to switch to the parsers.jl implementation which JuliaSyntax uses since then it's pure Julia and can inline/const fold etc
switch to the parsers.jl implementation which JuliaSyntax uses
Does JuliaSyntax use it?
This is a duplicate of #46544. That issue is actually referenced in a comment in the JuliaSyntax float parsing code (which as Kristoffer noted does not use Parsers.jl, it calls Julia's C float parser).
This code:
Throws an error on Linux, but returns
Inf32
on Windows. This reproduces all the way back to Julia 1.0.5. Ideally, parsing should behave identically on the two platforms.