OLD | NEW |
---|---|
1 \documentclass{article} | 1 \documentclass{article} |
2 \usepackage{epsfig} | 2 \usepackage{epsfig} |
3 \usepackage{color} | 3 \usepackage{color} |
4 \usepackage{dart} | 4 \usepackage{dart} |
5 \usepackage{bnf} | 5 \usepackage{bnf} |
6 \usepackage{hyperref} | 6 \usepackage{hyperref} |
7 \usepackage{lmodern} | 7 \usepackage{lmodern} |
8 \usepackage[T1]{fontenc} | 8 \usepackage[T1]{fontenc} |
9 \newcommand{\code}[1]{{\sf #1}} | 9 \newcommand{\code}[1]{{\sf #1}} |
10 \title{Dart Programming Language Specification \\ | 10 \title{Dart Programming Language Specification \\ |
(...skipping 6548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6559 \LMHash{} | 6559 \LMHash{} |
6560 The {\em break statement} consists of the reserved word \BREAK{} and an optional label (\ref{labels}). | 6560 The {\em break statement} consists of the reserved word \BREAK{} and an optional label (\ref{labels}). |
6561 | 6561 |
6562 \begin{grammar} | 6562 \begin{grammar} |
6563 {\bf breakStatement:} | 6563 {\bf breakStatement:} |
6564 \BREAK{} identifier? `{\escapegrammar ;}' | 6564 \BREAK{} identifier? `{\escapegrammar ;}' |
6565 . | 6565 . |
6566 \end{grammar} | 6566 \end{grammar} |
6567 | 6567 |
6568 \LMHash{} | 6568 \LMHash{} |
6569 Let $s_b$ be a \BREAK{} statement. If $s_b$ is of the form \code{\BREAK{} $L$;} , then let $s_E$ be the innermost labeled statement with label $L$ enclosing $s_ b$. If $s_b$ is of the form \code{\BREAK{};}, then let $s_E$ be the innermost \DO{} (\ref{do}), \FOR{} (\ref{for}), \SWITCH{} (\ref{switch}) or \WHILE{} (\ref {while}) statement enclosing $s_b$. It is a compile-time error if no such state ment $s_E$ exists within the innermost function in which $s_b$ occurs. | 6569 Let $s_b$ be a \BREAK{} statement. |
6570 If $s_b$ is of the form \code{\BREAK{} $L$;}, | |
6571 then let $s_E$ be the innermost labeled statement with label $L$ enclosing $s_b$ . | |
6572 If $s_b$ is of the form \code{\BREAK{};}, | |
6573 then let $s_E$ be the innermost \code{\AWAIT{} \FOR{}} (\ref{asynchronousFor-in} ), | |
6574 \DO{} (\ref{do}), \FOR{} (\ref{for}), \SWITCH{} (\ref{switch}) | |
6575 or \WHILE{} (\ref{while}) statement enclosing $s_b$. | |
6576 It is a compile-time error if no such statement $s_E$ exists within | |
6577 the innermost function in which $s_b$ occurs. | |
6570 | 6578 |
6571 \LMHash{} | 6579 \LMHash{} |
6572 Execution of a \BREAK{} statement \code{\BREAK{} $L$;} breaks to the label $L$ ( \ref{completion}). | 6580 Execution of a \BREAK{} statement \code{\BREAK{} $L$;} breaks to the label $L$ ( \ref{completion}). |
6573 | 6581 |
6574 Execution of a \BREAK{} statement \code{\BREAK{};} breaks without a label (\ref{ completion}). | 6582 Execution of a \BREAK{} statement \code{\BREAK{};} breaks without a label (\ref{ completion}). |
6575 | 6583 |
6576 | 6584 |
6577 \subsection{ Continue} | 6585 \subsection{ Continue} |
6578 \LMLabel{continue} | 6586 \LMLabel{continue} |
6579 | 6587 |
6580 \LMHash{} | 6588 \LMHash{} |
6581 The {\em continue statement} consists of the reserved word \CONTINUE{} and an op tional label (\ref{labels}). | 6589 The {\em continue statement} consists of the reserved word \CONTINUE{} and an op tional label (\ref{labels}). |
6582 | 6590 |
6583 \begin{grammar} | 6591 \begin{grammar} |
6584 {\bf continueStatement:} | 6592 {\bf continueStatement:} |
6585 \CONTINUE{} identifier? `{\escapegrammar ;}' | 6593 \CONTINUE{} identifier? `{\escapegrammar ;}' |
6586 . | 6594 . |
6587 \end{grammar} | 6595 \end{grammar} |
6588 | 6596 |
6589 \LMHash{} | 6597 \LMHash{} |
6590 Let $s_c$ be a \CONTINUE{} statement. If $s_c$ is of the form \code{\CONTINUE{} $L$;}, then let $s_E$ be the innermost labeled \DO{} (\ref{do}), \FOR{} (\ref{f or}) or \WHILE{} (\ref{while}) statement or case clause with label $L$ enclosing $s_c$. If $s_c$ is of the form \code{\CONTINUE{};} then let $s_E$ be the inner most \DO{} (\ref{do}), \FOR{} (\ref{for}) or \WHILE{} (\ref{while}) statement e nclosing $s_c$. It is a compile-time error if no such statement or case clause $s_E$ exists within the innermost function in which $s_c$ occurs. | 6598 Let $s_c$ be a \CONTINUE{} statement. |
6599 If $s_c$ is of the form \code{\CONTINUE{} $L$;}, | |
6600 then let $s_E$ be the innermost labeled \code{\AWAIT{} \FOR{}} (\ref{asynchronou sFor-in}), | |
6601 \DO{} (\ref{do}), \FOR{} (\ref{for}), or \WHILE{} (\ref{while}) | |
6602 statement or \SWITCH{} statement with a labeled case clause, | |
6603 which is labeled with $L$ and encloses $s_c$. | |
6604 If $s_c$ is of the form \code{\CONTINUE{};} | |
6605 then let $s_E$ be the innermost \code{\AWAIT{} \FOR{}} (\ref{asynchronousFor-in} ) | |
6606 \DO{} (\ref{do}), \FOR{} (\ref{for}), or \WHILE{} (\ref{while}) | |
6607 statement enclosing $s_c$. | |
6608 It is a compile-time error if no such statement or case clause $s_E$ exists with in the innermost function in which $s_c$ occurs. | |
Kevin Millikin (Google)
2017/06/27 11:55:10
"case clause" ==> "switch statement", but it's red
| |
6591 | 6609 |
6592 Execution of a \CONTINUE{} statement \code{\CONTINUE{} $L$;} continues to the la bel $L$ (\ref{completion}). | 6610 Execution of a \CONTINUE{} statement \code{\CONTINUE{} $L$;} continues to the la bel $L$ (\ref{completion}). |
6593 | 6611 |
6594 Execution of a \CONTINUE{} statement \code{\CONTINUE{};} continues without a lab el (\ref{completion}). | 6612 Execution of a \CONTINUE{} statement \code{\CONTINUE{};} continues without a lab el (\ref{completion}). |
6595 | 6613 |
6596 | 6614 |
6597 \subsection{ Yield and Yield-Each} | 6615 \subsection{ Yield and Yield-Each} |
6598 \LMLabel{yieldAndYieldEach} | 6616 \LMLabel{yieldAndYieldEach} |
6599 | 6617 |
6600 \subsubsection{ Yield} | 6618 \subsubsection{ Yield} |
(...skipping 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8188 | 8206 |
8189 The invariant that each normative paragraph is associated with a line | 8207 The invariant that each normative paragraph is associated with a line |
8190 containing the text \LMHash{} should be maintained. Extra occurrences | 8208 containing the text \LMHash{} should be maintained. Extra occurrences |
8191 of \LMHash{} can be added if needed, e.g., in order to make | 8209 of \LMHash{} can be added if needed, e.g., in order to make |
8192 individual \item{}s in itemized lists addressable. Each \LM.. command | 8210 individual \item{}s in itemized lists addressable. Each \LM.. command |
8193 must occur on a separate line. \LMHash{} must occur immediately | 8211 must occur on a separate line. \LMHash{} must occur immediately |
8194 before the associated paragraph, and \LMLabel must occur immediately | 8212 before the associated paragraph, and \LMLabel must occur immediately |
8195 after the associated \section{}, \subsection{} etc. | 8213 after the associated \section{}, \subsection{} etc. |
8196 | 8214 |
8197 ---------------------------------------------------------------------- | 8215 ---------------------------------------------------------------------- |
OLD | NEW |