From 69aaea030e08e083151aa25b8080eddd0d4c1683 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 9 Nov 2018 16:40:36 -0800 Subject: No longer passing `tree` to every compile action. Now, you can just return a LuaCode object, and it will automatically get a source from `tree` if it didn't already have a source. Plus some fixes/cleanup. --- compatibility/compatibility.nom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compatibility') diff --git a/compatibility/compatibility.nom b/compatibility/compatibility.nom index 184ca56..4e22dbc 100644 --- a/compatibility/compatibility.nom +++ b/compatibility/compatibility.nom @@ -79,13 +79,13 @@ externally [..] if ((%ver as list) > (%end_version as list)): stop %ver if %ACTION_UPGRADES.%ver: %tree = (..) - %tree with % -> (..) + %tree with % ->: if ((% is "Action" syntax tree) and %ACTION_UPGRADES.%ver.(%.stub)): %with_upgraded_args = (..) %k = (%v upgraded from %start_version to %end_version) for %k = %v in % set %with_upgraded_args 's metatable to (% 's metatable) return (..) - call %ACTION_UPGRADES.%ver.(%.stub) with [%with_upgraded_args, %end_version] + %ACTION_UPGRADES.%ver.(%.stub) %with_upgraded_args %end_version if %UPGRADES.%ver: %with_upgraded_args = (..) -- cgit v1.2.3