aboutsummaryrefslogtreecommitdiff
path: root/lib/compatibility/7.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-03-13 20:56:28 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-03-13 20:56:28 -0700
commit7f138199078a2fc2b6d6ee8d31da940120c8216a (patch)
treec9f2283eedc9e8db1de3d27108ea66930f056776 /lib/compatibility/7.nom
parentcfe48fd2ed07ef174cf7c66a2f26c129dfbd6aec (diff)
Upgraded with new style for looping
Diffstat (limited to 'lib/compatibility/7.nom')
-rw-r--r--lib/compatibility/7.nom16
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/compatibility/7.nom b/lib/compatibility/7.nom
index 5add70f..df60f21 100644
--- a/lib/compatibility/7.nom
+++ b/lib/compatibility/7.nom
@@ -16,6 +16,20 @@ upgrade action [
upgrade action ($tree has subtree $match_tree) to "7" as
$tree, contains $match_tree
+upgrade action (for $var in $iterable at $i $body) to "7" as
+ for ($i = $var) in $iterable $body
+
+upgrade action (for $k = $v in $iterable $body) to "7" as
+ for ($k = $v) in $iterable $body
+
+upgrade action [
+ for $var in $start to $stop by $step $body
+ for $var in $start to $stop via $step $body
+] to "7" as (for $var in ($start to $stop by $step) $body)
+
+upgrade action (for $var in $start to $stop $body) to "7" as
+ for $var in ($start to $stop) $body
+
upgrade $tree to "7" as:
if ($tree.type == "EscapedNomsu"):
$t =
@@ -28,7 +42,7 @@ upgrade $tree to "7" as:
upgrade action "Nomsu version" to "7" via ->(`$(NOMSU VERSION))
upgrade action [
"Nomsu syntax version", "Nomsu compiler version", "core version", "lib version"
-] to "7" via:
+] to "7" via
for $:
at $.source fail ("
Deprecation error: Actions for accessing specific parts of the version number have been deprecated.