From f30413853063483147d941ffccc4b663b71bc943 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 19 Nov 2018 17:44:46 -0800 Subject: Deduplicated goto label syntax (now just use (--- (label) ---)) --- compatibility/4.10.12.7.nom | 2 +- compatibility/4.11.nom | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'compatibility') diff --git a/compatibility/4.10.12.7.nom b/compatibility/4.10.12.7.nom index fe1511c..28c07af 100644 --- a/compatibility/4.10.12.7.nom +++ b/compatibility/4.10.12.7.nom @@ -60,7 +60,7 @@ upgrade %tree to "4.10.12.7" as: go to (insert chunk) %i += 1 return - === (insert chunk) === + --- (insert chunk) --- [%chunk1, %chunk2] = [..] SyntaxTree {type: "Block", source: %first_chunk.source} SyntaxTree {type: "Block", source: %first_chunk.source} diff --git a/compatibility/4.11.nom b/compatibility/4.11.nom index 71bf3ee..042da1e 100644 --- a/compatibility/4.11.nom +++ b/compatibility/4.11.nom @@ -38,6 +38,11 @@ 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 +# Deduplicating goto labels: +upgrade action [=== %label ===, *** %label ***] to "4.11" as (--- %label ---) +upgrade action [===stop %label ===, ***stop %label ***] to "4.11" as (---stop %label ---) +upgrade action [===next %label ===, ***next %label ***] to "4.11" as (---next %label ---) + # Deprecating shorthand functions: upgrade action [if all of %items %body, if all of %items then %body] to "4.11" as (..) if (all of %items) %body -- cgit v1.2.3