From 618e48ad98c0e2b36eb22c75251dddc141d822e6 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 6 Feb 2019 14:34:10 -0800 Subject: Added compat files --- lib/compatibility/7.nom | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lib/compatibility/7.nom (limited to 'lib/compatibility/7.nom') 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 -- cgit v1.2.3