From 1a794c64871fa044c3024a7771ee4123e800d3b2 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 23 Nov 2018 17:22:22 -0800 Subject: Tweaks and tidying. --- nomsu_compiler.moon | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nomsu_compiler.moon') diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon index 794d87b..3600e60 100644 --- a/nomsu_compiler.moon +++ b/nomsu_compiler.moon @@ -41,7 +41,6 @@ compile_error = (source, err_msg, hint=nil)-> start:source.start, stop:source.stop, filename:source.filename } error(err_str, 0) -{:tree_to_nomsu, :tree_to_inline_nomsu} = require "nomsu_decompiler" -- This is a bit of a hack, but this code handles arbitrarily complex -- math expressions like 2*x + 3^2 without having to define a single @@ -322,7 +321,7 @@ compile = setmetatable({ return LuaCode\from(tree.source, tostring(tree[1])) when "Var" - return LuaCode\from(tree.source, (tree[1])\as_lua_id!) + return LuaCode\from(tree.source, (concat(tree, " "))\as_lua_id!) when "FileChunks" error("Can't convert FileChunks to a single block of lua, since each chunk's ".. -- cgit v1.2.3