136 lines
11 KiB
Plaintext
136 lines
11 KiB
Plaintext
|
token literal names:
|
||
|
null
|
||
|
'public'
|
||
|
'public static void main(String[] args)'
|
||
|
null
|
||
|
null
|
||
|
null
|
||
|
null
|
||
|
'='
|
||
|
'-'
|
||
|
'+'
|
||
|
'*'
|
||
|
'/'
|
||
|
'%'
|
||
|
'>'
|
||
|
'<'
|
||
|
'>='
|
||
|
'<='
|
||
|
'=='
|
||
|
'!='
|
||
|
'!'
|
||
|
'&&'
|
||
|
'||'
|
||
|
'.'
|
||
|
'('
|
||
|
')'
|
||
|
'{'
|
||
|
'}'
|
||
|
';'
|
||
|
','
|
||
|
'class'
|
||
|
'this'
|
||
|
'while'
|
||
|
'if'
|
||
|
'else'
|
||
|
'return'
|
||
|
'new'
|
||
|
null
|
||
|
'void'
|
||
|
'int'
|
||
|
'bool'
|
||
|
'char'
|
||
|
null
|
||
|
null
|
||
|
null
|
||
|
'null'
|
||
|
null
|
||
|
|
||
|
token symbolic names:
|
||
|
null
|
||
|
AccessModifierPublic
|
||
|
MainMethodDecl
|
||
|
DotOperator
|
||
|
LineOperator
|
||
|
ComparisonOperator
|
||
|
LogicalOpertor
|
||
|
Assign
|
||
|
Minus
|
||
|
Plus
|
||
|
Multipilkation
|
||
|
Division
|
||
|
Modulo
|
||
|
Greater
|
||
|
Less
|
||
|
GreaterEqual
|
||
|
LessEqual
|
||
|
Equal
|
||
|
NotEqual
|
||
|
Not
|
||
|
And
|
||
|
Or
|
||
|
Dot
|
||
|
OpenRoundBracket
|
||
|
ClosedRoundBracket
|
||
|
OpenCurlyBracket
|
||
|
ClosedCurlyBracket
|
||
|
Semicolon
|
||
|
Comma
|
||
|
Class
|
||
|
This
|
||
|
While
|
||
|
If
|
||
|
Else
|
||
|
Return
|
||
|
New
|
||
|
Identifier
|
||
|
Void
|
||
|
Int
|
||
|
Boolean
|
||
|
Char
|
||
|
IntValue
|
||
|
CharValue
|
||
|
BooleanValue
|
||
|
NullValue
|
||
|
WS
|
||
|
|
||
|
rule names:
|
||
|
program
|
||
|
classdecl
|
||
|
constuctorDecl
|
||
|
methodDecl
|
||
|
fieldDecl
|
||
|
parameterList
|
||
|
parameter
|
||
|
expression
|
||
|
subExpression
|
||
|
assignableExpr
|
||
|
instVar
|
||
|
methodCall
|
||
|
argumentList
|
||
|
subReceiver
|
||
|
receiver
|
||
|
receivingMethod
|
||
|
binaryExpr
|
||
|
calcExpr
|
||
|
dotExpr
|
||
|
dotSubExpr
|
||
|
nonCalcExpr
|
||
|
nonCalcOperator
|
||
|
stmtExpr
|
||
|
statement
|
||
|
returnStmt
|
||
|
localVarDecl
|
||
|
block
|
||
|
whileStmt
|
||
|
ifElseStmt
|
||
|
ifStmt
|
||
|
elseStmt
|
||
|
assign
|
||
|
newDecl
|
||
|
type
|
||
|
value
|
||
|
|
||
|
|
||
|
atn:
|
||
|
[4, 1, 45, 331, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 1, 0, 4, 0, 72, 8, 0, 11, 0, 12, 0, 73, 1, 1, 3, 1, 77, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 85, 8, 1, 10, 1, 12, 1, 88, 9, 1, 1, 1, 1, 1, 3, 1, 92, 8, 1, 1, 1, 1, 1, 1, 2, 3, 2, 97, 8, 2, 1, 2, 1, 2, 1, 2, 3, 2, 102, 8, 2, 1, 2, 1, 2, 1, 2, 1, 3, 3, 3, 108, 8, 3, 1, 3, 1, 3, 3, 3, 112, 8, 3, 1, 3, 1, 3, 1, 3, 3, 3, 117, 8, 3, 1, 3, 1, 3, 1, 3, 1, 4, 3, 4, 123, 8, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 5, 5, 132, 8, 5, 10, 5, 12, 5, 135, 9, 5, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 3, 7, 142, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 151, 8, 8, 1, 9, 1, 9, 3, 9, 155, 8, 9, 1, 10, 3, 10, 158, 8, 10, 1, 10, 5, 10, 161, 8, 10, 10, 10, 12, 10, 164, 9, 10, 1, 10, 1, 10, 1, 11, 3, 11, 169, 8, 11, 1, 11, 5, 11, 172, 8, 11, 10, 11, 12, 11, 175, 9, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 3, 12, 183, 8, 12, 1, 12, 1, 12, 1, 12, 4, 12, 188, 8, 12, 11, 12, 12, 12, 189, 3, 12, 192, 8, 12, 1, 13, 1, 13, 1, 13, 3, 13, 197, 8, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 3, 14, 205, 8, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 220, 8, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 5, 17, 228, 8, 17, 10, 17, 12, 17, 231, 9, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 5, 18, 239, 8, 18, 10, 18, 12, 18, 242, 9, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 252, 8, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 3, 22, 263, 8, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 277, 8, 23, 1, 24, 1, 24, 3, 24, 281, 8, 24, 1, 25, 1, 25, 1, 25, 1, 25, 3, 25, 287, 8, 25, 1, 26, 1, 26, 5, 26, 291, 8, 26, 10, 26, 12, 26, 294, 9, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 3, 28, 306, 8, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 0, 2, 34, 36, 35, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 0, 3, 1, 0, 5, 6, 2, 0, 36, 36, 38, 40, 1, 0, 41, 44, 345, 0, 71, 1, 0, 0, 0, 2, 76, 1, 0, 0, 0, 4, 96, 1, 0, 0, 0, 6, 107, 1, 0, 0, 0, 8, 122, 1, 0, 0, 0, 10, 128, 1, 0, 0, 0, 12, 136, 1, 0, 0, 0, 14, 141, 1, 0, 0, 0, 16, 150, 1, 0, 0, 0, 18, 154, 1, 0, 0, 0, 20, 157, 1, 0, 0, 0, 22, 168, 1, 0, 0, 0, 24, 191, 1, 0, 0, 0, 26, 196, 1, 0, 0, 0, 28, 204, 1, 0, 0, 0, 30, 208, 1, 0, 0, 0, 32, 219, 1, 0, 0, 0, 34, 221, 1, 0, 0, 0, 36, 232, 1, 0, 0, 0, 38, 251, 1, 0, 0, 0, 40, 253, 1, 0, 0, 0, 42, 257, 1, 0, 0, 0, 44, 262, 1, 0, 0, 0, 46, 276, 1, 0, 0, 0, 48, 278, 1, 0, 0, 0, 50, 282, 1, 0, 0, 0, 52, 288, 1, 0, 0, 0, 54, 297, 1, 0, 0, 0, 56, 303, 1, 0, 0, 0, 58, 307, 1, 0, 0, 0, 60, 313, 1, 0, 0, 0, 62, 316, 1, 0, 0, 0, 64, 320, 1, 0, 0, 0, 66, 326, 1, 0, 0, 0, 68, 328, 1, 0, 0, 0, 70, 72, 3, 2, 1, 0, 71, 70, 1, 0, 0, 0, 72, 73, 1, 0, 0, 0, 73, 71, 1, 0, 0, 0, 73, 74, 1, 0, 0, 0, 74, 1, 1, 0, 0, 0, 75, 77, 5, 1, 0, 0, 76, 75, 1, 0, 0, 0, 76, 77, 1, 0, 0, 0, 77, 78, 1, 0, 0, 0, 78, 79, 5, 29, 0, 0, 79, 80, 5, 36, 0, 0, 80, 86, 5, 25, 0, 0, 81, 85, 3, 4, 2, 0, 82, 85, 3, 8, 4, 0, 83, 85, 3, 6, 3, 0, 84, 81, 1, 0, 0, 0, 84, 82, 1, 0, 0, 0, 84, 83, 1, 0, 0, 0, 85, 88, 1, 0, 0, 0, 86, 84, 1, 0, 0, 0, 86, 87, 1, 0, 0, 0, 87, 91, 1, 0, 0, 0, 88, 86, 1, 0, 0, 0, 89, 90, 5, 2, 0, 0, 90, 92, 3, 52, 26, 0, 91, 89, 1, 0, 0, 0, 91, 92, 1, 0, 0, 0, 92, 93, 1, 0, 0, 0, 93, 94, 5, 26, 0, 0, 94, 3, 1, 0, 0, 0, 95, 97, 5, 1, 0, 0, 96, 95, 1, 0, 0, 0, 96, 97, 1, 0, 0, 0, 97, 98, 1, 0, 0, 0, 98,
|