1 /* Generated By:JavaCC: Do not edit this line. PHPParserTokenManager.java */
3 import org.eclipse.core.resources.IFile;
4 import org.eclipse.core.resources.IMarker;
5 import org.eclipse.core.runtime.CoreException;
6 import org.eclipse.ui.texteditor.MarkerUtilities;
7 import org.eclipse.jface.preference.IPreferenceStore;
8 import java.util.Hashtable;
9 import java.util.ArrayList;
10 import java.io.StringReader;
12 import java.text.MessageFormat;
13 import net.sourceforge.phpeclipse.actions.PHPStartApacheAction;
14 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
15 import net.sourceforge.phpdt.internal.compiler.ast.*;
16 import net.sourceforge.phpdt.internal.compiler.parser.OutlineableWithChildren;
17 import net.sourceforge.phpdt.internal.compiler.parser.Outlineable;
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(0x80000L);
126 return jjMoveStringLiteralDfa1_4(0x20000L);
131 static private final int jjMoveStringLiteralDfa1_4(long active0)
133 try { curChar = input_stream.readChar(); }
134 catch(java.io.IOException e) {
140 if ((active0 & 0x80000L) != 0L)
141 return jjStopAtPos(1, 19);
145 return jjMoveStringLiteralDfa2_4(active0, 0x20000L);
151 static private final int jjMoveStringLiteralDfa2_4(long old0, long active0)
153 if (((active0 &= old0)) == 0L)
155 try { curChar = input_stream.readChar(); }
156 catch(java.io.IOException e) {
163 return jjMoveStringLiteralDfa3_4(active0, 0x20000L);
168 static private final int jjMoveStringLiteralDfa3_4(long old0, long active0)
170 if (((active0 &= old0)) == 0L)
172 try { curChar = input_stream.readChar(); }
173 catch(java.io.IOException e) {
180 if ((active0 & 0x20000L) != 0L)
181 return jjStopAtPos(3, 17);
188 private static final int jjStopStringLiteralDfa_2(int pos, long active0)
196 private static final int jjStartNfa_2(int pos, long active0)
198 return jjMoveNfa_2(jjStopStringLiteralDfa_2(pos, active0), pos + 1);
200 static private final int jjStartNfaWithStates_2(int pos, int kind, int state)
202 jjmatchedKind = kind;
204 try { curChar = input_stream.readChar(); }
205 catch(java.io.IOException e) { return pos + 1; }
206 return jjMoveNfa_2(state, pos + 1);
208 static private final int jjMoveStringLiteralDfa0_2()
213 return jjMoveStringLiteralDfa1_2(0x10000L);
216 return jjMoveStringLiteralDfa1_2(0x20000L);
218 return jjMoveNfa_2(0, 0);
221 static private final int jjMoveStringLiteralDfa1_2(long active0)
223 try { curChar = input_stream.readChar(); }
224 catch(java.io.IOException e) {
225 jjStopStringLiteralDfa_2(0, active0);
231 if ((active0 & 0x10000L) != 0L)
232 return jjStopAtPos(1, 16);
236 return jjMoveStringLiteralDfa2_2(active0, 0x20000L);
240 return jjStartNfa_2(0, active0);
242 static private final int jjMoveStringLiteralDfa2_2(long old0, long active0)
244 if (((active0 &= old0)) == 0L)
245 return jjStartNfa_2(0, old0);
246 try { curChar = input_stream.readChar(); }
247 catch(java.io.IOException e) {
248 jjStopStringLiteralDfa_2(1, active0);
255 return jjMoveStringLiteralDfa3_2(active0, 0x20000L);
259 return jjStartNfa_2(1, active0);
261 static private final int jjMoveStringLiteralDfa3_2(long old0, long active0)
263 if (((active0 &= old0)) == 0L)
264 return jjStartNfa_2(1, old0);
265 try { curChar = input_stream.readChar(); }
266 catch(java.io.IOException e) {
267 jjStopStringLiteralDfa_2(2, active0);
274 if ((active0 & 0x20000L) != 0L)
275 return jjStopAtPos(3, 17);
280 return jjStartNfa_2(2, active0);
282 static private final void jjCheckNAdd(int state)
284 if (jjrounds[state] != jjround)
286 jjstateSet[jjnewStateCnt++] = state;
287 jjrounds[state] = jjround;
290 static private final void jjAddStates(int start, int end)
293 jjstateSet[jjnewStateCnt++] = jjnextStates[start];
294 } while (start++ != end);
296 static private final void jjCheckNAddTwoStates(int state1, int state2)
301 static private final void jjCheckNAddStates(int start, int end)
304 jjCheckNAdd(jjnextStates[start]);
305 } while (start++ != end);
307 static private final void jjCheckNAddStates(int start)
309 jjCheckNAdd(jjnextStates[start]);
310 jjCheckNAdd(jjnextStates[start + 1]);
312 static private final int jjMoveNfa_2(int startState, int curPos)
318 jjstateSet[0] = startState;
319 int j, kind = 0x7fffffff;
322 if (++jjround == 0x7fffffff)
326 long l = 1L << curChar;
329 switch(jjstateSet[--i])
332 if ((0x2400L & l) != 0L)
338 jjstateSet[jjnewStateCnt++] = 1;
341 if (curChar == 10 && kind > 15)
346 jjstateSet[jjnewStateCnt++] = 1;
350 } while(i != startsAt);
352 else if (curChar < 128)
354 long l = 1L << (curChar & 077);
357 switch(jjstateSet[--i])
361 } while(i != startsAt);
365 int i2 = (curChar & 0xff) >> 6;
366 long l2 = 1L << (curChar & 077);
369 switch(jjstateSet[--i])
373 } while(i != startsAt);
375 if (kind != 0x7fffffff)
377 jjmatchedKind = kind;
378 jjmatchedPos = curPos;
382 if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt)))
384 try { curChar = input_stream.readChar(); }
385 catch(java.io.IOException e) { return curPos; }
388 private static final int jjStopStringLiteralDfa_1(int pos, long active0, long active1, long active2)
393 if ((active0 & 0x4800L) != 0L || (active1 & 0x800000L) != 0L || (active2 & 0x20L) != 0L)
395 if ((active1 & 0x800L) != 0L)
397 if ((active1 & 0x80000000000000L) != 0L || (active2 & 0x200L) != 0L)
399 if ((active0 & 0xfffffc7fffe00000L) != 0L || (active1 & 0x1800003ffL) != 0L)
406 if ((active0 & 0x4000L) != 0L)
408 if ((active0 & 0x400001000000L) != 0L || (active1 & 0x80000041L) != 0L)
410 if ((active0 & 0xffffbc7ffee00000L) != 0L || (active1 & 0x1000003beL) != 0L)
412 if (jjmatchedPos != 1)
421 if ((active0 & 0x8005000000800000L) != 0L || (active1 & 0x100000300L) != 0L)
423 if ((active0 & 0x7ffabc7ffe600000L) != 0L || (active1 & 0xfeL) != 0L)
425 if (jjmatchedPos != 2)
434 if ((active0 & 0x18a0400a6000000L) != 0L || (active1 & 0x38L) != 0L)
436 if ((active0 & 0xfe70b87f58600000L) != 0L || (active1 & 0x2c6L) != 0L)
438 if (jjmatchedPos != 3)
447 if ((active0 & 0x2620080058200000L) != 0L || (active1 & 0x80L) != 0L)
449 if ((active0 & 0xd850b07f02400000L) != 0L || (active1 & 0x256L) != 0L)
457 if ((active0 & 0x4050007002000000L) != 0L || (active1 & 0x46L) != 0L)
459 if ((active0 & 0x9800b00f00400000L) != 0L || (active1 & 0x210L) != 0L)
467 if ((active0 & 0x8000a00f00000000L) != 0L || (active1 & 0x210L) != 0L)
469 if ((active0 & 0x1800100000400000L) != 0L)
471 if (jjmatchedPos != 6)
480 if ((active0 & 0x800100000400000L) != 0L)
482 if ((active0 & 0x1000000c00000000L) != 0L)
490 if ((active0 & 0xc00000000L) != 0L)
496 if ((active0 & 0x1000000000000000L) != 0L)
500 if ((active0 & 0xc00000000L) != 0L)
508 if ((active0 & 0xc00000000L) != 0L)
519 private static final int jjStartNfa_1(int pos, long active0, long active1, long active2)
521 return jjMoveNfa_1(jjStopStringLiteralDfa_1(pos, active0, active1, active2), pos + 1);
523 static private final int jjStartNfaWithStates_1(int pos, int kind, int state)
525 jjmatchedKind = kind;
527 try { curChar = input_stream.readChar(); }
528 catch(java.io.IOException e) { return pos + 1; }
529 return jjMoveNfa_1(state, pos + 1);
531 static private final int jjMoveStringLiteralDfa0_1()
537 return jjMoveStringLiteralDfa1_1(0x0L, 0xa000000000000000L, 0x0L);
539 return jjStopAtPos(0, 12);
541 return jjStartNfaWithStates_1(0, 75, 16);
544 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x400L);
547 return jjMoveStringLiteralDfa1_1(0x0L, 0x20000L, 0x40L);
549 return jjStopAtPos(0, 111);
551 return jjStopAtPos(0, 112);
554 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x10L);
557 return jjMoveStringLiteralDfa1_1(0x0L, 0x40000L, 0x4L);
559 return jjStopAtPos(0, 118);
562 return jjMoveStringLiteralDfa1_1(0x8000000000L, 0x80000L, 0x8L);
565 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x200L);
568 return jjMoveStringLiteralDfa1_1(0x4800L, 0x0L, 0x20L);
571 return jjMoveStringLiteralDfa1_1(0x10000000000L, 0x0L, 0x0L);
573 return jjStopAtPos(0, 117);
576 return jjMoveStringLiteralDfa1_1(0x0L, 0x4800000010000000L, 0x1000L);
579 return jjMoveStringLiteralDfa1_1(0x20000000000L, 0x400000000000000L, 0x1L);
582 return jjMoveStringLiteralDfa1_1(0x0L, 0x1000000060000000L, 0x2000L);
585 return jjMoveStringLiteralDfa1_1(0x10L, 0x0L, 0x0L);
587 return jjStopAtPos(0, 74);
589 return jjStopAtPos(0, 115);
591 return jjStopAtPos(0, 116);
594 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x100L);
597 return jjMoveStringLiteralDfa1_1(0x8000000L, 0x100000001L, 0x0L);
600 return jjMoveStringLiteralDfa1_1(0x10000000L, 0x18L, 0x0L);
603 return jjMoveStringLiteralDfa1_1(0x1c0000200000L, 0x0L, 0x0L);
606 return jjMoveStringLiteralDfa1_1(0x602000000000L, 0x40L, 0x0L);
609 return jjMoveStringLiteralDfa1_1(0x7800800086000000L, 0x0L, 0x0L);
612 return jjMoveStringLiteralDfa1_1(0x8201000000400000L, 0x80L, 0x0L);
615 return jjMoveStringLiteralDfa1_1(0x2001000000000L, 0x0L, 0x0L);
618 return jjMoveStringLiteralDfa1_1(0x501000000L, 0x300L, 0x0L);
621 return jjMoveStringLiteralDfa1_1(0x20000000L, 0x0L, 0x0L);
624 return jjMoveStringLiteralDfa1_1(0xc000000000000L, 0x0L, 0x0L);
627 return jjMoveStringLiteralDfa1_1(0x0L, 0x80000004L, 0x0L);
630 return jjMoveStringLiteralDfa1_1(0x40000000L, 0x0L, 0x0L);
633 return jjMoveStringLiteralDfa1_1(0x10000a00000000L, 0x20L, 0x0L);
636 return jjMoveStringLiteralDfa1_1(0x60004000000000L, 0x2L, 0x0L);
639 return jjMoveStringLiteralDfa1_1(0x180000000000000L, 0x0L, 0x0L);
642 return jjMoveStringLiteralDfa1_1(0x800000L, 0x0L, 0x0L);
645 return jjMoveStringLiteralDfa1_1(0x400000000000000L, 0x0L, 0x0L);
647 return jjStopAtPos(0, 113);
650 return jjMoveStringLiteralDfa1_1(0x0L, 0x10000L, 0x80L);
652 return jjStopAtPos(0, 114);
655 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x800L);
657 return jjMoveNfa_1(3, 0);
660 static private final int jjMoveStringLiteralDfa1_1(long active0, long active1, long active2)
662 try { curChar = input_stream.readChar(); }
663 catch(java.io.IOException e) {
664 jjStopStringLiteralDfa_1(0, active0, active1, active2);
670 if ((active1 & 0x20000L) != 0L)
671 return jjStopAtPos(1, 81);
674 if ((active0 & 0x4000L) != 0L)
675 return jjStartNfaWithStates_1(1, 14, 0);
678 if ((active1 & 0x40000L) != 0L)
679 return jjStopAtPos(1, 82);
682 if ((active1 & 0x80000L) != 0L)
683 return jjStopAtPos(1, 83);
686 if ((active0 & 0x800L) != 0L)
687 return jjStopAtPos(1, 11);
690 if ((active0 & 0x10000000000L) != 0L)
691 return jjStopAtPos(1, 40);
694 if ((active1 & 0x10000000L) != 0L)
699 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0L, active2, 0x1000L);
701 if ((active1 & 0x400000000000000L) != 0L)
706 else if ((active1 & 0x800000000000000L) != 0L)
707 return jjStopAtPos(1, 123);
708 else if ((active1 & 0x1000000000000000L) != 0L)
709 return jjStopAtPos(1, 124);
710 else if ((active1 & 0x2000000000000000L) != 0L)
715 else if ((active2 & 0x4L) != 0L)
716 return jjStopAtPos(1, 130);
717 else if ((active2 & 0x8L) != 0L)
718 return jjStopAtPos(1, 131);
719 else if ((active2 & 0x10L) != 0L)
720 return jjStopAtPos(1, 132);
721 else if ((active2 & 0x20L) != 0L)
722 return jjStopAtPos(1, 133);
723 else if ((active2 & 0x40L) != 0L)
724 return jjStopAtPos(1, 134);
725 else if ((active2 & 0x80L) != 0L)
726 return jjStopAtPos(1, 135);
727 else if ((active2 & 0x100L) != 0L)
728 return jjStopAtPos(1, 136);
729 else if ((active2 & 0x200L) != 0L)
730 return jjStopAtPos(1, 137);
731 else if ((active2 & 0x400L) != 0L)
732 return jjStopAtPos(1, 138);
733 else if ((active2 & 0x800L) != 0L)
734 return jjStopAtPos(1, 139);
735 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0x8000000000000000L, active2, 0x1L);
737 if ((active0 & 0x10L) != 0L)
738 return jjStopAtPos(1, 4);
739 else if ((active0 & 0x8000000000L) != 0L)
740 return jjStopAtPos(1, 39);
741 else if ((active0 & 0x20000000000L) != 0L)
742 return jjStopAtPos(1, 41);
743 else if ((active1 & 0x20000000L) != 0L)
748 else if ((active1 & 0x4000000000000000L) != 0L)
749 return jjStopAtPos(1, 126);
750 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0x40000000L, active2, 0x2000L);
753 return jjMoveStringLiteralDfa2_1(active0, 0x200040000800000L, active1, 0L, active2, 0L);
756 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0x4L, active2, 0L);
759 return jjMoveStringLiteralDfa2_1(active0, 0x80000000L, active1, 0L, active2, 0L);
762 return jjMoveStringLiteralDfa2_1(active0, 0x14202a00000000L, active1, 0x20L, active2, 0L);
765 if ((active0 & 0x1000000L) != 0L)
766 return jjStartNfaWithStates_1(1, 24, 14);
770 return jjMoveStringLiteralDfa2_1(active0, 0x480000000000000L, active1, 0L, active2, 0L);
773 return jjMoveStringLiteralDfa2_1(active0, 0x20000000L, active1, 0L, active2, 0L);
776 return jjMoveStringLiteralDfa2_1(active0, 0x1006200000L, active1, 0x80L, active2, 0L);
779 return jjMoveStringLiteralDfa2_1(active0, 0x7800000500000000L, active1, 0x100000300L, active2, 0L);
782 if ((active0 & 0x400000000000L) != 0L)
787 return jjMoveStringLiteralDfa2_1(active0, 0x8003180000000000L, active1, 0x58L, active2, 0L);
790 if ((active1 & 0x80000000L) != 0L)
791 return jjStartNfaWithStates_1(1, 95, 14);
792 return jjMoveStringLiteralDfa2_1(active0, 0x100000058000000L, active1, 0L, active2, 0L);
795 if ((active1 & 0x1L) != 0L)
796 return jjStartNfaWithStates_1(1, 64, 14);
800 return jjMoveStringLiteralDfa2_1(active0, 0x4000000000L, active1, 0x2L, active2, 0L);
803 return jjMoveStringLiteralDfa2_1(active0, 0x28000000400000L, active1, 0L, active2, 0L);
806 return jjMoveStringLiteralDfa2_1(active0, 0x40000000000000L, active1, 0L, active2, 0L);
809 return jjMoveStringLiteralDfa2_1(active0, 0x800000000000L, active1, 0L, active2, 0L);
811 if ((active1 & 0x10000L) != 0L)
812 return jjStopAtPos(1, 80);
817 return jjStartNfa_1(0, active0, active1, active2);
819 static private final int jjMoveStringLiteralDfa2_1(long old0, long active0, long old1, long active1, long old2, long active2)
821 if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
822 return jjStartNfa_1(0, old0, old1, old2);
823 try { curChar = input_stream.readChar(); }
824 catch(java.io.IOException e) {
825 jjStopStringLiteralDfa_1(1, active0, active1, active2);
831 if ((active1 & 0x8000000000000000L) != 0L)
832 return jjStopAtPos(2, 127);
833 else if ((active2 & 0x1L) != 0L)
834 return jjStopAtPos(2, 128);
835 else if ((active2 & 0x1000L) != 0L)
836 return jjStopAtPos(2, 140);
837 else if ((active2 & 0x2000L) != 0L)
838 return jjStopAtPos(2, 141);
841 if ((active1 & 0x40000000L) != 0L)
842 return jjStopAtPos(2, 94);
846 return jjMoveStringLiteralDfa3_1(active0, 0x4000200000L, active1, 0x20L, active2, 0L);
849 return jjMoveStringLiteralDfa3_1(active0, 0x500000000L, active1, 0L, active2, 0L);
852 if ((active1 & 0x100000000L) != 0L)
853 return jjStartNfaWithStates_1(2, 96, 14);
854 return jjMoveStringLiteralDfa3_1(active0, 0x7800000000000000L, active1, 0L, active2, 0L);
857 return jjMoveStringLiteralDfa3_1(active0, 0x10000000L, active1, 0L, active2, 0L);
860 return jjMoveStringLiteralDfa3_1(active0, 0x202000000000L, active1, 0L, active2, 0L);
863 return jjMoveStringLiteralDfa3_1(active0, 0x80000000L, active1, 0L, active2, 0L);
866 return jjMoveStringLiteralDfa3_1(active0, 0x4c0000040000000L, active1, 0L, active2, 0L);
869 return jjMoveStringLiteralDfa3_1(active0, 0L, active1, 0x4L, active2, 0L);
872 return jjMoveStringLiteralDfa3_1(active0, 0x208000000000000L, active1, 0L, active2, 0L);
875 return jjMoveStringLiteralDfa3_1(active0, 0x180000400000L, active1, 0L, active2, 0L);
878 return jjMoveStringLiteralDfa3_1(active0, 0x1000000000L, active1, 0x98L, active2, 0L);
881 return jjMoveStringLiteralDfa3_1(active0, 0x20000000000000L, active1, 0L, active2, 0L);
884 return jjMoveStringLiteralDfa3_1(active0, 0xa00000000L, active1, 0L, active2, 0L);
887 if ((active0 & 0x800000L) != 0L)
888 return jjStartNfaWithStates_1(2, 23, 14);
889 else if ((active0 & 0x1000000000000L) != 0L)
894 return jjMoveStringLiteralDfa3_1(active0, 0x8000000008000000L, active1, 0x2L, active2, 0L);
897 return jjMoveStringLiteralDfa3_1(active0, 0x40026000000L, active1, 0L, active2, 0L);
900 if ((active1 & 0x100L) != 0L)
905 return jjMoveStringLiteralDfa3_1(active0, 0x12800000000000L, active1, 0x200L, active2, 0L);
908 return jjMoveStringLiteralDfa3_1(active0, 0x100000000000000L, active1, 0x40L, active2, 0L);
911 if ((active0 & 0x4000000000000L) != 0L)
912 return jjStartNfaWithStates_1(2, 50, 14);
917 return jjStartNfa_1(1, active0, active1, active2);
919 static private final int jjMoveStringLiteralDfa3_1(long old0, long active0, long old1, long active1, long old2, long active2)
921 if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
922 return jjStartNfa_1(1, old0, old1, old2);
923 try { curChar = input_stream.readChar(); }
924 catch(java.io.IOException e) {
925 jjStopStringLiteralDfa_1(2, active0, active1, 0L);
932 return jjMoveStringLiteralDfa4_1(active0, 0x200018000000L, active1, 0x80L);
935 return jjMoveStringLiteralDfa4_1(active0, 0x1000000000L, active1, 0x40L);
938 return jjMoveStringLiteralDfa4_1(active0, 0x400000L, active1, 0L);
941 if ((active0 & 0x4000000L) != 0L)
946 else if ((active0 & 0x40000000000L) != 0L)
947 return jjStartNfaWithStates_1(3, 42, 14);
948 else if ((active0 & 0x100000000000000L) != 0L)
949 return jjStartNfaWithStates_1(3, 56, 14);
950 return jjMoveStringLiteralDfa4_1(active0, 0x8020800002000000L, active1, 0x204L);
953 return jjMoveStringLiteralDfa4_1(active0, 0x4000000000000000L, active1, 0L);
956 return jjMoveStringLiteralDfa4_1(active0, 0x2000002000000000L, active1, 0x2L);
959 if ((active0 & 0x8000000000000L) != 0L)
960 return jjStartNfaWithStates_1(3, 51, 14);
961 else if ((active1 & 0x8L) != 0L)
966 else if ((active1 & 0x20L) != 0L)
967 return jjStartNfaWithStates_1(3, 69, 14);
968 return jjMoveStringLiteralDfa4_1(active0, 0x400000500000000L, active1, 0x10L);
971 return jjMoveStringLiteralDfa4_1(active0, 0x40000000L, active1, 0L);
974 if ((active0 & 0x80000000L) != 0L)
975 return jjStartNfaWithStates_1(3, 31, 14);
976 else if ((active0 & 0x2000000000000L) != 0L)
977 return jjStartNfaWithStates_1(3, 49, 14);
981 if ((active0 & 0x80000000000000L) != 0L)
982 return jjStartNfaWithStates_1(3, 55, 14);
983 return jjMoveStringLiteralDfa4_1(active0, 0x1200080000200000L, active1, 0L);
986 if ((active0 & 0x20000000L) != 0L)
987 return jjStartNfaWithStates_1(3, 29, 14);
988 return jjMoveStringLiteralDfa4_1(active0, 0x40104000000000L, active1, 0L);
991 return jjMoveStringLiteralDfa4_1(active0, 0x10000a00000000L, active1, 0L);
994 return jjMoveStringLiteralDfa4_1(active0, 0x800000000000000L, active1, 0L);
998 return jjStartNfa_1(2, active0, active1, 0L);
1000 static private final int jjMoveStringLiteralDfa4_1(long old0, long active0, long old1, long active1)
1002 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1003 return jjStartNfa_1(2, old0, old1, 0L);
1004 try { curChar = input_stream.readChar(); }
1005 catch(java.io.IOException e) {
1006 jjStopStringLiteralDfa_1(3, active0, active1, 0L);
1013 return jjMoveStringLiteralDfa5_1(active0, 0x8000001000000000L, active1, 0L);
1016 return jjMoveStringLiteralDfa5_1(active0, 0x40000000000000L, active1, 0x4L);
1019 if ((active0 & 0x200000000000000L) != 0L)
1020 return jjStartNfaWithStates_1(4, 57, 14);
1021 else if ((active0 & 0x400000000000000L) != 0L)
1022 return jjStartNfaWithStates_1(4, 58, 14);
1023 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x10L);
1026 if ((active0 & 0x2000000000000000L) != 0L)
1027 return jjStartNfaWithStates_1(4, 61, 14);
1031 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x200L);
1034 return jjMoveStringLiteralDfa5_1(active0, 0x800000000000000L, active1, 0L);
1037 return jjMoveStringLiteralDfa5_1(active0, 0x104a02000000L, active1, 0L);
1040 if ((active0 & 0x10000000L) != 0L)
1041 return jjStartNfaWithStates_1(4, 28, 14);
1045 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x40L);
1048 return jjMoveStringLiteralDfa5_1(active0, 0x802000000000L, active1, 0x2L);
1051 return jjMoveStringLiteralDfa5_1(active0, 0x4000000000000000L, active1, 0L);
1054 if ((active0 & 0x20000000000000L) != 0L)
1055 return jjStartNfaWithStates_1(4, 53, 14);
1056 return jjMoveStringLiteralDfa5_1(active0, 0x10000000000000L, active1, 0L);
1059 if ((active0 & 0x200000L) != 0L)
1060 return jjStartNfaWithStates_1(4, 21, 14);
1064 if ((active0 & 0x40000000L) != 0L)
1065 return jjStartNfaWithStates_1(4, 30, 14);
1066 else if ((active0 & 0x80000000000L) != 0L)
1067 return jjStartNfaWithStates_1(4, 43, 14);
1068 else if ((active1 & 0x80L) != 0L)
1069 return jjStartNfaWithStates_1(4, 71, 14);
1070 return jjMoveStringLiteralDfa5_1(active0, 0x400000L, active1, 0L);
1073 return jjMoveStringLiteralDfa5_1(active0, 0x200500000000L, active1, 0L);
1076 return jjMoveStringLiteralDfa5_1(active0, 0x1000000000000000L, active1, 0L);
1079 if ((active0 & 0x8000000L) != 0L)
1080 return jjStartNfaWithStates_1(4, 27, 14);
1085 return jjStartNfa_1(3, active0, active1, 0L);
1087 static private final int jjMoveStringLiteralDfa5_1(long old0, long active0, long old1, long active1)
1089 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1090 return jjStartNfa_1(3, old0, old1, 0L);
1091 try { curChar = input_stream.readChar(); }
1092 catch(java.io.IOException e) {
1093 jjStopStringLiteralDfa_1(4, active0, active1, 0L);
1100 return jjMoveStringLiteralDfa6_1(active0, 0L, active1, 0x10L);
1103 if ((active0 & 0x4000000000L) != 0L)
1104 return jjStartNfaWithStates_1(5, 38, 14);
1105 return jjMoveStringLiteralDfa6_1(active0, 0x8000000000000000L, active1, 0L);
1108 return jjMoveStringLiteralDfa6_1(active0, 0x800500000000L, active1, 0L);
1111 if ((active0 & 0x2000000000L) != 0L)
1112 return jjStartNfaWithStates_1(5, 37, 14);
1113 else if ((active1 & 0x40L) != 0L)
1114 return jjStartNfaWithStates_1(5, 70, 14);
1115 return jjMoveStringLiteralDfa6_1(active0, 0L, active1, 0x200L);
1118 if ((active0 & 0x2000000L) != 0L)
1119 return jjStartNfaWithStates_1(5, 25, 14);
1123 if ((active1 & 0x2L) != 0L)
1124 return jjStartNfaWithStates_1(5, 65, 14);
1128 if ((active0 & 0x40000000000000L) != 0L)
1129 return jjStartNfaWithStates_1(5, 54, 14);
1133 return jjMoveStringLiteralDfa6_1(active0, 0x1800000000400000L, active1, 0L);
1136 if ((active0 & 0x1000000000L) != 0L)
1137 return jjStartNfaWithStates_1(5, 36, 14);
1138 return jjMoveStringLiteralDfa6_1(active0, 0x200000000000L, active1, 0L);
1141 if ((active0 & 0x10000000000000L) != 0L)
1142 return jjStartNfaWithStates_1(5, 52, 14);
1143 return jjMoveStringLiteralDfa6_1(active0, 0x100000000000L, active1, 0L);
1146 if ((active0 & 0x4000000000000000L) != 0L)
1147 return jjStartNfaWithStates_1(5, 62, 14);
1148 return jjMoveStringLiteralDfa6_1(active0, 0xa00000000L, active1, 0L);
1151 if ((active1 & 0x4L) != 0L)
1152 return jjStartNfaWithStates_1(5, 66, 14);
1157 return jjStartNfa_1(4, active0, active1, 0L);
1159 static private final int jjMoveStringLiteralDfa6_1(long old0, long active0, long old1, long active1)
1161 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1162 return jjStartNfa_1(4, old0, old1, 0L);
1163 try { curChar = input_stream.readChar(); }
1164 catch(java.io.IOException e) {
1165 jjStopStringLiteralDfa_1(5, active0, active1, 0L);
1172 if ((active0 & 0x100000000L) != 0L)
1177 else if ((active0 & 0x200000000L) != 0L)
1182 return jjMoveStringLiteralDfa7_1(active0, 0xc00000000L, active1, 0L);
1185 if ((active0 & 0x8000000000000000L) != 0L)
1186 return jjStartNfaWithStates_1(6, 63, 14);
1190 return jjMoveStringLiteralDfa7_1(active0, 0x800000000000000L, active1, 0L);
1193 if ((active1 & 0x10L) != 0L)
1194 return jjStartNfaWithStates_1(6, 68, 14);
1198 return jjMoveStringLiteralDfa7_1(active0, 0x400000L, active1, 0L);
1201 if ((active1 & 0x200L) != 0L)
1202 return jjStartNfaWithStates_1(6, 73, 14);
1206 if ((active0 & 0x800000000000L) != 0L)
1207 return jjStartNfaWithStates_1(6, 47, 14);
1211 if ((active0 & 0x200000000000L) != 0L)
1212 return jjStartNfaWithStates_1(6, 45, 14);
1213 return jjMoveStringLiteralDfa7_1(active0, 0x1000000000000000L, active1, 0L);
1216 return jjMoveStringLiteralDfa7_1(active0, 0x100000000000L, active1, 0L);
1220 return jjStartNfa_1(5, active0, active1, 0L);
1222 static private final int jjMoveStringLiteralDfa7_1(long old0, long active0, long old1, long active1)
1224 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1225 return jjStartNfa_1(5, old0, old1, 0L);
1226 try { curChar = input_stream.readChar(); }
1227 catch(java.io.IOException e) {
1228 jjStopStringLiteralDfa_1(6, active0, 0L, 0L);
1234 return jjMoveStringLiteralDfa8_1(active0, 0xc00000000L);
1237 return jjMoveStringLiteralDfa8_1(active0, 0x1000000000000000L);
1240 if ((active0 & 0x100000000000L) != 0L)
1241 return jjStartNfaWithStates_1(7, 44, 14);
1242 else if ((active0 & 0x800000000000000L) != 0L)
1243 return jjStartNfaWithStates_1(7, 59, 14);
1247 if ((active0 & 0x400000L) != 0L)
1248 return jjStartNfaWithStates_1(7, 22, 14);
1253 return jjStartNfa_1(6, active0, 0L, 0L);
1255 static private final int jjMoveStringLiteralDfa8_1(long old0, long active0)
1257 if (((active0 &= old0)) == 0L)
1258 return jjStartNfa_1(6, old0, 0L, 0L);
1259 try { curChar = input_stream.readChar(); }
1260 catch(java.io.IOException e) {
1261 jjStopStringLiteralDfa_1(7, active0, 0L, 0L);
1268 if ((active0 & 0x1000000000000000L) != 0L)
1269 return jjStartNfaWithStates_1(8, 60, 14);
1273 return jjMoveStringLiteralDfa9_1(active0, 0xc00000000L);
1277 return jjStartNfa_1(7, active0, 0L, 0L);
1279 static private final int jjMoveStringLiteralDfa9_1(long old0, long active0)
1281 if (((active0 &= old0)) == 0L)
1282 return jjStartNfa_1(7, old0, 0L, 0L);
1283 try { curChar = input_stream.readChar(); }
1284 catch(java.io.IOException e) {
1285 jjStopStringLiteralDfa_1(8, active0, 0L, 0L);
1292 return jjMoveStringLiteralDfa10_1(active0, 0xc00000000L);
1296 return jjStartNfa_1(8, active0, 0L, 0L);
1298 static private final int jjMoveStringLiteralDfa10_1(long old0, long active0)
1300 if (((active0 &= old0)) == 0L)
1301 return jjStartNfa_1(8, old0, 0L, 0L);
1302 try { curChar = input_stream.readChar(); }
1303 catch(java.io.IOException e) {
1304 jjStopStringLiteralDfa_1(9, active0, 0L, 0L);
1311 return jjMoveStringLiteralDfa11_1(active0, 0xc00000000L);
1315 return jjStartNfa_1(9, active0, 0L, 0L);
1317 static private final int jjMoveStringLiteralDfa11_1(long old0, long active0)
1319 if (((active0 &= old0)) == 0L)
1320 return jjStartNfa_1(9, old0, 0L, 0L);
1321 try { curChar = input_stream.readChar(); }
1322 catch(java.io.IOException e) {
1323 jjStopStringLiteralDfa_1(10, active0, 0L, 0L);
1330 if ((active0 & 0x400000000L) != 0L)
1331 return jjStartNfaWithStates_1(11, 34, 14);
1332 else if ((active0 & 0x800000000L) != 0L)
1333 return jjStartNfaWithStates_1(11, 35, 14);
1338 return jjStartNfa_1(10, active0, 0L, 0L);
1340 static final long[] jjbitVec0 = {
1341 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
1343 static private final int jjMoveNfa_1(int startState, int curPos)
1349 jjstateSet[0] = startState;
1350 int j, kind = 0x7fffffff;
1353 if (++jjround == 0x7fffffff)
1357 long l = 1L << curChar;
1360 switch(jjstateSet[--i])
1363 if ((0x3ff000000000000L & l) != 0L)
1364 jjCheckNAddStates(0, 6);
1365 else if (curChar == 39)
1366 jjCheckNAddStates(7, 12);
1367 else if (curChar == 34)
1368 jjCheckNAddStates(13, 18);
1369 else if (curChar == 36)
1370 jjstateSet[jjnewStateCnt++] = 16;
1371 else if (curChar == 46)
1373 else if (curChar == 47)
1374 jjstateSet[jjnewStateCnt++] = 2;
1375 if ((0x3fe000000000000L & l) != 0L)
1379 jjCheckNAddTwoStates(5, 6);
1381 else if (curChar == 48)
1385 jjCheckNAddStates(19, 21);
1390 jjstateSet[jjnewStateCnt++] = 1;
1393 if ((0xffff7fffffffffffL & l) != 0L && kind > 13)
1398 jjstateSet[jjnewStateCnt++] = 0;
1401 if ((0x3fe000000000000L & l) == 0L)
1405 jjCheckNAddTwoStates(5, 6);
1408 if ((0x3ff000000000000L & l) == 0L)
1412 jjCheckNAddTwoStates(5, 6);
1419 if ((0x3ff000000000000L & l) == 0L)
1423 jjCheckNAddStates(22, 24);
1426 if ((0x280000000000L & l) != 0L)
1430 if ((0x3ff000000000000L & l) == 0L)
1434 jjCheckNAddTwoStates(11, 12);
1437 if ((0x3ff000000000000L & l) == 0L)
1441 jjstateSet[jjnewStateCnt++] = 14;
1445 jjstateSet[jjnewStateCnt++] = 16;
1448 if ((0x3ff000000000000L & l) == 0L)
1452 jjstateSet[jjnewStateCnt++] = 17;
1455 if ((0x3ff000000000000L & l) != 0L)
1456 jjCheckNAddStates(0, 6);
1459 if ((0x3ff000000000000L & l) != 0L)
1460 jjCheckNAddTwoStates(19, 20);
1467 jjCheckNAddStates(25, 27);
1470 if ((0x3ff000000000000L & l) == 0L)
1474 jjCheckNAddStates(25, 27);
1477 if ((0x280000000000L & l) != 0L)
1481 if ((0x3ff000000000000L & l) == 0L)
1485 jjCheckNAddTwoStates(24, 12);
1488 if ((0x3ff000000000000L & l) != 0L)
1489 jjCheckNAddTwoStates(25, 26);
1492 if ((0x280000000000L & l) != 0L)
1496 if ((0x3ff000000000000L & l) == 0L)
1500 jjCheckNAddTwoStates(28, 12);
1503 if ((0x3ff000000000000L & l) != 0L)
1504 jjCheckNAddStates(28, 30);
1507 if ((0x280000000000L & l) != 0L)
1511 if ((0x3ff000000000000L & l) != 0L)
1512 jjCheckNAddTwoStates(32, 12);
1519 jjCheckNAddStates(19, 21);
1522 if ((0x3ff000000000000L & l) == 0L)
1526 jjCheckNAddTwoStates(35, 6);
1529 if ((0xff000000000000L & l) == 0L)
1533 jjCheckNAddTwoStates(36, 6);
1537 jjCheckNAddStates(13, 18);
1540 if ((0xfffffffbffffffffL & l) != 0L)
1541 jjCheckNAddStates(31, 33);
1545 jjCheckNAddStates(31, 33);
1548 if (curChar == 34 && kind > 103)
1552 if ((0xfffffffbffffffffL & l) != 0L)
1553 jjCheckNAddStates(34, 36);
1557 jjCheckNAddStates(34, 36);
1560 if (curChar == 34 && kind > 104)
1565 jjCheckNAddStates(7, 12);
1568 if ((0xffffff7fffffffffL & l) != 0L)
1569 jjCheckNAddStates(37, 39);
1573 jjCheckNAddStates(37, 39);
1576 if (curChar == 39 && kind > 103)
1580 if ((0xffffff7fffffffffL & l) != 0L)
1581 jjCheckNAddStates(40, 42);
1585 jjCheckNAddStates(40, 42);
1588 if (curChar == 39 && kind > 105)
1592 jjAddStates(43, 45);
1595 jjAddStates(46, 48);
1599 } while(i != startsAt);
1601 else if (curChar < 128)
1603 long l = 1L << (curChar & 077);
1606 switch(jjstateSet[--i])
1609 if ((0x87fffffe87fffffeL & l) != 0L)
1615 else if (curChar == 96)
1616 jjCheckNAddStates(49, 54);
1623 if ((0x100000001000L & l) != 0L && kind > 97)
1627 if ((0x2000000020L & l) != 0L)
1628 jjAddStates(55, 56);
1631 if ((0x5000000050L & l) != 0L && kind > 101)
1636 if ((0x87fffffe87fffffeL & l) == 0L)
1644 if ((0x87fffffe87fffffeL & l) == 0L)
1651 if ((0x2000000020L & l) != 0L)
1652 jjAddStates(57, 58);
1655 if ((0x2000000020L & l) != 0L)
1656 jjAddStates(59, 60);
1659 if ((0x2000000020L & l) != 0L)
1660 jjAddStates(61, 62);
1663 if ((0x100000001000000L & l) != 0L)
1667 if ((0x7e0000007eL & l) == 0L)
1671 jjCheckNAddTwoStates(35, 6);
1674 if ((0xffffffffefffffffL & l) != 0L)
1675 jjCheckNAddStates(31, 33);
1679 jjstateSet[jjnewStateCnt++] = 40;
1683 jjCheckNAddStates(31, 33);
1686 if ((0xffffffffefffffffL & l) != 0L)
1687 jjCheckNAddStates(34, 36);
1691 jjstateSet[jjnewStateCnt++] = 44;
1695 jjCheckNAddStates(34, 36);
1698 if ((0xffffffffefffffffL & l) != 0L)
1699 jjCheckNAddStates(37, 39);
1703 jjstateSet[jjnewStateCnt++] = 49;
1707 jjCheckNAddStates(37, 39);
1710 if ((0xffffffffefffffffL & l) != 0L)
1711 jjCheckNAddStates(40, 42);
1715 jjstateSet[jjnewStateCnt++] = 53;
1719 jjCheckNAddStates(40, 42);
1723 jjCheckNAddStates(49, 54);
1726 if ((0xfffffffeefffffffL & l) != 0L)
1727 jjCheckNAddStates(43, 45);
1731 jjstateSet[jjnewStateCnt++] = 58;
1734 if ((0x110000000L & l) != 0L)
1735 jjCheckNAddStates(43, 45);
1738 if (curChar == 96 && kind > 103)
1742 if ((0xfffffffeefffffffL & l) != 0L)
1743 jjCheckNAddStates(46, 48);
1747 jjstateSet[jjnewStateCnt++] = 62;
1750 if ((0x110000000L & l) != 0L)
1751 jjCheckNAddStates(46, 48);
1754 if (curChar == 96 && kind > 106)
1759 } while(i != startsAt);
1763 int i2 = (curChar & 0xff) >> 6;
1764 long l2 = 1L << (curChar & 077);
1767 switch(jjstateSet[--i])
1771 if ((jjbitVec0[i2] & l2) == 0L)
1778 if ((jjbitVec0[i2] & l2) != 0L && kind > 13)
1783 if ((jjbitVec0[i2] & l2) == 0L)
1790 if ((jjbitVec0[i2] & l2) != 0L)
1791 jjAddStates(31, 33);
1794 if ((jjbitVec0[i2] & l2) != 0L)
1795 jjAddStates(34, 36);
1798 if ((jjbitVec0[i2] & l2) != 0L)
1799 jjAddStates(37, 39);
1802 if ((jjbitVec0[i2] & l2) != 0L)
1803 jjAddStates(40, 42);
1806 if ((jjbitVec0[i2] & l2) != 0L)
1807 jjAddStates(43, 45);
1810 if ((jjbitVec0[i2] & l2) != 0L)
1811 jjAddStates(46, 48);
1815 } while(i != startsAt);
1817 if (kind != 0x7fffffff)
1819 jjmatchedKind = kind;
1820 jjmatchedPos = curPos;
1824 if ((i = jjnewStateCnt) == (startsAt = 64 - (jjnewStateCnt = startsAt)))
1826 try { curChar = input_stream.readChar(); }
1827 catch(java.io.IOException e) { return curPos; }
1830 static private final int jjMoveStringLiteralDfa0_3()
1835 return jjMoveStringLiteralDfa1_3(0x40000L);
1838 return jjMoveStringLiteralDfa1_3(0x20000L);
1843 static private final int jjMoveStringLiteralDfa1_3(long active0)
1845 try { curChar = input_stream.readChar(); }
1846 catch(java.io.IOException e) {
1852 if ((active0 & 0x40000L) != 0L)
1853 return jjStopAtPos(1, 18);
1857 return jjMoveStringLiteralDfa2_3(active0, 0x20000L);
1863 static private final int jjMoveStringLiteralDfa2_3(long old0, long active0)
1865 if (((active0 &= old0)) == 0L)
1867 try { curChar = input_stream.readChar(); }
1868 catch(java.io.IOException e) {
1875 return jjMoveStringLiteralDfa3_3(active0, 0x20000L);
1880 static private final int jjMoveStringLiteralDfa3_3(long old0, long active0)
1882 if (((active0 &= old0)) == 0L)
1884 try { curChar = input_stream.readChar(); }
1885 catch(java.io.IOException e) {
1892 if ((active0 & 0x20000L) != 0L)
1893 return jjStopAtPos(3, 17);
1900 static final int[] jjnextStates = {
1901 19, 20, 25, 26, 29, 30, 12, 47, 48, 50, 51, 52, 54, 38, 39, 41,
1902 42, 43, 45, 34, 36, 6, 8, 9, 12, 21, 22, 12, 29, 30, 12, 38,
1903 39, 41, 42, 43, 45, 47, 48, 50, 51, 52, 54, 56, 57, 59, 60, 61,
1904 63, 56, 57, 59, 60, 61, 63, 10, 11, 23, 24, 27, 28, 31, 32,
1906 public static final String[] jjstrLiteralImages = {
1907 "", "\74\77", null, "\74\77\75", "\77\76", null, null, null, null, null, null,
1908 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1909 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1910 "\55\76", "\72\72", "\75\76", null, null, null, null, null, null, null, null, null, null,
1911 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1912 null, null, null, null, null, null, null, null, "\100", "\44", "\41", "\176", "\77",
1913 "\72", "\174\174", "\46\46", "\53\53", "\55\55", "\53", "\55", "\52", "\57", "\46",
1914 "\174", "\136", "\45", "\74\74", "\76\76", "\76\76\76", null, null, null, null, null,
1915 null, null, null, null, null, null, null, null, null, null, null, "\50", "\51",
1916 "\173", "\175", "\133", "\135", "\73", "\54", "\56", "\76", "\74", "\75\75", "\74\75",
1917 "\76\75", "\41\75", "\74\76", "\41\75\75", "\75\75\75", "\75", "\53\75", "\55\75",
1918 "\52\75", "\57\75", "\46\75", "\174\75", "\136\75", "\56\75", "\45\75", "\176\75",
1919 "\74\74\75", "\76\76\75", null, };
1920 public static final String[] lexStateNames = {
1923 "IN_SINGLE_LINE_COMMENT",
1924 "IN_FORMAL_COMMENT",
1925 "IN_MULTI_LINE_COMMENT",
1927 public static final int[] jjnewLexState = {
1928 -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,
1929 -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,
1930 -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,
1931 -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,
1932 -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,
1933 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1935 static final long[] jjtoToken = {
1936 0xffffffffffe0001fL, 0xffff8fa3ffffffffL, 0x7fffL,
1938 static final long[] jjtoSkip = {
1939 0xfffe0L, 0x0L, 0x0L,
1941 static final long[] jjtoSpecial = {
1942 0xff800L, 0x0L, 0x0L,
1944 static final long[] jjtoMore = {
1945 0x100000L, 0x0L, 0x0L,
1947 static protected SimpleCharStream input_stream;
1948 static private final int[] jjrounds = new int[64];
1949 static private final int[] jjstateSet = new int[128];
1950 static StringBuffer image;
1951 static int jjimageLen;
1952 static int lengthOfMatch;
1953 static protected char curChar;
1954 public PHPParserTokenManager(SimpleCharStream stream)
1956 if (input_stream != null)
1957 throw new TokenMgrError("ERROR: Second call to constructor of static lexer. You must use ReInit() to initialize the static variables.", TokenMgrError.STATIC_LEXER_ERROR);
1958 input_stream = stream;
1960 public PHPParserTokenManager(SimpleCharStream stream, int lexState)
1965 static public void ReInit(SimpleCharStream stream)
1967 jjmatchedPos = jjnewStateCnt = 0;
1968 curLexState = defaultLexState;
1969 input_stream = stream;
1972 static private final void ReInitRounds()
1975 jjround = 0x80000001;
1976 for (i = 64; i-- > 0;)
1977 jjrounds[i] = 0x80000000;
1979 static public void ReInit(SimpleCharStream stream, int lexState)
1984 static public void SwitchTo(int lexState)
1986 if (lexState >= 5 || lexState < 0)
1987 throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
1989 curLexState = lexState;
1992 static protected Token jjFillToken()
1994 Token t = Token.newToken(jjmatchedKind);
1995 t.kind = jjmatchedKind;
1996 String im = jjstrLiteralImages[jjmatchedKind];
1997 t.image = (im == null) ? input_stream.GetImage() : im;
1998 t.beginLine = input_stream.getBeginLine();
1999 t.beginColumn = input_stream.getBeginColumn();
2000 t.endLine = input_stream.getEndLine();
2001 t.endColumn = input_stream.getEndColumn();
2005 static int curLexState = 0;
2006 static int defaultLexState = 0;
2007 static int jjnewStateCnt;
2009 static int jjmatchedPos;
2010 static int jjmatchedKind;
2012 public static Token getNextToken()
2015 Token specialToken = null;
2024 curChar = input_stream.BeginToken();
2026 catch(java.io.IOException e)
2029 matchedToken = jjFillToken();
2030 matchedToken.specialToken = specialToken;
2031 return matchedToken;
2041 jjmatchedKind = 0x7fffffff;
2043 curPos = jjMoveStringLiteralDfa0_0();
2044 if (jjmatchedPos == 0 && jjmatchedKind > 5)
2050 try { input_stream.backup(0);
2051 while (curChar <= 32 && (0x100003600L & (1L << curChar)) != 0L)
2052 curChar = input_stream.BeginToken();
2054 catch (java.io.IOException e1) { continue EOFLoop; }
2055 jjmatchedKind = 0x7fffffff;
2057 curPos = jjMoveStringLiteralDfa0_1();
2060 jjmatchedKind = 0x7fffffff;
2062 curPos = jjMoveStringLiteralDfa0_2();
2063 if (jjmatchedPos == 0 && jjmatchedKind > 20)
2069 jjmatchedKind = 0x7fffffff;
2071 curPos = jjMoveStringLiteralDfa0_3();
2072 if (jjmatchedPos == 0 && jjmatchedKind > 20)
2078 jjmatchedKind = 0x7fffffff;
2080 curPos = jjMoveStringLiteralDfa0_4();
2081 if (jjmatchedPos == 0 && jjmatchedKind > 20)
2087 if (jjmatchedKind != 0x7fffffff)
2089 if (jjmatchedPos + 1 < curPos)
2090 input_stream.backup(curPos - jjmatchedPos - 1);
2091 if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
2093 matchedToken = jjFillToken();
2094 matchedToken.specialToken = specialToken;
2095 TokenLexicalActions(matchedToken);
2096 if (jjnewLexState[jjmatchedKind] != -1)
2097 curLexState = jjnewLexState[jjmatchedKind];
2098 return matchedToken;
2100 else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
2102 if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
2104 matchedToken = jjFillToken();
2105 if (specialToken == null)
2106 specialToken = matchedToken;
2109 matchedToken.specialToken = specialToken;
2110 specialToken = (specialToken.next = matchedToken);
2112 SkipLexicalActions(matchedToken);
2115 SkipLexicalActions(null);
2116 if (jjnewLexState[jjmatchedKind] != -1)
2117 curLexState = jjnewLexState[jjmatchedKind];
2120 jjimageLen += jjmatchedPos + 1;
2121 if (jjnewLexState[jjmatchedKind] != -1)
2122 curLexState = jjnewLexState[jjmatchedKind];
2124 jjmatchedKind = 0x7fffffff;
2126 curChar = input_stream.readChar();
2129 catch (java.io.IOException e1) { }
2131 int error_line = input_stream.getEndLine();
2132 int error_column = input_stream.getEndColumn();
2133 String error_after = null;
2134 boolean EOFSeen = false;
2135 try { input_stream.readChar(); input_stream.backup(1); }
2136 catch (java.io.IOException e1) {
2138 error_after = curPos <= 1 ? "" : input_stream.GetImage();
2139 if (curChar == '\n' || curChar == '\r') {
2147 input_stream.backup(1);
2148 error_after = curPos <= 1 ? "" : input_stream.GetImage();
2150 throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
2155 static void SkipLexicalActions(Token matchedToken)
2157 switch(jjmatchedKind)
2161 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2163 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2164 input_stream.backup(1);
2168 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2170 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2171 PHPParser.createNewTask();
2177 static void TokenLexicalActions(Token matchedToken)
2179 switch(jjmatchedKind)
2183 image = new StringBuffer(jjstrLiteralImages[1]);
2185 image.append(jjstrLiteralImages[1]);
2186 PHPParser.createNewHTMLCode();
2190 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2192 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2193 PHPParser.createNewHTMLCode();
2197 image = new StringBuffer(jjstrLiteralImages[3]);
2199 image.append(jjstrLiteralImages[3]);
2200 PHPParser.createNewHTMLCode();
2204 image = new StringBuffer(jjstrLiteralImages[4]);
2206 image.append(jjstrLiteralImages[4]);
2207 PHPParser.htmlStart = SimpleCharStream.getPosition();