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.util.ArrayList;
10 import java.io.StringReader;
12 import java.text.MessageFormat;
13 import net.sourceforge.phpeclipse.actions.PHPStartApacheAction;
14 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
15 import net.sourceforge.phpdt.internal.compiler.ast.*;
16 import net.sourceforge.phpdt.internal.compiler.parser.OutlineableWithChildren;
17 import net.sourceforge.phpdt.internal.compiler.parser.PHPOutlineInfo;
19 public class PHPParserTokenManager implements PHPParserConstants
21 public static java.io.PrintStream debugStream = System.out;
22 public static void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
23 static private final int jjStopAtPos(int pos, int kind)
29 static private final int jjMoveStringLiteralDfa0_0()
34 return jjMoveStringLiteralDfa1_0(0xeL);
39 static private final int jjMoveStringLiteralDfa1_0(long active0)
41 try { curChar = input_stream.readChar(); }
42 catch(java.io.IOException e) {
48 if ((active0 & 0x2L) != 0L)
53 return jjMoveStringLiteralDfa2_0(active0, 0xcL);
58 static private final int jjMoveStringLiteralDfa2_0(long old0, long active0)
60 if (((active0 &= old0)) == 0L)
62 try { curChar = input_stream.readChar(); }
63 catch(java.io.IOException e) {
69 if ((active0 & 0x8L) != 0L)
70 return jjStopAtPos(2, 3);
74 return jjMoveStringLiteralDfa3_0(active0, 0x4L);
80 static private final int jjMoveStringLiteralDfa3_0(long old0, long active0)
82 if (((active0 &= old0)) == 0L)
84 try { curChar = input_stream.readChar(); }
85 catch(java.io.IOException e) {
92 return jjMoveStringLiteralDfa4_0(active0, 0x4L);
97 static private final int jjMoveStringLiteralDfa4_0(long old0, long active0)
99 if (((active0 &= old0)) == 0L)
101 try { curChar = input_stream.readChar(); }
102 catch(java.io.IOException e) {
109 if ((active0 & 0x4L) != 0L)
110 return jjStopAtPos(4, 2);
117 static private final int jjMoveStringLiteralDfa0_4()
122 return jjMoveStringLiteralDfa1_4(0x80000L);
125 return jjMoveStringLiteralDfa1_4(0x20000L);
130 static private final int jjMoveStringLiteralDfa1_4(long active0)
132 try { curChar = input_stream.readChar(); }
133 catch(java.io.IOException e) {
139 if ((active0 & 0x80000L) != 0L)
140 return jjStopAtPos(1, 19);
144 return jjMoveStringLiteralDfa2_4(active0, 0x20000L);
150 static private final int jjMoveStringLiteralDfa2_4(long old0, long active0)
152 if (((active0 &= old0)) == 0L)
154 try { curChar = input_stream.readChar(); }
155 catch(java.io.IOException e) {
162 return jjMoveStringLiteralDfa3_4(active0, 0x20000L);
167 static private final int jjMoveStringLiteralDfa3_4(long old0, long active0)
169 if (((active0 &= old0)) == 0L)
171 try { curChar = input_stream.readChar(); }
172 catch(java.io.IOException e) {
179 if ((active0 & 0x20000L) != 0L)
180 return jjStopAtPos(3, 17);
187 private static final int jjStopStringLiteralDfa_2(int pos, long active0)
195 private static final int jjStartNfa_2(int pos, long active0)
197 return jjMoveNfa_2(jjStopStringLiteralDfa_2(pos, active0), pos + 1);
199 static private final int jjStartNfaWithStates_2(int pos, int kind, int state)
201 jjmatchedKind = kind;
203 try { curChar = input_stream.readChar(); }
204 catch(java.io.IOException e) { return pos + 1; }
205 return jjMoveNfa_2(state, pos + 1);
207 static private final int jjMoveStringLiteralDfa0_2()
212 return jjMoveStringLiteralDfa1_2(0x10000L);
215 return jjMoveStringLiteralDfa1_2(0x20000L);
217 return jjMoveNfa_2(0, 0);
220 static private final int jjMoveStringLiteralDfa1_2(long active0)
222 try { curChar = input_stream.readChar(); }
223 catch(java.io.IOException e) {
224 jjStopStringLiteralDfa_2(0, active0);
230 if ((active0 & 0x10000L) != 0L)
231 return jjStopAtPos(1, 16);
235 return jjMoveStringLiteralDfa2_2(active0, 0x20000L);
239 return jjStartNfa_2(0, active0);
241 static private final int jjMoveStringLiteralDfa2_2(long old0, long active0)
243 if (((active0 &= old0)) == 0L)
244 return jjStartNfa_2(0, old0);
245 try { curChar = input_stream.readChar(); }
246 catch(java.io.IOException e) {
247 jjStopStringLiteralDfa_2(1, active0);
254 return jjMoveStringLiteralDfa3_2(active0, 0x20000L);
258 return jjStartNfa_2(1, active0);
260 static private final int jjMoveStringLiteralDfa3_2(long old0, long active0)
262 if (((active0 &= old0)) == 0L)
263 return jjStartNfa_2(1, old0);
264 try { curChar = input_stream.readChar(); }
265 catch(java.io.IOException e) {
266 jjStopStringLiteralDfa_2(2, active0);
273 if ((active0 & 0x20000L) != 0L)
274 return jjStopAtPos(3, 17);
279 return jjStartNfa_2(2, active0);
281 static private final void jjCheckNAdd(int state)
283 if (jjrounds[state] != jjround)
285 jjstateSet[jjnewStateCnt++] = state;
286 jjrounds[state] = jjround;
289 static private final void jjAddStates(int start, int end)
292 jjstateSet[jjnewStateCnt++] = jjnextStates[start];
293 } while (start++ != end);
295 static private final void jjCheckNAddTwoStates(int state1, int state2)
300 static private final void jjCheckNAddStates(int start, int end)
303 jjCheckNAdd(jjnextStates[start]);
304 } while (start++ != end);
306 static private final void jjCheckNAddStates(int start)
308 jjCheckNAdd(jjnextStates[start]);
309 jjCheckNAdd(jjnextStates[start + 1]);
311 static private final int jjMoveNfa_2(int startState, int curPos)
317 jjstateSet[0] = startState;
318 int j, kind = 0x7fffffff;
321 if (++jjround == 0x7fffffff)
325 long l = 1L << curChar;
328 switch(jjstateSet[--i])
331 if ((0x2400L & l) != 0L)
337 jjstateSet[jjnewStateCnt++] = 1;
340 if (curChar == 10 && kind > 15)
345 jjstateSet[jjnewStateCnt++] = 1;
349 } while(i != startsAt);
351 else if (curChar < 128)
353 long l = 1L << (curChar & 077);
356 switch(jjstateSet[--i])
360 } while(i != startsAt);
364 int i2 = (curChar & 0xff) >> 6;
365 long l2 = 1L << (curChar & 077);
368 switch(jjstateSet[--i])
372 } while(i != startsAt);
374 if (kind != 0x7fffffff)
376 jjmatchedKind = kind;
377 jjmatchedPos = curPos;
381 if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt)))
383 try { curChar = input_stream.readChar(); }
384 catch(java.io.IOException e) { return curPos; }
387 private static final int jjStopStringLiteralDfa_1(int pos, long active0, long active1, long active2)
392 if ((active0 & 0x4800L) != 0L || (active1 & 0x400000L) != 0L || (active2 & 0x10L) != 0L)
394 if ((active1 & 0x400L) != 0L)
396 if ((active1 & 0x40000000000000L) != 0L || (active2 & 0x100L) != 0L)
398 if ((active0 & 0xfffffe3fffe00000L) != 0L || (active1 & 0xc00001ffL) != 0L)
405 if ((active0 & 0x4000L) != 0L)
407 if ((active0 & 0x7fffde3ffee00000L) != 0L || (active1 & 0x800001dfL) != 0L)
409 if (jjmatchedPos != 1)
416 if ((active0 & 0x8000200001000000L) != 0L || (active1 & 0x40000020L) != 0L)
420 if ((active0 & 0x4002800000800000L) != 0L || (active1 & 0x80000180L) != 0L)
422 if ((active0 & 0x3ffd5e3ffe600000L) != 0L || (active1 & 0x7fL) != 0L)
424 if (jjmatchedPos != 2)
433 if ((active0 & 0xc50200a6000000L) != 0L || (active1 & 0x1cL) != 0L)
435 if ((active0 & 0x7f385c3f58600000L) != 0L || (active1 & 0x163L) != 0L)
437 if (jjmatchedPos != 3)
446 if ((active0 & 0x1310040058200000L) != 0L || (active1 & 0x40L) != 0L)
448 if ((active0 & 0x6c28583f02400000L) != 0L || (active1 & 0x12bL) != 0L)
456 if ((active0 & 0x2028003002000000L) != 0L || (active1 & 0x23L) != 0L)
458 if ((active0 & 0x4c00580f00400000L) != 0L || (active1 & 0x108L) != 0L)
466 if ((active0 & 0x4000500f00000000L) != 0L || (active1 & 0x108L) != 0L)
468 if ((active0 & 0xc00080000400000L) != 0L)
470 if (jjmatchedPos != 6)
479 if ((active0 & 0x400080000400000L) != 0L)
481 if ((active0 & 0x800000c00000000L) != 0L)
489 if ((active0 & 0x800000000000000L) != 0L)
491 if ((active0 & 0xc00000000L) != 0L)
499 if ((active0 & 0xc00000000L) != 0L)
507 if ((active0 & 0xc00000000L) != 0L)
518 private static final int jjStartNfa_1(int pos, long active0, long active1, long active2)
520 return jjMoveNfa_1(jjStopStringLiteralDfa_1(pos, active0, active1, active2), pos + 1);
522 static private final int jjStartNfaWithStates_1(int pos, int kind, int state)
524 jjmatchedKind = kind;
526 try { curChar = input_stream.readChar(); }
527 catch(java.io.IOException e) { return pos + 1; }
528 return jjMoveNfa_1(state, pos + 1);
530 static private final int jjMoveStringLiteralDfa0_1()
536 return jjMoveStringLiteralDfa1_1(0x0L, 0x5000000000000000L, 0x0L);
538 return jjStopAtPos(0, 12);
540 return jjStartNfaWithStates_1(0, 74, 16);
543 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x200L);
546 return jjMoveStringLiteralDfa1_1(0x0L, 0x10000L, 0x20L);
548 return jjStopAtPos(0, 110);
550 return jjStopAtPos(0, 111);
553 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x8L);
556 return jjMoveStringLiteralDfa1_1(0x0L, 0x20000L, 0x2L);
558 return jjStopAtPos(0, 117);
561 return jjMoveStringLiteralDfa1_1(0x4000000000L, 0x40000L, 0x4L);
564 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x100L);
567 return jjMoveStringLiteralDfa1_1(0x4800L, 0x0L, 0x10L);
570 return jjMoveStringLiteralDfa1_1(0x8000000000L, 0x0L, 0x0L);
572 return jjStopAtPos(0, 116);
575 return jjMoveStringLiteralDfa1_1(0x0L, 0x2400000008000000L, 0x800L);
578 return jjMoveStringLiteralDfa1_1(0x10000000000L, 0x8200000000000000L, 0x0L);
581 return jjMoveStringLiteralDfa1_1(0x0L, 0x800000030000000L, 0x1000L);
584 return jjMoveStringLiteralDfa1_1(0x10L, 0x0L, 0x0L);
586 return jjStopAtPos(0, 73);
588 return jjStopAtPos(0, 114);
590 return jjStopAtPos(0, 115);
593 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x80L);
596 return jjMoveStringLiteralDfa1_1(0x8000000008000000L, 0x80000000L, 0x0L);
599 return jjMoveStringLiteralDfa1_1(0x10000000L, 0xcL, 0x0L);
602 return jjMoveStringLiteralDfa1_1(0xe0000200000L, 0x0L, 0x0L);
605 return jjMoveStringLiteralDfa1_1(0x300000000000L, 0x20L, 0x0L);
608 return jjMoveStringLiteralDfa1_1(0x3c00400086000000L, 0x0L, 0x0L);
611 return jjMoveStringLiteralDfa1_1(0x4100800000400000L, 0x40L, 0x0L);
614 return jjMoveStringLiteralDfa1_1(0x1001000000000L, 0x0L, 0x0L);
617 return jjMoveStringLiteralDfa1_1(0x501000000L, 0x180L, 0x0L);
620 return jjMoveStringLiteralDfa1_1(0x20000000L, 0x0L, 0x0L);
623 return jjMoveStringLiteralDfa1_1(0x6000000000000L, 0x0L, 0x0L);
626 return jjMoveStringLiteralDfa1_1(0x0L, 0x40000002L, 0x0L);
629 return jjMoveStringLiteralDfa1_1(0x40000000L, 0x0L, 0x0L);
632 return jjMoveStringLiteralDfa1_1(0x8000a00000000L, 0x10L, 0x0L);
635 return jjMoveStringLiteralDfa1_1(0x30002000000000L, 0x1L, 0x0L);
638 return jjMoveStringLiteralDfa1_1(0xc0000000000000L, 0x0L, 0x0L);
641 return jjMoveStringLiteralDfa1_1(0x800000L, 0x0L, 0x0L);
644 return jjMoveStringLiteralDfa1_1(0x200000000000000L, 0x0L, 0x0L);
646 return jjStopAtPos(0, 112);
649 return jjMoveStringLiteralDfa1_1(0x0L, 0x8000L, 0x40L);
651 return jjStopAtPos(0, 113);
654 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x400L);
656 return jjMoveNfa_1(3, 0);
659 static private final int jjMoveStringLiteralDfa1_1(long active0, long active1, long active2)
661 try { curChar = input_stream.readChar(); }
662 catch(java.io.IOException e) {
663 jjStopStringLiteralDfa_1(0, active0, active1, active2);
669 if ((active1 & 0x10000L) != 0L)
670 return jjStopAtPos(1, 80);
673 if ((active0 & 0x4000L) != 0L)
674 return jjStartNfaWithStates_1(1, 14, 0);
677 if ((active1 & 0x20000L) != 0L)
678 return jjStopAtPos(1, 81);
681 if ((active1 & 0x40000L) != 0L)
682 return jjStopAtPos(1, 82);
685 if ((active0 & 0x800L) != 0L)
686 return jjStopAtPos(1, 11);
689 if ((active0 & 0x8000000000L) != 0L)
690 return jjStopAtPos(1, 39);
693 if ((active1 & 0x8000000L) != 0L)
698 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0L, active2, 0x800L);
700 if ((active1 & 0x200000000000000L) != 0L)
705 else if ((active1 & 0x400000000000000L) != 0L)
706 return jjStopAtPos(1, 122);
707 else if ((active1 & 0x800000000000000L) != 0L)
708 return jjStopAtPos(1, 123);
709 else if ((active1 & 0x1000000000000000L) != 0L)
714 else if ((active2 & 0x2L) != 0L)
715 return jjStopAtPos(1, 129);
716 else if ((active2 & 0x4L) != 0L)
717 return jjStopAtPos(1, 130);
718 else if ((active2 & 0x8L) != 0L)
719 return jjStopAtPos(1, 131);
720 else if ((active2 & 0x10L) != 0L)
721 return jjStopAtPos(1, 132);
722 else if ((active2 & 0x20L) != 0L)
723 return jjStopAtPos(1, 133);
724 else if ((active2 & 0x40L) != 0L)
725 return jjStopAtPos(1, 134);
726 else if ((active2 & 0x80L) != 0L)
727 return jjStopAtPos(1, 135);
728 else if ((active2 & 0x100L) != 0L)
729 return jjStopAtPos(1, 136);
730 else if ((active2 & 0x200L) != 0L)
731 return jjStopAtPos(1, 137);
732 else if ((active2 & 0x400L) != 0L)
733 return jjStopAtPos(1, 138);
734 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0xc000000000000000L, active2, 0L);
736 if ((active0 & 0x10L) != 0L)
737 return jjStopAtPos(1, 4);
738 else if ((active0 & 0x4000000000L) != 0L)
739 return jjStopAtPos(1, 38);
740 else if ((active0 & 0x10000000000L) != 0L)
741 return jjStopAtPos(1, 40);
742 else if ((active1 & 0x10000000L) != 0L)
747 else if ((active1 & 0x2000000000000000L) != 0L)
748 return jjStopAtPos(1, 125);
749 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0x20000000L, active2, 0x1000L);
752 return jjMoveStringLiteralDfa2_1(active0, 0x100020000800000L, active1, 0L, active2, 0L);
755 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0x2L, active2, 0L);
758 return jjMoveStringLiteralDfa2_1(active0, 0x80000000L, active1, 0L, active2, 0L);
761 return jjMoveStringLiteralDfa2_1(active0, 0xa100a00000000L, active1, 0x10L, active2, 0L);
764 if ((active0 & 0x1000000L) != 0L)
765 return jjStartNfaWithStates_1(1, 24, 14);
769 return jjMoveStringLiteralDfa2_1(active0, 0x240000000000000L, active1, 0L, active2, 0L);
772 return jjMoveStringLiteralDfa2_1(active0, 0x20000000L, active1, 0L, active2, 0L);
775 return jjMoveStringLiteralDfa2_1(active0, 0x1006200000L, active1, 0x40L, active2, 0L);
778 return jjMoveStringLiteralDfa2_1(active0, 0x3c00000500000000L, active1, 0x80000180L, active2, 0L);
781 if ((active0 & 0x200000000000L) != 0L)
786 return jjMoveStringLiteralDfa2_1(active0, 0x40018c0000000000L, active1, 0x2cL, active2, 0L);
789 if ((active1 & 0x40000000L) != 0L)
790 return jjStartNfaWithStates_1(1, 94, 14);
791 return jjMoveStringLiteralDfa2_1(active0, 0x80000058000000L, active1, 0L, active2, 0L);
794 if ((active0 & 0x8000000000000000L) != 0L)
795 return jjStartNfaWithStates_1(1, 63, 14);
799 return jjMoveStringLiteralDfa2_1(active0, 0x2000000000L, active1, 0x1L, active2, 0L);
802 return jjMoveStringLiteralDfa2_1(active0, 0x14000000400000L, active1, 0L, active2, 0L);
805 return jjMoveStringLiteralDfa2_1(active0, 0x20000000000000L, active1, 0L, active2, 0L);
808 return jjMoveStringLiteralDfa2_1(active0, 0x400000000000L, active1, 0L, active2, 0L);
810 if ((active1 & 0x8000L) != 0L)
811 return jjStopAtPos(1, 79);
816 return jjStartNfa_1(0, active0, active1, active2);
818 static private final int jjMoveStringLiteralDfa2_1(long old0, long active0, long old1, long active1, long old2, long active2)
820 if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
821 return jjStartNfa_1(0, old0, old1, old2);
822 try { curChar = input_stream.readChar(); }
823 catch(java.io.IOException e) {
824 jjStopStringLiteralDfa_1(1, active0, active1, active2);
830 if ((active1 & 0x4000000000000000L) != 0L)
831 return jjStopAtPos(2, 126);
832 else if ((active1 & 0x8000000000000000L) != 0L)
833 return jjStopAtPos(2, 127);
834 else if ((active2 & 0x800L) != 0L)
835 return jjStopAtPos(2, 139);
836 else if ((active2 & 0x1000L) != 0L)
837 return jjStopAtPos(2, 140);
840 if ((active1 & 0x20000000L) != 0L)
841 return jjStopAtPos(2, 93);
845 return jjMoveStringLiteralDfa3_1(active0, 0x2000200000L, active1, 0x10L, active2, 0L);
848 return jjMoveStringLiteralDfa3_1(active0, 0x500000000L, active1, 0L, active2, 0L);
851 if ((active1 & 0x80000000L) != 0L)
852 return jjStartNfaWithStates_1(2, 95, 14);
853 return jjMoveStringLiteralDfa3_1(active0, 0x3c00000000000000L, active1, 0L, active2, 0L);
856 return jjMoveStringLiteralDfa3_1(active0, 0x10000000L, active1, 0L, active2, 0L);
859 return jjMoveStringLiteralDfa3_1(active0, 0x100000000000L, active1, 0L, active2, 0L);
862 return jjMoveStringLiteralDfa3_1(active0, 0x80000000L, active1, 0L, active2, 0L);
865 return jjMoveStringLiteralDfa3_1(active0, 0x260000040000000L, active1, 0L, active2, 0L);
868 return jjMoveStringLiteralDfa3_1(active0, 0L, active1, 0x2L, active2, 0L);
871 return jjMoveStringLiteralDfa3_1(active0, 0x104000000000000L, active1, 0L, active2, 0L);
874 return jjMoveStringLiteralDfa3_1(active0, 0xc0000400000L, active1, 0L, active2, 0L);
877 return jjMoveStringLiteralDfa3_1(active0, 0x1000000000L, active1, 0x4cL, active2, 0L);
880 return jjMoveStringLiteralDfa3_1(active0, 0x10000000000000L, active1, 0L, active2, 0L);
883 return jjMoveStringLiteralDfa3_1(active0, 0xa00000000L, active1, 0L, active2, 0L);
886 if ((active0 & 0x800000L) != 0L)
887 return jjStartNfaWithStates_1(2, 23, 14);
888 else if ((active0 & 0x800000000000L) != 0L)
893 return jjMoveStringLiteralDfa3_1(active0, 0x4000000008000000L, active1, 0x1L, active2, 0L);
896 return jjMoveStringLiteralDfa3_1(active0, 0x20026000000L, active1, 0L, active2, 0L);
899 if ((active1 & 0x80L) != 0L)
904 return jjMoveStringLiteralDfa3_1(active0, 0x9400000000000L, active1, 0x100L, active2, 0L);
907 return jjMoveStringLiteralDfa3_1(active0, 0x80000000000000L, active1, 0x20L, active2, 0L);
910 if ((active0 & 0x2000000000000L) != 0L)
911 return jjStartNfaWithStates_1(2, 49, 14);
916 return jjStartNfa_1(1, active0, active1, active2);
918 static private final int jjMoveStringLiteralDfa3_1(long old0, long active0, long old1, long active1, long old2, long active2)
920 if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
921 return jjStartNfa_1(1, old0, old1, old2);
922 try { curChar = input_stream.readChar(); }
923 catch(java.io.IOException e) {
924 jjStopStringLiteralDfa_1(2, active0, active1, 0L);
931 return jjMoveStringLiteralDfa4_1(active0, 0x100018000000L, active1, 0x40L);
934 return jjMoveStringLiteralDfa4_1(active0, 0x1000000000L, active1, 0x20L);
937 return jjMoveStringLiteralDfa4_1(active0, 0x400000L, active1, 0L);
940 if ((active0 & 0x4000000L) != 0L)
945 else if ((active0 & 0x20000000000L) != 0L)
946 return jjStartNfaWithStates_1(3, 41, 14);
947 else if ((active0 & 0x80000000000000L) != 0L)
948 return jjStartNfaWithStates_1(3, 55, 14);
949 return jjMoveStringLiteralDfa4_1(active0, 0x4010400002000000L, active1, 0x102L);
952 return jjMoveStringLiteralDfa4_1(active0, 0x2000000000000000L, active1, 0L);
955 return jjMoveStringLiteralDfa4_1(active0, 0x1000000000000000L, active1, 0x1L);
958 if ((active0 & 0x4000000000000L) != 0L)
959 return jjStartNfaWithStates_1(3, 50, 14);
960 else if ((active1 & 0x4L) != 0L)
965 else if ((active1 & 0x10L) != 0L)
966 return jjStartNfaWithStates_1(3, 68, 14);
967 return jjMoveStringLiteralDfa4_1(active0, 0x200000500000000L, active1, 0x8L);
970 return jjMoveStringLiteralDfa4_1(active0, 0x40000000L, active1, 0L);
973 if ((active0 & 0x80000000L) != 0L)
974 return jjStartNfaWithStates_1(3, 31, 14);
975 else if ((active0 & 0x1000000000000L) != 0L)
976 return jjStartNfaWithStates_1(3, 48, 14);
980 if ((active0 & 0x40000000000000L) != 0L)
981 return jjStartNfaWithStates_1(3, 54, 14);
982 return jjMoveStringLiteralDfa4_1(active0, 0x900040000200000L, active1, 0L);
985 if ((active0 & 0x20000000L) != 0L)
986 return jjStartNfaWithStates_1(3, 29, 14);
987 return jjMoveStringLiteralDfa4_1(active0, 0x20082000000000L, active1, 0L);
990 return jjMoveStringLiteralDfa4_1(active0, 0x8000a00000000L, active1, 0L);
993 return jjMoveStringLiteralDfa4_1(active0, 0x400000000000000L, active1, 0L);
997 return jjStartNfa_1(2, active0, active1, 0L);
999 static private final int jjMoveStringLiteralDfa4_1(long old0, long active0, long old1, long active1)
1001 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1002 return jjStartNfa_1(2, old0, old1, 0L);
1003 try { curChar = input_stream.readChar(); }
1004 catch(java.io.IOException e) {
1005 jjStopStringLiteralDfa_1(3, active0, active1, 0L);
1012 return jjMoveStringLiteralDfa5_1(active0, 0x4000001000000000L, active1, 0L);
1015 return jjMoveStringLiteralDfa5_1(active0, 0x20000000000000L, active1, 0x2L);
1018 if ((active0 & 0x100000000000000L) != 0L)
1019 return jjStartNfaWithStates_1(4, 56, 14);
1020 else if ((active0 & 0x200000000000000L) != 0L)
1021 return jjStartNfaWithStates_1(4, 57, 14);
1022 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x8L);
1025 if ((active0 & 0x1000000000000000L) != 0L)
1026 return jjStartNfaWithStates_1(4, 60, 14);
1030 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x100L);
1033 return jjMoveStringLiteralDfa5_1(active0, 0x400000000000000L, active1, 0L);
1036 return jjMoveStringLiteralDfa5_1(active0, 0x82a02000000L, active1, 0L);
1039 if ((active0 & 0x10000000L) != 0L)
1040 return jjStartNfaWithStates_1(4, 28, 14);
1044 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x20L);
1047 return jjMoveStringLiteralDfa5_1(active0, 0x400000000000L, active1, 0x1L);
1050 return jjMoveStringLiteralDfa5_1(active0, 0x2000000000000000L, active1, 0L);
1053 if ((active0 & 0x10000000000000L) != 0L)
1054 return jjStartNfaWithStates_1(4, 52, 14);
1055 return jjMoveStringLiteralDfa5_1(active0, 0x8000000000000L, active1, 0L);
1058 if ((active0 & 0x200000L) != 0L)
1059 return jjStartNfaWithStates_1(4, 21, 14);
1063 if ((active0 & 0x40000000L) != 0L)
1064 return jjStartNfaWithStates_1(4, 30, 14);
1065 else if ((active0 & 0x40000000000L) != 0L)
1066 return jjStartNfaWithStates_1(4, 42, 14);
1067 else if ((active1 & 0x40L) != 0L)
1068 return jjStartNfaWithStates_1(4, 70, 14);
1069 return jjMoveStringLiteralDfa5_1(active0, 0x400000L, active1, 0L);
1072 return jjMoveStringLiteralDfa5_1(active0, 0x100500000000L, active1, 0L);
1075 return jjMoveStringLiteralDfa5_1(active0, 0x800000000000000L, active1, 0L);
1078 if ((active0 & 0x8000000L) != 0L)
1079 return jjStartNfaWithStates_1(4, 27, 14);
1084 return jjStartNfa_1(3, active0, active1, 0L);
1086 static private final int jjMoveStringLiteralDfa5_1(long old0, long active0, long old1, long active1)
1088 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1089 return jjStartNfa_1(3, old0, old1, 0L);
1090 try { curChar = input_stream.readChar(); }
1091 catch(java.io.IOException e) {
1092 jjStopStringLiteralDfa_1(4, active0, active1, 0L);
1099 return jjMoveStringLiteralDfa6_1(active0, 0L, active1, 0x8L);
1102 if ((active0 & 0x2000000000L) != 0L)
1103 return jjStartNfaWithStates_1(5, 37, 14);
1104 return jjMoveStringLiteralDfa6_1(active0, 0x4000000000000000L, active1, 0L);
1107 return jjMoveStringLiteralDfa6_1(active0, 0x400500000000L, active1, 0L);
1110 if ((active1 & 0x20L) != 0L)
1111 return jjStartNfaWithStates_1(5, 69, 14);
1112 return jjMoveStringLiteralDfa6_1(active0, 0L, active1, 0x100L);
1115 if ((active0 & 0x2000000L) != 0L)
1116 return jjStartNfaWithStates_1(5, 25, 14);
1120 if ((active1 & 0x1L) != 0L)
1121 return jjStartNfaWithStates_1(5, 64, 14);
1125 if ((active0 & 0x20000000000000L) != 0L)
1126 return jjStartNfaWithStates_1(5, 53, 14);
1130 return jjMoveStringLiteralDfa6_1(active0, 0xc00000000400000L, active1, 0L);
1133 if ((active0 & 0x1000000000L) != 0L)
1134 return jjStartNfaWithStates_1(5, 36, 14);
1135 return jjMoveStringLiteralDfa6_1(active0, 0x100000000000L, active1, 0L);
1138 if ((active0 & 0x8000000000000L) != 0L)
1139 return jjStartNfaWithStates_1(5, 51, 14);
1140 return jjMoveStringLiteralDfa6_1(active0, 0x80000000000L, active1, 0L);
1143 if ((active0 & 0x2000000000000000L) != 0L)
1144 return jjStartNfaWithStates_1(5, 61, 14);
1145 return jjMoveStringLiteralDfa6_1(active0, 0xa00000000L, active1, 0L);
1148 if ((active1 & 0x2L) != 0L)
1149 return jjStartNfaWithStates_1(5, 65, 14);
1154 return jjStartNfa_1(4, active0, active1, 0L);
1156 static private final int jjMoveStringLiteralDfa6_1(long old0, long active0, long old1, long active1)
1158 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1159 return jjStartNfa_1(4, old0, old1, 0L);
1160 try { curChar = input_stream.readChar(); }
1161 catch(java.io.IOException e) {
1162 jjStopStringLiteralDfa_1(5, active0, active1, 0L);
1169 if ((active0 & 0x100000000L) != 0L)
1174 else if ((active0 & 0x200000000L) != 0L)
1179 return jjMoveStringLiteralDfa7_1(active0, 0xc00000000L, active1, 0L);
1182 if ((active0 & 0x4000000000000000L) != 0L)
1183 return jjStartNfaWithStates_1(6, 62, 14);
1187 return jjMoveStringLiteralDfa7_1(active0, 0x400000000000000L, active1, 0L);
1190 if ((active1 & 0x8L) != 0L)
1191 return jjStartNfaWithStates_1(6, 67, 14);
1195 return jjMoveStringLiteralDfa7_1(active0, 0x400000L, active1, 0L);
1198 if ((active1 & 0x100L) != 0L)
1199 return jjStartNfaWithStates_1(6, 72, 14);
1203 if ((active0 & 0x400000000000L) != 0L)
1204 return jjStartNfaWithStates_1(6, 46, 14);
1208 if ((active0 & 0x100000000000L) != 0L)
1209 return jjStartNfaWithStates_1(6, 44, 14);
1210 return jjMoveStringLiteralDfa7_1(active0, 0x800000000000000L, active1, 0L);
1213 return jjMoveStringLiteralDfa7_1(active0, 0x80000000000L, active1, 0L);
1217 return jjStartNfa_1(5, active0, active1, 0L);
1219 static private final int jjMoveStringLiteralDfa7_1(long old0, long active0, long old1, long active1)
1221 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1222 return jjStartNfa_1(5, old0, old1, 0L);
1223 try { curChar = input_stream.readChar(); }
1224 catch(java.io.IOException e) {
1225 jjStopStringLiteralDfa_1(6, active0, 0L, 0L);
1231 return jjMoveStringLiteralDfa8_1(active0, 0xc00000000L);
1234 return jjMoveStringLiteralDfa8_1(active0, 0x800000000000000L);
1237 if ((active0 & 0x80000000000L) != 0L)
1238 return jjStartNfaWithStates_1(7, 43, 14);
1239 else if ((active0 & 0x400000000000000L) != 0L)
1240 return jjStartNfaWithStates_1(7, 58, 14);
1244 if ((active0 & 0x400000L) != 0L)
1245 return jjStartNfaWithStates_1(7, 22, 14);
1250 return jjStartNfa_1(6, active0, 0L, 0L);
1252 static private final int jjMoveStringLiteralDfa8_1(long old0, long active0)
1254 if (((active0 &= old0)) == 0L)
1255 return jjStartNfa_1(6, old0, 0L, 0L);
1256 try { curChar = input_stream.readChar(); }
1257 catch(java.io.IOException e) {
1258 jjStopStringLiteralDfa_1(7, active0, 0L, 0L);
1265 if ((active0 & 0x800000000000000L) != 0L)
1266 return jjStartNfaWithStates_1(8, 59, 14);
1270 return jjMoveStringLiteralDfa9_1(active0, 0xc00000000L);
1274 return jjStartNfa_1(7, active0, 0L, 0L);
1276 static private final int jjMoveStringLiteralDfa9_1(long old0, long active0)
1278 if (((active0 &= old0)) == 0L)
1279 return jjStartNfa_1(7, old0, 0L, 0L);
1280 try { curChar = input_stream.readChar(); }
1281 catch(java.io.IOException e) {
1282 jjStopStringLiteralDfa_1(8, active0, 0L, 0L);
1289 return jjMoveStringLiteralDfa10_1(active0, 0xc00000000L);
1293 return jjStartNfa_1(8, active0, 0L, 0L);
1295 static private final int jjMoveStringLiteralDfa10_1(long old0, long active0)
1297 if (((active0 &= old0)) == 0L)
1298 return jjStartNfa_1(8, old0, 0L, 0L);
1299 try { curChar = input_stream.readChar(); }
1300 catch(java.io.IOException e) {
1301 jjStopStringLiteralDfa_1(9, active0, 0L, 0L);
1308 return jjMoveStringLiteralDfa11_1(active0, 0xc00000000L);
1312 return jjStartNfa_1(9, active0, 0L, 0L);
1314 static private final int jjMoveStringLiteralDfa11_1(long old0, long active0)
1316 if (((active0 &= old0)) == 0L)
1317 return jjStartNfa_1(9, old0, 0L, 0L);
1318 try { curChar = input_stream.readChar(); }
1319 catch(java.io.IOException e) {
1320 jjStopStringLiteralDfa_1(10, active0, 0L, 0L);
1327 if ((active0 & 0x400000000L) != 0L)
1328 return jjStartNfaWithStates_1(11, 34, 14);
1329 else if ((active0 & 0x800000000L) != 0L)
1330 return jjStartNfaWithStates_1(11, 35, 14);
1335 return jjStartNfa_1(10, active0, 0L, 0L);
1337 static final long[] jjbitVec0 = {
1338 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
1340 static private final int jjMoveNfa_1(int startState, int curPos)
1346 jjstateSet[0] = startState;
1347 int j, kind = 0x7fffffff;
1350 if (++jjround == 0x7fffffff)
1354 long l = 1L << curChar;
1357 switch(jjstateSet[--i])
1360 if ((0x3ff000000000000L & l) != 0L)
1361 jjCheckNAddStates(0, 6);
1362 else if (curChar == 39)
1363 jjCheckNAddStates(7, 12);
1364 else if (curChar == 34)
1365 jjCheckNAddStates(13, 18);
1366 else if (curChar == 36)
1367 jjstateSet[jjnewStateCnt++] = 16;
1368 else if (curChar == 46)
1370 else if (curChar == 47)
1371 jjstateSet[jjnewStateCnt++] = 2;
1372 if ((0x3fe000000000000L & l) != 0L)
1376 jjCheckNAddTwoStates(5, 6);
1378 else if (curChar == 48)
1382 jjCheckNAddStates(19, 21);
1387 jjstateSet[jjnewStateCnt++] = 1;
1390 if ((0xffff7fffffffffffL & l) != 0L && kind > 13)
1395 jjstateSet[jjnewStateCnt++] = 0;
1398 if ((0x3fe000000000000L & l) == 0L)
1402 jjCheckNAddTwoStates(5, 6);
1405 if ((0x3ff000000000000L & l) == 0L)
1409 jjCheckNAddTwoStates(5, 6);
1416 if ((0x3ff000000000000L & l) == 0L)
1420 jjCheckNAddStates(22, 24);
1423 if ((0x280000000000L & l) != 0L)
1427 if ((0x3ff000000000000L & l) == 0L)
1431 jjCheckNAddTwoStates(11, 12);
1434 if ((0x3ff000000000000L & l) == 0L)
1438 jjstateSet[jjnewStateCnt++] = 14;
1442 jjstateSet[jjnewStateCnt++] = 16;
1445 if ((0x3ff000000000000L & l) == 0L)
1449 jjstateSet[jjnewStateCnt++] = 17;
1452 if ((0x3ff000000000000L & l) != 0L)
1453 jjCheckNAddStates(0, 6);
1456 if ((0x3ff000000000000L & l) != 0L)
1457 jjCheckNAddTwoStates(19, 20);
1464 jjCheckNAddStates(25, 27);
1467 if ((0x3ff000000000000L & l) == 0L)
1471 jjCheckNAddStates(25, 27);
1474 if ((0x280000000000L & l) != 0L)
1478 if ((0x3ff000000000000L & l) == 0L)
1482 jjCheckNAddTwoStates(24, 12);
1485 if ((0x3ff000000000000L & l) != 0L)
1486 jjCheckNAddTwoStates(25, 26);
1489 if ((0x280000000000L & l) != 0L)
1493 if ((0x3ff000000000000L & l) == 0L)
1497 jjCheckNAddTwoStates(28, 12);
1500 if ((0x3ff000000000000L & l) != 0L)
1501 jjCheckNAddStates(28, 30);
1504 if ((0x280000000000L & l) != 0L)
1508 if ((0x3ff000000000000L & l) != 0L)
1509 jjCheckNAddTwoStates(32, 12);
1516 jjCheckNAddStates(19, 21);
1519 if ((0x3ff000000000000L & l) == 0L)
1523 jjCheckNAddTwoStates(35, 6);
1526 if ((0xff000000000000L & l) == 0L)
1530 jjCheckNAddTwoStates(36, 6);
1534 jjCheckNAddStates(13, 18);
1537 if ((0xfffffffbffffffffL & l) != 0L)
1538 jjCheckNAddStates(31, 33);
1542 jjCheckNAddStates(31, 33);
1545 if (curChar == 34 && kind > 102)
1549 if ((0xfffffffbffffffffL & l) != 0L)
1550 jjCheckNAddStates(34, 36);
1554 jjCheckNAddStates(34, 36);
1557 if (curChar == 34 && kind > 103)
1562 jjCheckNAddStates(7, 12);
1565 if ((0xffffff7fffffffffL & l) != 0L)
1566 jjCheckNAddStates(37, 39);
1570 jjCheckNAddStates(37, 39);
1573 if (curChar == 39 && kind > 102)
1577 if ((0xffffff7fffffffffL & l) != 0L)
1578 jjCheckNAddStates(40, 42);
1582 jjCheckNAddStates(40, 42);
1585 if (curChar == 39 && kind > 104)
1589 jjAddStates(43, 45);
1592 jjAddStates(46, 48);
1596 } while(i != startsAt);
1598 else if (curChar < 128)
1600 long l = 1L << (curChar & 077);
1603 switch(jjstateSet[--i])
1606 if ((0x87fffffe87fffffeL & l) != 0L)
1612 else if (curChar == 96)
1613 jjCheckNAddStates(49, 54);
1620 if ((0x100000001000L & l) != 0L && kind > 96)
1624 if ((0x2000000020L & l) != 0L)
1625 jjAddStates(55, 56);
1628 if ((0x5000000050L & l) != 0L && kind > 100)
1633 if ((0x87fffffe87fffffeL & l) == 0L)
1641 if ((0x87fffffe87fffffeL & l) == 0L)
1648 if ((0x2000000020L & l) != 0L)
1649 jjAddStates(57, 58);
1652 if ((0x2000000020L & l) != 0L)
1653 jjAddStates(59, 60);
1656 if ((0x2000000020L & l) != 0L)
1657 jjAddStates(61, 62);
1660 if ((0x100000001000000L & l) != 0L)
1664 if ((0x7e0000007eL & l) == 0L)
1668 jjCheckNAddTwoStates(35, 6);
1671 jjAddStates(31, 33);
1675 jjstateSet[jjnewStateCnt++] = 39;
1678 jjAddStates(34, 36);
1682 jjstateSet[jjnewStateCnt++] = 43;
1685 jjAddStates(37, 39);
1689 jjstateSet[jjnewStateCnt++] = 48;
1692 jjAddStates(40, 42);
1696 jjstateSet[jjnewStateCnt++] = 52;
1700 jjCheckNAddStates(49, 54);
1703 if ((0xfffffffeffffffffL & l) != 0L)
1704 jjCheckNAddStates(43, 45);
1708 jjCheckNAddStates(43, 45);
1712 jjstateSet[jjnewStateCnt++] = 57;
1715 if (curChar == 96 && kind > 102)
1719 if ((0xfffffffeffffffffL & l) != 0L)
1720 jjCheckNAddStates(46, 48);
1724 jjCheckNAddStates(46, 48);
1728 jjstateSet[jjnewStateCnt++] = 61;
1731 if (curChar == 96 && kind > 105)
1736 } while(i != startsAt);
1740 int i2 = (curChar & 0xff) >> 6;
1741 long l2 = 1L << (curChar & 077);
1744 switch(jjstateSet[--i])
1748 if ((jjbitVec0[i2] & l2) == 0L)
1755 if ((jjbitVec0[i2] & l2) != 0L && kind > 13)
1760 if ((jjbitVec0[i2] & l2) == 0L)
1767 if ((jjbitVec0[i2] & l2) != 0L)
1768 jjAddStates(31, 33);
1771 if ((jjbitVec0[i2] & l2) != 0L)
1772 jjAddStates(34, 36);
1775 if ((jjbitVec0[i2] & l2) != 0L)
1776 jjAddStates(37, 39);
1779 if ((jjbitVec0[i2] & l2) != 0L)
1780 jjAddStates(40, 42);
1783 if ((jjbitVec0[i2] & l2) != 0L)
1784 jjAddStates(43, 45);
1787 if ((jjbitVec0[i2] & l2) != 0L)
1788 jjAddStates(46, 48);
1792 } while(i != startsAt);
1794 if (kind != 0x7fffffff)
1796 jjmatchedKind = kind;
1797 jjmatchedPos = curPos;
1801 if ((i = jjnewStateCnt) == (startsAt = 64 - (jjnewStateCnt = startsAt)))
1803 try { curChar = input_stream.readChar(); }
1804 catch(java.io.IOException e) { return curPos; }
1807 static private final int jjMoveStringLiteralDfa0_3()
1812 return jjMoveStringLiteralDfa1_3(0x40000L);
1815 return jjMoveStringLiteralDfa1_3(0x20000L);
1820 static private final int jjMoveStringLiteralDfa1_3(long active0)
1822 try { curChar = input_stream.readChar(); }
1823 catch(java.io.IOException e) {
1829 if ((active0 & 0x40000L) != 0L)
1830 return jjStopAtPos(1, 18);
1834 return jjMoveStringLiteralDfa2_3(active0, 0x20000L);
1840 static private final int jjMoveStringLiteralDfa2_3(long old0, long active0)
1842 if (((active0 &= old0)) == 0L)
1844 try { curChar = input_stream.readChar(); }
1845 catch(java.io.IOException e) {
1852 return jjMoveStringLiteralDfa3_3(active0, 0x20000L);
1857 static private final int jjMoveStringLiteralDfa3_3(long old0, long active0)
1859 if (((active0 &= old0)) == 0L)
1861 try { curChar = input_stream.readChar(); }
1862 catch(java.io.IOException e) {
1869 if ((active0 & 0x20000L) != 0L)
1870 return jjStopAtPos(3, 17);
1877 static final int[] jjnextStates = {
1878 19, 20, 25, 26, 29, 30, 12, 47, 49, 50, 51, 53, 54, 38, 40, 41,
1879 42, 44, 45, 34, 36, 6, 8, 9, 12, 21, 22, 12, 29, 30, 12, 38,
1880 40, 41, 42, 44, 45, 47, 49, 50, 51, 53, 54, 56, 58, 59, 60, 62,
1881 63, 56, 58, 59, 60, 62, 63, 10, 11, 23, 24, 27, 28, 31, 32,
1883 public static final String[] jjstrLiteralImages = {
1884 "", "\74\77", null, "\74\77\75", "\77\76", null, null, null, null, null, null,
1885 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1886 null, null, null, null, null, null, null, null, null, null, null, null, null,
1887 "\55\76", "\72\72", "\75\76", null, null, null, null, null, null, null, null, null, null,
1888 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1889 null, null, null, null, null, null, null, null, "\100", "\44", "\41", "\176", "\77",
1890 "\72", "\174\174", "\46\46", "\53\53", "\55\55", "\53", "\55", "\52", "\57", "\46",
1891 "\174", "\136", "\45", "\74\74", "\76\76", "\76\76\76", null, null, null, null, null,
1892 null, null, null, null, null, null, null, null, null, null, null, "\50", "\51",
1893 "\173", "\175", "\133", "\135", "\73", "\54", "\56", "\76", "\74", "\75\75", "\74\75",
1894 "\76\75", "\41\75", "\74\76", "\41\75\75", "\75\75\75", "\75", "\53\75", "\55\75",
1895 "\52\75", "\57\75", "\46\75", "\174\75", "\136\75", "\56\75", "\45\75", "\176\75",
1896 "\74\74\75", "\76\76\75", null, };
1897 public static final String[] lexStateNames = {
1900 "IN_SINGLE_LINE_COMMENT",
1901 "IN_FORMAL_COMMENT",
1902 "IN_MULTI_LINE_COMMENT",
1904 public static final int[] jjnewLexState = {
1905 -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,
1906 -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,
1907 -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,
1908 -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,
1909 -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,
1910 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1912 static final long[] jjtoToken = {
1913 0xffffffffffe0001fL, 0xffffc7d1ffffffffL, 0x3fffL,
1915 static final long[] jjtoSkip = {
1916 0xfffe0L, 0x0L, 0x0L,
1918 static final long[] jjtoSpecial = {
1919 0xff800L, 0x0L, 0x0L,
1921 static final long[] jjtoMore = {
1922 0x100000L, 0x0L, 0x0L,
1924 static protected SimpleCharStream input_stream;
1925 static private final int[] jjrounds = new int[64];
1926 static private final int[] jjstateSet = new int[128];
1927 static StringBuffer image;
1928 static int jjimageLen;
1929 static int lengthOfMatch;
1930 static protected char curChar;
1931 public PHPParserTokenManager(SimpleCharStream stream)
1933 if (input_stream != null)
1934 throw new TokenMgrError("ERROR: Second call to constructor of static lexer. You must use ReInit() to initialize the static variables.", TokenMgrError.STATIC_LEXER_ERROR);
1935 input_stream = stream;
1937 public PHPParserTokenManager(SimpleCharStream stream, int lexState)
1942 static public void ReInit(SimpleCharStream stream)
1944 jjmatchedPos = jjnewStateCnt = 0;
1945 curLexState = defaultLexState;
1946 input_stream = stream;
1949 static private final void ReInitRounds()
1952 jjround = 0x80000001;
1953 for (i = 64; i-- > 0;)
1954 jjrounds[i] = 0x80000000;
1956 static public void ReInit(SimpleCharStream stream, int lexState)
1961 static public void SwitchTo(int lexState)
1963 if (lexState >= 5 || lexState < 0)
1964 throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
1966 curLexState = lexState;
1969 static protected Token jjFillToken()
1971 Token t = Token.newToken(jjmatchedKind);
1972 t.kind = jjmatchedKind;
1973 String im = jjstrLiteralImages[jjmatchedKind];
1974 t.image = (im == null) ? input_stream.GetImage() : im;
1975 t.beginLine = input_stream.getBeginLine();
1976 t.beginColumn = input_stream.getBeginColumn();
1977 t.endLine = input_stream.getEndLine();
1978 t.endColumn = input_stream.getEndColumn();
1982 static int curLexState = 0;
1983 static int defaultLexState = 0;
1984 static int jjnewStateCnt;
1986 static int jjmatchedPos;
1987 static int jjmatchedKind;
1989 public static Token getNextToken()
1992 Token specialToken = null;
2001 curChar = input_stream.BeginToken();
2003 catch(java.io.IOException e)
2006 matchedToken = jjFillToken();
2007 matchedToken.specialToken = specialToken;
2008 return matchedToken;
2018 jjmatchedKind = 0x7fffffff;
2020 curPos = jjMoveStringLiteralDfa0_0();
2021 if (jjmatchedPos == 0 && jjmatchedKind > 5)
2027 try { input_stream.backup(0);
2028 while (curChar <= 32 && (0x100003600L & (1L << curChar)) != 0L)
2029 curChar = input_stream.BeginToken();
2031 catch (java.io.IOException e1) { continue EOFLoop; }
2032 jjmatchedKind = 0x7fffffff;
2034 curPos = jjMoveStringLiteralDfa0_1();
2037 jjmatchedKind = 0x7fffffff;
2039 curPos = jjMoveStringLiteralDfa0_2();
2040 if (jjmatchedPos == 0 && jjmatchedKind > 20)
2046 jjmatchedKind = 0x7fffffff;
2048 curPos = jjMoveStringLiteralDfa0_3();
2049 if (jjmatchedPos == 0 && jjmatchedKind > 20)
2055 jjmatchedKind = 0x7fffffff;
2057 curPos = jjMoveStringLiteralDfa0_4();
2058 if (jjmatchedPos == 0 && jjmatchedKind > 20)
2064 if (jjmatchedKind != 0x7fffffff)
2066 if (jjmatchedPos + 1 < curPos)
2067 input_stream.backup(curPos - jjmatchedPos - 1);
2068 if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
2070 matchedToken = jjFillToken();
2071 matchedToken.specialToken = specialToken;
2072 TokenLexicalActions(matchedToken);
2073 if (jjnewLexState[jjmatchedKind] != -1)
2074 curLexState = jjnewLexState[jjmatchedKind];
2075 return matchedToken;
2077 else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
2079 if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
2081 matchedToken = jjFillToken();
2082 if (specialToken == null)
2083 specialToken = matchedToken;
2086 matchedToken.specialToken = specialToken;
2087 specialToken = (specialToken.next = matchedToken);
2089 SkipLexicalActions(matchedToken);
2092 SkipLexicalActions(null);
2093 if (jjnewLexState[jjmatchedKind] != -1)
2094 curLexState = jjnewLexState[jjmatchedKind];
2097 jjimageLen += jjmatchedPos + 1;
2098 if (jjnewLexState[jjmatchedKind] != -1)
2099 curLexState = jjnewLexState[jjmatchedKind];
2101 jjmatchedKind = 0x7fffffff;
2103 curChar = input_stream.readChar();
2106 catch (java.io.IOException e1) { }
2108 int error_line = input_stream.getEndLine();
2109 int error_column = input_stream.getEndColumn();
2110 String error_after = null;
2111 boolean EOFSeen = false;
2112 try { input_stream.readChar(); input_stream.backup(1); }
2113 catch (java.io.IOException e1) {
2115 error_after = curPos <= 1 ? "" : input_stream.GetImage();
2116 if (curChar == '\n' || curChar == '\r') {
2124 input_stream.backup(1);
2125 error_after = curPos <= 1 ? "" : input_stream.GetImage();
2127 throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
2132 static void SkipLexicalActions(Token matchedToken)
2134 switch(jjmatchedKind)
2138 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2140 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2141 input_stream.backup(1);
2145 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2147 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2148 PHPParser.createNewTask();
2154 static void TokenLexicalActions(Token matchedToken)
2156 switch(jjmatchedKind)
2160 image = new StringBuffer(jjstrLiteralImages[1]);
2162 image.append(jjstrLiteralImages[1]);
2163 PHPParser.createNewHTMLCode();
2167 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2169 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2170 PHPParser.createNewHTMLCode();
2174 image = new StringBuffer(jjstrLiteralImages[3]);
2176 image.append(jjstrLiteralImages[3]);
2177 PHPParser.createNewHTMLCode();
2181 image = new StringBuffer(jjstrLiteralImages[4]);
2183 image.append(jjstrLiteralImages[4]);
2184 PHPParser.htmlStart = SimpleCharStream.getPosition();