From 74f8cd15bb43110973deffdeb9dd229797e5b328 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 19 Oct 2021 21:38:48 -0700 Subject: new fork of Lua 5.1 https://www.lua.org --- test/luac.lua | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/luac.lua (limited to 'test/luac.lua') diff --git a/test/luac.lua b/test/luac.lua new file mode 100644 index 0000000..96a0a97 --- /dev/null +++ b/test/luac.lua @@ -0,0 +1,7 @@ +-- 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()) -- cgit 1.4.1-2-gfad0