-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSLPTokeniserConstants.java
173 lines (168 loc) · 3.53 KB
/
SLPTokeniserConstants.java
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
/* Generated By:JavaCC: Do not edit this line. SLPTokeniserConstants.java */
/**
* Token literal values and constants.
* Generated by org.javacc.parser.OtherFilesGen#start()
*/
public interface SLPTokeniserConstants {
/** End of File. */
int EOF = 0;
/** RegularExpression Id. */
int SEMIC = 11;
/** RegularExpression Id. */
int COLON = 12;
/** RegularExpression Id. */
int ASSIGN = 13;
/** RegularExpression Id. */
int LBR = 14;
/** RegularExpression Id. */
int RBR = 15;
/** RegularExpression Id. */
int COMMA = 16;
/** RegularExpression Id. */
int PLUS_SIGN = 17;
/** RegularExpression Id. */
int MINUS_SIGN = 18;
/** RegularExpression Id. */
int MULT_SIGN = 19;
/** RegularExpression Id. */
int DIV_SIGN = 20;
/** RegularExpression Id. */
int RCBR = 21;
/** RegularExpression Id. */
int LCBR = 22;
/** RegularExpression Id. */
int EXLM = 23;
/** RegularExpression Id. */
int QUESTION = 24;
/** RegularExpression Id. */
int PERCENT = 25;
/** RegularExpression Id. */
int EQUALS = 26;
/** RegularExpression Id. */
int NOT_EQUAL = 27;
/** RegularExpression Id. */
int LEFT_BRACE = 28;
/** RegularExpression Id. */
int RIGHT_BRACE = 29;
/** RegularExpression Id. */
int LEFT_BRACE_EQUAL = 30;
/** RegularExpression Id. */
int RIGHT_BRACE_EQUAL = 31;
/** RegularExpression Id. */
int DOT = 32;
/** RegularExpression Id. */
int AND = 33;
/** RegularExpression Id. */
int BOOL = 34;
/** RegularExpression Id. */
int CONST = 35;
/** RegularExpression Id. */
int DO = 36;
/** RegularExpression Id. */
int ELSE = 37;
/** RegularExpression Id. */
int FALSE = 38;
/** RegularExpression Id. */
int IF = 39;
/** RegularExpression Id. */
int INT = 40;
/** RegularExpression Id. */
int MAIN = 41;
/** RegularExpression Id. */
int NOT = 42;
/** RegularExpression Id. */
int OR = 43;
/** RegularExpression Id. */
int REAL = 44;
/** RegularExpression Id. */
int RETURN = 45;
/** RegularExpression Id. */
int STR = 46;
/** RegularExpression Id. */
int THEN = 47;
/** RegularExpression Id. */
int TRUE = 48;
/** RegularExpression Id. */
int VAR = 49;
/** RegularExpression Id. */
int VOID = 50;
/** RegularExpression Id. */
int WHILE = 51;
/** RegularExpression Id. */
int STRING = 52;
/** RegularExpression Id. */
int NUM = 53;
/** RegularExpression Id. */
int DIGIT = 54;
/** RegularExpression Id. */
int ID = 55;
/** RegularExpression Id. */
int LETTER = 56;
/** RegularExpression Id. */
int OTHER = 57;
/** Lexical state. */
int DEFAULT = 0;
/** Lexical state. */
int IN_COMMENT = 1;
/** Literal token values. */
String[] tokenImage = {
"<EOF>",
"\" \"",
"\"\\t\"",
"\"\\n\"",
"\"\\r\"",
"\"\\f\"",
"\"/*\"",
"<token of kind 7>",
"\"/*\"",
"\"*/\"",
"<token of kind 10>",
"\";\"",
"\":\"",
"\":=\"",
"\"(\"",
"\")\"",
"\",\"",
"\"+\"",
"\"-\"",
"\"*\"",
"\"/\"",
"\"}\"",
"\"{\"",
"\"!\"",
"\"?\"",
"\"%\"",
"\"=\"",
"\"!=\"",
"\"<\"",
"\">\"",
"\"<=\"",
"\">=\"",
"\".\"",
"\"and\"",
"\"boolean\"",
"\"constant\"",
"\"do\"",
"\"else\"",
"\"false\"",
"\"if\"",
"\"integer\"",
"\"main\"",
"\"not\"",
"\"or\"",
"\"real\"",
"\"return\"",
"\"string\"",
"\"then\"",
"\"true\"",
"\"var\"",
"\"void\"",
"\"while\"",
"<STRING>",
"<NUM>",
"<DIGIT>",
"<ID>",
"<LETTER>",
"<OTHER>",
};
}