aboutsummaryrefslogtreecommitdiff
path: root/lib/compatibility/4.8.10.nom
blob: 3ec7421fdcb0be6480133777373caaa27780941d (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env nomsu -V7.0.0

###
    This file defines upgrades from Nomsu <4.8.10 to 4.8.10 (renaming "action" -> "means")
use "compatibility/compatibility"

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

upgrade action "local action" to "4.8.10" via
    for ($tree $end_version):
        $spec = $tree.3
        $body = $tree.4
        if $spec.type is:
            "List":
                if (#$spec == 1):
                    return ("Action" tree with $spec.1 "means" $body)
                ..else:
                    return ("Action" tree with $spec "all" "mean" $body)
            
            else:
                return ("Action" tree with $spec "means" $body)

upgrade action "action" to "4.8.10" via
    for ($tree $end_version):
        $spec = $tree.2
        $body = $tree.3
        if $body:
            if $spec.type is:
                "List":
                    if (#$spec == 1):
                        return ("Action" tree with "externally" $spec.1 "means" $body)
                    ..else:
                        return ("Action" tree with "externally" $spec "all" "mean" $body)
                
                else:
                    return ("Action" tree with "externally" $spec "means" $body)
        ..else:
            return ("Action" tree with $spec "'" "s" "meaning")

upgrade action "compile 1 to" to "4.8.10" via
    for ($tree $end_version):
        $spec = $tree.2
        $body = $tree.4
        if $spec.type is:
            "List":
                if (#$spec == 1):
                    return ("Action" tree with $spec.1 "compiles" "to" $body)
                ..else:
                    return ("Action" tree with $spec "all" "compile" "to" $body)
            
            else:
                return ("Action" tree with $spec "compiles" "to" $body)

upgrade action "parse 1 as" to "4.8.10" via
    for ($tree $end_version):
        $spec = $tree.2
        $body = $tree.4
        if $spec.type is:
            "List":
                if (#$spec == 1):
                    return ("Action" tree with $spec.1 "parses" "as" $body)
                ..else:
                    return ("Action" tree with $spec "all" "parse" "as" $body)
            
            else:
                return ("Action" tree with $spec "parse" "as" $body)

upgrade action (compile as $) to "4.8.10" as (what $ compiles to)
upgrade action (remove action $) to "4.8.10" as (($'s meaning) = (nil))