Here's a build of the Lua interpreter from Lua 5.2.3:
LuaWorks with Kicstart 3.0+ and 68020+ (only tested with 68030). Compiled with SASC6.58, so might work with Kicstart 2+. Does
NOT require an FPU, ixemul.library, etc. Only needs standard Workbench libraries. This build of Lua doesn't support loading dynamic libraries.
To use, simply unpack the archive anywhere you want, and start from Workbench. You can also run
lua.exe from the CLI directly. When starting from the CLI, use
lua.exe -l mapm to start the interpreter with the math library.
Example usage of arbitrary precision floating point commands (type into the interpreter command line directly):
mapm.digits(100)
a=mapm.sqrt(12345)
b=mapm.sqrt(54321)
print(a*b)
c=mapm.number(1)
d=mapm.number(3)
e=c/d
print(e*d)
You can also use things like
mapm.sin,
mapm.cos, etc.
Currently there's no documentation, but you can get some pointers here:
mapm:
http://www.tc.umn.edu/~ringx004/mapm-4.9.5a.tar.gzlmapm:
http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/5.2/lmapm.tar.gzMapm is the arbitrary precision floating point library. This contains documentation about the functions. Lmapm is the code that links mapm to lua. The file
lmapm.c will show you which functions are available in the interpreter. Sorry, but it will have to do for now.