Skip to content

Commit 16f61a5

Browse files
committed
Apply do-while.md
1 parent 51100d1 commit 16f61a5

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

docs/_spec/06-expressions.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Expr ::= (Bindings | id | ‘_’) ‘=>’ Expr
1212
Expr1 ::= ‘if’ ‘(’ Expr ‘)’ {nl} Expr [[semi] ‘else’ Expr]
1313
| ‘while’ ‘(’ Expr ‘)’ {nl} Expr
1414
| ‘try’ Expr [‘catch’ Expr] [‘finally’ Expr]
15-
| ‘do’ Expr [semi] ‘while’ ‘(’ Expr ‘)’
1615
| ‘for’ (‘(’ Enumerators ‘)’ | ‘{’ Enumerators ‘}’) {nl} [‘yield’] Expr
1716
| ‘throw’ Expr
1817
| ‘return’ [Expr]
@@ -717,15 +716,6 @@ def whileLoop(cond: => Boolean)(body: => Unit): Unit =
717716
if (cond) { body ; whileLoop(cond)(body) } else {}
718717
```
719718

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-
729719
## For Comprehensions and For Loops
730720

731721
```ebnf

0 commit comments

Comments
 (0)