Add support for labeled while loops.

This commit is contained in:
Pythoner6
2014-07-25 20:12:51 -04:00
committed by Joseph Martin
parent 5419b2ca2c
commit 373b9d6243
21 changed files with 97 additions and 24 deletions

View File

@@ -524,7 +524,8 @@ pub enum Expr_ {
ExprLit(Gc<Lit>),
ExprCast(Gc<Expr>, P<Ty>),
ExprIf(Gc<Expr>, P<Block>, Option<Gc<Expr>>),
ExprWhile(Gc<Expr>, P<Block>),
// FIXME #6993: change to Option<Name> ... or not, if these are hygienic.
ExprWhile(Gc<Expr>, P<Block>, Option<Ident>),
// FIXME #6993: change to Option<Name> ... or not, if these are hygienic.
ExprForLoop(Gc<Pat>, Gc<Expr>, P<Block>, Option<Ident>),
// Conditionless loop (can be exited with break, cont, or ret)