Small change

This commit is contained in:
Linus K 2022-10-24 04:26:06 +02:00
parent 1f0ea6f49c
commit 2060e08f86

View File

@ -8,10 +8,10 @@ syntaxtreenode: typablestatement | reftypeortphorwildcardorgeneric | methodinter
class : ACCESSMODIFIER WHITESPACE CLASS WHITESPACE CLASSNAME '{'(NEWLINE)* classbody'}'; class : ACCESSMODIFIER WHITESPACE CLASS WHITESPACE CLASSNAME '{'(NEWLINE)* classbody'}';
classbody : ( method | variable | NEWLINE | syntaxtreenode)*; classbody : ( method | variable | NEWLINE | syntaxtreenode)*;
variable : ACCESSMODIFIER WHITESPACE ( formalparameter | typeplaceholder ) WHITESPACE NAME WHITESPACE '=' WHITESPACE ( WORD | NUMBER) ';' variable : ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME WHITESPACE '=' WHITESPACE ( WORD | NUMBER) ';'
| ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME ';'; | ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME ';';
method : ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME '(' ( formalparameter | typeplaceholder ) WHITESPACE WORD ')'; method : ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME '(' ( formalparameter | typeplaceholder ) WHITESPACE WORD ')''{''}';
classorinterface: class; classorinterface: class;
@ -74,7 +74,7 @@ expressionreceiver: EXPRESSIONRECEIVER;
staticclassname: STATICCLASSNAME; staticclassname: STATICCLASSNAME;
statement: whileinterface | methodcallinterface | returninterface | javainternalexpressioninterface | forstmt | BLOCK | EMPTYSTMT | LOCALVARDECL | ASSIGN | ifstmt | LOCALVAR; statement: whileinterface | methodcallinterface | returninterface | javainternalexpressioninterface | forstmt | ifstmt | BLOCK | EMPTYSTMT | LOCALVARDECL | ASSIGN | LOCALVAR;
ifstmt: IFSTMT')''{'( NEWLINE )*'}'; ifstmt: IFSTMT')''{'( NEWLINE )*'}';