Skip to content

Commit 40803a0

Browse files
committed
[stmt.while] Format the while rewrite rule the same way we format
rewrite rules for other statement forms.
1 parent 73bfbf2 commit 40803a0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

source/statements.tex

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -514,16 +514,16 @@
514514
is an initialized declaration of some variable \tcode{t}
515515
is equivalent to
516516

517-
\begin{codeblock}
518-
label:
519-
{ // start of condition scope
520-
@\grammarterm{condition}@ ; @\,@// declares \tcode{t}
521-
if (t) {
522-
@\grammarterm{statement}@
523-
goto label;
524-
}
525-
} // end of condition scope
526-
\end{codeblock}
517+
\begin{ncbnftab}
518+
\terminal{label:}\br
519+
\terminal{\{}\>\>\>// start of condition scope\br
520+
\>condition \terminal{;}\>\>// declares \terminal{t}\br
521+
\>\terminal{if (t) \{}\br
522+
\>\>statement\br
523+
\>\>\terminal{goto label;}\br
524+
\>\terminal{\}}\br
525+
\terminal{\}}\>\>\>// end of condition scope
526+
\end{ncbnftab}
527527

528528
\begin{note}
529529
The variable created in the condition is destroyed and created with each

0 commit comments

Comments
 (0)