From Jason Turner

[gram.stmt]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp6uli2hd6/{from.md → to.md} +22 -4
tmp/tmp6uli2hd6/{from.md → to.md} RENAMED
@@ -8,47 +8,65 @@ statement:
8
  attribute-specifier-seqₒₚₜ selection-statement
9
  attribute-specifier-seqₒₚₜ iteration-statement
10
  attribute-specifier-seqₒₚₜ jump-statement
11
  declaration-statement
12
  attribute-specifier-seqₒₚₜ try-block
 
13
 
 
14
  init-statement:
15
  expression-statement
16
  simple-declaration
 
 
17
 
 
18
  condition:
19
  expression
20
  attribute-specifier-seqₒₚₜ decl-specifier-seq declarator brace-or-equal-initializer
21
  ```
22
 
 
 
 
 
 
 
 
23
  ``` bnf
24
  labeled-statement:
25
- attribute-specifier-seqₒₚₜ identifier ':' statement
26
- attribute-specifier-seqₒₚₜ case constant-expression ':' statement
27
- attribute-specifier-seqₒₚₜ default ':' statement
28
  ```
29
 
30
  ``` bnf
31
  expression-statement:
32
  expressionₒₚₜ ';'
33
  ```
34
 
35
  ``` bnf
36
  compound-statement:
37
- '{' statement-seqₒₚₜ '}'
38
  ```
39
 
40
  ``` bnf
41
  statement-seq:
42
  statement
43
  statement-seq statement
44
  ```
45
 
 
 
 
 
 
 
46
  ``` bnf
47
  selection-statement:
48
  if constexprₒₚₜ '(' init-statementₒₚₜ condition ')' statement
49
  if constexprₒₚₜ '(' init-statementₒₚₜ condition ')' statement else statement
 
 
50
  switch '(' init-statementₒₚₜ condition ')' statement
51
  ```
52
 
53
  ``` bnf
54
  iteration-statement:
 
8
  attribute-specifier-seqₒₚₜ selection-statement
9
  attribute-specifier-seqₒₚₜ iteration-statement
10
  attribute-specifier-seqₒₚₜ jump-statement
11
  declaration-statement
12
  attribute-specifier-seqₒₚₜ try-block
13
+ ```
14
 
15
+ ``` bnf
16
  init-statement:
17
  expression-statement
18
  simple-declaration
19
+ alias-declaration
20
+ ```
21
 
22
+ ``` bnf
23
  condition:
24
  expression
25
  attribute-specifier-seqₒₚₜ decl-specifier-seq declarator brace-or-equal-initializer
26
  ```
27
 
28
+ ``` bnf
29
+ label:
30
+ attribute-specifier-seqₒₚₜ identifier ':'
31
+ attribute-specifier-seqₒₚₜ case constant-expression ':'
32
+ attribute-specifier-seqₒₚₜ default ':'
33
+ ```
34
+
35
  ``` bnf
36
  labeled-statement:
37
+ label statement
 
 
38
  ```
39
 
40
  ``` bnf
41
  expression-statement:
42
  expressionₒₚₜ ';'
43
  ```
44
 
45
  ``` bnf
46
  compound-statement:
47
+ '{' statement-seqₒₚₜ label-seqₒₚₜ '}'
48
  ```
49
 
50
  ``` bnf
51
  statement-seq:
52
  statement
53
  statement-seq statement
54
  ```
55
 
56
+ ``` bnf
57
+ label-seq:
58
+ label
59
+ label-seq label
60
+ ```
61
+
62
  ``` bnf
63
  selection-statement:
64
  if constexprₒₚₜ '(' init-statementₒₚₜ condition ')' statement
65
  if constexprₒₚₜ '(' init-statementₒₚₜ condition ')' statement else statement
66
+ if '!'ₒₚₜ consteval compound-statement
67
+ if '!'ₒₚₜ consteval compound-statement else statement
68
  switch '(' init-statementₒₚₜ condition ')' statement
69
  ```
70
 
71
  ``` bnf
72
  iteration-statement: