* lib/lua/test: Add.
This commit is contained in:
parent
149a0ba1d9
commit
e8ac11b670
21 changed files with 531 additions and 0 deletions
7
trunk/lib/lua/test/luac.lua
Normal file
7
trunk/lib/lua/test/luac.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
-- bare-bones luac in Lua
|
||||
-- usage: lua luac.lua file.lua
|
||||
|
||||
assert(arg[1]~=nil and arg[2]==nil,"usage: lua luac.lua file.lua")
|
||||
f=assert(io.open("luac.out","wb"))
|
||||
assert(f:write(string.dump(assert(loadfile(arg[1])))))
|
||||
assert(f:close())
|
||||
Loading…
Add table
Add a link
Reference in a new issue