projects
/
redis.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
added redis.sha1hex(string) as lua scripting function.
[redis.git]
/
deps
/
lua
/
test
/
luac.lua
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())