From 811fdd685670d2eb8c6bcb9e6e103e57bf402ca8 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 29 Aug 2018 15:59:30 -0700 Subject: Tweaked version 3.6 to include deprecating list append/removal functions in favor of using a method call style. --- compatibility/3.6.nom | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'compatibility/3.6.nom') diff --git a/compatibility/3.6.nom b/compatibility/3.6.nom index 297612a..ecf4fb3 100644 --- a/compatibility/3.6.nom +++ b/compatibility/3.6.nom @@ -4,17 +4,27 @@ use "compatibility/compatibility.nom" -upgrade action (to %1 write %2) to "3.6" as (%1::append %2) -upgrade action (%1 <-write %2) to "3.6" as (%1::append %2) -upgrade action (to %1 write %2 joined by %3) to "3.6" as (..) +upgrade action [..] + append %item to %list, add %item to %list, to %list add %item, to %list append %item +..to "3.6" as (%list::add %item) + +upgrade action [add %item to %list at index %i] to "3.6" as (..) + %list::at index %i add %item + +upgrade action [pop from %list, remove last from %list] to "3.6" as (%list::pop) +upgrade action [remove index %index from %list] to "3.6" as (..) + %list::remove index %index + +upgrade action [to %1 write %2, %1 <-write %2] to "3.6" as (%1::append %2) +upgrade action [to %1 write %2 joined by %3] to "3.6" as (..) %1::append %2 joined by %3 -upgrade action (declare locals in %lua) to "3.6" as (%lua::declare locals) -upgrade action (declare locals %locs in %lua) to "3.6" as (..) +upgrade action [declare locals in %lua] to "3.6" as (%lua::declare locals) +upgrade action [declare locals %locs in %lua] to "3.6" as (..) %lua::declare locals %locs -upgrade action (add free vars %vars to %lua) to "3.6" as (..) +upgrade action [add free vars %vars to %lua] to "3.6" as (..) %lua::add free vars %vars -upgrade action (remove free vars %vars from %lua) to "3.6" as (..) +upgrade action [remove free vars %vars from %lua] to "3.6" as (..) %lua::remove free vars %vars -- cgit v1.2.3