Skip to content

Commit e194e28

Browse files
committed
Restore the sentance that constraints break and continue.
This requires break and continue to target blocks in constructs they are nested in.
1 parent e88724d commit e194e28

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

AstSemantics.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,10 @@ are statements.
253253
* `switch`: switch statement with fallthrough
254254

255255
Loops (`do_while` and `forever`) may only be entered via fallthrough at the top.
256-
In particular, they may not be entered directly via a `break`, `continue`, or
257-
`switch` destination. This guarantees that all control flow graphs are
258-
well-structured.
256+
In particular, loops may not be entered directly via a `break`, `continue`, or
257+
`switch` destination. Break and continue statements can only target blocks or
258+
loops in which they are nested. These rules guarantee that all control flow
259+
graphs are well-structured.
259260

260261
Structured control flow provides simple and size-efficient binary encoding and
261262
compilation. Any control flow—even irreducible—can be transformed into structured

0 commit comments

Comments
 (0)