1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
package minijava;
/* Generated By:JavaCC: Do not edit this line. MiniJavaParserConstants.java */
public interface MiniJavaParserConstants {
int EOF = 0;
int SINGLE_LINE_COMMENT = 6;
int FORMAL_COMMENT = 7;
int MULTI_LINE_COMMENT = 8;
int LPAREN = 9;
int RPAREN = 10;
int LSQPAREN = 11;
int RSQPAREN = 12;
int LBRACE = 13;
int RBRACE = 14;
int SEMICOLON = 15;
int DOT = 16;
int ASSIGN = 17;
int LT = 18;
int PLUS = 19;
int MINUS = 20;
int AND = 21;
int NOT = 22;
int BOOLEAN = 23;
int CLASS = 24;
int INTERFACE = 25;
int ELSE = 26;
int EXTENDS = 27;
int FALSE = 28;
int IF = 29;
int WHILE = 30;
int INTEGER = 31;
int LENGTH = 32;
int MAIN = 33;
int NEW = 34;
int PUBLIC = 35;
int RETURN = 36;
int STATIC = 37;
int STRING = 38;
int THIS = 39;
int TRUE = 40;
int PRINT = 41;
int VOID = 42;
int INTEGER_LITERAL = 43;
int IDENTIFIER = 44;
int LETTER = 45;
int DIGIT = 46;
int DEFAULT = 0;
String[] tokenImage = {
"<EOF>",
"\" \"",
"\"\\t\"",
"\"\\n\"",
"\"\\r\"",
"\"\\f\"",
"<SINGLE_LINE_COMMENT>",
"<FORMAL_COMMENT>",
"<MULTI_LINE_COMMENT>",
"\"(\"",
"\")\"",
"\"[\"",
"\"]\"",
"\"{\"",
"\"}\"",
"\";\"",
"\".\"",
"\"=\"",
"\"<\"",
"\"+\"",
"\"-\"",
"\"&&\"",
"\"!\"",
"\"boolean\"",
"\"class\"",
"\"interface\"",
"\"else\"",
"\"extends\"",
"\"false\"",
"\"if\"",
"\"while\"",
"\"int\"",
"\"length\"",
"\"main\"",
"\"new\"",
"\"public\"",
"\"return\"",
"\"static\"",
"\"String\"",
"\"this\"",
"\"true\"",
"\"System.out.println\"",
"\"void\"",
"<INTEGER_LITERAL>",
"<IDENTIFIER>",
"<LETTER>",
"<DIGIT>",
"\",\"",
"\"*\"",
};
}
|