aboutsummaryrefslogtreecommitdiff
path: root/compatibility/5.13.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-01-08 16:33:23 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-01-08 16:33:23 -0800
commitd62631fb5095a8d422a7bd3ca16d510f4e0a503c (patch)
tree1620289cad153cfad28c731819a71c4639515a1f /compatibility/5.13.nom
parent1914249e3bd23063bdddb5569a3c70e431343dcd (diff)
Added compatibility files and revamped core/math to use global variables
instead of compile actions. Also added mix (lerp) and smooth (smoothstep) functions.
Diffstat (limited to 'compatibility/5.13.nom')
-rw-r--r--compatibility/5.13.nom24
1 files changed, 24 insertions, 0 deletions
diff --git a/compatibility/5.13.nom b/compatibility/5.13.nom
new file mode 100644
index 0000000..b4100bf
--- /dev/null
+++ b/compatibility/5.13.nom
@@ -0,0 +1,24 @@
+#!/usr/bin/env nomsu -V5.13
+#
+ This file defines upgrades from Nomsu <5.13 to 5.13
+use "compatibility/compatibility.nom"
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+upgrade action (size of $) to "5.13" as (#$)
+
+upgrade action "with" to "5.13" via (..)
+ for $tree:
+ $assignments = $tree.2
+ $body = $tree.3
+ if ($assignments.type != "Dict"):
+ return $tree
+ $new_assignments = \[]
+ for $a in $assignments at $i:
+ when:
+ (($a.type == "DictEntry") and ((#$a) == 1)):
+ $a = $a.1
+ (all of [$a.type == "DictEntry", (#$a) == 2]):
+ $a = \($a.1 = $a.2)
+ $new_assignments.$i = $a
+ return \(with $new_assignments $body)