diff options
| author | Joel Martin <github@martintribe.org> | 2015-02-28 15:58:35 -0600 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2015-02-28 15:58:35 -0600 |
| commit | 3e0b36dcee99ddfd7ea0e04a382c1ad3858fc45f (patch) | |
| tree | 523465cf281c01c8930e3166e4050cd201335411 /lua/step7_quote.lua | |
| parent | 7907cd904a12c542529b27b0517a609e9cc4bb08 (diff) | |
| download | mal-3e0b36dcee99ddfd7ea0e04a382c1ad3858fc45f.tar.gz mal-3e0b36dcee99ddfd7ea0e04a382c1ad3858fc45f.zip | |
Lua: fix with new runtest.py
Diffstat (limited to 'lua/step7_quote.lua')
| -rwxr-xr-x | lua/step7_quote.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/step7_quote.lua b/lua/step7_quote.lua index 974e342..32bf60c 100755 --- a/lua/step7_quote.lua +++ b/lua/step7_quote.lua @@ -127,6 +127,11 @@ repl_env:set(types.Symbol:new('*ARGV*'), types.List:new(types.slice(arg,2))) rep("(def! not (fn* (a) (if a false true)))") rep("(def! load-file (fn* (f) (eval (read-string (str \"(do \" (slurp f) \")\")))))") +if #arg > 0 and arg[1] == "--raw" then + readline.raw = true + table.remove(arg,1) +end + if #arg > 0 then rep("(load-file \""..arg[1].."\")") os.exit(0) |
