Fixed require->use, updated TODO.
This commit is contained in:
parent
3fbc89273d
commit
ba87104202
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user