From 57b61c2b2fbef19fe53decc93a03491e7e42c8f7 Mon Sep 17 00:00:00 2001 From: Linus K Date: Mon, 24 Oct 2022 03:38:31 +0200 Subject: [PATCH] Small change --- src/main/antlr4/astRefactor/astRefactor.g4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/antlr4/astRefactor/astRefactor.g4 b/src/main/antlr4/astRefactor/astRefactor.g4 index 20a4c8a9..768e0925 100644 --- a/src/main/antlr4/astRefactor/astRefactor.g4 +++ b/src/main/antlr4/astRefactor/astRefactor.g4 @@ -5,7 +5,7 @@ grammar astRefactor; */ syntaxtreenode: typablestatement | reftypeortphorwildcardorgeneric | methodinterface | fieldinterface | formalparameter | parameterlist | generictypevar | sourcefile | genericdecllist | argumentlist | classorinterface; -class : ACCESSMODIFIER WHITESPACE CLASS WHITESPACE CLASSNAME ('(' (( syntaxtreenode ) WHITESPACE NAME)* ')''{'(NEWLINE)* classbody'}'| '{'(NEWLINE)* classbody'}'); +class : ACCESSMODIFIER WHITESPACE CLASS WHITESPACE CLASSNAME '{'(NEWLINE)* classbody'}'; classbody : ( method NEWLINE | variable NEWLINE | NEWLINE | syntaxtreenode)*; variable : ACCESSMODIFIER WHITESPACE ( formalparameter | typeplaceholder ) WHITESPACE NAME WHITESPACE '=' WHITESPACE ( WORD | NUMBER) ';' @@ -16,7 +16,7 @@ method : ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NA classorinterface: class; -argumentlist: (variable)+; +argumentlist: variable (',' WHITESPACE variable)+; genericdecllist: GENERICDECLLIST; @@ -24,7 +24,7 @@ sourcefile: SOURCEFILE; generictypevar: GENERICTYPEVAR; -parameterlist: (variable)+; +parameterlist: variable (',' WHITESPACE variable)+; formalparameter: FORMALPARAMETER;