Skip to content

Commit e330446

Browse files
ntreldlang-bot
authored andcommitted
[spec/statement.dd] Remove unnecessary GLINKs
These clutter paragraphs and are repeated from links in the grammar just above them.
1 parent 67050e9 commit e330446

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

spec/statement.dd

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ $(GNAME ElseStatement):
255255
)
256256

257257
$(P $(EXPRESSION) is evaluated and must have a type that
258-
can be converted to a boolean. If it's true the
258+
can be converted to a boolean. If it's `true` the
259259
$(I ThenStatement) is transferred to, else the $(I ElseStatement)
260260
is transferred to.)
261261

@@ -306,11 +306,11 @@ $(GNAME WhileStatement):
306306

307307
$(P A $(I While Statement) implements a simple loop.)
308308

309-
$(P If the $(GLINK IfCondition) is an $(EXPRESSION), it is evaluated and must have a type
310-
that can be converted to a boolean. If it's true the $(PSSCOPE) is executed.
311-
After the $(PSSCOPE) is executed, the $(EXPRESSION) is evaluated again, and
312-
if true the $(PSSCOPE) is executed again. This continues until the $(EXPRESSION)
313-
evaluates to false.)
309+
$(P If the $(I IfCondition) is an *Expression*, it is evaluated and must have a type
310+
that can be converted to a boolean. If it's `true` the *ScopeStatement* is executed.
311+
After the *ScopeStatement* is executed, the *Expression* is evaluated again, and
312+
if `true` the *ScopeStatement* is executed again. This continues until the *Expression*
313+
evaluates to `false`.)
314314

315315
---
316316
int i = 0;
@@ -322,21 +322,21 @@ while (i < 10)
322322
---
323323

324324
$(P If an $(D auto) $(I Identifier) is provided, it is declared and
325-
initialized to the value and type of the $(EXPRESSION). Its scope
326-
extends from when it is initialized to the end of the $(PSSCOPE).)
325+
initialized to the value and type of the *Expression*. Its scope
326+
extends from when it is initialized to the end of the *ScopeStatement*.)
327327

328328
$(P If a $(I TypeCtors) $(I Identifier) is provided, it is declared
329329
to be of the type specified by $(I TypeCtors) and is initialized with
330-
the value of the $(EXPRESSION). Its scope extends from when it is
331-
initialized to the end of the $(PSSCOPE).)
330+
the value of the *Expression*. Its scope extends from when it is
331+
initialized to the end of the *ScopeStatement*.)
332332

333333
$(P If a $(I Declarator) is provided, it is declared and initialized
334-
to the value of the $(EXPRESSION). Its scope extends from when it is
335-
initialized to the end of the $(PSSCOPE).)
334+
to the value of the *Expression*. Its scope extends from when it is
335+
initialized to the end of the *ScopeStatement*.)
336336

337337
$(P A $(GLINK BreakStatement) will exit the loop.)
338338

339-
$(P A $(GLINK ContinueStatement) will transfer directly to evaluating $(GLINK IfCondition) again.)
339+
$(P A $(GLINK ContinueStatement) will transfer directly to evaluating $(I IfCondition) again.)
340340

341341
$(H2 $(LEGACY_LNAME2 DoStatement, do-statement, Do Statement))
342342

@@ -348,9 +348,9 @@ $(GNAME DoStatement):
348348

349349
$(P Do while statements implement simple loops.)
350350

351-
$(P $(PSSCOPE) is executed. Then $(EXPRESSION) is evaluated and must have a
352-
type that can be converted to a boolean. If it's true the loop is iterated
353-
again. This continues until the $(EXPRESSION) evaluates to false.)
351+
$(P *ScopeStatement* is executed. Then *Expression* is evaluated and must have a
352+
type that can be converted to a boolean. If it's `true` the loop is iterated
353+
again. This continues until the *Expression* evaluates to `false`.)
354354

355355
---
356356
int i = 0;
@@ -361,7 +361,7 @@ do
361361
---
362362

363363
$(P A $(GLINK BreakStatement) will exit the loop. A $(GLINK ContinueStatement)
364-
will transfer directly to evaluating $(EXPRESSION) again.)
364+
will transfer directly to evaluating *Expression* again.)
365365

366366
$(H2 $(LEGACY_LNAME2 ForStatement, for-statement, For Statement))
367367

@@ -485,7 +485,7 @@ $(P
485485
$(I ForeachAggregate) is evaluated. It must evaluate to an expression
486486
of type static array, dynamic array, associative array,
487487
struct, class, delegate, or sequence.
488-
The $(PS0) is executed, once for each element of the
488+
The *NoScopeNonEmptyStatement* is executed, once for each element of the
489489
aggregate.
490490
At the start of each iteration, the variables declared by
491491
the $(I ForeachTypeList)
@@ -498,7 +498,7 @@ $(P
498498
$(P
499499
The aggregate must be loop invariant, meaning that
500500
elements to the aggregate cannot be added or removed from it
501-
in the $(PS0).
501+
in the *NoScopeNonEmptyStatement*.
502502
)
503503

504504
$(P A $(GLINK BreakStatement) in the body of the foreach will exit the

0 commit comments

Comments
 (0)