aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nomsu_compiler.moon6
1 files changed, 3 insertions, 3 deletions
diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon
index c7105f3..fdadb67 100644
--- a/nomsu_compiler.moon
+++ b/nomsu_compiler.moon
@@ -354,7 +354,7 @@ with NomsuCompiler
return repr(t)
bits = [make_tree(bit) for bit in *t]
return t.type.."("..repr(tostring t.source)..", "..table.concat(bits, ", ")..")"
- LuaCode.Value tree.source, make_tree(tree[1])
+ return LuaCode.Value tree.source, make_tree(tree[1])
when "Block"
lua = LuaCode(tree.source)
@@ -460,10 +460,10 @@ with NomsuCompiler
return lua
when "Number"
- LuaCode.Value(tree.source, tostring(tree[1]))
+ return LuaCode.Value(tree.source, tostring(tree[1]))
when "Var"
- LuaCode.Value(tree.source, string.as_lua_id(tree[1]))
+ return LuaCode.Value(tree.source, string.as_lua_id(tree[1]))
when "FileChunks"
error("Cannot convert FileChunks to a single block of lua, since each chunk's "..