From Jason Turner

[stmt.block]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp92_xemmm/{from.md → to.md} +13 -5
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
- So that several statements can be used where one is expected, the
4
- compound statement (also, and equivalently, called “block”) is provided.
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
- A compound statement defines a block scope [[basic.scope]].
 
 
 
 
18
 
19
- [*Note 1*: A declaration is a *statement* [[stmt.dcl]]. *end note*]
 
 
 
 
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