Lua is a minimalistic language, “no-batteries-included” ..
This all-in-one file extens the standard Lua API with helpful functions.
- include(file) a clone of dofile, just for convenience
- file - a .lua file, full path or local to the current executable
- printf(fmt, ...)
- fmt - format for printing, see lua.org
- ... - varags
- clear()
- get()
- string __index
- string __mod
- string __mul
Libraries are extended by following functions.
- debug.getparams(func)
-- this is lua
function add(arg1, num2)
return arg1 + num2
end
debug.getparams(add) ->
- file.read(name, mode)
- file.write(name, content, mode)
- file.append(name, content, mode)
- file.rename(name, name)
- file.delete(name)
- math.round(num)
- string.hax
- table.hax