This is a fork of lua v5.3.5 with some power patches to save tokens in fantasy consoles/computers. Like TIC-80.
All Lua syntax is still valid. Only some patches were included to add sugar.
These are some of the patches included.
This patch allows you to insert underscores
arbitrarily into numbers, like you can in Perl.
This allows you to type 1_000_000
for 1 million.
Standard Lua numerals remain available.
Based on perl-numbers.patch
by Hoelz.
Allows statements like "object.counter += 2"
. Adds shift and bitwise operators (<<=, >>=, &=, |=, and ^=)
to the previously implemented +=, -=, *=, and /=.
.
Standard Lua assignment remain available.
Based on plusequals-5.4.patch
By Dave Hayden ([email protected]) and SvenOlsen.
Allow the use of C-style (/*...*/
) multi line and Bash-style (# ...
) single line comments in Lua source.
For Bash style comments a space after is needed to differentiate it from the length (#
) operator.
Standard Lua comments remain available.
Based on the cppcomt.diff
patch by criptych.
iOS is not an ISO C platform, which is what Lua commits to. So special changes were added to loslib.c
to be compatible with this operating system.
You need to set ON the IOS
flag.
Thanks to @jet082 See libretro/TIC-80#2