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, 99, 5, 36, 0, 0, 99, 101, 5, 23, 0, 0, 100, 102, 3, 10, 5, 0, 101, 100, 1, 0, 0, 0, 101, 102, 1, 0, 0, 0, 102, 103, 1, 0, 0, 0, 103, 104, 5, 24, 0, 0, 104, 105, 3, 52, 26, 0, 105, 5, 1, 0, 0, 0, 106, 108, 5, 1, 0, 0, 107, 106, 1, 0, 0, 0, 107, 108, 1, 0, 0, 0, 108, 111, 1, 0, 0, 0, 109, 112, 3, 66, 33, 0, 110, 112, 5, 37, 0, 0, 111, 109, 1, 0, 0, 0, 111, 110, 1, 0, 0, 0, 112, 113, 1, 0, 0, 0, 113, 114, 5, 36, 0, 0, 114, 116, 5, 23, 0, 0, 115, 117, 3, 10, 5, 0, 116, 115, 1, 0, 0, 0, 116, 117, 1, 0, 0, 0, 117, 118, 1, 0, 0, 0, 118, 119, 5, 24, 0, 0, 119, 120, 3, 52, 26, 0, 120, 7, 1, 0, 0, 0, 121, 123, 5, 1, 0, 0, 122, 121, 1, 0, 0, 0, 122, 123, 1, 0, 0, 0, 123, 124, 1, 0, 0, 0, 124, 125, 3, 66, 33, 0, 125, 126, 5, 36, 0, 0, 126, 127, 5, 27, 0, 0, 127, 9, 1, 0, 0, 0, 128, 133, 3, 12, 6, 0, 129, 130, 5, 28, 0, 0, 130, 132, 3, 12, 6, 0, 131, 129, 1, 0, 0, 0, 132, 135, 1, 0, 0, 0, 133, 131, 1, 0, 0, 0, 133, 134, 1, 0, 0, 0, 134, 11, 1, 0, 0, 0, 135, 133, 1, 0, 0, 0, 136, 137, 3, 66, 33, 0, 137, 138, 5, 36, 0, 0, 138, 13, 1, 0, 0, 0, 139, 142, 3, 16, 8, 0, 140, 142, 3, 32, 16, 0, 141, 139, 1, 0, 0, 0, 141, 140, 1, 0, 0, 0, 142, 15, 1, 0, 0, 0, 143, 151, 5, 30, 0, 0, 144, 151, 3, 18, 9, 0, 145, 151, 3, 44, 22, 0, 146, 147, 5, 23, 0, 0, 147, 148, 3, 16, 8, 0, 148, 149, 5, 24, 0, 0, 149, 151, 1, 0, 0, 0, 150, 143, 1, 0, 0, 0, 150, 144, 1, 0, 0, 0, 150, 145, 1, 0, 0, 0, 150, 146, 1, 0, 0, 0, 151, 17, 1, 0, 0, 0, 152, 155, 5, 36, 0, 0, 153, 155, 3, 20, 10, 0, 154, 152, 1, 0, 0, 0, 154, 153, 1, 0, 0, 0, 155, 19, 1, 0, 0, 0, 156, 158, 3, 26, 13, 0, 157, 156, 1, 0, 0, 0, 157, 158, 1, 0, 0, 0, 158, 162, 1, 0, 0, 0, 159, 161, 3, 30, 15, 0, 160, 159, 1, 0, 0, 0, 161, 164, 1, 0, 0, 0, 162, 160, 1, 0, 0, 0, 162, 163, 1, 0, 0, 0, 163, 165, 1, 0, 0, 0, 164, 162, 1, 0, 0, 0, 165, 166, 5, 36, 0, 0, 166, 21, 1, 0, 0, 0, 167, 169, 3, 28, 14, 0, 168, 167, 1, 0, 0, 0, 168, 169, 1, 0, 0, 0, 169, 173, 1, 0, 0, 0, 170, 172, 3, 30, 15, 0, 171, 170, 1, 0, 0, 0, 172, 175, 1, 0, 0, 0, 173, 171, 1, 0, 0, 0, 173, 174, 1, 0, 0, 0, 174, 176, 1, 0, 0, 0, 175, 173, 1, 0, 0, 0, 176, 177, 5, 36, 0, 0, 177, 178, 5, 23, 0, 0, 178, 179, 3, 24, 12, 0, 179, 180, 5, 24, 0, 0, 180, 23, 1, 0, 0, 0, 181, 183, 3, 14, 7, 0, 182, 181, 1, 0, 0, 0, 182, 183, 1, 0, 0, 0, 183, 192, 1, 0, 0, 0, 184, 187, 3, 14, 7, 0, 185, 186, 5, 28, 0, 0, 186, 188, 3, 14, 7, 0, 187, 185, 1, 0, 0, 0, 188, 189, 1, 0, 0, 0, 189, 187, 1, 0, 0, 0, 189, 190, 1, 0, 0, 0, 190, 192, 1, 0, 0, 0, 191, 182, 1, 0, 0, 0, 191, 184, 1, 0, 0, 0, 192, 25, 1, 0, 0, 0, 193, 197, 5, 30, 0, 0, 194, 197, 3, 64, 32, 0, 195, 197, 5, 36, 0, 0, 196, 193, 1, 0, 0, 0, 196, 194, 1, 0, 0, 0, 196, 195, 1, 0, 0, 0, 197, 198, 1, 0, 0, 0, 198, 199, 5, 22, 0, 0, 199, 27, 1, 0, 0, 0, 200, 205, 5, 30, 0, 0, 201, 205, 3, 20, 10, 0, 202, 205, 3, 64, 32, 0, 203, 205, 5, 36, 0, 0, 204, 200, 1, 0, 0, 0, 204, 201, 1, 0, 0, 0, 204, 202, 1, 0, 0, 0, 204, 203, 1, 0, 0, 0, 205, 206, 1, 0, 0, 0, 206, 207, 5, 22, 0, 0, 207, 29, 1, 0, 0, 0, 208, 209, 5, 36, 0, 0, 209, 210, 5, 23, 0, 0, 210, 211, 3, 24, 12, 0, 211, 212, 5, 24, 0, 0, 212, 213, 5, 22, 0, 0, 213, 31, 1, 0, 0, 0, 214, 220, 3, 34, 17, 0, 215, 220, 3, 40, 20, 0, 216, 220, 3, 68, 34, 0, 217, 218, 5, 19, 0, 0, 218, 220, 3, 32, 16, 0, 219, 214, 1, 0, 0, 0, 219, 215, 1, 0, 0, 0, 219, 216, 1, 0, 0, 0, 219, 217, 1, 0, 0, 0, 220, 33, 1, 0, 0, 0, 221, 222, 6, 17, -1, 0, 222, 223, 3, 36, 18, 0, 223, 229, 1, 0, 0, 0, 224, 225, 10, 2, 0, 0, 225, 226, 5, 4, 0, 0, 226, 228, 3, 36, 18, 0, 227, 224, 1, 0, 0, 0, 228, 231, 1, 0, 0, 0, 229, 227, 1, 0, 0, 0, 229, 230, 1, 0, 0, 0, 230, 35, 1, 0, 0, 0, 231, 229, 1, 0, 0, 0, 232, 233, 6, 18, -1, 0, 233, 234, 3, 38, 19, 0, 234, 240, 1, 0, 0, 0, 235, 236, 10, 2, 0, 0, 236, 237, 5, 3, 0, 0, 237, 239, 3, 38, 19, 0, 238, 235, 1, 0, 0, 0, 239, 242, 1, 0, 0, 0, 240, 238, 1, 0, 0, 0, 240, 241, 1, 0, 0, 0, 241, 37, 1, 0, 0, 0, 242, 240, 1, 0, 0, 0, 243, 252, 5, 41, 0, 0, 244, 252, 5, 36, 0, 0, 245, 252, 3, 20, 10, 0, 246, 252, 3, 22, 11, 0, 247, 248, 5, 23, 0, 0, 248, 249, 3, 34, 17, 0, 249, 250, 5, 24, 0, 0, 250, 252, 1, 0, 0, 0, 251, 243, 1, 0, 0, 0, 251, 244, 1, 0, 0, 0, 251, 245, 1, 0, 0, 0, 251, 246, 1, 0, 0, 0, 251, 247, 1, 0, 0, 0, 252, 39, 1, 0, 0, 0, 253, 254, 3, 16, 8, 0, 254, 255, 3, 42, 21, 0, 255, 256, 3, 14, 7, 0, 256, 41, 1, 0, 0, 0, 257, 258, 7, 0, 0, 0, 258, 43, 1, 0, 0, 0, 259, 263, 3, 62, 31, 0, 260, 263, 3, 64, 32, 0, 261, 263, 3, 22, 11, 0, 262, 259, 1, 0, 0, 0, 262, 260, 1, 0, 0, 0, 262, 261, 1, 0, 0, 0, 263, 45, 1, 0, 0, 0, 264, 265, 3, 48, 24, 0, 265, 266, 5, 27, 0, 0, 266, 277, 1, 0, 0, 0, 267, 268, 3, 50, 25, 0, 268, 269, 5, 27, 0, 0, 269, 277, 1, 0, 0, 0, 270, 277, 3, 52, 26, 0, 271, 277, 3, 54, 27, 0, 272, 277, 3, 56, 28, 0, 273, 274, 3, 44, 22, 0, 274, 275, 5, 27, 0, 0, 275, 277, 1, 0, 0, 0, 276, 264, 1, 0, 0, 0, 276, 267, 1, 0, 0, 0, 276, 270, 1, 0, 0, 0, 276, 271, 1, 0, 0, 0, 276, 272, 1, 0, 0, 0, 276, 273, 1, 0, 0, 0, 277, 47, 1, 0, 0, 0, 278, 280, 5, 34, 0, 0, 279, 281, 3, 14, 7, 0, 280, 279, 1, 0, 0, 0, 280, 281, 1, 0, 0, 0, 281, 49, 1, 0, 0, 0, 282, 283, 3, 66, 33, 0, 283, 286, 5, 36, 0, 0, 284, 285, 5, 7, 0, 0, 285, 287, 3, 14, 7, 0, 286, 284, 1, 0, 0, 0, 286, 287, 1, 0, 0, 0, 287, 51, 1, 0, 0, 0, 288, 292, 5, 25, 0, 0, 289, 291, 3, 46, 23, 0, 290, 289, 1, 0, 0, 0, 291, 294, 1, 0, 0, 0, 292, 290, 1, 0, 0, 0, 292, 293, 1, 0, 0, 0, 293, 295, 1, 0, 0, 0, 294, 292, 1, 0, 0, 0, 295, 296, 5, 26, 0, 0, 296, 53, 1, 0, 0, 0, 297, 298, 5, 31, 0, 0, 298, 299, 5, 23, 0, 0, 299, 300, 3, 14, 7, 0, 300, 301, 5, 24, 0, 0, 301, 302, 3, 46, 23, 0, 302, 55, 1, 0, 0, 0, 303, 305, 3, 58, 29, 0, 304, 306, 3, 60, 30, 0, 305, 304, 1, 0, 0, 0, 305, 306, 1, 0, 0, 0, 306, 57, 1, 0, 0, 0, 307, 308, 5, 32, 0, 0, 308, 309, 5, 23, 0, 0, 309, 310, 3, 14, 7, 0, 310, 311, 5, 24, 0, 0, 311, 312, 3, 46, 23, 0, 312, 59, 1, 0, 0, 0, 313, 314, 5, 33, 0, 0, 314, 315, 3, 46, 23, 0, 315, 61, 1, 0, 0, 0, 316, 317, 3, 18, 9, 0, 317, 318, 5, 7, 0, 0, 318, 319, 3, 14, 7, 0, 319, 63, 1, 0, 0, 0, 320, 321, 5, 35, 0, 0, 321, 322, 5, 36, 0, 0, 322, 323, 5, 23, 0, 0, 323, 324, 3, 24, 12, 0, 324, 325, 5, 24, 0, 0, 325, 65, 1, 0, 0, 0, 326, 327, 7, 1, 0, 0, 327, 67, 1, 0, 0, 0, 328, 329, 7, 2, 0, 0, 329, 69, 1, 0, 0, 0, 34, 73, 76, 84, 86, 91, 96, 101, 107, 111, 116, 122, 133, 141, 150, 154, 157, 162, 168, 173, 182, 189, 191, 196, 204, 219, 229, 240, 251, 262, 276, 280, 286, 292, 305] |