Open tom-from-goss opened 1 year ago
True, the native compile doesn't parse floats yes. If you need them I could speed up their implementation.
For the thing I want to build (an 8086 emulator) I don't think it's the most pressing issue but I think it's good for onboarding to the language.
Not sure if you're interested but https://github.com/lemire/fast_double_parser is a very fast float parser that I've used in the past.
I've pushed some commits with the first work on Floats, nothing final yet, but at least hello.c2 now parses. The c-generation is not done yet however. Parsing floats always seems trivial, but is definitely not. So the fast parser you mentioned will certainly help. Speed is good :)
Excellent, thanks Bas, i'll keep at eye on the repo for commits on this.
Cheers,
Tom
The following code produces a syntax error
Changing 1.1 to 1.0 works