aboutsummaryrefslogtreecommitdiff
path: root/compatibility/4.10.12.7.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-11 15:50:46 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-11 15:50:46 -0800
commit4efe44ed271aeed8e25e909344788d92a0d9f82b (patch)
tree73766440b53031d4fc8210dbe3b0aece47e6b852 /compatibility/4.10.12.7.nom
parentba03cb67c3c8ba53451eba25dd2186f095cd1db2 (diff)
Fully upgraded to 4.10.12.7, including deprecating the old list/dict
comprehension methods, in favor of the new native support.
Diffstat (limited to 'compatibility/4.10.12.7.nom')
-rw-r--r--compatibility/4.10.12.7.nom45
1 files changed, 29 insertions, 16 deletions
diff --git a/compatibility/4.10.12.7.nom b/compatibility/4.10.12.7.nom
index 4c363ab..982965b 100644
--- a/compatibility/4.10.12.7.nom
+++ b/compatibility/4.10.12.7.nom
@@ -9,22 +9,33 @@ upgrade action (% as lua statements) to "4.10.12.7" as (% as lua)
upgrade action (% as lua return) to "4.10.12.7" as (..)
=lua "\%.type == 'Block' and \(% as lua) or 'return '..\(% as lua expr)"
upgrade action (Lua value %) to "4.10.12.7" as (Lua %)
+upgrade action (%e for % in %items) to "4.10.12.7" as [: for % in %items: add %e]
+upgrade action (%e for %k = %v in %items) to "4.10.12.7" as [..]
+ : for %k = %v in %items: add %e
-upgrade action (%e for % in %items) to "4.10.12.7" as [:for % in %items: add %e]
-upgrade action (%e for %k = %v in %items) to "4.10.12.7" as [:for %k = %v in %items: add %e]
-upgrade action (%e for %i in %start to %stop) to "4.10.12.7" as [:for %i in %start to %stop: add %e]
-upgrade action (%e for %i in %start to %stop by %step) to "4.10.12.7" as (..)
- [:for %i in %start to %stop by %step: add %e]
-upgrade action (%e for %i in %start to %stop via %step) to "4.10.12.7" as (..)
- [:for %i in %start to %stop by %step: add %e]
-
-upgrade action (%k = %v for % in %items) to "4.10.12.7" as {:for % in %items: add %k = %v}
-upgrade action (%k = %v for %k0 = %v0 in %items) to "4.10.12.7" as {:for %k0 = %v0 in %items: add %k = %v}
-upgrade action (%k = %v for %i in %start to %stop) to "4.10.12.7" as {:for %i in %start to %stop: add %k = %v}
-upgrade action (%k = %v for %i in %start to %stop by %step) to "4.10.12.7" as (..)
- {:for %i in %start to %stop by %step: add %k = %v}
-upgrade action (%k = %v for %i in %start to %stop via %step) to "4.10.12.7" as (..)
- {:for %i in %start to %stop by %step: add %k = %v}
+upgrade action (%e for %i in %start to %stop) to "4.10.12.7" as [..]
+ : for %i in %start to %stop: add %e
+
+upgrade action (%e for %i in %start to %stop by %step) to "4.10.12.7" as [..]
+ : for %i in %start to %stop by %step: add %e
+
+upgrade action (%e for %i in %start to %stop via %step) to "4.10.12.7" as [..]
+ : for %i in %start to %stop by %step: add %e
+
+upgrade action (%k = %v for % in %items) to "4.10.12.7" as {..}
+ : for % in %items: add %k = %v
+
+upgrade action (%k = %v for %k0 = %v0 in %items) to "4.10.12.7" as {..}
+ : for %k0 = %v0 in %items: add %k = %v
+
+upgrade action (%k = %v for %i in %start to %stop) to "4.10.12.7" as {..}
+ : for %i in %start to %stop: add %k = %v
+
+upgrade action (%k = %v for %i in %start to %stop by %step) to "4.10.12.7" as {..}
+ : for %i in %start to %stop by %step: add %k = %v
+
+upgrade action (%k = %v for %i in %start to %stop via %step) to "4.10.12.7" as {..}
+ : for %i in %start to %stop by %step: add %k = %v
upgrade action (% as lua statements) to "4.10.12.7" as (% as lua)
upgrade action (compile error at %pos %err hint %hint) to "4.10.12.7" as (..)
@@ -38,11 +49,13 @@ upgrade %tree to "4.10.12.7" as:
repeat while (%i < (size of %first_chunk)):
if %first_has_use:
if ((%first_chunk.%i.type != "Action") or (%first_chunk.%i.stub != "use")):
- %chunk2 = (%SyntaxTree {type:"Block"})
+ %chunk2 = (%SyntaxTree {type: "Block"})
for %j in %i to (size of %first_chunk.%i):
%chunk2.((size of %chunk2) + 1) = %first_chunk.%i.%j
+
for %j in %i to (size of %first_chunk.%i):
%first_chunk.%i.%j = (nil)
+
%table.insert %tree 2 %chunk2
return %tree
..else: