From 3e89092833a6d407e711fe4ae5f44474ff34cf64 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 1 Jan 2019 17:15:51 -0800 Subject: Some changes to the error API, a fix for statement block parsing, and replacing ((foo 1 baz)'s meaning) with $(foo 1 baz). --- nomsu_compiler.moon | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'nomsu_compiler.moon') diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon index 0602f63..5cd7863 100644 --- a/nomsu_compiler.moon +++ b/nomsu_compiler.moon @@ -370,11 +370,7 @@ compile = setmetatable({ return LuaCode\from(tree.source, tostring(tree[1])) when "Var" - if type(tree[1]) == 'string' - return LuaCode\from(tree.source, (concat(tree, " "))\as_lua_id!) - else - assert(tree[1].type == 'Action') - return LuaCode\from(tree.source, tree[1]\get_stub!\as_lua_id!) + return LuaCode\from(tree.source, tree\as_var!\as_lua_id!) when "FileChunks" error("Can't convert FileChunks to a single block of lua, since each chunk's ".. -- cgit v1.2.3