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);
40 static private final int jjMoveStringLiteralDfa1_0(long active0)
42 try { curChar = input_stream.readChar(); }
43 catch(java.io.IOException e) {
49 if ((active0 & 0x2L) != 0L)
54 return jjMoveStringLiteralDfa2_0(active0, 0xcL);
59 static private final int jjMoveStringLiteralDfa2_0(long old0, long active0)
61 if (((active0 &= old0)) == 0L)
63 try { curChar = input_stream.readChar(); }
64 catch(java.io.IOException e) {
70 if ((active0 & 0x8L) != 0L)
71 return jjStopAtPos(2, 3);
75 return jjMoveStringLiteralDfa3_0(active0, 0x4L);
81 static private final int jjMoveStringLiteralDfa3_0(long old0, long active0)
83 if (((active0 &= old0)) == 0L)
85 try { curChar = input_stream.readChar(); }
86 catch(java.io.IOException e) {
93 return jjMoveStringLiteralDfa4_0(active0, 0x4L);
98 static private final int jjMoveStringLiteralDfa4_0(long old0, long active0)
100 if (((active0 &= old0)) == 0L)
102 try { curChar = input_stream.readChar(); }
103 catch(java.io.IOException e) {
110 if ((active0 & 0x4L) != 0L)
111 return jjStopAtPos(4, 2);
118 static private final int jjMoveStringLiteralDfa0_4()
123 return jjMoveStringLiteralDfa1_4(0x40000L);
128 static private final int jjMoveStringLiteralDfa1_4(long active0)
130 try { curChar = input_stream.readChar(); }
131 catch(java.io.IOException e) {
137 if ((active0 & 0x40000L) != 0L)
138 return jjStopAtPos(1, 18);
145 private static final int jjStopStringLiteralDfa_2(int pos, long active0)
153 private static final int jjStartNfa_2(int pos, long active0)
155 return jjMoveNfa_2(jjStopStringLiteralDfa_2(pos, active0), pos + 1);
157 static private final int jjStartNfaWithStates_2(int pos, int kind, int state)
159 jjmatchedKind = kind;
161 try { curChar = input_stream.readChar(); }
162 catch(java.io.IOException e) { return pos + 1; }
163 return jjMoveNfa_2(state, pos + 1);
165 static private final int jjMoveStringLiteralDfa0_2()
170 return jjMoveStringLiteralDfa1_2(0x10000L);
172 return jjMoveNfa_2(0, 0);
175 static private final int jjMoveStringLiteralDfa1_2(long active0)
177 try { curChar = input_stream.readChar(); }
178 catch(java.io.IOException e) {
179 jjStopStringLiteralDfa_2(0, active0);
185 if ((active0 & 0x10000L) != 0L)
186 return jjStopAtPos(1, 16);
191 return jjStartNfa_2(0, active0);
193 static private final void jjCheckNAdd(int state)
195 if (jjrounds[state] != jjround)
197 jjstateSet[jjnewStateCnt++] = state;
198 jjrounds[state] = jjround;
201 static private final void jjAddStates(int start, int end)
204 jjstateSet[jjnewStateCnt++] = jjnextStates[start];
205 } while (start++ != end);
207 static private final void jjCheckNAddTwoStates(int state1, int state2)
212 static private final void jjCheckNAddStates(int start, int end)
215 jjCheckNAdd(jjnextStates[start]);
216 } while (start++ != end);
218 static private final void jjCheckNAddStates(int start)
220 jjCheckNAdd(jjnextStates[start]);
221 jjCheckNAdd(jjnextStates[start + 1]);
223 static private final int jjMoveNfa_2(int startState, int curPos)
229 jjstateSet[0] = startState;
230 int j, kind = 0x7fffffff;
233 if (++jjround == 0x7fffffff)
237 long l = 1L << curChar;
240 switch(jjstateSet[--i])
243 if ((0x2400L & l) != 0L)
249 jjstateSet[jjnewStateCnt++] = 1;
252 if (curChar == 10 && kind > 15)
257 jjstateSet[jjnewStateCnt++] = 1;
261 } while(i != startsAt);
263 else if (curChar < 128)
265 long l = 1L << (curChar & 077);
268 switch(jjstateSet[--i])
272 } while(i != startsAt);
276 int i2 = (curChar & 0xff) >> 6;
277 long l2 = 1L << (curChar & 077);
280 switch(jjstateSet[--i])
284 } while(i != startsAt);
286 if (kind != 0x7fffffff)
288 jjmatchedKind = kind;
289 jjmatchedPos = curPos;
293 if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt)))
295 try { curChar = input_stream.readChar(); }
296 catch(java.io.IOException e) { return curPos; }
299 private static final int jjStopStringLiteralDfa_1(int pos, long active0, long active1, long active2)
304 if ((active0 & 0x4800L) != 0L || (active1 & 0x200000000000L) != 0L || (active2 & 0x1L) != 0L)
306 if ((active1 & 0x20000000000000L) != 0L)
308 if ((active1 & 0x2000080000000L) != 0L)
310 if ((active0 & 0xffffff8ffff00000L) != 0L || (active1 & 0x1ffL) != 0L)
317 if ((active0 & 0xdfffef8fff700000L) != 0L || (active1 & 0x177L) != 0L)
319 if (jjmatchedPos != 1)
326 if ((active0 & 0x4000L) != 0L)
328 if ((active0 & 0x2000100000800000L) != 0L || (active1 & 0x88L) != 0L)
332 if ((active0 & 0x1001400000400000L) != 0L || (active1 & 0x160L) != 0L)
334 if ((active0 & 0xcffeaf8fff300000L) != 0L || (active1 & 0x1fL) != 0L)
336 if (jjmatchedPos != 2)
345 if ((active0 & 0x62818023000000L) != 0L || (active1 & 0x7L) != 0L)
347 if ((active0 & 0xdf9c2e0fdc300000L) != 0L || (active1 & 0x58L) != 0L)
349 if (jjmatchedPos != 3)
358 if ((active0 & 0xda142c0fc1200000L) != 0L || (active1 & 0x4aL) != 0L)
364 if ((active0 & 0x58802001c100000L) != 0L || (active1 & 0x10L) != 0L)
368 if ((active0 & 0xc814000c01000000L) != 0L || (active1 & 0x8L) != 0L)
370 if ((active0 & 0x12002c03c0200000L) != 0L || (active1 & 0x42L) != 0L)
378 if ((active0 & 0x10002803c0000000L) != 0L || (active1 & 0x42L) != 0L)
380 if ((active0 & 0x200040000200000L) != 0L)
382 if (jjmatchedPos != 6)
391 if ((active0 & 0x200040000200000L) != 0L)
393 if ((active0 & 0x300000000L) != 0L)
401 if ((active0 & 0x300000000L) != 0L)
409 if ((active0 & 0x300000000L) != 0L)
417 if ((active0 & 0x300000000L) != 0L)
428 private static final int jjStartNfa_1(int pos, long active0, long active1, long active2)
430 return jjMoveNfa_1(jjStopStringLiteralDfa_1(pos, active0, active1, active2), pos + 1);
432 static private final int jjStartNfaWithStates_1(int pos, int kind, int state)
434 jjmatchedKind = kind;
436 try { curChar = input_stream.readChar(); }
437 catch(java.io.IOException e) { return pos + 1; }
438 return jjMoveNfa_1(state, pos + 1);
440 static private final int jjMoveStringLiteralDfa0_1()
446 return jjMoveStringLiteralDfa1_1(0x0L, 0xa000000000L, 0x0L);
448 return jjStopAtPos(0, 12);
450 return jjStartNfaWithStates_1(0, 117, 16);
453 return jjMoveStringLiteralDfa1_1(0x0L, 0x4000000000000L, 0x0L);
456 return jjMoveStringLiteralDfa1_1(0x0L, 0x400400000000000L, 0x0L);
458 return jjStopAtPos(0, 87);
460 return jjStopAtPos(0, 88);
463 return jjMoveStringLiteralDfa1_1(0x0L, 0x100000000000L, 0x0L);
466 return jjMoveStringLiteralDfa1_1(0x0L, 0x800040000000000L, 0x0L);
468 return jjStopAtPos(0, 94);
471 return jjMoveStringLiteralDfa1_1(0x1000000000L, 0x1000080000000000L, 0x0L);
474 return jjMoveStringLiteralDfa1_1(0x0L, 0x2000000000000L, 0x0L);
477 return jjMoveStringLiteralDfa1_1(0x4800L, 0x200000000000L, 0x0L);
480 return jjMoveStringLiteralDfa1_1(0x2000000000L, 0x0L, 0x0L);
482 return jjStopAtPos(0, 93);
485 return jjMoveStringLiteralDfa1_1(0x0L, 0x4800000000L, 0x120L);
488 return jjMoveStringLiteralDfa1_1(0x4000000000L, 0x10400000000L, 0x0L);
491 return jjMoveStringLiteralDfa1_1(0x0L, 0x1000000000L, 0x2c0L);
494 return jjMoveStringLiteralDfa1_1(0x10L, 0x0L, 0x0L);
496 return jjStopAtPos(0, 116);
498 return jjStopAtPos(0, 91);
500 return jjStopAtPos(0, 92);
503 return jjMoveStringLiteralDfa1_1(0x0L, 0x1000000000000L, 0x0L);
506 return jjMoveStringLiteralDfa1_1(0x2000000004000000L, 0x100L, 0x0L);
509 return jjMoveStringLiteralDfa1_1(0x8000000L, 0x3L, 0x0L);
512 return jjMoveStringLiteralDfa1_1(0x70000100000L, 0x0L, 0x0L);
515 return jjMoveStringLiteralDfa1_1(0x180000000000L, 0x8L, 0x0L);
518 return jjMoveStringLiteralDfa1_1(0xe00200023000000L, 0x0L, 0x0L);
521 return jjMoveStringLiteralDfa1_1(0x1080400000200000L, 0x10L, 0x0L);
524 return jjMoveStringLiteralDfa1_1(0x800400000000L, 0x0L, 0x0L);
527 return jjMoveStringLiteralDfa1_1(0x140800000L, 0x60L, 0x0L);
530 return jjMoveStringLiteralDfa1_1(0x8000000000L, 0x0L, 0x0L);
533 return jjMoveStringLiteralDfa1_1(0x3000000000000L, 0x0L, 0x0L);
536 return jjMoveStringLiteralDfa1_1(0x8000000000000000L, 0x80L, 0x0L);
539 return jjMoveStringLiteralDfa1_1(0x10000000L, 0x0L, 0x0L);
542 return jjMoveStringLiteralDfa1_1(0x4000280000000L, 0x4L, 0x0L);
545 return jjMoveStringLiteralDfa1_1(0x4018000800000000L, 0x0L, 0x0L);
548 return jjMoveStringLiteralDfa1_1(0x60000000000000L, 0x0L, 0x0L);
551 return jjMoveStringLiteralDfa1_1(0x400000L, 0x0L, 0x0L);
554 return jjMoveStringLiteralDfa1_1(0x100000000000000L, 0x0L, 0x0L);
556 return jjStopAtPos(0, 89);
559 return jjMoveStringLiteralDfa1_1(0x0L, 0x200800000000000L, 0x0L);
561 return jjStopAtPos(0, 90);
563 return jjMoveStringLiteralDfa1_1(0x0L, 0x8000000000000L, 0x0L);
565 return jjMoveNfa_1(3, 0);
568 static private final int jjMoveStringLiteralDfa1_1(long active0, long active1, long active2)
570 try { curChar = input_stream.readChar(); }
571 catch(java.io.IOException e) {
572 jjStopStringLiteralDfa_1(0, active0, active1, active2);
578 if ((active1 & 0x400000000000000L) != 0L)
579 return jjStopAtPos(1, 122);
582 if ((active0 & 0x4000L) != 0L)
583 return jjStartNfaWithStates_1(1, 14, 0);
586 if ((active1 & 0x800000000000000L) != 0L)
587 return jjStopAtPos(1, 123);
590 if ((active1 & 0x1000000000000000L) != 0L)
591 return jjStopAtPos(1, 124);
594 if ((active0 & 0x800L) != 0L)
595 return jjStopAtPos(1, 11);
598 if ((active0 & 0x2000000000L) != 0L)
599 return jjStopAtPos(1, 37);
602 if ((active2 & 0x20L) != 0L)
607 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0L, active2, 0x100L);
609 if ((active1 & 0x400000000L) != 0L)
614 else if ((active1 & 0x800000000L) != 0L)
615 return jjStopAtPos(1, 99);
616 else if ((active1 & 0x1000000000L) != 0L)
617 return jjStopAtPos(1, 100);
618 else if ((active1 & 0x2000000000L) != 0L)
623 else if ((active1 & 0x40000000000L) != 0L)
624 return jjStopAtPos(1, 106);
625 else if ((active1 & 0x80000000000L) != 0L)
626 return jjStopAtPos(1, 107);
627 else if ((active1 & 0x100000000000L) != 0L)
628 return jjStopAtPos(1, 108);
629 else if ((active1 & 0x200000000000L) != 0L)
630 return jjStopAtPos(1, 109);
631 else if ((active1 & 0x400000000000L) != 0L)
632 return jjStopAtPos(1, 110);
633 else if ((active1 & 0x800000000000L) != 0L)
634 return jjStopAtPos(1, 111);
635 else if ((active1 & 0x1000000000000L) != 0L)
636 return jjStopAtPos(1, 112);
637 else if ((active1 & 0x2000000000000L) != 0L)
638 return jjStopAtPos(1, 113);
639 else if ((active1 & 0x4000000000000L) != 0L)
640 return jjStopAtPos(1, 114);
641 else if ((active1 & 0x8000000000000L) != 0L)
642 return jjStopAtPos(1, 115);
643 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0x18000000000L, active2, 0L);
645 if ((active0 & 0x10L) != 0L)
646 return jjStopAtPos(1, 4);
647 else if ((active0 & 0x1000000000L) != 0L)
648 return jjStopAtPos(1, 36);
649 else if ((active0 & 0x4000000000L) != 0L)
650 return jjStopAtPos(1, 38);
651 else if ((active1 & 0x4000000000L) != 0L)
652 return jjStopAtPos(1, 102);
653 else if ((active2 & 0x40L) != 0L)
658 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0L, active2, 0x280L);
661 return jjMoveStringLiteralDfa2_1(active0, 0x80010000400000L, active1, 0L, active2, 0L);
664 return jjMoveStringLiteralDfa2_1(active0, 0x8000000000000000L, active1, 0L, active2, 0L);
667 return jjMoveStringLiteralDfa2_1(active0, 0x20000000L, active1, 0L, active2, 0L);
670 return jjMoveStringLiteralDfa2_1(active0, 0x5080280000000L, active1, 0x4L, active2, 0L);
673 if ((active0 & 0x800000L) != 0L)
674 return jjStartNfaWithStates_1(1, 23, 14);
678 return jjMoveStringLiteralDfa2_1(active0, 0x120000000000000L, active1, 0L, active2, 0L);
681 return jjMoveStringLiteralDfa2_1(active0, 0x8000000000L, active1, 0L, active2, 0L);
684 return jjMoveStringLiteralDfa2_1(active0, 0x403100000L, active1, 0x10L, active2, 0L);
687 return jjMoveStringLiteralDfa2_1(active0, 0xe00000140000000L, active1, 0x160L, active2, 0L);
690 if ((active0 & 0x100000000000L) != 0L)
695 return jjMoveStringLiteralDfa2_1(active0, 0x1000c60000000000L, active1, 0xbL, active2, 0L);
698 if ((active1 & 0x80L) != 0L)
699 return jjStartNfaWithStates_1(1, 71, 14);
700 return jjMoveStringLiteralDfa2_1(active0, 0x4000001c000000L, active1, 0L, active2, 0L);
703 if ((active0 & 0x2000000000000000L) != 0L)
704 return jjStartNfaWithStates_1(1, 61, 14);
708 return jjMoveStringLiteralDfa2_1(active0, 0x4000000800000000L, active1, 0L, active2, 0L);
711 return jjMoveStringLiteralDfa2_1(active0, 0xa000000200000L, active1, 0L, active2, 0L);
714 return jjMoveStringLiteralDfa2_1(active0, 0x10000000000000L, active1, 0L, active2, 0L);
717 return jjMoveStringLiteralDfa2_1(active0, 0x200000000000L, active1, 0L, active2, 0L);
719 if ((active1 & 0x200000000000000L) != 0L)
720 return jjStopAtPos(1, 121);
725 return jjStartNfa_1(0, active0, active1, active2);
727 static private final int jjMoveStringLiteralDfa2_1(long old0, long active0, long old1, long active1, long old2, long active2)
729 if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
730 return jjStartNfa_1(0, old0, old1, old2);
731 try { curChar = input_stream.readChar(); }
732 catch(java.io.IOException e) {
733 jjStopStringLiteralDfa_1(1, active0, active1, active2);
739 if ((active1 & 0x8000000000L) != 0L)
740 return jjStopAtPos(2, 103);
741 else if ((active1 & 0x10000000000L) != 0L)
742 return jjStopAtPos(2, 104);
743 else if ((active2 & 0x100L) != 0L)
744 return jjStopAtPos(2, 136);
745 else if ((active2 & 0x200L) != 0L)
746 return jjStopAtPos(2, 137);
749 if ((active2 & 0x80L) != 0L)
750 return jjStopAtPos(2, 135);
754 return jjMoveStringLiteralDfa3_1(active0, 0x800100000L, active1, 0x4L, active2, 0L);
757 return jjMoveStringLiteralDfa3_1(active0, 0x140000000L, active1, 0L, active2, 0L);
760 if ((active1 & 0x100L) != 0L)
761 return jjStartNfaWithStates_1(2, 72, 14);
762 return jjMoveStringLiteralDfa3_1(active0, 0xe00000000000000L, active1, 0L, active2, 0L);
765 return jjMoveStringLiteralDfa3_1(active0, 0x8000000L, active1, 0L, active2, 0L);
768 return jjMoveStringLiteralDfa3_1(active0, 0x80000000000L, active1, 0L, active2, 0L);
771 return jjMoveStringLiteralDfa3_1(active0, 0x20000000L, active1, 0L, active2, 0L);
774 return jjMoveStringLiteralDfa3_1(active0, 0x130000010000000L, active1, 0L, active2, 0L);
777 return jjMoveStringLiteralDfa3_1(active0, 0x8000000000000000L, active1, 0L, active2, 0L);
780 return jjMoveStringLiteralDfa3_1(active0, 0x82000000000000L, active1, 0L, active2, 0L);
783 return jjMoveStringLiteralDfa3_1(active0, 0x60000200000L, active1, 0L, active2, 0L);
786 return jjMoveStringLiteralDfa3_1(active0, 0x400000000L, active1, 0x13L, active2, 0L);
789 return jjMoveStringLiteralDfa3_1(active0, 0x8000000000000L, active1, 0L, active2, 0L);
792 return jjMoveStringLiteralDfa3_1(active0, 0x280000000L, active1, 0L, active2, 0L);
795 if ((active0 & 0x400000L) != 0L)
796 return jjStartNfaWithStates_1(2, 22, 14);
797 else if ((active0 & 0x400000000000L) != 0L)
802 return jjMoveStringLiteralDfa3_1(active0, 0x5000000004000000L, active1, 0L, active2, 0L);
805 return jjMoveStringLiteralDfa3_1(active0, 0x18003000000L, active1, 0L, active2, 0L);
808 if ((active1 & 0x20L) != 0L)
813 return jjMoveStringLiteralDfa3_1(active0, 0x4a00000000000L, active1, 0x40L, active2, 0L);
816 return jjMoveStringLiteralDfa3_1(active0, 0x40000000000000L, active1, 0x8L, active2, 0L);
819 if ((active0 & 0x1000000000000L) != 0L)
820 return jjStartNfaWithStates_1(2, 48, 14);
825 return jjStartNfa_1(1, active0, active1, active2);
827 static private final int jjMoveStringLiteralDfa3_1(long old0, long active0, long old1, long active1, long old2, long active2)
829 if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
830 return jjStartNfa_1(1, old0, old1, old2);
831 try { curChar = input_stream.readChar(); }
832 catch(java.io.IOException e) {
833 jjStopStringLiteralDfa_1(2, active0, active1, 0L);
840 return jjMoveStringLiteralDfa4_1(active0, 0x8000c000000L, active1, 0x10L);
843 return jjMoveStringLiteralDfa4_1(active0, 0x400000000L, active1, 0x8L);
846 return jjMoveStringLiteralDfa4_1(active0, 0x200000L, active1, 0L);
849 if ((active0 & 0x2000000L) != 0L)
854 else if ((active0 & 0x10000000000L) != 0L)
855 return jjStartNfaWithStates_1(3, 40, 14);
856 else if ((active0 & 0x40000000000000L) != 0L)
857 return jjStartNfaWithStates_1(3, 54, 14);
858 return jjMoveStringLiteralDfa4_1(active0, 0x9008200001000000L, active1, 0x40L);
861 return jjMoveStringLiteralDfa4_1(active0, 0x800000000000000L, active1, 0L);
864 return jjMoveStringLiteralDfa4_1(active0, 0x4400000000000000L, active1, 0L);
867 if ((active0 & 0x2000000000000L) != 0L)
868 return jjStartNfaWithStates_1(3, 49, 14);
869 else if ((active1 & 0x1L) != 0L)
874 else if ((active1 & 0x4L) != 0L)
875 return jjStartNfaWithStates_1(3, 66, 14);
876 return jjMoveStringLiteralDfa4_1(active0, 0x100000140000000L, active1, 0x2L);
879 return jjMoveStringLiteralDfa4_1(active0, 0x10000000L, active1, 0L);
882 if ((active0 & 0x20000000L) != 0L)
883 return jjStartNfaWithStates_1(3, 29, 14);
884 else if ((active0 & 0x800000000000L) != 0L)
885 return jjStartNfaWithStates_1(3, 47, 14);
889 if ((active0 & 0x20000000000000L) != 0L)
890 return jjStartNfaWithStates_1(3, 53, 14);
891 return jjMoveStringLiteralDfa4_1(active0, 0x80020000100000L, active1, 0L);
894 if ((active0 & 0x8000000000L) != 0L)
895 return jjStartNfaWithStates_1(3, 39, 14);
896 return jjMoveStringLiteralDfa4_1(active0, 0x10040800000000L, active1, 0L);
899 return jjMoveStringLiteralDfa4_1(active0, 0x4000280000000L, active1, 0L);
902 return jjMoveStringLiteralDfa4_1(active0, 0x200000000000000L, active1, 0L);
906 return jjStartNfa_1(2, active0, active1, 0L);
908 static private final int jjMoveStringLiteralDfa4_1(long old0, long active0, long old1, long active1)
910 if (((active0 &= old0) | (active1 &= old1)) == 0L)
911 return jjStartNfa_1(2, old0, old1, 0L);
912 try { curChar = input_stream.readChar(); }
913 catch(java.io.IOException e) {
914 jjStopStringLiteralDfa_1(3, active0, active1, 0L);
921 return jjMoveStringLiteralDfa5_1(active0, 0x1000000400000000L, active1, 0L);
924 return jjMoveStringLiteralDfa5_1(active0, 0x8010000000000000L, active1, 0L);
927 if ((active0 & 0x80000000000000L) != 0L)
928 return jjStartNfaWithStates_1(4, 55, 14);
929 else if ((active0 & 0x100000000000000L) != 0L)
930 return jjStartNfaWithStates_1(4, 56, 14);
931 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x2L);
934 if ((active0 & 0x400000000000000L) != 0L)
935 return jjStartNfaWithStates_1(4, 58, 14);
939 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x40L);
942 return jjMoveStringLiteralDfa5_1(active0, 0x200000000000000L, active1, 0L);
945 return jjMoveStringLiteralDfa5_1(active0, 0x40a81000000L, active1, 0L);
948 if ((active0 & 0x8000000L) != 0L)
949 return jjStartNfaWithStates_1(4, 27, 14);
953 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x8L);
956 return jjMoveStringLiteralDfa5_1(active0, 0x4000200000000000L, active1, 0L);
959 return jjMoveStringLiteralDfa5_1(active0, 0x800000000000000L, active1, 0L);
962 if ((active0 & 0x8000000000000L) != 0L)
963 return jjStartNfaWithStates_1(4, 51, 14);
964 return jjMoveStringLiteralDfa5_1(active0, 0x4000000000000L, active1, 0L);
967 if ((active0 & 0x100000L) != 0L)
968 return jjStartNfaWithStates_1(4, 20, 14);
972 if ((active0 & 0x10000000L) != 0L)
973 return jjStartNfaWithStates_1(4, 28, 14);
974 else if ((active0 & 0x20000000000L) != 0L)
975 return jjStartNfaWithStates_1(4, 41, 14);
976 else if ((active1 & 0x10L) != 0L)
977 return jjStartNfaWithStates_1(4, 68, 14);
978 return jjMoveStringLiteralDfa5_1(active0, 0x200000L, active1, 0L);
981 return jjMoveStringLiteralDfa5_1(active0, 0x80140000000L, active1, 0L);
984 if ((active0 & 0x4000000L) != 0L)
985 return jjStartNfaWithStates_1(4, 26, 14);
990 return jjStartNfa_1(3, active0, active1, 0L);
992 static private final int jjMoveStringLiteralDfa5_1(long old0, long active0, long old1, long active1)
994 if (((active0 &= old0) | (active1 &= old1)) == 0L)
995 return jjStartNfa_1(3, old0, old1, 0L);
996 try { curChar = input_stream.readChar(); }
997 catch(java.io.IOException e) {
998 jjStopStringLiteralDfa_1(4, active0, active1, 0L);
1005 return jjMoveStringLiteralDfa6_1(active0, 0L, active1, 0x2L);
1008 if ((active0 & 0x800000000L) != 0L)
1009 return jjStartNfaWithStates_1(5, 35, 14);
1010 return jjMoveStringLiteralDfa6_1(active0, 0x1000000000000000L, active1, 0L);
1013 return jjMoveStringLiteralDfa6_1(active0, 0x200140000000L, active1, 0L);
1016 if ((active1 & 0x8L) != 0L)
1017 return jjStartNfaWithStates_1(5, 67, 14);
1018 return jjMoveStringLiteralDfa6_1(active0, 0L, active1, 0x40L);
1021 if ((active0 & 0x1000000L) != 0L)
1022 return jjStartNfaWithStates_1(5, 24, 14);
1026 if ((active0 & 0x4000000000000000L) != 0L)
1027 return jjStartNfaWithStates_1(5, 62, 14);
1031 if ((active0 & 0x10000000000000L) != 0L)
1032 return jjStartNfaWithStates_1(5, 52, 14);
1036 return jjMoveStringLiteralDfa6_1(active0, 0x200000000200000L, active1, 0L);
1039 if ((active0 & 0x400000000L) != 0L)
1040 return jjStartNfaWithStates_1(5, 34, 14);
1041 return jjMoveStringLiteralDfa6_1(active0, 0x80000000000L, active1, 0L);
1044 if ((active0 & 0x4000000000000L) != 0L)
1045 return jjStartNfaWithStates_1(5, 50, 14);
1046 return jjMoveStringLiteralDfa6_1(active0, 0x40000000000L, active1, 0L);
1049 if ((active0 & 0x800000000000000L) != 0L)
1050 return jjStartNfaWithStates_1(5, 59, 14);
1051 return jjMoveStringLiteralDfa6_1(active0, 0x280000000L, active1, 0L);
1054 if ((active0 & 0x8000000000000000L) != 0L)
1055 return jjStartNfaWithStates_1(5, 63, 14);
1060 return jjStartNfa_1(4, active0, active1, 0L);
1062 static private final int jjMoveStringLiteralDfa6_1(long old0, long active0, long old1, long active1)
1064 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1065 return jjStartNfa_1(4, old0, old1, 0L);
1066 try { curChar = input_stream.readChar(); }
1067 catch(java.io.IOException e) {
1068 jjStopStringLiteralDfa_1(5, active0, active1, 0L);
1075 if ((active0 & 0x40000000L) != 0L)
1080 else if ((active0 & 0x80000000L) != 0L)
1085 return jjMoveStringLiteralDfa7_1(active0, 0x300000000L, active1, 0L);
1088 if ((active0 & 0x1000000000000000L) != 0L)
1089 return jjStartNfaWithStates_1(6, 60, 14);
1093 return jjMoveStringLiteralDfa7_1(active0, 0x200000000000000L, active1, 0L);
1096 if ((active1 & 0x2L) != 0L)
1097 return jjStartNfaWithStates_1(6, 65, 14);
1101 return jjMoveStringLiteralDfa7_1(active0, 0x200000L, active1, 0L);
1104 if ((active1 & 0x40L) != 0L)
1105 return jjStartNfaWithStates_1(6, 70, 14);
1109 if ((active0 & 0x200000000000L) != 0L)
1110 return jjStartNfaWithStates_1(6, 45, 14);
1114 if ((active0 & 0x80000000000L) != 0L)
1115 return jjStartNfaWithStates_1(6, 43, 14);
1119 return jjMoveStringLiteralDfa7_1(active0, 0x40000000000L, active1, 0L);
1123 return jjStartNfa_1(5, active0, active1, 0L);
1125 static private final int jjMoveStringLiteralDfa7_1(long old0, long active0, long old1, long active1)
1127 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1128 return jjStartNfa_1(5, old0, old1, 0L);
1129 try { curChar = input_stream.readChar(); }
1130 catch(java.io.IOException e) {
1131 jjStopStringLiteralDfa_1(6, active0, 0L, 0L);
1137 return jjMoveStringLiteralDfa8_1(active0, 0x300000000L);
1140 if ((active0 & 0x40000000000L) != 0L)
1141 return jjStartNfaWithStates_1(7, 42, 14);
1142 else if ((active0 & 0x200000000000000L) != 0L)
1143 return jjStartNfaWithStates_1(7, 57, 14);
1147 if ((active0 & 0x200000L) != 0L)
1148 return jjStartNfaWithStates_1(7, 21, 14);
1153 return jjStartNfa_1(6, active0, 0L, 0L);
1155 static private final int jjMoveStringLiteralDfa8_1(long old0, long active0)
1157 if (((active0 &= old0)) == 0L)
1158 return jjStartNfa_1(6, old0, 0L, 0L);
1159 try { curChar = input_stream.readChar(); }
1160 catch(java.io.IOException e) {
1161 jjStopStringLiteralDfa_1(7, active0, 0L, 0L);
1168 return jjMoveStringLiteralDfa9_1(active0, 0x300000000L);
1172 return jjStartNfa_1(7, active0, 0L, 0L);
1174 static private final int jjMoveStringLiteralDfa9_1(long old0, long active0)
1176 if (((active0 &= old0)) == 0L)
1177 return jjStartNfa_1(7, old0, 0L, 0L);
1178 try { curChar = input_stream.readChar(); }
1179 catch(java.io.IOException e) {
1180 jjStopStringLiteralDfa_1(8, active0, 0L, 0L);
1187 return jjMoveStringLiteralDfa10_1(active0, 0x300000000L);
1191 return jjStartNfa_1(8, active0, 0L, 0L);
1193 static private final int jjMoveStringLiteralDfa10_1(long old0, long active0)
1195 if (((active0 &= old0)) == 0L)
1196 return jjStartNfa_1(8, old0, 0L, 0L);
1197 try { curChar = input_stream.readChar(); }
1198 catch(java.io.IOException e) {
1199 jjStopStringLiteralDfa_1(9, active0, 0L, 0L);
1206 return jjMoveStringLiteralDfa11_1(active0, 0x300000000L);
1210 return jjStartNfa_1(9, active0, 0L, 0L);
1212 static private final int jjMoveStringLiteralDfa11_1(long old0, long active0)
1214 if (((active0 &= old0)) == 0L)
1215 return jjStartNfa_1(9, old0, 0L, 0L);
1216 try { curChar = input_stream.readChar(); }
1217 catch(java.io.IOException e) {
1218 jjStopStringLiteralDfa_1(10, active0, 0L, 0L);
1225 if ((active0 & 0x100000000L) != 0L)
1226 return jjStartNfaWithStates_1(11, 32, 14);
1227 else if ((active0 & 0x200000000L) != 0L)
1228 return jjStartNfaWithStates_1(11, 33, 14);
1233 return jjStartNfa_1(10, active0, 0L, 0L);
1235 static final long[] jjbitVec0 = {
1236 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
1238 static private final int jjMoveNfa_1(int startState, int curPos)
1244 jjstateSet[0] = startState;
1245 int j, kind = 0x7fffffff;
1248 if (++jjround == 0x7fffffff)
1252 long l = 1L << curChar;
1255 switch(jjstateSet[--i])
1258 if ((0x3ff000000000000L & l) != 0L)
1259 jjCheckNAddStates(0, 6);
1260 else if (curChar == 39)
1261 jjCheckNAddStates(7, 12);
1262 else if (curChar == 34)
1263 jjCheckNAddStates(13, 18);
1264 else if (curChar == 36)
1265 jjstateSet[jjnewStateCnt++] = 16;
1266 else if (curChar == 46)
1268 else if (curChar == 47)
1269 jjstateSet[jjnewStateCnt++] = 2;
1270 if ((0x3fe000000000000L & l) != 0L)
1274 jjCheckNAddTwoStates(5, 6);
1276 else if (curChar == 48)
1280 jjCheckNAddStates(19, 21);
1285 jjstateSet[jjnewStateCnt++] = 1;
1288 if ((0xffff7fffffffffffL & l) != 0L && kind > 13)
1293 jjstateSet[jjnewStateCnt++] = 0;
1296 if ((0x3fe000000000000L & l) == 0L)
1300 jjCheckNAddTwoStates(5, 6);
1303 if ((0x3ff000000000000L & l) == 0L)
1307 jjCheckNAddTwoStates(5, 6);
1314 if ((0x3ff000000000000L & l) == 0L)
1318 jjCheckNAddStates(22, 24);
1321 if ((0x280000000000L & l) != 0L)
1325 if ((0x3ff000000000000L & l) == 0L)
1329 jjCheckNAddTwoStates(11, 12);
1332 if ((0x3ff000000000000L & l) == 0L)
1336 jjstateSet[jjnewStateCnt++] = 14;
1340 jjstateSet[jjnewStateCnt++] = 16;
1343 if ((0x3ff000000000000L & l) == 0L)
1347 jjstateSet[jjnewStateCnt++] = 17;
1350 if ((0x3ff000000000000L & l) != 0L)
1351 jjCheckNAddStates(0, 6);
1354 if ((0x3ff000000000000L & l) != 0L)
1355 jjCheckNAddTwoStates(19, 20);
1362 jjCheckNAddStates(25, 27);
1365 if ((0x3ff000000000000L & l) == 0L)
1369 jjCheckNAddStates(25, 27);
1372 if ((0x280000000000L & l) != 0L)
1376 if ((0x3ff000000000000L & l) == 0L)
1380 jjCheckNAddTwoStates(24, 12);
1383 if ((0x3ff000000000000L & l) != 0L)
1384 jjCheckNAddTwoStates(25, 26);
1387 if ((0x280000000000L & l) != 0L)
1391 if ((0x3ff000000000000L & l) == 0L)
1395 jjCheckNAddTwoStates(28, 12);
1398 if ((0x3ff000000000000L & l) != 0L)
1399 jjCheckNAddStates(28, 30);
1402 if ((0x280000000000L & l) != 0L)
1406 if ((0x3ff000000000000L & l) != 0L)
1407 jjCheckNAddTwoStates(32, 12);
1414 jjCheckNAddStates(19, 21);
1417 if ((0x3ff000000000000L & l) == 0L)
1421 jjCheckNAddTwoStates(35, 6);
1424 if ((0xff000000000000L & l) == 0L)
1428 jjCheckNAddTwoStates(36, 6);
1432 jjCheckNAddStates(13, 18);
1435 if ((0xfffffffbffffffffL & l) != 0L)
1436 jjCheckNAddStates(31, 33);
1440 jjCheckNAddStates(31, 33);
1443 if (curChar == 34 && kind > 79)
1447 if ((0xfffffffbffffffffL & l) != 0L)
1448 jjCheckNAddStates(34, 36);
1452 jjCheckNAddStates(34, 36);
1455 if (curChar == 34 && kind > 80)
1460 jjCheckNAddStates(7, 12);
1463 if ((0xffffff7fffffffffL & l) != 0L)
1464 jjCheckNAddStates(37, 39);
1468 jjCheckNAddStates(37, 39);
1471 if (curChar == 39 && kind > 79)
1475 if ((0xffffff7fffffffffL & l) != 0L)
1476 jjCheckNAddStates(40, 42);
1480 jjCheckNAddStates(40, 42);
1483 if (curChar == 39 && kind > 81)
1487 jjAddStates(43, 45);
1490 jjAddStates(46, 48);
1494 } while(i != startsAt);
1496 else if (curChar < 128)
1498 long l = 1L << (curChar & 077);
1501 switch(jjstateSet[--i])
1504 if ((0x87fffffe87fffffeL & l) != 0L)
1510 else if (curChar == 96)
1511 jjCheckNAddStates(49, 54);
1518 if ((0x100000001000L & l) != 0L && kind > 73)
1522 if ((0x2000000020L & l) != 0L)
1523 jjAddStates(55, 56);
1526 if ((0x5000000050L & l) != 0L && kind > 77)
1531 if ((0x87fffffe87fffffeL & l) == 0L)
1539 if ((0x87fffffe87fffffeL & l) == 0L)
1546 if ((0x2000000020L & l) != 0L)
1547 jjAddStates(57, 58);
1550 if ((0x2000000020L & l) != 0L)
1551 jjAddStates(59, 60);
1554 if ((0x2000000020L & l) != 0L)
1555 jjAddStates(61, 62);
1558 if ((0x100000001000000L & l) != 0L)
1562 if ((0x7e0000007eL & l) == 0L)
1566 jjCheckNAddTwoStates(35, 6);
1569 jjAddStates(31, 33);
1573 jjstateSet[jjnewStateCnt++] = 39;
1576 jjAddStates(34, 36);
1580 jjstateSet[jjnewStateCnt++] = 43;
1583 jjAddStates(37, 39);
1587 jjstateSet[jjnewStateCnt++] = 48;
1590 jjAddStates(40, 42);
1594 jjstateSet[jjnewStateCnt++] = 52;
1598 jjCheckNAddStates(49, 54);
1601 if ((0xfffffffeffffffffL & l) != 0L)
1602 jjCheckNAddStates(43, 45);
1606 jjCheckNAddStates(43, 45);
1610 jjstateSet[jjnewStateCnt++] = 57;
1613 if (curChar == 96 && kind > 79)
1617 if ((0xfffffffeffffffffL & l) != 0L)
1618 jjCheckNAddStates(46, 48);
1622 jjCheckNAddStates(46, 48);
1626 jjstateSet[jjnewStateCnt++] = 61;
1629 if (curChar == 96 && kind > 82)
1634 } while(i != startsAt);
1638 int i2 = (curChar & 0xff) >> 6;
1639 long l2 = 1L << (curChar & 077);
1642 switch(jjstateSet[--i])
1646 if ((jjbitVec0[i2] & l2) == 0L)
1653 if ((jjbitVec0[i2] & l2) != 0L && kind > 13)
1658 if ((jjbitVec0[i2] & l2) == 0L)
1665 if ((jjbitVec0[i2] & l2) != 0L)
1666 jjAddStates(31, 33);
1669 if ((jjbitVec0[i2] & l2) != 0L)
1670 jjAddStates(34, 36);
1673 if ((jjbitVec0[i2] & l2) != 0L)
1674 jjAddStates(37, 39);
1677 if ((jjbitVec0[i2] & l2) != 0L)
1678 jjAddStates(40, 42);
1681 if ((jjbitVec0[i2] & l2) != 0L)
1682 jjAddStates(43, 45);
1685 if ((jjbitVec0[i2] & l2) != 0L)
1686 jjAddStates(46, 48);
1690 } while(i != startsAt);
1692 if (kind != 0x7fffffff)
1694 jjmatchedKind = kind;
1695 jjmatchedPos = curPos;
1699 if ((i = jjnewStateCnt) == (startsAt = 64 - (jjnewStateCnt = startsAt)))
1701 try { curChar = input_stream.readChar(); }
1702 catch(java.io.IOException e) { return curPos; }
1705 static private final int jjMoveStringLiteralDfa0_3()
1710 return jjMoveStringLiteralDfa1_3(0x20000L);
1715 static private final int jjMoveStringLiteralDfa1_3(long active0)
1717 try { curChar = input_stream.readChar(); }
1718 catch(java.io.IOException e) {
1724 if ((active0 & 0x20000L) != 0L)
1725 return jjStopAtPos(1, 17);
1732 static final int[] jjnextStates = {
1733 19, 20, 25, 26, 29, 30, 12, 47, 49, 50, 51, 53, 54, 38, 40, 41,
1734 42, 44, 45, 34, 36, 6, 8, 9, 12, 21, 22, 12, 29, 30, 12, 38,
1735 40, 41, 42, 44, 45, 47, 49, 50, 51, 53, 54, 56, 58, 59, 60, 62,
1736 63, 56, 58, 59, 60, 62, 63, 10, 11, 23, 24, 27, 28, 31, 32,
1738 public static final String[] jjstrLiteralImages = {
1739 "", "\74\77", null, "\74\77\75", "\77\76", null, null, null, null, null, null,
1740 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1741 null, null, null, null, null, null, null, null, null, null, null, "\55\76",
1742 "\72\72", "\75\76", null, null, null, null, null, null, null, null, null, null, null,
1743 null, null, null, 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, "\50", "\51", "\173", "\175",
1746 "\133", "\135", "\73", "\54", "\56", "\76", "\74", "\75\75", "\74\75", "\76\75",
1747 "\41\75", "\74\76", "\41\75\75", "\75\75\75", "\75", "\53\75", "\55\75", "\52\75",
1748 "\57\75", "\46\75", "\174\75", "\136\75", "\56\75", "\45\75", "\176\75", "\100", "\44",
1749 "\41", "\77", "\72", "\174\174", "\46\46", "\53\53", "\55\55", "\53", "\55", "\52",
1750 "\57", "\46", "\174", "\136", "\45", "\74\74", "\76\76", "\76\76\76", "\74\74\75",
1751 "\76\76\75", null, };
1752 public static final String[] lexStateNames = {
1755 "IN_SINGLE_LINE_COMMENT",
1756 "IN_FORMAL_COMMENT",
1757 "IN_MULTI_LINE_COMMENT",
1759 public static final int[] jjnewLexState = {
1760 -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,
1761 -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,
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,
1767 static final long[] jjtoToken = {
1768 0xfffffffffff0001fL, 0xffffffffff8fa3ffL, 0x7ffL,
1770 static final long[] jjtoSkip = {
1771 0x7ffe0L, 0x0L, 0x0L,
1773 static final long[] jjtoSpecial = {
1774 0x7f800L, 0x0L, 0x0L,
1776 static final long[] jjtoMore = {
1777 0x80000L, 0x0L, 0x0L,
1779 static protected SimpleCharStream input_stream;
1780 static private final int[] jjrounds = new int[64];
1781 static private final int[] jjstateSet = new int[128];
1782 static StringBuffer image;
1783 static int jjimageLen;
1784 static int lengthOfMatch;
1785 static protected char curChar;
1786 public PHPParserTokenManager(SimpleCharStream stream)
1788 if (input_stream != null)
1789 throw new TokenMgrError("ERROR: Second call to constructor of static lexer. You must use ReInit() to initialize the static variables.", TokenMgrError.STATIC_LEXER_ERROR);
1790 input_stream = stream;
1792 public PHPParserTokenManager(SimpleCharStream stream, int lexState)
1797 static public void ReInit(SimpleCharStream stream)
1799 jjmatchedPos = jjnewStateCnt = 0;
1800 curLexState = defaultLexState;
1801 input_stream = stream;
1804 static private final void ReInitRounds()
1807 jjround = 0x80000001;
1808 for (i = 64; i-- > 0;)
1809 jjrounds[i] = 0x80000000;
1811 static public void ReInit(SimpleCharStream stream, int lexState)
1816 static public void SwitchTo(int lexState)
1818 if (lexState >= 5 || lexState < 0)
1819 throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
1821 curLexState = lexState;
1824 static protected Token jjFillToken()
1826 Token t = Token.newToken(jjmatchedKind);
1827 t.kind = jjmatchedKind;
1828 String im = jjstrLiteralImages[jjmatchedKind];
1829 t.image = (im == null) ? input_stream.GetImage() : im;
1830 t.beginLine = input_stream.getBeginLine();
1831 t.beginColumn = input_stream.getBeginColumn();
1832 t.endLine = input_stream.getEndLine();
1833 t.endColumn = input_stream.getEndColumn();
1837 static int curLexState = 0;
1838 static int defaultLexState = 0;
1839 static int jjnewStateCnt;
1841 static int jjmatchedPos;
1842 static int jjmatchedKind;
1844 public static Token getNextToken()
1847 Token specialToken = null;
1856 curChar = input_stream.BeginToken();
1858 catch(java.io.IOException e)
1861 matchedToken = jjFillToken();
1862 matchedToken.specialToken = specialToken;
1863 return matchedToken;
1873 jjmatchedKind = 0x7fffffff;
1875 curPos = jjMoveStringLiteralDfa0_0();
1876 if (jjmatchedPos == 0 && jjmatchedKind > 5)
1882 try { input_stream.backup(0);
1883 while (curChar <= 32 && (0x100003600L & (1L << curChar)) != 0L)
1884 curChar = input_stream.BeginToken();
1886 catch (java.io.IOException e1) { continue EOFLoop; }
1887 jjmatchedKind = 0x7fffffff;
1889 curPos = jjMoveStringLiteralDfa0_1();
1892 jjmatchedKind = 0x7fffffff;
1894 curPos = jjMoveStringLiteralDfa0_2();
1895 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1901 jjmatchedKind = 0x7fffffff;
1903 curPos = jjMoveStringLiteralDfa0_3();
1904 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1910 jjmatchedKind = 0x7fffffff;
1912 curPos = jjMoveStringLiteralDfa0_4();
1913 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1919 if (jjmatchedKind != 0x7fffffff)
1921 if (jjmatchedPos + 1 < curPos)
1922 input_stream.backup(curPos - jjmatchedPos - 1);
1923 if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1925 matchedToken = jjFillToken();
1926 matchedToken.specialToken = specialToken;
1927 if (jjnewLexState[jjmatchedKind] != -1)
1928 curLexState = jjnewLexState[jjmatchedKind];
1929 return matchedToken;
1931 else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1933 if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1935 matchedToken = jjFillToken();
1936 if (specialToken == null)
1937 specialToken = matchedToken;
1940 matchedToken.specialToken = specialToken;
1941 specialToken = (specialToken.next = matchedToken);
1943 SkipLexicalActions(matchedToken);
1946 SkipLexicalActions(null);
1947 if (jjnewLexState[jjmatchedKind] != -1)
1948 curLexState = jjnewLexState[jjmatchedKind];
1951 jjimageLen += jjmatchedPos + 1;
1952 if (jjnewLexState[jjmatchedKind] != -1)
1953 curLexState = jjnewLexState[jjmatchedKind];
1955 jjmatchedKind = 0x7fffffff;
1957 curChar = input_stream.readChar();
1960 catch (java.io.IOException e1) { }
1962 int error_line = input_stream.getEndLine();
1963 int error_column = input_stream.getEndColumn();
1964 String error_after = null;
1965 boolean EOFSeen = false;
1966 try { input_stream.readChar(); input_stream.backup(1); }
1967 catch (java.io.IOException e1) {
1969 error_after = curPos <= 1 ? "" : input_stream.GetImage();
1970 if (curChar == '\n' || curChar == '\r') {
1978 input_stream.backup(1);
1979 error_after = curPos <= 1 ? "" : input_stream.GetImage();
1981 throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
1986 static void SkipLexicalActions(Token matchedToken)
1988 switch(jjmatchedKind)
1992 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
1994 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
1995 input_stream.backup(1);