diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-31 18:35:40 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-31 18:35:40 -0700 |
| commit | b0072e6dcf3525365977cd4ba9f4f19c745fa16e (patch) | |
| tree | 776d577bb7053235839652a53261d315f0e8fb1f /nomsu.lua | |
| parent | 6ba79a8ff1015c3d2b5c28bc61c27275f5abc2af (diff) | |
Added local var persistence for REPL.
Diffstat (limited to 'nomsu.lua')
| -rw-r--r-- | nomsu.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1188,6 +1188,7 @@ if arg then end end if args.flags["-i"] then + local vars = { } c:run('require "lib/core.nom"', "stdin") while true do local buff = "" @@ -1203,7 +1204,7 @@ if arg then break end local ok, ret = pcall(function() - return c:run(buff, "stdin") + return c:run(buff, "stdin", vars) end) if ok and ret ~= nil then print("= " .. repr(ret)) |
