Precedence of basic operations tested

This commit is contained in:
Andrey Breslav
2010-12-30 15:31:03 +03:00
parent a9941a475b
commit ea847f4a4d
5 changed files with 313 additions and 4 deletions
+6 -3
View File
@@ -27,6 +27,7 @@ arrowTupleExpression
: match ("->" match)*
;
// ATTENTION
match
: conjunction ("match" "{" matchEntry+ "}")*
;
@@ -55,8 +56,9 @@ elvisOperation
: infixFunctionCall ("?:" infixFunctionCall)*
;
// ATTENTION
infixFunctionCall
: rangeExpression (SimpleName rangeExpression)*
: rangeExpression (SimpleName (typeParameters | rangeExpression))*
;
rangeExpression
@@ -165,7 +167,8 @@ prefixUnaryOperation
postfixUnaryOperation
: "++" : "--"
: valueArguments
: typeArguments? valueArguments
: typeArguments
: arrayAccess
;
@@ -187,7 +190,7 @@ valueArguments
;
infixFunctionCall
: expression SimpleName typeArguments expression?
: expression SimpleName typeArguments
: expression SimpleName expression
;