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, 18);
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(19, 21);
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(22, 24);
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(25, 27);
1379 if ((0x3ff000000000000L & l) == 0L)
1383 jjCheckNAddStates(25, 27);
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(28, 30);
1416 if ((0x280000000000L & l) != 0L)
1420 if ((0x3ff000000000000L & l) != 0L)
1421 jjCheckNAddTwoStates(32, 12);
1428 jjCheckNAddStates(19, 21);
1431 if ((0x3ff000000000000L & l) == 0L)
1435 jjCheckNAddTwoStates(35, 6);
1438 if ((0xff000000000000L & l) == 0L)
1442 jjCheckNAddTwoStates(36, 6);
1446 jjCheckNAddStates(13, 18);
1449 if ((0xfffffffbffffffffL & l) != 0L)
1450 jjCheckNAddStates(31, 33);
1454 jjCheckNAddStates(31, 33);
1457 if (curChar == 34 && kind > 101)
1461 if ((0xfffffffbffffffffL & l) != 0L)
1462 jjCheckNAddStates(34, 36);
1466 jjCheckNAddStates(34, 36);
1469 if (curChar == 34 && kind > 102)
1474 jjCheckNAddStates(7, 12);
1477 if ((0xffffff7fffffffffL & l) != 0L)
1478 jjCheckNAddStates(37, 39);
1482 jjCheckNAddStates(37, 39);
1485 if (curChar == 39 && kind > 101)
1489 if ((0xffffff7fffffffffL & l) != 0L)
1490 jjCheckNAddStates(40, 42);
1494 jjCheckNAddStates(40, 42);
1497 if (curChar == 39 && kind > 103)
1501 jjAddStates(43, 45);
1504 jjAddStates(46, 48);
1508 } while(i != startsAt);
1510 else if (curChar < 128)
1512 long l = 1L << (curChar & 077);
1515 switch(jjstateSet[--i])
1518 if ((0x87fffffe87fffffeL & l) != 0L)
1524 else if (curChar == 96)
1525 jjCheckNAddStates(49, 54);
1532 if ((0x100000001000L & l) != 0L && kind > 95)
1536 if ((0x2000000020L & l) != 0L)
1537 jjAddStates(55, 56);
1540 if ((0x5000000050L & l) != 0L && kind > 99)
1545 if ((0x87fffffe87fffffeL & l) == 0L)
1553 if ((0x87fffffe87fffffeL & l) == 0L)
1560 if ((0x2000000020L & l) != 0L)
1561 jjAddStates(57, 58);
1564 if ((0x2000000020L & l) != 0L)
1565 jjAddStates(59, 60);
1568 if ((0x2000000020L & l) != 0L)
1569 jjAddStates(61, 62);
1572 if ((0x100000001000000L & l) != 0L)
1576 if ((0x7e0000007eL & l) == 0L)
1580 jjCheckNAddTwoStates(35, 6);
1583 jjAddStates(31, 33);
1587 jjstateSet[jjnewStateCnt++] = 39;
1590 jjAddStates(34, 36);
1594 jjstateSet[jjnewStateCnt++] = 43;
1597 jjAddStates(37, 39);
1601 jjstateSet[jjnewStateCnt++] = 48;
1604 jjAddStates(40, 42);
1608 jjstateSet[jjnewStateCnt++] = 52;
1612 jjCheckNAddStates(49, 54);
1615 if ((0xfffffffeffffffffL & l) != 0L)
1616 jjCheckNAddStates(43, 45);
1620 jjCheckNAddStates(43, 45);
1624 jjstateSet[jjnewStateCnt++] = 57;
1627 if (curChar == 96 && kind > 101)
1631 if ((0xfffffffeffffffffL & l) != 0L)
1632 jjCheckNAddStates(46, 48);
1636 jjCheckNAddStates(46, 48);
1640 jjstateSet[jjnewStateCnt++] = 61;
1643 if (curChar == 96 && kind > 104)
1648 } while(i != startsAt);
1652 int i2 = (curChar & 0xff) >> 6;
1653 long l2 = 1L << (curChar & 077);
1656 switch(jjstateSet[--i])
1660 if ((jjbitVec0[i2] & l2) == 0L)
1667 if ((jjbitVec0[i2] & l2) != 0L && kind > 13)
1672 if ((jjbitVec0[i2] & l2) == 0L)
1679 if ((jjbitVec0[i2] & l2) != 0L)
1680 jjAddStates(31, 33);
1683 if ((jjbitVec0[i2] & l2) != 0L)
1684 jjAddStates(34, 36);
1687 if ((jjbitVec0[i2] & l2) != 0L)
1688 jjAddStates(37, 39);
1691 if ((jjbitVec0[i2] & l2) != 0L)
1692 jjAddStates(40, 42);
1695 if ((jjbitVec0[i2] & l2) != 0L)
1696 jjAddStates(43, 45);
1699 if ((jjbitVec0[i2] & l2) != 0L)
1700 jjAddStates(46, 48);
1704 } while(i != startsAt);
1706 if (kind != 0x7fffffff)
1708 jjmatchedKind = kind;
1709 jjmatchedPos = curPos;
1713 if ((i = jjnewStateCnt) == (startsAt = 64 - (jjnewStateCnt = startsAt)))
1715 try { curChar = input_stream.readChar(); }
1716 catch(java.io.IOException e) { return curPos; }
1719 static private final int jjMoveStringLiteralDfa0_3()
1724 return jjMoveStringLiteralDfa1_3(0x20000L);
1729 static private final int jjMoveStringLiteralDfa1_3(long active0)
1731 try { curChar = input_stream.readChar(); }
1732 catch(java.io.IOException e) {
1738 if ((active0 & 0x20000L) != 0L)
1739 return jjStopAtPos(1, 17);
1746 static final int[] jjnextStates = {
1747 19, 20, 25, 26, 29, 30, 12, 47, 49, 50, 51, 53, 54, 38, 40, 41,
1748 42, 44, 45, 34, 36, 6, 8, 9, 12, 21, 22, 12, 29, 30, 12, 38,
1749 40, 41, 42, 44, 45, 47, 49, 50, 51, 53, 54, 56, 58, 59, 60, 62,
1750 63, 56, 58, 59, 60, 62, 63, 10, 11, 23, 24, 27, 28, 31, 32,
1752 public static final String[] jjstrLiteralImages = {
1753 "", "\74\77", null, "\74\77\75", "\77\76", null, null, null, null, null, null,
1754 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1755 null, null, null, null, null, null, null, null, null, null, null, null, "\55\76",
1756 "\72\72", "\75\76", null, null, null, null, null, null, null, null, null, null, null,
1757 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1758 null, null, null, null, null, null, null, "\100", "\44", "\41", "\176", "\77",
1759 "\72", "\174\174", "\46\46", "\53\53", "\55\55", "\53", "\55", "\52", "\57", "\46",
1760 "\174", "\136", "\45", "\74\74", "\76\76", "\76\76\76", null, null, null, null, null,
1761 null, null, null, null, null, null, null, null, null, null, null, "\50", "\51",
1762 "\173", "\175", "\133", "\135", "\73", "\54", "\56", "\76", "\74", "\75\75", "\74\75",
1763 "\76\75", "\41\75", "\74\76", "\41\75\75", "\75\75\75", "\75", "\53\75", "\55\75",
1764 "\52\75", "\57\75", "\46\75", "\174\75", "\136\75", "\56\75", "\45\75", "\176\75",
1765 "\74\74\75", "\76\76\75", null, };
1766 public static final String[] lexStateNames = {
1769 "IN_SINGLE_LINE_COMMENT",
1770 "IN_FORMAL_COMMENT",
1771 "IN_MULTI_LINE_COMMENT",
1773 public static final int[] jjnewLexState = {
1774 -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,
1775 -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,
1776 -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,
1777 -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,
1778 -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,
1779 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1781 static final long[] jjtoToken = {
1782 0xfffffffffff0001fL, 0xffffe3e8ffffffffL, 0x1fffL,
1784 static final long[] jjtoSkip = {
1785 0x7ffe0L, 0x0L, 0x0L,
1787 static final long[] jjtoSpecial = {
1788 0x7f800L, 0x0L, 0x0L,
1790 static final long[] jjtoMore = {
1791 0x80000L, 0x0L, 0x0L,
1793 static protected SimpleCharStream input_stream;
1794 static private final int[] jjrounds = new int[64];
1795 static private final int[] jjstateSet = new int[128];
1796 static StringBuffer image;
1797 static int jjimageLen;
1798 static int lengthOfMatch;
1799 static protected char curChar;
1800 public PHPParserTokenManager(SimpleCharStream stream)
1802 if (input_stream != null)
1803 throw new TokenMgrError("ERROR: Second call to constructor of static lexer. You must use ReInit() to initialize the static variables.", TokenMgrError.STATIC_LEXER_ERROR);
1804 input_stream = stream;
1806 public PHPParserTokenManager(SimpleCharStream stream, int lexState)
1811 static public void ReInit(SimpleCharStream stream)
1813 jjmatchedPos = jjnewStateCnt = 0;
1814 curLexState = defaultLexState;
1815 input_stream = stream;
1818 static private final void ReInitRounds()
1821 jjround = 0x80000001;
1822 for (i = 64; i-- > 0;)
1823 jjrounds[i] = 0x80000000;
1825 static public void ReInit(SimpleCharStream stream, int lexState)
1830 static public void SwitchTo(int lexState)
1832 if (lexState >= 5 || lexState < 0)
1833 throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
1835 curLexState = lexState;
1838 static protected Token jjFillToken()
1840 Token t = Token.newToken(jjmatchedKind);
1841 t.kind = jjmatchedKind;
1842 String im = jjstrLiteralImages[jjmatchedKind];
1843 t.image = (im == null) ? input_stream.GetImage() : im;
1844 t.beginLine = input_stream.getBeginLine();
1845 t.beginColumn = input_stream.getBeginColumn();
1846 t.endLine = input_stream.getEndLine();
1847 t.endColumn = input_stream.getEndColumn();
1851 static int curLexState = 0;
1852 static int defaultLexState = 0;
1853 static int jjnewStateCnt;
1855 static int jjmatchedPos;
1856 static int jjmatchedKind;
1858 public static Token getNextToken()
1861 Token specialToken = null;
1870 curChar = input_stream.BeginToken();
1872 catch(java.io.IOException e)
1875 matchedToken = jjFillToken();
1876 matchedToken.specialToken = specialToken;
1877 return matchedToken;
1887 jjmatchedKind = 0x7fffffff;
1889 curPos = jjMoveStringLiteralDfa0_0();
1890 if (jjmatchedPos == 0 && jjmatchedKind > 5)
1896 try { input_stream.backup(0);
1897 while (curChar <= 32 && (0x100003600L & (1L << curChar)) != 0L)
1898 curChar = input_stream.BeginToken();
1900 catch (java.io.IOException e1) { continue EOFLoop; }
1901 jjmatchedKind = 0x7fffffff;
1903 curPos = jjMoveStringLiteralDfa0_1();
1906 jjmatchedKind = 0x7fffffff;
1908 curPos = jjMoveStringLiteralDfa0_2();
1909 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1915 jjmatchedKind = 0x7fffffff;
1917 curPos = jjMoveStringLiteralDfa0_3();
1918 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1924 jjmatchedKind = 0x7fffffff;
1926 curPos = jjMoveStringLiteralDfa0_4();
1927 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1933 if (jjmatchedKind != 0x7fffffff)
1935 if (jjmatchedPos + 1 < curPos)
1936 input_stream.backup(curPos - jjmatchedPos - 1);
1937 if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1939 matchedToken = jjFillToken();
1940 matchedToken.specialToken = specialToken;
1941 TokenLexicalActions(matchedToken);
1942 if (jjnewLexState[jjmatchedKind] != -1)
1943 curLexState = jjnewLexState[jjmatchedKind];
1944 return matchedToken;
1946 else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1948 if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1950 matchedToken = jjFillToken();
1951 if (specialToken == null)
1952 specialToken = matchedToken;
1955 matchedToken.specialToken = specialToken;
1956 specialToken = (specialToken.next = matchedToken);
1958 SkipLexicalActions(matchedToken);
1961 SkipLexicalActions(null);
1962 if (jjnewLexState[jjmatchedKind] != -1)
1963 curLexState = jjnewLexState[jjmatchedKind];
1966 jjimageLen += jjmatchedPos + 1;
1967 if (jjnewLexState[jjmatchedKind] != -1)
1968 curLexState = jjnewLexState[jjmatchedKind];
1970 jjmatchedKind = 0x7fffffff;
1972 curChar = input_stream.readChar();
1975 catch (java.io.IOException e1) { }
1977 int error_line = input_stream.getEndLine();
1978 int error_column = input_stream.getEndColumn();
1979 String error_after = null;
1980 boolean EOFSeen = false;
1981 try { input_stream.readChar(); input_stream.backup(1); }
1982 catch (java.io.IOException e1) {
1984 error_after = curPos <= 1 ? "" : input_stream.GetImage();
1985 if (curChar == '\n' || curChar == '\r') {
1993 input_stream.backup(1);
1994 error_after = curPos <= 1 ? "" : input_stream.GetImage();
1996 throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
2001 static void SkipLexicalActions(Token matchedToken)
2003 switch(jjmatchedKind)
2007 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2009 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2010 input_stream.backup(1);
2016 static void TokenLexicalActions(Token matchedToken)
2018 switch(jjmatchedKind)
2022 image = new StringBuffer(jjstrLiteralImages[1]);
2024 image.append(jjstrLiteralImages[1]);
2025 PHPParser.createNewHTMLCode();
2029 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2031 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2032 PHPParser.createNewHTMLCode();
2036 image = new StringBuffer(jjstrLiteralImages[3]);
2038 image.append(jjstrLiteralImages[3]);
2039 PHPParser.createNewHTMLCode();
2043 image = new StringBuffer(jjstrLiteralImages[4]);
2045 image.append(jjstrLiteralImages[4]);
2046 PHPParser.htmlStart = SimpleCharStream.getPosition();