yet another stupid compiler
Log | Files | Refs | README | git clone https://git.ne02ptzero.me/git/Y-asc

commit 4d8cfcdd844cbc52b980a6565d7788887f81fd00
parent 29f83765e857eb3cedcb03c8f58e86459b70de7e
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Fri, 30 Jun 2017 12:04:13 +0200

Add(Tex): Section about breaks and continues

Mtex/yasc.tex | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/tex/yasc.tex b/tex/yasc.tex @@ -592,6 +592,17 @@ Operators & Associativity\\ evaluated. If it is true, \texttt{statement} is evaluated again, and so on. When the expression becomes false, the loop terminates. \subsection{Break and Continue} \label{break_n_continue} + It is sometimes convenient to be able to exit from a loop other than + by testing at the top or bottom. The \texttt{break} statement provides + an early exit from \texttt{for}, \texttt{while} and \texttt{do}. + A \texttt{break} causes the innermost enclosing loop to be exited + immediately. + + The \texttt{continue} statement is related to \texttt{break}: it + causes the next iteration of the enclosing \texttt{for}, \texttt{while} or + \texttt{do} loop to begin. In the \texttt{while} and \texttt{do}, this means + that the test part is executed immediately; in the \texttt{for}, control + passes to the increment step. \section{Functions and Program Structure} \subsection{Basics} \subsection{External Variables}