aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-12 21:24:08 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-12 21:24:13 -0700
commitaf62e3e8bf2794048e7c20fc16fabd8c4726961e (patch)
tree71230e6b87b41ac7d0ce0d38cdabcf183317e25c /nomsu_compiler.lua
parentf908bb49b30dcead0c5123a513a1ee9e70dac412 (diff)
All tests passing.
Diffstat (limited to 'nomsu_compiler.lua')
-rw-r--r--nomsu_compiler.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua
index c3e78ef..0074d29 100644
--- a/nomsu_compiler.lua
+++ b/nomsu_compiler.lua
@@ -367,7 +367,7 @@ do
if tree == nil then
return nil
end
- if tree.type == "FileChunks" then
+ if tree.type == "File" then
local ret = nil
local all_lua = { }
for _index_0 = 1, #tree do
@@ -708,8 +708,8 @@ do
return LuaCode.Value(tree.source, tostring(tree[1]))
elseif "Var" == _exp_0 then
return LuaCode.Value(tree.source, string.as_lua_id(tree[1]))
- elseif "FileChunks" == _exp_0 then
- return error("Cannot convert FileChunks to a single block of lua, since each chunk's " .. "compilation depends on the earlier chunks")
+ elseif "File" == _exp_0 then
+ return error("Cannot convert File to a single block of lua, since each chunk's " .. "compilation depends on the earlier chunks")
else
return error("Unknown type: " .. tostring(tree.type))
end
@@ -757,7 +757,7 @@ do
end
local inline, can_use_colon = options.inline, options.can_use_colon
local _exp_0 = tree.type
- if "FileChunks" == _exp_0 then
+ if "File" == _exp_0 then
if inline then
return nil
end