Recovery for expressions. Bug with return inside if fixed

This commit is contained in:
Andrey Breslav
2011-01-27 20:01:38 +03:00
parent 65cf049e73
commit 90eb9c443b
5 changed files with 133 additions and 6 deletions
+2
View File
@@ -76,6 +76,7 @@ postfixUnaryExpression
: memberAccess postfixUnaryOperation*
;
// !!! When you add here, remember to update the FIRST set in the parser
atomicExpression
: "(" expression ")" // see tupleLiteral
: literalConstant
@@ -92,6 +93,7 @@ atomicExpression
: jump
: loop
: SimpleName
: FieldName
: "namespace" // for the root namespace
;