Risc Lua |
|
|
Available at http://www.wra1th.plus.com/lua . Current version 5.71. |
|
Available at http://www.wra1th.plus.com/lua/risclua.html . Current version 7.00. |
|
Compiled with Norcroft v.5.61, linked with the shared Clib. Armv7 compatible. |
|
Compiled with GCC 4.7.4, Armv7 compatible, with vfp. |
1. Peter Shook's local x,y,z in t syntax.2. Hard space lexed as a soft space. 3. `,$,?,!,@ allowed in identifiers.4. Syntactic sugar: \ for function and => for return.5. Update syntax x <op> = y can be used for x = x <op> y. |
1. #define LUA_NUMBER int2. No math library, but bitwise operators ~ (not), & (and), | (or), ^^ (xor) and shifts <<, >> instead.3. final library uses Diego Nehab's ideas for protect and clean.4. riscos library provides garbage collectible blocks of memory with dim and block, indirection operators !,?,$, software interrupts with sys, directory iterator dir and filetype.5. bc library provides arbitrary size numbers.6. Peter Shook's local x,y,z in t syntax.7. Hard space lexed as a soft space. 8. `,$,?,!,@ allowed in identifiers.9. Syntactic sugar: \ for function and => for return. 10. Roberto Ierusalimschy's lpeg 0.12 library.11. Update syntax x <op> = y can be used for x = x <op> y. |
|
This version uses a preface (LUA_INIT_5_4) which enforces declaration of global variables: global.foo = bar, the first time they are used. |
|
RiscluaExamples |
Available at http://www.wra1th.plus.com/lua/risclua.html . Current version 7.00.
Compiled with GCC 4.7.4, Armv7 compatible, with vfp.
Differences from standard Lua:
local x,y,z in t syntax.`,$,?,!,@ allowed in identifiers.\ for function and => for return.x <op> = y can be used for x = x <op> y.This version uses a preface (LUA_INIT_5_4) which enforces declaration of global variables: global.foo = bar, the first time they are used.