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