blob: fb313c39e1da637af1543eaa3c1b4d7771eab4d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|