Unused productions removed

This commit is contained in:
Andrey Breslav
2011-02-03 17:35:09 +03:00
parent 7b15eea98a
commit 5e93b1bcf7
+1 -25
View File
@@ -73,7 +73,7 @@ prefixUnaryExpression
; ;
postfixUnaryExpression postfixUnaryExpression
: memberAccess postfixUnaryOperation* : atomicExpression postfixUnaryOperation*
; ;
// !!! When you add here, remember to update the FIRST set in the parser // !!! When you add here, remember to update the FIRST set in the parser
@@ -177,15 +177,6 @@ memberAccessOperation
: "." : "?." : "#" : "." : "?." : "#"
; ;
functionCall
: functionExpression typeArguments valueArguments? functionLiteral?
: functionExpression valueArguments functionLiteral?
;
functionExpression
: expression
;
typeArguments typeArguments
: "<" type{","} ">" : "<" type{","} ">"
; ;
@@ -194,11 +185,6 @@ valueArguments
: "(" (SimpleName "=")? ("out" | "ref")? expression{","} ")" : "(" (SimpleName "=")? ("out" | "ref")? expression{","} ")"
; ;
infixFunctionCall
: expression SimpleName typeArguments
: expression SimpleName expression
;
jump jump
: "throw" expression : "throw" expression
: "return" expression? : "return" expression?
@@ -231,16 +217,6 @@ constructorInvocation
: userType valueArguments? : userType valueArguments?
; ;
memberAccess
: functionCall
: fieldOrPropertyAccess
: functionLiteral // no parameters allowed
;
fieldOrPropertyAccess
: (FieldName | SimpleName) arrayAccess?
;
arrayAccess arrayAccess
: "[" expression{","} "]" : "[" expression{","} "]"
; ;