The Lua 5.4 compatible `tonumber` implementation completely reworked
- custom char-by-char parser (no regexes)
- proper Lua space handling
- support for heximal integers and floats
- support for scientific float notation
- extended tests
- updated website docs
Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
* Add global Lua function 'some'
Moved documentation for 'each' function to non-standard section.
* Revert "Add optional argument to template.each for empty collection output (#1359)"
This reverts commit b73dadec67.
* Reimplement #1359 using 'some' function
* Parse hexadecimal numeric constants in Lua
Fix lua grammar to not require a "+" after "e" in numbers.
Add tests for parsing correct number value.
* Implement bitwise operators in Lua
They throw an error when called on fractional values,
like Lua 5.4 but with a hint to round them manually.