Created
July 25, 2014 12:47
-
-
Save hanxi/f4ae7dabdcb49fa62cac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- bare-bones luac in Lua | |
-- usage: lua luac.lua file.lua file.out | |
local out=arg[1]..".out" | |
if arg[2]~=nil then out=arg[2] end | |
f=assert(io.open(out,"wb")) | |
assert(f:write(string.dump(assert(loadfile(arg[1]))))) | |
assert(f:close()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bare-bones luac in Lua