mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
spec: align EBNF rules consistently (cosmetic change)
Change-Id: Ib1b14b8880c6de5606f7f425a5fc1c8749d8a4b7 Reviewed-on: https://go-review.googlesource.com/c/go/+/635799 TryBot-Bypass: Robert Griesemer <gri@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Robert Griesemer <gri@google.com> Auto-Submit: Robert Griesemer <gri@google.com>
This commit is contained in:
parent
38e9a671d7
commit
80a2982a80
1 changed files with 62 additions and 64 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
<!--{
|
<!--{
|
||||||
"Title": "The Go Programming Language Specification",
|
"Title": "The Go Programming Language Specification",
|
||||||
"Subtitle": "Language version go1.24 (Nov 20, 2024)",
|
"Subtitle": "Language version go1.24 (Dec 12, 2024)",
|
||||||
"Path": "/ref/spec"
|
"Path": "/ref/spec"
|
||||||
}-->
|
}-->
|
||||||
|
|
||||||
|
|
@ -3450,8 +3450,7 @@ Primary expressions are the operands for unary and binary expressions.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre class="ebnf">
|
<pre class="ebnf">
|
||||||
PrimaryExpr =
|
PrimaryExpr = Operand |
|
||||||
Operand |
|
|
||||||
Conversion |
|
Conversion |
|
||||||
MethodExpr |
|
MethodExpr |
|
||||||
PrimaryExpr Selector |
|
PrimaryExpr Selector |
|
||||||
|
|
@ -5916,8 +5915,7 @@ Statements control execution.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre class="ebnf">
|
<pre class="ebnf">
|
||||||
Statement =
|
Statement = Declaration | LabeledStmt | SimpleStmt |
|
||||||
Declaration | LabeledStmt | SimpleStmt |
|
|
||||||
GoStmt | ReturnStmt | BreakStmt | ContinueStmt | GotoStmt |
|
GoStmt | ReturnStmt | BreakStmt | ContinueStmt | GotoStmt |
|
||||||
FallthroughStmt | Block | IfStmt | SwitchStmt | SelectStmt | ForStmt |
|
FallthroughStmt | Block | IfStmt | SwitchStmt | SelectStmt | ForStmt |
|
||||||
DeferStmt .
|
DeferStmt .
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue