Skip to content
forked from lua/lua

A Lua 5.3 Fork for Fantasy Consoles/Computers

Notifications You must be signed in to change notification settings

NinjasCL-archive/lua8

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lua Oito (Lua 8)

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.

Included Patches

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 Compatible

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

Packages

No packages published

Languages

  • C 67.1%
  • Lua 30.9%
  • C++ 1.3%
  • Makefile 0.7%