1 /* |
|
2 * Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved. |
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
4 * |
|
5 * This code is free software; you can redistribute it and/or modify it |
|
6 * under the terms of the GNU General Public License version 2 only, as |
|
7 * published by the Free Software Foundation. Oracle designates this |
|
8 * particular file as subject to the "Classpath" exception as provided |
|
9 * by Oracle in the LICENSE file that accompanied this code. |
|
10 * |
|
11 * This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 * version 2 for more details (a copy is included in the LICENSE file that |
|
15 * accompanied this code). |
|
16 * |
|
17 * You should have received a copy of the GNU General Public License version |
|
18 * 2 along with this work; if not, write to the Free Software Foundation, |
|
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 * |
|
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 * or visit www.oracle.com if you need additional information or have any |
|
23 * questions. |
|
24 */ |
|
25 |
|
26 /* Generated By:JJTree&JavaCC: Do not edit this line. ParserTokenManager.java */ |
|
27 package com.sun.jmx.snmp.IPAcl; |
|
28 import java.io.*; |
|
29 |
|
30 class ParserTokenManager implements ParserConstants |
|
31 { |
|
32 private final int jjStopStringLiteralDfa_0(int pos, long active0) |
|
33 { |
|
34 switch (pos) |
|
35 { |
|
36 case 0: |
|
37 if ((active0 & 0x8000L) != 0L) |
|
38 return 0; |
|
39 if ((active0 & 0xfe5000L) != 0L) |
|
40 { |
|
41 jjmatchedKind = 31; |
|
42 return 47; |
|
43 } |
|
44 if ((active0 & 0xd80L) != 0L) |
|
45 { |
|
46 jjmatchedKind = 31; |
|
47 return 48; |
|
48 } |
|
49 return -1; |
|
50 case 1: |
|
51 if ((active0 & 0xfe5c00L) != 0L) |
|
52 { |
|
53 jjmatchedKind = 31; |
|
54 jjmatchedPos = 1; |
|
55 return 49; |
|
56 } |
|
57 if ((active0 & 0x180L) != 0L) |
|
58 { |
|
59 jjmatchedKind = 31; |
|
60 jjmatchedPos = 1; |
|
61 return 50; |
|
62 } |
|
63 return -1; |
|
64 case 2: |
|
65 if ((active0 & 0xfe5c00L) != 0L) |
|
66 { |
|
67 jjmatchedKind = 31; |
|
68 jjmatchedPos = 2; |
|
69 return 49; |
|
70 } |
|
71 if ((active0 & 0x100L) != 0L) |
|
72 return 49; |
|
73 if ((active0 & 0x80L) != 0L) |
|
74 { |
|
75 jjmatchedKind = 31; |
|
76 jjmatchedPos = 2; |
|
77 return 50; |
|
78 } |
|
79 return -1; |
|
80 case 3: |
|
81 if ((active0 & 0x565c00L) != 0L) |
|
82 { |
|
83 if (jjmatchedPos != 3) |
|
84 { |
|
85 jjmatchedKind = 31; |
|
86 jjmatchedPos = 3; |
|
87 } |
|
88 return 49; |
|
89 } |
|
90 if ((active0 & 0xa80000L) != 0L) |
|
91 return 49; |
|
92 if ((active0 & 0x80L) != 0L) |
|
93 { |
|
94 if (jjmatchedPos != 3) |
|
95 { |
|
96 jjmatchedKind = 31; |
|
97 jjmatchedPos = 3; |
|
98 } |
|
99 return 50; |
|
100 } |
|
101 return -1; |
|
102 case 4: |
|
103 if ((active0 & 0xa00000L) != 0L) |
|
104 return 51; |
|
105 if ((active0 & 0x60000L) != 0L) |
|
106 { |
|
107 if (jjmatchedPos < 3) |
|
108 { |
|
109 jjmatchedKind = 31; |
|
110 jjmatchedPos = 3; |
|
111 } |
|
112 return 51; |
|
113 } |
|
114 if ((active0 & 0x1000L) != 0L) |
|
115 return 49; |
|
116 if ((active0 & 0x504c80L) != 0L) |
|
117 { |
|
118 jjmatchedKind = 31; |
|
119 jjmatchedPos = 4; |
|
120 return 49; |
|
121 } |
|
122 return -1; |
|
123 case 5: |
|
124 if ((active0 & 0x500080L) != 0L) |
|
125 return 49; |
|
126 if ((active0 & 0x4c00L) != 0L) |
|
127 { |
|
128 if (jjmatchedPos != 5) |
|
129 { |
|
130 jjmatchedKind = 31; |
|
131 jjmatchedPos = 5; |
|
132 } |
|
133 return 49; |
|
134 } |
|
135 if ((active0 & 0xa60000L) != 0L) |
|
136 { |
|
137 if (jjmatchedPos != 5) |
|
138 { |
|
139 jjmatchedKind = 31; |
|
140 jjmatchedPos = 5; |
|
141 } |
|
142 return 51; |
|
143 } |
|
144 return -1; |
|
145 case 6: |
|
146 if ((active0 & 0x400000L) != 0L) |
|
147 return 51; |
|
148 if ((active0 & 0x4c00L) != 0L) |
|
149 { |
|
150 jjmatchedKind = 31; |
|
151 jjmatchedPos = 6; |
|
152 return 49; |
|
153 } |
|
154 if ((active0 & 0xa60000L) != 0L) |
|
155 { |
|
156 jjmatchedKind = 31; |
|
157 jjmatchedPos = 6; |
|
158 return 51; |
|
159 } |
|
160 return -1; |
|
161 case 7: |
|
162 if ((active0 & 0x660000L) != 0L) |
|
163 { |
|
164 jjmatchedKind = 31; |
|
165 jjmatchedPos = 7; |
|
166 return 51; |
|
167 } |
|
168 if ((active0 & 0x800000L) != 0L) |
|
169 return 51; |
|
170 if ((active0 & 0x4000L) != 0L) |
|
171 return 49; |
|
172 if ((active0 & 0xc00L) != 0L) |
|
173 { |
|
174 jjmatchedKind = 31; |
|
175 jjmatchedPos = 7; |
|
176 return 49; |
|
177 } |
|
178 return -1; |
|
179 case 8: |
|
180 if ((active0 & 0x20000L) != 0L) |
|
181 return 51; |
|
182 if ((active0 & 0xc00L) != 0L) |
|
183 { |
|
184 jjmatchedKind = 31; |
|
185 jjmatchedPos = 8; |
|
186 return 49; |
|
187 } |
|
188 if ((active0 & 0x640000L) != 0L) |
|
189 { |
|
190 jjmatchedKind = 31; |
|
191 jjmatchedPos = 8; |
|
192 return 51; |
|
193 } |
|
194 return -1; |
|
195 case 9: |
|
196 if ((active0 & 0x40000L) != 0L) |
|
197 return 51; |
|
198 if ((active0 & 0x800L) != 0L) |
|
199 return 49; |
|
200 if ((active0 & 0x600000L) != 0L) |
|
201 { |
|
202 jjmatchedKind = 31; |
|
203 jjmatchedPos = 9; |
|
204 return 51; |
|
205 } |
|
206 if ((active0 & 0x400L) != 0L) |
|
207 { |
|
208 jjmatchedKind = 31; |
|
209 jjmatchedPos = 9; |
|
210 return 49; |
|
211 } |
|
212 return -1; |
|
213 case 10: |
|
214 if ((active0 & 0x600000L) != 0L) |
|
215 { |
|
216 jjmatchedKind = 31; |
|
217 jjmatchedPos = 10; |
|
218 return 51; |
|
219 } |
|
220 if ((active0 & 0x400L) != 0L) |
|
221 return 49; |
|
222 return -1; |
|
223 case 11: |
|
224 if ((active0 & 0x600000L) != 0L) |
|
225 { |
|
226 jjmatchedKind = 31; |
|
227 jjmatchedPos = 11; |
|
228 return 51; |
|
229 } |
|
230 return -1; |
|
231 case 12: |
|
232 if ((active0 & 0x600000L) != 0L) |
|
233 { |
|
234 jjmatchedKind = 31; |
|
235 jjmatchedPos = 12; |
|
236 return 51; |
|
237 } |
|
238 return -1; |
|
239 case 13: |
|
240 if ((active0 & 0x400000L) != 0L) |
|
241 { |
|
242 jjmatchedKind = 31; |
|
243 jjmatchedPos = 13; |
|
244 return 51; |
|
245 } |
|
246 if ((active0 & 0x200000L) != 0L) |
|
247 return 51; |
|
248 return -1; |
|
249 case 14: |
|
250 if ((active0 & 0x400000L) != 0L) |
|
251 { |
|
252 jjmatchedKind = 31; |
|
253 jjmatchedPos = 14; |
|
254 return 51; |
|
255 } |
|
256 return -1; |
|
257 default : |
|
258 return -1; |
|
259 } |
|
260 } |
|
261 private final int jjStartNfa_0(int pos, long active0) |
|
262 { |
|
263 return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1); |
|
264 } |
|
265 private final int jjStopAtPos(int pos, int kind) |
|
266 { |
|
267 jjmatchedKind = kind; |
|
268 jjmatchedPos = pos; |
|
269 return pos + 1; |
|
270 } |
|
271 private final int jjStartNfaWithStates_0(int pos, int kind, int state) |
|
272 { |
|
273 jjmatchedKind = kind; |
|
274 jjmatchedPos = pos; |
|
275 try { curChar = input_stream.readChar(); } |
|
276 catch(java.io.IOException e) { return pos + 1; } |
|
277 return jjMoveNfa_0(state, pos + 1); |
|
278 } |
|
279 private final int jjMoveStringLiteralDfa0_0() |
|
280 { |
|
281 switch(curChar) |
|
282 { |
|
283 case 33: |
|
284 return jjStopAtPos(0, 38); |
|
285 case 44: |
|
286 return jjStopAtPos(0, 36); |
|
287 case 45: |
|
288 return jjStartNfaWithStates_0(0, 15, 0); |
|
289 case 46: |
|
290 return jjStopAtPos(0, 37); |
|
291 case 47: |
|
292 return jjStopAtPos(0, 39); |
|
293 case 61: |
|
294 return jjStopAtPos(0, 9); |
|
295 case 97: |
|
296 return jjMoveStringLiteralDfa1_0(0x180L); |
|
297 case 99: |
|
298 return jjMoveStringLiteralDfa1_0(0x400L); |
|
299 case 101: |
|
300 return jjMoveStringLiteralDfa1_0(0x800L); |
|
301 case 104: |
|
302 return jjMoveStringLiteralDfa1_0(0x1000L); |
|
303 case 105: |
|
304 return jjMoveStringLiteralDfa1_0(0x500000L); |
|
305 case 109: |
|
306 return jjMoveStringLiteralDfa1_0(0x4000L); |
|
307 case 114: |
|
308 return jjMoveStringLiteralDfa1_0(0x60000L); |
|
309 case 116: |
|
310 return jjMoveStringLiteralDfa1_0(0xa80000L); |
|
311 case 123: |
|
312 return jjStopAtPos(0, 13); |
|
313 case 125: |
|
314 return jjStopAtPos(0, 16); |
|
315 default : |
|
316 return jjMoveNfa_0(5, 0); |
|
317 } |
|
318 } |
|
319 private final int jjMoveStringLiteralDfa1_0(long active0) |
|
320 { |
|
321 try { curChar = input_stream.readChar(); } |
|
322 catch(java.io.IOException e) { |
|
323 jjStopStringLiteralDfa_0(0, active0); |
|
324 return 1; |
|
325 } |
|
326 switch(curChar) |
|
327 { |
|
328 case 97: |
|
329 return jjMoveStringLiteralDfa2_0(active0, 0x4000L); |
|
330 case 99: |
|
331 return jjMoveStringLiteralDfa2_0(active0, 0x180L); |
|
332 case 101: |
|
333 return jjMoveStringLiteralDfa2_0(active0, 0x60000L); |
|
334 case 110: |
|
335 return jjMoveStringLiteralDfa2_0(active0, 0x500800L); |
|
336 case 111: |
|
337 return jjMoveStringLiteralDfa2_0(active0, 0x1400L); |
|
338 case 114: |
|
339 return jjMoveStringLiteralDfa2_0(active0, 0xa80000L); |
|
340 default : |
|
341 break; |
|
342 } |
|
343 return jjStartNfa_0(0, active0); |
|
344 } |
|
345 private final int jjMoveStringLiteralDfa2_0(long old0, long active0) |
|
346 { |
|
347 if (((active0 &= old0)) == 0L) |
|
348 return jjStartNfa_0(0, old0); |
|
349 try { curChar = input_stream.readChar(); } |
|
350 catch(java.io.IOException e) { |
|
351 jjStopStringLiteralDfa_0(1, active0); |
|
352 return 2; |
|
353 } |
|
354 switch(curChar) |
|
355 { |
|
356 case 97: |
|
357 return jjMoveStringLiteralDfa3_0(active0, 0xae0000L); |
|
358 case 99: |
|
359 return jjMoveStringLiteralDfa3_0(active0, 0x80L); |
|
360 case 102: |
|
361 return jjMoveStringLiteralDfa3_0(active0, 0x500000L); |
|
362 case 108: |
|
363 if ((active0 & 0x100L) != 0L) |
|
364 return jjStartNfaWithStates_0(2, 8, 49); |
|
365 break; |
|
366 case 109: |
|
367 return jjMoveStringLiteralDfa3_0(active0, 0x400L); |
|
368 case 110: |
|
369 return jjMoveStringLiteralDfa3_0(active0, 0x4000L); |
|
370 case 115: |
|
371 return jjMoveStringLiteralDfa3_0(active0, 0x1000L); |
|
372 case 116: |
|
373 return jjMoveStringLiteralDfa3_0(active0, 0x800L); |
|
374 default : |
|
375 break; |
|
376 } |
|
377 return jjStartNfa_0(1, active0); |
|
378 } |
|
379 private final int jjMoveStringLiteralDfa3_0(long old0, long active0) |
|
380 { |
|
381 if (((active0 &= old0)) == 0L) |
|
382 return jjStartNfa_0(1, old0); |
|
383 try { curChar = input_stream.readChar(); } |
|
384 catch(java.io.IOException e) { |
|
385 jjStopStringLiteralDfa_0(2, active0); |
|
386 return 3; |
|
387 } |
|
388 switch(curChar) |
|
389 { |
|
390 case 97: |
|
391 return jjMoveStringLiteralDfa4_0(active0, 0x4000L); |
|
392 case 100: |
|
393 return jjMoveStringLiteralDfa4_0(active0, 0x60000L); |
|
394 case 101: |
|
395 return jjMoveStringLiteralDfa4_0(active0, 0x880L); |
|
396 case 109: |
|
397 return jjMoveStringLiteralDfa4_0(active0, 0x400L); |
|
398 case 111: |
|
399 return jjMoveStringLiteralDfa4_0(active0, 0x500000L); |
|
400 case 112: |
|
401 if ((active0 & 0x80000L) != 0L) |
|
402 { |
|
403 jjmatchedKind = 19; |
|
404 jjmatchedPos = 3; |
|
405 } |
|
406 return jjMoveStringLiteralDfa4_0(active0, 0xa00000L); |
|
407 case 116: |
|
408 return jjMoveStringLiteralDfa4_0(active0, 0x1000L); |
|
409 default : |
|
410 break; |
|
411 } |
|
412 return jjStartNfa_0(2, active0); |
|
413 } |
|
414 private final int jjMoveStringLiteralDfa4_0(long old0, long active0) |
|
415 { |
|
416 if (((active0 &= old0)) == 0L) |
|
417 return jjStartNfa_0(2, old0); |
|
418 try { curChar = input_stream.readChar(); } |
|
419 catch(java.io.IOException e) { |
|
420 jjStopStringLiteralDfa_0(3, active0); |
|
421 return 4; |
|
422 } |
|
423 switch(curChar) |
|
424 { |
|
425 case 45: |
|
426 return jjMoveStringLiteralDfa5_0(active0, 0xa60000L); |
|
427 case 103: |
|
428 return jjMoveStringLiteralDfa5_0(active0, 0x4000L); |
|
429 case 114: |
|
430 return jjMoveStringLiteralDfa5_0(active0, 0x500800L); |
|
431 case 115: |
|
432 if ((active0 & 0x1000L) != 0L) |
|
433 return jjStartNfaWithStates_0(4, 12, 49); |
|
434 return jjMoveStringLiteralDfa5_0(active0, 0x80L); |
|
435 case 117: |
|
436 return jjMoveStringLiteralDfa5_0(active0, 0x400L); |
|
437 default : |
|
438 break; |
|
439 } |
|
440 return jjStartNfa_0(3, active0); |
|
441 } |
|
442 private final int jjMoveStringLiteralDfa5_0(long old0, long active0) |
|
443 { |
|
444 if (((active0 &= old0)) == 0L) |
|
445 return jjStartNfa_0(3, old0); |
|
446 try { curChar = input_stream.readChar(); } |
|
447 catch(java.io.IOException e) { |
|
448 jjStopStringLiteralDfa_0(4, active0); |
|
449 return 5; |
|
450 } |
|
451 switch(curChar) |
|
452 { |
|
453 case 99: |
|
454 return jjMoveStringLiteralDfa6_0(active0, 0x200000L); |
|
455 case 101: |
|
456 return jjMoveStringLiteralDfa6_0(active0, 0x4000L); |
|
457 case 109: |
|
458 if ((active0 & 0x100000L) != 0L) |
|
459 { |
|
460 jjmatchedKind = 20; |
|
461 jjmatchedPos = 5; |
|
462 } |
|
463 return jjMoveStringLiteralDfa6_0(active0, 0x400000L); |
|
464 case 110: |
|
465 return jjMoveStringLiteralDfa6_0(active0, 0x800400L); |
|
466 case 111: |
|
467 return jjMoveStringLiteralDfa6_0(active0, 0x20000L); |
|
468 case 112: |
|
469 return jjMoveStringLiteralDfa6_0(active0, 0x800L); |
|
470 case 115: |
|
471 if ((active0 & 0x80L) != 0L) |
|
472 return jjStartNfaWithStates_0(5, 7, 49); |
|
473 break; |
|
474 case 119: |
|
475 return jjMoveStringLiteralDfa6_0(active0, 0x40000L); |
|
476 default : |
|
477 break; |
|
478 } |
|
479 return jjStartNfa_0(4, active0); |
|
480 } |
|
481 private final int jjMoveStringLiteralDfa6_0(long old0, long active0) |
|
482 { |
|
483 if (((active0 &= old0)) == 0L) |
|
484 return jjStartNfa_0(4, old0); |
|
485 try { curChar = input_stream.readChar(); } |
|
486 catch(java.io.IOException e) { |
|
487 jjStopStringLiteralDfa_0(5, active0); |
|
488 return 6; |
|
489 } |
|
490 switch(curChar) |
|
491 { |
|
492 case 45: |
|
493 return jjMoveStringLiteralDfa7_0(active0, 0x400000L); |
|
494 case 105: |
|
495 return jjMoveStringLiteralDfa7_0(active0, 0x400L); |
|
496 case 110: |
|
497 return jjMoveStringLiteralDfa7_0(active0, 0x20000L); |
|
498 case 111: |
|
499 return jjMoveStringLiteralDfa7_0(active0, 0x200000L); |
|
500 case 114: |
|
501 return jjMoveStringLiteralDfa7_0(active0, 0x44800L); |
|
502 case 117: |
|
503 return jjMoveStringLiteralDfa7_0(active0, 0x800000L); |
|
504 default : |
|
505 break; |
|
506 } |
|
507 return jjStartNfa_0(5, active0); |
|
508 } |
|
509 private final int jjMoveStringLiteralDfa7_0(long old0, long active0) |
|
510 { |
|
511 if (((active0 &= old0)) == 0L) |
|
512 return jjStartNfa_0(5, old0); |
|
513 try { curChar = input_stream.readChar(); } |
|
514 catch(java.io.IOException e) { |
|
515 jjStopStringLiteralDfa_0(6, active0); |
|
516 return 7; |
|
517 } |
|
518 switch(curChar) |
|
519 { |
|
520 case 99: |
|
521 return jjMoveStringLiteralDfa8_0(active0, 0x400000L); |
|
522 case 105: |
|
523 return jjMoveStringLiteralDfa8_0(active0, 0x40800L); |
|
524 case 108: |
|
525 return jjMoveStringLiteralDfa8_0(active0, 0x20000L); |
|
526 case 109: |
|
527 if ((active0 & 0x800000L) != 0L) |
|
528 return jjStartNfaWithStates_0(7, 23, 51); |
|
529 return jjMoveStringLiteralDfa8_0(active0, 0x200000L); |
|
530 case 115: |
|
531 if ((active0 & 0x4000L) != 0L) |
|
532 return jjStartNfaWithStates_0(7, 14, 49); |
|
533 break; |
|
534 case 116: |
|
535 return jjMoveStringLiteralDfa8_0(active0, 0x400L); |
|
536 default : |
|
537 break; |
|
538 } |
|
539 return jjStartNfa_0(6, active0); |
|
540 } |
|
541 private final int jjMoveStringLiteralDfa8_0(long old0, long active0) |
|
542 { |
|
543 if (((active0 &= old0)) == 0L) |
|
544 return jjStartNfa_0(6, old0); |
|
545 try { curChar = input_stream.readChar(); } |
|
546 catch(java.io.IOException e) { |
|
547 jjStopStringLiteralDfa_0(7, active0); |
|
548 return 8; |
|
549 } |
|
550 switch(curChar) |
|
551 { |
|
552 case 105: |
|
553 return jjMoveStringLiteralDfa9_0(active0, 0x400L); |
|
554 case 109: |
|
555 return jjMoveStringLiteralDfa9_0(active0, 0x200000L); |
|
556 case 111: |
|
557 return jjMoveStringLiteralDfa9_0(active0, 0x400000L); |
|
558 case 115: |
|
559 return jjMoveStringLiteralDfa9_0(active0, 0x800L); |
|
560 case 116: |
|
561 return jjMoveStringLiteralDfa9_0(active0, 0x40000L); |
|
562 case 121: |
|
563 if ((active0 & 0x20000L) != 0L) |
|
564 return jjStartNfaWithStates_0(8, 17, 51); |
|
565 break; |
|
566 default : |
|
567 break; |
|
568 } |
|
569 return jjStartNfa_0(7, active0); |
|
570 } |
|
571 private final int jjMoveStringLiteralDfa9_0(long old0, long active0) |
|
572 { |
|
573 if (((active0 &= old0)) == 0L) |
|
574 return jjStartNfa_0(7, old0); |
|
575 try { curChar = input_stream.readChar(); } |
|
576 catch(java.io.IOException e) { |
|
577 jjStopStringLiteralDfa_0(8, active0); |
|
578 return 9; |
|
579 } |
|
580 switch(curChar) |
|
581 { |
|
582 case 101: |
|
583 if ((active0 & 0x800L) != 0L) |
|
584 return jjStartNfaWithStates_0(9, 11, 49); |
|
585 else if ((active0 & 0x40000L) != 0L) |
|
586 return jjStartNfaWithStates_0(9, 18, 51); |
|
587 return jjMoveStringLiteralDfa10_0(active0, 0x400L); |
|
588 case 109: |
|
589 return jjMoveStringLiteralDfa10_0(active0, 0x400000L); |
|
590 case 117: |
|
591 return jjMoveStringLiteralDfa10_0(active0, 0x200000L); |
|
592 default : |
|
593 break; |
|
594 } |
|
595 return jjStartNfa_0(8, active0); |
|
596 } |
|
597 private final int jjMoveStringLiteralDfa10_0(long old0, long active0) |
|
598 { |
|
599 if (((active0 &= old0)) == 0L) |
|
600 return jjStartNfa_0(8, old0); |
|
601 try { curChar = input_stream.readChar(); } |
|
602 catch(java.io.IOException e) { |
|
603 jjStopStringLiteralDfa_0(9, active0); |
|
604 return 10; |
|
605 } |
|
606 switch(curChar) |
|
607 { |
|
608 case 109: |
|
609 return jjMoveStringLiteralDfa11_0(active0, 0x400000L); |
|
610 case 110: |
|
611 return jjMoveStringLiteralDfa11_0(active0, 0x200000L); |
|
612 case 115: |
|
613 if ((active0 & 0x400L) != 0L) |
|
614 return jjStartNfaWithStates_0(10, 10, 49); |
|
615 break; |
|
616 default : |
|
617 break; |
|
618 } |
|
619 return jjStartNfa_0(9, active0); |
|
620 } |
|
621 private final int jjMoveStringLiteralDfa11_0(long old0, long active0) |
|
622 { |
|
623 if (((active0 &= old0)) == 0L) |
|
624 return jjStartNfa_0(9, old0); |
|
625 try { curChar = input_stream.readChar(); } |
|
626 catch(java.io.IOException e) { |
|
627 jjStopStringLiteralDfa_0(10, active0); |
|
628 return 11; |
|
629 } |
|
630 switch(curChar) |
|
631 { |
|
632 case 105: |
|
633 return jjMoveStringLiteralDfa12_0(active0, 0x200000L); |
|
634 case 117: |
|
635 return jjMoveStringLiteralDfa12_0(active0, 0x400000L); |
|
636 default : |
|
637 break; |
|
638 } |
|
639 return jjStartNfa_0(10, active0); |
|
640 } |
|
641 private final int jjMoveStringLiteralDfa12_0(long old0, long active0) |
|
642 { |
|
643 if (((active0 &= old0)) == 0L) |
|
644 return jjStartNfa_0(10, old0); |
|
645 try { curChar = input_stream.readChar(); } |
|
646 catch(java.io.IOException e) { |
|
647 jjStopStringLiteralDfa_0(11, active0); |
|
648 return 12; |
|
649 } |
|
650 switch(curChar) |
|
651 { |
|
652 case 110: |
|
653 return jjMoveStringLiteralDfa13_0(active0, 0x400000L); |
|
654 case 116: |
|
655 return jjMoveStringLiteralDfa13_0(active0, 0x200000L); |
|
656 default : |
|
657 break; |
|
658 } |
|
659 return jjStartNfa_0(11, active0); |
|
660 } |
|
661 private final int jjMoveStringLiteralDfa13_0(long old0, long active0) |
|
662 { |
|
663 if (((active0 &= old0)) == 0L) |
|
664 return jjStartNfa_0(11, old0); |
|
665 try { curChar = input_stream.readChar(); } |
|
666 catch(java.io.IOException e) { |
|
667 jjStopStringLiteralDfa_0(12, active0); |
|
668 return 13; |
|
669 } |
|
670 switch(curChar) |
|
671 { |
|
672 case 105: |
|
673 return jjMoveStringLiteralDfa14_0(active0, 0x400000L); |
|
674 case 121: |
|
675 if ((active0 & 0x200000L) != 0L) |
|
676 return jjStartNfaWithStates_0(13, 21, 51); |
|
677 break; |
|
678 default : |
|
679 break; |
|
680 } |
|
681 return jjStartNfa_0(12, active0); |
|
682 } |
|
683 private final int jjMoveStringLiteralDfa14_0(long old0, long active0) |
|
684 { |
|
685 if (((active0 &= old0)) == 0L) |
|
686 return jjStartNfa_0(12, old0); |
|
687 try { curChar = input_stream.readChar(); } |
|
688 catch(java.io.IOException e) { |
|
689 jjStopStringLiteralDfa_0(13, active0); |
|
690 return 14; |
|
691 } |
|
692 switch(curChar) |
|
693 { |
|
694 case 116: |
|
695 return jjMoveStringLiteralDfa15_0(active0, 0x400000L); |
|
696 default : |
|
697 break; |
|
698 } |
|
699 return jjStartNfa_0(13, active0); |
|
700 } |
|
701 private final int jjMoveStringLiteralDfa15_0(long old0, long active0) |
|
702 { |
|
703 if (((active0 &= old0)) == 0L) |
|
704 return jjStartNfa_0(13, old0); |
|
705 try { curChar = input_stream.readChar(); } |
|
706 catch(java.io.IOException e) { |
|
707 jjStopStringLiteralDfa_0(14, active0); |
|
708 return 15; |
|
709 } |
|
710 switch(curChar) |
|
711 { |
|
712 case 121: |
|
713 if ((active0 & 0x400000L) != 0L) |
|
714 return jjStartNfaWithStates_0(15, 22, 51); |
|
715 break; |
|
716 default : |
|
717 break; |
|
718 } |
|
719 return jjStartNfa_0(14, active0); |
|
720 } |
|
721 private final void jjCheckNAdd(int state) |
|
722 { |
|
723 if (jjrounds[state] != jjround) |
|
724 { |
|
725 jjstateSet[jjnewStateCnt++] = state; |
|
726 jjrounds[state] = jjround; |
|
727 } |
|
728 } |
|
729 private final void jjAddStates(int start, int end) |
|
730 { |
|
731 do { |
|
732 jjstateSet[jjnewStateCnt++] = jjnextStates[start]; |
|
733 } while (start++ != end); |
|
734 } |
|
735 private final void jjCheckNAddTwoStates(int state1, int state2) |
|
736 { |
|
737 jjCheckNAdd(state1); |
|
738 jjCheckNAdd(state2); |
|
739 } |
|
740 private final void jjCheckNAddStates(int start, int end) |
|
741 { |
|
742 do { |
|
743 jjCheckNAdd(jjnextStates[start]); |
|
744 } while (start++ != end); |
|
745 } |
|
746 private final void jjCheckNAddStates(int start) |
|
747 { |
|
748 jjCheckNAdd(jjnextStates[start]); |
|
749 jjCheckNAdd(jjnextStates[start + 1]); |
|
750 } |
|
751 static final long[] jjbitVec0 = { |
|
752 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL |
|
753 }; |
|
754 private final int jjMoveNfa_0(int startState, int curPos) |
|
755 { |
|
756 int[] nextStates; |
|
757 int startsAt = 0; |
|
758 jjnewStateCnt = 47; |
|
759 int i = 1; |
|
760 jjstateSet[0] = startState; |
|
761 int j, kind = 0x7fffffff; |
|
762 for (;;) |
|
763 { |
|
764 if (++jjround == 0x7fffffff) |
|
765 ReInitRounds(); |
|
766 if (curChar < 64) |
|
767 { |
|
768 long l = 1L << curChar; |
|
769 MatchLoop: do |
|
770 { |
|
771 switch(jjstateSet[--i]) |
|
772 { |
|
773 case 49: |
|
774 if ((0x3ff200000000000L & l) != 0L) |
|
775 jjCheckNAddTwoStates(18, 19); |
|
776 if ((0x3ff000000000000L & l) != 0L) |
|
777 { |
|
778 if (kind > 31) |
|
779 kind = 31; |
|
780 jjCheckNAddStates(0, 2); |
|
781 } |
|
782 if ((0x3ff000000000000L & l) != 0L) |
|
783 { |
|
784 if (kind > 31) |
|
785 kind = 31; |
|
786 jjCheckNAdd(20); |
|
787 } |
|
788 if ((0x3ff000000000000L & l) != 0L) |
|
789 { |
|
790 if (kind > 31) |
|
791 kind = 31; |
|
792 jjCheckNAdd(19); |
|
793 } |
|
794 break; |
|
795 case 48: |
|
796 if ((0x3ff200000000000L & l) != 0L) |
|
797 jjCheckNAddTwoStates(18, 19); |
|
798 else if (curChar == 58) |
|
799 jjCheckNAddStates(3, 5); |
|
800 if ((0x3ff000000000000L & l) != 0L) |
|
801 { |
|
802 if (kind > 31) |
|
803 kind = 31; |
|
804 jjCheckNAddStates(0, 2); |
|
805 } |
|
806 else if (curChar == 58) |
|
807 jjCheckNAddTwoStates(23, 25); |
|
808 if ((0x3ff000000000000L & l) != 0L) |
|
809 { |
|
810 if (kind > 31) |
|
811 kind = 31; |
|
812 jjCheckNAdd(20); |
|
813 } |
|
814 if ((0x3ff000000000000L & l) != 0L) |
|
815 jjCheckNAddTwoStates(26, 27); |
|
816 if ((0x3ff000000000000L & l) != 0L) |
|
817 jjCheckNAddTwoStates(23, 24); |
|
818 break; |
|
819 case 47: |
|
820 if ((0x3ff200000000000L & l) != 0L) |
|
821 jjCheckNAddTwoStates(18, 19); |
|
822 if ((0x3ff000000000000L & l) != 0L) |
|
823 { |
|
824 if (kind > 31) |
|
825 kind = 31; |
|
826 jjCheckNAddStates(0, 2); |
|
827 } |
|
828 if ((0x3ff000000000000L & l) != 0L) |
|
829 { |
|
830 if (kind > 31) |
|
831 kind = 31; |
|
832 jjCheckNAdd(20); |
|
833 } |
|
834 break; |
|
835 case 50: |
|
836 if ((0x3ff200000000000L & l) != 0L) |
|
837 jjCheckNAddTwoStates(18, 19); |
|
838 else if (curChar == 58) |
|
839 jjCheckNAddStates(3, 5); |
|
840 if ((0x3ff000000000000L & l) != 0L) |
|
841 { |
|
842 if (kind > 31) |
|
843 kind = 31; |
|
844 jjCheckNAddStates(0, 2); |
|
845 } |
|
846 else if (curChar == 58) |
|
847 jjCheckNAddTwoStates(23, 25); |
|
848 if ((0x3ff000000000000L & l) != 0L) |
|
849 { |
|
850 if (kind > 31) |
|
851 kind = 31; |
|
852 jjCheckNAdd(20); |
|
853 } |
|
854 if ((0x3ff000000000000L & l) != 0L) |
|
855 { |
|
856 if (kind > 31) |
|
857 kind = 31; |
|
858 jjCheckNAdd(19); |
|
859 } |
|
860 if ((0x3ff000000000000L & l) != 0L) |
|
861 jjCheckNAddTwoStates(26, 27); |
|
862 if ((0x3ff000000000000L & l) != 0L) |
|
863 jjCheckNAddTwoStates(23, 24); |
|
864 break; |
|
865 case 5: |
|
866 if ((0x3ff000000000000L & l) != 0L) |
|
867 jjCheckNAddStates(6, 9); |
|
868 else if (curChar == 58) |
|
869 jjAddStates(10, 11); |
|
870 else if (curChar == 34) |
|
871 jjCheckNAddTwoStates(15, 16); |
|
872 else if (curChar == 35) |
|
873 jjCheckNAddStates(12, 14); |
|
874 else if (curChar == 45) |
|
875 jjstateSet[jjnewStateCnt++] = 0; |
|
876 if ((0x3ff000000000000L & l) != 0L) |
|
877 { |
|
878 if (kind > 31) |
|
879 kind = 31; |
|
880 jjCheckNAddStates(15, 17); |
|
881 } |
|
882 if ((0x3fe000000000000L & l) != 0L) |
|
883 { |
|
884 if (kind > 24) |
|
885 kind = 24; |
|
886 jjCheckNAddTwoStates(12, 13); |
|
887 } |
|
888 else if (curChar == 48) |
|
889 { |
|
890 if (kind > 24) |
|
891 kind = 24; |
|
892 jjCheckNAddStates(18, 20); |
|
893 } |
|
894 break; |
|
895 case 51: |
|
896 if ((0x3ff200000000000L & l) != 0L) |
|
897 jjCheckNAddTwoStates(18, 19); |
|
898 if ((0x3ff000000000000L & l) != 0L) |
|
899 { |
|
900 if (kind > 31) |
|
901 kind = 31; |
|
902 jjCheckNAdd(19); |
|
903 } |
|
904 break; |
|
905 case 0: |
|
906 if (curChar == 45) |
|
907 jjCheckNAddStates(21, 23); |
|
908 break; |
|
909 case 1: |
|
910 if ((0xffffffffffffdbffL & l) != 0L) |
|
911 jjCheckNAddStates(21, 23); |
|
912 break; |
|
913 case 2: |
|
914 if ((0x2400L & l) != 0L && kind > 5) |
|
915 kind = 5; |
|
916 break; |
|
917 case 3: |
|
918 if (curChar == 10 && kind > 5) |
|
919 kind = 5; |
|
920 break; |
|
921 case 4: |
|
922 if (curChar == 13) |
|
923 jjstateSet[jjnewStateCnt++] = 3; |
|
924 break; |
|
925 case 6: |
|
926 if (curChar == 35) |
|
927 jjCheckNAddStates(12, 14); |
|
928 break; |
|
929 case 7: |
|
930 if ((0xffffffffffffdbffL & l) != 0L) |
|
931 jjCheckNAddStates(12, 14); |
|
932 break; |
|
933 case 8: |
|
934 if ((0x2400L & l) != 0L && kind > 6) |
|
935 kind = 6; |
|
936 break; |
|
937 case 9: |
|
938 if (curChar == 10 && kind > 6) |
|
939 kind = 6; |
|
940 break; |
|
941 case 10: |
|
942 if (curChar == 13) |
|
943 jjstateSet[jjnewStateCnt++] = 9; |
|
944 break; |
|
945 case 11: |
|
946 if ((0x3fe000000000000L & l) == 0L) |
|
947 break; |
|
948 if (kind > 24) |
|
949 kind = 24; |
|
950 jjCheckNAddTwoStates(12, 13); |
|
951 break; |
|
952 case 12: |
|
953 if ((0x3ff000000000000L & l) == 0L) |
|
954 break; |
|
955 if (kind > 24) |
|
956 kind = 24; |
|
957 jjCheckNAddTwoStates(12, 13); |
|
958 break; |
|
959 case 14: |
|
960 if (curChar == 34) |
|
961 jjCheckNAddTwoStates(15, 16); |
|
962 break; |
|
963 case 15: |
|
964 if ((0xfffffffbffffffffL & l) != 0L) |
|
965 jjCheckNAddTwoStates(15, 16); |
|
966 break; |
|
967 case 16: |
|
968 if (curChar == 34 && kind > 35) |
|
969 kind = 35; |
|
970 break; |
|
971 case 17: |
|
972 if ((0x3ff000000000000L & l) == 0L) |
|
973 break; |
|
974 if (kind > 31) |
|
975 kind = 31; |
|
976 jjCheckNAddStates(15, 17); |
|
977 break; |
|
978 case 18: |
|
979 if ((0x3ff200000000000L & l) != 0L) |
|
980 jjCheckNAddTwoStates(18, 19); |
|
981 break; |
|
982 case 19: |
|
983 if ((0x3ff000000000000L & l) == 0L) |
|
984 break; |
|
985 if (kind > 31) |
|
986 kind = 31; |
|
987 jjCheckNAdd(19); |
|
988 break; |
|
989 case 20: |
|
990 if ((0x3ff000000000000L & l) == 0L) |
|
991 break; |
|
992 if (kind > 31) |
|
993 kind = 31; |
|
994 jjCheckNAdd(20); |
|
995 break; |
|
996 case 21: |
|
997 if ((0x3ff000000000000L & l) == 0L) |
|
998 break; |
|
999 if (kind > 31) |
|
1000 kind = 31; |
|
1001 jjCheckNAddStates(0, 2); |
|
1002 break; |
|
1003 case 22: |
|
1004 if ((0x3ff000000000000L & l) != 0L) |
|
1005 jjCheckNAddStates(6, 9); |
|
1006 break; |
|
1007 case 23: |
|
1008 if ((0x3ff000000000000L & l) != 0L) |
|
1009 jjCheckNAddTwoStates(23, 24); |
|
1010 break; |
|
1011 case 24: |
|
1012 if (curChar == 58) |
|
1013 jjCheckNAddTwoStates(23, 25); |
|
1014 break; |
|
1015 case 25: |
|
1016 case 41: |
|
1017 if (curChar == 58 && kind > 28) |
|
1018 kind = 28; |
|
1019 break; |
|
1020 case 26: |
|
1021 if ((0x3ff000000000000L & l) != 0L) |
|
1022 jjCheckNAddTwoStates(26, 27); |
|
1023 break; |
|
1024 case 27: |
|
1025 if (curChar == 58) |
|
1026 jjCheckNAddStates(3, 5); |
|
1027 break; |
|
1028 case 28: |
|
1029 case 42: |
|
1030 if (curChar == 58) |
|
1031 jjCheckNAddTwoStates(29, 36); |
|
1032 break; |
|
1033 case 29: |
|
1034 if ((0x3ff000000000000L & l) != 0L) |
|
1035 jjCheckNAddTwoStates(29, 30); |
|
1036 break; |
|
1037 case 30: |
|
1038 if (curChar == 46) |
|
1039 jjCheckNAdd(31); |
|
1040 break; |
|
1041 case 31: |
|
1042 if ((0x3ff000000000000L & l) != 0L) |
|
1043 jjCheckNAddTwoStates(31, 32); |
|
1044 break; |
|
1045 case 32: |
|
1046 if (curChar == 46) |
|
1047 jjCheckNAdd(33); |
|
1048 break; |
|
1049 case 33: |
|
1050 if ((0x3ff000000000000L & l) != 0L) |
|
1051 jjCheckNAddTwoStates(33, 34); |
|
1052 break; |
|
1053 case 34: |
|
1054 if (curChar == 46) |
|
1055 jjCheckNAdd(35); |
|
1056 break; |
|
1057 case 35: |
|
1058 if ((0x3ff000000000000L & l) == 0L) |
|
1059 break; |
|
1060 if (kind > 28) |
|
1061 kind = 28; |
|
1062 jjCheckNAdd(35); |
|
1063 break; |
|
1064 case 36: |
|
1065 if ((0x3ff000000000000L & l) == 0L) |
|
1066 break; |
|
1067 if (kind > 28) |
|
1068 kind = 28; |
|
1069 jjCheckNAddStates(24, 26); |
|
1070 break; |
|
1071 case 37: |
|
1072 if ((0x3ff000000000000L & l) != 0L) |
|
1073 jjCheckNAddTwoStates(37, 28); |
|
1074 break; |
|
1075 case 38: |
|
1076 if ((0x3ff000000000000L & l) == 0L) |
|
1077 break; |
|
1078 if (kind > 28) |
|
1079 kind = 28; |
|
1080 jjCheckNAdd(38); |
|
1081 break; |
|
1082 case 39: |
|
1083 if ((0x3ff000000000000L & l) == 0L) |
|
1084 break; |
|
1085 if (kind > 28) |
|
1086 kind = 28; |
|
1087 jjCheckNAddStates(27, 31); |
|
1088 break; |
|
1089 case 40: |
|
1090 if (curChar == 58) |
|
1091 jjAddStates(10, 11); |
|
1092 break; |
|
1093 case 43: |
|
1094 if (curChar != 48) |
|
1095 break; |
|
1096 if (kind > 24) |
|
1097 kind = 24; |
|
1098 jjCheckNAddStates(18, 20); |
|
1099 break; |
|
1100 case 45: |
|
1101 if ((0x3ff000000000000L & l) == 0L) |
|
1102 break; |
|
1103 if (kind > 24) |
|
1104 kind = 24; |
|
1105 jjCheckNAddTwoStates(45, 13); |
|
1106 break; |
|
1107 case 46: |
|
1108 if ((0xff000000000000L & l) == 0L) |
|
1109 break; |
|
1110 if (kind > 24) |
|
1111 kind = 24; |
|
1112 jjCheckNAddTwoStates(46, 13); |
|
1113 break; |
|
1114 default : break; |
|
1115 } |
|
1116 } while(i != startsAt); |
|
1117 } |
|
1118 else if (curChar < 128) |
|
1119 { |
|
1120 long l = 1L << (curChar & 077); |
|
1121 MatchLoop: do |
|
1122 { |
|
1123 switch(jjstateSet[--i]) |
|
1124 { |
|
1125 case 49: |
|
1126 if ((0x7fffffe87fffffeL & l) != 0L) |
|
1127 jjCheckNAddTwoStates(18, 19); |
|
1128 if ((0x7fffffe07fffffeL & l) != 0L) |
|
1129 { |
|
1130 if (kind > 31) |
|
1131 kind = 31; |
|
1132 jjCheckNAddStates(0, 2); |
|
1133 } |
|
1134 if ((0x7fffffe07fffffeL & l) != 0L) |
|
1135 { |
|
1136 if (kind > 31) |
|
1137 kind = 31; |
|
1138 jjCheckNAdd(20); |
|
1139 } |
|
1140 if ((0x7fffffe07fffffeL & l) != 0L) |
|
1141 { |
|
1142 if (kind > 31) |
|
1143 kind = 31; |
|
1144 jjCheckNAdd(19); |
|
1145 } |
|
1146 break; |
|
1147 case 48: |
|
1148 if ((0x7fffffe87fffffeL & l) != 0L) |
|
1149 jjCheckNAddTwoStates(18, 19); |
|
1150 if ((0x7fffffe07fffffeL & l) != 0L) |
|
1151 { |
|
1152 if (kind > 31) |
|
1153 kind = 31; |
|
1154 jjCheckNAddStates(0, 2); |
|
1155 } |
|
1156 if ((0x7fffffe07fffffeL & l) != 0L) |
|
1157 { |
|
1158 if (kind > 31) |
|
1159 kind = 31; |
|
1160 jjCheckNAdd(20); |
|
1161 } |
|
1162 if ((0x7e0000007eL & l) != 0L) |
|
1163 jjCheckNAddTwoStates(26, 27); |
|
1164 if ((0x7e0000007eL & l) != 0L) |
|
1165 jjCheckNAddTwoStates(23, 24); |
|
1166 break; |
|
1167 case 47: |
|
1168 if ((0x7fffffe87fffffeL & l) != 0L) |
|
1169 jjCheckNAddTwoStates(18, 19); |
|
1170 if ((0x7fffffe07fffffeL & l) != 0L) |
|
1171 { |
|
1172 if (kind > 31) |
|
1173 kind = 31; |
|
1174 jjCheckNAddStates(0, 2); |
|
1175 } |
|
1176 if ((0x7fffffe07fffffeL & l) != 0L) |
|
1177 { |
|
1178 if (kind > 31) |
|
1179 kind = 31; |
|
1180 jjCheckNAdd(20); |
|
1181 } |
|
1182 break; |
|
1183 case 50: |
|
1184 if ((0x7fffffe87fffffeL & l) != 0L) |
|
1185 jjCheckNAddTwoStates(18, 19); |
|
1186 if ((0x7fffffe07fffffeL & l) != 0L) |
|
1187 { |
|
1188 if (kind > 31) |
|
1189 kind = 31; |
|
1190 jjCheckNAddStates(0, 2); |
|
1191 } |
|
1192 if ((0x7fffffe07fffffeL & l) != 0L) |
|
1193 { |
|
1194 if (kind > 31) |
|
1195 kind = 31; |
|
1196 jjCheckNAdd(20); |
|
1197 } |
|
1198 if ((0x7fffffe07fffffeL & l) != 0L) |
|
1199 { |
|
1200 if (kind > 31) |
|
1201 kind = 31; |
|
1202 jjCheckNAdd(19); |
|
1203 } |
|
1204 if ((0x7e0000007eL & l) != 0L) |
|
1205 jjCheckNAddTwoStates(26, 27); |
|
1206 if ((0x7e0000007eL & l) != 0L) |
|
1207 jjCheckNAddTwoStates(23, 24); |
|
1208 break; |
|
1209 case 5: |
|
1210 if ((0x7fffffe07fffffeL & l) != 0L) |
|
1211 { |
|
1212 if (kind > 31) |
|
1213 kind = 31; |
|
1214 jjCheckNAddStates(15, 17); |
|
1215 } |
|
1216 if ((0x7e0000007eL & l) != 0L) |
|
1217 jjCheckNAddStates(6, 9); |
|
1218 break; |
|
1219 case 51: |
|
1220 if ((0x7fffffe87fffffeL & l) != 0L) |
|
1221 jjCheckNAddTwoStates(18, 19); |
|
1222 if ((0x7fffffe07fffffeL & l) != 0L) |
|
1223 { |
|
1224 if (kind > 31) |
|
1225 kind = 31; |
|
1226 jjCheckNAdd(19); |
|
1227 } |
|
1228 break; |
|
1229 case 1: |
|
1230 jjAddStates(21, 23); |
|
1231 break; |
|
1232 case 7: |
|
1233 jjAddStates(12, 14); |
|
1234 break; |
|
1235 case 13: |
|
1236 if ((0x100000001000L & l) != 0L && kind > 24) |
|
1237 kind = 24; |
|
1238 break; |
|
1239 case 15: |
|
1240 jjAddStates(32, 33); |
|
1241 break; |
|
1242 case 17: |
|
1243 if ((0x7fffffe07fffffeL & l) == 0L) |
|
1244 break; |
|
1245 if (kind > 31) |
|
1246 kind = 31; |
|
1247 jjCheckNAddStates(15, 17); |
|
1248 break; |
|
1249 case 18: |
|
1250 if ((0x7fffffe87fffffeL & l) != 0L) |
|
1251 jjCheckNAddTwoStates(18, 19); |
|
1252 break; |
|
1253 case 19: |
|
1254 if ((0x7fffffe07fffffeL & l) == 0L) |
|
1255 break; |
|
1256 if (kind > 31) |
|
1257 kind = 31; |
|
1258 jjCheckNAdd(19); |
|
1259 break; |
|
1260 case 20: |
|
1261 if ((0x7fffffe07fffffeL & l) == 0L) |
|
1262 break; |
|
1263 if (kind > 31) |
|
1264 kind = 31; |
|
1265 jjCheckNAdd(20); |
|
1266 break; |
|
1267 case 21: |
|
1268 if ((0x7fffffe07fffffeL & l) == 0L) |
|
1269 break; |
|
1270 if (kind > 31) |
|
1271 kind = 31; |
|
1272 jjCheckNAddStates(0, 2); |
|
1273 break; |
|
1274 case 22: |
|
1275 if ((0x7e0000007eL & l) != 0L) |
|
1276 jjCheckNAddStates(6, 9); |
|
1277 break; |
|
1278 case 23: |
|
1279 if ((0x7e0000007eL & l) != 0L) |
|
1280 jjCheckNAddTwoStates(23, 24); |
|
1281 break; |
|
1282 case 26: |
|
1283 if ((0x7e0000007eL & l) != 0L) |
|
1284 jjCheckNAddTwoStates(26, 27); |
|
1285 break; |
|
1286 case 36: |
|
1287 if ((0x7e0000007eL & l) == 0L) |
|
1288 break; |
|
1289 if (kind > 28) |
|
1290 kind = 28; |
|
1291 jjCheckNAddStates(24, 26); |
|
1292 break; |
|
1293 case 37: |
|
1294 if ((0x7e0000007eL & l) != 0L) |
|
1295 jjCheckNAddTwoStates(37, 28); |
|
1296 break; |
|
1297 case 38: |
|
1298 if ((0x7e0000007eL & l) == 0L) |
|
1299 break; |
|
1300 if (kind > 28) |
|
1301 kind = 28; |
|
1302 jjCheckNAdd(38); |
|
1303 break; |
|
1304 case 39: |
|
1305 if ((0x7e0000007eL & l) == 0L) |
|
1306 break; |
|
1307 if (kind > 28) |
|
1308 kind = 28; |
|
1309 jjCheckNAddStates(27, 31); |
|
1310 break; |
|
1311 case 44: |
|
1312 if ((0x100000001000000L & l) != 0L) |
|
1313 jjCheckNAdd(45); |
|
1314 break; |
|
1315 case 45: |
|
1316 if ((0x7e0000007eL & l) == 0L) |
|
1317 break; |
|
1318 if (kind > 24) |
|
1319 kind = 24; |
|
1320 jjCheckNAddTwoStates(45, 13); |
|
1321 break; |
|
1322 default : break; |
|
1323 } |
|
1324 } while(i != startsAt); |
|
1325 } |
|
1326 else |
|
1327 { |
|
1328 int i2 = (curChar & 0xff) >> 6; |
|
1329 long l2 = 1L << (curChar & 077); |
|
1330 MatchLoop: do |
|
1331 { |
|
1332 switch(jjstateSet[--i]) |
|
1333 { |
|
1334 case 1: |
|
1335 if ((jjbitVec0[i2] & l2) != 0L) |
|
1336 jjAddStates(21, 23); |
|
1337 break; |
|
1338 case 7: |
|
1339 if ((jjbitVec0[i2] & l2) != 0L) |
|
1340 jjAddStates(12, 14); |
|
1341 break; |
|
1342 case 15: |
|
1343 if ((jjbitVec0[i2] & l2) != 0L) |
|
1344 jjAddStates(32, 33); |
|
1345 break; |
|
1346 default : break; |
|
1347 } |
|
1348 } while(i != startsAt); |
|
1349 } |
|
1350 if (kind != 0x7fffffff) |
|
1351 { |
|
1352 jjmatchedKind = kind; |
|
1353 jjmatchedPos = curPos; |
|
1354 kind = 0x7fffffff; |
|
1355 } |
|
1356 ++curPos; |
|
1357 if ((i = jjnewStateCnt) == (startsAt = 47 - (jjnewStateCnt = startsAt))) |
|
1358 return curPos; |
|
1359 try { curChar = input_stream.readChar(); } |
|
1360 catch(java.io.IOException e) { return curPos; } |
|
1361 } |
|
1362 } |
|
1363 static final int[] jjnextStates = { |
|
1364 18, 19, 21, 28, 29, 39, 23, 24, 26, 27, 41, 42, 7, 8, 10, 18, |
|
1365 20, 21, 44, 46, 13, 1, 2, 4, 37, 28, 38, 26, 27, 37, 28, 38, |
|
1366 15, 16, |
|
1367 }; |
|
1368 public static final String[] jjstrLiteralImages = { |
|
1369 "", null, null, null, null, null, null, "\141\143\143\145\163\163", |
|
1370 "\141\143\154", "\75", "\143\157\155\155\165\156\151\164\151\145\163", |
|
1371 "\145\156\164\145\162\160\162\151\163\145", "\150\157\163\164\163", "\173", "\155\141\156\141\147\145\162\163", "\55", |
|
1372 "\175", "\162\145\141\144\55\157\156\154\171", |
|
1373 "\162\145\141\144\55\167\162\151\164\145", "\164\162\141\160", "\151\156\146\157\162\155", |
|
1374 "\164\162\141\160\55\143\157\155\155\165\156\151\164\171", "\151\156\146\157\162\155\55\143\157\155\155\165\156\151\164\171", |
|
1375 "\164\162\141\160\55\156\165\155", null, null, null, null, null, null, null, null, null, null, null, null, "\54", |
|
1376 "\56", "\41", "\57", }; |
|
1377 public static final String[] lexStateNames = { |
|
1378 "DEFAULT", |
|
1379 }; |
|
1380 static final long[] jjtoToken = { |
|
1381 0xf891ffff81L, |
|
1382 }; |
|
1383 static final long[] jjtoSkip = { |
|
1384 0x7eL, |
|
1385 }; |
|
1386 private ASCII_CharStream input_stream; |
|
1387 private final int[] jjrounds = new int[47]; |
|
1388 private final int[] jjstateSet = new int[94]; |
|
1389 protected char curChar; |
|
1390 public ParserTokenManager(ASCII_CharStream stream) |
|
1391 { |
|
1392 if (ASCII_CharStream.staticFlag) |
|
1393 throw new Error("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer."); |
|
1394 input_stream = stream; |
|
1395 } |
|
1396 public ParserTokenManager(ASCII_CharStream stream, int lexState) |
|
1397 { |
|
1398 this(stream); |
|
1399 SwitchTo(lexState); |
|
1400 } |
|
1401 public void ReInit(ASCII_CharStream stream) |
|
1402 { |
|
1403 jjmatchedPos = jjnewStateCnt = 0; |
|
1404 curLexState = defaultLexState; |
|
1405 input_stream = stream; |
|
1406 ReInitRounds(); |
|
1407 } |
|
1408 private final void ReInitRounds() |
|
1409 { |
|
1410 int i; |
|
1411 jjround = 0x80000001; |
|
1412 for (i = 47; i-- > 0;) |
|
1413 jjrounds[i] = 0x80000000; |
|
1414 } |
|
1415 public void ReInit(ASCII_CharStream stream, int lexState) |
|
1416 { |
|
1417 ReInit(stream); |
|
1418 SwitchTo(lexState); |
|
1419 } |
|
1420 public void SwitchTo(int lexState) |
|
1421 { |
|
1422 if (lexState >= 1 || lexState < 0) |
|
1423 throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); |
|
1424 else |
|
1425 curLexState = lexState; |
|
1426 } |
|
1427 |
|
1428 private final Token jjFillToken() |
|
1429 { |
|
1430 Token t = Token.newToken(jjmatchedKind); |
|
1431 t.kind = jjmatchedKind; |
|
1432 String im = jjstrLiteralImages[jjmatchedKind]; |
|
1433 t.image = (im == null) ? input_stream.GetImage() : im; |
|
1434 t.beginLine = input_stream.getBeginLine(); |
|
1435 t.beginColumn = input_stream.getBeginColumn(); |
|
1436 t.endLine = input_stream.getEndLine(); |
|
1437 t.endColumn = input_stream.getEndColumn(); |
|
1438 return t; |
|
1439 } |
|
1440 |
|
1441 int curLexState = 0; |
|
1442 int defaultLexState = 0; |
|
1443 int jjnewStateCnt; |
|
1444 int jjround; |
|
1445 int jjmatchedPos; |
|
1446 int jjmatchedKind; |
|
1447 |
|
1448 public final Token getNextToken() |
|
1449 { |
|
1450 int kind; |
|
1451 Token specialToken = null; |
|
1452 Token matchedToken; |
|
1453 int curPos = 0; |
|
1454 |
|
1455 EOFLoop : |
|
1456 for (;;) |
|
1457 { |
|
1458 try |
|
1459 { |
|
1460 curChar = input_stream.BeginToken(); |
|
1461 } |
|
1462 catch(java.io.IOException e) |
|
1463 { |
|
1464 jjmatchedKind = 0; |
|
1465 matchedToken = jjFillToken(); |
|
1466 return matchedToken; |
|
1467 } |
|
1468 |
|
1469 try { input_stream.backup(0); |
|
1470 while (curChar <= 32 && (0x100002600L & (1L << curChar)) != 0L) |
|
1471 curChar = input_stream.BeginToken(); |
|
1472 } |
|
1473 catch (java.io.IOException e1) { continue EOFLoop; } |
|
1474 jjmatchedKind = 0x7fffffff; |
|
1475 jjmatchedPos = 0; |
|
1476 curPos = jjMoveStringLiteralDfa0_0(); |
|
1477 if (jjmatchedKind != 0x7fffffff) |
|
1478 { |
|
1479 if (jjmatchedPos + 1 < curPos) |
|
1480 input_stream.backup(curPos - jjmatchedPos - 1); |
|
1481 if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) |
|
1482 { |
|
1483 matchedToken = jjFillToken(); |
|
1484 return matchedToken; |
|
1485 } |
|
1486 else |
|
1487 { |
|
1488 continue EOFLoop; |
|
1489 } |
|
1490 } |
|
1491 int error_line = input_stream.getEndLine(); |
|
1492 int error_column = input_stream.getEndColumn(); |
|
1493 String error_after = null; |
|
1494 boolean EOFSeen = false; |
|
1495 try { input_stream.readChar(); input_stream.backup(1); } |
|
1496 catch (java.io.IOException e1) { |
|
1497 EOFSeen = true; |
|
1498 error_after = curPos <= 1 ? "" : input_stream.GetImage(); |
|
1499 if (curChar == '\n' || curChar == '\r') { |
|
1500 error_line++; |
|
1501 error_column = 0; |
|
1502 } |
|
1503 else |
|
1504 error_column++; |
|
1505 } |
|
1506 if (!EOFSeen) { |
|
1507 input_stream.backup(1); |
|
1508 error_after = curPos <= 1 ? "" : input_stream.GetImage(); |
|
1509 } |
|
1510 throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); |
|
1511 } |
|
1512 } |
|
1513 |
|
1514 } |
|