From 3b10a608267ce00cc140b63a19c9433f261f9794 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 19 Sep 2017 00:30:47 -0700 Subject: [PATCH] Moved core into lib/ and recompiled. --- examples/parser_tests.nom | 2 +- examples/sample_code.nom | 2 +- examples/sample_game.nom | 2 +- core.nom => lib/core.nom | 0 nomsu.lua | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename core.nom => lib/core.nom (100%) diff --git a/examples/parser_tests.nom b/examples/parser_tests.nom index 81608b7..47cb893 100644 --- a/examples/parser_tests.nom +++ b/examples/parser_tests.nom @@ -1,4 +1,4 @@ -run file "core.nom" +run file "lib/core.nom" test: say "foo" ..yields ".." |Call [say %]: diff --git a/examples/sample_code.nom b/examples/sample_code.nom index 4f4d2dd..4aa8cde 100644 --- a/examples/sample_code.nom +++ b/examples/sample_code.nom @@ -3,7 +3,7 @@ start with a #.. and continue until dedent -run file "core.nom" +run file "lib/core.nom" say "foo" diff --git a/examples/sample_game.nom b/examples/sample_game.nom index e366243..e393747 100644 --- a/examples/sample_game.nom +++ b/examples/sample_game.nom @@ -1,4 +1,4 @@ -run file "core.nom" +run file "lib/core.nom" run file "lib/secrets.nom" run file "lib/plurals.nom" diff --git a/core.nom b/lib/core.nom similarity index 100% rename from core.nom rename to lib/core.nom diff --git a/nomsu.lua b/nomsu.lua index 6a4793d..3267fc9 100644 --- a/nomsu.lua +++ b/nomsu.lua @@ -576,7 +576,7 @@ do elseif "Var" == _exp_0 then add("vars[" .. tostring(utils.repr(tree.value, true)) .. "]") else - error("Unknown/unimplemented thingy: " .. tostring(tree.type)) + self:error("Unknown/unimplemented thingy: " .. tostring(tree.type)) end buffer = table.concat(buffer, "\n") return buffer, return_value