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.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.parser.*;
16 import net.sourceforge.phpdt.internal.compiler.ast.*;
18 public class PHPParserTokenManager implements PHPParserConstants
20 public static java.io.PrintStream debugStream = System.out;
21 public static void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
22 static private final int jjStopAtPos(int pos, int kind)
28 static private final int jjMoveStringLiteralDfa0_0()
33 return jjMoveStringLiteralDfa1_0(0xeL);
38 static private final int jjMoveStringLiteralDfa1_0(long active0)
40 try { curChar = input_stream.readChar(); }
41 catch(java.io.IOException e) {
47 if ((active0 & 0x2L) != 0L)
52 return jjMoveStringLiteralDfa2_0(active0, 0xcL);
57 static private final int jjMoveStringLiteralDfa2_0(long old0, long active0)
59 if (((active0 &= old0)) == 0L)
61 try { curChar = input_stream.readChar(); }
62 catch(java.io.IOException e) {
68 if ((active0 & 0x8L) != 0L)
69 return jjStopAtPos(2, 3);
73 return jjMoveStringLiteralDfa3_0(active0, 0x4L);
79 static private final int jjMoveStringLiteralDfa3_0(long old0, long active0)
81 if (((active0 &= old0)) == 0L)
83 try { curChar = input_stream.readChar(); }
84 catch(java.io.IOException e) {
91 return jjMoveStringLiteralDfa4_0(active0, 0x4L);
96 static private final int jjMoveStringLiteralDfa4_0(long old0, long active0)
98 if (((active0 &= old0)) == 0L)
100 try { curChar = input_stream.readChar(); }
101 catch(java.io.IOException e) {
108 if ((active0 & 0x4L) != 0L)
109 return jjStopAtPos(4, 2);
116 static private final int jjMoveStringLiteralDfa0_4()
121 return jjMoveStringLiteralDfa1_4(0x40000L);
126 static private final int jjMoveStringLiteralDfa1_4(long active0)
128 try { curChar = input_stream.readChar(); }
129 catch(java.io.IOException e) {
135 if ((active0 & 0x40000L) != 0L)
136 return jjStopAtPos(1, 18);
143 private static final int jjStopStringLiteralDfa_2(int pos, long active0)
151 private static final int jjStartNfa_2(int pos, long active0)
153 return jjMoveNfa_2(jjStopStringLiteralDfa_2(pos, active0), pos + 1);
155 static private final int jjStartNfaWithStates_2(int pos, int kind, int state)
157 jjmatchedKind = kind;
159 try { curChar = input_stream.readChar(); }
160 catch(java.io.IOException e) { return pos + 1; }
161 return jjMoveNfa_2(state, pos + 1);
163 static private final int jjMoveStringLiteralDfa0_2()
168 return jjMoveStringLiteralDfa1_2(0x10000L);
170 return jjMoveNfa_2(0, 0);
173 static private final int jjMoveStringLiteralDfa1_2(long active0)
175 try { curChar = input_stream.readChar(); }
176 catch(java.io.IOException e) {
177 jjStopStringLiteralDfa_2(0, active0);
183 if ((active0 & 0x10000L) != 0L)
184 return jjStopAtPos(1, 16);
189 return jjStartNfa_2(0, active0);
191 static private final void jjCheckNAdd(int state)
193 if (jjrounds[state] != jjround)
195 jjstateSet[jjnewStateCnt++] = state;
196 jjrounds[state] = jjround;
199 static private final void jjAddStates(int start, int end)
202 jjstateSet[jjnewStateCnt++] = jjnextStates[start];
203 } while (start++ != end);
205 static private final void jjCheckNAddTwoStates(int state1, int state2)
210 static private final void jjCheckNAddStates(int start, int end)
213 jjCheckNAdd(jjnextStates[start]);
214 } while (start++ != end);
216 static private final void jjCheckNAddStates(int start)
218 jjCheckNAdd(jjnextStates[start]);
219 jjCheckNAdd(jjnextStates[start + 1]);
221 static private final int jjMoveNfa_2(int startState, int curPos)
227 jjstateSet[0] = startState;
228 int j, kind = 0x7fffffff;
231 if (++jjround == 0x7fffffff)
235 long l = 1L << curChar;
238 switch(jjstateSet[--i])
241 if ((0x2400L & l) != 0L)
247 jjstateSet[jjnewStateCnt++] = 1;
250 if (curChar == 10 && kind > 15)
255 jjstateSet[jjnewStateCnt++] = 1;
259 } while(i != startsAt);
261 else if (curChar < 128)
263 long l = 1L << (curChar & 077);
266 switch(jjstateSet[--i])
270 } while(i != startsAt);
274 int i2 = (curChar & 0xff) >> 6;
275 long l2 = 1L << (curChar & 077);
278 switch(jjstateSet[--i])
282 } while(i != startsAt);
284 if (kind != 0x7fffffff)
286 jjmatchedKind = kind;
287 jjmatchedPos = curPos;
291 if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt)))
293 try { curChar = input_stream.readChar(); }
294 catch(java.io.IOException e) { return curPos; }
297 private static final int jjStopStringLiteralDfa_1(int pos, long active0, long active1, long active2)
302 if ((active0 & 0x4800L) != 0L || (active1 & 0x400000000000L) != 0L || (active2 & 0x4L) != 0L)
304 if ((active1 & 0x40000000000000L) != 0L)
306 if ((active1 & 0x4000100000000L) != 0L)
308 if ((active0 & 0xffffff1ffff00000L) != 0L || (active1 & 0x3ffL) != 0L)
315 if ((active0 & 0xbfffef1fff700000L) != 0L || (active1 & 0x2efL) != 0L)
317 if (jjmatchedPos != 1)
324 if ((active0 & 0x4000L) != 0L)
326 if ((active0 & 0x4000100000800000L) != 0L || (active1 & 0x110L) != 0L)
330 if ((active0 & 0x2001400000400000L) != 0L || (active1 & 0x2c0L) != 0L)
332 if ((active0 & 0x9ffeaf1fff300000L) != 0L || (active1 & 0x3fL) != 0L)
334 if (jjmatchedPos != 2)
343 if ((active0 & 0x62810053000000L) != 0L || (active1 & 0xeL) != 0L)
345 if ((active0 & 0xbf9c2e1fac300000L) != 0L || (active1 & 0xb1L) != 0L)
347 if (jjmatchedPos != 3)
356 if ((active0 & 0xb6142c1f81200000L) != 0L || (active1 & 0x95L) != 0L)
362 if ((active0 & 0x98802002c100000L) != 0L || (active1 & 0x20L) != 0L)
366 if ((active0 & 0x9014001801000000L) != 0L || (active1 & 0x11L) != 0L)
368 if ((active0 & 0x26002c0780200000L) != 0L || (active1 & 0x84L) != 0L)
376 if ((active0 & 0x2000280780000000L) != 0L || (active1 & 0x84L) != 0L)
378 if ((active0 & 0x600040000200000L) != 0L)
380 if (jjmatchedPos != 6)
389 if ((active0 & 0x200040000200000L) != 0L)
391 if ((active0 & 0x400000600000000L) != 0L)
399 if ((active0 & 0x600000000L) != 0L)
405 if ((active0 & 0x400000000000000L) != 0L)
409 if ((active0 & 0x600000000L) != 0L)
417 if ((active0 & 0x600000000L) != 0L)
428 private static final int jjStartNfa_1(int pos, long active0, long active1, long active2)
430 return jjMoveNfa_1(jjStopStringLiteralDfa_1(pos, active0, active1, active2), pos + 1);
432 static private final int jjStartNfaWithStates_1(int pos, int kind, int state)
434 jjmatchedKind = kind;
436 try { curChar = input_stream.readChar(); }
437 catch(java.io.IOException e) { return pos + 1; }
438 return jjMoveNfa_1(state, pos + 1);
440 static private final int jjMoveStringLiteralDfa0_1()
446 return jjMoveStringLiteralDfa1_1(0x0L, 0x14000000000L, 0x0L);
448 return jjStopAtPos(0, 12);
450 return jjStartNfaWithStates_1(0, 118, 16);
453 return jjMoveStringLiteralDfa1_1(0x0L, 0x8000000000000L, 0x0L);
456 return jjMoveStringLiteralDfa1_1(0x0L, 0x1000800000000000L, 0x0L);
458 return jjStopAtPos(0, 88);
460 return jjStopAtPos(0, 89);
463 return jjMoveStringLiteralDfa1_1(0x0L, 0x200000000000L, 0x0L);
466 return jjMoveStringLiteralDfa1_1(0x0L, 0x2000080000000000L, 0x0L);
468 return jjStopAtPos(0, 95);
471 return jjMoveStringLiteralDfa1_1(0x2000000000L, 0x4000100000000000L, 0x0L);
474 return jjMoveStringLiteralDfa1_1(0x0L, 0x4000000000000L, 0x0L);
477 return jjMoveStringLiteralDfa1_1(0x4800L, 0x400000000000L, 0x0L);
480 return jjMoveStringLiteralDfa1_1(0x4000000000L, 0x0L, 0x0L);
482 return jjStopAtPos(0, 94);
485 return jjMoveStringLiteralDfa1_1(0x0L, 0x9000000000L, 0x480L);
488 return jjMoveStringLiteralDfa1_1(0x8000000000L, 0x20800000000L, 0x0L);
491 return jjMoveStringLiteralDfa1_1(0x0L, 0x2000000000L, 0xb00L);
494 return jjMoveStringLiteralDfa1_1(0x10L, 0x0L, 0x0L);
496 return jjStopAtPos(0, 117);
498 return jjStopAtPos(0, 92);
500 return jjStopAtPos(0, 93);
503 return jjMoveStringLiteralDfa1_1(0x0L, 0x2000000000000L, 0x0L);
506 return jjMoveStringLiteralDfa1_1(0x4000000004000000L, 0x200L, 0x0L);
509 return jjMoveStringLiteralDfa1_1(0x8000000L, 0x6L, 0x0L);
512 return jjMoveStringLiteralDfa1_1(0x70000100000L, 0x0L, 0x0L);
515 return jjMoveStringLiteralDfa1_1(0x180000000000L, 0x10L, 0x0L);
518 return jjMoveStringLiteralDfa1_1(0x1e00200043000000L, 0x0L, 0x0L);
521 return jjMoveStringLiteralDfa1_1(0x2080400000200000L, 0x20L, 0x0L);
524 return jjMoveStringLiteralDfa1_1(0x800800000000L, 0x0L, 0x0L);
527 return jjMoveStringLiteralDfa1_1(0x280800000L, 0xc0L, 0x0L);
530 return jjMoveStringLiteralDfa1_1(0x10000000L, 0x0L, 0x0L);
533 return jjMoveStringLiteralDfa1_1(0x3000000000000L, 0x0L, 0x0L);
536 return jjMoveStringLiteralDfa1_1(0x0L, 0x101L, 0x0L);
539 return jjMoveStringLiteralDfa1_1(0x20000000L, 0x0L, 0x0L);
542 return jjMoveStringLiteralDfa1_1(0x4000500000000L, 0x8L, 0x0L);
545 return jjMoveStringLiteralDfa1_1(0x8018001000000000L, 0x0L, 0x0L);
548 return jjMoveStringLiteralDfa1_1(0x60000000000000L, 0x0L, 0x0L);
551 return jjMoveStringLiteralDfa1_1(0x400000L, 0x0L, 0x0L);
554 return jjMoveStringLiteralDfa1_1(0x100000000000000L, 0x0L, 0x0L);
556 return jjStopAtPos(0, 90);
559 return jjMoveStringLiteralDfa1_1(0x0L, 0x801000000000000L, 0x0L);
561 return jjStopAtPos(0, 91);
564 return jjMoveStringLiteralDfa1_1(0x0L, 0x10000000000000L, 0x0L);
566 return jjMoveNfa_1(3, 0);
569 static private final int jjMoveStringLiteralDfa1_1(long active0, long active1, long active2)
571 try { curChar = input_stream.readChar(); }
572 catch(java.io.IOException e) {
573 jjStopStringLiteralDfa_1(0, active0, active1, active2);
579 if ((active1 & 0x1000000000000000L) != 0L)
580 return jjStopAtPos(1, 124);
583 if ((active0 & 0x4000L) != 0L)
584 return jjStartNfaWithStates_1(1, 14, 0);
587 if ((active1 & 0x2000000000000000L) != 0L)
588 return jjStopAtPos(1, 125);
591 if ((active1 & 0x4000000000000000L) != 0L)
592 return jjStopAtPos(1, 126);
595 if ((active0 & 0x800L) != 0L)
596 return jjStopAtPos(1, 11);
599 if ((active0 & 0x4000000000L) != 0L)
600 return jjStopAtPos(1, 38);
603 if ((active2 & 0x80L) != 0L)
608 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0L, active2, 0x400L);
610 if ((active1 & 0x800000000L) != 0L)
615 else if ((active1 & 0x1000000000L) != 0L)
616 return jjStopAtPos(1, 100);
617 else if ((active1 & 0x2000000000L) != 0L)
618 return jjStopAtPos(1, 101);
619 else if ((active1 & 0x4000000000L) != 0L)
624 else if ((active1 & 0x80000000000L) != 0L)
625 return jjStopAtPos(1, 107);
626 else if ((active1 & 0x100000000000L) != 0L)
627 return jjStopAtPos(1, 108);
628 else if ((active1 & 0x200000000000L) != 0L)
629 return jjStopAtPos(1, 109);
630 else if ((active1 & 0x400000000000L) != 0L)
631 return jjStopAtPos(1, 110);
632 else if ((active1 & 0x800000000000L) != 0L)
633 return jjStopAtPos(1, 111);
634 else if ((active1 & 0x1000000000000L) != 0L)
635 return jjStopAtPos(1, 112);
636 else if ((active1 & 0x2000000000000L) != 0L)
637 return jjStopAtPos(1, 113);
638 else if ((active1 & 0x4000000000000L) != 0L)
639 return jjStopAtPos(1, 114);
640 else if ((active1 & 0x8000000000000L) != 0L)
641 return jjStopAtPos(1, 115);
642 else if ((active1 & 0x10000000000000L) != 0L)
643 return jjStopAtPos(1, 116);
644 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0x30000000000L, active2, 0L);
646 if ((active0 & 0x10L) != 0L)
647 return jjStopAtPos(1, 4);
648 else if ((active0 & 0x2000000000L) != 0L)
649 return jjStopAtPos(1, 37);
650 else if ((active0 & 0x8000000000L) != 0L)
651 return jjStopAtPos(1, 39);
652 else if ((active1 & 0x8000000000L) != 0L)
653 return jjStopAtPos(1, 103);
654 else if ((active2 & 0x100L) != 0L)
659 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0L, active2, 0xa00L);
662 return jjMoveStringLiteralDfa2_1(active0, 0x80010000400000L, active1, 0L, active2, 0L);
665 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0x1L, active2, 0L);
668 return jjMoveStringLiteralDfa2_1(active0, 0x40000000L, active1, 0L, active2, 0L);
671 return jjMoveStringLiteralDfa2_1(active0, 0x5080500000000L, active1, 0x8L, active2, 0L);
674 if ((active0 & 0x800000L) != 0L)
675 return jjStartNfaWithStates_1(1, 23, 14);
679 return jjMoveStringLiteralDfa2_1(active0, 0x120000000000000L, active1, 0L, active2, 0L);
682 return jjMoveStringLiteralDfa2_1(active0, 0x10000000L, active1, 0L, active2, 0L);
685 return jjMoveStringLiteralDfa2_1(active0, 0x803100000L, active1, 0x20L, active2, 0L);
688 return jjMoveStringLiteralDfa2_1(active0, 0x1e00000280000000L, active1, 0x2c0L, active2, 0L);
691 if ((active0 & 0x100000000000L) != 0L)
696 return jjMoveStringLiteralDfa2_1(active0, 0x2000c60000000000L, active1, 0x16L, active2, 0L);
699 if ((active1 & 0x100L) != 0L)
700 return jjStartNfaWithStates_1(1, 72, 14);
701 return jjMoveStringLiteralDfa2_1(active0, 0x4000002c000000L, active1, 0L, active2, 0L);
704 if ((active0 & 0x4000000000000000L) != 0L)
705 return jjStartNfaWithStates_1(1, 62, 14);
709 return jjMoveStringLiteralDfa2_1(active0, 0x8000001000000000L, active1, 0L, active2, 0L);
712 return jjMoveStringLiteralDfa2_1(active0, 0xa000000200000L, active1, 0L, active2, 0L);
715 return jjMoveStringLiteralDfa2_1(active0, 0x10000000000000L, active1, 0L, active2, 0L);
718 return jjMoveStringLiteralDfa2_1(active0, 0x200000000000L, active1, 0L, active2, 0L);
720 if ((active1 & 0x800000000000000L) != 0L)
721 return jjStopAtPos(1, 123);
726 return jjStartNfa_1(0, active0, active1, active2);
728 static private final int jjMoveStringLiteralDfa2_1(long old0, long active0, long old1, long active1, long old2, long active2)
730 if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
731 return jjStartNfa_1(0, old0, old1, old2);
732 try { curChar = input_stream.readChar(); }
733 catch(java.io.IOException e) {
734 jjStopStringLiteralDfa_1(1, active0, active1, active2);
740 if ((active1 & 0x10000000000L) != 0L)
741 return jjStopAtPos(2, 104);
742 else if ((active1 & 0x20000000000L) != 0L)
743 return jjStopAtPos(2, 105);
744 else if ((active2 & 0x400L) != 0L)
745 return jjStopAtPos(2, 138);
746 else if ((active2 & 0x800L) != 0L)
747 return jjStopAtPos(2, 139);
750 if ((active2 & 0x200L) != 0L)
751 return jjStopAtPos(2, 137);
755 return jjMoveStringLiteralDfa3_1(active0, 0x1000100000L, active1, 0x8L, active2, 0L);
758 return jjMoveStringLiteralDfa3_1(active0, 0x280000000L, active1, 0L, active2, 0L);
761 if ((active1 & 0x200L) != 0L)
762 return jjStartNfaWithStates_1(2, 73, 14);
763 return jjMoveStringLiteralDfa3_1(active0, 0x1e00000000000000L, active1, 0L, active2, 0L);
766 return jjMoveStringLiteralDfa3_1(active0, 0x8000000L, active1, 0L, active2, 0L);
769 return jjMoveStringLiteralDfa3_1(active0, 0x80000000000L, active1, 0L, active2, 0L);
772 return jjMoveStringLiteralDfa3_1(active0, 0x40000000L, active1, 0L, active2, 0L);
775 return jjMoveStringLiteralDfa3_1(active0, 0x130000020000000L, active1, 0L, active2, 0L);
778 return jjMoveStringLiteralDfa3_1(active0, 0L, active1, 0x1L, active2, 0L);
781 return jjMoveStringLiteralDfa3_1(active0, 0x82000000000000L, active1, 0L, active2, 0L);
784 return jjMoveStringLiteralDfa3_1(active0, 0x60000200000L, active1, 0L, active2, 0L);
787 return jjMoveStringLiteralDfa3_1(active0, 0x800000000L, active1, 0x26L, active2, 0L);
790 return jjMoveStringLiteralDfa3_1(active0, 0x8000000000000L, active1, 0L, active2, 0L);
793 return jjMoveStringLiteralDfa3_1(active0, 0x500000000L, active1, 0L, active2, 0L);
796 if ((active0 & 0x400000L) != 0L)
797 return jjStartNfaWithStates_1(2, 22, 14);
798 else if ((active0 & 0x400000000000L) != 0L)
803 return jjMoveStringLiteralDfa3_1(active0, 0xa000000004000000L, active1, 0L, active2, 0L);
806 return jjMoveStringLiteralDfa3_1(active0, 0x10013000000L, active1, 0L, active2, 0L);
809 if ((active1 & 0x40L) != 0L)
814 return jjMoveStringLiteralDfa3_1(active0, 0x4a00000000000L, active1, 0x80L, active2, 0L);
817 return jjMoveStringLiteralDfa3_1(active0, 0x40000000000000L, active1, 0x10L, active2, 0L);
820 if ((active0 & 0x1000000000000L) != 0L)
821 return jjStartNfaWithStates_1(2, 48, 14);
826 return jjStartNfa_1(1, active0, active1, active2);
828 static private final int jjMoveStringLiteralDfa3_1(long old0, long active0, long old1, long active1, long old2, long active2)
830 if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
831 return jjStartNfa_1(1, old0, old1, old2);
832 try { curChar = input_stream.readChar(); }
833 catch(java.io.IOException e) {
834 jjStopStringLiteralDfa_1(2, active0, active1, 0L);
841 return jjMoveStringLiteralDfa4_1(active0, 0x8000c000000L, active1, 0x20L);
844 return jjMoveStringLiteralDfa4_1(active0, 0x800000000L, active1, 0x10L);
847 return jjMoveStringLiteralDfa4_1(active0, 0x200000L, active1, 0L);
850 if ((active0 & 0x2000000L) != 0L)
855 else if ((active0 & 0x10000000000L) != 0L)
856 return jjStartNfaWithStates_1(3, 40, 14);
857 else if ((active0 & 0x40000000000000L) != 0L)
858 return jjStartNfaWithStates_1(3, 54, 14);
859 return jjMoveStringLiteralDfa4_1(active0, 0x2008200001000000L, active1, 0x81L);
862 return jjMoveStringLiteralDfa4_1(active0, 0x1000000000000000L, active1, 0L);
865 return jjMoveStringLiteralDfa4_1(active0, 0x8800000000000000L, active1, 0L);
868 if ((active0 & 0x2000000000000L) != 0L)
869 return jjStartNfaWithStates_1(3, 49, 14);
870 else if ((active1 & 0x2L) != 0L)
875 else if ((active1 & 0x8L) != 0L)
876 return jjStartNfaWithStates_1(3, 67, 14);
877 return jjMoveStringLiteralDfa4_1(active0, 0x100000280000000L, active1, 0x4L);
880 return jjMoveStringLiteralDfa4_1(active0, 0x20000000L, active1, 0L);
883 if ((active0 & 0x40000000L) != 0L)
884 return jjStartNfaWithStates_1(3, 30, 14);
885 else if ((active0 & 0x800000000000L) != 0L)
886 return jjStartNfaWithStates_1(3, 47, 14);
890 if ((active0 & 0x20000000000000L) != 0L)
891 return jjStartNfaWithStates_1(3, 53, 14);
892 return jjMoveStringLiteralDfa4_1(active0, 0x480020000100000L, active1, 0L);
895 if ((active0 & 0x10000000L) != 0L)
896 return jjStartNfaWithStates_1(3, 28, 14);
897 return jjMoveStringLiteralDfa4_1(active0, 0x10041000000000L, active1, 0L);
900 return jjMoveStringLiteralDfa4_1(active0, 0x4000500000000L, active1, 0L);
903 return jjMoveStringLiteralDfa4_1(active0, 0x200000000000000L, active1, 0L);
907 return jjStartNfa_1(2, active0, active1, 0L);
909 static private final int jjMoveStringLiteralDfa4_1(long old0, long active0, long old1, long active1)
911 if (((active0 &= old0) | (active1 &= old1)) == 0L)
912 return jjStartNfa_1(2, old0, old1, 0L);
913 try { curChar = input_stream.readChar(); }
914 catch(java.io.IOException e) {
915 jjStopStringLiteralDfa_1(3, active0, active1, 0L);
922 return jjMoveStringLiteralDfa5_1(active0, 0x2000000800000000L, active1, 0L);
925 return jjMoveStringLiteralDfa5_1(active0, 0x10000000000000L, active1, 0x1L);
928 if ((active0 & 0x80000000000000L) != 0L)
929 return jjStartNfaWithStates_1(4, 55, 14);
930 else if ((active0 & 0x100000000000000L) != 0L)
931 return jjStartNfaWithStates_1(4, 56, 14);
932 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x4L);
935 if ((active0 & 0x800000000000000L) != 0L)
936 return jjStartNfaWithStates_1(4, 59, 14);
940 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x80L);
943 return jjMoveStringLiteralDfa5_1(active0, 0x200000000000000L, active1, 0L);
946 return jjMoveStringLiteralDfa5_1(active0, 0x41501000000L, active1, 0L);
949 if ((active0 & 0x8000000L) != 0L)
950 return jjStartNfaWithStates_1(4, 27, 14);
954 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x10L);
957 return jjMoveStringLiteralDfa5_1(active0, 0x8000200000000000L, active1, 0L);
960 return jjMoveStringLiteralDfa5_1(active0, 0x1000000000000000L, active1, 0L);
963 if ((active0 & 0x8000000000000L) != 0L)
964 return jjStartNfaWithStates_1(4, 51, 14);
965 return jjMoveStringLiteralDfa5_1(active0, 0x4000000000000L, active1, 0L);
968 if ((active0 & 0x100000L) != 0L)
969 return jjStartNfaWithStates_1(4, 20, 14);
973 if ((active0 & 0x20000000L) != 0L)
974 return jjStartNfaWithStates_1(4, 29, 14);
975 else if ((active0 & 0x20000000000L) != 0L)
976 return jjStartNfaWithStates_1(4, 41, 14);
977 else if ((active1 & 0x20L) != 0L)
978 return jjStartNfaWithStates_1(4, 69, 14);
979 return jjMoveStringLiteralDfa5_1(active0, 0x200000L, active1, 0L);
982 return jjMoveStringLiteralDfa5_1(active0, 0x80280000000L, active1, 0L);
985 return jjMoveStringLiteralDfa5_1(active0, 0x400000000000000L, active1, 0L);
988 if ((active0 & 0x4000000L) != 0L)
989 return jjStartNfaWithStates_1(4, 26, 14);
994 return jjStartNfa_1(3, active0, active1, 0L);
996 static private final int jjMoveStringLiteralDfa5_1(long old0, long active0, long old1, long active1)
998 if (((active0 &= old0) | (active1 &= old1)) == 0L)
999 return jjStartNfa_1(3, old0, old1, 0L);
1000 try { curChar = input_stream.readChar(); }
1001 catch(java.io.IOException e) {
1002 jjStopStringLiteralDfa_1(4, active0, active1, 0L);
1009 return jjMoveStringLiteralDfa6_1(active0, 0L, active1, 0x4L);
1012 if ((active0 & 0x1000000000L) != 0L)
1013 return jjStartNfaWithStates_1(5, 36, 14);
1014 return jjMoveStringLiteralDfa6_1(active0, 0x2000000000000000L, active1, 0L);
1017 return jjMoveStringLiteralDfa6_1(active0, 0x200280000000L, active1, 0L);
1020 if ((active1 & 0x10L) != 0L)
1021 return jjStartNfaWithStates_1(5, 68, 14);
1022 return jjMoveStringLiteralDfa6_1(active0, 0L, active1, 0x80L);
1025 if ((active0 & 0x1000000L) != 0L)
1026 return jjStartNfaWithStates_1(5, 24, 14);
1030 if ((active0 & 0x8000000000000000L) != 0L)
1031 return jjStartNfaWithStates_1(5, 63, 14);
1035 if ((active0 & 0x10000000000000L) != 0L)
1036 return jjStartNfaWithStates_1(5, 52, 14);
1040 return jjMoveStringLiteralDfa6_1(active0, 0x600000000200000L, active1, 0L);
1043 if ((active0 & 0x800000000L) != 0L)
1044 return jjStartNfaWithStates_1(5, 35, 14);
1045 return jjMoveStringLiteralDfa6_1(active0, 0x80000000000L, active1, 0L);
1048 if ((active0 & 0x4000000000000L) != 0L)
1049 return jjStartNfaWithStates_1(5, 50, 14);
1050 return jjMoveStringLiteralDfa6_1(active0, 0x40000000000L, active1, 0L);
1053 if ((active0 & 0x1000000000000000L) != 0L)
1054 return jjStartNfaWithStates_1(5, 60, 14);
1055 return jjMoveStringLiteralDfa6_1(active0, 0x500000000L, active1, 0L);
1058 if ((active1 & 0x1L) != 0L)
1059 return jjStartNfaWithStates_1(5, 64, 14);
1064 return jjStartNfa_1(4, active0, active1, 0L);
1066 static private final int jjMoveStringLiteralDfa6_1(long old0, long active0, long old1, long active1)
1068 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1069 return jjStartNfa_1(4, old0, old1, 0L);
1070 try { curChar = input_stream.readChar(); }
1071 catch(java.io.IOException e) {
1072 jjStopStringLiteralDfa_1(5, active0, active1, 0L);
1079 if ((active0 & 0x80000000L) != 0L)
1084 else if ((active0 & 0x100000000L) != 0L)
1089 return jjMoveStringLiteralDfa7_1(active0, 0x600000000L, active1, 0L);
1092 if ((active0 & 0x2000000000000000L) != 0L)
1093 return jjStartNfaWithStates_1(6, 61, 14);
1097 return jjMoveStringLiteralDfa7_1(active0, 0x200000000000000L, active1, 0L);
1100 if ((active1 & 0x4L) != 0L)
1101 return jjStartNfaWithStates_1(6, 66, 14);
1105 return jjMoveStringLiteralDfa7_1(active0, 0x200000L, active1, 0L);
1108 if ((active1 & 0x80L) != 0L)
1109 return jjStartNfaWithStates_1(6, 71, 14);
1113 if ((active0 & 0x200000000000L) != 0L)
1114 return jjStartNfaWithStates_1(6, 45, 14);
1118 if ((active0 & 0x80000000000L) != 0L)
1119 return jjStartNfaWithStates_1(6, 43, 14);
1120 return jjMoveStringLiteralDfa7_1(active0, 0x400000000000000L, active1, 0L);
1123 return jjMoveStringLiteralDfa7_1(active0, 0x40000000000L, active1, 0L);
1127 return jjStartNfa_1(5, active0, active1, 0L);
1129 static private final int jjMoveStringLiteralDfa7_1(long old0, long active0, long old1, long active1)
1131 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1132 return jjStartNfa_1(5, old0, old1, 0L);
1133 try { curChar = input_stream.readChar(); }
1134 catch(java.io.IOException e) {
1135 jjStopStringLiteralDfa_1(6, active0, 0L, 0L);
1141 return jjMoveStringLiteralDfa8_1(active0, 0x600000000L);
1144 return jjMoveStringLiteralDfa8_1(active0, 0x400000000000000L);
1147 if ((active0 & 0x40000000000L) != 0L)
1148 return jjStartNfaWithStates_1(7, 42, 14);
1149 else if ((active0 & 0x200000000000000L) != 0L)
1150 return jjStartNfaWithStates_1(7, 57, 14);
1154 if ((active0 & 0x200000L) != 0L)
1155 return jjStartNfaWithStates_1(7, 21, 14);
1160 return jjStartNfa_1(6, active0, 0L, 0L);
1162 static private final int jjMoveStringLiteralDfa8_1(long old0, long active0)
1164 if (((active0 &= old0)) == 0L)
1165 return jjStartNfa_1(6, old0, 0L, 0L);
1166 try { curChar = input_stream.readChar(); }
1167 catch(java.io.IOException e) {
1168 jjStopStringLiteralDfa_1(7, active0, 0L, 0L);
1175 if ((active0 & 0x400000000000000L) != 0L)
1176 return jjStartNfaWithStates_1(8, 58, 14);
1180 return jjMoveStringLiteralDfa9_1(active0, 0x600000000L);
1184 return jjStartNfa_1(7, active0, 0L, 0L);
1186 static private final int jjMoveStringLiteralDfa9_1(long old0, long active0)
1188 if (((active0 &= old0)) == 0L)
1189 return jjStartNfa_1(7, old0, 0L, 0L);
1190 try { curChar = input_stream.readChar(); }
1191 catch(java.io.IOException e) {
1192 jjStopStringLiteralDfa_1(8, active0, 0L, 0L);
1199 return jjMoveStringLiteralDfa10_1(active0, 0x600000000L);
1203 return jjStartNfa_1(8, active0, 0L, 0L);
1205 static private final int jjMoveStringLiteralDfa10_1(long old0, long active0)
1207 if (((active0 &= old0)) == 0L)
1208 return jjStartNfa_1(8, old0, 0L, 0L);
1209 try { curChar = input_stream.readChar(); }
1210 catch(java.io.IOException e) {
1211 jjStopStringLiteralDfa_1(9, active0, 0L, 0L);
1218 return jjMoveStringLiteralDfa11_1(active0, 0x600000000L);
1222 return jjStartNfa_1(9, active0, 0L, 0L);
1224 static private final int jjMoveStringLiteralDfa11_1(long old0, long active0)
1226 if (((active0 &= old0)) == 0L)
1227 return jjStartNfa_1(9, old0, 0L, 0L);
1228 try { curChar = input_stream.readChar(); }
1229 catch(java.io.IOException e) {
1230 jjStopStringLiteralDfa_1(10, active0, 0L, 0L);
1237 if ((active0 & 0x200000000L) != 0L)
1238 return jjStartNfaWithStates_1(11, 33, 14);
1239 else if ((active0 & 0x400000000L) != 0L)
1240 return jjStartNfaWithStates_1(11, 34, 14);
1245 return jjStartNfa_1(10, active0, 0L, 0L);
1247 static final long[] jjbitVec0 = {
1248 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
1250 static private final int jjMoveNfa_1(int startState, int curPos)
1256 jjstateSet[0] = startState;
1257 int j, kind = 0x7fffffff;
1260 if (++jjround == 0x7fffffff)
1264 long l = 1L << curChar;
1267 switch(jjstateSet[--i])
1270 if ((0x3ff000000000000L & l) != 0L)
1271 jjCheckNAddStates(0, 6);
1272 else if (curChar == 39)
1273 jjCheckNAddStates(7, 12);
1274 else if (curChar == 34)
1275 jjCheckNAddStates(13, 20);
1276 else if (curChar == 36)
1277 jjstateSet[jjnewStateCnt++] = 16;
1278 else if (curChar == 46)
1280 else if (curChar == 47)
1281 jjstateSet[jjnewStateCnt++] = 2;
1282 if ((0x3fe000000000000L & l) != 0L)
1286 jjCheckNAddTwoStates(5, 6);
1288 else if (curChar == 48)
1292 jjCheckNAddStates(21, 23);
1297 jjstateSet[jjnewStateCnt++] = 1;
1300 if ((0xffff7fffffffffffL & l) != 0L && kind > 13)
1305 jjstateSet[jjnewStateCnt++] = 0;
1308 if ((0x3fe000000000000L & l) == 0L)
1312 jjCheckNAddTwoStates(5, 6);
1315 if ((0x3ff000000000000L & l) == 0L)
1319 jjCheckNAddTwoStates(5, 6);
1326 if ((0x3ff000000000000L & l) == 0L)
1330 jjCheckNAddStates(24, 26);
1333 if ((0x280000000000L & l) != 0L)
1337 if ((0x3ff000000000000L & l) == 0L)
1341 jjCheckNAddTwoStates(11, 12);
1344 if ((0x3ff000000000000L & l) == 0L)
1348 jjstateSet[jjnewStateCnt++] = 14;
1352 jjstateSet[jjnewStateCnt++] = 16;
1355 if ((0x3ff000000000000L & l) == 0L)
1359 jjstateSet[jjnewStateCnt++] = 17;
1362 if ((0x3ff000000000000L & l) != 0L)
1363 jjCheckNAddStates(0, 6);
1366 if ((0x3ff000000000000L & l) != 0L)
1367 jjCheckNAddTwoStates(19, 20);
1374 jjCheckNAddStates(27, 29);
1377 if ((0x3ff000000000000L & l) == 0L)
1381 jjCheckNAddStates(27, 29);
1384 if ((0x280000000000L & l) != 0L)
1388 if ((0x3ff000000000000L & l) == 0L)
1392 jjCheckNAddTwoStates(24, 12);
1395 if ((0x3ff000000000000L & l) != 0L)
1396 jjCheckNAddTwoStates(25, 26);
1399 if ((0x280000000000L & l) != 0L)
1403 if ((0x3ff000000000000L & l) == 0L)
1407 jjCheckNAddTwoStates(28, 12);
1410 if ((0x3ff000000000000L & l) != 0L)
1411 jjCheckNAddStates(30, 32);
1414 if ((0x280000000000L & l) != 0L)
1418 if ((0x3ff000000000000L & l) != 0L)
1419 jjCheckNAddTwoStates(32, 12);
1426 jjCheckNAddStates(21, 23);
1429 if ((0x3ff000000000000L & l) == 0L)
1433 jjCheckNAddTwoStates(35, 6);
1436 if ((0xff000000000000L & l) == 0L)
1440 jjCheckNAddTwoStates(36, 6);
1444 jjCheckNAddStates(13, 20);
1447 jjCheckNAddStates(33, 36);
1451 jjCheckNAddStates(33, 36);
1454 if ((0xfffffffbffffffffL & l) != 0L)
1455 jjstateSet[jjnewStateCnt++] = 43;
1458 if (curChar == 34 && kind > 80)
1462 jjCheckNAddStates(37, 40);
1466 jjCheckNAddStates(37, 40);
1469 if ((0xfffffffbffffffffL & l) != 0L)
1470 jjstateSet[jjnewStateCnt++] = 50;
1473 if (curChar == 34 && kind > 81)
1478 jjCheckNAddStates(7, 12);
1481 if ((0xffffff7fffffffffL & l) != 0L)
1482 jjCheckNAddStates(41, 43);
1486 jjCheckNAddStates(41, 43);
1489 if (curChar == 39 && kind > 80)
1493 if ((0xffffff7fffffffffL & l) != 0L)
1494 jjCheckNAddStates(44, 46);
1498 jjCheckNAddStates(44, 46);
1501 if (curChar == 39 && kind > 82)
1505 jjAddStates(47, 49);
1508 jjAddStates(50, 52);
1512 } while(i != startsAt);
1514 else if (curChar < 128)
1516 long l = 1L << (curChar & 077);
1519 switch(jjstateSet[--i])
1522 if ((0x87fffffe87fffffeL & l) != 0L)
1528 else if (curChar == 96)
1529 jjCheckNAddStates(53, 58);
1536 if ((0x100000001000L & l) != 0L && kind > 74)
1540 if ((0x2000000020L & l) != 0L)
1541 jjAddStates(59, 60);
1544 if ((0x5000000050L & l) != 0L && kind > 78)
1549 if ((0x87fffffe87fffffeL & l) == 0L)
1557 if ((0x87fffffe87fffffeL & l) == 0L)
1564 if ((0x2000000020L & l) != 0L)
1565 jjAddStates(61, 62);
1568 if ((0x2000000020L & l) != 0L)
1569 jjAddStates(63, 64);
1572 if ((0x2000000020L & l) != 0L)
1573 jjAddStates(65, 66);
1576 if ((0x100000001000000L & l) != 0L)
1580 if ((0x7e0000007eL & l) == 0L)
1584 jjCheckNAddTwoStates(35, 6);
1587 jjCheckNAddStates(33, 36);
1591 jjstateSet[jjnewStateCnt++] = 39;
1595 jjstateSet[jjnewStateCnt++] = 42;
1598 jjstateSet[jjnewStateCnt++] = 43;
1602 jjCheckNAddStates(33, 36);
1605 jjCheckNAddStates(37, 40);
1609 jjstateSet[jjnewStateCnt++] = 46;
1613 jjstateSet[jjnewStateCnt++] = 49;
1616 jjstateSet[jjnewStateCnt++] = 50;
1620 jjCheckNAddStates(37, 40);
1623 jjAddStates(41, 43);
1627 jjstateSet[jjnewStateCnt++] = 54;
1630 jjAddStates(44, 46);
1634 jjstateSet[jjnewStateCnt++] = 58;
1638 jjCheckNAddStates(53, 58);
1641 if ((0xfffffffeffffffffL & l) != 0L)
1642 jjCheckNAddStates(47, 49);
1646 jjCheckNAddStates(47, 49);
1650 jjstateSet[jjnewStateCnt++] = 63;
1653 if (curChar == 96 && kind > 80)
1657 if ((0xfffffffeffffffffL & l) != 0L)
1658 jjCheckNAddStates(50, 52);
1662 jjCheckNAddStates(50, 52);
1666 jjstateSet[jjnewStateCnt++] = 67;
1669 if (curChar == 96 && kind > 83)
1674 } while(i != startsAt);
1678 int i2 = (curChar & 0xff) >> 6;
1679 long l2 = 1L << (curChar & 077);
1682 switch(jjstateSet[--i])
1686 if ((jjbitVec0[i2] & l2) == 0L)
1693 if ((jjbitVec0[i2] & l2) != 0L && kind > 13)
1698 if ((jjbitVec0[i2] & l2) == 0L)
1705 if ((jjbitVec0[i2] & l2) != 0L)
1706 jjAddStates(33, 36);
1709 if ((jjbitVec0[i2] & l2) != 0L)
1710 jjstateSet[jjnewStateCnt++] = 43;
1713 if ((jjbitVec0[i2] & l2) != 0L)
1714 jjAddStates(37, 40);
1717 if ((jjbitVec0[i2] & l2) != 0L)
1718 jjstateSet[jjnewStateCnt++] = 50;
1721 if ((jjbitVec0[i2] & l2) != 0L)
1722 jjAddStates(41, 43);
1725 if ((jjbitVec0[i2] & l2) != 0L)
1726 jjAddStates(44, 46);
1729 if ((jjbitVec0[i2] & l2) != 0L)
1730 jjAddStates(47, 49);
1733 if ((jjbitVec0[i2] & l2) != 0L)
1734 jjAddStates(50, 52);
1738 } while(i != startsAt);
1740 if (kind != 0x7fffffff)
1742 jjmatchedKind = kind;
1743 jjmatchedPos = curPos;
1747 if ((i = jjnewStateCnt) == (startsAt = 70 - (jjnewStateCnt = startsAt)))
1749 try { curChar = input_stream.readChar(); }
1750 catch(java.io.IOException e) { return curPos; }
1753 static private final int jjMoveStringLiteralDfa0_3()
1758 return jjMoveStringLiteralDfa1_3(0x20000L);
1763 static private final int jjMoveStringLiteralDfa1_3(long active0)
1765 try { curChar = input_stream.readChar(); }
1766 catch(java.io.IOException e) {
1772 if ((active0 & 0x20000L) != 0L)
1773 return jjStopAtPos(1, 17);
1780 static final int[] jjnextStates = {
1781 19, 20, 25, 26, 29, 30, 12, 53, 55, 56, 57, 59, 60, 38, 40, 41,
1782 44, 45, 47, 48, 51, 34, 36, 6, 8, 9, 12, 21, 22, 12, 29, 30,
1783 12, 38, 40, 41, 44, 45, 47, 48, 51, 53, 55, 56, 57, 59, 60, 62,
1784 64, 65, 66, 68, 69, 62, 64, 65, 66, 68, 69, 10, 11, 23, 24, 27,
1787 public static final String[] jjstrLiteralImages = {
1788 "", "\74\77", null, "\74\77\75", "\77\76", null, null, null, null, null, null,
1789 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1790 null, null, null, null, null, null, null, null, null, null, null, null, "\55\76",
1791 "\72\72", "\75\76", null, null, null, null, null, null, null, null, null, null, null,
1792 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1793 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1794 null, null, null, null, null, null, null, null, null, "\50", "\51", "\173", "\175",
1795 "\133", "\135", "\73", "\54", "\56", "\76", "\74", "\75\75", "\74\75", "\76\75",
1796 "\41\75", "\74\76", "\41\75\75", "\75\75\75", "\75", "\53\75", "\55\75", "\52\75",
1797 "\57\75", "\46\75", "\174\75", "\136\75", "\56\75", "\45\75", "\176\75", "\100", "\44",
1798 "\41", "\176", "\77", "\72", "\174\174", "\46\46", "\53\53", "\55\55", "\53", "\55",
1799 "\52", "\57", "\46", "\174", "\136", "\45", "\74\74", "\76\76", "\76\76\76",
1800 "\74\74\75", "\76\76\75", null, };
1801 public static final String[] lexStateNames = {
1804 "IN_SINGLE_LINE_COMMENT",
1805 "IN_FORMAL_COMMENT",
1806 "IN_MULTI_LINE_COMMENT",
1808 public static final int[] jjnewLexState = {
1809 -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,
1810 -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,
1811 -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,
1812 -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,
1813 -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,
1814 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1816 static final long[] jjtoToken = {
1817 0xfffffffffff0001fL, 0xffffffffff1f47ffL, 0x1fffL,
1819 static final long[] jjtoSkip = {
1820 0x7ffe0L, 0x0L, 0x0L,
1822 static final long[] jjtoSpecial = {
1823 0x7f800L, 0x0L, 0x0L,
1825 static final long[] jjtoMore = {
1826 0x80000L, 0x0L, 0x0L,
1828 static protected SimpleCharStream input_stream;
1829 static private final int[] jjrounds = new int[70];
1830 static private final int[] jjstateSet = new int[140];
1831 static StringBuffer image;
1832 static int jjimageLen;
1833 static int lengthOfMatch;
1834 static protected char curChar;
1835 public PHPParserTokenManager(SimpleCharStream stream)
1837 if (input_stream != null)
1838 throw new TokenMgrError("ERROR: Second call to constructor of static lexer. You must use ReInit() to initialize the static variables.", TokenMgrError.STATIC_LEXER_ERROR);
1839 input_stream = stream;
1841 public PHPParserTokenManager(SimpleCharStream stream, int lexState)
1846 static public void ReInit(SimpleCharStream stream)
1848 jjmatchedPos = jjnewStateCnt = 0;
1849 curLexState = defaultLexState;
1850 input_stream = stream;
1853 static private final void ReInitRounds()
1856 jjround = 0x80000001;
1857 for (i = 70; i-- > 0;)
1858 jjrounds[i] = 0x80000000;
1860 static public void ReInit(SimpleCharStream stream, int lexState)
1865 static public void SwitchTo(int lexState)
1867 if (lexState >= 5 || lexState < 0)
1868 throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
1870 curLexState = lexState;
1873 static protected Token jjFillToken()
1875 Token t = Token.newToken(jjmatchedKind);
1876 t.kind = jjmatchedKind;
1877 String im = jjstrLiteralImages[jjmatchedKind];
1878 t.image = (im == null) ? input_stream.GetImage() : im;
1879 t.beginLine = input_stream.getBeginLine();
1880 t.beginColumn = input_stream.getBeginColumn();
1881 t.endLine = input_stream.getEndLine();
1882 t.endColumn = input_stream.getEndColumn();
1886 static int curLexState = 0;
1887 static int defaultLexState = 0;
1888 static int jjnewStateCnt;
1890 static int jjmatchedPos;
1891 static int jjmatchedKind;
1893 public static Token getNextToken()
1896 Token specialToken = null;
1905 curChar = input_stream.BeginToken();
1907 catch(java.io.IOException e)
1910 matchedToken = jjFillToken();
1911 matchedToken.specialToken = specialToken;
1912 return matchedToken;
1922 jjmatchedKind = 0x7fffffff;
1924 curPos = jjMoveStringLiteralDfa0_0();
1925 if (jjmatchedPos == 0 && jjmatchedKind > 5)
1931 try { input_stream.backup(0);
1932 while (curChar <= 32 && (0x100003600L & (1L << curChar)) != 0L)
1933 curChar = input_stream.BeginToken();
1935 catch (java.io.IOException e1) { continue EOFLoop; }
1936 jjmatchedKind = 0x7fffffff;
1938 curPos = jjMoveStringLiteralDfa0_1();
1941 jjmatchedKind = 0x7fffffff;
1943 curPos = jjMoveStringLiteralDfa0_2();
1944 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1950 jjmatchedKind = 0x7fffffff;
1952 curPos = jjMoveStringLiteralDfa0_3();
1953 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1959 jjmatchedKind = 0x7fffffff;
1961 curPos = jjMoveStringLiteralDfa0_4();
1962 if (jjmatchedPos == 0 && jjmatchedKind > 19)
1968 if (jjmatchedKind != 0x7fffffff)
1970 if (jjmatchedPos + 1 < curPos)
1971 input_stream.backup(curPos - jjmatchedPos - 1);
1972 if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1974 matchedToken = jjFillToken();
1975 matchedToken.specialToken = specialToken;
1976 if (jjnewLexState[jjmatchedKind] != -1)
1977 curLexState = jjnewLexState[jjmatchedKind];
1978 return matchedToken;
1980 else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1982 if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1984 matchedToken = jjFillToken();
1985 if (specialToken == null)
1986 specialToken = matchedToken;
1989 matchedToken.specialToken = specialToken;
1990 specialToken = (specialToken.next = matchedToken);
1992 SkipLexicalActions(matchedToken);
1995 SkipLexicalActions(null);
1996 if (jjnewLexState[jjmatchedKind] != -1)
1997 curLexState = jjnewLexState[jjmatchedKind];
2000 jjimageLen += jjmatchedPos + 1;
2001 if (jjnewLexState[jjmatchedKind] != -1)
2002 curLexState = jjnewLexState[jjmatchedKind];
2004 jjmatchedKind = 0x7fffffff;
2006 curChar = input_stream.readChar();
2009 catch (java.io.IOException e1) { }
2011 int error_line = input_stream.getEndLine();
2012 int error_column = input_stream.getEndColumn();
2013 String error_after = null;
2014 boolean EOFSeen = false;
2015 try { input_stream.readChar(); input_stream.backup(1); }
2016 catch (java.io.IOException e1) {
2018 error_after = curPos <= 1 ? "" : input_stream.GetImage();
2019 if (curChar == '\n' || curChar == '\r') {
2027 input_stream.backup(1);
2028 error_after = curPos <= 1 ? "" : input_stream.GetImage();
2030 throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
2035 static void SkipLexicalActions(Token matchedToken)
2037 switch(jjmatchedKind)
2041 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2043 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2044 input_stream.backup(1);