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;
11 import java.text.MessageFormat;
12 import net.sourceforge.phpeclipse.actions.PHPStartApacheAction;
13 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
14 import net.sourceforge.phpdt.internal.compiler.parser.PHPOutlineInfo;
15 import net.sourceforge.phpdt.internal.compiler.parser.PHPSegmentWithChildren;
16 import net.sourceforge.phpdt.internal.compiler.parser.PHPFunctionDeclaration;
17 import net.sourceforge.phpdt.internal.compiler.parser.PHPClassDeclaration;
18 import net.sourceforge.phpdt.internal.compiler.parser.PHPVarDeclaration;
19 import net.sourceforge.phpdt.internal.compiler.parser.PHPReqIncDeclaration;
21 public class PHPParserTokenManager implements PHPParserConstants
23 public static java.io.PrintStream debugStream = System.out;
24 public static void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
25 static private final int jjStopAtPos(int pos, int kind)
31 static private final int jjMoveStringLiteralDfa0_0()
36 return jjMoveStringLiteralDfa1_0(0xeL);
41 static private final int jjMoveStringLiteralDfa1_0(long active0)
43 try { curChar = input_stream.readChar(); }
44 catch(java.io.IOException e) {
50 if ((active0 & 0x2L) != 0L)
55 return jjMoveStringLiteralDfa2_0(active0, 0xcL);
60 static private final int jjMoveStringLiteralDfa2_0(long old0, long active0)
62 if (((active0 &= old0)) == 0L)
64 try { curChar = input_stream.readChar(); }
65 catch(java.io.IOException e) {
71 if ((active0 & 0x8L) != 0L)
72 return jjStopAtPos(2, 3);
76 return jjMoveStringLiteralDfa3_0(active0, 0x4L);
82 static private final int jjMoveStringLiteralDfa3_0(long old0, long active0)
84 if (((active0 &= old0)) == 0L)
86 try { curChar = input_stream.readChar(); }
87 catch(java.io.IOException e) {
94 return jjMoveStringLiteralDfa4_0(active0, 0x4L);
99 static private final int jjMoveStringLiteralDfa4_0(long old0, long active0)
101 if (((active0 &= old0)) == 0L)
103 try { curChar = input_stream.readChar(); }
104 catch(java.io.IOException e) {
111 if ((active0 & 0x4L) != 0L)
112 return jjStopAtPos(4, 2);
119 static private final int jjMoveStringLiteralDfa0_4()
124 return jjMoveStringLiteralDfa1_4(0x40000L);
129 static private final int jjMoveStringLiteralDfa1_4(long active0)
131 try { curChar = input_stream.readChar(); }
132 catch(java.io.IOException e) {
138 if ((active0 & 0x40000L) != 0L)
139 return jjStopAtPos(1, 18);
146 private static final int jjStopStringLiteralDfa_2(int pos, long active0)
154 private static final int jjStartNfa_2(int pos, long active0)
156 return jjMoveNfa_2(jjStopStringLiteralDfa_2(pos, active0), pos + 1);
158 static private final int jjStartNfaWithStates_2(int pos, int kind, int state)
160 jjmatchedKind = kind;
162 try { curChar = input_stream.readChar(); }
163 catch(java.io.IOException e) { return pos + 1; }
164 return jjMoveNfa_2(state, pos + 1);
166 static private final int jjMoveStringLiteralDfa0_2()
171 return jjMoveStringLiteralDfa1_2(0x10000L);
173 return jjMoveNfa_2(0, 0);
176 static private final int jjMoveStringLiteralDfa1_2(long active0)
178 try { curChar = input_stream.readChar(); }
179 catch(java.io.IOException e) {
180 jjStopStringLiteralDfa_2(0, active0);
186 if ((active0 & 0x10000L) != 0L)
187 return jjStopAtPos(1, 16);
192 return jjStartNfa_2(0, active0);
194 static private final void jjCheckNAdd(int state)
196 if (jjrounds[state] != jjround)
198 jjstateSet[jjnewStateCnt++] = state;
199 jjrounds[state] = jjround;
202 static private final void jjAddStates(int start, int end)
205 jjstateSet[jjnewStateCnt++] = jjnextStates[start];
206 } while (start++ != end);
208 static private final void jjCheckNAddTwoStates(int state1, int state2)
213 static private final void jjCheckNAddStates(int start, int end)
216 jjCheckNAdd(jjnextStates[start]);
217 } while (start++ != end);
219 static private final void jjCheckNAddStates(int start)
221 jjCheckNAdd(jjnextStates[start]);
222 jjCheckNAdd(jjnextStates[start + 1]);
224 static private final int jjMoveNfa_2(int startState, int curPos)
230 jjstateSet[0] = startState;
231 int j, kind = 0x7fffffff;
234 if (++jjround == 0x7fffffff)
238 long l = 1L << curChar;
241 switch(jjstateSet[--i])
244 if ((0x2400L & l) != 0L)
250 jjstateSet[jjnewStateCnt++] = 1;
253 if (curChar == 10 && kind > 15)
258 jjstateSet[jjnewStateCnt++] = 1;
262 } while(i != startsAt);
264 else if (curChar < 128)
266 long l = 1L << (curChar & 077);
269 switch(jjstateSet[--i])
273 } while(i != startsAt);
277 int i2 = (curChar & 0xff) >> 6;
278 long l2 = 1L << (curChar & 077);
281 switch(jjstateSet[--i])
285 } while(i != startsAt);
287 if (kind != 0x7fffffff)
289 jjmatchedKind = kind;
290 jjmatchedPos = curPos;
294 if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt)))
296 try { curChar = input_stream.readChar(); }
297 catch(java.io.IOException e) { return curPos; }
300 private static final int jjStopStringLiteralDfa_1(int pos, long active0, long active1, long active2)
305 if ((active0 & 0x4800L) != 0L || (active1 & 0x200000000000L) != 0L || (active2 & 0x1L) != 0L)
307 if ((active1 & 0x20000000000000L) != 0L)
309 if ((active1 & 0x2000080000000L) != 0L)
311 if ((active0 & 0xffffff8ffff00000L) != 0L || (active1 & 0x1ffL) != 0L)
318 if ((active0 & 0xdfffef8fff700000L) != 0L || (active1 & 0x177L) != 0L)
320 if (jjmatchedPos != 1)
327 if ((active0 & 0x4000L) != 0L)
329 if ((active0 & 0x2000100000800000L) != 0L || (active1 & 0x88L) != 0L)
333 if ((active0 & 0x1001400000400000L) != 0L || (active1 & 0x160L) != 0L)
335 if ((active0 & 0xcffeaf8fff300000L) != 0L || (active1 & 0x1fL) != 0L)
337 if (jjmatchedPos != 2)
346 if ((active0 & 0x62818023000000L) != 0L || (active1 & 0x7L) != 0L)
348 if ((active0 & 0xdf9c2e0fdc300000L) != 0L || (active1 & 0x58L) != 0L)
350 if (jjmatchedPos != 3)
359 if ((active0 & 0xda142c0fc1200000L) != 0L || (active1 & 0x4aL) != 0L)
365 if ((active0 & 0x58802001c100000L) != 0L || (active1 & 0x10L) != 0L)
369 if ((active0 & 0xc814000c01000000L) != 0L || (active1 & 0x8L) != 0L)
371 if ((active0 & 0x12002c03c0200000L) != 0L || (active1 & 0x42L) != 0L)
379 if ((active0 & 0x10002803c0000000L) != 0L || (active1 & 0x42L) != 0L)
381 if ((active0 & 0x200040000200000L) != 0L)
383 if (jjmatchedPos != 6)
392 if ((active0 & 0x200040000200000L) != 0L)
394 if ((active0 & 0x300000000L) != 0L)
402 if ((active0 & 0x300000000L) != 0L)
410 if ((active0 & 0x300000000L) != 0L)
418 if ((active0 & 0x300000000L) != 0L)
429 private static final int jjStartNfa_1(int pos, long active0, long active1, long active2)
431 return jjMoveNfa_1(jjStopStringLiteralDfa_1(pos, active0, active1, active2), pos + 1);
433 static private final int jjStartNfaWithStates_1(int pos, int kind, int state)
435 jjmatchedKind = kind;
437 try { curChar = input_stream.readChar(); }
438 catch(java.io.IOException e) { return pos + 1; }
439 return jjMoveNfa_1(state, pos + 1);
441 static private final int jjMoveStringLiteralDfa0_1()
447 return jjMoveStringLiteralDfa1_1(0x0L, 0xa000000000L, 0x0L);
449 return jjStopAtPos(0, 12);
451 return jjStartNfaWithStates_1(0, 117, 16);
454 return jjMoveStringLiteralDfa1_1(0x0L, 0x4000000000000L, 0x0L);
457 return jjMoveStringLiteralDfa1_1(0x0L, 0x400400000000000L, 0x0L);
459 return jjStopAtPos(0, 87);
461 return jjStopAtPos(0, 88);
464 return jjMoveStringLiteralDfa1_1(0x0L, 0x100000000000L, 0x0L);
467 return jjMoveStringLiteralDfa1_1(0x0L, 0x800040000000000L, 0x0L);
469 return jjStopAtPos(0, 94);
472 return jjMoveStringLiteralDfa1_1(0x1000000000L, 0x1000080000000000L, 0x0L);
475 return jjMoveStringLiteralDfa1_1(0x0L, 0x2000000000000L, 0x0L);
478 return jjMoveStringLiteralDfa1_1(0x4800L, 0x200000000000L, 0x0L);
481 return jjMoveStringLiteralDfa1_1(0x2000000000L, 0x0L, 0x0L);
483 return jjStopAtPos(0, 93);
486 return jjMoveStringLiteralDfa1_1(0x0L, 0x4800000000L, 0x120L);
489 return jjMoveStringLiteralDfa1_1(0x4000000000L, 0x10400000000L, 0x0L);
492 return jjMoveStringLiteralDfa1_1(0x0L, 0x1000000000L, 0x2c0L);
495 return jjMoveStringLiteralDfa1_1(0x10L, 0x0L, 0x0L);
497 return jjStopAtPos(0, 116);
499 return jjStopAtPos(0, 91);
501 return jjStopAtPos(0, 92);
504 return jjMoveStringLiteralDfa1_1(0x0L, 0x1000000000000L, 0x0L);
507 return jjMoveStringLiteralDfa1_1(0x2000000004000000L, 0x100L, 0x0L);
510 return jjMoveStringLiteralDfa1_1(0x8000000L, 0x3L, 0x0L);
513 return jjMoveStringLiteralDfa1_1(0x70000100000L, 0x0L, 0x0L);
516 return jjMoveStringLiteralDfa1_1(0x180000000000L, 0x8L, 0x0L);
519 return jjMoveStringLiteralDfa1_1(0xe00200023000000L, 0x0L, 0x0L);
522 return jjMoveStringLiteralDfa1_1(0x1080400000200000L, 0x10L, 0x0L);
525 return jjMoveStringLiteralDfa1_1(0x800400000000L, 0x0L, 0x0L);
528 return jjMoveStringLiteralDfa1_1(0x140800000L, 0x60L, 0x0L);
531 return jjMoveStringLiteralDfa1_1(0x8000000000L, 0x0L, 0x0L);
534 return jjMoveStringLiteralDfa1_1(0x3000000000000L, 0x0L, 0x0L);
537 return jjMoveStringLiteralDfa1_1(0x8000000000000000L, 0x80L, 0x0L);
540 return jjMoveStringLiteralDfa1_1(0x10000000L, 0x0L, 0x0L);
543 return jjMoveStringLiteralDfa1_1(0x4000280000000L, 0x4L, 0x0L);
546 return jjMoveStringLiteralDfa1_1(0x4018000800000000L, 0x0L, 0x0L);
549 return jjMoveStringLiteralDfa1_1(0x60000000000000L, 0x0L, 0x0L);
552 return jjMoveStringLiteralDfa1_1(0x400000L, 0x0L, 0x0L);
555 return jjMoveStringLiteralDfa1_1(0x100000000000000L, 0x0L, 0x0L);
557 return jjStopAtPos(0, 89);
560 return jjMoveStringLiteralDfa1_1(0x0L, 0x200800000000000L, 0x0L);
562 return jjStopAtPos(0, 90);
564 return jjMoveStringLiteralDfa1_1(0x0L, 0x8000000000000L, 0x0L);
566 return jjMoveNfa_1(3, 0);
569 static private final int jjMoveStringLiteralDfa1_1(long active0, long active1, long active2)
571 try { curChar = input_stream.readChar(); }
572 catch(java.io.IOException e) {
573 jjStopStringLiteralDfa_1(0, active0, active1, active2);
579 if ((active1 & 0x400000000000000L) != 0L)
580 return jjStopAtPos(1, 122);
583 if ((active0 & 0x4000L) != 0L)
584 return jjStartNfaWithStates_1(1, 14, 0);
587 if ((active1 & 0x800000000000000L) != 0L)
588 return jjStopAtPos(1, 123);
591 if ((active1 & 0x1000000000000000L) != 0L)
592 return jjStopAtPos(1, 124);
595 if ((active0 & 0x800L) != 0L)
596 return jjStopAtPos(1, 11);
599 if ((active0 & 0x2000000000L) != 0L)
600 return jjStopAtPos(1, 37);
603 if ((active2 & 0x20L) != 0L)
608 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0L, active2, 0x100L);
610 if ((active1 & 0x400000000L) != 0L)
615 else if ((active1 & 0x800000000L) != 0L)
616 return jjStopAtPos(1, 99);
617 else if ((active1 & 0x1000000000L) != 0L)
618 return jjStopAtPos(1, 100);
619 else if ((active1 & 0x2000000000L) != 0L)
624 else if ((active1 & 0x40000000000L) != 0L)
625 return jjStopAtPos(1, 106);
626 else if ((active1 & 0x80000000000L) != 0L)
627 return jjStopAtPos(1, 107);
628 else if ((active1 & 0x100000000000L) != 0L)
629 return jjStopAtPos(1, 108);
630 else if ((active1 & 0x200000000000L) != 0L)
631 return jjStopAtPos(1, 109);
632 else if ((active1 & 0x400000000000L) != 0L)
633 return jjStopAtPos(1, 110);
634 else if ((active1 & 0x800000000000L) != 0L)
635 return jjStopAtPos(1, 111);
636 else if ((active1 & 0x1000000000000L) != 0L)
637 return jjStopAtPos(1, 112);
638 else if ((active1 & 0x2000000000000L) != 0L)
639 return jjStopAtPos(1, 113);
640 else if ((active1 & 0x4000000000000L) != 0L)
641 return jjStopAtPos(1, 114);
642 else if ((active1 & 0x8000000000000L) != 0L)
643 return jjStopAtPos(1, 115);
644 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0x18000000000L, active2, 0L);
646 if ((active0 & 0x10L) != 0L)
647 return jjStopAtPos(1, 4);
648 else if ((active0 & 0x1000000000L) != 0L)
649 return jjStopAtPos(1, 36);
650 else if ((active0 & 0x4000000000L) != 0L)
651 return jjStopAtPos(1, 38);
652 else if ((active1 & 0x4000000000L) != 0L)
653 return jjStopAtPos(1, 102);
654 else if ((active2 & 0x40L) != 0L)
659 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0L, active2, 0x280L);
662 return jjMoveStringLiteralDfa2_1(active0, 0x80010000400000L, active1, 0L, active2, 0L);
665 return jjMoveStringLiteralDfa2_1(active0, 0x8000000000000000L, active1, 0L, active2, 0L);
668 return jjMoveStringLiteralDfa2_1(active0, 0x20000000L, active1, 0L, active2, 0L);
671 return jjMoveStringLiteralDfa2_1(active0, 0x5080280000000L, active1, 0x4L, active2, 0L);
674 if ((active0 & 0x800000L) != 0L)
675 return jjStartNfaWithStates_1(1, 23, 14);
679 return jjMoveStringLiteralDfa2_1(active0, 0x120000000000000L, active1, 0L, active2, 0L);
682 return jjMoveStringLiteralDfa2_1(active0, 0x8000000000L, active1, 0L, active2, 0L);
685 return jjMoveStringLiteralDfa2_1(active0, 0x403100000L, active1, 0x10L, active2, 0L);
688 return jjMoveStringLiteralDfa2_1(active0, 0xe00000140000000L, active1, 0x160L, active2, 0L);
691 if ((active0 & 0x100000000000L) != 0L)
696 return jjMoveStringLiteralDfa2_1(active0, 0x1000c60000000000L, active1, 0xbL, active2, 0L);
699 if ((active1 & 0x80L) != 0L)
700 return jjStartNfaWithStates_1(1, 71, 14);
701 return jjMoveStringLiteralDfa2_1(active0, 0x4000001c000000L, active1, 0L, active2, 0L);
704 if ((active0 & 0x2000000000000000L) != 0L)
705 return jjStartNfaWithStates_1(1, 61, 14);
709 return jjMoveStringLiteralDfa2_1(active0, 0x4000000800000000L, active1, 0L, active2, 0L);
712 return jjMoveStringLiteralDfa2_1(active0, 0xa000000200000L, active1, 0L, active2, 0L);
715 return jjMoveStringLiteralDfa2_1(active0, 0x10000000000000L, active1, 0L, active2, 0L);
718 return jjMoveStringLiteralDfa2_1(active0, 0x200000000000L, active1, 0L, active2, 0L);
720 if ((active1 & 0x200000000000000L) != 0L)
721 return jjStopAtPos(1, 121);
726 return jjStartNfa_1(0, active0, active1, active2);
728 static private final int jjMoveStringLiteralDfa2_1(long old0, long active0, long old1, long active1, long old2, long active2)
730 if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
731 return jjStartNfa_1(0, old0, old1, old2);
732 try { curChar = input_stream.readChar(); }
733 catch(java.io.IOException e) {
734 jjStopStringLiteralDfa_1(1, active0, active1, active2);
740 if ((active1 & 0x8000000000L) != 0L)
741 return jjStopAtPos(2, 103);
742 else if ((active1 & 0x10000000000L) != 0L)
743 return jjStopAtPos(2, 104);
744 else if ((active2 & 0x100L) != 0L)
745 return jjStopAtPos(2, 136);
746 else if ((active2 & 0x200L) != 0L)
747 return jjStopAtPos(2, 137);
750 if ((active2 & 0x80L) != 0L)
751 return jjStopAtPos(2, 135);
755 return jjMoveStringLiteralDfa3_1(active0, 0x800100000L, active1, 0x4L, active2, 0L);
758 return jjMoveStringLiteralDfa3_1(active0, 0x140000000L, active1, 0L, active2, 0L);
761 if ((active1 & 0x100L) != 0L)
762 return jjStartNfaWithStates_1(2, 72, 14);
763 return jjMoveStringLiteralDfa3_1(active0, 0xe00000000000000L, active1, 0L, active2, 0L);
766 return jjMoveStringLiteralDfa3_1(active0, 0x8000000L, active1, 0L, active2, 0L);
769 return jjMoveStringLiteralDfa3_1(active0, 0x80000000000L, active1, 0L, active2, 0L);
772 return jjMoveStringLiteralDfa3_1(active0, 0x20000000L, active1, 0L, active2, 0L);
775 return jjMoveStringLiteralDfa3_1(active0, 0x130000010000000L, active1, 0L, active2, 0L);
778 return jjMoveStringLiteralDfa3_1(active0, 0x8000000000000000L, active1, 0L, active2, 0L);
781 return jjMoveStringLiteralDfa3_1(active0, 0x82000000000000L, active1, 0L, active2, 0L);
784 return jjMoveStringLiteralDfa3_1(active0, 0x60000200000L, active1, 0L, active2, 0L);
787 return jjMoveStringLiteralDfa3_1(active0, 0x400000000L, active1, 0x13L, active2, 0L);
790 return jjMoveStringLiteralDfa3_1(active0, 0x8000000000000L, active1, 0L, active2, 0L);
793 return jjMoveStringLiteralDfa3_1(active0, 0x280000000L, active1, 0L, active2, 0L);
796 if ((active0 & 0x400000L) != 0L)
797 return jjStartNfaWithStates_1(2, 22, 14);
798 else if ((active0 & 0x400000000000L) != 0L)
803 return jjMoveStringLiteralDfa3_1(active0, 0x5000000004000000L, active1, 0L, active2, 0L);
806 return jjMoveStringLiteralDfa3_1(active0, 0x18003000000L, active1, 0L, active2, 0L);
809 if ((active1 & 0x20L) != 0L)
814 return jjMoveStringLiteralDfa3_1(active0, 0x4a00000000000L, active1, 0x40L, active2, 0L);
817 return jjMoveStringLiteralDfa3_1(active0, 0x40000000000000L, active1, 0x8L, active2, 0L);
820 if ((active0 & 0x1000000000000L) != 0L)
821 return jjStartNfaWithStates_1(2, 48, 14);
826 return jjStartNfa_1(1, active0, active1, active2);
828 static private final int jjMoveStringLiteralDfa3_1(long old0, long active0, long old1, long active1, long old2, long active2)
830 if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
831 return jjStartNfa_1(1, old0, old1, old2);
832 try { curChar = input_stream.readChar(); }
833 catch(java.io.IOException e) {
834 jjStopStringLiteralDfa_1(2, active0, active1, 0L);
841 return jjMoveStringLiteralDfa4_1(active0, 0x8000c000000L, active1, 0x10L);
844 return jjMoveStringLiteralDfa4_1(active0, 0x400000000L, active1, 0x8L);
847 return jjMoveStringLiteralDfa4_1(active0, 0x200000L, active1, 0L);
850 if ((active0 & 0x2000000L) != 0L)
855 else if ((active0 & 0x10000000000L) != 0L)
856 return jjStartNfaWithStates_1(3, 40, 14);
857 else if ((active0 & 0x40000000000000L) != 0L)
858 return jjStartNfaWithStates_1(3, 54, 14);
859 return jjMoveStringLiteralDfa4_1(active0, 0x9008200001000000L, active1, 0x40L);
862 return jjMoveStringLiteralDfa4_1(active0, 0x800000000000000L, active1, 0L);
865 return jjMoveStringLiteralDfa4_1(active0, 0x4400000000000000L, active1, 0L);
868 if ((active0 & 0x2000000000000L) != 0L)
869 return jjStartNfaWithStates_1(3, 49, 14);
870 else if ((active1 & 0x1L) != 0L)
875 else if ((active1 & 0x4L) != 0L)
876 return jjStartNfaWithStates_1(3, 66, 14);
877 return jjMoveStringLiteralDfa4_1(active0, 0x100000140000000L, active1, 0x2L);
880 return jjMoveStringLiteralDfa4_1(active0, 0x10000000L, active1, 0L);
883 if ((active0 & 0x20000000L) != 0L)
884 return jjStartNfaWithStates_1(3, 29, 14);
885 else if ((active0 & 0x800000000000L) != 0L)
886 return jjStartNfaWithStates_1(3, 47, 14);
890 if ((active0 & 0x20000000000000L) != 0L)
891 return jjStartNfaWithStates_1(3, 53, 14);
892 return jjMoveStringLiteralDfa4_1(active0, 0x80020000100000L, active1, 0L);
895 if ((active0 & 0x8000000000L) != 0L)
896 return jjStartNfaWithStates_1(3, 39, 14);
897 return jjMoveStringLiteralDfa4_1(active0, 0x10040800000000L, active1, 0L);
900 return jjMoveStringLiteralDfa4_1(active0, 0x4000280000000L, active1, 0L);
903 return jjMoveStringLiteralDfa4_1(active0, 0x200000000000000L, active1, 0L);
907 return jjStartNfa_1(2, active0, active1, 0L);
909 static private final int jjMoveStringLiteralDfa4_1(long old0, long active0, long old1, long active1)
911 if (((active0 &= old0) | (active1 &= old1)) == 0L)
912 return jjStartNfa_1(2, old0, old1, 0L);
913 try { curChar = input_stream.readChar(); }
914 catch(java.io.IOException e) {
915 jjStopStringLiteralDfa_1(3, active0, active1, 0L);
922 return jjMoveStringLiteralDfa5_1(active0, 0x1000000400000000L, active1, 0L);
925 return jjMoveStringLiteralDfa5_1(active0, 0x8010000000000000L, active1, 0L);
928 if ((active0 & 0x80000000000000L) != 0L)
929 return jjStartNfaWithStates_1(4, 55, 14);
930 else if ((active0 & 0x100000000000000L) != 0L)
931 return jjStartNfaWithStates_1(4, 56, 14);
932 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x2L);
935 if ((active0 & 0x400000000000000L) != 0L)
936 return jjStartNfaWithStates_1(4, 58, 14);
940 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x40L);
943 return jjMoveStringLiteralDfa5_1(active0, 0x200000000000000L, active1, 0L);
946 return jjMoveStringLiteralDfa5_1(active0, 0x40a81000000L, active1, 0L);
949 if ((active0 & 0x8000000L) != 0L)
950 return jjStartNfaWithStates_1(4, 27, 14);
954 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x8L);
957 return jjMoveStringLiteralDfa5_1(active0, 0x4000200000000000L, active1, 0L);
960 return jjMoveStringLiteralDfa5_1(active0, 0x800000000000000L, active1, 0L);
963 if ((active0 & 0x8000000000000L) != 0L)
964 return jjStartNfaWithStates_1(4, 51, 14);
965 return jjMoveStringLiteralDfa5_1(active0, 0x4000000000000L, active1, 0L);
968 if ((active0 & 0x100000L) != 0L)
969 return jjStartNfaWithStates_1(4, 20, 14);
973 if ((active0 & 0x10000000L) != 0L)
974 return jjStartNfaWithStates_1(4, 28, 14);
975 else if ((active0 & 0x20000000000L) != 0L)
976 return jjStartNfaWithStates_1(4, 41, 14);
977 else if ((active1 & 0x10L) != 0L)
978 return jjStartNfaWithStates_1(4, 68, 14);
979 return jjMoveStringLiteralDfa5_1(active0, 0x200000L, active1, 0L);
982 return jjMoveStringLiteralDfa5_1(active0, 0x80140000000L, active1, 0L);
985 if ((active0 & 0x4000000L) != 0L)
986 return jjStartNfaWithStates_1(4, 26, 14);
991 return jjStartNfa_1(3, active0, active1, 0L);
993 static private final int jjMoveStringLiteralDfa5_1(long old0, long active0, long old1, long active1)
995 if (((active0 &= old0) | (active1 &= old1)) == 0L)
996 return jjStartNfa_1(3, old0, old1, 0L);
997 try { curChar = input_stream.readChar(); }
998 catch(java.io.IOException e) {
999 jjStopStringLiteralDfa_1(4, active0, active1, 0L);
1006 return jjMoveStringLiteralDfa6_1(active0, 0L, active1, 0x2L);
1009 if ((active0 & 0x800000000L) != 0L)
1010 return jjStartNfaWithStates_1(5, 35, 14);
1011 return jjMoveStringLiteralDfa6_1(active0, 0x1000000000000000L, active1, 0L);
1014 return jjMoveStringLiteralDfa6_1(active0, 0x200140000000L, active1, 0L);
1017 if ((active1 & 0x8L) != 0L)
1018 return jjStartNfaWithStates_1(5, 67, 14);
1019 return jjMoveStringLiteralDfa6_1(active0, 0L, active1, 0x40L);
1022 if ((active0 & 0x1000000L) != 0L)
1023 return jjStartNfaWithStates_1(5, 24, 14);
1027 if ((active0 & 0x4000000000000000L) != 0L)
1028 return jjStartNfaWithStates_1(5, 62, 14);
1032 if ((active0 & 0x10000000000000L) != 0L)
1033 return jjStartNfaWithStates_1(5, 52, 14);
1037 return jjMoveStringLiteralDfa6_1(active0, 0x200000000200000L, active1, 0L);
1040 if ((active0 & 0x400000000L) != 0L)
1041 return jjStartNfaWithStates_1(5, 34, 14);
1042 return jjMoveStringLiteralDfa6_1(active0, 0x80000000000L, active1, 0L);
1045 if ((active0 & 0x4000000000000L) != 0L)
1046 return jjStartNfaWithStates_1(5, 50, 14);
1047 return jjMoveStringLiteralDfa6_1(active0, 0x40000000000L, active1, 0L);
1050 if ((active0 & 0x800000000000000L) != 0L)
1051 return jjStartNfaWithStates_1(5, 59, 14);
1052 return jjMoveStringLiteralDfa6_1(active0, 0x280000000L, active1, 0L);
1055 if ((active0 & 0x8000000000000000L) != 0L)
1056 return jjStartNfaWithStates_1(5, 63, 14);
1061 return jjStartNfa_1(4, active0, active1, 0L);
1063 static private final int jjMoveStringLiteralDfa6_1(long old0, long active0, long old1, long active1)
1065 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1066 return jjStartNfa_1(4, old0, old1, 0L);
1067 try { curChar = input_stream.readChar(); }
1068 catch(java.io.IOException e) {
1069 jjStopStringLiteralDfa_1(5, active0, active1, 0L);
1076 if ((active0 & 0x40000000L) != 0L)
1081 else if ((active0 & 0x80000000L) != 0L)
1086 return jjMoveStringLiteralDfa7_1(active0, 0x300000000L, active1, 0L);
1089 if ((active0 & 0x1000000000000000L) != 0L)
1090 return jjStartNfaWithStates_1(6, 60, 14);
1094 return jjMoveStringLiteralDfa7_1(active0, 0x200000000000000L, active1, 0L);
1097 if ((active1 & 0x2L) != 0L)
1098 return jjStartNfaWithStates_1(6, 65, 14);
1102 return jjMoveStringLiteralDfa7_1(active0, 0x200000L, active1, 0L);
1105 if ((active1 & 0x40L) != 0L)
1106 return jjStartNfaWithStates_1(6, 70, 14);
1110 if ((active0 & 0x200000000000L) != 0L)
1111 return jjStartNfaWithStates_1(6, 45, 14);
1115 if ((active0 & 0x80000000000L) != 0L)
1116 return jjStartNfaWithStates_1(6, 43, 14);
1120 return jjMoveStringLiteralDfa7_1(active0, 0x40000000000L, active1, 0L);
1124 return jjStartNfa_1(5, active0, active1, 0L);
1126 static private final int jjMoveStringLiteralDfa7_1(long old0, long active0, long old1, long active1)
1128 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1129 return jjStartNfa_1(5, old0, old1, 0L);
1130 try { curChar = input_stream.readChar(); }
1131 catch(java.io.IOException e) {
1132 jjStopStringLiteralDfa_1(6, active0, 0L, 0L);
1138 return jjMoveStringLiteralDfa8_1(active0, 0x300000000L);
1141 if ((active0 & 0x40000000000L) != 0L)
1142 return jjStartNfaWithStates_1(7, 42, 14);
1143 else if ((active0 & 0x200000000000000L) != 0L)
1144 return jjStartNfaWithStates_1(7, 57, 14);
1148 if ((active0 & 0x200000L) != 0L)
1149 return jjStartNfaWithStates_1(7, 21, 14);
1154 return jjStartNfa_1(6, active0, 0L, 0L);
1156 static private final int jjMoveStringLiteralDfa8_1(long old0, long active0)
1158 if (((active0 &= old0)) == 0L)
1159 return jjStartNfa_1(6, old0, 0L, 0L);
1160 try { curChar = input_stream.readChar(); }
1161 catch(java.io.IOException e) {
1162 jjStopStringLiteralDfa_1(7, active0, 0L, 0L);
1169 return jjMoveStringLiteralDfa9_1(active0, 0x300000000L);
1173 return jjStartNfa_1(7, active0, 0L, 0L);
1175 static private final int jjMoveStringLiteralDfa9_1(long old0, long active0)
1177 if (((active0 &= old0)) == 0L)
1178 return jjStartNfa_1(7, old0, 0L, 0L);
1179 try { curChar = input_stream.readChar(); }
1180 catch(java.io.IOException e) {
1181 jjStopStringLiteralDfa_1(8, active0, 0L, 0L);
1188 return jjMoveStringLiteralDfa10_1(active0, 0x300000000L);
1192 return jjStartNfa_1(8, active0, 0L, 0L);
1194 static private final int jjMoveStringLiteralDfa10_1(long old0, long active0)
1196 if (((active0 &= old0)) == 0L)
1197 return jjStartNfa_1(8, old0, 0L, 0L);
1198 try { curChar = input_stream.readChar(); }
1199 catch(java.io.IOException e) {
1200 jjStopStringLiteralDfa_1(9, active0, 0L, 0L);
1207 return jjMoveStringLiteralDfa11_1(active0, 0x300000000L);
1211 return jjStartNfa_1(9, active0, 0L, 0L);
1213 static private final int jjMoveStringLiteralDfa11_1(long old0, long active0)
1215 if (((active0 &= old0)) == 0L)
1216 return jjStartNfa_1(9, old0, 0L, 0L);
1217 try { curChar = input_stream.readChar(); }
1218 catch(java.io.IOException e) {
1219 jjStopStringLiteralDfa_1(10, active0, 0L, 0L);
1226 if ((active0 & 0x100000000L) != 0L)
1227 return jjStartNfaWithStates_1(11, 32, 14);
1228 else if ((active0 & 0x200000000L) != 0L)
1229 return jjStartNfaWithStates_1(11, 33, 14);
1234 return jjStartNfa_1(10, active0, 0L, 0L);
1236 static final long[] jjbitVec0 = {
1237 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
1239 static private final int jjMoveNfa_1(int startState, int curPos)
1245 jjstateSet[0] = startState;
1246 int j, kind = 0x7fffffff;
1249 if (++jjround == 0x7fffffff)
1253 long l = 1L << curChar;
1256 switch(jjstateSet[--i])
1259 if ((0x3ff000000000000L & l) != 0L)
1260 jjCheckNAddStates(0, 6);
1261 else if (curChar == 39)
1262 jjCheckNAddStates(7, 12);
1263 else if (curChar == 34)
1264 jjCheckNAddStates(13, 18);
1265 else if (curChar == 36)
1266 jjstateSet[jjnewStateCnt++] = 16;
1267 else if (curChar == 46)
1269 else if (curChar == 47)
1270 jjstateSet[jjnewStateCnt++] = 2;
1271 if ((0x3fe000000000000L & l) != 0L)
1275 jjCheckNAddTwoStates(5, 6);
1277 else if (curChar == 48)
1281 jjCheckNAddStates(19, 21);
1286 jjstateSet[jjnewStateCnt++] = 1;
1289 if ((0xffff7fffffffffffL & l) != 0L && kind > 13)
1294 jjstateSet[jjnewStateCnt++] = 0;
1297 if ((0x3fe000000000000L & l) == 0L)
1301 jjCheckNAddTwoStates(5, 6);
1304 if ((0x3ff000000000000L & l) == 0L)
1308 jjCheckNAddTwoStates(5, 6);
1315 if ((0x3ff000000000000L & l) == 0L)
1319 jjCheckNAddStates(22, 24);
1322 if ((0x280000000000L & l) != 0L)
1326 if ((0x3ff000000000000L & l) == 0L)
1330 jjCheckNAddTwoStates(11, 12);
1333 if ((0x3ff000000000000L & l) == 0L)
1337 jjstateSet[jjnewStateCnt++] = 14;
1341 jjstateSet[jjnewStateCnt++] = 16;
1344 if ((0x3ff000000000000L & l) == 0L)
1348 jjstateSet[jjnewStateCnt++] = 17;
1351 if ((0x3ff000000000000L & l) != 0L)
1352 jjCheckNAddStates(0, 6);
1355 if ((0x3ff000000000000L & l) != 0L)
1356 jjCheckNAddTwoStates(19, 20);
1363 jjCheckNAddStates(25, 27);
1366 if ((0x3ff000000000000L & l) == 0L)
1370 jjCheckNAddStates(25, 27);
1373 if ((0x280000000000L & l) != 0L)
1377 if ((0x3ff000000000000L & l) == 0L)
1381 jjCheckNAddTwoStates(24, 12);
1384 if ((0x3ff000000000000L & l) != 0L)
1385 jjCheckNAddTwoStates(25, 26);
1388 if ((0x280000000000L & l) != 0L)
1392 if ((0x3ff000000000000L & l) == 0L)
1396 jjCheckNAddTwoStates(28, 12);
1399 if ((0x3ff000000000000L & l) != 0L)
1400 jjCheckNAddStates(28, 30);
1403 if ((0x280000000000L & l) != 0L)
1407 if ((0x3ff000000000000L & l) != 0L)
1408 jjCheckNAddTwoStates(32, 12);
1415 jjCheckNAddStates(19, 21);
1418 if ((0x3ff000000000000L & l) == 0L)
1422 jjCheckNAddTwoStates(35, 6);
1425 if ((0xff000000000000L & l) == 0L)
1429 jjCheckNAddTwoStates(36, 6);
1433 jjCheckNAddStates(13, 18);
1436 if ((0xfffffffbffffffffL & l) != 0L)
1437 jjCheckNAddStates(31, 33);
1441 jjCheckNAddStates(31, 33);
1444 if (curChar == 34 && kind > 79)
1448 if ((0xfffffffbffffffffL & l) != 0L)
1449 jjCheckNAddStates(34, 36);
1453 jjCheckNAddStates(34, 36);
1456 if (curChar == 34 && kind > 80)
1461 jjCheckNAddStates(7, 12);
1464 if ((0xffffff7fffffffffL & l) != 0L)
1465 jjCheckNAddStates(37, 39);
1469 jjCheckNAddStates(37, 39);
1472 if (curChar == 39 && kind > 79)
1476 if ((0xffffff7fffffffffL & l) != 0L)
1477 jjCheckNAddStates(40, 42);
1481 jjCheckNAddStates(40, 42);
1484 if (curChar == 39 && kind > 81)
1488 jjAddStates(43, 45);
1491 jjAddStates(46, 48);
1495 } while(i != startsAt);
1497 else if (curChar < 128)
1499 long l = 1L << (curChar & 077);
1502 switch(jjstateSet[--i])
1505 if ((0x87fffffe87fffffeL & l) != 0L)
1511 else if (curChar == 96)
1512 jjCheckNAddStates(49, 54);
1519 if ((0x100000001000L & l) != 0L && kind > 73)
1523 if ((0x2000000020L & l) != 0L)
1524 jjAddStates(55, 56);
1527 if ((0x5000000050L & l) != 0L && kind > 77)
1532 if ((0x87fffffe87fffffeL & l) == 0L)
1540 if ((0x87fffffe87fffffeL & l) == 0L)
1547 if ((0x2000000020L & l) != 0L)
1548 jjAddStates(57, 58);
1551 if ((0x2000000020L & l) != 0L)
1552 jjAddStates(59, 60);
1555 if ((0x2000000020L & l) != 0L)
1556 jjAddStates(61, 62);
1559 if ((0x100000001000000L & l) != 0L)
1563 if ((0x7e0000007eL & l) == 0L)
1567 jjCheckNAddTwoStates(35, 6);
1570 jjAddStates(31, 33);
1574 jjstateSet[jjnewStateCnt++] = 39;
1577 jjAddStates(34, 36);
1581 jjstateSet[jjnewStateCnt++] = 43;
1584 jjAddStates(37, 39);
1588 jjstateSet[jjnewStateCnt++] = 48;
1591 jjAddStates(40, 42);
1595 jjstateSet[jjnewStateCnt++] = 52;
1599 jjCheckNAddStates(49, 54);
1602 if ((0xfffffffeffffffffL & l) != 0L)
1603 jjCheckNAddStates(43, 45);
1607 jjCheckNAddStates(43, 45);
1611 jjstateSet[jjnewStateCnt++] = 57;
1614 if (curChar == 96 && kind > 79)
1618 if ((0xfffffffeffffffffL & l) != 0L)
1619 jjCheckNAddStates(46, 48);
1623 jjCheckNAddStates(46, 48);
1627 jjstateSet[jjnewStateCnt++] = 61;
1630 if (curChar == 96 && kind > 82)
1635 } while(i != startsAt);
1639 int i2 = (curChar & 0xff) >> 6;
1640 long l2 = 1L << (curChar & 077);
1643 switch(jjstateSet[--i])
1647 if ((jjbitVec0[i2] & l2) == 0L)
1654 if ((jjbitVec0[i2] & l2) != 0L && kind > 13)
1659 if ((jjbitVec0[i2] & l2) == 0L)
1666 if ((jjbitVec0[i2] & l2) != 0L)
1667 jjAddStates(31, 33);
1670 if ((jjbitVec0[i2] & l2) != 0L)
1671 jjAddStates(34, 36);
1674 if ((jjbitVec0[i2] & l2) != 0L)
1675 jjAddStates(37, 39);
1678 if ((jjbitVec0[i2] & l2) != 0L)
1679 jjAddStates(40, 42);
1682 if ((jjbitVec0[i2] & l2) != 0L)
1683 jjAddStates(43, 45);
1686 if ((jjbitVec0[i2] & l2) != 0L)
1687 jjAddStates(46, 48);
1691 } while(i != startsAt);
1693 if (kind != 0x7fffffff)
1695 jjmatchedKind = kind;
1696 jjmatchedPos = curPos;
1700 if ((i = jjnewStateCnt) == (startsAt = 64 - (jjnewStateCnt = startsAt)))
1702 try { curChar = input_stream.readChar(); }
1703 catch(java.io.IOException e) { return curPos; }
1706 static private final int jjMoveStringLiteralDfa0_3()
1711 return jjMoveStringLiteralDfa1_3(0x20000L);
1716 static private final int jjMoveStringLiteralDfa1_3(long active0)
1718 try { curChar = input_stream.readChar(); }
1719 catch(java.io.IOException e) {
1725 if ((active0 & 0x20000L) != 0L)
1726 return jjStopAtPos(1, 17);
1733 static final int[] jjnextStates = {
1734 19, 20, 25, 26, 29, 30, 12, 47, 49, 50, 51, 53, 54, 38, 40, 41,
1735 42, 44, 45, 34, 36, 6, 8, 9, 12, 21, 22, 12, 29, 30, 12, 38,
1736 40, 41, 42, 44, 45, 47, 49, 50, 51, 53, 54, 56, 58, 59, 60, 62,
1737 63, 56, 58, 59, 60, 62, 63, 10, 11, 23, 24, 27, 28, 31, 32,
1739 public static final String[] jjstrLiteralImages = {
1740 "", "\74\77", null, "\74\77\75", "\77\76", null, null, null, null, null, null,
1741 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1742 null, null, null, null, null, null, null, null, null, null, null, "\55\76",
1743 "\72\72", "\75\76", null, null, null, null, null, null, null, null, null, null, null,
1744 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1745 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1746 null, null, null, null, null, null, null, null, null, "\50", "\51", "\173", "\175",
1747 "\133", "\135", "\73", "\54", "\56", "\76", "\74", "\75\75", "\74\75", "\76\75",
1748 "\41\75", "\74\76", "\41\75\75", "\75\75\75", "\75", "\53\75", "\55\75", "\52\75",
1749 "\57\75", "\46\75", "\174\75", "\136\75", "\56\75", "\45\75", "\176\75", "\100", "\44",
1750 "\41", "\77", "\72", "\174\174", "\46\46", "\53\53", "\55\55", "\53", "\55", "\52",
1751 "\57", "\46", "\174", "\136", "\45", "\74\74", "\76\76", "\76\76\76", "\74\74\75",
1752 "\76\76\75", null, };
1753 public static final String[] lexStateNames = {
1756 "IN_SINGLE_LINE_COMMENT",
1757 "IN_FORMAL_COMMENT",
1758 "IN_MULTI_LINE_COMMENT",
1760 public static final int[] jjnewLexState = {
1761 -1, 1, 1, 1, 0, -1, -1, -1, -1, -1, -1, 2, 2, 3, 4, 1, 0, 1, 1, -1, -1, -1, -1, -1, -1,
1762 -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,
1763 -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,
1764 -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,
1765 -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,
1766 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1768 static final long[] jjtoToken = {
1769 0xfffffffffff0001fL, 0xffffffffff8fa3ffL, 0x7ffL,
1771 static final long[] jjtoSkip = {
1772 0x7ffe0L, 0x0L, 0x0L,
1774 static final long[] jjtoSpecial = {
1775 0x7f800L, 0x0L, 0x0L,
1777 static final long[] jjtoMore = {
1778 0x80000L, 0x0L, 0x0L,
1780 static protected SimpleCharStream input_stream;
1781 static private final int[] jjrounds = new int[64];
1782 static private final int[] jjstateSet = new int[128];
1783 static StringBuffer image;
1784 static int jjimageLen;
1785 static int lengthOfMatch;
1786 static protected char curChar;
1787 public PHPParserTokenManager(SimpleCharStream stream)
1789 if (input_stream != null)
1790 throw new TokenMgrError("ERROR: Second call to constructor of static lexer. You must use ReInit() to initialize the static variables.", TokenMgrError.STATIC_LEXER_ERROR);
1791 input_stream = stream;
1793 public PHPParserTokenManager(SimpleCharStream stream, int lexState)
1798 static public void ReInit(SimpleCharStream stream)
1800 jjmatchedPos = jjnewStateCnt = 0;
1801 curLexState = defaultLexState;
1802 input_stream = stream;
1805 static private final void ReInitRounds()
1808 jjround = 0x80000001;
1809 for (i = 64; i-- > 0;)
1810 jjrounds[i] = 0x80000000;
1812 static public void ReInit(SimpleCharStream stream, int lexState)
1817 static public void SwitchTo(int lexState)
1819 if (lexState >= 5 || lexState < 0)
1820 throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
1822 curLexState = lexState;
1825 static protected Token jjFillToken()
1827 Token t = Token.newToken(jjmatchedKind);
1828 t.kind = jjmatchedKind;
1829 String im = jjstrLiteralImages[jjmatchedKind];
1830 t.image = (im == null) ? input_stream.GetImage() : im;
1831 t.beginLine = input_stream.getBeginLine();
1832 t.beginColumn = input_stream.getBeginColumn();
1833 t.endLine = input_stream.getEndLine();
1834 t.endColumn = input_stream.getEndColumn();
1838 static int curLexState = 0;
1839 static int defaultLexState = 0;
1840 static int jjnewStateCnt;
1842 static int jjmatchedPos;
1843 static int jjmatchedKind;
1845 public static Token getNextToken()
1848 Token specialToken = null;
1857 curChar = input_stream.BeginToken();
1859 catch(java.io.IOException e)
1862 matchedToken = jjFillToken();
1863 matchedToken.specialToken = specialToken;
1864 return matchedToken;
1874 jjmatchedKind = 0x7fffffff;
1876 curPos = jjMoveStringLiteralDfa0_0();
1877 if (jjmatchedPos == 0 && jjmatchedKind > 5)
1883 try { input_stream.backup(0);
1884 while (curChar <= 32 && (0x100003600L & (1L << curChar)) != 0L)
1885 curChar = input_stream.BeginToken();
1887 catch (java.io.IOException e1) { continue EOFLoop; }
1888 jjmatchedKind = 0x7fffffff;
1890 curPos = jjMoveStringLiteralDfa0_1();
1893 jjmatchedKind = 0x7fffffff;
1895 curPos = jjMoveStringLiteralDfa0_2();
1896 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1902 jjmatchedKind = 0x7fffffff;
1904 curPos = jjMoveStringLiteralDfa0_3();
1905 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1911 jjmatchedKind = 0x7fffffff;
1913 curPos = jjMoveStringLiteralDfa0_4();
1914 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1920 if (jjmatchedKind != 0x7fffffff)
1922 if (jjmatchedPos + 1 < curPos)
1923 input_stream.backup(curPos - jjmatchedPos - 1);
1924 if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1926 matchedToken = jjFillToken();
1927 matchedToken.specialToken = specialToken;
1928 if (jjnewLexState[jjmatchedKind] != -1)
1929 curLexState = jjnewLexState[jjmatchedKind];
1930 return matchedToken;
1932 else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1934 if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1936 matchedToken = jjFillToken();
1937 if (specialToken == null)
1938 specialToken = matchedToken;
1941 matchedToken.specialToken = specialToken;
1942 specialToken = (specialToken.next = matchedToken);
1944 SkipLexicalActions(matchedToken);
1947 SkipLexicalActions(null);
1948 if (jjnewLexState[jjmatchedKind] != -1)
1949 curLexState = jjnewLexState[jjmatchedKind];
1952 jjimageLen += jjmatchedPos + 1;
1953 if (jjnewLexState[jjmatchedKind] != -1)
1954 curLexState = jjnewLexState[jjmatchedKind];
1956 jjmatchedKind = 0x7fffffff;
1958 curChar = input_stream.readChar();
1961 catch (java.io.IOException e1) { }
1963 int error_line = input_stream.getEndLine();
1964 int error_column = input_stream.getEndColumn();
1965 String error_after = null;
1966 boolean EOFSeen = false;
1967 try { input_stream.readChar(); input_stream.backup(1); }
1968 catch (java.io.IOException e1) {
1970 error_after = curPos <= 1 ? "" : input_stream.GetImage();
1971 if (curChar == '\n' || curChar == '\r') {
1979 input_stream.backup(1);
1980 error_after = curPos <= 1 ? "" : input_stream.GetImage();
1982 throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
1987 static void SkipLexicalActions(Token matchedToken)
1989 switch(jjmatchedKind)
1993 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
1995 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
1996 input_stream.backup(1);