2
0

luac.lua 234 B

1234567
  1. -- bare-bones luac in Lua
  2. -- usage: lua luac.lua file.lua
  3. assert(arg[1]~=nil and arg[2]==nil,"usage: lua luac.lua file.lua")
  4. f=assert(io.open("luac.out","wb"))
  5. assert(f:write(string.dump(assert(loadfile(arg[1])))))
  6. assert(f:close())