aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-01-14 15:42:48 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-01-14 15:43:24 -0800
commitc1c32688a4afc43f6addb99b8b5fa878944a70e3 (patch)
treec886f21b5b08a9053aa74fcba4b241dae5ede76d /nomsu_compiler.lua
parent2309b696fc34b24f05f6658b94f9105ca8ee76e4 (diff)
Overhaul in progress, mostly working. Moved all the nomsu packages into
lib/, including core/*. Changes to how nomsu environments and importing work.
Diffstat (limited to 'nomsu_compiler.lua')
-rw-r--r--nomsu_compiler.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua
index 9c8c9ac..fee94f3 100644
--- a/nomsu_compiler.lua
+++ b/nomsu_compiler.lua
@@ -97,6 +97,8 @@ compile = function(self, tree)
if ret ~= tree then
return self:compile(ret)
end
+ elseif tree.stub == "1 if 2 else" then
+ require('ldt').breakpoint()
end
local lua = LuaCode:from(tree.source)
lua:add((stub):as_lua_id(), "(")