Risc Lua

lua-users home
wiki

An implementation of Lua for RISC OS

Available at http://www.wra1th.plus.com/lua . Current version 5.70.

Compiled with Norcroft v.5.61, linked with the shared Clib. Armv7 compatible.

Differences from standard Lua:

1. #define LUA_NUMBER int
2. 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.

RiscluaExamples


RecentChanges · preferences
edit · history
Last edited March 30, 2014 12:07 pm GMT (diff)