forked from JavaTX/JavaCompilerCore
Small change
This commit is contained in:
parent
3efc7dc7a2
commit
b4172066e7
@ -8,8 +8,9 @@ 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 ( syntaxtreenode ) 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 (';')?
|
||||||
|
| ( formalparameter | typeplaceholder) WHITESPACE NAME (';')?;
|
||||||
|
|
||||||
method : ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME '(' ( formalparameter | typeplaceholder ) WHITESPACE WORD ')''{''}';
|
method : ACCESSMODIFIER WHITESPACE ( syntaxtreenode ) WHITESPACE NAME '(' ( formalparameter | typeplaceholder ) WHITESPACE WORD ')''{''}';
|
||||||
|
|
||||||
@ -84,7 +85,7 @@ javainternalexpressioninterface: UNARYEXPR;
|
|||||||
|
|
||||||
returninterface: RETURN | returnvoid;
|
returninterface: RETURN | returnvoid;
|
||||||
|
|
||||||
returnvoid: RETURN VOID;
|
returnvoid: RETURN WHITESPACE VOID';';
|
||||||
|
|
||||||
methodcallinterface: METHODCALL | THISCALL | SUPERCALL | NEWCLASS;
|
methodcallinterface: METHODCALL | THISCALL | SUPERCALL | NEWCLASS;
|
||||||
|
|
||||||
@ -92,7 +93,7 @@ whileinterface: whilestmt | dostmt;
|
|||||||
|
|
||||||
dostmt: DOSTMT ( syntaxtreenode )*'}' WHILESTMT ( syntaxtreenode )+')';
|
dostmt: DOSTMT ( syntaxtreenode )*'}' WHILESTMT ( syntaxtreenode )+')';
|
||||||
|
|
||||||
whilestmt: WHILESTMT( syntaxtreenode )*')''{'( syntaxtreenode)*'}';
|
whilestmt: WHILESTMT( syntaxtreenode )*')''{'( syntaxtreenode )*'}';
|
||||||
|
|
||||||
assignleft: assigntofield | ASSIGNLEFTSIDE;
|
assignleft: assigntofield | ASSIGNLEFTSIDE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user