tmp/tmp92_xemmm/{from.md → to.md}
RENAMED
|
@@ -1,20 +1,28 @@
|
|
| 1 |
## Compound statement or block <a id="stmt.block">[[stmt.block]]</a>
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
|
| 6 |
``` bnf
|
| 7 |
compound-statement:
|
| 8 |
-
'{' statement-seqₒₚₜ '}'
|
| 9 |
```
|
| 10 |
|
| 11 |
``` bnf
|
| 12 |
statement-seq:
|
| 13 |
statement
|
| 14 |
statement-seq statement
|
| 15 |
```
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
|
|
|
| 1 |
## Compound statement or block <a id="stmt.block">[[stmt.block]]</a>
|
| 2 |
|
| 3 |
+
A *compound statement* (also known as a block) groups a sequence of
|
| 4 |
+
statements into a single statement.
|
| 5 |
|
| 6 |
``` bnf
|
| 7 |
compound-statement:
|
| 8 |
+
'{' statement-seqₒₚₜ label-seqₒₚₜ '}'
|
| 9 |
```
|
| 10 |
|
| 11 |
``` bnf
|
| 12 |
statement-seq:
|
| 13 |
statement
|
| 14 |
statement-seq statement
|
| 15 |
```
|
| 16 |
|
| 17 |
+
``` bnf
|
| 18 |
+
label-seq:
|
| 19 |
+
label
|
| 20 |
+
label-seq label
|
| 21 |
+
```
|
| 22 |
|
| 23 |
+
A label at the end of a *compound-statement* is treated as if it were
|
| 24 |
+
followed by a null statement.
|
| 25 |
+
|
| 26 |
+
[*Note 1*: A compound statement defines a block scope [[basic.scope]].
|
| 27 |
+
A declaration is a *statement* [[stmt.dcl]]. — *end note*]
|
| 28 |
|