Fixed require->use, updated TODO.

This commit is contained in:
Bruce Hill 2018-01-11 14:07:14 -08:00
parent 3fbc89273d
commit ba87104202
2 changed files with 4 additions and 2 deletions

View File

@ -1370,7 +1370,7 @@ if arg then
end end
end end
if args.flags["-i"] then if args.flags["-i"] then
nomsu:run('require "lib/core.nom"', "stdin") nomsu:run('use "lib/core.nom"', "stdin")
while true do while true do
local buff = "" local buff = ""
while true do while true do

View File

@ -35,6 +35,8 @@ if _VERSION == "Lua 5.1"
-- Fix compiler bug that breaks when file ends with a block comment -- Fix compiler bug that breaks when file ends with a block comment
-- Add compiler options for optimization level (compile-fast vs. run-fast, etc.) -- Add compiler options for optimization level (compile-fast vs. run-fast, etc.)
-- Do a pass on all actions to enforce parameters-are-nouns heuristic -- 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 lpeg.setmaxstack 10000 -- whoa
{:P,:R,:V,:S,:Cg,:C,:Cp,:B,:Cmt} = lpeg {:P,:R,:V,:S,:Cg,:C,:Cp,:B,:Cmt} = lpeg
@ -854,7 +856,7 @@ if arg
if args.flags["-i"] if args.flags["-i"]
-- REPL -- REPL
nomsu\run('require "lib/core.nom"', "stdin") nomsu\run('use "lib/core.nom"', "stdin")
while true while true
buff = "" buff = ""
while true while true