aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/compatibility/6.15.9.nom20
-rw-r--r--lib/compatibility/7.nom24
2 files changed, 44 insertions, 0 deletions
diff --git a/lib/compatibility/6.15.9.nom b/lib/compatibility/6.15.9.nom
new file mode 100644
index 0000000..d10167f
--- /dev/null
+++ b/lib/compatibility/6.15.9.nom
@@ -0,0 +1,20 @@
+#!/usr/bin/env nomsu -V6.15.9
+#
+ This file defines upgrades from Nomsu <6.15.9 to 6.15.9
+
+use "compatibility/compatibility"
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+upgrade action (assume $a == $b) to "6.15.9" as (assume ($a == $b))
+upgrade action (assume $a != $b) to "6.15.9" as (assume ($a != $b))
+upgrade action ($x to the nearest $r) to "6.15.9" as ($x, to the nearest $r)
+upgrade action [ceil $x, ceiling $x] to "6.15.9" as ($x, rounded up)
+upgrade action (floor $x) to "6.15.9" as ($x, rounded down)
+upgrade action (for $x in $start to $stop $body) to "6.15.9" as
+ for $x in ($start to $stop) $body
+
+upgrade action [
+ for $x in $start to $stop by $step $body
+ for $x in $start to $stop via $step $body
+] to "6.15.9" as (for $x in ($start to $stop by $step) $body)
diff --git a/lib/compatibility/7.nom b/lib/compatibility/7.nom
new file mode 100644
index 0000000..fb313c3
--- /dev/null
+++ b/lib/compatibility/7.nom
@@ -0,0 +1,24 @@
+#!/usr/bin/env nomsu -V7
+#
+ This file defines upgrades from Nomsu <7 to 7
+
+use "compatibility/compatibility"
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+upgrade action ($tree with $t -> $replacement) to "7" as
+ $tree, with ($t -> $replacement)
+
+upgrade action [
+ tree $tree with vars $replacements, $tree with vars $replacements
+] to "7" as ($tree, with $replacements)
+
+upgrade action ($tree has subtree $match_tree) to "7" as
+ $tree, contains $match_tree
+
+upgrade $tree to "7" as:
+ if ($tree.type == "EscapedNomsu"):
+ $e = $tree.1
+ return
+ "Action" tree from $tree.source with ("Text" tree with $e.type) "tree" "with"
+ unpack $e