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;
19 import net.sourceforge.phpdt.internal.corext.Assert;
21 public class PHPParserTokenManager implements PHPParserConstants
23 // CommonTokenAction: use the begins/ends fields added to the Jack
24 // CharStream class to set corresponding fields in each Token (which was
25 // also extended with new fields). By default Jack doesn't supply absolute
26 // offsets, just line/column offsets
27 static void CommonTokenAction(Token t) {
28 t.sourceStart = input_stream.beginOffset;
29 t.sourceEnd = input_stream.endOffset;
31 public static java.io.PrintStream debugStream = System.out;
32 public static void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
33 static private final int jjStopAtPos(int pos, int kind)
39 static private final int jjMoveStringLiteralDfa0_0()
44 return jjMoveStringLiteralDfa1_0(0xeL);
49 static private final int jjMoveStringLiteralDfa1_0(long active0)
51 try { curChar = input_stream.readChar(); }
52 catch(java.io.IOException e) {
58 if ((active0 & 0x2L) != 0L)
63 return jjMoveStringLiteralDfa2_0(active0, 0xcL);
68 static private final int jjMoveStringLiteralDfa2_0(long old0, long active0)
70 if (((active0 &= old0)) == 0L)
72 try { curChar = input_stream.readChar(); }
73 catch(java.io.IOException e) {
79 if ((active0 & 0x8L) != 0L)
80 return jjStopAtPos(2, 3);
84 return jjMoveStringLiteralDfa3_0(active0, 0x4L);
90 static private final int jjMoveStringLiteralDfa3_0(long old0, long active0)
92 if (((active0 &= old0)) == 0L)
94 try { curChar = input_stream.readChar(); }
95 catch(java.io.IOException e) {
102 return jjMoveStringLiteralDfa4_0(active0, 0x4L);
107 static private final int jjMoveStringLiteralDfa4_0(long old0, long active0)
109 if (((active0 &= old0)) == 0L)
111 try { curChar = input_stream.readChar(); }
112 catch(java.io.IOException e) {
119 if ((active0 & 0x4L) != 0L)
120 return jjStopAtPos(4, 2);
127 static private final int jjMoveStringLiteralDfa0_4()
132 return jjMoveStringLiteralDfa1_4(0x80000L);
135 return jjMoveStringLiteralDfa1_4(0x20000L);
140 static private final int jjMoveStringLiteralDfa1_4(long active0)
142 try { curChar = input_stream.readChar(); }
143 catch(java.io.IOException e) {
149 if ((active0 & 0x80000L) != 0L)
150 return jjStopAtPos(1, 19);
154 return jjMoveStringLiteralDfa2_4(active0, 0x20000L);
160 static private final int jjMoveStringLiteralDfa2_4(long old0, long active0)
162 if (((active0 &= old0)) == 0L)
164 try { curChar = input_stream.readChar(); }
165 catch(java.io.IOException e) {
172 return jjMoveStringLiteralDfa3_4(active0, 0x20000L);
177 static private final int jjMoveStringLiteralDfa3_4(long old0, long active0)
179 if (((active0 &= old0)) == 0L)
181 try { curChar = input_stream.readChar(); }
182 catch(java.io.IOException e) {
189 if ((active0 & 0x20000L) != 0L)
190 return jjStopAtPos(3, 17);
197 private static final int jjStopStringLiteralDfa_2(int pos, long active0)
205 private static final int jjStartNfa_2(int pos, long active0)
207 return jjMoveNfa_2(jjStopStringLiteralDfa_2(pos, active0), pos + 1);
209 static private final int jjStartNfaWithStates_2(int pos, int kind, int state)
211 jjmatchedKind = kind;
213 try { curChar = input_stream.readChar(); }
214 catch(java.io.IOException e) { return pos + 1; }
215 return jjMoveNfa_2(state, pos + 1);
217 static private final int jjMoveStringLiteralDfa0_2()
222 return jjMoveStringLiteralDfa1_2(0x10L);
225 return jjMoveStringLiteralDfa1_2(0x20000L);
227 return jjMoveNfa_2(0, 0);
230 static private final int jjMoveStringLiteralDfa1_2(long active0)
232 try { curChar = input_stream.readChar(); }
233 catch(java.io.IOException e) {
234 jjStopStringLiteralDfa_2(0, active0);
240 if ((active0 & 0x10L) != 0L)
241 return jjStopAtPos(1, 4);
245 return jjMoveStringLiteralDfa2_2(active0, 0x20000L);
249 return jjStartNfa_2(0, active0);
251 static private final int jjMoveStringLiteralDfa2_2(long old0, long active0)
253 if (((active0 &= old0)) == 0L)
254 return jjStartNfa_2(0, old0);
255 try { curChar = input_stream.readChar(); }
256 catch(java.io.IOException e) {
257 jjStopStringLiteralDfa_2(1, active0);
264 return jjMoveStringLiteralDfa3_2(active0, 0x20000L);
268 return jjStartNfa_2(1, active0);
270 static private final int jjMoveStringLiteralDfa3_2(long old0, long active0)
272 if (((active0 &= old0)) == 0L)
273 return jjStartNfa_2(1, old0);
274 try { curChar = input_stream.readChar(); }
275 catch(java.io.IOException e) {
276 jjStopStringLiteralDfa_2(2, active0);
283 if ((active0 & 0x20000L) != 0L)
284 return jjStopAtPos(3, 17);
289 return jjStartNfa_2(2, active0);
291 static private final void jjCheckNAdd(int state)
293 if (jjrounds[state] != jjround)
295 jjstateSet[jjnewStateCnt++] = state;
296 jjrounds[state] = jjround;
299 static private final void jjAddStates(int start, int end)
302 jjstateSet[jjnewStateCnt++] = jjnextStates[start];
303 } while (start++ != end);
305 static private final void jjCheckNAddTwoStates(int state1, int state2)
310 static private final void jjCheckNAddStates(int start, int end)
313 jjCheckNAdd(jjnextStates[start]);
314 } while (start++ != end);
316 static private final void jjCheckNAddStates(int start)
318 jjCheckNAdd(jjnextStates[start]);
319 jjCheckNAdd(jjnextStates[start + 1]);
321 static private final int jjMoveNfa_2(int startState, int curPos)
327 jjstateSet[0] = startState;
328 int j, kind = 0x7fffffff;
331 if (++jjround == 0x7fffffff)
335 long l = 1L << curChar;
338 switch(jjstateSet[--i])
341 if ((0x2400L & l) != 0L)
347 jjstateSet[jjnewStateCnt++] = 1;
350 if (curChar == 10 && kind > 15)
355 jjstateSet[jjnewStateCnt++] = 1;
359 } while(i != startsAt);
361 else if (curChar < 128)
363 long l = 1L << (curChar & 077);
366 switch(jjstateSet[--i])
370 } while(i != startsAt);
374 int i2 = (curChar & 0xff) >> 6;
375 long l2 = 1L << (curChar & 077);
378 switch(jjstateSet[--i])
382 } while(i != startsAt);
384 if (kind != 0x7fffffff)
386 jjmatchedKind = kind;
387 jjmatchedPos = curPos;
391 if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt)))
393 try { curChar = input_stream.readChar(); }
394 catch(java.io.IOException e) { return curPos; }
397 private static final int jjStopStringLiteralDfa_1(int pos, long active0, long active1, long active2)
402 if ((active0 & 0x4800L) != 0L || (active1 & 0x800000L) != 0L || (active2 & 0x20L) != 0L)
404 if ((active1 & 0x800L) != 0L)
406 if ((active1 & 0x80000000000000L) != 0L || (active2 & 0x200L) != 0L)
408 if ((active0 & 0xfffffc7fffe00000L) != 0L || (active1 & 0x1800003ffL) != 0L)
415 if ((active0 & 0x4000L) != 0L)
417 if ((active0 & 0x400001000000L) != 0L || (active1 & 0x80000041L) != 0L)
419 if ((active0 & 0xffffbc7ffee00000L) != 0L || (active1 & 0x1000003beL) != 0L)
421 if (jjmatchedPos != 1)
430 if ((active0 & 0x8005000000800000L) != 0L || (active1 & 0x100000300L) != 0L)
432 if ((active0 & 0x7ffabc7ffe600000L) != 0L || (active1 & 0xfeL) != 0L)
434 if (jjmatchedPos != 2)
443 if ((active0 & 0x18a0400a6000000L) != 0L || (active1 & 0x38L) != 0L)
445 if ((active0 & 0xfe70b87f58600000L) != 0L || (active1 & 0x2c6L) != 0L)
447 if (jjmatchedPos != 3)
456 if ((active0 & 0x2620080058200000L) != 0L || (active1 & 0x80L) != 0L)
458 if ((active0 & 0xd850b07f02400000L) != 0L || (active1 & 0x256L) != 0L)
466 if ((active0 & 0x4050007002000000L) != 0L || (active1 & 0x46L) != 0L)
468 if ((active0 & 0x9800b00f00400000L) != 0L || (active1 & 0x210L) != 0L)
476 if ((active0 & 0x8000a00f00000000L) != 0L || (active1 & 0x210L) != 0L)
478 if ((active0 & 0x1800100000400000L) != 0L)
480 if (jjmatchedPos != 6)
489 if ((active0 & 0x800100000400000L) != 0L)
491 if ((active0 & 0x1000000c00000000L) != 0L)
499 if ((active0 & 0xc00000000L) != 0L)
505 if ((active0 & 0x1000000000000000L) != 0L)
509 if ((active0 & 0xc00000000L) != 0L)
517 if ((active0 & 0xc00000000L) != 0L)
528 private static final int jjStartNfa_1(int pos, long active0, long active1, long active2)
530 return jjMoveNfa_1(jjStopStringLiteralDfa_1(pos, active0, active1, active2), pos + 1);
532 static private final int jjStartNfaWithStates_1(int pos, int kind, int state)
534 jjmatchedKind = kind;
536 try { curChar = input_stream.readChar(); }
537 catch(java.io.IOException e) { return pos + 1; }
538 return jjMoveNfa_1(state, pos + 1);
540 static private final int jjMoveStringLiteralDfa0_1()
546 return jjMoveStringLiteralDfa1_1(0x0L, 0xa000000000000000L, 0x0L);
548 return jjStopAtPos(0, 12);
550 return jjStartNfaWithStates_1(0, 75, 16);
553 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x400L);
556 return jjMoveStringLiteralDfa1_1(0x0L, 0x20000L, 0x40L);
558 return jjStopAtPos(0, 111);
560 return jjStopAtPos(0, 112);
563 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x10L);
566 return jjMoveStringLiteralDfa1_1(0x0L, 0x40000L, 0x4L);
568 return jjStopAtPos(0, 118);
571 return jjMoveStringLiteralDfa1_1(0x8000000000L, 0x80000L, 0x8L);
574 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x200L);
577 return jjMoveStringLiteralDfa1_1(0x4800L, 0x0L, 0x20L);
580 return jjMoveStringLiteralDfa1_1(0x10000000000L, 0x0L, 0x0L);
582 return jjStopAtPos(0, 117);
585 return jjMoveStringLiteralDfa1_1(0x0L, 0x4800000010000000L, 0x1000L);
588 return jjMoveStringLiteralDfa1_1(0x20000000000L, 0x400000000000000L, 0x1L);
591 return jjMoveStringLiteralDfa1_1(0x0L, 0x1000000060000000L, 0x2000L);
594 return jjMoveStringLiteralDfa1_1(0x10L, 0x0L, 0x0L);
596 return jjStopAtPos(0, 74);
598 return jjStopAtPos(0, 115);
600 return jjStopAtPos(0, 116);
603 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x100L);
606 return jjMoveStringLiteralDfa1_1(0x8000000L, 0x100000001L, 0x0L);
609 return jjMoveStringLiteralDfa1_1(0x10000000L, 0x18L, 0x0L);
612 return jjMoveStringLiteralDfa1_1(0x1c0000200000L, 0x0L, 0x0L);
615 return jjMoveStringLiteralDfa1_1(0x602000000000L, 0x40L, 0x0L);
618 return jjMoveStringLiteralDfa1_1(0x7800800086000000L, 0x0L, 0x0L);
621 return jjMoveStringLiteralDfa1_1(0x8201000000400000L, 0x80L, 0x0L);
624 return jjMoveStringLiteralDfa1_1(0x2001000000000L, 0x0L, 0x0L);
627 return jjMoveStringLiteralDfa1_1(0x501000000L, 0x300L, 0x0L);
630 return jjMoveStringLiteralDfa1_1(0x20000000L, 0x0L, 0x0L);
633 return jjMoveStringLiteralDfa1_1(0xc000000000000L, 0x0L, 0x0L);
636 return jjMoveStringLiteralDfa1_1(0x0L, 0x80000004L, 0x0L);
639 return jjMoveStringLiteralDfa1_1(0x40000000L, 0x0L, 0x0L);
642 return jjMoveStringLiteralDfa1_1(0x10000a00000000L, 0x20L, 0x0L);
645 return jjMoveStringLiteralDfa1_1(0x60004000000000L, 0x2L, 0x0L);
648 return jjMoveStringLiteralDfa1_1(0x180000000000000L, 0x0L, 0x0L);
651 return jjMoveStringLiteralDfa1_1(0x800000L, 0x0L, 0x0L);
654 return jjMoveStringLiteralDfa1_1(0x400000000000000L, 0x0L, 0x0L);
656 return jjStopAtPos(0, 113);
659 return jjMoveStringLiteralDfa1_1(0x0L, 0x10000L, 0x80L);
661 return jjStopAtPos(0, 114);
664 return jjMoveStringLiteralDfa1_1(0x0L, 0x0L, 0x800L);
666 return jjMoveNfa_1(3, 0);
669 static private final int jjMoveStringLiteralDfa1_1(long active0, long active1, long active2)
671 try { curChar = input_stream.readChar(); }
672 catch(java.io.IOException e) {
673 jjStopStringLiteralDfa_1(0, active0, active1, active2);
679 if ((active1 & 0x20000L) != 0L)
680 return jjStopAtPos(1, 81);
683 if ((active0 & 0x4000L) != 0L)
684 return jjStartNfaWithStates_1(1, 14, 0);
687 if ((active1 & 0x40000L) != 0L)
688 return jjStopAtPos(1, 82);
691 if ((active1 & 0x80000L) != 0L)
692 return jjStopAtPos(1, 83);
695 if ((active0 & 0x800L) != 0L)
696 return jjStopAtPos(1, 11);
699 if ((active0 & 0x10000000000L) != 0L)
700 return jjStopAtPos(1, 40);
703 if ((active1 & 0x10000000L) != 0L)
708 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0L, active2, 0x1000L);
710 if ((active1 & 0x400000000000000L) != 0L)
715 else if ((active1 & 0x800000000000000L) != 0L)
716 return jjStopAtPos(1, 123);
717 else if ((active1 & 0x1000000000000000L) != 0L)
718 return jjStopAtPos(1, 124);
719 else if ((active1 & 0x2000000000000000L) != 0L)
724 else if ((active2 & 0x4L) != 0L)
725 return jjStopAtPos(1, 130);
726 else if ((active2 & 0x8L) != 0L)
727 return jjStopAtPos(1, 131);
728 else if ((active2 & 0x10L) != 0L)
729 return jjStopAtPos(1, 132);
730 else if ((active2 & 0x20L) != 0L)
731 return jjStopAtPos(1, 133);
732 else if ((active2 & 0x40L) != 0L)
733 return jjStopAtPos(1, 134);
734 else if ((active2 & 0x80L) != 0L)
735 return jjStopAtPos(1, 135);
736 else if ((active2 & 0x100L) != 0L)
737 return jjStopAtPos(1, 136);
738 else if ((active2 & 0x200L) != 0L)
739 return jjStopAtPos(1, 137);
740 else if ((active2 & 0x400L) != 0L)
741 return jjStopAtPos(1, 138);
742 else if ((active2 & 0x800L) != 0L)
743 return jjStopAtPos(1, 139);
744 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0x8000000000000000L, active2, 0x1L);
746 if ((active0 & 0x10L) != 0L)
747 return jjStopAtPos(1, 4);
748 else if ((active0 & 0x8000000000L) != 0L)
749 return jjStopAtPos(1, 39);
750 else if ((active0 & 0x20000000000L) != 0L)
751 return jjStopAtPos(1, 41);
752 else if ((active1 & 0x20000000L) != 0L)
757 else if ((active1 & 0x4000000000000000L) != 0L)
758 return jjStopAtPos(1, 126);
759 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0x40000000L, active2, 0x2000L);
762 return jjMoveStringLiteralDfa2_1(active0, 0x200040000800000L, active1, 0L, active2, 0L);
765 return jjMoveStringLiteralDfa2_1(active0, 0L, active1, 0x4L, active2, 0L);
768 return jjMoveStringLiteralDfa2_1(active0, 0x80000000L, active1, 0L, active2, 0L);
771 return jjMoveStringLiteralDfa2_1(active0, 0x14202a00000000L, active1, 0x20L, active2, 0L);
774 if ((active0 & 0x1000000L) != 0L)
775 return jjStartNfaWithStates_1(1, 24, 14);
779 return jjMoveStringLiteralDfa2_1(active0, 0x480000000000000L, active1, 0L, active2, 0L);
782 return jjMoveStringLiteralDfa2_1(active0, 0x20000000L, active1, 0L, active2, 0L);
785 return jjMoveStringLiteralDfa2_1(active0, 0x1006200000L, active1, 0x80L, active2, 0L);
788 return jjMoveStringLiteralDfa2_1(active0, 0x7800000500000000L, active1, 0x100000300L, active2, 0L);
791 if ((active0 & 0x400000000000L) != 0L)
796 return jjMoveStringLiteralDfa2_1(active0, 0x8003180000000000L, active1, 0x58L, active2, 0L);
799 if ((active1 & 0x80000000L) != 0L)
800 return jjStartNfaWithStates_1(1, 95, 14);
801 return jjMoveStringLiteralDfa2_1(active0, 0x100000058000000L, active1, 0L, active2, 0L);
804 if ((active1 & 0x1L) != 0L)
805 return jjStartNfaWithStates_1(1, 64, 14);
809 return jjMoveStringLiteralDfa2_1(active0, 0x4000000000L, active1, 0x2L, active2, 0L);
812 return jjMoveStringLiteralDfa2_1(active0, 0x28000000400000L, active1, 0L, active2, 0L);
815 return jjMoveStringLiteralDfa2_1(active0, 0x40000000000000L, active1, 0L, active2, 0L);
818 return jjMoveStringLiteralDfa2_1(active0, 0x800000000000L, active1, 0L, active2, 0L);
820 if ((active1 & 0x10000L) != 0L)
821 return jjStopAtPos(1, 80);
826 return jjStartNfa_1(0, active0, active1, active2);
828 static private final int jjMoveStringLiteralDfa2_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(0, old0, old1, old2);
832 try { curChar = input_stream.readChar(); }
833 catch(java.io.IOException e) {
834 jjStopStringLiteralDfa_1(1, active0, active1, active2);
840 if ((active1 & 0x8000000000000000L) != 0L)
841 return jjStopAtPos(2, 127);
842 else if ((active2 & 0x1L) != 0L)
843 return jjStopAtPos(2, 128);
844 else if ((active2 & 0x1000L) != 0L)
845 return jjStopAtPos(2, 140);
846 else if ((active2 & 0x2000L) != 0L)
847 return jjStopAtPos(2, 141);
850 if ((active1 & 0x40000000L) != 0L)
851 return jjStopAtPos(2, 94);
855 return jjMoveStringLiteralDfa3_1(active0, 0x4000200000L, active1, 0x20L, active2, 0L);
858 return jjMoveStringLiteralDfa3_1(active0, 0x500000000L, active1, 0L, active2, 0L);
861 if ((active1 & 0x100000000L) != 0L)
862 return jjStartNfaWithStates_1(2, 96, 14);
863 return jjMoveStringLiteralDfa3_1(active0, 0x7800000000000000L, active1, 0L, active2, 0L);
866 return jjMoveStringLiteralDfa3_1(active0, 0x10000000L, active1, 0L, active2, 0L);
869 return jjMoveStringLiteralDfa3_1(active0, 0x202000000000L, active1, 0L, active2, 0L);
872 return jjMoveStringLiteralDfa3_1(active0, 0x80000000L, active1, 0L, active2, 0L);
875 return jjMoveStringLiteralDfa3_1(active0, 0x4c0000040000000L, active1, 0L, active2, 0L);
878 return jjMoveStringLiteralDfa3_1(active0, 0L, active1, 0x4L, active2, 0L);
881 return jjMoveStringLiteralDfa3_1(active0, 0x208000000000000L, active1, 0L, active2, 0L);
884 return jjMoveStringLiteralDfa3_1(active0, 0x180000400000L, active1, 0L, active2, 0L);
887 return jjMoveStringLiteralDfa3_1(active0, 0x1000000000L, active1, 0x98L, active2, 0L);
890 return jjMoveStringLiteralDfa3_1(active0, 0x20000000000000L, active1, 0L, active2, 0L);
893 return jjMoveStringLiteralDfa3_1(active0, 0xa00000000L, active1, 0L, active2, 0L);
896 if ((active0 & 0x800000L) != 0L)
897 return jjStartNfaWithStates_1(2, 23, 14);
898 else if ((active0 & 0x1000000000000L) != 0L)
903 return jjMoveStringLiteralDfa3_1(active0, 0x8000000008000000L, active1, 0x2L, active2, 0L);
906 return jjMoveStringLiteralDfa3_1(active0, 0x40026000000L, active1, 0L, active2, 0L);
909 if ((active1 & 0x100L) != 0L)
914 return jjMoveStringLiteralDfa3_1(active0, 0x12800000000000L, active1, 0x200L, active2, 0L);
917 return jjMoveStringLiteralDfa3_1(active0, 0x100000000000000L, active1, 0x40L, active2, 0L);
920 if ((active0 & 0x4000000000000L) != 0L)
921 return jjStartNfaWithStates_1(2, 50, 14);
926 return jjStartNfa_1(1, active0, active1, active2);
928 static private final int jjMoveStringLiteralDfa3_1(long old0, long active0, long old1, long active1, long old2, long active2)
930 if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
931 return jjStartNfa_1(1, old0, old1, old2);
932 try { curChar = input_stream.readChar(); }
933 catch(java.io.IOException e) {
934 jjStopStringLiteralDfa_1(2, active0, active1, 0L);
941 return jjMoveStringLiteralDfa4_1(active0, 0x200018000000L, active1, 0x80L);
944 return jjMoveStringLiteralDfa4_1(active0, 0x1000000000L, active1, 0x40L);
947 return jjMoveStringLiteralDfa4_1(active0, 0x400000L, active1, 0L);
950 if ((active0 & 0x4000000L) != 0L)
955 else if ((active0 & 0x40000000000L) != 0L)
956 return jjStartNfaWithStates_1(3, 42, 14);
957 else if ((active0 & 0x100000000000000L) != 0L)
958 return jjStartNfaWithStates_1(3, 56, 14);
959 return jjMoveStringLiteralDfa4_1(active0, 0x8020800002000000L, active1, 0x204L);
962 return jjMoveStringLiteralDfa4_1(active0, 0x4000000000000000L, active1, 0L);
965 return jjMoveStringLiteralDfa4_1(active0, 0x2000002000000000L, active1, 0x2L);
968 if ((active0 & 0x8000000000000L) != 0L)
969 return jjStartNfaWithStates_1(3, 51, 14);
970 else if ((active1 & 0x8L) != 0L)
975 else if ((active1 & 0x20L) != 0L)
976 return jjStartNfaWithStates_1(3, 69, 14);
977 return jjMoveStringLiteralDfa4_1(active0, 0x400000500000000L, active1, 0x10L);
980 return jjMoveStringLiteralDfa4_1(active0, 0x40000000L, active1, 0L);
983 if ((active0 & 0x80000000L) != 0L)
984 return jjStartNfaWithStates_1(3, 31, 14);
985 else if ((active0 & 0x2000000000000L) != 0L)
986 return jjStartNfaWithStates_1(3, 49, 14);
990 if ((active0 & 0x80000000000000L) != 0L)
991 return jjStartNfaWithStates_1(3, 55, 14);
992 return jjMoveStringLiteralDfa4_1(active0, 0x1200080000200000L, active1, 0L);
995 if ((active0 & 0x20000000L) != 0L)
996 return jjStartNfaWithStates_1(3, 29, 14);
997 return jjMoveStringLiteralDfa4_1(active0, 0x40104000000000L, active1, 0L);
1000 return jjMoveStringLiteralDfa4_1(active0, 0x10000a00000000L, active1, 0L);
1003 return jjMoveStringLiteralDfa4_1(active0, 0x800000000000000L, active1, 0L);
1007 return jjStartNfa_1(2, active0, active1, 0L);
1009 static private final int jjMoveStringLiteralDfa4_1(long old0, long active0, long old1, long active1)
1011 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1012 return jjStartNfa_1(2, old0, old1, 0L);
1013 try { curChar = input_stream.readChar(); }
1014 catch(java.io.IOException e) {
1015 jjStopStringLiteralDfa_1(3, active0, active1, 0L);
1022 return jjMoveStringLiteralDfa5_1(active0, 0x8000001000000000L, active1, 0L);
1025 return jjMoveStringLiteralDfa5_1(active0, 0x40000000000000L, active1, 0x4L);
1028 if ((active0 & 0x200000000000000L) != 0L)
1029 return jjStartNfaWithStates_1(4, 57, 14);
1030 else if ((active0 & 0x400000000000000L) != 0L)
1031 return jjStartNfaWithStates_1(4, 58, 14);
1032 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x10L);
1035 if ((active0 & 0x2000000000000000L) != 0L)
1036 return jjStartNfaWithStates_1(4, 61, 14);
1040 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x200L);
1043 return jjMoveStringLiteralDfa5_1(active0, 0x800000000000000L, active1, 0L);
1046 return jjMoveStringLiteralDfa5_1(active0, 0x104a02000000L, active1, 0L);
1049 if ((active0 & 0x10000000L) != 0L)
1050 return jjStartNfaWithStates_1(4, 28, 14);
1054 return jjMoveStringLiteralDfa5_1(active0, 0L, active1, 0x40L);
1057 return jjMoveStringLiteralDfa5_1(active0, 0x802000000000L, active1, 0x2L);
1060 return jjMoveStringLiteralDfa5_1(active0, 0x4000000000000000L, active1, 0L);
1063 if ((active0 & 0x20000000000000L) != 0L)
1064 return jjStartNfaWithStates_1(4, 53, 14);
1065 return jjMoveStringLiteralDfa5_1(active0, 0x10000000000000L, active1, 0L);
1068 if ((active0 & 0x200000L) != 0L)
1069 return jjStartNfaWithStates_1(4, 21, 14);
1073 if ((active0 & 0x40000000L) != 0L)
1074 return jjStartNfaWithStates_1(4, 30, 14);
1075 else if ((active0 & 0x80000000000L) != 0L)
1076 return jjStartNfaWithStates_1(4, 43, 14);
1077 else if ((active1 & 0x80L) != 0L)
1078 return jjStartNfaWithStates_1(4, 71, 14);
1079 return jjMoveStringLiteralDfa5_1(active0, 0x400000L, active1, 0L);
1082 return jjMoveStringLiteralDfa5_1(active0, 0x200500000000L, active1, 0L);
1085 return jjMoveStringLiteralDfa5_1(active0, 0x1000000000000000L, active1, 0L);
1088 if ((active0 & 0x8000000L) != 0L)
1089 return jjStartNfaWithStates_1(4, 27, 14);
1094 return jjStartNfa_1(3, active0, active1, 0L);
1096 static private final int jjMoveStringLiteralDfa5_1(long old0, long active0, long old1, long active1)
1098 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1099 return jjStartNfa_1(3, old0, old1, 0L);
1100 try { curChar = input_stream.readChar(); }
1101 catch(java.io.IOException e) {
1102 jjStopStringLiteralDfa_1(4, active0, active1, 0L);
1109 return jjMoveStringLiteralDfa6_1(active0, 0L, active1, 0x10L);
1112 if ((active0 & 0x4000000000L) != 0L)
1113 return jjStartNfaWithStates_1(5, 38, 14);
1114 return jjMoveStringLiteralDfa6_1(active0, 0x8000000000000000L, active1, 0L);
1117 return jjMoveStringLiteralDfa6_1(active0, 0x800500000000L, active1, 0L);
1120 if ((active0 & 0x2000000000L) != 0L)
1121 return jjStartNfaWithStates_1(5, 37, 14);
1122 else if ((active1 & 0x40L) != 0L)
1123 return jjStartNfaWithStates_1(5, 70, 14);
1124 return jjMoveStringLiteralDfa6_1(active0, 0L, active1, 0x200L);
1127 if ((active0 & 0x2000000L) != 0L)
1128 return jjStartNfaWithStates_1(5, 25, 14);
1132 if ((active1 & 0x2L) != 0L)
1133 return jjStartNfaWithStates_1(5, 65, 14);
1137 if ((active0 & 0x40000000000000L) != 0L)
1138 return jjStartNfaWithStates_1(5, 54, 14);
1142 return jjMoveStringLiteralDfa6_1(active0, 0x1800000000400000L, active1, 0L);
1145 if ((active0 & 0x1000000000L) != 0L)
1146 return jjStartNfaWithStates_1(5, 36, 14);
1147 return jjMoveStringLiteralDfa6_1(active0, 0x200000000000L, active1, 0L);
1150 if ((active0 & 0x10000000000000L) != 0L)
1151 return jjStartNfaWithStates_1(5, 52, 14);
1152 return jjMoveStringLiteralDfa6_1(active0, 0x100000000000L, active1, 0L);
1155 if ((active0 & 0x4000000000000000L) != 0L)
1156 return jjStartNfaWithStates_1(5, 62, 14);
1157 return jjMoveStringLiteralDfa6_1(active0, 0xa00000000L, active1, 0L);
1160 if ((active1 & 0x4L) != 0L)
1161 return jjStartNfaWithStates_1(5, 66, 14);
1166 return jjStartNfa_1(4, active0, active1, 0L);
1168 static private final int jjMoveStringLiteralDfa6_1(long old0, long active0, long old1, long active1)
1170 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1171 return jjStartNfa_1(4, old0, old1, 0L);
1172 try { curChar = input_stream.readChar(); }
1173 catch(java.io.IOException e) {
1174 jjStopStringLiteralDfa_1(5, active0, active1, 0L);
1181 if ((active0 & 0x100000000L) != 0L)
1186 else if ((active0 & 0x200000000L) != 0L)
1191 return jjMoveStringLiteralDfa7_1(active0, 0xc00000000L, active1, 0L);
1194 if ((active0 & 0x8000000000000000L) != 0L)
1195 return jjStartNfaWithStates_1(6, 63, 14);
1199 return jjMoveStringLiteralDfa7_1(active0, 0x800000000000000L, active1, 0L);
1202 if ((active1 & 0x10L) != 0L)
1203 return jjStartNfaWithStates_1(6, 68, 14);
1207 return jjMoveStringLiteralDfa7_1(active0, 0x400000L, active1, 0L);
1210 if ((active1 & 0x200L) != 0L)
1211 return jjStartNfaWithStates_1(6, 73, 14);
1215 if ((active0 & 0x800000000000L) != 0L)
1216 return jjStartNfaWithStates_1(6, 47, 14);
1220 if ((active0 & 0x200000000000L) != 0L)
1221 return jjStartNfaWithStates_1(6, 45, 14);
1222 return jjMoveStringLiteralDfa7_1(active0, 0x1000000000000000L, active1, 0L);
1225 return jjMoveStringLiteralDfa7_1(active0, 0x100000000000L, active1, 0L);
1229 return jjStartNfa_1(5, active0, active1, 0L);
1231 static private final int jjMoveStringLiteralDfa7_1(long old0, long active0, long old1, long active1)
1233 if (((active0 &= old0) | (active1 &= old1)) == 0L)
1234 return jjStartNfa_1(5, old0, old1, 0L);
1235 try { curChar = input_stream.readChar(); }
1236 catch(java.io.IOException e) {
1237 jjStopStringLiteralDfa_1(6, active0, 0L, 0L);
1243 return jjMoveStringLiteralDfa8_1(active0, 0xc00000000L);
1246 return jjMoveStringLiteralDfa8_1(active0, 0x1000000000000000L);
1249 if ((active0 & 0x100000000000L) != 0L)
1250 return jjStartNfaWithStates_1(7, 44, 14);
1251 else if ((active0 & 0x800000000000000L) != 0L)
1252 return jjStartNfaWithStates_1(7, 59, 14);
1256 if ((active0 & 0x400000L) != 0L)
1257 return jjStartNfaWithStates_1(7, 22, 14);
1262 return jjStartNfa_1(6, active0, 0L, 0L);
1264 static private final int jjMoveStringLiteralDfa8_1(long old0, long active0)
1266 if (((active0 &= old0)) == 0L)
1267 return jjStartNfa_1(6, old0, 0L, 0L);
1268 try { curChar = input_stream.readChar(); }
1269 catch(java.io.IOException e) {
1270 jjStopStringLiteralDfa_1(7, active0, 0L, 0L);
1277 if ((active0 & 0x1000000000000000L) != 0L)
1278 return jjStartNfaWithStates_1(8, 60, 14);
1282 return jjMoveStringLiteralDfa9_1(active0, 0xc00000000L);
1286 return jjStartNfa_1(7, active0, 0L, 0L);
1288 static private final int jjMoveStringLiteralDfa9_1(long old0, long active0)
1290 if (((active0 &= old0)) == 0L)
1291 return jjStartNfa_1(7, old0, 0L, 0L);
1292 try { curChar = input_stream.readChar(); }
1293 catch(java.io.IOException e) {
1294 jjStopStringLiteralDfa_1(8, active0, 0L, 0L);
1301 return jjMoveStringLiteralDfa10_1(active0, 0xc00000000L);
1305 return jjStartNfa_1(8, active0, 0L, 0L);
1307 static private final int jjMoveStringLiteralDfa10_1(long old0, long active0)
1309 if (((active0 &= old0)) == 0L)
1310 return jjStartNfa_1(8, old0, 0L, 0L);
1311 try { curChar = input_stream.readChar(); }
1312 catch(java.io.IOException e) {
1313 jjStopStringLiteralDfa_1(9, active0, 0L, 0L);
1320 return jjMoveStringLiteralDfa11_1(active0, 0xc00000000L);
1324 return jjStartNfa_1(9, active0, 0L, 0L);
1326 static private final int jjMoveStringLiteralDfa11_1(long old0, long active0)
1328 if (((active0 &= old0)) == 0L)
1329 return jjStartNfa_1(9, old0, 0L, 0L);
1330 try { curChar = input_stream.readChar(); }
1331 catch(java.io.IOException e) {
1332 jjStopStringLiteralDfa_1(10, active0, 0L, 0L);
1339 if ((active0 & 0x400000000L) != 0L)
1340 return jjStartNfaWithStates_1(11, 34, 14);
1341 else if ((active0 & 0x800000000L) != 0L)
1342 return jjStartNfaWithStates_1(11, 35, 14);
1347 return jjStartNfa_1(10, active0, 0L, 0L);
1349 static final long[] jjbitVec0 = {
1350 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
1352 static private final int jjMoveNfa_1(int startState, int curPos)
1358 jjstateSet[0] = startState;
1359 int j, kind = 0x7fffffff;
1362 if (++jjround == 0x7fffffff)
1366 long l = 1L << curChar;
1369 switch(jjstateSet[--i])
1372 if ((0x3ff000000000000L & l) != 0L)
1373 jjCheckNAddStates(0, 6);
1374 else if (curChar == 39)
1375 jjCheckNAddStates(7, 12);
1376 else if (curChar == 34)
1377 jjCheckNAddStates(13, 18);
1378 else if (curChar == 36)
1379 jjstateSet[jjnewStateCnt++] = 16;
1380 else if (curChar == 46)
1382 else if (curChar == 47)
1383 jjstateSet[jjnewStateCnt++] = 2;
1384 if ((0x3fe000000000000L & l) != 0L)
1388 jjCheckNAddTwoStates(5, 6);
1390 else if (curChar == 48)
1394 jjCheckNAddStates(19, 21);
1399 jjstateSet[jjnewStateCnt++] = 1;
1402 if ((0xffff7fffffffffffL & l) != 0L && kind > 13)
1407 jjstateSet[jjnewStateCnt++] = 0;
1410 if ((0x3fe000000000000L & l) == 0L)
1414 jjCheckNAddTwoStates(5, 6);
1417 if ((0x3ff000000000000L & l) == 0L)
1421 jjCheckNAddTwoStates(5, 6);
1428 if ((0x3ff000000000000L & l) == 0L)
1432 jjCheckNAddStates(22, 24);
1435 if ((0x280000000000L & l) != 0L)
1439 if ((0x3ff000000000000L & l) == 0L)
1443 jjCheckNAddTwoStates(11, 12);
1446 if ((0x3ff000000000000L & l) == 0L)
1450 jjstateSet[jjnewStateCnt++] = 14;
1454 jjstateSet[jjnewStateCnt++] = 16;
1457 if ((0x3ff000000000000L & l) == 0L)
1461 jjstateSet[jjnewStateCnt++] = 17;
1464 if ((0x3ff000000000000L & l) != 0L)
1465 jjCheckNAddStates(0, 6);
1468 if ((0x3ff000000000000L & l) != 0L)
1469 jjCheckNAddTwoStates(19, 20);
1476 jjCheckNAddStates(25, 27);
1479 if ((0x3ff000000000000L & l) == 0L)
1483 jjCheckNAddStates(25, 27);
1486 if ((0x280000000000L & l) != 0L)
1490 if ((0x3ff000000000000L & l) == 0L)
1494 jjCheckNAddTwoStates(24, 12);
1497 if ((0x3ff000000000000L & l) != 0L)
1498 jjCheckNAddTwoStates(25, 26);
1501 if ((0x280000000000L & l) != 0L)
1505 if ((0x3ff000000000000L & l) == 0L)
1509 jjCheckNAddTwoStates(28, 12);
1512 if ((0x3ff000000000000L & l) != 0L)
1513 jjCheckNAddStates(28, 30);
1516 if ((0x280000000000L & l) != 0L)
1520 if ((0x3ff000000000000L & l) != 0L)
1521 jjCheckNAddTwoStates(32, 12);
1528 jjCheckNAddStates(19, 21);
1531 if ((0x3ff000000000000L & l) == 0L)
1535 jjCheckNAddTwoStates(35, 6);
1538 if ((0xff000000000000L & l) == 0L)
1542 jjCheckNAddTwoStates(36, 6);
1546 jjCheckNAddStates(13, 18);
1549 if ((0xfffffffbffffffffL & l) != 0L)
1550 jjCheckNAddStates(31, 33);
1553 jjCheckNAddStates(31, 33);
1556 if (curChar == 34 && kind > 103)
1560 if ((0xfffffffbffffffffL & l) != 0L)
1561 jjCheckNAddStates(34, 36);
1564 jjCheckNAddStates(34, 36);
1567 if (curChar == 34 && kind > 104)
1572 jjCheckNAddStates(7, 12);
1575 if ((0xffffff7fffffffffL & l) != 0L)
1576 jjCheckNAddStates(37, 39);
1579 jjCheckNAddStates(37, 39);
1582 if (curChar == 39 && kind > 103)
1586 if ((0xffffff7fffffffffL & l) != 0L)
1587 jjCheckNAddStates(40, 42);
1590 jjCheckNAddStates(40, 42);
1593 if (curChar == 39 && kind > 105)
1598 jjCheckNAddStates(43, 45);
1602 jjCheckNAddStates(46, 48);
1606 } while(i != startsAt);
1608 else if (curChar < 128)
1610 long l = 1L << (curChar & 077);
1613 switch(jjstateSet[--i])
1616 if ((0x87fffffe87fffffeL & l) != 0L)
1622 else if (curChar == 96)
1623 jjCheckNAddStates(49, 54);
1630 if ((0x100000001000L & l) != 0L && kind > 97)
1634 if ((0x2000000020L & l) != 0L)
1635 jjAddStates(55, 56);
1638 if ((0x5000000050L & l) != 0L && kind > 101)
1643 if ((0x87fffffe87fffffeL & l) == 0L)
1651 if ((0x87fffffe87fffffeL & l) == 0L)
1658 if ((0x2000000020L & l) != 0L)
1659 jjAddStates(57, 58);
1662 if ((0x2000000020L & l) != 0L)
1663 jjAddStates(59, 60);
1666 if ((0x2000000020L & l) != 0L)
1667 jjAddStates(61, 62);
1670 if ((0x100000001000000L & l) != 0L)
1674 if ((0x7e0000007eL & l) == 0L)
1678 jjCheckNAddTwoStates(35, 6);
1681 if ((0xffffffffefffffffL & l) != 0L)
1682 jjCheckNAddStates(31, 33);
1686 jjstateSet[jjnewStateCnt++] = 40;
1689 jjCheckNAddStates(31, 33);
1692 if ((0xffffffffefffffffL & l) != 0L)
1693 jjCheckNAddStates(34, 36);
1697 jjstateSet[jjnewStateCnt++] = 44;
1700 jjCheckNAddStates(34, 36);
1703 if ((0xffffffffefffffffL & l) != 0L)
1704 jjCheckNAddStates(37, 39);
1708 jjstateSet[jjnewStateCnt++] = 49;
1711 jjCheckNAddStates(37, 39);
1714 if ((0xffffffffefffffffL & l) != 0L)
1715 jjCheckNAddStates(40, 42);
1719 jjstateSet[jjnewStateCnt++] = 53;
1722 jjCheckNAddStates(40, 42);
1726 jjCheckNAddStates(49, 54);
1729 if ((0xfffffffeefffffffL & l) != 0L)
1730 jjCheckNAddStates(43, 45);
1734 jjstateSet[jjnewStateCnt++] = 58;
1737 jjCheckNAddStates(43, 45);
1740 if (curChar == 96 && kind > 103)
1744 if ((0xfffffffeefffffffL & l) != 0L)
1745 jjCheckNAddStates(46, 48);
1749 jjstateSet[jjnewStateCnt++] = 62;
1752 jjCheckNAddStates(46, 48);
1755 if (curChar == 96 && kind > 106)
1760 } while(i != startsAt);
1764 int i2 = (curChar & 0xff) >> 6;
1765 long l2 = 1L << (curChar & 077);
1768 switch(jjstateSet[--i])
1772 if ((jjbitVec0[i2] & l2) == 0L)
1779 if ((jjbitVec0[i2] & l2) != 0L && kind > 13)
1784 if ((jjbitVec0[i2] & l2) == 0L)
1792 if ((jjbitVec0[i2] & l2) != 0L)
1793 jjCheckNAddStates(31, 33);
1797 if ((jjbitVec0[i2] & l2) != 0L)
1798 jjCheckNAddStates(34, 36);
1802 if ((jjbitVec0[i2] & l2) != 0L)
1803 jjCheckNAddStates(37, 39);
1807 if ((jjbitVec0[i2] & l2) != 0L)
1808 jjCheckNAddStates(40, 42);
1812 if ((jjbitVec0[i2] & l2) != 0L)
1813 jjCheckNAddStates(43, 45);
1817 if ((jjbitVec0[i2] & l2) != 0L)
1818 jjCheckNAddStates(46, 48);
1822 } while(i != startsAt);
1824 if (kind != 0x7fffffff)
1826 jjmatchedKind = kind;
1827 jjmatchedPos = curPos;
1831 if ((i = jjnewStateCnt) == (startsAt = 64 - (jjnewStateCnt = startsAt)))
1833 try { curChar = input_stream.readChar(); }
1834 catch(java.io.IOException e) { return curPos; }
1837 static private final int jjMoveStringLiteralDfa0_3()
1842 return jjMoveStringLiteralDfa1_3(0x40000L);
1845 return jjMoveStringLiteralDfa1_3(0x20000L);
1850 static private final int jjMoveStringLiteralDfa1_3(long active0)
1852 try { curChar = input_stream.readChar(); }
1853 catch(java.io.IOException e) {
1859 if ((active0 & 0x40000L) != 0L)
1860 return jjStopAtPos(1, 18);
1864 return jjMoveStringLiteralDfa2_3(active0, 0x20000L);
1870 static private final int jjMoveStringLiteralDfa2_3(long old0, long active0)
1872 if (((active0 &= old0)) == 0L)
1874 try { curChar = input_stream.readChar(); }
1875 catch(java.io.IOException e) {
1882 return jjMoveStringLiteralDfa3_3(active0, 0x20000L);
1887 static private final int jjMoveStringLiteralDfa3_3(long old0, long active0)
1889 if (((active0 &= old0)) == 0L)
1891 try { curChar = input_stream.readChar(); }
1892 catch(java.io.IOException e) {
1899 if ((active0 & 0x20000L) != 0L)
1900 return jjStopAtPos(3, 17);
1907 static final int[] jjnextStates = {
1908 19, 20, 25, 26, 29, 30, 12, 47, 48, 50, 51, 52, 54, 38, 39, 41,
1909 42, 43, 45, 34, 36, 6, 8, 9, 12, 21, 22, 12, 29, 30, 12, 38,
1910 39, 41, 42, 43, 45, 47, 48, 50, 51, 52, 54, 56, 57, 59, 60, 61,
1911 63, 56, 57, 59, 60, 61, 63, 10, 11, 23, 24, 27, 28, 31, 32,
1913 public static final String[] jjstrLiteralImages = {
1914 "", "\74\77", null, "\74\77\75", "\77\76", null, null, null, null, null, null,
1915 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1916 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1917 "\55\76", "\72\72", "\75\76", null, null, null, null, null, null, null, null, null, null,
1918 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1919 null, null, null, null, null, null, null, null, "\100", "\44", "\41", "\176", "\77",
1920 "\72", "\174\174", "\46\46", "\53\53", "\55\55", "\53", "\55", "\52", "\57", "\46",
1921 "\174", "\136", "\45", "\74\74", "\76\76", "\76\76\76", null, null, null, null, null,
1922 null, null, null, null, null, null, null, null, null, null, null, "\50", "\51",
1923 "\173", "\175", "\133", "\135", "\73", "\54", "\56", "\76", "\74", "\75\75", "\74\75",
1924 "\76\75", "\41\75", "\74\76", "\41\75\75", "\75\75\75", "\75", "\53\75", "\55\75",
1925 "\52\75", "\57\75", "\46\75", "\174\75", "\136\75", "\56\75", "\45\75", "\176\75",
1926 "\74\74\75", "\76\76\75", null, };
1927 public static final String[] lexStateNames = {
1930 "IN_SINGLE_LINE_COMMENT",
1931 "IN_FORMAL_COMMENT",
1932 "IN_MULTI_LINE_COMMENT",
1934 public static final int[] jjnewLexState = {
1935 -1, 1, 1, 1, 0, -1, -1, -1, -1, -1, -1, 2, 2, 3, 4, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1,
1936 -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,
1937 -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,
1938 -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,
1939 -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,
1940 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1942 static final long[] jjtoToken = {
1943 0xffffffffffe0001fL, 0xffff8fa3ffffffffL, 0x7fffL,
1945 static final long[] jjtoSkip = {
1946 0xfffe0L, 0x0L, 0x0L,
1948 static final long[] jjtoSpecial = {
1949 0xff800L, 0x0L, 0x0L,
1951 static final long[] jjtoMore = {
1952 0x100000L, 0x0L, 0x0L,
1954 static protected SimpleCharStream input_stream;
1955 static private final int[] jjrounds = new int[64];
1956 static private final int[] jjstateSet = new int[128];
1957 static StringBuffer image;
1958 static int jjimageLen;
1959 static int lengthOfMatch;
1960 static protected char curChar;
1961 public PHPParserTokenManager(SimpleCharStream stream)
1963 if (input_stream != null)
1964 throw new TokenMgrError("ERROR: Second call to constructor of static lexer. You must use ReInit() to initialize the static variables.", TokenMgrError.STATIC_LEXER_ERROR);
1965 input_stream = stream;
1967 public PHPParserTokenManager(SimpleCharStream stream, int lexState)
1972 static public void ReInit(SimpleCharStream stream)
1974 jjmatchedPos = jjnewStateCnt = 0;
1975 curLexState = defaultLexState;
1976 input_stream = stream;
1979 static private final void ReInitRounds()
1982 jjround = 0x80000001;
1983 for (i = 64; i-- > 0;)
1984 jjrounds[i] = 0x80000000;
1986 static public void ReInit(SimpleCharStream stream, int lexState)
1991 static public void SwitchTo(int lexState)
1993 if (lexState >= 5 || lexState < 0)
1994 throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
1996 curLexState = lexState;
1999 static protected Token jjFillToken()
2001 Token t = Token.newToken(jjmatchedKind);
2002 t.kind = jjmatchedKind;
2003 String im = jjstrLiteralImages[jjmatchedKind];
2004 t.image = (im == null) ? input_stream.GetImage() : im;
2005 t.beginLine = input_stream.getBeginLine();
2006 t.beginColumn = input_stream.getBeginColumn();
2007 t.endLine = input_stream.getEndLine();
2008 t.endColumn = input_stream.getEndColumn();
2012 static int curLexState = 0;
2013 static int defaultLexState = 0;
2014 static int jjnewStateCnt;
2016 static int jjmatchedPos;
2017 static int jjmatchedKind;
2019 public static Token getNextToken()
2022 Token specialToken = null;
2031 curChar = input_stream.BeginToken();
2033 catch(java.io.IOException e)
2036 matchedToken = jjFillToken();
2037 matchedToken.specialToken = specialToken;
2038 CommonTokenAction(matchedToken);
2039 return matchedToken;
2049 jjmatchedKind = 0x7fffffff;
2051 curPos = jjMoveStringLiteralDfa0_0();
2052 if (jjmatchedPos == 0 && jjmatchedKind > 5)
2058 try { input_stream.backup(0);
2059 while (curChar <= 32 && (0x100003600L & (1L << curChar)) != 0L)
2060 curChar = input_stream.BeginToken();
2062 catch (java.io.IOException e1) { continue EOFLoop; }
2063 jjmatchedKind = 0x7fffffff;
2065 curPos = jjMoveStringLiteralDfa0_1();
2068 jjmatchedKind = 0x7fffffff;
2070 curPos = jjMoveStringLiteralDfa0_2();
2071 if (jjmatchedPos == 0 && jjmatchedKind > 16)
2077 jjmatchedKind = 0x7fffffff;
2079 curPos = jjMoveStringLiteralDfa0_3();
2080 if (jjmatchedPos == 0 && jjmatchedKind > 20)
2086 jjmatchedKind = 0x7fffffff;
2088 curPos = jjMoveStringLiteralDfa0_4();
2089 if (jjmatchedPos == 0 && jjmatchedKind > 20)
2095 if (jjmatchedKind != 0x7fffffff)
2097 if (jjmatchedPos + 1 < curPos)
2098 input_stream.backup(curPos - jjmatchedPos - 1);
2099 if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
2101 matchedToken = jjFillToken();
2102 matchedToken.specialToken = specialToken;
2103 TokenLexicalActions(matchedToken);
2104 if (jjnewLexState[jjmatchedKind] != -1)
2105 curLexState = jjnewLexState[jjmatchedKind];
2106 CommonTokenAction(matchedToken);
2107 return matchedToken;
2109 else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
2111 if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
2113 matchedToken = jjFillToken();
2114 if (specialToken == null)
2115 specialToken = matchedToken;
2118 matchedToken.specialToken = specialToken;
2119 specialToken = (specialToken.next = matchedToken);
2121 SkipLexicalActions(matchedToken);
2124 SkipLexicalActions(null);
2125 if (jjnewLexState[jjmatchedKind] != -1)
2126 curLexState = jjnewLexState[jjmatchedKind];
2129 jjimageLen += jjmatchedPos + 1;
2130 if (jjnewLexState[jjmatchedKind] != -1)
2131 curLexState = jjnewLexState[jjmatchedKind];
2133 jjmatchedKind = 0x7fffffff;
2135 curChar = input_stream.readChar();
2138 catch (java.io.IOException e1) { }
2140 int error_line = input_stream.getEndLine();
2141 int error_column = input_stream.getEndColumn();
2142 String error_after = null;
2143 boolean EOFSeen = false;
2144 try { input_stream.readChar(); input_stream.backup(1); }
2145 catch (java.io.IOException e1) {
2147 error_after = curPos <= 1 ? "" : input_stream.GetImage();
2148 if (curChar == '\n' || curChar == '\r') {
2156 input_stream.backup(1);
2157 error_after = curPos <= 1 ? "" : input_stream.GetImage();
2159 throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
2164 static void SkipLexicalActions(Token matchedToken)
2166 switch(jjmatchedKind)
2170 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2172 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2173 input_stream.backup(1);
2177 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2179 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2180 PHPParser.createNewTask();
2186 static void TokenLexicalActions(Token matchedToken)
2188 switch(jjmatchedKind)
2192 image = new StringBuffer(jjstrLiteralImages[1]);
2194 image.append(jjstrLiteralImages[1]);
2195 PHPParser.createNewHTMLCode();
2199 image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2201 image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));
2202 PHPParser.createNewHTMLCode();
2206 image = new StringBuffer(jjstrLiteralImages[3]);
2208 image.append(jjstrLiteralImages[3]);
2209 PHPParser.createNewHTMLCode();
2213 image = new StringBuffer(jjstrLiteralImages[4]);
2215 image.append(jjstrLiteralImages[4]);
2216 PHPParser.htmlStart = PHPParser.token.sourceEnd;