diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-11 14:07:14 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-11 14:07:14 -0800 |
| commit | ba87104202baa20bb1d98e5453572d9789eb15ca (patch) | |
| tree | 25f4cd217d3319f3f0bc7cc68c3aa924364a39fa | |
| parent | 3fbc89273dbebadf5e70197a51ddfae3131202c4 (diff) | |
Fixed require->use, updated TODO.
| -rw-r--r-- | nomsu.lua | 2 | ||||
| -rwxr-xr-x | nomsu.moon | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -1370,7 +1370,7 @@ if arg then end end if args.flags["-i"] then - nomsu:run('require "lib/core.nom"', "stdin") + nomsu:run('use "lib/core.nom"', "stdin") while true do local buff = "" while true do @@ -35,6 +35,8 @@ if _VERSION == "Lua 5.1" -- Fix compiler bug that breaks when file ends with a block comment -- Add compiler options for optimization level (compile-fast vs. run-fast, etc.) -- Do a pass on all actions to enforce parameters-are-nouns heuristic +-- Put function defs into a separate table so we can do nomsu.defs["foo"](nomsu, ...) directly without a ".fn" +-- Maybe do some sort of lazy definitions of actions that defer until they're used in code lpeg.setmaxstack 10000 -- whoa {:P,:R,:V,:S,:Cg,:C,:Cp,:B,:Cmt} = lpeg @@ -854,7 +856,7 @@ if arg if args.flags["-i"] -- REPL - nomsu\run('require "lib/core.nom"', "stdin") + nomsu\run('use "lib/core.nom"', "stdin") while true buff = "" while true |
