Welcome to my personal lua bastardization - an effort to make lua syntax as bloated and useless like perl's or pythons. There are currently 13 patches, available either as separate or one big un-#ifdefable patch, depending on your needs.
| Name/ifdef | Description | syntax compatible | bytecode compatible | author |
|---|---|---|---|---|
| ALTCMP_PATCH | != equals to ~= | yep | yep | kt |
| BITOPS_PATCH | and,or,xor,shl,shr,not => &,|,^^,<<,>>,~ | yep | nope | kt (orig. by RISClua) |
| BREAKN_PATCH | php-like break N (multiscope break) | yep | yep | kt |
| CONTINUE_PATCH | continue statement | yep | yep | AKa |
| DO_PATCH | do ... end equals to function() .. end | yep | yep | AKa |
| LITERALS_PATCH | hex(\xABCD) unicode(\uXXXX) literals | yep | yep | AKa |
| OPTDO_PATCH | optional 'do' after for/while | yep | yep | kt (orig. by Eric Tetz) |
| OPTTHEN_PATCH | optional 'then' after if | yep | yep | kt (orig. by Eric Tetz) |
| PSEUDO_PATCH | x.y,a.b = $2+1,$1+1 equals to x.y,a.b = a.b+1,x.y+1 etc | yep | yep | rici |
| PUDATA_PATCH | lua_pushuserdata() | yep | yep | kt |
| REFSTR_PATCH | print("Hello from \$_LUA_VERSION\ ..") equals print("Hello from ".._LUA_VERSION.." ..") | yep | yep | kt |
| STRHOOK_PATCH | Ever wanted to get mmap()ed memory from lua_tolstring()? | yep | yep | kt |
| USEDINDEX_PATCH | __usedindex, like __newindex but for existing keys | yep | yep | kt (orig. by Christopher Dunn) |