aboutsummaryrefslogtreecommitdiff
path: root/nomsu.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu.lua')
-rw-r--r--nomsu.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/nomsu.lua b/nomsu.lua
index 9fcf8ad..3d54915 100644
--- a/nomsu.lua
+++ b/nomsu.lua
@@ -856,5 +856,22 @@ if arg and arg[1] then
load()(c, {})
]])
end
+elseif arg then
+ local c = NomsuCompiler()
+ while true do
+ local buff = ""
+ while true do
+ io.write(">> ")
+ local line = io.read("*L")
+ if line == "\n" or not line then
+ break
+ end
+ buff = buff .. line
+ end
+ if #buff == 0 then
+ break
+ end
+ c:run(buff)
+ end
end
return NomsuCompiler