nomsu/compatibility/4.8.10.nom

69 lines
2.2 KiB
Plaintext
Raw Normal View History

2018-12-30 19:04:34 -08:00
#!/usr/bin/env nomsu -V6.12.12.8
2018-10-31 03:54:16 -07:00
#
This file defines upgrades from Nomsu <4.8.10 to 4.8.10 (renaming "action" -> "means")
use "compatibility/compatibility.nom"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2018-12-30 19:04:34 -08:00
upgrade action "local action" to "4.8.10" via
2018-12-14 20:21:03 -08:00
for ($tree $end_version):
$spec = $tree.3
$body = $tree.4
if $spec.type is:
2018-10-31 03:54:16 -07:00
"List":
2018-12-14 20:21:03 -08:00
if ((size of $spec) == 1):
return \($spec.1 means $body)
2018-10-31 03:54:16 -07:00
..else:
2018-12-14 20:21:03 -08:00
return \($spec all mean $body)
2018-10-31 03:54:16 -07:00
else:
2018-12-14 20:21:03 -08:00
return \($spec means $body)
2018-10-31 03:54:16 -07:00
2018-12-30 19:04:34 -08:00
upgrade action "action" to "4.8.10" via
2018-12-14 20:21:03 -08:00
for ($tree $end_version):
$spec = $tree.2
$body = $tree.3
if $body:
if $spec.type is:
"List":
2018-12-14 20:21:03 -08:00
if ((size of $spec) == 1):
return \(externally $spec.1 means $body)
..else:
2018-12-14 20:21:03 -08:00
return \(externally $spec all mean $body)
else:
2018-12-14 20:21:03 -08:00
return \(externally $spec means $body)
..else:
2018-12-14 20:21:03 -08:00
return \($spec's meaning)
2018-10-31 03:54:16 -07:00
2018-12-30 19:04:34 -08:00
upgrade action "compile 1 to" to "4.8.10" via
2018-12-14 20:21:03 -08:00
for ($tree $end_version):
$spec = $tree.2
$body = $tree.4
if $spec.type is:
2018-10-31 03:54:16 -07:00
"List":
2018-12-14 20:21:03 -08:00
if ((size of $spec) == 1):
return \($spec.1 compiles to $body)
2018-10-31 03:54:16 -07:00
..else:
2018-12-14 20:21:03 -08:00
return \($spec all compile to $body)
2018-10-31 03:54:16 -07:00
else:
2018-12-14 20:21:03 -08:00
return \($spec compiles to $body)
2018-10-31 03:54:16 -07:00
2018-12-30 19:04:34 -08:00
upgrade action "parse 1 as" to "4.8.10" via
2018-12-14 20:21:03 -08:00
for ($tree $end_version):
$spec = $tree.2
$body = $tree.4
if $spec.type is:
2018-10-31 03:54:16 -07:00
"List":
2018-12-14 20:21:03 -08:00
if ((size of $spec) == 1):
return \($spec.1 parses as $body)
2018-10-31 03:54:16 -07:00
..else:
2018-12-14 20:21:03 -08:00
return \($spec all parse as $body)
2018-10-31 03:54:16 -07:00
else:
2018-12-14 20:21:03 -08:00
return \($spec parse as $body)
2018-10-31 03:54:16 -07:00
2018-12-14 20:21:03 -08:00
upgrade action (compile as $) to "4.8.10" as (what $ compiles to)
upgrade action (remove action $) to "4.8.10" as (($'s meaning) = (nil))