1 /* Generated By:JavaCC: Do not edit this line. PHPParserTokenManager.java */
3 import org.eclipse.core.resources.IFile;
4 import org.eclipse.core.resources.IMarker;
5 import org.eclipse.core.runtime.CoreException;
6 import org.eclipse.ui.texteditor.MarkerUtilities;
7 import org.eclipse.jface.preference.IPreferenceStore;
8 import java.util.Hashtable;
9 import java.io.StringReader;
10 import java.text.MessageFormat;
11 import net.sourceforge.phpeclipse.actions.PHPStartApacheAction;
12 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
13 import net.sourceforge.phpdt.internal.compiler.parser.PHPOutlineInfo;
14 import net.sourceforge.phpdt.internal.compiler.parser.PHPSegmentWithChildren;
15 import net.sourceforge.phpdt.internal.compiler.parser.PHPFunctionDeclaration;
16 import net.sourceforge.phpdt.internal.compiler.parser.PHPClassDeclaration;
17 import net.sourceforge.phpdt.internal.compiler.parser.PHPVarDeclaration;
18 import net.sourceforge.phpdt.internal.compiler.parser.PHPReqIncDeclaration;
20 public class PHPParserTokenManager implements PHPParserConstants
22 public static java.io.PrintStream debugStream = System.out;
23 public static void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
24 static private final int jjStopAtPos(int pos, int kind)
30 static private final int jjMoveStringLiteralDfa0_0()
35 return jjMoveStringLiteralDfa1_0(0xeL, 0x0L);
37 return jjMoveStringLiteralDfa1_0(0x0L, 0x800L);
42 static private final int jjMoveStringLiteralDfa1_0(long active0, long active2)
44 try { curChar = input_stream.readChar(); }
45 catch(java.io.IOException e) {
51 if ((active2 & 0x800L) != 0L)
52 return jjStopAtPos(1, 139);
55 if ((active0 & 0x2L) != 0L)
60 return jjMoveStringLiteralDfa2_0(active0, 0xcL, active2, 0L);
66 static private final int jjMoveStringLiteralDfa2_0(long old0, long active0, long old2, long active2)
68 if (((active0 &= old0) | (active2 &= old2)) == 0L)
70 try { curChar = input_stream.readChar(); }
71 catch(java.io.IOException e) {
77 if ((active0 & 0x8L) != 0L)
78 return jjStopAtPos(2, 3);
82 return jjMoveStringLiteralDfa3_0(active0, 0x4L);
88 static private final int jjMoveStringLiteralDfa3_0(long old0, long active0)
90 if (((active0 &= old0)) == 0L)
92 try { curChar = input_stream.readChar(); }
93 catch(java.io.IOException e) {
100 return jjMoveStringLiteralDfa4_0(active0, 0x4L);
105 static private final int jjMoveStringLiteralDfa4_0(long old0, long active0)
107 if (((active0 &= old0)) == 0L)
109 try { curChar = input_stream.readChar(); }
110 catch(java.io.IOException e) {
117 if ((active0 & 0x4L) != 0L)
118 return jjStopAtPos(4, 2);
125 static private final int jjMoveStringLiteralDfa0_4()
130 return jjMoveStringLiteralDfa1_4(0x40000L);
135 static private final int jjMoveStringLiteralDfa1_4(long active0)
137 try { curChar = input_stream.readChar(); }
138 catch(java.io.IOException e) {
144 if ((active0 & 0x40000L) != 0L)
145 return jjStopAtPos(1, 18);
152 private static final int jjStopStringLiteralDfa_2(int pos, long active0)
160 private static final int jjStartNfa_2(int pos, long active0)
162 return jjMoveNfa_2(jjStopStringLiteralDfa_2(pos, active0), pos + 1);
164 static private final int jjStartNfaWithStates_2(int pos, int kind, int state)
166 jjmatchedKind = kind;
168 try { curChar = input_stream.readChar(); }
169 catch(java.io.IOException e) { return pos + 1; }
170 return jjMoveNfa_2(state, pos + 1);
172 static private final int jjMoveStringLiteralDfa0_2()
177 return jjMoveStringLiteralDfa1_2(0x10000L);
179 return jjMoveNfa_2(0, 0);
182 static private final int jjMoveStringLiteralDfa1_2(long active0)
184 try { curChar = input_stream.readChar(); }
185 catch(java.io.IOException e) {
186 jjStopStringLiteralDfa_2(0, active0);
192 if ((active0 & 0x10000L) != 0L)
193 return jjStopAtPos(1, 16);
198 return jjStartNfa_2(0, active0);
200 static private final void jjCheckNAdd(int state)
202 if (jjrounds[state] != jjround)
204 jjstateSet[jjnewStateCnt++] = state;
205 jjrounds[state] = jjround;
208 static private final void jjAddStates(int start, int end)
211 jjstateSet[jjnewStateCnt++] = jjnextStates[start];
212 } while (start++ != end);
214 static private final void jjCheckNAddTwoStates(int state1, int state2)
219 static private final void jjCheckNAddStates(int start, int end)
222 jjCheckNAdd(jjnextStates[start]);
223 } while (start++ != end);
225 static private final void jjCheckNAddStates(int start)
227 jjCheckNAdd(jjnextStates[start]);
228 jjCheckNAdd(jjnextStates[start + 1]);
230 static private final int jjMoveNfa_2(int startState, int curPos)
236 jjstateSet[0] = startState;
237 int j, kind = 0x7fffffff;
240 if (++jjround == 0x7fffffff)
244 long l = 1L << curChar;
247 switch(jjstateSet[--i])
250 if ((0x2400L & l) != 0L)
256 jjstateSet[jjnewStateCnt++] = 1;
259 if (curChar == 10 && kind > 15)
264 jjstateSet[jjnewStateCnt++] = 1;
268 } while(i != startsAt);
270 else if (curChar < 128)
272 long l = 1L << (curChar & 077);
275 switch(jjstateSet[--i])
279 } while(i != startsAt);
283 int i2 = (curChar & 0xff) >> 6;
284 long l2 = 1L << (curChar & 077);
287 switch(jjstateSet[--i])
291 } while(i != startsAt);
293 if (kind != 0x7fffffff)
295 jjmatchedKind = kind;
296 jjmatchedPos = curPos;
300 if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt)))
302 try { curChar = input_stream.readChar(); }
303 catch(java.io.IOException e) { return curPos; }
306 private static final int jjStopStringLiteralDfa_1(int pos, long active0, long active1, long active2)
311 if ((active0 & 0x4800L) != 0L || (active1 & 0x200000000000L) != 0L || (active2 & 0x1L) != 0L)
313 if ((active1 & 0x20000000000000L) != 0L)
315 if ((active1 & 0x2000080000000L) != 0L)
317 if ((active0 & 0xffffff8ffff00000L) != 0L || (active1 & 0x1ffL) != 0L)
324 if ((active0 & 0xdfffef8fff700000L) != 0L || (active1 & 0x177L) != 0L)
326 if (jjmatchedPos != 1)
333 if ((active0 & 0x4000L) != 0L)
335 if ((active0 & 0x2000100000800000L) != 0L || (active1 & 0x88L) != 0L)
339 if ((active0 & 0x1001400000400000L) != 0L || (active1 & 0x160L) != 0L)
341 if ((active0 & 0xcffeaf8fff300000L) != 0L || (active1 & 0x1fL) != 0L)
343 if (jjmatchedPos != 2)
352 if ((active0 & 0x62818023000000L) != 0L || (active1 & 0x7L) != 0L)
354 if ((active0 & 0xdf9c2e0fdc300000L) != 0L || (active1 & 0x58L) != 0L)
356 if (jjmatchedPos != 3)
365 if ((active0 & 0xda142c0fc1200000L) != 0L || (active1 & 0x4aL) != 0L)
371 if ((active0 & 0x58802001c100000L) != 0L || (active1 & 0x10L) != 0L)
375 if ((active0 & 0xc814000c01000000L) != 0L || (active1 & 0x8L) != 0L)
377 if ((active0 & 0x12002c03c0200000L) != 0L || (active1 & 0x42L) != 0L)
385 if ((active0 & 0x10002803c0000000L) != 0L || (active1 & 0x42L) != 0L)
387 if ((active0 & 0x200040000200000L) != 0L)
389 if (jjmatchedPos != 6)
398 if ((active0 & 0x200040000200000L) != 0L)
400 if ((active0 & 0x300000000L) != 0L)
408 if ((active0 & 0x300000000L) != 0L)
416 if ((active0 & 0x300000000L) != 0L)
424 if ((active0 & 0x300000000L) != 0L)
435 private static final int jjStartNfa_1(int pos, long active0, long active1, long active2)
437 return jjMoveNfa_1(jjStopStringLiteralDfa_1(pos, active0, active1, active2), pos + 1);
439 static private final int jjStartNfaWithStates_1(int pos, int kind, int state)
441 jjmatchedKind = kind;
443 try { curChar = input_stream.readChar(); }
444 catch(java.io.IOException e) { return pos + 1; }
445 return jjMoveNfa_1(state, pos + 1);
447 static private final int jjMoveStringLiteralDfa0_1()
453 return jjMoveStringLiteralDfa1_1(0x0L, 0xa000000000L, 0x0L);
455 return jjStopAtPos(0, 12);
457 return jjStartNfaWithStates_1(0, 117, 16);
460 return jjMoveStringLiteralDfa1_1(0x0L, 0x4000000000000L, 0x0L);
463 return jjMoveStringLiteralDfa1_1(0x0L, 0x400400000000000L, 0x0L);
465 return jjStopAtPos(0, 87);
467 return jjStopAtPos(0, 88);
470 return jjMoveStringLiteralDfa1_1(0x0L, 0x100000000000L, 0x0L);
473 return jjMoveStringLiteralDfa1_1(0x0L, 0x800040000000000L, 0x0L);
475 return jjStopAtPos(0, 94);
478 return jjMoveStringLiteralDfa1_1(0x1000000000L, 0x1000080000000000L, 0x0L);
481 return jjMoveStringLiteralDfa1_1(0x0L, 0x2000000000000L, 0x0L);
484 return jjMoveStringLiteralDfa1_1(0x4800L, 0x200000000000L, 0x0L);
487 return jjMoveStringLiteralDfa1_1(0x2000000000L, 0x0L, 0x0L);
489 return jjStopAtPos(0, 93);
492 return jjMoveStringLiteralDfa1_1(0x0L, 0x4800000000L, 0x120L);
495 return jjMoveStringLiteralDfa1_1(0x4000000000L, 0x10400000000L, 0x0L);
498 return jjMoveStringLiteralDfa1_1(0x0L, 0x1000000000L, 0x2c0L);
501 return jjMoveStringLiteralDfa1_1(0x10L, 0x0L, 0x0L);
503 return jjStopAtPos(0, 116);
505 return jjStopAtPos(0, 91);
507 return jjStopAtPos(0, 92);
510 return jjMoveStringLiteralDfa1_1(0x0L, 0x1000000000000L, 0x0L);
513 return jjMoveStringLiteralDfa1_1(0x2000000004000000L, 0x100L, 0x0L);
516 return jjMoveStringLiteralDfa1_1(0x8000000L, 0x3L, 0x0L);
519 return jjMoveStringLiteralDfa1_1(0x70000100000L, 0x0L, 0x0L);
522 return jjMoveStringLiteralDfa1_1(0x180000000000L, 0x8L, 0x0L);
525 return jjMoveStringLiteralDfa1_1(0xe00200023000000L, 0x0L, 0x0L);
528 return jjMoveStringLiteralDfa1_1(0x1080400000200000L, 0x10L, 0x0L);
531 return jjMoveStringLiteralDfa1_1(0x800400000000L, 0x0L, 0x0L);
534 return jjMoveStringLiteralDfa1_1(0x140800000L, 0x60L, 0x0L);
537 return jjMoveStringLiteralDfa1_1(0x8000000000L, 0x0L, 0x0L);
540 return jjMoveStringLiteralDfa1_1(0x3000000000000L, 0x0L, 0x0L);
543 return jjMoveStringLiteralDfa1_1(0x8000000000000000L, 0x80L, 0x0L);
546 return jjMoveStringLiteralDfa1_1(0x10000000L, 0x0L, 0x0L);
549 return jjMoveStringLiteralDfa1_1(0x4000280000000L, 0x4L, 0x0L);
552 return jjMoveStringLiteralDfa1_1(0x4018000800000000L, 0x0L, 0x0L);
555 return jjMoveStringLiteralDfa1_1(0x60000000000000L, 0x0L, 0x0L);
558 return jjMoveStringLiteralDfa1_1(0x400000L, 0x0L, 0x0L);
561 return jjMoveStringLiteralDfa1_1(0x100000000000000L, 0x0L, 0x0L);
563 return jjStopAtPos(0, 89);
566 return jjMoveStringLiteralDfa1_1(0x0L, 0x200800000000000L, 0x0L);
568 return jjStopAtPos(0, 90);
570 return jjMoveStringLiteralDfa1_1(0x0L, 0x8000000000000L, 0x0L);
572 return jjMoveNfa_1(3, 0);
575 static private final int jjMoveStringLiteralDfa1_1(long active0, long active1, long active2)
577 try { curChar = input_stream.readChar(); }
578 catch(java.io.IOException e) {
579 jjStopStringLiteralDfa_1(0, active0, active1, active2);
585 if ((active1 & 0x400000000000000L) != 0L)
586 return jjStopAtPos(1, 122);
589 if ((active0 & 0x4000L) != 0L)
590 return jjStartNfaWithStates_1(1, 14, 0);
593 if ((active1 & 0x800000000000000L) != 0L)
594 return jjStopAtPos(1, 123);
597 if ((active1 & 0x1000000000000000L) != 0L)
598 return jjStopAtPos(1, 124);
601 if ((active0 & 0x800L) != 0L)
602 return jjStopAtPos(1, 11);
605 if ((active0 & 0x2000000000L) != 0L)
606 return jjStopAtPos(1, 37);
609 if ((active2 & 0x20L) != 0L)
614 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0L, active2, 0x100L);
616 if ((active1 & 0x400000000L) != 0L)
621 else if ((active1 & 0x800000000L) != 0L)
622 return jjStopAtPos(1, 99);
623 else if ((active1 & 0x1000000000L) != 0L)
624 return jjStopAtPos(1, 100);
625 else if ((active1 & 0x2000000000L) != 0L)
630 else if ((active1 & 0x40000000000L) != 0L)
631 return jjStopAtPos(1, 106);
632 else if ((active1 & 0x80000000000L) != 0L)
633 return jjStopAtPos(1, 107);
634 else if ((active1 & 0x100000000000L) != 0L)
635 return jjStopAtPos(1, 108);
636 else if ((active1 & 0x200000000000L) != 0L)
637 return jjStopAtPos(1, 109);
638 else if ((active1 & 0x400000000000L) != 0L)
639 return jjStopAtPos(1, 110);
640 else if ((active1 & 0x800000000000L) != 0L)
641 return jjStopAtPos(1, 111);
642 else if ((active1 & 0x1000000000000L) != 0L)
643 return jjStopAtPos(1, 112);
644 else if ((active1 & 0x2000000000000L) != 0L)
645 return jjStopAtPos(1, 113);
646 else if ((active1 & 0x4000000000000L) != 0L)
647 return jjStopAtPos(1, 114);
648 else if ((active1 & 0x8000000000000L) != 0L)
649 return jjStopAtPos(1, 115);
650 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0x18000000000L, active2, 0L);
652 if ((active0 & 0x10L) != 0L)
653 return jjStopAtPos(1, 4);
654 else if ((active0 & 0x1000000000L) != 0L)
655 return jjStopAtPos(1, 36);
656 else if ((active0 & 0x4000000000L) != 0L)
657 return jjStopAtPos(1, 38);
658 else if ((active1 & 0x4000000000L) != 0L)
659 return jjStopAtPos(1, 102);
660 else if ((active2 & 0x40L) != 0L)
665 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0L, active2, 0x280L);
668 return jjMoveStringLiteralDfa2_1(active0, 0x80010000400000L, active1, 0L, active2, 0L);
671 return jjMoveStringLiteralDfa2_1(active0, 0x8000000000000000L, active1, 0L, active2, 0L);
674 return jjMoveStringLiteralDfa2_1(active0, 0x20000000L, active1, 0L, active2, 0L);
677 return jjMoveStringLiteralDfa2_1(active0, 0x5080280000000L, active1, 0x4L, active2, 0L);
680 if ((active0 & 0x800000L) != 0L)
681 return jjStartNfaWithStates_1(1, 23, 14);
685 return jjMoveStringLiteralDfa2_1(active0, 0x120000000000000L, active1, 0L, active2, 0L);
688 return jjMoveStringLiteralDfa2_1(active0, 0x8000000000L, active1, 0L, active2, 0L);
691 return jjMoveStringLiteralDfa2_1(active0, 0x403100000L, active1, 0x10L, active2, 0L);
694 return jjMoveStringLiteralDfa2_1(active0, 0xe00000140000000L, active1, 0x160L, active2, 0L);
697 if ((active0 & 0x100000000000L) != 0L)
702 return jjMoveStringLiteralDfa2_1(active0, 0x1000c60000000000L, active1, 0xbL, active2, 0L);
705 if ((active1 & 0x80L) != 0L)
706 return jjStartNfaWithStates_1(1, 71, 14);
707 return jjMoveStringLiteralDfa2_1(active0, 0x4000001c000000L, active1, 0L, active2, 0L);
710 if ((active0 & 0x2000000000000000L) != 0L)
711 return jjStartNfaWithStates_1(1, 61, 14);
715 return jjMoveStringLiteralDfa2_1(active0, 0x4000000800000000L, active1, 0L, active2, 0L);
718 return jjMoveStringLiteralDfa2_1(active0, 0xa000000200000L, active1, 0L, active2, 0L);
721 return jjMoveStringLiteralDfa2_1(active0, 0x10000000000000L, active1, 0L, active2, 0L);
724 return jjMoveStringLiteralDfa2_1(active0, 0x200000000000L, active1, 0L, active2, 0L);
726 if ((active1 & 0x200000000000000L) != 0L)
727 return jjStopAtPos(1, 121);
732 return jjStartNfa_1(0, active0, active1, active2);
734 static private final int jjMoveStringLiteralDfa2_1(long old0, long active0, long old1, long active1, long old2, long active2)
736 if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
737 return jjStartNfa_1(0, old0, old1, old2);
738 try { curChar = input_stream.readChar(); }
739 catch(java.io.IOException e) {
740 jjStopStringLiteralDfa_1(1, active0, active1, active2);
746 if ((active1 & 0x8000000000L) != 0L)
747 return jjStopAtPos(2, 103);
748 else if ((active1 & 0x10000000000L) != 0L)
749 return jjStopAtPos(2, 104);
750 else if ((active2 & 0x100L) != 0L)
751 return jjStopAtPos(2, 136);
752 else if ((active2 & 0x200L) != 0L)
753 return jjStopAtPos(2, 137);
756 if ((active2 & 0x80L) != 0L)
757 return jjStopAtPos(2, 135);
761 return jjMoveStringLiteralDfa3_1(active0, 0x800100000L, active1, 0x4L, active2, 0L);
764 return jjMoveStringLiteralDfa3_1(active0, 0x140000000L, active1, 0L, active2, 0L);
767 if ((active1 & 0x100L) != 0L)
768 return jjStartNfaWithStates_1(2, 72, 14);
769 return jjMoveStringLiteralDfa3_1(active0, 0xe00000000000000L, active1, 0L, active2, 0L);
772 return jjMoveStringLiteralDfa3_1(active0, 0x8000000L, active1, 0L, active2, 0L);
775 return jjMoveStringLiteralDfa3_1(active0, 0x80000000000L, active1, 0L, active2, 0L);
778 return jjMoveStringLiteralDfa3_1(active0, 0x20000000L, active1, 0L, active2, 0L);
781 return jjMoveStringLiteralDfa3_1(active0, 0x130000010000000L, active1, 0L, active2, 0L);
784 return jjMoveStringLiteralDfa3_1(active0, 0x8000000000000000L, active1, 0L, active2, 0L);
787 return jjMoveStringLiteralDfa3_1(active0, 0x82000000000000L, active1, 0L, active2, 0L);
790 return jjMoveStringLiteralDfa3_1(active0, 0x60000200000L, active1, 0L, active2, 0L);
793 return jjMoveStringLiteralDfa3_1(active0, 0x400000000L, active1, 0x13L, active2, 0L);
796 return jjMoveStringLiteralDfa3_1(active0, 0x8000000000000L, active1, 0L, active2, 0L);
799 return jjMoveStringLiteralDfa3_1(active0, 0x280000000L, active1, 0L, active2, 0L);
802 if ((active0 & 0x400000L) != 0L)
803 return jjStartNfaWithStates_1(2, 22, 14);
804 else if ((active0 & 0x400000000000L) != 0L)
809 return jjMoveStringLiteralDfa3_1(active0, 0x5000000004000000L, active1, 0L, active2, 0L);
812 return jjMoveStringLiteralDfa3_1(active0, 0x18003000000L, active1, 0L, active2, 0L);
815 if ((active1 & 0x20L) != 0L)
820 return jjMoveStringLiteralDfa3_1(active0, 0x4a00000000000L, active1, 0x40L, active2, 0L);
823 return jjMoveStringLiteralDfa3_1(active0, 0x40000000000000L, active1, 0x8L, active2, 0L);
826 if ((active0 & 0x1000000000000L) != 0L)
827 return jjStartNfaWithStates_1(2, 48, 14);
832 return jjStartNfa_1(1, active0, active1, active2);
834 static private final int jjMoveStringLiteralDfa3_1(long old0, long active0, long old1, long active1, long old2, long active2)
836 if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
837 return jjStartNfa_1(1, old0, old1, old2);
838 try { curChar = input_stream.readChar(); }
839 catch(java.io.IOException e) {
840 jjStopStringLiteralDfa_1(2, active0, active1, 0L);
847 return jjMoveStringLiteralDfa4_1(active0, 0x8000c000000L, active1, 0x10L);
850 return jjMoveStringLiteralDfa4_1(active0, 0x400000000L, active1, 0x8L);
853 return jjMoveStringLiteralDfa4_1(active0, 0x200000L, active1, 0L);
856 if ((active0 & 0x2000000L) != 0L)
861 else if ((active0 & 0x10000000000L) != 0L)
862 return jjStartNfaWithStates_1(3, 40, 14);
863 else if ((active0 & 0x40000000000000L) != 0L)
864 return jjStartNfaWithStates_1(3, 54, 14);
865 return jjMoveStringLiteralDfa4_1(active0, 0x9008200001000000L, active1, 0x40L);
868 return jjMoveStringLiteralDfa4_1(active0, 0x800000000000000L, active1, 0L);
871 return jjMoveStringLiteralDfa4_1(active0, 0x4400000000000000L, active1, 0L);
874 if ((active0 & 0x2000000000000L) != 0L)
875 return jjStartNfaWithStates_1(3, 49, 14);
876 else if ((active1 & 0x1L) != 0L)
881 else if ((active1 & 0x4L) != 0L)
882 return jjStartNfaWithStates_1(3, 66, 14);
883 return jjMoveStringLiteralDfa4_1(active0, 0x100000140000000L, active1, 0x2L);
886 return jjMoveStringLiteralDfa4_1(active0, 0x10000000L, active1, 0L);
889 if ((active0 & 0x20000000L) != 0L)
890 return jjStartNfaWithStates_1(3, 29, 14);
891 else if ((active0 & 0x800000000000L) != 0L)
892 return jjStartNfaWithStates_1(3, 47, 14);
896 if ((active0 & 0x20000000000000L) != 0L)
897 return jjStartNfaWithStates_1(3, 53, 14);
898 return jjMoveStringLiteralDfa4_1(active0, 0x80020000100000L, active1, 0L);
901 if ((active0 & 0x8000000000L) != 0L)
902 return jjStartNfaWithStates_1(3, 39, 14);
903 return jjMoveStringLiteralDfa4_1(active0, 0x10040800000000L, active1, 0L);
906 return jjMoveStringLiteralDfa4_1(active0, 0x4000280000000L, active1, 0L);
909 return jjMoveStringLiteralDfa4_1(active0, 0x200000000000000L, active1, 0L);
913 return jjStartNfa_1(2, active0, active1, 0L);
915 static private final int jjMoveStringLiteralDfa4_1(long old0, long active0, long old1, long active1)
917 if (((active0 &= old0) | (active1 &= old1)) == 0L)
918 return jjStartNfa_1(2, old0, old1, 0L);
919 try { curChar = input_stream.readChar(); }
920 catch(java.io.IOException e) {
921 jjStopStringLiteralDfa_1(3, active0, active1, 0L);
928 return jjMoveStringLiteralDfa5_1(active0, 0x1000000400000000L, active1, 0L);
931 return jjMoveStringLiteralDfa5_1(active0, 0x8010000000000000L, active1, 0L);
934 if ((active0 & 0x80000000000000L) != 0L)
935 return jjStartNfaWithStates_1(4, 55, 14);
936 else if ((active0 & 0x100000000000000L) != 0L)
937 return jjStartNfaWithStates_1(4, 56, 14);
938 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x2L);
941 if ((active0 & 0x400000000000000L) != 0L)
942 return jjStartNfaWithStates_1(4, 58, 14);
946 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x40L);
949 return jjMoveStringLiteralDfa5_1(active0, 0x200000000000000L, active1, 0L);
952 return jjMoveStringLiteralDfa5_1(active0, 0x40a81000000L, active1, 0L);
955 if ((active0 & 0x8000000L) != 0L)
956 return jjStartNfaWithStates_1(4, 27, 14);
960 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x8L);
963 return jjMoveStringLiteralDfa5_1(active0, 0x4000200000000000L, active1, 0L);
966 return jjMoveStringLiteralDfa5_1(active0, 0x800000000000000L, active1, 0L);
969 if ((active0 & 0x8000000000000L) != 0L)
970 return jjStartNfaWithStates_1(4, 51, 14);
971 return jjMoveStringLiteralDfa5_1(active0, 0x4000000000000L, active1, 0L);
974 if ((active0 & 0x100000L) != 0L)
975 return jjStartNfaWithStates_1(4, 20, 14);
979 if ((active0 & 0x10000000L) != 0L)
980 return jjStartNfaWithStates_1(4, 28, 14);
981 else if ((active0 & 0x20000000000L) != 0L)
982 return jjStartNfaWithStates_1(4, 41, 14);
983 else if ((active1 & 0x10L) != 0L)
984 return jjStartNfaWithStates_1(4, 68, 14);
985 return jjMoveStringLiteralDfa5_1(active0, 0x200000L, active1, 0L);
988 return jjMoveStringLiteralDfa5_1(active0, 0x80140000000L, active1, 0L);
991 if ((active0 & 0x4000000L) != 0L)
992 return jjStartNfaWithStates_1(4, 26, 14);
997 return jjStartNfa_1(3, active0, active1, 0L);
999 static private final int jjMoveStringLiteralDfa5_1(long old0, long active0, long old1, long active1)
1001 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1002 return jjStartNfa_1(3, old0, old1, 0L);
1003 try { curChar = input_stream.readChar(); }
1004 catch(java.io.IOException e) {
1005 jjStopStringLiteralDfa_1(4, active0, active1, 0L);
1012 return jjMoveStringLiteralDfa6_1(active0, 0L, active1, 0x2L);
1015 if ((active0 & 0x800000000L) != 0L)
1016 return jjStartNfaWithStates_1(5, 35, 14);
1017 return jjMoveStringLiteralDfa6_1(active0, 0x1000000000000000L, active1, 0L);
1020 return jjMoveStringLiteralDfa6_1(active0, 0x200140000000L, active1, 0L);
1023 if ((active1 & 0x8L) != 0L)
1024 return jjStartNfaWithStates_1(5, 67, 14);
1025 return jjMoveStringLiteralDfa6_1(active0, 0L, active1, 0x40L);
1028 if ((active0 & 0x1000000L) != 0L)
1029 return jjStartNfaWithStates_1(5, 24, 14);
1033 if ((active0 & 0x4000000000000000L) != 0L)
1034 return jjStartNfaWithStates_1(5, 62, 14);
1038 if ((active0 & 0x10000000000000L) != 0L)
1039 return jjStartNfaWithStates_1(5, 52, 14);
1043 return jjMoveStringLiteralDfa6_1(active0, 0x200000000200000L, active1, 0L);
1046 if ((active0 & 0x400000000L) != 0L)
1047 return jjStartNfaWithStates_1(5, 34, 14);
1048 return jjMoveStringLiteralDfa6_1(active0, 0x80000000000L, active1, 0L);
1051 if ((active0 & 0x4000000000000L) != 0L)
1052 return jjStartNfaWithStates_1(5, 50, 14);
1053 return jjMoveStringLiteralDfa6_1(active0, 0x40000000000L, active1, 0L);
1056 if ((active0 & 0x800000000000000L) != 0L)
1057 return jjStartNfaWithStates_1(5, 59, 14);
1058 return jjMoveStringLiteralDfa6_1(active0, 0x280000000L, active1, 0L);
1061 if ((active0 & 0x8000000000000000L) != 0L)
1062 return jjStartNfaWithStates_1(5, 63, 14);
1067 return jjStartNfa_1(4, active0, active1, 0L);
1069 static private final int jjMoveStringLiteralDfa6_1(long old0, long active0, long old1, long active1)
1071 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1072 return jjStartNfa_1(4, old0, old1, 0L);
1073 try { curChar = input_stream.readChar(); }
1074 catch(java.io.IOException e) {
1075 jjStopStringLiteralDfa_1(5, active0, active1, 0L);
1082 if ((active0 & 0x40000000L) != 0L)
1087 else if ((active0 & 0x80000000L) != 0L)
1092 return jjMoveStringLiteralDfa7_1(active0, 0x300000000L, active1, 0L);
1095 if ((active0 & 0x1000000000000000L) != 0L)
1096 return jjStartNfaWithStates_1(6, 60, 14);
1100 return jjMoveStringLiteralDfa7_1(active0, 0x200000000000000L, active1, 0L);
1103 if ((active1 & 0x2L) != 0L)
1104 return jjStartNfaWithStates_1(6, 65, 14);
1108 return jjMoveStringLiteralDfa7_1(active0, 0x200000L, active1, 0L);
1111 if ((active1 & 0x40L) != 0L)
1112 return jjStartNfaWithStates_1(6, 70, 14);
1116 if ((active0 & 0x200000000000L) != 0L)
1117 return jjStartNfaWithStates_1(6, 45, 14);
1121 if ((active0 & 0x80000000000L) != 0L)
1122 return jjStartNfaWithStates_1(6, 43, 14);
1126 return jjMoveStringLiteralDfa7_1(active0, 0x40000000000L, active1, 0L);
1130 return jjStartNfa_1(5, active0, active1, 0L);
1132 static private final int jjMoveStringLiteralDfa7_1(long old0, long active0, long old1, long active1)
1134 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1135 return jjStartNfa_1(5, old0, old1, 0L);
1136 try { curChar = input_stream.readChar(); }
1137 catch(java.io.IOException e) {
1138 jjStopStringLiteralDfa_1(6, active0, 0L, 0L);
1144 return jjMoveStringLiteralDfa8_1(active0, 0x300000000L);
1147 if ((active0 & 0x40000000000L) != 0L)
1148 return jjStartNfaWithStates_1(7, 42, 14);
1149 else if ((active0 & 0x200000000000000L) != 0L)
1150 return jjStartNfaWithStates_1(7, 57, 14);
1154 if ((active0 & 0x200000L) != 0L)
1155 return jjStartNfaWithStates_1(7, 21, 14);
1160 return jjStartNfa_1(6, active0, 0L, 0L);
1162 static private final int jjMoveStringLiteralDfa8_1(long old0, long active0)
1164 if (((active0 &= old0)) == 0L)
1165 return jjStartNfa_1(6, old0, 0L, 0L);
1166 try { curChar = input_stream.readChar(); }
1167 catch(java.io.IOException e) {
1168 jjStopStringLiteralDfa_1(7, active0, 0L, 0L);
1175 return jjMoveStringLiteralDfa9_1(active0, 0x300000000L);
1179 return jjStartNfa_1(7, active0, 0L, 0L);
1181 static private final int jjMoveStringLiteralDfa9_1(long old0, long active0)
1183 if (((active0 &= old0)) == 0L)
1184 return jjStartNfa_1(7, old0, 0L, 0L);
1185 try { curChar = input_stream.readChar(); }
1186 catch(java.io.IOException e) {
1187 jjStopStringLiteralDfa_1(8, active0, 0L, 0L);
1194 return jjMoveStringLiteralDfa10_1(active0, 0x300000000L);
1198 return jjStartNfa_1(8, active0, 0L, 0L);
1200 static private final int jjMoveStringLiteralDfa10_1(long old0, long active0)
1202 if (((active0 &= old0)) == 0L)
1203 return jjStartNfa_1(8, old0, 0L, 0L);
1204 try { curChar = input_stream.readChar(); }
1205 catch(java.io.IOException e) {
1206 jjStopStringLiteralDfa_1(9, active0, 0L, 0L);
1213 return jjMoveStringLiteralDfa11_1(active0, 0x300000000L);
1217 return jjStartNfa_1(9, active0, 0L, 0L);
1219 static private final int jjMoveStringLiteralDfa11_1(long old0, long active0)
1221 if (((active0 &= old0)) == 0L)
1222 return jjStartNfa_1(9, old0, 0L, 0L);
1223 try { curChar = input_stream.readChar(); }
1224 catch(java.io.IOException e) {
1225 jjStopStringLiteralDfa_1(10, active0, 0L, 0L);
1232 if ((active0 & 0x100000000L) != 0L)
1233 return jjStartNfaWithStates_1(11, 32, 14);
1234 else if ((active0 & 0x200000000L) != 0L)
1235 return jjStartNfaWithStates_1(11, 33, 14);
1240 return jjStartNfa_1(10, active0, 0L, 0L);
1242 static final long[] jjbitVec0 = {
1243 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
1245 static private final int jjMoveNfa_1(int startState, int curPos)
1251 jjstateSet[0] = startState;
1252 int j, kind = 0x7fffffff;
1255 if (++jjround == 0x7fffffff)
1259 long l = 1L << curChar;
1262 switch(jjstateSet[--i])
1265 if ((0x3ff000000000000L & l) != 0L)
1266 jjCheckNAddStates(0, 6);
1267 else if (curChar == 39)
1268 jjCheckNAddStates(7, 12);
1269 else if (curChar == 34)
1270 jjCheckNAddStates(13, 18);
1271 else if (curChar == 36)
1272 jjstateSet[jjnewStateCnt++] = 16;
1273 else if (curChar == 46)
1275 else if (curChar == 47)
1276 jjstateSet[jjnewStateCnt++] = 2;
1277 if ((0x3fe000000000000L & l) != 0L)
1281 jjCheckNAddTwoStates(5, 6);
1283 else if (curChar == 48)
1287 jjCheckNAddStates(19, 21);
1292 jjstateSet[jjnewStateCnt++] = 1;
1295 if ((0xffff7fffffffffffL & l) != 0L && kind > 13)
1300 jjstateSet[jjnewStateCnt++] = 0;
1303 if ((0x3fe000000000000L & l) == 0L)
1307 jjCheckNAddTwoStates(5, 6);
1310 if ((0x3ff000000000000L & l) == 0L)
1314 jjCheckNAddTwoStates(5, 6);
1321 if ((0x3ff000000000000L & l) == 0L)
1325 jjCheckNAddStates(22, 24);
1328 if ((0x280000000000L & l) != 0L)
1332 if ((0x3ff000000000000L & l) == 0L)
1336 jjCheckNAddTwoStates(11, 12);
1339 if ((0x3ff000000000000L & l) == 0L)
1343 jjstateSet[jjnewStateCnt++] = 14;
1347 jjstateSet[jjnewStateCnt++] = 16;
1350 if ((0x3ff000000000000L & l) == 0L)
1354 jjstateSet[jjnewStateCnt++] = 17;
1357 if ((0x3ff000000000000L & l) != 0L)
1358 jjCheckNAddStates(0, 6);
1361 if ((0x3ff000000000000L & l) != 0L)
1362 jjCheckNAddTwoStates(19, 20);
1369 jjCheckNAddStates(25, 27);
1372 if ((0x3ff000000000000L & l) == 0L)
1376 jjCheckNAddStates(25, 27);
1379 if ((0x280000000000L & l) != 0L)
1383 if ((0x3ff000000000000L & l) == 0L)
1387 jjCheckNAddTwoStates(24, 12);
1390 if ((0x3ff000000000000L & l) != 0L)
1391 jjCheckNAddTwoStates(25, 26);
1394 if ((0x280000000000L & l) != 0L)
1398 if ((0x3ff000000000000L & l) == 0L)
1402 jjCheckNAddTwoStates(28, 12);
1405 if ((0x3ff000000000000L & l) != 0L)
1406 jjCheckNAddStates(28, 30);
1409 if ((0x280000000000L & l) != 0L)
1413 if ((0x3ff000000000000L & l) != 0L)
1414 jjCheckNAddTwoStates(32, 12);
1421 jjCheckNAddStates(19, 21);
1424 if ((0x3ff000000000000L & l) == 0L)
1428 jjCheckNAddTwoStates(35, 6);
1431 if ((0xff000000000000L & l) == 0L)
1435 jjCheckNAddTwoStates(36, 6);
1439 jjCheckNAddStates(13, 18);
1442 if ((0xfffffffbffffffffL & l) != 0L)
1443 jjCheckNAddStates(31, 33);
1447 jjCheckNAddStates(31, 33);
1450 if (curChar == 34 && kind > 79)
1454 if ((0xfffffffbffffffffL & l) != 0L)
1455 jjCheckNAddStates(34, 36);
1459 jjCheckNAddStates(34, 36);
1462 if (curChar == 34 && kind > 80)
1467 jjCheckNAddStates(7, 12);
1470 if ((0xffffff7fffffffffL & l) != 0L)
1471 jjCheckNAddStates(37, 39);
1475 jjCheckNAddStates(37, 39);
1478 if (curChar == 39 && kind > 79)
1482 if ((0xffffff7fffffffffL & l) != 0L)
1483 jjCheckNAddStates(40, 42);
1487 jjCheckNAddStates(40, 42);
1490 if (curChar == 39 && kind > 81)
1494 jjAddStates(43, 45);
1497 jjAddStates(46, 48);
1501 } while(i != startsAt);
1503 else if (curChar < 128)
1505 long l = 1L << (curChar & 077);
1508 switch(jjstateSet[--i])
1511 if ((0x87fffffe87fffffeL & l) != 0L)
1517 else if (curChar == 96)
1518 jjCheckNAddStates(49, 54);
1525 if ((0x100000001000L & l) != 0L && kind > 73)
1529 if ((0x2000000020L & l) != 0L)
1530 jjAddStates(55, 56);
1533 if ((0x5000000050L & l) != 0L && kind > 77)
1538 if ((0x87fffffe87fffffeL & l) == 0L)
1546 if ((0x87fffffe87fffffeL & l) == 0L)
1553 if ((0x2000000020L & l) != 0L)
1554 jjAddStates(57, 58);
1557 if ((0x2000000020L & l) != 0L)
1558 jjAddStates(59, 60);
1561 if ((0x2000000020L & l) != 0L)
1562 jjAddStates(61, 62);
1565 if ((0x100000001000000L & l) != 0L)
1569 if ((0x7e0000007eL & l) == 0L)
1573 jjCheckNAddTwoStates(35, 6);
1576 jjAddStates(31, 33);
1580 jjstateSet[jjnewStateCnt++] = 39;
1583 jjAddStates(34, 36);
1587 jjstateSet[jjnewStateCnt++] = 43;
1590 jjAddStates(37, 39);
1594 jjstateSet[jjnewStateCnt++] = 48;
1597 jjAddStates(40, 42);
1601 jjstateSet[jjnewStateCnt++] = 52;
1605 jjCheckNAddStates(49, 54);
1608 if ((0xfffffffeffffffffL & l) != 0L)
1609 jjCheckNAddStates(43, 45);
1613 jjCheckNAddStates(43, 45);
1617 jjstateSet[jjnewStateCnt++] = 57;
1620 if (curChar == 96 && kind > 79)
1624 if ((0xfffffffeffffffffL & l) != 0L)
1625 jjCheckNAddStates(46, 48);
1629 jjCheckNAddStates(46, 48);
1633 jjstateSet[jjnewStateCnt++] = 61;
1636 if (curChar == 96 && kind > 82)
1641 } while(i != startsAt);
1645 int i2 = (curChar & 0xff) >> 6;
1646 long l2 = 1L << (curChar & 077);
1649 switch(jjstateSet[--i])
1653 if ((jjbitVec0[i2] & l2) == 0L)
1660 if ((jjbitVec0[i2] & l2) != 0L && kind > 13)
1665 if ((jjbitVec0[i2] & l2) == 0L)
1672 if ((jjbitVec0[i2] & l2) != 0L)
1673 jjAddStates(31, 33);
1676 if ((jjbitVec0[i2] & l2) != 0L)
1677 jjAddStates(34, 36);
1680 if ((jjbitVec0[i2] & l2) != 0L)
1681 jjAddStates(37, 39);
1684 if ((jjbitVec0[i2] & l2) != 0L)
1685 jjAddStates(40, 42);
1688 if ((jjbitVec0[i2] & l2) != 0L)
1689 jjAddStates(43, 45);
1692 if ((jjbitVec0[i2] & l2) != 0L)
1693 jjAddStates(46, 48);
1697 } while(i != startsAt);
1699 if (kind != 0x7fffffff)
1701 jjmatchedKind = kind;
1702 jjmatchedPos = curPos;
1706 if ((i = jjnewStateCnt) == (startsAt = 64 - (jjnewStateCnt = startsAt)))
1708 try { curChar = input_stream.readChar(); }
1709 catch(java.io.IOException e) { return curPos; }
1712 static private final int jjMoveStringLiteralDfa0_3()
1717 return jjMoveStringLiteralDfa1_3(0x20000L);
1722 static private final int jjMoveStringLiteralDfa1_3(long active0)
1724 try { curChar = input_stream.readChar(); }
1725 catch(java.io.IOException e) {
1731 if ((active0 & 0x20000L) != 0L)
1732 return jjStopAtPos(1, 17);
1739 static final int[] jjnextStates = {
1740 19, 20, 25, 26, 29, 30, 12, 47, 49, 50, 51, 53, 54, 38, 40, 41,
1741 42, 44, 45, 34, 36, 6, 8, 9, 12, 21, 22, 12, 29, 30, 12, 38,
1742 40, 41, 42, 44, 45, 47, 49, 50, 51, 53, 54, 56, 58, 59, 60, 62,
1743 63, 56, 58, 59, 60, 62, 63, 10, 11, 23, 24, 27, 28, 31, 32,
1745 public static final String[] jjstrLiteralImages = {
1746 "", "\74\77", null, "\74\77\75", "\77\76", null, null, null, null, null, null,
1747 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1748 null, null, null, null, null, null, null, null, null, null, null, "\55\76",
1749 "\72\72", "\75\76", null, null, null, null, null, null, null, null, null, null, null,
1750 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1751 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1752 null, null, null, null, null, null, null, null, null, "\50", "\51", "\173", "\175",
1753 "\133", "\135", "\73", "\54", "\56", "\76", "\74", "\75\75", "\74\75", "\76\75",
1754 "\41\75", "\74\76", "\41\75\75", "\75\75\75", "\75", "\53\75", "\55\75", "\52\75",
1755 "\57\75", "\46\75", "\174\75", "\136\75", "\56\75", "\45\75", "\176\75", "\100", "\44",
1756 "\41", "\77", "\72", "\174\174", "\46\46", "\53\53", "\55\55", "\53", "\55", "\52",
1757 "\57", "\46", "\174", "\136", "\45", "\74\74", "\76\76", "\76\76\76", "\74\74\75",
1758 "\76\76\75", null, "\77\76", };
1759 public static final String[] lexStateNames = {
1762 "IN_SINGLE_LINE_COMMENT",
1763 "IN_FORMAL_COMMENT",
1764 "IN_MULTI_LINE_COMMENT",
1766 public static final int[] jjnewLexState = {
1767 -1, 1, 1, 1, 0, -1, -1, -1, -1, -1, -1, -1, 2, 3, 4, 1, 0, 1, 1, -1, -1, -1, -1, -1, -1,
1768 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1769 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1770 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1771 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1772 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1774 static final long[] jjtoToken = {
1775 0xfffffffffff0001fL, 0xffffffffff8fa3ffL, 0xfffL,
1777 static final long[] jjtoSkip = {
1778 0x7ffe0L, 0x0L, 0x0L,
1780 static final long[] jjtoSpecial = {
1781 0x7f800L, 0x0L, 0x0L,
1783 static final long[] jjtoMore = {
1784 0x80000L, 0x0L, 0x0L,
1786 static protected SimpleCharStream input_stream;
1787 static private final int[] jjrounds = new int[64];
1788 static private final int[] jjstateSet = new int[128];
1789 static StringBuffer image;
1790 static int jjimageLen;
1791 static int lengthOfMatch;
1792 static protected char curChar;
1793 public PHPParserTokenManager(SimpleCharStream stream)
1795 if (input_stream != null)
1796 throw new TokenMgrError("ERROR: Second call to constructor of static lexer. You must use ReInit() to initialize the static variables.", TokenMgrError.STATIC_LEXER_ERROR);
1797 input_stream = stream;
1799 public PHPParserTokenManager(SimpleCharStream stream, int lexState)
1804 static public void ReInit(SimpleCharStream stream)
1806 jjmatchedPos = jjnewStateCnt = 0;
1807 curLexState = defaultLexState;
1808 input_stream = stream;
1811 static private final void ReInitRounds()
1814 jjround = 0x80000001;
1815 for (i = 64; i-- > 0;)
1816 jjrounds[i] = 0x80000000;
1818 static public void ReInit(SimpleCharStream stream, int lexState)
1823 static public void SwitchTo(int lexState)
1825 if (lexState >= 5 || lexState < 0)
1826 throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
1828 curLexState = lexState;
1831 static protected Token jjFillToken()
1833 Token t = Token.newToken(jjmatchedKind);
1834 t.kind = jjmatchedKind;
1835 String im = jjstrLiteralImages[jjmatchedKind];
1836 t.image = (im == null) ? input_stream.GetImage() : im;
1837 t.beginLine = input_stream.getBeginLine();
1838 t.beginColumn = input_stream.getBeginColumn();
1839 t.endLine = input_stream.getEndLine();
1840 t.endColumn = input_stream.getEndColumn();
1844 static int curLexState = 0;
1845 static int defaultLexState = 0;
1846 static int jjnewStateCnt;
1848 static int jjmatchedPos;
1849 static int jjmatchedKind;
1851 public static Token getNextToken()
1854 Token specialToken = null;
1863 curChar = input_stream.BeginToken();
1865 catch(java.io.IOException e)
1868 matchedToken = jjFillToken();
1869 matchedToken.specialToken = specialToken;
1870 return matchedToken;
1880 jjmatchedKind = 0x7fffffff;
1882 curPos = jjMoveStringLiteralDfa0_0();
1883 if (jjmatchedPos == 0 && jjmatchedKind > 5)
1889 try { input_stream.backup(0);
1890 while (curChar <= 32 && (0x100003600L & (1L << curChar)) != 0L)
1891 curChar = input_stream.BeginToken();
1893 catch (java.io.IOException e1) { continue EOFLoop; }
1894 jjmatchedKind = 0x7fffffff;
1896 curPos = jjMoveStringLiteralDfa0_1();
1899 jjmatchedKind = 0x7fffffff;
1901 curPos = jjMoveStringLiteralDfa0_2();
1902 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1908 jjmatchedKind = 0x7fffffff;
1910 curPos = jjMoveStringLiteralDfa0_3();
1911 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1917 jjmatchedKind = 0x7fffffff;
1919 curPos = jjMoveStringLiteralDfa0_4();
1920 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1926 if (jjmatchedKind != 0x7fffffff)
1928 if (jjmatchedPos + 1 < curPos)
1929 input_stream.backup(curPos - jjmatchedPos - 1);
1930 if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1932 matchedToken = jjFillToken();
1933 matchedToken.specialToken = specialToken;
1934 if (jjnewLexState[jjmatchedKind] != -1)
1935 curLexState = jjnewLexState[jjmatchedKind];
1936 return matchedToken;
1938 else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1940 if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1942 matchedToken = jjFillToken();
1943 if (specialToken == null)
1944 specialToken = matchedToken;
1947 matchedToken.specialToken = specialToken;
1948 specialToken = (specialToken.next = matchedToken);
1950 SkipLexicalActions(matchedToken);
1953 SkipLexicalActions(null);
1954 if (jjnewLexState[jjmatchedKind] != -1)
1955 curLexState = jjnewLexState[jjmatchedKind];
1958 jjimageLen += jjmatchedPos + 1;
1959 if (jjnewLexState[jjmatchedKind] != -1)
1960 curLexState = jjnewLexState[jjmatchedKind];
1962 jjmatchedKind = 0x7fffffff;
1964 curChar = input_stream.readChar();
1967 catch (java.io.IOException e1) { }
1969 int error_line = input_stream.getEndLine();
1970 int error_column = input_stream.getEndColumn();
1971 String error_after = null;
1972 boolean EOFSeen = false;
1973 try { input_stream.readChar(); input_stream.backup(1); }
1974 catch (java.io.IOException e1) {
1976 error_after = curPos <= 1 ? "" : input_stream.GetImage();
1977 if (curChar == '\n' || curChar == '\r') {
1985 input_stream.backup(1);
1986 error_after = curPos <= 1 ? "" : input_stream.GetImage();
1988 throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
1993 static void SkipLexicalActions(Token matchedToken)
1995 switch(jjmatchedKind)
1999 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2001 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2002 input_stream.backup(1);