From dc547af98c9c60f74828ad20375bcf366bb73ed2 Mon Sep 17 00:00:00 2001 From: gluax Date: Fri, 25 Feb 2022 13:45:49 -0800 Subject: [PATCH 1/2] fix console debug grammar discrep --- grammar/README.md | 2 +- grammar/abnf-grammar.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/grammar/README.md b/grammar/README.md index 105de2cbe4..b15b36e3ab 100644 --- a/grammar/README.md +++ b/grammar/README.md @@ -1627,7 +1627,7 @@ Go to: _[expression](#user-content-expression)_; ```abnf -print-function = %s"debug" / %s"error" / %s"log" +print-function = %s"error" / %s"log" ``` diff --git a/grammar/abnf-grammar.txt b/grammar/abnf-grammar.txt index af4bd430a1..092a7f13fd 100644 --- a/grammar/abnf-grammar.txt +++ b/grammar/abnf-grammar.txt @@ -971,7 +971,7 @@ console-call = assert-call assert-call = %s"assert" "(" expression ")" -print-function = %s"debug" / %s"error" / %s"log" +print-function = %s"error" / %s"log" print-arguments = "(" string-literal *( "," expression ) ")" From 1116b3058198779d6d829313fbee41a4e19ce28a Mon Sep 17 00:00:00 2001 From: gluax Date: Fri, 25 Feb 2022 14:26:49 -0800 Subject: [PATCH 2/2] fix grammar comment about number of console statements --- grammar/README.md | 2 +- grammar/abnf-grammar.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/grammar/README.md b/grammar/README.md index b15b36e3ab..9f10032127 100644 --- a/grammar/README.md +++ b/grammar/README.md @@ -1598,7 +1598,7 @@ The latter takes either no argument, or a format string followed by expressions, whose number must match the number of containers `{}` in the format string. Note that the console function names are identifiers, not keywords. -There are three kinds of print commands. +There are two kinds of print commands. ```abnf diff --git a/grammar/abnf-grammar.txt b/grammar/abnf-grammar.txt index 092a7f13fd..b5f0993019 100644 --- a/grammar/abnf-grammar.txt +++ b/grammar/abnf-grammar.txt @@ -962,7 +962,7 @@ assignment-statement = expression assignment-operator expression ";" ; or a format string followed by expressions, ; whose number must match the number of containers `{}` in the format string. ; Note that the console function names are identifiers, not keywords. -; There are three kinds of print commands. +; There are two kinds of print commands. console-statement = %s"console" "." console-call ";"