diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-19 17:37:37 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-19 17:37:37 -0800 |
| commit | a89d69e843ba83df928051005d02a932a9981f46 (patch) | |
| tree | 17f99cda2d4e5f0a7983ed14f4ac559b64944207 /compatibility/4.11.nom | |
| parent | 43ff3892f39188163446f1a00ee8d2aad59e0392 (diff) | |
Autoformatted/auto-upgraded.
Diffstat (limited to 'compatibility/4.11.nom')
| -rw-r--r-- | compatibility/4.11.nom | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/compatibility/4.11.nom b/compatibility/4.11.nom index 05edfea..71bf3ee 100644 --- a/compatibility/4.11.nom +++ b/compatibility/4.11.nom @@ -1,4 +1,4 @@ -#!/usr/bin/env nomsu -V4.11 +#!/usr/bin/env nomsu -V4.11.12.8 # This file defines upgrades from Nomsu <4.11 to Nomsu 4.11 (overhaul of function literals, deleting (if all of ...), etc. shorthand) @@ -14,7 +14,6 @@ upgrade action "call 1 with" to "4.11" via (..) for %arg in %tree.4 at %i: %tree2.(%i + 1) = %arg return (SyntaxTree %tree2) - upgrade action (-> %yield_value) to "4.11" as (yield %yield_value) # Replace set {%x:1, %y:2} with [%x, %y] = [1, 2] @@ -29,10 +28,15 @@ upgrade action "set" to "4.11" via (..) return (SyntaxTree {type: "Action", source: %tree.source, 1: %lhs, 2: "=", 3: %rhs}) # Changing filesystem API: -upgrade action (for file %f in %path %body) to "4.11" as (for %f in (files for %path) %body) -upgrade action (%expr for file %f in %path) to "4.11" as [: for %f in (files for %path): add %expr] +upgrade action (for file %f in %path %body) to "4.11" as (..) + for %f in (files for %path) %body + +upgrade action (%expr for file %f in %path) to "4.11" as [..] + : for %f in (files for %path): add %expr + upgrade action (line %n in %text) to "4.11" as (%text::line %n) -upgrade action (line number of %pos in %text) to "4.11" as (%text::line number at %pos) +upgrade action (line number of %pos in %text) to "4.11" as (..) + %text::line number at %pos # Deprecating shorthand functions: upgrade action [if all of %items %body, if all of %items then %body] to "4.11" as (..) |
