[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Ignore letters other than e/E if number is decimal, and ignore all letters after e/E
- From: "Soni \"They/Them\" L." <fakedme@...>
- Date: Wed, 25 Sep 2019 11:18:22 -0300
Currently Lua ignores some letters after numbers, but not enough:
stdin:1: malformed number near '1e'
stdin:1: malformed number near '1f'
stdin:1: malformed number near '1a'
additionally if your number has an e:
stdin:1: malformed number near '1e0e'
it'd be nicer if the number parser was more strict so only actual parts
of numbers would be consumed by it. this would make almost all of the
above cases valid lua, except x=1eprint(x)