From 652c29bdef1f0991cc13bef59d6dc78b657ae9a4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 8 Nov 2018 15:23:22 -0800 Subject: Major overhaul, splitting nomsu_compiler into nomsu_environment, nomsu_compiler, and nomsu_decompiler. Also added comprehensions. --- syntax_tree.moon | 1 + 1 file changed, 1 insertion(+) (limited to 'syntax_tree.moon') diff --git a/syntax_tree.moon b/syntax_tree.moon index 03596f8..207fb9b 100644 --- a/syntax_tree.moon +++ b/syntax_tree.moon @@ -10,6 +10,7 @@ as_lua = => if mt = getmetatable(@) if _as_lua = mt.as_lua return _as_lua(@) + return @as_lua! if @as_lua error("Not supported: #{@}") --types = {"Number", "Var", "Block", "EscapedNomsu", "Text", "List", "Dict", "DictEntry", -- cgit v1.2.3