Versioning fixes.

This commit is contained in:
Bruce Hill 2018-10-30 19:50:15 -07:00
parent 8515a87427
commit fdf7a537c8
2 changed files with 2 additions and 7 deletions

View File

@ -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

View File

@ -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,