aboutsummaryrefslogtreecommitdiff
path: root/compatibility/3.6.nom
blob: eec97eb18d5d0fef7b234f574ec72b54eea8434b (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
#!/usr/bin/env nomsu -V4.8.8.6
#
    This file defines upgrades from Nomsu <3.6 to 3.6

use "compatibility/compatibility.nom"

upgrade action [..]
    append %item to %list, add %item to %list, to %list add %item, to %list append %item
..to "3.6" as (%list::add %item)

upgrade action [add %item to %list at index %i] to "3.6" as (..)
    %list::at index %i add %item

upgrade action [pop from %list, remove last from %list] to "3.6" as (%list::pop)
upgrade action [remove index %index from %list] to "3.6" as (..)
    %list::remove index %index

upgrade action [to %1 write %2, %1 <-write %2] to "3.6" as (%1::append %2)
upgrade action [to %1 write %2 joined by %3] to "3.6" as (..)
    %1::append %2 joined by %3

upgrade action [declare locals in %lua] to "3.6" as (%lua::declare locals)
upgrade action [declare locals %locs in %lua] to "3.6" as (..)
    %lua::declare locals %locs

upgrade action [add free vars %vars to %lua] to "3.6" as (..)
    %lua::add free vars %vars

upgrade action [remove free vars %vars from %lua] to "3.6" as (..)
    %lua::remove free vars %vars