File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed
APPLIEDreference/dropped-features Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ Expr ::= (Bindings | id | ‘_’) ‘=>’ Expr
12
12
Expr1 ::= ‘if’ ‘(’ Expr ‘)’ {nl} Expr [[semi] ‘else’ Expr]
13
13
| ‘while’ ‘(’ Expr ‘)’ {nl} Expr
14
14
| ‘try’ Expr [‘catch’ Expr] [‘finally’ Expr]
15
- | ‘do’ Expr [semi] ‘while’ ‘(’ Expr ‘)’
16
15
| ‘for’ (‘(’ Enumerators ‘)’ | ‘{’ Enumerators ‘}’) {nl} [‘yield’] Expr
17
16
| ‘throw’ Expr
18
17
| ‘return’ [Expr]
@@ -717,15 +716,6 @@ def whileLoop(cond: => Boolean)(body: => Unit): Unit =
717
716
if (cond) { body ; whileLoop(cond)(body) } else {}
718
717
```
719
718
720
- ## Do Loop Expressions
721
-
722
- ``` ebnf
723
- Expr1 ::= ‘do’ Expr [semi] ‘while’ ‘(’ Expr ‘)’
724
- ```
725
-
726
- The _ do loop expression_ ` do ´e_1´ while (´e_2´) ` is typed and evaluated as if it was the expression ` (´e_1´ ; while (´e_2´) ´e_1´) ` .
727
- A semicolon preceding the ` while ` symbol of a do loop expression is ignored.
728
-
729
719
## For Comprehensions and For Loops
730
720
731
721
``` ebnf
File renamed without changes.
You can’t perform that action at this time.
0 commit comments