1
2 package org.apache.commons.jexl3.parser;
3
4
5
6
7
8
9 public interface ParserConstants {
10
11
12 int EOF = 0;
13
14 int THROW = 9;
15
16 int TRY = 10;
17
18 int CATCH = 11;
19
20 int FINALLY = 12;
21
22 int ISA = 13;
23
24 int LPAREN = 14;
25
26 int RPAREN = 15;
27
28 int LCURLY = 16;
29
30 int RCURLY = 17;
31
32 int LBRACKET = 18;
33
34 int QLBRACKET = 19;
35
36 int RBRACKET = 20;
37
38 int SEMICOL = 21;
39
40 int COLON = 22;
41
42 int COMMA = 23;
43
44 int DOT = 24;
45
46 int QDOT = 25;
47
48 int ELIPSIS = 26;
49
50 int QMARK = 27;
51
52 int ELVIS = 28;
53
54 int NULLP = 29;
55
56 int AND = 30;
57
58 int OR = 31;
59
60 int NISA = 32;
61
62 int _AND = 33;
63
64 int _OR = 34;
65
66 int eq = 35;
67
68 int ne = 36;
69
70 int gt = 37;
71
72 int ge = 38;
73
74 int lt = 39;
75
76 int le = 40;
77
78 int req = 41;
79
80 int rne = 42;
81
82 int seq = 43;
83
84 int eeq = 44;
85
86 int sne = 45;
87
88 int ene = 46;
89
90 int eqstrict = 47;
91
92 int neqstrict = 48;
93
94 int EQ = 49;
95
96 int NE = 50;
97
98 int GT = 51;
99
100 int GE = 52;
101
102 int LT = 53;
103
104 int LE = 54;
105
106 int plus_assign = 55;
107
108 int minus_assign = 56;
109
110 int mult_assign = 57;
111
112 int div_assign = 58;
113
114 int mod_assign = 59;
115
116 int and_assign = 60;
117
118 int or_assign = 61;
119
120 int xor_assign = 62;
121
122 int lshift_assign = 63;
123
124 int rshiftu_assign = 64;
125
126 int rshift_assign = 65;
127
128 int assign = 66;
129
130 int plus = 67;
131
132 int plusplus = 68;
133
134 int minus = 69;
135
136 int minusminus = 70;
137
138 int mult = 71;
139
140 int div = 72;
141
142 int mod = 73;
143
144 int not = 74;
145
146 int and = 75;
147
148 int or = 76;
149
150 int xor = 77;
151
152 int lshift = 78;
153
154 int rshiftu = 79;
155
156 int rshift = 80;
157
158 int tilda = 81;
159
160 int range = 82;
161
162 int NOT = 83;
163
164 int DIV = 84;
165
166 int MOD = 85;
167
168 int LAMBDA = 86;
169
170 int FATARROW = 87;
171
172 int PRAGMA = 88;
173
174 int IF = 89;
175
176 int ELSE = 90;
177
178 int DO = 91;
179
180 int WHILE = 92;
181
182 int FOR = 93;
183
184 int BREAK = 94;
185
186 int CONTINUE = 95;
187
188 int FUNCTION = 96;
189
190 int RETURN = 97;
191
192 int NEW = 98;
193
194 int SIZE = 99;
195
196 int EMPTY = 100;
197
198 int VAR = 101;
199
200 int LET = 102;
201
202 int CONST = 103;
203
204 int NULL = 104;
205
206 int TRUE = 105;
207
208 int FALSE = 106;
209
210 int SWITCH = 107;
211
212 int CASE = 108;
213
214 int CASE_DEFAULT = 109;
215
216 int IMPORT = 110;
217
218 int NAN_LITERAL = 111;
219
220 int ANNOTATION = 112;
221
222 int DOT_IDENTIFIER = 113;
223
224 int IDENTIFIER = 114;
225
226 int LETTER = 115;
227
228 int DIGIT = 116;
229
230 int ESCAPE = 117;
231
232 int REGISTER = 118;
233
234 int INTEGER_LITERAL = 119;
235
236 int DECIMAL_LITERAL = 120;
237
238 int HEX_LITERAL = 121;
239
240 int OCTAL_LITERAL = 122;
241
242 int INT_SFX = 123;
243
244 int FLOAT_LITERAL = 124;
245
246 int EXPONENT = 125;
247
248 int FLT_CLS = 126;
249
250 int FLT_SFX = 127;
251
252 int STRING_LITERAL = 128;
253
254 int JXLT_LITERAL = 129;
255
256 int REGEX_LITERAL = 130;
257
258
259 int DEFAULT = 0;
260
261 int NEVER = 1;
262
263 int DOT_ID = 2;
264
265
266 String[] tokenImage = {
267 "<EOF>",
268 "\" \"",
269 "\"\\t\"",
270 "\"\\n\"",
271 "\"\\r\"",
272 "\"\\f\"",
273 "<token of kind 6>",
274 "<token of kind 7>",
275 "<token of kind 8>",
276 "\"throw\"",
277 "\"try\"",
278 "\"catch\"",
279 "\"finally\"",
280 "\"instanceof\"",
281 "\"(\"",
282 "\")\"",
283 "\"{\"",
284 "\"}\"",
285 "\"[\"",
286 "\"?[\"",
287 "\"]\"",
288 "\";\"",
289 "\":\"",
290 "\",\"",
291 "\".\"",
292 "\"?.\"",
293 "\"...\"",
294 "\"?\"",
295 "\"?:\"",
296 "\"??\"",
297 "\"&&\"",
298 "\"||\"",
299 "\"!instanceof\"",
300 "\"and\"",
301 "\"or\"",
302 "\"==\"",
303 "\"!=\"",
304 "\">\"",
305 "\">=\"",
306 "\"<\"",
307 "\"<=\"",
308 "\"=~\"",
309 "\"!~\"",
310 "\"=^\"",
311 "\"=$\"",
312 "\"!^\"",
313 "\"!$\"",
314 "\"===\"",
315 "\"!==\"",
316 "\"eq\"",
317 "\"ne\"",
318 "\"gt\"",
319 "\"ge\"",
320 "\"lt\"",
321 "\"le\"",
322 "\"+=\"",
323 "\"-=\"",
324 "\"*=\"",
325 "\"/=\"",
326 "\"%=\"",
327 "\"&=\"",
328 "\"|=\"",
329 "\"^=\"",
330 "\"<<=\"",
331 "\">>>=\"",
332 "\">>=\"",
333 "\"=\"",
334 "\"+\"",
335 "\"++\"",
336 "\"-\"",
337 "\"--\"",
338 "\"*\"",
339 "\"/\"",
340 "\"%\"",
341 "\"!\"",
342 "\"&\"",
343 "\"|\"",
344 "\"^\"",
345 "\"<<\"",
346 "\">>>\"",
347 "\">>\"",
348 "\"~\"",
349 "\"..\"",
350 "\"not\"",
351 "\"div\"",
352 "\"mod\"",
353 "\"->\"",
354 "\"=>\"",
355 "\"#pragma\"",
356 "\"if\"",
357 "\"else\"",
358 "\"do\"",
359 "\"while\"",
360 "\"for\"",
361 "\"break\"",
362 "\"continue\"",
363 "\"function\"",
364 "\"return\"",
365 "\"new\"",
366 "\"size\"",
367 "\"empty\"",
368 "\"var\"",
369 "\"let\"",
370 "\"const\"",
371 "\"null\"",
372 "\"true\"",
373 "\"false\"",
374 "\"switch\"",
375 "\"case\"",
376 "\"default\"",
377 "\"import\"",
378 "\"NaN\"",
379 "<ANNOTATION>",
380 "<DOT_IDENTIFIER>",
381 "<IDENTIFIER>",
382 "<LETTER>",
383 "<DIGIT>",
384 "<ESCAPE>",
385 "<REGISTER>",
386 "<INTEGER_LITERAL>",
387 "<DECIMAL_LITERAL>",
388 "<HEX_LITERAL>",
389 "<OCTAL_LITERAL>",
390 "<INT_SFX>",
391 "<FLOAT_LITERAL>",
392 "<EXPONENT>",
393 "<FLT_CLS>",
394 "<FLT_SFX>",
395 "<STRING_LITERAL>",
396 "<JXLT_LITERAL>",
397 "<REGEX_LITERAL>",
398 };
399
400 }