aboutsummaryrefslogtreecommitdiff
path: root/lua/step3_env.lua
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2015-02-28 15:58:35 -0600
committerJoel Martin <github@martintribe.org>2015-02-28 15:58:35 -0600
commit3e0b36dcee99ddfd7ea0e04a382c1ad3858fc45f (patch)
tree523465cf281c01c8930e3166e4050cd201335411 /lua/step3_env.lua
parent7907cd904a12c542529b27b0517a609e9cc4bb08 (diff)
downloadmal-3e0b36dcee99ddfd7ea0e04a382c1ad3858fc45f.tar.gz
mal-3e0b36dcee99ddfd7ea0e04a382c1ad3858fc45f.zip
Lua: fix with new runtest.py
Diffstat (limited to 'lua/step3_env.lua')
-rwxr-xr-xlua/step3_env.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/step3_env.lua b/lua/step3_env.lua
index ed2e62a..dbdb879 100755
--- a/lua/step3_env.lua
+++ b/lua/step3_env.lua
@@ -71,6 +71,10 @@ repl_env:set(types.Symbol:new('-'), function(a,b) return a-b end)
repl_env:set(types.Symbol:new('*'), function(a,b) return a*b end)
repl_env:set(types.Symbol:new('/'), function(a,b) return math.floor(a/b) end)
+if #arg > 0 and arg[1] == "--raw" then
+ readline.raw = true
+end
+
while true do
line = readline.readline("user> ")
if not line then break end