提交 5e93b1bc 编写于 作者: A Andrey Breslav

Unused productions removed

上级 7b15eea9
......@@ -73,7 +73,7 @@ prefixUnaryExpression
;
postfixUnaryExpression
: memberAccess postfixUnaryOperation*
: atomicExpression postfixUnaryOperation*
;
// !!! 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
: "<" type{","} ">"
;
......@@ -194,11 +185,6 @@ valueArguments
: "(" (SimpleName "=")? ("out" | "ref")? expression{","} ")"
;
infixFunctionCall
: expression SimpleName typeArguments
: expression SimpleName expression
;
jump
: "throw" expression
: "return" expression?
......@@ -231,16 +217,6 @@ constructorInvocation
: userType valueArguments?
;
memberAccess
: functionCall
: fieldOrPropertyAccess
: functionLiteral // no parameters allowed
;
fieldOrPropertyAccess
: (FieldName | SimpleName) arrayAccess?
;
arrayAccess
: "[" expression{","} "]"
;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册