From 4e821308af654706b8bda5f3d00dce7a933d9942 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 25 Apr 2018 17:43:48 -0700 Subject: Overhauling parsing of Blocks (can no longer contain only one statement) --- core/metaprogramming.nom | 3 --- 1 file changed, 3 deletions(-) (limited to 'core/metaprogramming.nom') diff --git a/core/metaprogramming.nom b/core/metaprogramming.nom index 9722afd..f6f202f 100644 --- a/core/metaprogramming.nom +++ b/core/metaprogramming.nom @@ -22,9 +22,6 @@ immediately for i,tok in ipairs(\%actions.value[1].value) do if tok.type == "Var" then args[#args+1] = nomsu:var_to_lua_identifier(tok.value); end end - if \%lua.type == "Text" then - error("Invalid type for 'compile % to %', expected a dict with expr/statements, but got text.", 0); - end for i, arg in ipairs(args) do lua:append(", "); lua:append(arg); -- cgit v1.2.3