JET-174 Make continue work the same way in all contexts inside when

Guards are removed. Continue is not supported yet.
This commit is contained in:
Andrey Breslav
2011-07-07 17:18:29 +04:00
parent 026eadda7a
commit 704f153a31
9 changed files with 45 additions and 139 deletions
+2 -6
View File
@@ -12,12 +12,8 @@ when
whenEntry
// TODO : consider empty after =>
: whenConditionIf{","} (when | "=>" expression SEMI)
: "else" ("continue" | "=>" expression SEMI)
;
whenConditionIf
: whenCondition ("if" "(" expression ")")?
: whenCondition{","} "=>" expression SEMI
: "else" "=>" expression SEMI
;
whenCondition