mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-28 09:28:04 +00:00
public static void main string args
This commit is contained in:
parent
d9182e369d
commit
deeea62737
@ -8,8 +8,8 @@ var : type id ';' | type id '=' expr';';
|
|||||||
returntype : type | VOID;
|
returntype : type | VOID;
|
||||||
type : INT | BOOL | CHAR;
|
type : INT | BOOL | CHAR;
|
||||||
|
|
||||||
meth : PUBLIC? 'static'? returntype id '(' params? ')' block | mainmeth;
|
meth : PUBLIC? returntype id '(' params? ')' block | mainmeth;
|
||||||
mainmeth : PUBLIC 'static' 'void' 'main' '(' params? ')' block;
|
mainmeth : PUBLIC 'static' 'void' 'main' '(' 'String[] args' ')' block;
|
||||||
params : param (',' param)*;
|
params : param (',' param)*;
|
||||||
param : type id;
|
param : type id;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user