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",
|
||||
"Subtitle": "Language version go1.24 (Nov 20, 2024)",
|
||||
"Subtitle": "Language version go1.24 (Dec 12, 2024)",
|
||||
"Path": "/ref/spec"
|
||||
}-->
|
||||
|
||||
|
|
@ -3450,8 +3450,7 @@ Primary expressions are the operands for unary and binary expressions.
|
|||
</p>
|
||||
|
||||
<pre class="ebnf">
|
||||
PrimaryExpr =
|
||||
Operand |
|
||||
PrimaryExpr = Operand |
|
||||
Conversion |
|
||||
MethodExpr |
|
||||
PrimaryExpr Selector |
|
||||
|
|
@ -5916,8 +5915,7 @@ Statements control execution.
|
|||
</p>
|
||||
|
||||
<pre class="ebnf">
|
||||
Statement =
|
||||
Declaration | LabeledStmt | SimpleStmt |
|
||||
Statement = Declaration | LabeledStmt | SimpleStmt |
|
||||
GoStmt | ReturnStmt | BreakStmt | ContinueStmt | GotoStmt |
|
||||
FallthroughStmt | Block | IfStmt | SwitchStmt | SelectStmt | ForStmt |
|
||||
DeferStmt .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue