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.Enumeration;
10 import java.util.ArrayList;
11 import java.io.StringReader;
13 import java.text.MessageFormat;
14 import net.sourceforge.phpeclipse.actions.PHPStartApacheAction;
15 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
16 import net.sourceforge.phpdt.internal.compiler.ast.*;
17 import net.sourceforge.phpdt.internal.compiler.parser.OutlineableWithChildren;
18 import net.sourceforge.phpdt.internal.compiler.parser.PHPOutlineInfo;
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 & 0x200000L) != 0L || (active2 & 0x8L) != 0L)
306 if ((active1 & 0x200L) != 0L)
308 if ((active1 & 0x20000000000000L) != 0L || (active2 & 0x80L) != 0L)
310 if ((active0 & 0xffffff1ffff00000L) != 0L || (active1 & 0x600000ffL) != 0L)
317 if ((active0 & 0x4000L) != 0L)
319 if ((active0 & 0xbfffef1fff700000L) != 0L || (active1 & 0x400000efL) != 0L)
321 if (jjmatchedPos != 1)
328 if ((active0 & 0x4000100000800000L) != 0L || (active1 & 0x20000010L) != 0L)
332 if ((active0 & 0x2001400000400000L) != 0L || (active1 & 0x400000c0L) != 0L)
334 if ((active0 & 0x9ffeaf1fff300000L) != 0L || (active1 & 0x3fL) != 0L)
336 if (jjmatchedPos != 2)
345 if ((active0 & 0x62810053000000L) != 0L || (active1 & 0xeL) != 0L)
347 if ((active0 & 0xbf9c2e1fac300000L) != 0L || (active1 & 0xb1L) != 0L)
349 if (jjmatchedPos != 3)
358 if ((active0 & 0x98802002c100000L) != 0L || (active1 & 0x20L) != 0L)
360 if ((active0 & 0xb6142c1f81200000L) != 0L || (active1 & 0x95L) != 0L)
368 if ((active0 & 0x9014001801000000L) != 0L || (active1 & 0x11L) != 0L)
370 if ((active0 & 0x26002c0780200000L) != 0L || (active1 & 0x84L) != 0L)
378 if ((active0 & 0x2000280780000000L) != 0L || (active1 & 0x84L) != 0L)
380 if ((active0 & 0x600040000200000L) != 0L)
382 if (jjmatchedPos != 6)
391 if ((active0 & 0x200040000200000L) != 0L)
393 if ((active0 & 0x400000600000000L) != 0L)
401 if ((active0 & 0x400000000000000L) != 0L)
403 if ((active0 & 0x600000000L) != 0L)
411 if ((active0 & 0x600000000L) != 0L)
419 if ((active0 & 0x600000000L) != 0L)
430 private static final int jjStartNfa_1(int pos, long active0, long active1, long active2)
432 return jjMoveNfa_1(jjStopStringLiteralDfa_1(pos, active0, active1, active2), pos + 1);
434 static private final int jjStartNfaWithStates_1(int pos, int kind, int state)
436 jjmatchedKind = kind;
438 try { curChar = input_stream.readChar(); }
439 catch(java.io.IOException e) { return pos + 1; }
440 return jjMoveNfa_1(state, pos + 1);
442 static private final int jjMoveStringLiteralDfa0_1()
448 return jjMoveStringLiteralDfa1_1(0x0L, 0x2800000000000000L, 0x0L);
450 return jjStopAtPos(0, 12);
452 return jjStartNfaWithStates_1(0, 73, 16);
455 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x100L);
458 return jjMoveStringLiteralDfa1_1(0x0L, 0x8000L, 0x10L);
460 return jjStopAtPos(0, 109);
462 return jjStopAtPos(0, 110);
465 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x4L);
468 return jjMoveStringLiteralDfa1_1(0x0L, 0x10000L, 0x1L);
470 return jjStopAtPos(0, 116);
473 return jjMoveStringLiteralDfa1_1(0x2000000000L, 0x20000L, 0x2L);
476 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x80L);
479 return jjMoveStringLiteralDfa1_1(0x4800L, 0x0L, 0x8L);
482 return jjMoveStringLiteralDfa1_1(0x4000000000L, 0x0L, 0x0L);
484 return jjStopAtPos(0, 115);
487 return jjMoveStringLiteralDfa1_1(0x0L, 0x1200000004000000L, 0x400L);
490 return jjMoveStringLiteralDfa1_1(0x8000000000L, 0x4100000000000000L, 0x0L);
493 return jjMoveStringLiteralDfa1_1(0x0L, 0x400000018000000L, 0x800L);
496 return jjMoveStringLiteralDfa1_1(0x10L, 0x0L, 0x0L);
498 return jjStopAtPos(0, 72);
500 return jjStopAtPos(0, 113);
502 return jjStopAtPos(0, 114);
505 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x40L);
508 return jjMoveStringLiteralDfa1_1(0x4000000004000000L, 0x40000000L, 0x0L);
511 return jjMoveStringLiteralDfa1_1(0x8000000L, 0x6L, 0x0L);
514 return jjMoveStringLiteralDfa1_1(0x70000100000L, 0x0L, 0x0L);
517 return jjMoveStringLiteralDfa1_1(0x180000000000L, 0x10L, 0x0L);
520 return jjMoveStringLiteralDfa1_1(0x1e00200043000000L, 0x0L, 0x0L);
523 return jjMoveStringLiteralDfa1_1(0x2080400000200000L, 0x20L, 0x0L);
526 return jjMoveStringLiteralDfa1_1(0x800800000000L, 0x0L, 0x0L);
529 return jjMoveStringLiteralDfa1_1(0x280800000L, 0xc0L, 0x0L);
532 return jjMoveStringLiteralDfa1_1(0x10000000L, 0x0L, 0x0L);
535 return jjMoveStringLiteralDfa1_1(0x3000000000000L, 0x0L, 0x0L);
538 return jjMoveStringLiteralDfa1_1(0x0L, 0x20000001L, 0x0L);
541 return jjMoveStringLiteralDfa1_1(0x20000000L, 0x0L, 0x0L);
544 return jjMoveStringLiteralDfa1_1(0x4000500000000L, 0x8L, 0x0L);
547 return jjMoveStringLiteralDfa1_1(0x8018001000000000L, 0x0L, 0x0L);
550 return jjMoveStringLiteralDfa1_1(0x60000000000000L, 0x0L, 0x0L);
553 return jjMoveStringLiteralDfa1_1(0x400000L, 0x0L, 0x0L);
556 return jjMoveStringLiteralDfa1_1(0x100000000000000L, 0x0L, 0x0L);
558 return jjStopAtPos(0, 111);
561 return jjMoveStringLiteralDfa1_1(0x0L, 0x4000L, 0x20L);
563 return jjStopAtPos(0, 112);
566 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x200L);
568 return jjMoveNfa_1(3, 0);
571 static private final int jjMoveStringLiteralDfa1_1(long active0, long active1, long active2)
573 try { curChar = input_stream.readChar(); }
574 catch(java.io.IOException e) {
575 jjStopStringLiteralDfa_1(0, active0, active1, active2);
581 if ((active1 & 0x8000L) != 0L)
582 return jjStopAtPos(1, 79);
585 if ((active0 & 0x4000L) != 0L)
586 return jjStartNfaWithStates_1(1, 14, 0);
589 if ((active1 & 0x10000L) != 0L)
590 return jjStopAtPos(1, 80);
593 if ((active1 & 0x20000L) != 0L)
594 return jjStopAtPos(1, 81);
597 if ((active0 & 0x800L) != 0L)
598 return jjStopAtPos(1, 11);
601 if ((active0 & 0x4000000000L) != 0L)
602 return jjStopAtPos(1, 38);
605 if ((active1 & 0x4000000L) != 0L)
610 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0L, active2, 0x400L);
612 if ((active1 & 0x100000000000000L) != 0L)
617 else if ((active1 & 0x200000000000000L) != 0L)
618 return jjStopAtPos(1, 121);
619 else if ((active1 & 0x400000000000000L) != 0L)
620 return jjStopAtPos(1, 122);
621 else if ((active1 & 0x800000000000000L) != 0L)
626 else if ((active2 & 0x1L) != 0L)
627 return jjStopAtPos(1, 128);
628 else if ((active2 & 0x2L) != 0L)
629 return jjStopAtPos(1, 129);
630 else if ((active2 & 0x4L) != 0L)
631 return jjStopAtPos(1, 130);
632 else if ((active2 & 0x8L) != 0L)
633 return jjStopAtPos(1, 131);
634 else if ((active2 & 0x10L) != 0L)
635 return jjStopAtPos(1, 132);
636 else if ((active2 & 0x20L) != 0L)
637 return jjStopAtPos(1, 133);
638 else if ((active2 & 0x40L) != 0L)
639 return jjStopAtPos(1, 134);
640 else if ((active2 & 0x80L) != 0L)
641 return jjStopAtPos(1, 135);
642 else if ((active2 & 0x100L) != 0L)
643 return jjStopAtPos(1, 136);
644 else if ((active2 & 0x200L) != 0L)
645 return jjStopAtPos(1, 137);
646 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0x6000000000000000L, active2, 0L);
648 if ((active0 & 0x10L) != 0L)
649 return jjStopAtPos(1, 4);
650 else if ((active0 & 0x2000000000L) != 0L)
651 return jjStopAtPos(1, 37);
652 else if ((active0 & 0x8000000000L) != 0L)
653 return jjStopAtPos(1, 39);
654 else if ((active1 & 0x8000000L) != 0L)
659 else if ((active1 & 0x1000000000000000L) != 0L)
660 return jjStopAtPos(1, 124);
661 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0x10000000L, active2, 0x800L);
664 return jjMoveStringLiteralDfa2_1(active0, 0x80010000400000L, active1, 0L, active2, 0L);
667 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0x1L, active2, 0L);
670 return jjMoveStringLiteralDfa2_1(active0, 0x40000000L, active1, 0L, active2, 0L);
673 return jjMoveStringLiteralDfa2_1(active0, 0x5080500000000L, active1, 0x8L, active2, 0L);
676 if ((active0 & 0x800000L) != 0L)
677 return jjStartNfaWithStates_1(1, 23, 14);
681 return jjMoveStringLiteralDfa2_1(active0, 0x120000000000000L, active1, 0L, active2, 0L);
684 return jjMoveStringLiteralDfa2_1(active0, 0x10000000L, active1, 0L, active2, 0L);
687 return jjMoveStringLiteralDfa2_1(active0, 0x803100000L, active1, 0x20L, active2, 0L);
690 return jjMoveStringLiteralDfa2_1(active0, 0x1e00000280000000L, active1, 0x400000c0L, active2, 0L);
693 if ((active0 & 0x100000000000L) != 0L)
698 return jjMoveStringLiteralDfa2_1(active0, 0x2000c60000000000L, active1, 0x16L, active2, 0L);
701 if ((active1 & 0x20000000L) != 0L)
702 return jjStartNfaWithStates_1(1, 93, 14);
703 return jjMoveStringLiteralDfa2_1(active0, 0x4000002c000000L, active1, 0L, active2, 0L);
706 if ((active0 & 0x4000000000000000L) != 0L)
707 return jjStartNfaWithStates_1(1, 62, 14);
711 return jjMoveStringLiteralDfa2_1(active0, 0x8000001000000000L, active1, 0L, active2, 0L);
714 return jjMoveStringLiteralDfa2_1(active0, 0xa000000200000L, active1, 0L, active2, 0L);
717 return jjMoveStringLiteralDfa2_1(active0, 0x10000000000000L, active1, 0L, active2, 0L);
720 return jjMoveStringLiteralDfa2_1(active0, 0x200000000000L, active1, 0L, active2, 0L);
722 if ((active1 & 0x4000L) != 0L)
723 return jjStopAtPos(1, 78);
728 return jjStartNfa_1(0, active0, active1, active2);
730 static private final int jjMoveStringLiteralDfa2_1(long old0, long active0, long old1, long active1, long old2, long active2)
732 if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
733 return jjStartNfa_1(0, old0, old1, old2);
734 try { curChar = input_stream.readChar(); }
735 catch(java.io.IOException e) {
736 jjStopStringLiteralDfa_1(1, active0, active1, active2);
742 if ((active1 & 0x2000000000000000L) != 0L)
743 return jjStopAtPos(2, 125);
744 else if ((active1 & 0x4000000000000000L) != 0L)
745 return jjStopAtPos(2, 126);
746 else if ((active2 & 0x400L) != 0L)
747 return jjStopAtPos(2, 138);
748 else if ((active2 & 0x800L) != 0L)
749 return jjStopAtPos(2, 139);
752 if ((active1 & 0x10000000L) != 0L)
753 return jjStopAtPos(2, 92);
757 return jjMoveStringLiteralDfa3_1(active0, 0x1000100000L, active1, 0x8L, active2, 0L);
760 return jjMoveStringLiteralDfa3_1(active0, 0x280000000L, active1, 0L, active2, 0L);
763 if ((active1 & 0x40000000L) != 0L)
764 return jjStartNfaWithStates_1(2, 94, 14);
765 return jjMoveStringLiteralDfa3_1(active0, 0x1e00000000000000L, active1, 0L, active2, 0L);
768 return jjMoveStringLiteralDfa3_1(active0, 0x8000000L, active1, 0L, active2, 0L);
771 return jjMoveStringLiteralDfa3_1(active0, 0x80000000000L, active1, 0L, active2, 0L);
774 return jjMoveStringLiteralDfa3_1(active0, 0x40000000L, active1, 0L, active2, 0L);
777 return jjMoveStringLiteralDfa3_1(active0, 0x130000020000000L, active1, 0L, active2, 0L);
780 return jjMoveStringLiteralDfa3_1(active0, 0L, active1, 0x1L, active2, 0L);
783 return jjMoveStringLiteralDfa3_1(active0, 0x82000000000000L, active1, 0L, active2, 0L);
786 return jjMoveStringLiteralDfa3_1(active0, 0x60000200000L, active1, 0L, active2, 0L);
789 return jjMoveStringLiteralDfa3_1(active0, 0x800000000L, active1, 0x26L, active2, 0L);
792 return jjMoveStringLiteralDfa3_1(active0, 0x8000000000000L, active1, 0L, active2, 0L);
795 return jjMoveStringLiteralDfa3_1(active0, 0x500000000L, active1, 0L, active2, 0L);
798 if ((active0 & 0x400000L) != 0L)
799 return jjStartNfaWithStates_1(2, 22, 14);
800 else if ((active0 & 0x400000000000L) != 0L)
805 return jjMoveStringLiteralDfa3_1(active0, 0xa000000004000000L, active1, 0L, active2, 0L);
808 return jjMoveStringLiteralDfa3_1(active0, 0x10013000000L, active1, 0L, active2, 0L);
811 if ((active1 & 0x40L) != 0L)
816 return jjMoveStringLiteralDfa3_1(active0, 0x4a00000000000L, active1, 0x80L, active2, 0L);
819 return jjMoveStringLiteralDfa3_1(active0, 0x40000000000000L, active1, 0x10L, active2, 0L);
822 if ((active0 & 0x1000000000000L) != 0L)
823 return jjStartNfaWithStates_1(2, 48, 14);
828 return jjStartNfa_1(1, active0, active1, active2);
830 static private final int jjMoveStringLiteralDfa3_1(long old0, long active0, long old1, long active1, long old2, long active2)
832 if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
833 return jjStartNfa_1(1, old0, old1, old2);
834 try { curChar = input_stream.readChar(); }
835 catch(java.io.IOException e) {
836 jjStopStringLiteralDfa_1(2, active0, active1, 0L);
843 return jjMoveStringLiteralDfa4_1(active0, 0x8000c000000L, active1, 0x20L);
846 return jjMoveStringLiteralDfa4_1(active0, 0x800000000L, active1, 0x10L);
849 return jjMoveStringLiteralDfa4_1(active0, 0x200000L, active1, 0L);
852 if ((active0 & 0x2000000L) != 0L)
857 else if ((active0 & 0x10000000000L) != 0L)
858 return jjStartNfaWithStates_1(3, 40, 14);
859 else if ((active0 & 0x40000000000000L) != 0L)
860 return jjStartNfaWithStates_1(3, 54, 14);
861 return jjMoveStringLiteralDfa4_1(active0, 0x2008200001000000L, active1, 0x81L);
864 return jjMoveStringLiteralDfa4_1(active0, 0x1000000000000000L, active1, 0L);
867 return jjMoveStringLiteralDfa4_1(active0, 0x8800000000000000L, active1, 0L);
870 if ((active0 & 0x2000000000000L) != 0L)
871 return jjStartNfaWithStates_1(3, 49, 14);
872 else if ((active1 & 0x2L) != 0L)
877 else if ((active1 & 0x8L) != 0L)
878 return jjStartNfaWithStates_1(3, 67, 14);
879 return jjMoveStringLiteralDfa4_1(active0, 0x100000280000000L, active1, 0x4L);
882 return jjMoveStringLiteralDfa4_1(active0, 0x20000000L, active1, 0L);
885 if ((active0 & 0x40000000L) != 0L)
886 return jjStartNfaWithStates_1(3, 30, 14);
887 else if ((active0 & 0x800000000000L) != 0L)
888 return jjStartNfaWithStates_1(3, 47, 14);
892 if ((active0 & 0x20000000000000L) != 0L)
893 return jjStartNfaWithStates_1(3, 53, 14);
894 return jjMoveStringLiteralDfa4_1(active0, 0x480020000100000L, active1, 0L);
897 if ((active0 & 0x10000000L) != 0L)
898 return jjStartNfaWithStates_1(3, 28, 14);
899 return jjMoveStringLiteralDfa4_1(active0, 0x10041000000000L, active1, 0L);
902 return jjMoveStringLiteralDfa4_1(active0, 0x4000500000000L, active1, 0L);
905 return jjMoveStringLiteralDfa4_1(active0, 0x200000000000000L, active1, 0L);
909 return jjStartNfa_1(2, active0, active1, 0L);
911 static private final int jjMoveStringLiteralDfa4_1(long old0, long active0, long old1, long active1)
913 if (((active0 &= old0) | (active1 &= old1)) == 0L)
914 return jjStartNfa_1(2, old0, old1, 0L);
915 try { curChar = input_stream.readChar(); }
916 catch(java.io.IOException e) {
917 jjStopStringLiteralDfa_1(3, active0, active1, 0L);
924 return jjMoveStringLiteralDfa5_1(active0, 0x2000000800000000L, active1, 0L);
927 return jjMoveStringLiteralDfa5_1(active0, 0x10000000000000L, active1, 0x1L);
930 if ((active0 & 0x80000000000000L) != 0L)
931 return jjStartNfaWithStates_1(4, 55, 14);
932 else if ((active0 & 0x100000000000000L) != 0L)
933 return jjStartNfaWithStates_1(4, 56, 14);
934 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x4L);
937 if ((active0 & 0x800000000000000L) != 0L)
938 return jjStartNfaWithStates_1(4, 59, 14);
942 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x80L);
945 return jjMoveStringLiteralDfa5_1(active0, 0x200000000000000L, active1, 0L);
948 return jjMoveStringLiteralDfa5_1(active0, 0x41501000000L, active1, 0L);
951 if ((active0 & 0x8000000L) != 0L)
952 return jjStartNfaWithStates_1(4, 27, 14);
956 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x10L);
959 return jjMoveStringLiteralDfa5_1(active0, 0x8000200000000000L, active1, 0L);
962 return jjMoveStringLiteralDfa5_1(active0, 0x1000000000000000L, active1, 0L);
965 if ((active0 & 0x8000000000000L) != 0L)
966 return jjStartNfaWithStates_1(4, 51, 14);
967 return jjMoveStringLiteralDfa5_1(active0, 0x4000000000000L, active1, 0L);
970 if ((active0 & 0x100000L) != 0L)
971 return jjStartNfaWithStates_1(4, 20, 14);
975 if ((active0 & 0x20000000L) != 0L)
976 return jjStartNfaWithStates_1(4, 29, 14);
977 else if ((active0 & 0x20000000000L) != 0L)
978 return jjStartNfaWithStates_1(4, 41, 14);
979 else if ((active1 & 0x20L) != 0L)
980 return jjStartNfaWithStates_1(4, 69, 14);
981 return jjMoveStringLiteralDfa5_1(active0, 0x200000L, active1, 0L);
984 return jjMoveStringLiteralDfa5_1(active0, 0x80280000000L, active1, 0L);
987 return jjMoveStringLiteralDfa5_1(active0, 0x400000000000000L, active1, 0L);
990 if ((active0 & 0x4000000L) != 0L)
991 return jjStartNfaWithStates_1(4, 26, 14);
996 return jjStartNfa_1(3, active0, active1, 0L);
998 static private final int jjMoveStringLiteralDfa5_1(long old0, long active0, long old1, long active1)
1000 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1001 return jjStartNfa_1(3, old0, old1, 0L);
1002 try { curChar = input_stream.readChar(); }
1003 catch(java.io.IOException e) {
1004 jjStopStringLiteralDfa_1(4, active0, active1, 0L);
1011 return jjMoveStringLiteralDfa6_1(active0, 0L, active1, 0x4L);
1014 if ((active0 & 0x1000000000L) != 0L)
1015 return jjStartNfaWithStates_1(5, 36, 14);
1016 return jjMoveStringLiteralDfa6_1(active0, 0x2000000000000000L, active1, 0L);
1019 return jjMoveStringLiteralDfa6_1(active0, 0x200280000000L, active1, 0L);
1022 if ((active1 & 0x10L) != 0L)
1023 return jjStartNfaWithStates_1(5, 68, 14);
1024 return jjMoveStringLiteralDfa6_1(active0, 0L, active1, 0x80L);
1027 if ((active0 & 0x1000000L) != 0L)
1028 return jjStartNfaWithStates_1(5, 24, 14);
1032 if ((active0 & 0x8000000000000000L) != 0L)
1033 return jjStartNfaWithStates_1(5, 63, 14);
1037 if ((active0 & 0x10000000000000L) != 0L)
1038 return jjStartNfaWithStates_1(5, 52, 14);
1042 return jjMoveStringLiteralDfa6_1(active0, 0x600000000200000L, active1, 0L);
1045 if ((active0 & 0x800000000L) != 0L)
1046 return jjStartNfaWithStates_1(5, 35, 14);
1047 return jjMoveStringLiteralDfa6_1(active0, 0x80000000000L, active1, 0L);
1050 if ((active0 & 0x4000000000000L) != 0L)
1051 return jjStartNfaWithStates_1(5, 50, 14);
1052 return jjMoveStringLiteralDfa6_1(active0, 0x40000000000L, active1, 0L);
1055 if ((active0 & 0x1000000000000000L) != 0L)
1056 return jjStartNfaWithStates_1(5, 60, 14);
1057 return jjMoveStringLiteralDfa6_1(active0, 0x500000000L, active1, 0L);
1060 if ((active1 & 0x1L) != 0L)
1061 return jjStartNfaWithStates_1(5, 64, 14);
1066 return jjStartNfa_1(4, active0, active1, 0L);
1068 static private final int jjMoveStringLiteralDfa6_1(long old0, long active0, long old1, long active1)
1070 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1071 return jjStartNfa_1(4, old0, old1, 0L);
1072 try { curChar = input_stream.readChar(); }
1073 catch(java.io.IOException e) {
1074 jjStopStringLiteralDfa_1(5, active0, active1, 0L);
1081 if ((active0 & 0x80000000L) != 0L)
1086 else if ((active0 & 0x100000000L) != 0L)
1091 return jjMoveStringLiteralDfa7_1(active0, 0x600000000L, active1, 0L);
1094 if ((active0 & 0x2000000000000000L) != 0L)
1095 return jjStartNfaWithStates_1(6, 61, 14);
1099 return jjMoveStringLiteralDfa7_1(active0, 0x200000000000000L, active1, 0L);
1102 if ((active1 & 0x4L) != 0L)
1103 return jjStartNfaWithStates_1(6, 66, 14);
1107 return jjMoveStringLiteralDfa7_1(active0, 0x200000L, active1, 0L);
1110 if ((active1 & 0x80L) != 0L)
1111 return jjStartNfaWithStates_1(6, 71, 14);
1115 if ((active0 & 0x200000000000L) != 0L)
1116 return jjStartNfaWithStates_1(6, 45, 14);
1120 if ((active0 & 0x80000000000L) != 0L)
1121 return jjStartNfaWithStates_1(6, 43, 14);
1122 return jjMoveStringLiteralDfa7_1(active0, 0x400000000000000L, active1, 0L);
1125 return jjMoveStringLiteralDfa7_1(active0, 0x40000000000L, active1, 0L);
1129 return jjStartNfa_1(5, active0, active1, 0L);
1131 static private final int jjMoveStringLiteralDfa7_1(long old0, long active0, long old1, long active1)
1133 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1134 return jjStartNfa_1(5, old0, old1, 0L);
1135 try { curChar = input_stream.readChar(); }
1136 catch(java.io.IOException e) {
1137 jjStopStringLiteralDfa_1(6, active0, 0L, 0L);
1143 return jjMoveStringLiteralDfa8_1(active0, 0x600000000L);
1146 return jjMoveStringLiteralDfa8_1(active0, 0x400000000000000L);
1149 if ((active0 & 0x40000000000L) != 0L)
1150 return jjStartNfaWithStates_1(7, 42, 14);
1151 else if ((active0 & 0x200000000000000L) != 0L)
1152 return jjStartNfaWithStates_1(7, 57, 14);
1156 if ((active0 & 0x200000L) != 0L)
1157 return jjStartNfaWithStates_1(7, 21, 14);
1162 return jjStartNfa_1(6, active0, 0L, 0L);
1164 static private final int jjMoveStringLiteralDfa8_1(long old0, long active0)
1166 if (((active0 &= old0)) == 0L)
1167 return jjStartNfa_1(6, old0, 0L, 0L);
1168 try { curChar = input_stream.readChar(); }
1169 catch(java.io.IOException e) {
1170 jjStopStringLiteralDfa_1(7, active0, 0L, 0L);
1177 if ((active0 & 0x400000000000000L) != 0L)
1178 return jjStartNfaWithStates_1(8, 58, 14);
1182 return jjMoveStringLiteralDfa9_1(active0, 0x600000000L);
1186 return jjStartNfa_1(7, active0, 0L, 0L);
1188 static private final int jjMoveStringLiteralDfa9_1(long old0, long active0)
1190 if (((active0 &= old0)) == 0L)
1191 return jjStartNfa_1(7, old0, 0L, 0L);
1192 try { curChar = input_stream.readChar(); }
1193 catch(java.io.IOException e) {
1194 jjStopStringLiteralDfa_1(8, active0, 0L, 0L);
1201 return jjMoveStringLiteralDfa10_1(active0, 0x600000000L);
1205 return jjStartNfa_1(8, active0, 0L, 0L);
1207 static private final int jjMoveStringLiteralDfa10_1(long old0, long active0)
1209 if (((active0 &= old0)) == 0L)
1210 return jjStartNfa_1(8, old0, 0L, 0L);
1211 try { curChar = input_stream.readChar(); }
1212 catch(java.io.IOException e) {
1213 jjStopStringLiteralDfa_1(9, active0, 0L, 0L);
1220 return jjMoveStringLiteralDfa11_1(active0, 0x600000000L);
1224 return jjStartNfa_1(9, active0, 0L, 0L);
1226 static private final int jjMoveStringLiteralDfa11_1(long old0, long active0)
1228 if (((active0 &= old0)) == 0L)
1229 return jjStartNfa_1(9, old0, 0L, 0L);
1230 try { curChar = input_stream.readChar(); }
1231 catch(java.io.IOException e) {
1232 jjStopStringLiteralDfa_1(10, active0, 0L, 0L);
1239 if ((active0 & 0x200000000L) != 0L)
1240 return jjStartNfaWithStates_1(11, 33, 14);
1241 else if ((active0 & 0x400000000L) != 0L)
1242 return jjStartNfaWithStates_1(11, 34, 14);
1247 return jjStartNfa_1(10, active0, 0L, 0L);
1249 static final long[] jjbitVec0 = {
1250 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
1252 static private final int jjMoveNfa_1(int startState, int curPos)
1258 jjstateSet[0] = startState;
1259 int j, kind = 0x7fffffff;
1262 if (++jjround == 0x7fffffff)
1266 long l = 1L << curChar;
1269 switch(jjstateSet[--i])
1272 if ((0x3ff000000000000L & l) != 0L)
1273 jjCheckNAddStates(0, 6);
1274 else if (curChar == 39)
1275 jjCheckNAddStates(7, 12);
1276 else if (curChar == 34)
1277 jjCheckNAddStates(13, 20);
1278 else if (curChar == 36)
1279 jjstateSet[jjnewStateCnt++] = 16;
1280 else if (curChar == 46)
1282 else if (curChar == 47)
1283 jjstateSet[jjnewStateCnt++] = 2;
1284 if ((0x3fe000000000000L & l) != 0L)
1288 jjCheckNAddTwoStates(5, 6);
1290 else if (curChar == 48)
1294 jjCheckNAddStates(21, 23);
1299 jjstateSet[jjnewStateCnt++] = 1;
1302 if ((0xffff7fffffffffffL & l) != 0L && kind > 13)
1307 jjstateSet[jjnewStateCnt++] = 0;
1310 if ((0x3fe000000000000L & l) == 0L)
1314 jjCheckNAddTwoStates(5, 6);
1317 if ((0x3ff000000000000L & l) == 0L)
1321 jjCheckNAddTwoStates(5, 6);
1328 if ((0x3ff000000000000L & l) == 0L)
1332 jjCheckNAddStates(24, 26);
1335 if ((0x280000000000L & l) != 0L)
1339 if ((0x3ff000000000000L & l) == 0L)
1343 jjCheckNAddTwoStates(11, 12);
1346 if ((0x3ff000000000000L & l) == 0L)
1350 jjstateSet[jjnewStateCnt++] = 14;
1354 jjstateSet[jjnewStateCnt++] = 16;
1357 if ((0x3ff000000000000L & l) == 0L)
1361 jjstateSet[jjnewStateCnt++] = 17;
1364 if ((0x3ff000000000000L & l) != 0L)
1365 jjCheckNAddStates(0, 6);
1368 if ((0x3ff000000000000L & l) != 0L)
1369 jjCheckNAddTwoStates(19, 20);
1376 jjCheckNAddStates(27, 29);
1379 if ((0x3ff000000000000L & l) == 0L)
1383 jjCheckNAddStates(27, 29);
1386 if ((0x280000000000L & l) != 0L)
1390 if ((0x3ff000000000000L & l) == 0L)
1394 jjCheckNAddTwoStates(24, 12);
1397 if ((0x3ff000000000000L & l) != 0L)
1398 jjCheckNAddTwoStates(25, 26);
1401 if ((0x280000000000L & l) != 0L)
1405 if ((0x3ff000000000000L & l) == 0L)
1409 jjCheckNAddTwoStates(28, 12);
1412 if ((0x3ff000000000000L & l) != 0L)
1413 jjCheckNAddStates(30, 32);
1416 if ((0x280000000000L & l) != 0L)
1420 if ((0x3ff000000000000L & l) != 0L)
1421 jjCheckNAddTwoStates(32, 12);
1428 jjCheckNAddStates(21, 23);
1431 if ((0x3ff000000000000L & l) == 0L)
1435 jjCheckNAddTwoStates(35, 6);
1438 if ((0xff000000000000L & l) == 0L)
1442 jjCheckNAddTwoStates(36, 6);
1446 jjCheckNAddStates(13, 20);
1449 if ((0xfffffffbffffffffL & l) != 0L)
1450 jjCheckNAddStates(33, 36);
1454 jjCheckNAddStates(33, 36);
1457 if ((0xfffffffbffffffffL & l) != 0L)
1458 jjstateSet[jjnewStateCnt++] = 43;
1461 if (curChar == 34 && kind > 101)
1465 if ((0xfffffffbffffffffL & l) != 0L)
1466 jjCheckNAddStates(37, 40);
1470 jjCheckNAddStates(37, 40);
1473 if ((0xfffffffbffffffffL & l) != 0L)
1474 jjstateSet[jjnewStateCnt++] = 50;
1477 if (curChar == 34 && kind > 102)
1482 jjCheckNAddStates(7, 12);
1485 if ((0xffffff7fffffffffL & l) != 0L)
1486 jjCheckNAddStates(41, 43);
1490 jjCheckNAddStates(41, 43);
1493 if (curChar == 39 && kind > 101)
1497 if ((0xffffff7fffffffffL & l) != 0L)
1498 jjCheckNAddStates(44, 46);
1502 jjCheckNAddStates(44, 46);
1505 if (curChar == 39 && kind > 103)
1509 jjAddStates(47, 49);
1512 jjAddStates(50, 52);
1516 } while(i != startsAt);
1518 else if (curChar < 128)
1520 long l = 1L << (curChar & 077);
1523 switch(jjstateSet[--i])
1526 if ((0x87fffffe87fffffeL & l) != 0L)
1532 else if (curChar == 96)
1533 jjCheckNAddStates(53, 58);
1540 if ((0x100000001000L & l) != 0L && kind > 95)
1544 if ((0x2000000020L & l) != 0L)
1545 jjAddStates(59, 60);
1548 if ((0x5000000050L & l) != 0L && kind > 99)
1553 if ((0x87fffffe87fffffeL & l) == 0L)
1561 if ((0x87fffffe87fffffeL & l) == 0L)
1568 if ((0x2000000020L & l) != 0L)
1569 jjAddStates(61, 62);
1572 if ((0x2000000020L & l) != 0L)
1573 jjAddStates(63, 64);
1576 if ((0x2000000020L & l) != 0L)
1577 jjAddStates(65, 66);
1580 if ((0x100000001000000L & l) != 0L)
1584 if ((0x7e0000007eL & l) == 0L)
1588 jjCheckNAddTwoStates(35, 6);
1591 if ((0xd7ffffffffffffffL & l) != 0L)
1592 jjCheckNAddStates(33, 36);
1596 jjstateSet[jjnewStateCnt++] = 39;
1600 jjstateSet[jjnewStateCnt++] = 42;
1603 jjstateSet[jjnewStateCnt++] = 43;
1607 jjCheckNAddStates(33, 36);
1610 if ((0xd7ffffffffffffffL & l) != 0L)
1611 jjCheckNAddStates(37, 40);
1615 jjstateSet[jjnewStateCnt++] = 46;
1619 jjstateSet[jjnewStateCnt++] = 49;
1622 jjstateSet[jjnewStateCnt++] = 50;
1626 jjCheckNAddStates(37, 40);
1629 jjAddStates(41, 43);
1633 jjstateSet[jjnewStateCnt++] = 54;
1636 jjAddStates(44, 46);
1640 jjstateSet[jjnewStateCnt++] = 58;
1644 jjCheckNAddStates(53, 58);
1647 if ((0xfffffffeffffffffL & l) != 0L)
1648 jjCheckNAddStates(47, 49);
1652 jjCheckNAddStates(47, 49);
1656 jjstateSet[jjnewStateCnt++] = 63;
1659 if (curChar == 96 && kind > 101)
1663 if ((0xfffffffeffffffffL & l) != 0L)
1664 jjCheckNAddStates(50, 52);
1668 jjCheckNAddStates(50, 52);
1672 jjstateSet[jjnewStateCnt++] = 67;
1675 if (curChar == 96 && kind > 104)
1680 } while(i != startsAt);
1684 int i2 = (curChar & 0xff) >> 6;
1685 long l2 = 1L << (curChar & 077);
1688 switch(jjstateSet[--i])
1692 if ((jjbitVec0[i2] & l2) == 0L)
1699 if ((jjbitVec0[i2] & l2) != 0L && kind > 13)
1704 if ((jjbitVec0[i2] & l2) == 0L)
1711 if ((jjbitVec0[i2] & l2) != 0L)
1712 jjAddStates(33, 36);
1715 if ((jjbitVec0[i2] & l2) != 0L)
1716 jjstateSet[jjnewStateCnt++] = 43;
1719 if ((jjbitVec0[i2] & l2) != 0L)
1720 jjAddStates(37, 40);
1723 if ((jjbitVec0[i2] & l2) != 0L)
1724 jjstateSet[jjnewStateCnt++] = 50;
1727 if ((jjbitVec0[i2] & l2) != 0L)
1728 jjAddStates(41, 43);
1731 if ((jjbitVec0[i2] & l2) != 0L)
1732 jjAddStates(44, 46);
1735 if ((jjbitVec0[i2] & l2) != 0L)
1736 jjAddStates(47, 49);
1739 if ((jjbitVec0[i2] & l2) != 0L)
1740 jjAddStates(50, 52);
1744 } while(i != startsAt);
1746 if (kind != 0x7fffffff)
1748 jjmatchedKind = kind;
1749 jjmatchedPos = curPos;
1753 if ((i = jjnewStateCnt) == (startsAt = 70 - (jjnewStateCnt = startsAt)))
1755 try { curChar = input_stream.readChar(); }
1756 catch(java.io.IOException e) { return curPos; }
1759 static private final int jjMoveStringLiteralDfa0_3()
1764 return jjMoveStringLiteralDfa1_3(0x20000L);
1769 static private final int jjMoveStringLiteralDfa1_3(long active0)
1771 try { curChar = input_stream.readChar(); }
1772 catch(java.io.IOException e) {
1778 if ((active0 & 0x20000L) != 0L)
1779 return jjStopAtPos(1, 17);
1786 static final int[] jjnextStates = {
1787 19, 20, 25, 26, 29, 30, 12, 53, 55, 56, 57, 59, 60, 38, 40, 41,
1788 44, 45, 47, 48, 51, 34, 36, 6, 8, 9, 12, 21, 22, 12, 29, 30,
1789 12, 38, 40, 41, 44, 45, 47, 48, 51, 53, 55, 56, 57, 59, 60, 62,
1790 64, 65, 66, 68, 69, 62, 64, 65, 66, 68, 69, 10, 11, 23, 24, 27,
1793 public static final String[] jjstrLiteralImages = {
1794 "", "\74\77", null, "\74\77\75", "\77\76", null, null, null, null, null, null,
1795 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1796 null, null, null, null, null, null, null, null, null, null, null, null, "\55\76",
1797 "\72\72", "\75\76", null, null, null, null, null, null, null, null, null, null, null,
1798 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1799 null, null, null, null, null, null, null, "\100", "\44", "\41", "\176", "\77",
1800 "\72", "\174\174", "\46\46", "\53\53", "\55\55", "\53", "\55", "\52", "\57", "\46",
1801 "\174", "\136", "\45", "\74\74", "\76\76", "\76\76\76", null, null, null, null, null,
1802 null, null, null, null, null, null, null, null, null, null, null, "\50", "\51",
1803 "\173", "\175", "\133", "\135", "\73", "\54", "\56", "\76", "\74", "\75\75", "\74\75",
1804 "\76\75", "\41\75", "\74\76", "\41\75\75", "\75\75\75", "\75", "\53\75", "\55\75",
1805 "\52\75", "\57\75", "\46\75", "\174\75", "\136\75", "\56\75", "\45\75", "\176\75",
1806 "\74\74\75", "\76\76\75", null, };
1807 public static final String[] lexStateNames = {
1810 "IN_SINGLE_LINE_COMMENT",
1811 "IN_FORMAL_COMMENT",
1812 "IN_MULTI_LINE_COMMENT",
1814 public static final int[] jjnewLexState = {
1815 -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,
1816 -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,
1817 -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,
1818 -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,
1819 -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,
1820 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1822 static final long[] jjtoToken = {
1823 0xfffffffffff0001fL, 0xffffe3e8ffffffffL, 0x1fffL,
1825 static final long[] jjtoSkip = {
1826 0x7ffe0L, 0x0L, 0x0L,
1828 static final long[] jjtoSpecial = {
1829 0x7f800L, 0x0L, 0x0L,
1831 static final long[] jjtoMore = {
1832 0x80000L, 0x0L, 0x0L,
1834 static protected SimpleCharStream input_stream;
1835 static private final int[] jjrounds = new int[70];
1836 static private final int[] jjstateSet = new int[140];
1837 static StringBuffer image;
1838 static int jjimageLen;
1839 static int lengthOfMatch;
1840 static protected char curChar;
1841 public PHPParserTokenManager(SimpleCharStream stream)
1843 if (input_stream != null)
1844 throw new TokenMgrError("ERROR: Second call to constructor of static lexer. You must use ReInit() to initialize the static variables.", TokenMgrError.STATIC_LEXER_ERROR);
1845 input_stream = stream;
1847 public PHPParserTokenManager(SimpleCharStream stream, int lexState)
1852 static public void ReInit(SimpleCharStream stream)
1854 jjmatchedPos = jjnewStateCnt = 0;
1855 curLexState = defaultLexState;
1856 input_stream = stream;
1859 static private final void ReInitRounds()
1862 jjround = 0x80000001;
1863 for (i = 70; i-- > 0;)
1864 jjrounds[i] = 0x80000000;
1866 static public void ReInit(SimpleCharStream stream, int lexState)
1871 static public void SwitchTo(int lexState)
1873 if (lexState >= 5 || lexState < 0)
1874 throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
1876 curLexState = lexState;
1879 static protected Token jjFillToken()
1881 Token t = Token.newToken(jjmatchedKind);
1882 t.kind = jjmatchedKind;
1883 String im = jjstrLiteralImages[jjmatchedKind];
1884 t.image = (im == null) ? input_stream.GetImage() : im;
1885 t.beginLine = input_stream.getBeginLine();
1886 t.beginColumn = input_stream.getBeginColumn();
1887 t.endLine = input_stream.getEndLine();
1888 t.endColumn = input_stream.getEndColumn();
1892 static int curLexState = 0;
1893 static int defaultLexState = 0;
1894 static int jjnewStateCnt;
1896 static int jjmatchedPos;
1897 static int jjmatchedKind;
1899 public static Token getNextToken()
1902 Token specialToken = null;
1911 curChar = input_stream.BeginToken();
1913 catch(java.io.IOException e)
1916 matchedToken = jjFillToken();
1917 matchedToken.specialToken = specialToken;
1918 return matchedToken;
1928 jjmatchedKind = 0x7fffffff;
1930 curPos = jjMoveStringLiteralDfa0_0();
1931 if (jjmatchedPos == 0 && jjmatchedKind > 5)
1937 try { input_stream.backup(0);
1938 while (curChar <= 32 && (0x100003600L & (1L << curChar)) != 0L)
1939 curChar = input_stream.BeginToken();
1941 catch (java.io.IOException e1) { continue EOFLoop; }
1942 jjmatchedKind = 0x7fffffff;
1944 curPos = jjMoveStringLiteralDfa0_1();
1947 jjmatchedKind = 0x7fffffff;
1949 curPos = jjMoveStringLiteralDfa0_2();
1950 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1956 jjmatchedKind = 0x7fffffff;
1958 curPos = jjMoveStringLiteralDfa0_3();
1959 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1965 jjmatchedKind = 0x7fffffff;
1967 curPos = jjMoveStringLiteralDfa0_4();
1968 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1974 if (jjmatchedKind != 0x7fffffff)
1976 if (jjmatchedPos + 1 < curPos)
1977 input_stream.backup(curPos - jjmatchedPos - 1);
1978 if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1980 matchedToken = jjFillToken();
1981 matchedToken.specialToken = specialToken;
1982 TokenLexicalActions(matchedToken);
1983 if (jjnewLexState[jjmatchedKind] != -1)
1984 curLexState = jjnewLexState[jjmatchedKind];
1985 return matchedToken;
1987 else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1989 if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1991 matchedToken = jjFillToken();
1992 if (specialToken == null)
1993 specialToken = matchedToken;
1996 matchedToken.specialToken = specialToken;
1997 specialToken = (specialToken.next = matchedToken);
1999 SkipLexicalActions(matchedToken);
2002 SkipLexicalActions(null);
2003 if (jjnewLexState[jjmatchedKind] != -1)
2004 curLexState = jjnewLexState[jjmatchedKind];
2007 jjimageLen += jjmatchedPos + 1;
2008 if (jjnewLexState[jjmatchedKind] != -1)
2009 curLexState = jjnewLexState[jjmatchedKind];
2011 jjmatchedKind = 0x7fffffff;
2013 curChar = input_stream.readChar();
2016 catch (java.io.IOException e1) { }
2018 int error_line = input_stream.getEndLine();
2019 int error_column = input_stream.getEndColumn();
2020 String error_after = null;
2021 boolean EOFSeen = false;
2022 try { input_stream.readChar(); input_stream.backup(1); }
2023 catch (java.io.IOException e1) {
2025 error_after = curPos <= 1 ? "" : input_stream.GetImage();
2026 if (curChar == '\n' || curChar == '\r') {
2034 input_stream.backup(1);
2035 error_after = curPos <= 1 ? "" : input_stream.GetImage();
2037 throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
2042 static void SkipLexicalActions(Token matchedToken)
2044 switch(jjmatchedKind)
2048 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2050 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2051 input_stream.backup(1);
2057 static void TokenLexicalActions(Token matchedToken)
2059 switch(jjmatchedKind)
2063 image = new StringBuffer(jjstrLiteralImages[1]);
2065 image.append(jjstrLiteralImages[1]);
2066 PHPParser.createNewHTMLCode();
2070 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2072 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2073 PHPParser.createNewHTMLCode();
2077 image = new StringBuffer(jjstrLiteralImages[3]);
2079 image.append(jjstrLiteralImages[3]);
2080 PHPParser.createNewHTMLCode();
2084 image = new StringBuffer(jjstrLiteralImages[4]);
2086 image.append(jjstrLiteralImages[4]);
2087 PHPParser.htmlStart = SimpleCharStream.getPosition();