aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-09-19 00:30:47 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-09-19 00:30:47 -0700
commit3b10a608267ce00cc140b63a19c9433f261f9794 (patch)
tree4a4c6c9da5841bc2a18f794967f5b2127412075a
parent0ee5b5888208dff29881869d9dc3595025b515c0 (diff)
Moved core into lib/ and recompiled.
-rw-r--r--examples/parser_tests.nom2
-rw-r--r--examples/sample_code.nom2
-rw-r--r--examples/sample_game.nom2
-rw-r--r--lib/core.nom (renamed from core.nom)0
-rw-r--r--nomsu.lua2
5 files changed, 4 insertions, 4 deletions
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
index 54f728d..54f728d 100644
--- a/core.nom
+++ b/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