change scripts/ to luascripts/
This commit is contained in:
1 parent
fb00690957
commit
a8ee33baf4
47 files changed
+8
-8
No files matched your search
@@ -0,0 +1,16 @@
|
||||
--[[
|
||||
A sampe script file on how to implement at cmd line inteface.
|
||||
--]]
|
||||
|
||||
print("This is how a cmd-line interface could be implemented\nPrint 'exit' to exit.\n")
|
||||
local answer
|
||||
repeat
|
||||
io.write("$>")
|
||||
io.flush()
|
||||
answer = io.read()
|
||||
if answer ~= 'exit' then
|
||||
local func = assert(loadstring("return " .. answer))
|
||||
io.write("\n"..tostring(func() or "").."\n");
|
||||
end--]]
|
||||
until answer == "exit"
|
||||
print("Bye\n");
|
||||
Reference in new issue
Block a user