danilopedraza / komodo

The Komodo programming language code repository
https://komodo-lang.org/
GNU General Public License v3.0
7 stars 0 forks source link

Decimal numbers cannot have leading zeros #80

Closed eguar11011 closed 1 week ago

eguar11011 commented 1 week ago

I would like to work with some decimal numbers, but I'm not sure how to write them here. Here’s what I have so far:

>>> 0.001 + 0.2
Decimal numbers cannot have leading zeros
>>> 0.001 
Decimal numbers cannot have leading zeros
danilopedraza commented 1 week ago

This is a bug. I search for decimal integers with leading zeros in the lexer, where I did not consider the fact that they could be part of a decimal number (with a point).

danilopedraza commented 1 week ago

This was fixed in 65319e2534a20e9bfcd256efa366593c6823ceb8.