root/src/lua/test/luac.lua

Revision 22d1941d0ca5ba7027cdfa51ce34bd1d8fb1931e, 234 bytes (checked in by Theo Schlossnagle <jesus@omniti.com>, 10 years ago)

take the version out... it is what it is

  • Property mode set to 100644
Line 
1 -- bare-bones luac in Lua
2 -- usage: lua luac.lua file.lua
3
4 assert(arg[1]~=nil and arg[2]==nil,"usage: lua luac.lua file.lua")
5 f=assert(io.open("luac.out","wb"))
6 assert(f:write(string.dump(assert(loadfile(arg[1])))))
7 assert(f:close())
Note: See TracBrowser for help on using the browser.