You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
234 B
7 lines
234 B
-- 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())
|