From 5760fa2d4cdc46e3c1594ef46a9b51b5b5ee23c5 Mon Sep 17 00:00:00 2001 From: Linus K Date: Mon, 24 Oct 2022 04:44:54 +0200 Subject: [PATCH] Small change --- src/main/antlr4/astRefactor/astRefactor.g4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/antlr4/astRefactor/astRefactor.g4 b/src/main/antlr4/astRefactor/astRefactor.g4 index 7d811e2a..43e9d7e9 100644 --- a/src/main/antlr4/astRefactor/astRefactor.g4 +++ b/src/main/antlr4/astRefactor/astRefactor.g4 @@ -76,9 +76,9 @@ staticclassname: STATICCLASSNAME; statement: whileinterface | methodcallinterface | returninterface | javainternalexpressioninterface | forstmt | ifstmt | BLOCK | EMPTYSTMT | LOCALVARDECL | ASSIGN | LOCALVAR; -ifstmt: IFSTMT')''{'( NEWLINE )*'}'; +ifstmt: IFSTMT ( syntaxtreenode )* ')''{'( syntaxtreenode )*'}'; -forstmt: FORSMT')''{'( NEWLINE )*'}'; +forstmt: FORSMT ( syntaxtreenode )* ')''{'( syntaxtreenode )*'}'; javainternalexpressioninterface: UNARYEXPR; @@ -90,9 +90,9 @@ methodcallinterface: METHODCALL | THISCALL | SUPERCALL | NEWCLASS; whileinterface: whilestmt | dostmt; -dostmt: DOSTMT ( NEWLINE )*'}' (NEWLINE)* whilestmt ; +dostmt: DOSTMT ( syntaxtreenode )*'}' WHILESTMT ( syntaxtreenode )+')'; -whilestmt: WHILESTMT')''{'( NEWLINE)*'}'; +whilestmt: WHILESTMT')''{'( syntaxtreenode)*'}'; assignleft: assigntofield | ASSIGNLEFTSIDE;