Small change

This commit is contained in:
Linus K 2022-10-24 05:20:34 +02:00
parent 5760fa2d4c
commit 3efc7dc7a2

View File

@ -8,8 +8,8 @@ syntaxtreenode: typablestatement | reftypeortphorwildcardorgeneric | methodinter
class : ACCESSMODIFIER WHITESPACE CLASS WHITESPACE CLASSNAME '{'(NEWLINE)* classbody'}';
classbody : ( method | variable | NEWLINE | syntaxtreenode)*;
variable : ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME WHITESPACE '=' WHITESPACE ( WORD | NUMBER) ';'
| ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME ';';
variable : ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME WHITESPACE '=' WHITESPACE ( WORD | NUMBER) (';')?
| ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME (';')?;
method : ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME '(' ( formalparameter | typeplaceholder ) WHITESPACE WORD ')''{''}';
@ -92,7 +92,7 @@ whileinterface: whilestmt | dostmt;
dostmt: DOSTMT ( syntaxtreenode )*'}' WHILESTMT ( syntaxtreenode )+')';
whilestmt: WHILESTMT')''{'( syntaxtreenode)*'}';
whilestmt: WHILESTMT( syntaxtreenode )*')''{'( syntaxtreenode)*'}';
assignleft: assigntofield | ASSIGNLEFTSIDE;