Risc Lua

lua-users home
wiki

Difference (from prior major revision) (minor diff, author diff)

Changed: 3c3
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.

Changed: 5c5
Compiled with Norcroft v.5.61, linked with the shared Clib. Armv7 compatible.
Compiled with GCC 4.7.4, Armv7 compatible, with vfp.

Added: 8a9,13
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.

Changed: 10,20c15
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.
This version uses a preface (LUA_INIT_5_4) which enforces declaration of global variables: global.foo = bar, the first time they are used.

Removed: 22d16
RiscluaExamples

An implementation of Lua for RISC OS

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:

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.

This version uses a preface (LUA_INIT_5_4) which enforces declaration of global variables: global.foo = bar, the first time they are used.


RecentChanges · preferences
edit · history
Last edited July 28, 2018 11:11 am GMT (diff)