diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-08-29 19:38:14 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-08-29 19:39:15 -0700 |
| commit | 4f30e02acb666c52e0254eb9a3bf89a9cabb5e6d (patch) | |
| tree | bacc6a2baf70c18d3d44db06dc2235ec42edd49f /compatibility | |
| parent | aae5ce31feb482a86d8ef96fb1f104194f26828c (diff) | |
Handling more compatibility stuff, including Lua 5.4, and a backup for
if openssl module is not found, and moving containers (List/Dict) into
their own file, as well as bit operators (and support for __bxor, etc.
metamethods in Lua 5.2/LuaJIT)
Diffstat (limited to 'compatibility')
| -rw-r--r-- | compatibility/3.7.nom | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/compatibility/3.7.nom b/compatibility/3.7.nom new file mode 100644 index 0000000..1980f92 --- /dev/null +++ b/compatibility/3.7.nom @@ -0,0 +1,30 @@ +#!/usr/bin/env nomsu -V3.6.5.6 +# + This file defines upgrades from Nomsu <3.7 to 3.7 + +use "compatibility/compatibility.nom" + +# Indexing +upgrade action [%index st to last in %list] to "3.7" as (%list::%index st to last) +upgrade action [%index nd to last in %list] to "3.7" as (%list::%index nd to last) +upgrade action [%index rd to last in %list] to "3.7" as (%list::%index rd to last) +upgrade action [%index th to last in %list] to "3.7" as (%list::%index rd th last) +upgrade action [last in %list] to "3.7" (%list::last) +upgrade action [first in %list] to "3.7" (%list::first) +upgrade action [%item is in %list, %list contains %item, %list has %item] to "3.7" as (..) + %list::has %item + +upgrade action [..] + %item isn't in %list, %item is not in %list, %list doesn't contain %item + %list does not contain %item, %list doesn't have %item, %list does not have %item +..to "3.7" as (not (%list::has %item)) + +upgrade action [%list has key %index, %list has index %index] to "3.7" as (%list.%index != (nil)) +upgrade action [..] + %list doesn't have key %index, %list does not have key %index + %list doesn't have index %index, %list does not have index %index +..to "3.7" as (%list.%index == (nil)) + +upgrade action [..] + number of keys in %list, len %list, || %list ||, length %list, length of %list +..to "3.7" as (size of %list) |
