aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-10-30 19:50:15 -0700
committerBruce Hill <bruce@bruce-hill.com>2018-10-30 19:50:20 -0700
commitfdf7a537c8ae13fc7ccb32278e5e364a52005443 (patch)
tree9bd4cef036c4c9cc60c4bb2bf96c6a84d425b529
parent8515a874271401927210e100b6dc0299c6afd0bf (diff)
Versioning fixes.
-rw-r--r--nomsu_compiler.lua5
-rw-r--r--nomsu_compiler.moon4
2 files changed, 2 insertions, 7 deletions
diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua
index 3d0580a..7aa117c 100644
--- a/nomsu_compiler.lua
+++ b/nomsu_compiler.lua
@@ -153,13 +153,11 @@ local NomsuCompiler = setmetatable({ }, {
})
local _anon_chunk = 0
do
- NomsuCompiler.NOMSU_COMPILER_VERSION = 9
- NomsuCompiler.NOMSU_SYNTAX_VERSION = max_parser_version
NomsuCompiler.can_optimize = function()
return false
end
NomsuCompiler.environment = {
- NOMSU_COMPILER_VERSION = 8,
+ NOMSU_COMPILER_VERSION = 9,
NOMSU_SYNTAX_VERSION = max_parser_version,
next = next,
unpack = unpack,
@@ -212,7 +210,6 @@ do
__imported = Dict({ }),
__parent = nil
}
- assert(NomsuCompiler.environment.globals)
setmetatable(NomsuCompiler.environment, {
__index = function(self, key)
do
diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon
index eb9ea45..387c901 100644
--- a/nomsu_compiler.moon
+++ b/nomsu_compiler.moon
@@ -93,13 +93,11 @@ MAX_LINE = 80 -- For beautification purposes, try not to make lines much longer
NomsuCompiler = setmetatable {}, {__tostring: => "Nomsu"}
_anon_chunk = 0
with NomsuCompiler
- .NOMSU_COMPILER_VERSION = 10
- .NOMSU_SYNTAX_VERSION = max_parser_version
.can_optimize = -> false
-- Discretionary/convenience stuff
.environment = {
- NOMSU_COMPILER_VERSION: 8, NOMSU_SYNTAX_VERSION: max_parser_version
+ NOMSU_COMPILER_VERSION: 9, NOMSU_SYNTAX_VERSION: max_parser_version
-- Lua stuff:
:next, :unpack, :setmetatable, :coroutine, :rawequal, :getmetatable, :pcall,
:error, :package, :os, :require, :tonumber, :tostring, :string, :xpcall, :module,