Antlr Changes to Methodcalls from Return
This commit is contained in:
parent
091eaa912e
commit
d22ea6b962
@ -21,7 +21,7 @@ subExpression: This | assignableExpr | stmtExpr | OpenRoundBracket subExpression
|
|||||||
//.trim().toLength().toLowerCase().count ...
|
//.trim().toLength().toLowerCase().count ...
|
||||||
methodCall: receiver? receivingMethod* Identifier OpenRoundBracket argumentList ClosedRoundBracket;
|
methodCall: receiver? receivingMethod* Identifier OpenRoundBracket argumentList ClosedRoundBracket;
|
||||||
|
|
||||||
statement: returnStmt Semicolon | localVarDecl Semicolon | block | whileStmt | ifElseStmt | stmtExpr Semicolon;
|
statement: returnStmt Semicolon | localVarDecl | block | whileStmt | ifElseStmt | stmtExpr Semicolon;
|
||||||
|
|
||||||
stmtExpr: assign | newDecl | methodCall;
|
stmtExpr: assign | newDecl | methodCall;
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ assignableExpr: Identifier | instVar;
|
|||||||
|
|
||||||
subReceiver: ((This | newDecl | Identifier) Dot);
|
subReceiver: ((This | newDecl | Identifier) Dot);
|
||||||
|
|
||||||
instVar: subReceiver? receivingMethod* Identifier;
|
instVar: subReceiver+ receivingMethod* Identifier;
|
||||||
|
|
||||||
binaryExpr: calcExpr | nonCalcExpr| value | Not binaryExpr;
|
binaryExpr: calcExpr | nonCalcExpr| value | Not binaryExpr;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user