From 7f47d4204039258cec78c767f489b7809b4257ff Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 17 Nov 2018 14:38:05 -0800 Subject: In-progress (but working) overhaul of some elements including: function calls, lib/thing.nom API, multi-assignments, varargs, etc. --- compatibility/compatibility.nom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compatibility/compatibility.nom') diff --git a/compatibility/compatibility.nom b/compatibility/compatibility.nom index 65e75fc..c7895e0 100644 --- a/compatibility/compatibility.nom +++ b/compatibility/compatibility.nom @@ -15,7 +15,7 @@ externally (upgrade action %stub to %version via %upgrade_fn) means: %ACTION_UPGRADES.%version.%stub = %upgrade_fn (upgrade %tree to %version as %body) parses as (..) - upgrade to %version via ([%, %end_version] -> (% with %tree -> %body)) + upgrade to %version via ((% %end_version) -> (% with %tree -> %body)) (upgrade action %actions to %version as %body) compiles to: if (%actions is "Action" syntax tree): @@ -91,7 +91,7 @@ externally [..] for %k = %v in %tree: add %k = (%v upgraded from %start_version to %end_version) set %with_upgraded_args's metatable to (%tree's metatable) - %tree = (call %UPGRADES.%ver with [%with_upgraded_args, %end_version]) + %tree = (%UPGRADES.%ver %with_upgraded_args %end_version) %tree.shebang = "#!/usr/bin/env nomsu -V\%end_version\n" return %tree -- cgit v1.2.3