aboutsummaryrefslogtreecommitdiff
path: root/lib/compatibility/7.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-02-06 14:34:10 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-02-06 14:34:10 -0800
commit618e48ad98c0e2b36eb22c75251dddc141d822e6 (patch)
tree5928f913e91af50289e119bfef820ad59d888bf6 /lib/compatibility/7.nom
parent9e9bcad6fab72fe66a52c174d27fce63dcae106c (diff)
Added compat files
Diffstat (limited to 'lib/compatibility/7.nom')
-rw-r--r--lib/compatibility/7.nom24
1 files changed, 24 insertions, 0 deletions
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