1 /* Generated By:JJTree&JavaCC: Do not edit this line. ModelParserTokenManager.java */
\r
2 package fi.semantum.sysdyn.solver.parser;
\r
3 import java.util.ArrayList;
\r
5 /** Token Manager. */
\r
6 public class ModelParserTokenManager implements ModelParserConstants
\r
10 public java.io.PrintStream debugStream = System.out;
\r
11 /** Set debug output. */
\r
12 public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
\r
13 private final int jjStopStringLiteralDfa_0(int pos, long active0, long active1)
18 if ((active0 & 0x3ffffffffffffff0L) != 0L || (active1 & 0xc0000000L) != 0L)
\r
23 if ((active1 & 0x80000L) != 0L)
\r
25 if ((active1 & 0xb30010L) != 0L)
\r
29 if ((active0 & 0x108420080400000L) != 0L)
\r
31 if ((active0 & 0x3ef7bdff7fbffff0L) != 0L || (active1 & 0xc0000000L) != 0L)
\r
33 if (jjmatchedPos != 1)
\r
42 if ((active0 & 0x400000800201200L) != 0L)
\r
44 if ((active0 & 0x3bfffdf77f9fedf0L) != 0L || (active1 & 0xc0000000L) != 0L)
\r
52 if ((active0 & 0x1000084212118400L) != 0L)
\r
54 if ((active0 & 0x2bfff5b56d8e69f0L) != 0L || (active1 & 0xc0000000L) != 0L)
\r
56 if (jjmatchedPos != 3)
\r
65 if ((active0 & 0x1090004290008c0L) != 0L)
\r
67 if ((active0 & 0x2af6f5b1469e6130L) != 0L || (active1 & 0xc0000000L) != 0L)
\r
75 if ((active0 & 0x22200011009c0000L) != 0L)
\r
77 if ((active0 & 0x8d6f5a046026130L) != 0L || (active1 & 0xc0000000L) != 0L)
\r
85 if ((active0 & 0x80d0a000000000L) != 0L)
\r
87 if ((active0 & 0x856250046026130L) != 0L || (active1 & 0xc0000000L) != 0L)
\r
89 if (jjmatchedPos != 6)
\r
98 if ((active0 & 0x54150040006110L) != 0L)
\r
100 if (jjmatchedPos != 7)
\r
102 jjmatchedKind = 90;
\r
107 if ((active0 & 0x802200006020020L) != 0L || (active1 & 0xc0000000L) != 0L)
\r
111 if ((active0 & 0x10140000000110L) != 0L)
\r
113 if ((active0 & 0x44010040006000L) != 0L)
\r
115 jjmatchedKind = 90;
\r
121 if ((active0 & 0x40010040002000L) != 0L)
\r
123 jjmatchedKind = 90;
\r
127 if ((active0 & 0x4000000004000L) != 0L)
\r
131 if ((active0 & 0x10000002000L) != 0L)
\r
133 if ((active0 & 0x40000040000000L) != 0L)
\r
135 jjmatchedKind = 90;
\r
141 if ((active0 & 0x40000000L) != 0L)
\r
143 if ((active0 & 0x40000000000000L) != 0L)
\r
145 jjmatchedKind = 90;
\r
151 if ((active0 & 0x40000000000000L) != 0L)
\r
158 private final int jjStartNfa_0(int pos, long active0, long active1)
160 return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0, active1), pos + 1);
\r
162 private int jjStopAtPos(int pos, int kind)
\r
164 jjmatchedKind = kind;
\r
165 jjmatchedPos = pos;
\r
168 private int jjMoveStringLiteralDfa0_0()
\r
173 return jjStopAtPos(0, 62);
\r
175 return jjStopAtPos(0, 63);
\r
177 return jjStopAtPos(0, 82);
\r
179 return jjStopAtPos(0, 78);
\r
181 return jjStopAtPos(0, 71);
\r
183 return jjStopAtPos(0, 79);
\r
185 jjmatchedKind = 68;
\r
186 return jjMoveStringLiteralDfa1_0(0x0L, 0xb30000L);
\r
188 return jjStartNfaWithStates_0(0, 83, 13);
\r
190 jjmatchedKind = 69;
\r
191 return jjMoveStringLiteralDfa1_0(0x0L, 0x2000000L);
\r
193 return jjStopAtPos(0, 70);
\r
195 jjmatchedKind = 72;
\r
196 return jjMoveStringLiteralDfa1_0(0x0L, 0x2200L);
\r
198 jjmatchedKind = 88;
\r
199 return jjMoveStringLiteralDfa1_0(0x0L, 0x1000L);
\r
201 jjmatchedKind = 74;
\r
202 return jjMoveStringLiteralDfa1_0(0x0L, 0x800L);
\r
204 return jjStopAtPos(0, 66);
\r
206 return jjStopAtPos(0, 67);
\r
208 return jjStopAtPos(0, 86);
\r
210 return jjMoveStringLiteralDfa1_0(0x84210L, 0x0L);
\r
212 return jjMoveStringLiteralDfa1_0(0x21000000L, 0x0L);
\r
214 return jjMoveStringLiteralDfa1_0(0x42108400000000L, 0x0L);
\r
216 return jjMoveStringLiteralDfa1_0(0x400000000000020L, 0x0L);
\r
218 return jjMoveStringLiteralDfa1_0(0x884210842108400L, 0x0L);
\r
220 return jjMoveStringLiteralDfa1_0(0x4210840L, 0x0L);
\r
222 return jjMoveStringLiteralDfa1_0(0x108421080000000L, 0x0L);
\r
224 return jjMoveStringLiteralDfa1_0(0x1000000000000000L, 0x0L);
\r
226 return jjMoveStringLiteralDfa1_0(0x80L, 0x0L);
\r
228 return jjMoveStringLiteralDfa1_0(0x1000L, 0x0L);
\r
230 return jjMoveStringLiteralDfa1_0(0x108420000L, 0xc0000000L);
\r
232 return jjMoveStringLiteralDfa1_0(0x210842000000000L, 0x0L);
\r
234 return jjMoveStringLiteralDfa1_0(0x2000000000042100L, 0x0L);
\r
236 return jjMoveStringLiteralDfa1_0(0x800000L, 0x0L);
\r
238 return jjMoveStringLiteralDfa1_0(0x4210000000L, 0x0L);
\r
240 return jjMoveStringLiteralDfa1_0(0x21080000000000L, 0x0L);
\r
242 return jjStopAtPos(0, 64);
\r
244 return jjStopAtPos(0, 65);
\r
246 return jjMoveNfa_0(0, 0);
\r
249 private int jjMoveStringLiteralDfa1_0(long active0, long active1)
\r
251 try { curChar = input_stream.readChar(); }
\r
252 catch(java.io.IOException e) {
\r
253 jjStopStringLiteralDfa_0(0, active0, active1);
\r
259 if ((active1 & 0x100000L) != 0L)
\r
260 return jjStopAtPos(1, 84);
\r
263 if ((active1 & 0x10000L) != 0L)
\r
264 return jjStopAtPos(1, 80);
\r
267 if ((active1 & 0x20000L) != 0L)
\r
268 return jjStopAtPos(1, 81);
\r
271 if ((active1 & 0x200000L) != 0L)
\r
272 return jjStopAtPos(1, 85);
\r
275 if ((active1 & 0x200L) != 0L)
\r
276 return jjStopAtPos(1, 73);
\r
277 else if ((active1 & 0x800L) != 0L)
\r
278 return jjStopAtPos(1, 75);
\r
279 else if ((active1 & 0x1000L) != 0L)
\r
280 return jjStopAtPos(1, 76);
\r
281 else if ((active1 & 0x2000000L) != 0L)
\r
282 return jjStopAtPos(1, 89);
\r
285 if ((active1 & 0x2000L) != 0L)
\r
286 return jjStopAtPos(1, 77);
\r
289 if ((active1 & 0x800000L) != 0L)
\r
290 return jjStopAtPos(1, 87);
\r
293 return jjMoveStringLiteralDfa2_0(active0, 0x842000000440L, active1, 0L);
\r
295 return jjMoveStringLiteralDfa2_0(active0, 0x2400000000042100L, active1, 0L);
\r
297 if ((active0 & 0x80000000L) != 0L)
\r
298 return jjStartNfaWithStates_0(1, 31, 2);
\r
301 return jjMoveStringLiteralDfa2_0(active0, 0x1080010000000L, active1, 0L);
\r
303 return jjMoveStringLiteralDfa2_0(active0, 0x20000000000820L, active1, 0L);
\r
305 return jjMoveStringLiteralDfa2_0(active0, 0x403118010L, active1, 0L);
\r
307 return jjMoveStringLiteralDfa2_0(active0, 0x1000000000L, active1, 0L);
\r
309 if ((active0 & 0x20000000000L) != 0L)
\r
311 jjmatchedKind = 41;
\r
314 return jjMoveStringLiteralDfa2_0(active0, 0x108410840004200L, active1, 0L);
\r
316 return jjMoveStringLiteralDfa2_0(active0, 0x1042108000201080L, active1, 0L);
\r
318 return jjMoveStringLiteralDfa2_0(active0, 0x20000L, active1, 0xc0000000L);
\r
320 return jjMoveStringLiteralDfa2_0(active0, 0x200000000000L, active1, 0L);
\r
322 if ((active0 & 0x400000L) != 0L)
\r
323 return jjStartNfaWithStates_0(1, 22, 2);
\r
324 return jjMoveStringLiteralDfa2_0(active0, 0x10000220000000L, active1, 0L);
\r
326 return jjMoveStringLiteralDfa2_0(active0, 0x80000L, active1, 0L);
\r
328 return jjMoveStringLiteralDfa2_0(active0, 0x800000L, active1, 0L);
\r
330 return jjMoveStringLiteralDfa2_0(active0, 0x20000010c000000L, active1, 0L);
\r
332 return jjMoveStringLiteralDfa2_0(active0, 0x884000000000000L, active1, 0L);
\r
334 return jjMoveStringLiteralDfa2_0(active0, 0x4000000000L, active1, 0L);
\r
338 return jjStartNfa_0(0, active0, active1);
\r
340 private int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1)
\r
342 if (((active0 &= old0) | (active1 &= old1)) == 0L)
\r
343 return jjStartNfa_0(0, old0, old1);
\r
344 try { curChar = input_stream.readChar(); }
\r
345 catch(java.io.IOException e) {
\r
346 jjStopStringLiteralDfa_0(1, active0, active1);
\r
352 return jjMoveStringLiteralDfa3_0(active0, 0x400000000L, active1, 0L);
\r
354 return jjMoveStringLiteralDfa3_0(active0, 0x200000000000000L, active1, 0L);
\r
356 return jjMoveStringLiteralDfa3_0(active0, 0x2000002040000400L, active1, 0L);
\r
358 if ((active0 & 0x200L) != 0L)
\r
359 return jjStartNfaWithStates_0(2, 9, 2);
\r
360 else if ((active0 & 0x800000000L) != 0L)
\r
361 return jjStartNfaWithStates_0(2, 35, 2);
\r
362 return jjMoveStringLiteralDfa3_0(active0, 0x180L, active1, 0L);
\r
364 return jjMoveStringLiteralDfa3_0(active0, 0x80030020000L, active1, 0xc0000000L);
\r
366 return jjMoveStringLiteralDfa3_0(active0, 0x10L, active1, 0L);
\r
368 return jjMoveStringLiteralDfa3_0(active0, 0x1400000000000L, active1, 0L);
\r
370 return jjMoveStringLiteralDfa3_0(active0, 0x40L, active1, 0L);
\r
372 return jjMoveStringLiteralDfa3_0(active0, 0x4a108004004800L, active1, 0L);
\r
374 return jjMoveStringLiteralDfa3_0(active0, 0x1010000001010000L, active1, 0L);
\r
376 return jjMoveStringLiteralDfa3_0(active0, 0x104005000002000L, active1, 0L);
\r
378 if ((active0 & 0x200000L) != 0L)
\r
379 return jjStartNfaWithStates_0(2, 21, 2);
\r
380 else if ((active0 & 0x400000000000000L) != 0L)
\r
381 return jjStartNfaWithStates_0(2, 58, 2);
\r
382 return jjMoveStringLiteralDfa3_0(active0, 0x840000800000L, active1, 0L);
\r
384 return jjMoveStringLiteralDfa3_0(active0, 0x2188020L, active1, 0L);
\r
386 if ((active0 & 0x1000L) != 0L)
\r
387 return jjStartNfaWithStates_0(2, 12, 2);
\r
388 return jjMoveStringLiteralDfa3_0(active0, 0x8a0000108040000L, active1, 0L);
\r
390 return jjMoveStringLiteralDfa3_0(active0, 0x210200000000L, active1, 0L);
\r
394 return jjStartNfa_0(1, active0, active1);
\r
396 private int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1)
\r
398 if (((active0 &= old0) | (active1 &= old1)) == 0L)
\r
399 return jjStartNfa_0(1, old0, old1);
\r
400 try { curChar = input_stream.readChar(); }
\r
401 catch(java.io.IOException e) {
\r
402 jjStopStringLiteralDfa_0(2, active0, active1);
\r
408 return jjMoveStringLiteralDfa4_0(active0, 0x4240060000800L, active1, 0L);
\r
410 return jjMoveStringLiteralDfa4_0(active0, 0x5000020L, active1, 0L);
\r
412 if ((active0 & 0x8000L) != 0L)
\r
414 jjmatchedKind = 15;
\r
417 else if ((active0 & 0x200000000L) != 0L)
\r
418 return jjStartNfaWithStates_0(3, 33, 2);
\r
419 else if ((active0 & 0x4000000000L) != 0L)
\r
420 return jjStartNfaWithStates_0(3, 38, 2);
\r
421 return jjMoveStringLiteralDfa4_0(active0, 0x88800000a980180L, active1, 0L);
\r
423 if ((active0 & 0x400L) != 0L)
\r
424 return jjStartNfaWithStates_0(3, 10, 2);
\r
425 return jjMoveStringLiteralDfa4_0(active0, 0x20000000000000L, active1, 0L);
\r
427 return jjMoveStringLiteralDfa4_0(active0, 0x2000000000L, active1, 0L);
\r
429 return jjMoveStringLiteralDfa4_0(active0, 0x201000000002000L, active1, 0L);
\r
431 return jjMoveStringLiteralDfa4_0(active0, 0x10000000000L, active1, 0L);
\r
433 if ((active0 & 0x10000000L) != 0L)
\r
434 return jjStartNfaWithStates_0(3, 28, 2);
\r
435 else if ((active0 & 0x80000000000L) != 0L)
\r
436 return jjStartNfaWithStates_0(3, 43, 2);
\r
437 return jjMoveStringLiteralDfa4_0(active0, 0x108000000000L, active1, 0L);
\r
439 return jjMoveStringLiteralDfa4_0(active0, 0x2000001000004010L, active1, 0L);
\r
441 if ((active0 & 0x1000000000000000L) != 0L)
\r
442 return jjStartNfaWithStates_0(3, 60, 2);
\r
443 return jjMoveStringLiteralDfa4_0(active0, 0x100000000L, active1, 0L);
\r
445 return jjMoveStringLiteralDfa4_0(active0, 0x20000L, active1, 0xc0000000L);
\r
447 return jjMoveStringLiteralDfa4_0(active0, 0x42000400000040L, active1, 0L);
\r
449 return jjMoveStringLiteralDfa4_0(active0, 0x10c00000000000L, active1, 0L);
\r
451 return jjMoveStringLiteralDfa4_0(active0, 0x100000000040000L, active1, 0L);
\r
453 if ((active0 & 0x10000L) != 0L)
\r
454 return jjStartNfaWithStates_0(3, 16, 2);
\r
459 return jjStartNfa_0(2, active0, active1);
\r
461 private int jjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1)
\r
463 if (((active0 &= old0) | (active1 &= old1)) == 0L)
\r
464 return jjStartNfa_0(2, old0, old1);
\r
465 try { curChar = input_stream.readChar(); }
\r
466 catch(java.io.IOException e) {
\r
467 jjStopStringLiteralDfa_0(3, active0, active1);
\r
473 return jjMoveStringLiteralDfa5_0(active0, 0x2000822000L, active1, 0xc0000000L);
\r
475 return jjMoveStringLiteralDfa5_0(active0, 0x100L, active1, 0L);
\r
477 if ((active0 & 0x40L) != 0L)
\r
478 return jjStartNfaWithStates_0(4, 6, 2);
\r
479 else if ((active0 & 0x1000000000000L) != 0L)
\r
480 return jjStartNfaWithStates_0(4, 48, 2);
\r
481 return jjMoveStringLiteralDfa5_0(active0, 0x10118000000000L, active1, 0L);
\r
483 return jjMoveStringLiteralDfa5_0(active0, 0x220c00000100000L, active1, 0L);
\r
485 if ((active0 & 0x1000000L) != 0L)
\r
486 return jjStartNfaWithStates_0(4, 24, 2);
\r
487 else if ((active0 & 0x20000000L) != 0L)
\r
488 return jjStartNfaWithStates_0(4, 29, 2);
\r
491 if ((active0 & 0x80L) != 0L)
\r
492 return jjStartNfaWithStates_0(4, 7, 2);
\r
493 else if ((active0 & 0x800L) != 0L)
\r
494 return jjStartNfaWithStates_0(4, 11, 2);
\r
497 return jjMoveStringLiteralDfa5_0(active0, 0x40000000000L, active1, 0L);
\r
499 return jjMoveStringLiteralDfa5_0(active0, 0x84000000000000L, active1, 0L);
\r
501 return jjMoveStringLiteralDfa5_0(active0, 0x40000000L, active1, 0L);
\r
503 if ((active0 & 0x8000000L) != 0L)
\r
504 return jjStartNfaWithStates_0(4, 27, 2);
\r
505 else if ((active0 & 0x8000000000000L) != 0L)
\r
506 return jjStartNfaWithStates_0(4, 51, 2);
\r
507 return jjMoveStringLiteralDfa5_0(active0, 0x28000010000c0030L, active1, 0L);
\r
509 if ((active0 & 0x400000000L) != 0L)
\r
510 return jjStartNfaWithStates_0(4, 34, 2);
\r
513 if ((active0 & 0x100000000000000L) != 0L)
\r
514 return jjStartNfaWithStates_0(4, 56, 2);
\r
515 return jjMoveStringLiteralDfa5_0(active0, 0x42200004004000L, active1, 0L);
\r
517 return jjMoveStringLiteralDfa5_0(active0, 0x100000000L, active1, 0L);
\r
519 return jjMoveStringLiteralDfa5_0(active0, 0x2000000L, active1, 0L);
\r
523 return jjStartNfa_0(3, active0, active1);
\r
525 private int jjMoveStringLiteralDfa5_0(long old0, long active0, long old1, long active1)
\r
527 if (((active0 &= old0) | (active1 &= old1)) == 0L)
\r
528 return jjStartNfa_0(3, old0, old1);
\r
529 try { curChar = input_stream.readChar(); }
\r
530 catch(java.io.IOException e) {
\r
531 jjStopStringLiteralDfa_0(4, active0, active1);
\r
537 return jjMoveStringLiteralDfa6_0(active0, 0x2c00000004000L, active1, 0L);
\r
539 if ((active0 & 0x200000000000000L) != 0L)
\r
540 return jjStartNfaWithStates_0(5, 57, 2);
\r
541 return jjMoveStringLiteralDfa6_0(active0, 0x10108000002000L, active1, 0L);
\r
543 if ((active0 & 0x2000000000000000L) != 0L)
\r
544 return jjStartNfaWithStates_0(5, 61, 2);
\r
545 return jjMoveStringLiteralDfa6_0(active0, 0x84000000000000L, active1, 0L);
\r
547 return jjMoveStringLiteralDfa6_0(active0, 0x40000000020L, active1, 0L);
\r
549 if ((active0 & 0x100000L) != 0L)
\r
550 return jjStartNfaWithStates_0(5, 20, 2);
\r
553 return jjMoveStringLiteralDfa6_0(active0, 0x2000000000L, active1, 0L);
\r
555 return jjMoveStringLiteralDfa6_0(active0, 0x2000000L, active1, 0L);
\r
557 return jjMoveStringLiteralDfa6_0(active0, 0x200004000010L, active1, 0L);
\r
559 return jjMoveStringLiteralDfa6_0(active0, 0x100L, active1, 0L);
\r
561 if ((active0 & 0x800000L) != 0L)
\r
562 return jjStartNfaWithStates_0(5, 23, 2);
\r
565 if ((active0 & 0x40000L) != 0L)
\r
566 return jjStartNfaWithStates_0(5, 18, 2);
\r
567 else if ((active0 & 0x20000000000000L) != 0L)
\r
568 return jjStartNfaWithStates_0(5, 53, 2);
\r
569 return jjMoveStringLiteralDfa6_0(active0, 0x800000000000000L, active1, 0L);
\r
571 return jjMoveStringLiteralDfa6_0(active0, 0x40010000000000L, active1, 0L);
\r
573 return jjMoveStringLiteralDfa6_0(active0, 0x40000000L, active1, 0L);
\r
575 if ((active0 & 0x80000L) != 0L)
\r
576 return jjStartNfaWithStates_0(5, 19, 2);
\r
577 else if ((active0 & 0x100000000L) != 0L)
\r
578 return jjStartNfaWithStates_0(5, 32, 2);
\r
579 else if ((active0 & 0x1000000000L) != 0L)
\r
580 return jjStartNfaWithStates_0(5, 36, 2);
\r
581 return jjMoveStringLiteralDfa6_0(active0, 0x20000L, active1, 0xc0000000L);
\r
585 return jjStartNfa_0(4, active0, active1);
\r
587 private int jjMoveStringLiteralDfa6_0(long old0, long active0, long old1, long active1)
\r
589 if (((active0 &= old0) | (active1 &= old1)) == 0L)
\r
590 return jjStartNfa_0(4, old0, old1);
\r
591 try { curChar = input_stream.readChar(); }
\r
592 catch(java.io.IOException e) {
\r
593 jjStopStringLiteralDfa_0(5, active0, active1);
\r
599 return jjMoveStringLiteralDfa7_0(active0, 0x844010000000100L, active1, 0L);
\r
601 if ((active0 & 0x2000000000L) != 0L)
\r
602 return jjStartNfaWithStates_0(6, 37, 2);
\r
603 return jjMoveStringLiteralDfa7_0(active0, 0x2002000L, active1, 0L);
\r
605 if ((active0 & 0x400000000000L) != 0L)
\r
606 return jjStartNfaWithStates_0(6, 46, 2);
\r
607 else if ((active0 & 0x800000000000L) != 0L)
\r
608 return jjStartNfaWithStates_0(6, 47, 2);
\r
611 return jjMoveStringLiteralDfa7_0(active0, 0x2000000000000L, active1, 0L);
\r
613 return jjMoveStringLiteralDfa7_0(active0, 0x200004020000L, active1, 0xc0000000L);
\r
615 if ((active0 & 0x80000000000000L) != 0L)
\r
616 return jjStartNfaWithStates_0(6, 55, 2);
\r
619 if ((active0 & 0x8000000000L) != 0L)
\r
621 jjmatchedKind = 39;
\r
624 return jjMoveStringLiteralDfa7_0(active0, 0x10140000004030L, active1, 0L);
\r
626 return jjMoveStringLiteralDfa7_0(active0, 0x40000000L, active1, 0L);
\r
630 return jjStartNfa_0(5, active0, active1);
\r
632 private int jjMoveStringLiteralDfa7_0(long old0, long active0, long old1, long active1)
\r
634 if (((active0 &= old0) | (active1 &= old1)) == 0L)
\r
635 return jjStartNfa_0(5, old0, old1);
\r
636 try { curChar = input_stream.readChar(); }
\r
637 catch(java.io.IOException e) {
\r
638 jjStopStringLiteralDfa_0(6, active0, active1);
\r
644 return jjMoveStringLiteralDfa8_0(active0, 0x2000L, active1, 0L);
\r
646 return jjMoveStringLiteralDfa8_0(active0, 0x4000000000000L, active1, 0L);
\r
648 if ((active0 & 0x20L) != 0L)
\r
649 return jjStartNfaWithStates_0(7, 5, 2);
\r
650 return jjMoveStringLiteralDfa8_0(active0, 0x10040000000000L, active1, 0L);
\r
652 return jjMoveStringLiteralDfa8_0(active0, 0x10L, active1, 0L);
\r
654 return jjMoveStringLiteralDfa8_0(active0, 0x40000000004000L, active1, 0L);
\r
656 if ((active0 & 0x800000000000000L) != 0L)
\r
657 return jjStartNfaWithStates_0(7, 59, 2);
\r
658 return jjMoveStringLiteralDfa8_0(active0, 0x40000000L, active1, 0L);
\r
660 if ((active0 & 0x2000000L) != 0L)
\r
661 return jjStartNfaWithStates_0(7, 25, 2);
\r
662 else if ((active0 & 0x4000000L) != 0L)
\r
663 return jjStartNfaWithStates_0(7, 26, 2);
\r
664 else if ((active0 & 0x200000000000L) != 0L)
\r
665 return jjStartNfaWithStates_0(7, 45, 2);
\r
668 return jjMoveStringLiteralDfa8_0(active0, 0x100000000000L, active1, 0L);
\r
670 if ((active0 & 0x20000L) != 0L)
\r
672 jjmatchedKind = 17;
\r
675 return jjMoveStringLiteralDfa8_0(active0, 0x100L, active1, 0xc0000000L);
\r
677 if ((active0 & 0x2000000000000L) != 0L)
\r
678 return jjStartNfaWithStates_0(7, 49, 2);
\r
679 return jjMoveStringLiteralDfa8_0(active0, 0x10000000000L, active1, 0L);
\r
683 return jjStartNfa_0(6, active0, active1);
\r
685 private int jjMoveStringLiteralDfa8_0(long old0, long active0, long old1, long active1)
\r
687 if (((active0 &= old0) | (active1 &= old1)) == 0L)
\r
688 return jjStartNfa_0(6, old0, old1);
\r
689 try { curChar = input_stream.readChar(); }
\r
690 catch(java.io.IOException e) {
\r
691 jjStopStringLiteralDfa_0(7, active0, active1);
\r
697 return jjMoveStringLiteralDfa9_0(active0, 0L, active1, 0xc0000000L);
\r
699 return jjMoveStringLiteralDfa9_0(active0, 0x40000000L, active1, 0L);
\r
701 return jjMoveStringLiteralDfa9_0(active0, 0x2000L, active1, 0L);
\r
703 if ((active0 & 0x10000000000000L) != 0L)
\r
704 return jjStartNfaWithStates_0(8, 52, 2);
\r
707 if ((active0 & 0x100L) != 0L)
\r
708 return jjStartNfaWithStates_0(8, 8, 2);
\r
711 return jjMoveStringLiteralDfa9_0(active0, 0x10000000000L, active1, 0L);
\r
713 return jjMoveStringLiteralDfa9_0(active0, 0x4000000000000L, active1, 0L);
\r
715 if ((active0 & 0x10L) != 0L)
\r
716 return jjStartNfaWithStates_0(8, 4, 2);
\r
719 return jjMoveStringLiteralDfa9_0(active0, 0x40000000000000L, active1, 0L);
\r
721 return jjMoveStringLiteralDfa9_0(active0, 0x4000L, active1, 0L);
\r
723 if ((active0 & 0x40000000000L) != 0L)
\r
724 return jjStartNfaWithStates_0(8, 42, 2);
\r
725 else if ((active0 & 0x100000000000L) != 0L)
\r
726 return jjStartNfaWithStates_0(8, 44, 2);
\r
731 return jjStartNfa_0(7, active0, active1);
\r
733 private int jjMoveStringLiteralDfa9_0(long old0, long active0, long old1, long active1)
\r
735 if (((active0 &= old0) | (active1 &= old1)) == 0L)
\r
736 return jjStartNfa_0(7, old0, old1);
\r
737 try { curChar = input_stream.readChar(); }
\r
738 catch(java.io.IOException e) {
\r
739 jjStopStringLiteralDfa_0(8, active0, active1);
\r
745 if ((active0 & 0x4000000000000L) != 0L)
\r
746 return jjStartNfaWithStates_0(9, 50, 2);
\r
747 return jjMoveStringLiteralDfa10_0(active0, 0x40000000000000L, active1, 0L);
\r
749 return jjMoveStringLiteralDfa10_0(active0, 0L, active1, 0x40000000L);
\r
751 return jjMoveStringLiteralDfa10_0(active0, 0x2000L, active1, 0L);
\r
753 if ((active0 & 0x4000L) != 0L)
\r
754 return jjStartNfaWithStates_0(9, 14, 2);
\r
757 return jjMoveStringLiteralDfa10_0(active0, 0x10000000000L, active1, 0L);
\r
759 return jjMoveStringLiteralDfa10_0(active0, 0L, active1, 0x80000000L);
\r
761 return jjMoveStringLiteralDfa10_0(active0, 0x40000000L, active1, 0L);
\r
765 return jjStartNfa_0(8, active0, active1);
\r
767 private int jjMoveStringLiteralDfa10_0(long old0, long active0, long old1, long active1)
\r
769 if (((active0 &= old0) | (active1 &= old1)) == 0L)
\r
770 return jjStartNfa_0(8, old0, old1);
\r
771 try { curChar = input_stream.readChar(); }
\r
772 catch(java.io.IOException e) {
\r
773 jjStopStringLiteralDfa_0(9, active0, active1);
\r
779 return jjMoveStringLiteralDfa11_0(active0, 0x40000000000000L, active1, 0L);
\r
781 if ((active0 & 0x2000L) != 0L)
\r
782 return jjStartNfaWithStates_0(10, 13, 2);
\r
783 return jjMoveStringLiteralDfa11_0(active0, 0x40000000L, active1, 0x80000000L);
\r
785 if ((active0 & 0x10000000000L) != 0L)
\r
786 return jjStartNfaWithStates_0(10, 40, 2);
\r
789 return jjMoveStringLiteralDfa11_0(active0, 0L, active1, 0x40000000L);
\r
793 return jjStartNfa_0(9, active0, active1);
\r
795 private int jjMoveStringLiteralDfa11_0(long old0, long active0, long old1, long active1)
\r
797 if (((active0 &= old0) | (active1 &= old1)) == 0L)
\r
798 return jjStartNfa_0(9, old0, old1);
\r
799 try { curChar = input_stream.readChar(); }
\r
800 catch(java.io.IOException e) {
\r
801 jjStopStringLiteralDfa_0(10, active0, active1);
\r
807 return jjMoveStringLiteralDfa12_0(active0, 0x40000000000000L, active1, 0L);
\r
809 return jjMoveStringLiteralDfa12_0(active0, 0L, active1, 0x80000000L);
\r
811 if ((active0 & 0x40000000L) != 0L)
\r
812 return jjStartNfaWithStates_0(11, 30, 2);
\r
815 return jjMoveStringLiteralDfa12_0(active0, 0L, active1, 0x40000000L);
\r
819 return jjStartNfa_0(10, active0, active1);
\r
821 private int jjMoveStringLiteralDfa12_0(long old0, long active0, long old1, long active1)
\r
823 if (((active0 &= old0) | (active1 &= old1)) == 0L)
\r
824 return jjStartNfa_0(10, old0, old1);
\r
825 try { curChar = input_stream.readChar(); }
\r
826 catch(java.io.IOException e) {
\r
827 jjStopStringLiteralDfa_0(11, active0, active1);
\r
833 return jjMoveStringLiteralDfa13_0(active0, 0L, active1, 0x40000000L);
\r
835 return jjMoveStringLiteralDfa13_0(active0, 0L, active1, 0x80000000L);
\r
837 if ((active0 & 0x40000000000000L) != 0L)
\r
838 return jjStartNfaWithStates_0(12, 54, 2);
\r
843 return jjStartNfa_0(11, active0, active1);
\r
845 private int jjMoveStringLiteralDfa13_0(long old0, long active0, long old1, long active1)
\r
847 if (((active0 &= old0) | (active1 &= old1)) == 0L)
\r
848 return jjStartNfa_0(11, old0, old1);
\r
849 try { curChar = input_stream.readChar(); }
\r
850 catch(java.io.IOException e) {
\r
851 jjStopStringLiteralDfa_0(12, 0L, active1);
\r
857 return jjMoveStringLiteralDfa14_0(active1, 0x80000000L);
\r
859 return jjMoveStringLiteralDfa14_0(active1, 0x40000000L);
\r
863 return jjStartNfa_0(12, 0L, active1);
\r
865 private int jjMoveStringLiteralDfa14_0(long old1, long active1)
\r
867 if (((active1 &= old1)) == 0L)
\r
868 return jjStartNfa_0(12, 0L, old1);
\r
869 try { curChar = input_stream.readChar(); }
\r
870 catch(java.io.IOException e) {
\r
871 jjStopStringLiteralDfa_0(13, 0L, active1);
\r
877 if ((active1 & 0x80000000L) != 0L)
\r
878 return jjStopAtPos(14, 95);
\r
881 return jjMoveStringLiteralDfa15_0(active1, 0x40000000L);
\r
885 return jjStartNfa_0(13, 0L, active1);
\r
887 private int jjMoveStringLiteralDfa15_0(long old1, long active1)
\r
889 if (((active1 &= old1)) == 0L)
\r
890 return jjStartNfa_0(13, 0L, old1);
\r
891 try { curChar = input_stream.readChar(); }
\r
892 catch(java.io.IOException e) {
\r
893 jjStopStringLiteralDfa_0(14, 0L, active1);
\r
899 return jjMoveStringLiteralDfa16_0(active1, 0x40000000L);
\r
903 return jjStartNfa_0(14, 0L, active1);
\r
905 private int jjMoveStringLiteralDfa16_0(long old1, long active1)
\r
907 if (((active1 &= old1)) == 0L)
\r
908 return jjStartNfa_0(14, 0L, old1);
\r
909 try { curChar = input_stream.readChar(); }
\r
910 catch(java.io.IOException e) {
\r
911 jjStopStringLiteralDfa_0(15, 0L, active1);
\r
917 if ((active1 & 0x40000000L) != 0L)
\r
918 return jjStopAtPos(16, 94);
\r
923 return jjStartNfa_0(15, 0L, active1);
\r
925 private int jjStartNfaWithStates_0(int pos, int kind, int state)
\r
927 jjmatchedKind = kind;
\r
928 jjmatchedPos = pos;
\r
929 try { curChar = input_stream.readChar(); }
\r
930 catch(java.io.IOException e) { return pos + 1; }
\r
931 return jjMoveNfa_0(state, pos + 1);
\r
933 static final long[] jjbitVec0 = {
934 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
936 private int jjMoveNfa_0(int startState, int curPos)
\r
939 jjnewStateCnt = 31;
\r
941 jjstateSet[0] = startState;
\r
942 int kind = 0x7fffffff;
\r
945 if (++jjround == 0x7fffffff)
\r
949 long l = 1L << curChar;
\r
952 switch(jjstateSet[--i])
\r
961 else if (curChar == 42)
\r
962 jjCheckNAddStates(0, 2);
\r
965 if ((0x3ff000000000000L & l) != 0L)
\r
969 jjCheckNAddStates(3, 7);
\r
971 else if ((0x100002600L & l) != 0L)
\r
976 else if (curChar == 47)
\r
978 else if (curChar == 46)
\r
980 else if (curChar == 34)
\r
981 jjCheckNAddStates(10, 12);
\r
984 if ((0x3ff400000000000L & l) == 0L)
\r
988 jjstateSet[jjnewStateCnt++] = 2;
\r
992 jjCheckNAddStates(10, 12);
\r
995 if ((0xfffffffbfffffbffL & l) != 0L)
\r
996 jjCheckNAddStates(10, 12);
\r
999 if ((0xfffffffffffffbffL & l) != 0L)
\r
1000 jjCheckNAddStates(10, 12);
\r
1003 if (curChar == 34 && kind > 91)
\r
1007 if (curChar == 46)
\r
1011 if ((0x3ff000000000000L & l) == 0L)
\r
1015 jjCheckNAddTwoStates(9, 10);
\r
1018 if ((0x3ff000000000000L & l) == 0L)
\r
1022 jjstateSet[jjnewStateCnt++] = 11;
\r
1025 if (curChar == 47)
\r
1026 jjAddStates(8, 9);
\r
1029 if ((0xfffffbffffffffffL & l) != 0L)
\r
1030 jjCheckNAddStates(0, 2);
\r
1033 if (curChar == 42)
\r
1034 jjstateSet[jjnewStateCnt++] = 16;
\r
1037 if ((0xffff7fffffffffffL & l) != 0L)
\r
1038 jjCheckNAddStates(0, 2);
\r
1041 if (curChar == 47 && kind > 2)
\r
1045 if (curChar == 42)
\r
1046 jjstateSet[jjnewStateCnt++] = 17;
\r
1049 if (curChar != 47)
\r
1056 if ((0xfffffffffffffbffL & l) == 0L)
\r
1063 if ((0x3ff000000000000L & l) == 0L)
\r
1067 jjCheckNAddStates(3, 7);
\r
1070 if ((0x3ff000000000000L & l) == 0L)
\r
1077 if ((0x3ff000000000000L & l) != 0L)
\r
1078 jjCheckNAddTwoStates(23, 24);
\r
1081 if (curChar != 46)
\r
1085 jjCheckNAddTwoStates(25, 26);
\r
1088 if ((0x3ff000000000000L & l) == 0L)
\r
1092 jjCheckNAddTwoStates(25, 26);
\r
1095 if ((0x3ff000000000000L & l) == 0L)
\r
1099 jjstateSet[jjnewStateCnt++] = 27;
\r
1102 if ((0x3ff000000000000L & l) != 0L)
\r
1103 jjCheckNAddTwoStates(28, 29);
\r
1106 if ((0x3ff000000000000L & l) == 0L)
\r
1110 jjstateSet[jjnewStateCnt++] = 30;
\r
1114 } while(i != startsAt);
\r
1116 else if (curChar < 128)
\r
1118 long l = 1L << (curChar & 077);
\r
1121 switch(jjstateSet[--i])
\r
1125 if ((0x7fffffe87fffffeL & l) == 0L)
\r
1132 if ((0xffffffffefffffffL & l) != 0L)
\r
1133 jjCheckNAddStates(10, 12);
\r
1136 if (curChar == 92)
\r
1137 jjstateSet[jjnewStateCnt++] = 6;
\r
1140 jjCheckNAddStates(10, 12);
\r
1143 if ((0x2000000020L & l) != 0L)
\r
1144 jjstateSet[jjnewStateCnt++] = 11;
\r
1148 jjCheckNAddStates(0, 2);
\r
1153 jjstateSet[jjnewStateCnt++] = 20;
\r
1156 if ((0x2000000020L & l) != 0L)
\r
1157 jjstateSet[jjnewStateCnt++] = 27;
\r
1160 if ((0x2000000020L & l) != 0L)
\r
1161 jjstateSet[jjnewStateCnt++] = 30;
\r
1165 } while(i != startsAt);
\r
1169 int i2 = (curChar & 0xff) >> 6;
\r
1170 long l2 = 1L << (curChar & 077);
\r
1173 switch(jjstateSet[--i])
\r
1177 if ((jjbitVec0[i2] & l2) != 0L)
\r
1178 jjCheckNAddStates(10, 12);
\r
1182 if ((jjbitVec0[i2] & l2) != 0L)
\r
1183 jjCheckNAddStates(0, 2);
\r
1186 if ((jjbitVec0[i2] & l2) == 0L)
\r
1190 jjstateSet[jjnewStateCnt++] = 20;
\r
1194 } while(i != startsAt);
\r
1196 if (kind != 0x7fffffff)
\r
1198 jjmatchedKind = kind;
\r
1199 jjmatchedPos = curPos;
\r
1200 kind = 0x7fffffff;
\r
1203 if ((i = jjnewStateCnt) == (startsAt = 31 - (jjnewStateCnt = startsAt)))
\r
1205 try { curChar = input_stream.readChar(); }
\r
1206 catch(java.io.IOException e) { return curPos; }
\r
1209 static final int[] jjnextStates = {
1210 14, 15, 18, 22, 23, 24, 28, 29, 13, 19, 4, 5, 7,
1213 /** Token literal values. */
\r
1214 public static final String[] jjstrLiteralImages = {
\r
1215 "", null, null, null, "\141\154\147\157\162\151\164\150\155",
\r
1216 "\144\151\163\143\162\145\164\145", "\146\141\154\163\145", "\155\157\144\145\154",
\r
1217 "\162\145\144\145\143\154\141\162\145", "\141\156\144", "\145\141\143\150", "\146\151\156\141\154", "\156\157\164",
\r
1218 "\162\145\160\154\141\143\145\141\142\154\145", "\141\156\156\157\164\141\164\151\157\156", "\145\154\163\145",
\r
1219 "\146\154\157\167", "\157\160\145\162\141\164\157\162", "\162\145\164\165\162\156",
\r
1220 "\141\163\163\145\162\164", "\145\154\163\145\151\146", "\146\157\162", "\157\162",
\r
1221 "\163\164\162\145\141\155", "\142\154\157\143\153", "\145\154\163\145\167\150\145\156",
\r
1222 "\146\165\156\143\164\151\157\156", "\157\165\164\145\162", "\164\150\145\156", "\142\162\145\141\153",
\r
1223 "\145\156\143\141\160\163\165\154\141\164\145\144", "\151\146", "\157\165\164\160\165\164", "\164\162\165\145",
\r
1224 "\143\154\141\163\163", "\145\156\144", "\151\155\160\157\162\164", "\160\141\143\153\141\147\145",
\r
1225 "\164\171\160\145", "\143\157\156\156\145\143\164",
\r
1226 "\145\156\165\155\145\162\141\164\151\157\156", "\151\156", "\160\141\162\141\155\145\164\145\162", "\167\150\145\156",
\r
1227 "\143\157\156\156\145\143\164\157\162", "\145\161\165\141\164\151\157\156", "\151\156\151\164\151\141\154",
\r
1228 "\160\141\162\164\151\141\154", "\167\150\151\154\145", "\143\157\156\163\164\141\156\164",
\r
1229 "\145\170\160\141\156\144\141\142\154\145", "\151\156\156\145\162", "\160\162\157\164\145\143\164\145\144",
\r
1230 "\167\151\164\150\151\156", "\143\157\156\163\164\162\141\151\156\145\144\142\171",
\r
1231 "\145\170\164\145\156\144\163", "\151\156\160\165\164", "\160\165\142\154\151\143", "\144\145\162",
\r
1232 "\145\170\164\145\162\156\141\154", "\154\157\157\160", "\162\145\143\157\162\144", "\50", "\51", "\173", "\175",
\r
1233 "\133", "\135", "\56", "\72", "\73", "\54", "\74", "\74\75", "\76", "\76\75",
\r
1234 "\75\75", "\74\76", "\53", "\55", "\56\53", "\56\55", "\52", "\57", "\56\52", "\56\57",
\r
1235 "\136", "\56\136", "\75", "\72\75", null, null, null, null,
\r
1236 "\157\160\145\162\141\164\157\162\40\146\165\156\143\164\151\157\156", "\157\160\145\162\141\164\157\162\40\162\145\143\157\162\144", };
\r
1238 /** Lexer state names. */
\r
1239 public static final String[] lexStateNames = {
\r
1242 static final long[] jjtoToken = {
1243 0xfffffffffffffff1L, 0xffffffffL,
1245 static final long[] jjtoSkip = {
1248 protected SimpleCharStream input_stream;
\r
1249 private final int[] jjrounds = new int[31];
\r
1250 private final int[] jjstateSet = new int[62];
\r
1251 private final StringBuilder jjimage = new StringBuilder();
\r
1252 private StringBuilder image = jjimage;
\r
1253 private int jjimageLen;
\r
1254 private int lengthOfMatch;
\r
1255 protected char curChar;
\r
1256 /** Constructor. */
\r
1257 public ModelParserTokenManager(SimpleCharStream stream){
\r
1258 if (SimpleCharStream.staticFlag)
\r
1259 throw new Error("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer.");
\r
1260 input_stream = stream;
\r
1263 /** Constructor. */
\r
1264 public ModelParserTokenManager(SimpleCharStream stream, int lexState){
\r
1266 SwitchTo(lexState);
\r
1269 /** Reinitialise parser. */
\r
1270 public void ReInit(SimpleCharStream stream)
\r
1272 jjmatchedPos = jjnewStateCnt = 0;
\r
1273 curLexState = defaultLexState;
\r
1274 input_stream = stream;
\r
1277 private void ReInitRounds()
\r
1280 jjround = 0x80000001;
\r
1281 for (i = 31; i-- > 0;)
\r
1282 jjrounds[i] = 0x80000000;
\r
1285 /** Reinitialise parser. */
\r
1286 public void ReInit(SimpleCharStream stream, int lexState)
\r
1289 SwitchTo(lexState);
\r
1292 /** Switch to specified lex state. */
\r
1293 public void SwitchTo(int lexState)
\r
1295 if (lexState >= 1 || lexState < 0)
\r
1296 throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
\r
1298 curLexState = lexState;
\r
1301 protected Token jjFillToken()
\r
1304 final String curTokenImage;
\r
1305 final int beginLine;
\r
1306 final int endLine;
\r
1307 final int beginColumn;
\r
1308 final int endColumn;
\r
1309 String im = jjstrLiteralImages[jjmatchedKind];
\r
1310 curTokenImage = (im == null) ? input_stream.GetImage() : im;
\r
1311 beginLine = input_stream.getBeginLine();
\r
1312 beginColumn = input_stream.getBeginColumn();
\r
1313 endLine = input_stream.getEndLine();
\r
1314 endColumn = input_stream.getEndColumn();
\r
1315 t = Token.newToken(jjmatchedKind, curTokenImage);
\r
1317 t.beginLine = beginLine;
\r
1318 t.endLine = endLine;
\r
1319 t.beginColumn = beginColumn;
\r
1320 t.endColumn = endColumn;
\r
1325 int curLexState = 0;
\r
1326 int defaultLexState = 0;
\r
1327 int jjnewStateCnt;
\r
1330 int jjmatchedKind;
\r
1332 /** Get the next Token. */
\r
1333 public Token getNextToken()
\r
1335 Token matchedToken;
\r
1343 curChar = input_stream.BeginToken();
\r
1345 catch(java.io.IOException e)
\r
1347 jjmatchedKind = 0;
\r
1348 matchedToken = jjFillToken();
\r
1349 return matchedToken;
\r
1352 image.setLength(0);
\r
1355 jjmatchedKind = 0x7fffffff;
\r
1357 curPos = jjMoveStringLiteralDfa0_0();
\r
1358 if (jjmatchedKind != 0x7fffffff)
\r
1360 if (jjmatchedPos + 1 < curPos)
\r
1361 input_stream.backup(curPos - jjmatchedPos - 1);
\r
1362 if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
\r
1364 matchedToken = jjFillToken();
\r
1365 TokenLexicalActions(matchedToken);
\r
1366 return matchedToken;
\r
1373 int error_line = input_stream.getEndLine();
\r
1374 int error_column = input_stream.getEndColumn();
\r
1375 String error_after = null;
\r
1376 boolean EOFSeen = false;
\r
1377 try { input_stream.readChar(); input_stream.backup(1); }
\r
1378 catch (java.io.IOException e1) {
\r
1380 error_after = curPos <= 1 ? "" : input_stream.GetImage();
\r
1381 if (curChar == '\n' || curChar == '\r') {
\r
1389 input_stream.backup(1);
\r
1390 error_after = curPos <= 1 ? "" : input_stream.GetImage();
\r
1392 throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
\r
1396 void TokenLexicalActions(Token matchedToken)
\r
1398 switch(jjmatchedKind)
\r
1401 image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));
\r
1402 matchedToken.image = matchedToken.image.substring(1,matchedToken.image.length()-1);
\r
1408 private void jjCheckNAdd(int state)
\r
1410 if (jjrounds[state] != jjround)
\r
1412 jjstateSet[jjnewStateCnt++] = state;
\r
1413 jjrounds[state] = jjround;
\r
1416 private void jjAddStates(int start, int end)
\r
1419 jjstateSet[jjnewStateCnt++] = jjnextStates[start];
\r
1420 } while (start++ != end);
\r
1422 private void jjCheckNAddTwoStates(int state1, int state2)
\r
1424 jjCheckNAdd(state1);
\r
1425 jjCheckNAdd(state2);
\r
1428 private void jjCheckNAddStates(int start, int end)
\r
1431 jjCheckNAdd(jjnextStates[start]);
\r
1432 } while (start++ != end);
\r