| 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 6550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 6569 Let $s_b$ be a \BREAK{} statement. |
| 6570 If $s_b$ is of the form \code{\BREAK{} $L$;}, | 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$
. | 6571 then it is a compile-time error if $s_b$ is not enclosed in a labeled statement |
| 6572 with the label $L$ within the innermost function in which $s_b$ occurs. |
| 6572 If $s_b$ is of the form \code{\BREAK{};}, | 6573 If $s_b$ is of the form \code{\BREAK{};}, |
| 6573 then let $s_E$ be the innermost \code{\AWAIT{} \FOR{}} (\ref{asynchronousFor-in}
), | 6574 then it is a compile-time error if $s_b$ is not enclosed in an |
| 6575 \code{\AWAIT{} \FOR{}} (\ref{asynchronousFor-in}), |
| 6574 \DO{} (\ref{do}), \FOR{} (\ref{for}), \SWITCH{} (\ref{switch}) | 6576 \DO{} (\ref{do}), \FOR{} (\ref{for}), \SWITCH{} (\ref{switch}) |
| 6575 or \WHILE{} (\ref{while}) statement enclosing $s_b$. | 6577 or \WHILE{} (\ref{while}) statement within the innermost function in which $s_b$
occurs. |
| 6576 It is a compile-time error if no such statement $s_E$ exists within | |
| 6577 the innermost function in which $s_b$ occurs. | |
| 6578 | 6578 |
| 6579 \LMHash{} | 6579 \LMHash{} |
| 6580 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}). |
| 6581 | 6581 |
| 6582 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}). |
| 6583 | 6583 |
| 6584 | 6584 |
| 6585 \subsection{ Continue} | 6585 \subsection{ Continue} |
| 6586 \LMLabel{continue} | 6586 \LMLabel{continue} |
| 6587 | 6587 |
| 6588 \LMHash{} | 6588 \LMHash{} |
| 6589 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}). |
| 6590 | 6590 |
| 6591 \begin{grammar} | 6591 \begin{grammar} |
| 6592 {\bf continueStatement:} | 6592 {\bf continueStatement:} |
| 6593 \CONTINUE{} identifier? `{\escapegrammar ;}' | 6593 \CONTINUE{} identifier? `{\escapegrammar ;}' |
| 6594 . | 6594 . |
| 6595 \end{grammar} | 6595 \end{grammar} |
| 6596 | 6596 |
| 6597 \LMHash{} | 6597 \LMHash{} |
| 6598 Let $s_c$ be a \CONTINUE{} statement. | 6598 Let $s_c$ be a \CONTINUE{} statement. |
| 6599 If $s_c$ is of the form \code{\CONTINUE{} $L$;}, | 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}), | 6600 then it is a compile-time error if $s_c$ is not enclosed in either an |
| 6601 \code{\AWAIT{} \FOR{}} (\ref{asynchronousFor-in}), |
| 6601 \DO{} (\ref{do}), \FOR{} (\ref{for}), or \WHILE{} (\ref{while}) | 6602 \DO{} (\ref{do}), \FOR{} (\ref{for}), or \WHILE{} (\ref{while}) |
| 6602 statement or \SWITCH{} statement with a labeled case clause, | 6603 statement labeled with $L$, or in a \SWITCH{} statement with a case clause |
| 6603 which is labeled with $L$ and encloses $s_c$. | 6604 labeled with $L$, within the innermost function in which $s_c$ occurs. |
| 6604 If $s_c$ is of the form \code{\CONTINUE{};} | 6605 If $s_c$ is of the form \code{\CONTINUE{};} |
| 6605 then let $s_E$ be the innermost \code{\AWAIT{} \FOR{}} (\ref{asynchronousFor-in}
) | 6606 then it is a compile-time error if $s_c$ is not enclosed in an |
| 6606 \DO{} (\ref{do}), \FOR{} (\ref{for}), or \WHILE{} (\ref{while}) | 6607 \code{\AWAIT{} \FOR{}} (\ref{asynchronousFor-in}) |
| 6607 statement enclosing $s_c$. | 6608 \DO{} (\ref{do}), \FOR{} (\ref{for}), or \WHILE{} (\ref{while}) statement |
| 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. | 6609 within the innermost function in which $s_c$ occurs. |
| 6609 | 6610 |
| 6610 Execution of a \CONTINUE{} statement \code{\CONTINUE{} $L$;} continues to the la
bel $L$ (\ref{completion}). | 6611 Execution of a \CONTINUE{} statement \code{\CONTINUE{} $L$;} continues to the la
bel $L$ (\ref{completion}). |
| 6611 | 6612 |
| 6612 Execution of a \CONTINUE{} statement \code{\CONTINUE{};} continues without a lab
el (\ref{completion}). | 6613 Execution of a \CONTINUE{} statement \code{\CONTINUE{};} continues without a lab
el (\ref{completion}). |
| 6613 | 6614 |
| 6614 | 6615 |
| 6615 \subsection{ Yield and Yield-Each} | 6616 \subsection{ Yield and Yield-Each} |
| 6616 \LMLabel{yieldAndYieldEach} | 6617 \LMLabel{yieldAndYieldEach} |
| 6617 | 6618 |
| 6618 \subsubsection{ Yield} | 6619 \subsubsection{ Yield} |
| (...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8212 | 8213 |
| 8213 The invariant that each normative paragraph is associated with a line | 8214 The invariant that each normative paragraph is associated with a line |
| 8214 containing the text \LMHash{} should be maintained. Extra occurrences | 8215 containing the text \LMHash{} should be maintained. Extra occurrences |
| 8215 of \LMHash{} can be added if needed, e.g., in order to make | 8216 of \LMHash{} can be added if needed, e.g., in order to make |
| 8216 individual \item{}s in itemized lists addressable. Each \LM.. command | 8217 individual \item{}s in itemized lists addressable. Each \LM.. command |
| 8217 must occur on a separate line. \LMHash{} must occur immediately | 8218 must occur on a separate line. \LMHash{} must occur immediately |
| 8218 before the associated paragraph, and \LMLabel must occur immediately | 8219 before the associated paragraph, and \LMLabel must occur immediately |
| 8219 after the associated \section{}, \subsection{} etc. | 8220 after the associated \section{}, \subsection{} etc. |
| 8220 | 8221 |
| 8221 ---------------------------------------------------------------------- | 8222 ---------------------------------------------------------------------- |
| OLD | NEW |