Antlr Changes to Methodcalls from Return

This commit is contained in:
David Mueller 2024-05-14 10:31:53 +02:00
parent 091eaa912e
commit d22ea6b962

View File

@ -21,7 +21,7 @@ subExpression: This | assignableExpr | stmtExpr | OpenRoundBracket subExpression
//.trim().toLength().toLowerCase().count ...
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;
@ -29,7 +29,7 @@ assignableExpr: Identifier | instVar;
subReceiver: ((This | newDecl | Identifier) Dot);
instVar: subReceiver? receivingMethod* Identifier;
instVar: subReceiver+ receivingMethod* Identifier;
binaryExpr: calcExpr | nonCalcExpr| value | Not binaryExpr;