Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.fuwjax.oss.expression.WontonExpressionParserTokenManager Maven / Gradle / Ivy
/* Generated By:JavaCC: Do not edit this line. WontonExpressionParserTokenManager.java */
package org.fuwjax.oss.expression;
/** Token Manager. */
public class WontonExpressionParserTokenManager implements WontonExpressionParserConstants
{
/** Debug output. */
public java.io.PrintStream debugStream = System.out;
/** Set debug output. */
public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
private final int jjStopStringLiteralDfa_0(int pos, long active0)
{
switch (pos)
{
case 0:
if ((active0 & 0xeL) != 0L)
{
jjmatchedKind = 8;
return 8;
}
if ((active0 & 0x10000L) != 0L)
return 1;
return -1;
case 1:
if ((active0 & 0xeL) != 0L)
{
jjmatchedKind = 8;
jjmatchedPos = 1;
return 8;
}
return -1;
case 2:
if ((active0 & 0xeL) != 0L)
{
jjmatchedKind = 8;
jjmatchedPos = 2;
return 8;
}
return -1;
case 3:
if ((active0 & 0x4L) != 0L)
{
jjmatchedKind = 8;
jjmatchedPos = 3;
return 8;
}
if ((active0 & 0xaL) != 0L)
return 8;
return -1;
default :
return -1;
}
}
private final int jjStartNfa_0(int pos, long active0)
{
return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1);
}
private int jjStopAtPos(int pos, int kind)
{
jjmatchedKind = kind;
jjmatchedPos = pos;
return pos + 1;
}
private int jjMoveStringLiteralDfa0_0()
{
switch(curChar)
{
case 33:
jjmatchedKind = 27;
return jjMoveStringLiteralDfa1_0(0x400000L);
case 37:
return jjStopAtPos(0, 32);
case 38:
return jjMoveStringLiteralDfa1_0(0x100000L);
case 40:
return jjStopAtPos(0, 11);
case 41:
return jjStopAtPos(0, 12);
case 42:
return jjStopAtPos(0, 30);
case 43:
return jjStopAtPos(0, 28);
case 44:
return jjStopAtPos(0, 15);
case 45:
return jjStopAtPos(0, 29);
case 46:
return jjStartNfaWithStates_0(0, 16, 1);
case 47:
return jjStopAtPos(0, 31);
case 58:
return jjStopAtPos(0, 18);
case 60:
jjmatchedKind = 23;
return jjMoveStringLiteralDfa1_0(0x2000000L);
case 61:
return jjMoveStringLiteralDfa1_0(0x200000L);
case 62:
jjmatchedKind = 24;
return jjMoveStringLiteralDfa1_0(0x4000000L);
case 63:
return jjStopAtPos(0, 17);
case 91:
return jjStopAtPos(0, 13);
case 93:
return jjStopAtPos(0, 14);
case 102:
return jjMoveStringLiteralDfa1_0(0x4L);
case 110:
return jjMoveStringLiteralDfa1_0(0x8L);
case 116:
return jjMoveStringLiteralDfa1_0(0x2L);
case 124:
return jjMoveStringLiteralDfa1_0(0x80000L);
default :
return jjMoveNfa_0(0, 0);
}
}
private int jjMoveStringLiteralDfa1_0(long active0)
{
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(0, active0);
return 1;
}
switch(curChar)
{
case 38:
if ((active0 & 0x100000L) != 0L)
return jjStopAtPos(1, 20);
break;
case 61:
if ((active0 & 0x200000L) != 0L)
return jjStopAtPos(1, 21);
else if ((active0 & 0x400000L) != 0L)
return jjStopAtPos(1, 22);
else if ((active0 & 0x2000000L) != 0L)
return jjStopAtPos(1, 25);
else if ((active0 & 0x4000000L) != 0L)
return jjStopAtPos(1, 26);
break;
case 97:
return jjMoveStringLiteralDfa2_0(active0, 0x4L);
case 114:
return jjMoveStringLiteralDfa2_0(active0, 0x2L);
case 117:
return jjMoveStringLiteralDfa2_0(active0, 0x8L);
case 124:
if ((active0 & 0x80000L) != 0L)
return jjStopAtPos(1, 19);
break;
default :
break;
}
return jjStartNfa_0(0, active0);
}
private int jjMoveStringLiteralDfa2_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjStartNfa_0(0, old0);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(1, active0);
return 2;
}
switch(curChar)
{
case 108:
return jjMoveStringLiteralDfa3_0(active0, 0xcL);
case 117:
return jjMoveStringLiteralDfa3_0(active0, 0x2L);
default :
break;
}
return jjStartNfa_0(1, active0);
}
private int jjMoveStringLiteralDfa3_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjStartNfa_0(1, old0);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(2, active0);
return 3;
}
switch(curChar)
{
case 101:
if ((active0 & 0x2L) != 0L)
return jjStartNfaWithStates_0(3, 1, 8);
break;
case 108:
if ((active0 & 0x8L) != 0L)
return jjStartNfaWithStates_0(3, 3, 8);
break;
case 115:
return jjMoveStringLiteralDfa4_0(active0, 0x4L);
default :
break;
}
return jjStartNfa_0(2, active0);
}
private int jjMoveStringLiteralDfa4_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjStartNfa_0(2, old0);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(3, active0);
return 4;
}
switch(curChar)
{
case 101:
if ((active0 & 0x4L) != 0L)
return jjStartNfaWithStates_0(4, 2, 8);
break;
default :
break;
}
return jjStartNfa_0(3, active0);
}
private int jjStartNfaWithStates_0(int pos, int kind, int state)
{
jjmatchedKind = kind;
jjmatchedPos = pos;
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) { return pos + 1; }
return jjMoveNfa_0(state, pos + 1);
}
static final long[] jjbitVec0 = {
0xfff0000040220002L, 0xffffffffffffdfffL, 0xfffff02f7fffffffL, 0x12000000007fffffL
};
static final long[] jjbitVec2 = {
0x0L, 0x0L, 0x420043c00000000L, 0xff7fffffff7fffffL
};
static final long[] jjbitVec3 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0x501f0003ffc3L
};
static final long[] jjbitVec4 = {
0x0L, 0x3cdf000000000000L, 0xfffffffbffffd740L, 0xffbfffffffffffffL
};
static final long[] jjbitVec5 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0xfffffffffffffc03L, 0xffffffffffffffffL
};
static final long[] jjbitVec6 = {
0xfffe00ffffffffffL, 0xfffffffe027fffffL, 0x80ffL, 0x707ffffff0000L
};
static final long[] jjbitVec7 = {
0xffffffff00000800L, 0xfffec000000007ffL, 0xffffffffffffffffL, 0x9c00c060002fffffL
};
static final long[] jjbitVec8 = {
0xfffffffd0000L, 0xffffffffffffe000L, 0x2003fffffffffL, 0x43007fffffffc00L
};
static final long[] jjbitVec9 = {
0x110043fffffL, 0x1ffffffL, 0x1ffd00000000L, 0x0L
};
static final long[] jjbitVec10 = {
0x23fffffffffffff0L, 0xfefe0003ff010000L, 0x23c5fdfffff99fe0L, 0x80f0003b0004000L
};
static final long[] jjbitVec11 = {
0x36dfdfffff987e0L, 0x1c00005e000000L, 0x23edfdfffffbbfe0L, 0x2000300010000L
};
static final long[] jjbitVec12 = {
0x23edfdfffff99fe0L, 0x20003b0000000L, 0x3ffc718d63dc7e8L, 0x200000000010000L
};
static final long[] jjbitVec13 = {
0x23effdfffffddfe0L, 0x303000000L, 0x23effdfffffddfe0L, 0x6000340000000L
};
static final long[] jjbitVec14 = {
0x27fffffffffddfe0L, 0xfc00000300004000L, 0x2ffbfffffc7fffe0L, 0x7fL
};
static final long[] jjbitVec15 = {
0x800dfffffffffffeL, 0x7fL, 0x200decaefef02596L, 0xf000005fL
};
static final long[] jjbitVec16 = {
0x1L, 0x1ffffffffeffL, 0x1f00L, 0x0L
};
static final long[] jjbitVec17 = {
0x800007ffffffffffL, 0xffe1c0623c3f0000L, 0xffffffff00004003L, 0xf7ffffffffff20bfL
};
static final long[] jjbitVec18 = {
0xffffffffffffffffL, 0xffffffff3d7f3dffL, 0x7f3dffffffff3dffL, 0xffffffffff7fff3dL
};
static final long[] jjbitVec19 = {
0xffffffffff3dffffL, 0x7ffffffL, 0xffffffff0000ffffL, 0x1fffffffffffffL
};
static final long[] jjbitVec20 = {
0xfffffffffffffffeL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL
};
static final long[] jjbitVec21 = {
0xffffffffffffffffL, 0xffff9fffffffffffL, 0xffffffff07fffffeL, 0x1c7ffffffffffL
};
static final long[] jjbitVec22 = {
0x3ffff0003dfffL, 0x1dfff0003ffffL, 0xfffffffffffffL, 0x18800000L
};
static final long[] jjbitVec23 = {
0xffffffff00000000L, 0xffffffffffffffL, 0xffff05ffffffffffL, 0x3fffffffffffffL
};
static final long[] jjbitVec24 = {
0x1fffffffL, 0x1f3fffffff0000L, 0xfffffffffffL, 0xfeL
};
static final long[] jjbitVec25 = {
0xffffffff007fffffL, 0x1fffffL, 0x8000000000L, 0x0L
};
static final long[] jjbitVec26 = {
0xfffffffffffe0L, 0xfe0L, 0xfc00c001fffffff8L, 0x3fffffffffL
};
static final long[] jjbitVec27 = {
0xfffffffffL, 0x3ffffffffc00e000L, 0x0L, 0x63de0000000000L
};
static final long[] jjbitVec28 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0x0L
};
static final long[] jjbitVec29 = {
0xffffffff3f3fffffL, 0x3fffffffaaff3f3fL, 0x5fdfffffffffffffL, 0x1fdc1fff0fcf1fdcL
};
static final long[] jjbitVec30 = {
0x8000000000000000L, 0x8002000000100001L, 0x7ffffff1fff0000L, 0x0L
};
static final long[] jjbitVec31 = {
0xf3ffbd503e2ffc84L, 0xffffffff000043e0L, 0x1ffL, 0x0L
};
static final long[] jjbitVec32 = {
0xffff7fffffffffffL, 0xffffffff7fffffffL, 0xffffffffffffffffL, 0xc781fffffffffL
};
static final long[] jjbitVec33 = {
0xffff20bfffffffffL, 0x80ffffffffffL, 0x7f7f7f7f007fffffL, 0x7f7f7f7fL
};
static final long[] jjbitVec34 = {
0x800000000000L, 0x0L, 0x0L, 0x0L
};
static final long[] jjbitVec35 = {
0x1f3e03fe000000e0L, 0xfffffffffffffffeL, 0xfffffffee07fffffL, 0xf7ffffffffffffffL
};
static final long[] jjbitVec36 = {
0xfffe3fffffffffe0L, 0xffffffffffffffffL, 0x7ffffff00007fffL, 0xffff000000000000L
};
static final long[] jjbitVec37 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0x3fffffffffffffL, 0x0L
};
static final long[] jjbitVec38 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0x1fffL
};
static final long[] jjbitVec39 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0x1fffL, 0x3fffffffffff0000L
};
static final long[] jjbitVec40 = {
0xc00ffff1fffL, 0x80007fffffffffffL, 0xffffffff00ffffffL, 0xffffffffffffL
};
static final long[] jjbitVec41 = {
0xfffffffcff800000L, 0xffffffffffffffffL, 0x7ff000f79ffL, 0xff00000000000000L
};
static final long[] jjbitVec42 = {
0x1000007fffff7bbL, 0xfffffffffffffL, 0xffffffffffffcL, 0x8fc000000000000L
};
static final long[] jjbitVec43 = {
0xffff003ffffffc00L, 0x1fffffff0000007fL, 0x7fffffffffff0L, 0x8000L
};
static final long[] jjbitVec44 = {
0x1ffffffffffL, 0x47fffff00000ff7L, 0x3e62ffffffffffffL, 0x1c07ff38000005L
};
static final long[] jjbitVec45 = {
0x7f7f007e7e7eL, 0x0L, 0x0L, 0x7ffffffffL
};
static final long[] jjbitVec46 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0xffff000fffffffffL, 0xffffffffffff87fL
};
static final long[] jjbitVec47 = {
0xffffffffffffffffL, 0xffff3fffffffffffL, 0xffffffffffffffffL, 0x3ffffffL
};
static final long[] jjbitVec48 = {
0x5f7ffdffa0f8007fL, 0xffffffffffffffdbL, 0x3ffffffffffffL, 0xfffffffffff80000L
};
static final long[] jjbitVec49 = {
0x3fffffffffffffffL, 0xffffffffffff0000L, 0xfffffffffffcffffL, 0x1fff0000000000ffL
};
static final long[] jjbitVec50 = {
0x18000000000000L, 0xffdf02000000e000L, 0xffffffffffffffffL, 0x1fffffffffffffffL
};
static final long[] jjbitVec51 = {
0x87fffffe00000010L, 0xffffffc007fffffeL, 0x7fffffffffffffffL, 0x631cfcfcfcL
};
static final long[] jjbitVec52 = {
0xffffffffffffffffL, 0x3cdfffffffffffffL, 0xfffffffbffffd740L, 0xffbfffffffffffffL
};
static final long[] jjbitVec53 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0xfffffffffffffcfbL, 0xffffffffffffffffL
};
static final long[] jjbitVec54 = {
0xfffe00ffffffffffL, 0xfffffffe027fffffL, 0xbffffffffffe80ffL, 0x707ffffff00b6L
};
static final long[] jjbitVec55 = {
0xffffffff07ff0800L, 0xffffc3ffffffffffL, 0xffffffffffffffffL, 0x9ffffdff9fefffffL
};
static final long[] jjbitVec56 = {
0xffffffffffff0000L, 0xffffffffffffe7ffL, 0x3ffffffffffffL, 0x43fffffffffffffL
};
static final long[] jjbitVec57 = {
0x3fffffffffffL, 0xfffffffL, 0x1ffd00000000L, 0x7ffffff000000000L
};
static final long[] jjbitVec58 = {
0xffffffffffffffffL, 0xfefeffcfffffffffL, 0xf3c5fdfffff99feeL, 0x80fffcfb080799fL
};
static final long[] jjbitVec59 = {
0xd36dfdfffff987eeL, 0x3fffc05e023987L, 0xf3edfdfffffbbfeeL, 0x2ffcf00013bbfL
};
static final long[] jjbitVec60 = {
0xf3edfdfffff99feeL, 0x2ffcfb0c0399fL, 0xc3ffc718d63dc7ecL, 0x200ffc000813dc7L
};
static final long[] jjbitVec61 = {
0xe3effdfffffddfeeL, 0xffcf03603ddfL, 0xf3effdfffffddfecL, 0x6ffcf40603ddfL
};
static final long[] jjbitVec62 = {
0xe7fffffffffddfecL, 0xfc00ffcf00807ddfL, 0x2ffbfffffc7fffecL, 0xc0000ff5f847fL
};
static final long[] jjbitVec63 = {
0x87fffffffffffffeL, 0x3ff7fffL, 0x3bffecaefef02596L, 0xf3ff3f5fL
};
static final long[] jjbitVec64 = {
0xc2a003ff03000001L, 0xfffe1ffffffffeffL, 0x1ffffffffeffffdfL, 0x40L
};
static final long[] jjbitVec65 = {
0xffffffffffffffffL, 0xffffffffffff03ffL, 0xffffffff3fffffffL, 0xf7ffffffffff20bfL
};
static final long[] jjbitVec66 = {
0xffffffffff3dffffL, 0xe7ffffffL, 0xffffffff0000ffffL, 0x1fffffffffffffL
};
static final long[] jjbitVec67 = {
0x1fffff001fdfffL, 0xddfff000fffffL, 0xffffffffffffffffL, 0x3ff388fffffL
};
static final long[] jjbitVec68 = {
0xffffffff03ff3800L, 0xffffffffffffffL, 0xffff07ffffffffffL, 0x3fffffffffffffL
};
static final long[] jjbitVec69 = {
0xfff0fff1fffffffL, 0x1f3fffffffffc0L, 0xffff0fffffffffffL, 0x3ff03ffL
};
static final long[] jjbitVec70 = {
0xffffffff0fffffffL, 0x9fffffff7fffffffL, 0x8003ff03ffL, 0x0L
};
static final long[] jjbitVec71 = {
0xffffffffffffffffL, 0xff80003ff0fffL, 0xffffffffffffffffL, 0xfffffffffffffL
};
static final long[] jjbitVec72 = {
0xffffffffffffffL, 0x3fffffffffffe3ffL, 0x0L, 0x7ffffffff70000L
};
static final long[] jjbitVec73 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xf000007fffffffffL
};
static final long[] jjbitVec74 = {
0x8000000000000000L, 0x8002000000100001L, 0x7ffffff1fff0000L, 0x1ffe21fff0000L
};
static final long[] jjbitVec75 = {
0xffff7fffffffffffL, 0xffffffff7fffffffL, 0xffffffffffffffffL, 0xff81fffffffffL
};
static final long[] jjbitVec76 = {
0xffff20bfffffffffL, 0x800080ffffffffffL, 0x7f7f7f7f007fffffL, 0xffffffff7f7f7f7fL
};
static final long[] jjbitVec77 = {
0x1f3efffe000000e0L, 0xfffffffffffffffeL, 0xfffffffee67fffffL, 0xf7ffffffffffffffL
};
static final long[] jjbitVec78 = {
0xfffffff1fffL, 0xbff0ffffffffffffL, 0xffffffff80ffffffL, 0x3ffffffffffffL
};
static final long[] jjbitVec79 = {
0x10000ffffffffffL, 0xfffffffffffffL, 0xffffffffffffffffL, 0x8ffffff03ff001fL
};
static final long[] jjbitVec80 = {
0xffff3fffffffffffL, 0x1fffffff000fffffL, 0xffffffffffffffffL, 0x3ff8001L
};
static final long[] jjbitVec81 = {
0x7fffffffffffffL, 0xc7fffff03ff3fffL, 0xffffffffffffffffL, 0x7cffff38000007L
};
static final long[] jjbitVec82 = {
0x7f7f007e7e7eL, 0x0L, 0x0L, 0x3ff37ffffffffffL
};
static final long[] jjbitVec83 = {
0x5f7ffdffe0f8007fL, 0xffffffffffffffdbL, 0x3ffffffffffffL, 0xfffffffffff80000L
};
static final long[] jjbitVec84 = {
0x18007f0000ffffL, 0xffdf02000000e000L, 0xffffffffffffffffL, 0x1fffffffffffffffL
};
static final long[] jjbitVec85 = {
0x87fffffe03ff0010L, 0xffffffc007fffffeL, 0x7fffffffffffffffL, 0x631cfcfcfcL
};
private int jjMoveNfa_0(int startState, int curPos)
{
int startsAt = 0;
jjnewStateCnt = 19;
int i = 1;
jjstateSet[0] = startState;
int kind = 0x7fffffff;
for (;;)
{
if (++jjround == 0x7fffffff)
ReInitRounds();
if (curChar < 64)
{
long l = 1L << curChar;
do
{
switch(jjstateSet[--i])
{
case 0:
if ((0x3fe000000000000L & l) != 0L)
{
if (kind > 4)
kind = 4;
jjCheckNAddStates(0, 3);
}
else if (curChar == 48)
{
if (kind > 4)
kind = 4;
jjCheckNAddTwoStates(10, 12);
}
else if (curChar == 36)
{
if (kind > 8)
kind = 8;
jjCheckNAdd(8);
}
else if (curChar == 46)
jjCheckNAdd(1);
break;
case 1:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 4)
kind = 4;
jjCheckNAddTwoStates(1, 2);
break;
case 3:
if ((0x280000000000L & l) != 0L)
jjCheckNAddTwoStates(4, 5);
break;
case 4:
if (curChar == 48 && kind > 4)
kind = 4;
break;
case 5:
if ((0x3fe000000000000L & l) == 0L)
break;
if (kind > 4)
kind = 4;
jjCheckNAdd(6);
break;
case 6:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 4)
kind = 4;
jjCheckNAdd(6);
break;
case 7:
if (curChar != 36)
break;
if (kind > 8)
kind = 8;
jjCheckNAdd(8);
break;
case 8:
if ((0x3ff001000000000L & l) == 0L)
break;
if (kind > 8)
kind = 8;
jjCheckNAdd(8);
break;
case 9:
if (curChar != 48)
break;
if (kind > 4)
kind = 4;
jjCheckNAddTwoStates(10, 12);
break;
case 10:
if (curChar != 46)
break;
if (kind > 4)
kind = 4;
jjCheckNAddTwoStates(11, 12);
break;
case 11:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 4)
kind = 4;
jjCheckNAddTwoStates(11, 12);
break;
case 13:
if ((0x280000000000L & l) != 0L)
jjCheckNAddTwoStates(4, 14);
break;
case 14:
if ((0x3fe000000000000L & l) == 0L)
break;
if (kind > 4)
kind = 4;
jjCheckNAdd(15);
break;
case 15:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 4)
kind = 4;
jjCheckNAdd(15);
break;
case 16:
if ((0x3fe000000000000L & l) == 0L)
break;
if (kind > 4)
kind = 4;
jjCheckNAddStates(0, 3);
break;
case 17:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 4)
kind = 4;
jjCheckNAddStates(4, 6);
break;
case 18:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 5)
kind = 5;
jjCheckNAdd(18);
break;
default : break;
}
} while(i != startsAt);
}
else if (curChar < 128)
{
long l = 1L << (curChar & 077);
do
{
switch(jjstateSet[--i])
{
case 0:
case 8:
if ((0x7fffffe87fffffeL & l) == 0L)
break;
if (kind > 8)
kind = 8;
jjCheckNAdd(8);
break;
case 2:
if ((0x2000000020L & l) != 0L)
jjCheckNAddStates(7, 9);
break;
case 12:
if ((0x2000000020L & l) != 0L)
jjCheckNAddStates(10, 12);
break;
default : break;
}
} while(i != startsAt);
}
else
{
int hiByte = (int)(curChar >> 8);
int i1 = hiByte >> 6;
long l1 = 1L << (hiByte & 077);
int i2 = (curChar & 0xff) >> 6;
long l2 = 1L << (curChar & 077);
do
{
switch(jjstateSet[--i])
{
case 0:
if (!jjCanMove_0(hiByte, i1, i2, l1, l2))
break;
if (kind > 8)
kind = 8;
jjCheckNAdd(8);
break;
case 8:
if (!jjCanMove_1(hiByte, i1, i2, l1, l2))
break;
if (kind > 8)
kind = 8;
jjCheckNAdd(8);
break;
default : break;
}
} while(i != startsAt);
}
if (kind != 0x7fffffff)
{
jjmatchedKind = kind;
jjmatchedPos = curPos;
kind = 0x7fffffff;
}
++curPos;
if ((i = jjnewStateCnt) == (startsAt = 19 - (jjnewStateCnt = startsAt)))
return curPos;
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) { return curPos; }
}
}
static final int[] jjnextStates = {
17, 10, 12, 18, 17, 10, 12, 3, 4, 5, 13, 4, 14,
};
private static final boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2)
{
switch(hiByte)
{
case 0:
return ((jjbitVec2[i2] & l2) != 0L);
case 2:
return ((jjbitVec3[i2] & l2) != 0L);
case 3:
return ((jjbitVec4[i2] & l2) != 0L);
case 4:
return ((jjbitVec5[i2] & l2) != 0L);
case 5:
return ((jjbitVec6[i2] & l2) != 0L);
case 6:
return ((jjbitVec7[i2] & l2) != 0L);
case 7:
return ((jjbitVec8[i2] & l2) != 0L);
case 8:
return ((jjbitVec9[i2] & l2) != 0L);
case 9:
return ((jjbitVec10[i2] & l2) != 0L);
case 10:
return ((jjbitVec11[i2] & l2) != 0L);
case 11:
return ((jjbitVec12[i2] & l2) != 0L);
case 12:
return ((jjbitVec13[i2] & l2) != 0L);
case 13:
return ((jjbitVec14[i2] & l2) != 0L);
case 14:
return ((jjbitVec15[i2] & l2) != 0L);
case 15:
return ((jjbitVec16[i2] & l2) != 0L);
case 16:
return ((jjbitVec17[i2] & l2) != 0L);
case 18:
return ((jjbitVec18[i2] & l2) != 0L);
case 19:
return ((jjbitVec19[i2] & l2) != 0L);
case 20:
return ((jjbitVec20[i2] & l2) != 0L);
case 22:
return ((jjbitVec21[i2] & l2) != 0L);
case 23:
return ((jjbitVec22[i2] & l2) != 0L);
case 24:
return ((jjbitVec23[i2] & l2) != 0L);
case 25:
return ((jjbitVec24[i2] & l2) != 0L);
case 26:
return ((jjbitVec25[i2] & l2) != 0L);
case 27:
return ((jjbitVec26[i2] & l2) != 0L);
case 28:
return ((jjbitVec27[i2] & l2) != 0L);
case 29:
return ((jjbitVec28[i2] & l2) != 0L);
case 31:
return ((jjbitVec29[i2] & l2) != 0L);
case 32:
return ((jjbitVec30[i2] & l2) != 0L);
case 33:
return ((jjbitVec31[i2] & l2) != 0L);
case 44:
return ((jjbitVec32[i2] & l2) != 0L);
case 45:
return ((jjbitVec33[i2] & l2) != 0L);
case 46:
return ((jjbitVec34[i2] & l2) != 0L);
case 48:
return ((jjbitVec35[i2] & l2) != 0L);
case 49:
return ((jjbitVec36[i2] & l2) != 0L);
case 77:
return ((jjbitVec37[i2] & l2) != 0L);
case 159:
return ((jjbitVec38[i2] & l2) != 0L);
case 164:
return ((jjbitVec39[i2] & l2) != 0L);
case 166:
return ((jjbitVec40[i2] & l2) != 0L);
case 167:
return ((jjbitVec41[i2] & l2) != 0L);
case 168:
return ((jjbitVec42[i2] & l2) != 0L);
case 169:
return ((jjbitVec43[i2] & l2) != 0L);
case 170:
return ((jjbitVec44[i2] & l2) != 0L);
case 171:
return ((jjbitVec45[i2] & l2) != 0L);
case 215:
return ((jjbitVec46[i2] & l2) != 0L);
case 250:
return ((jjbitVec47[i2] & l2) != 0L);
case 251:
return ((jjbitVec48[i2] & l2) != 0L);
case 253:
return ((jjbitVec49[i2] & l2) != 0L);
case 254:
return ((jjbitVec50[i2] & l2) != 0L);
case 255:
return ((jjbitVec51[i2] & l2) != 0L);
default :
if ((jjbitVec0[i1] & l1) != 0L)
return true;
return false;
}
}
private static final boolean jjCanMove_1(int hiByte, int i1, int i2, long l1, long l2)
{
switch(hiByte)
{
case 0:
return ((jjbitVec2[i2] & l2) != 0L);
case 2:
return ((jjbitVec3[i2] & l2) != 0L);
case 3:
return ((jjbitVec52[i2] & l2) != 0L);
case 4:
return ((jjbitVec53[i2] & l2) != 0L);
case 5:
return ((jjbitVec54[i2] & l2) != 0L);
case 6:
return ((jjbitVec55[i2] & l2) != 0L);
case 7:
return ((jjbitVec56[i2] & l2) != 0L);
case 8:
return ((jjbitVec57[i2] & l2) != 0L);
case 9:
return ((jjbitVec58[i2] & l2) != 0L);
case 10:
return ((jjbitVec59[i2] & l2) != 0L);
case 11:
return ((jjbitVec60[i2] & l2) != 0L);
case 12:
return ((jjbitVec61[i2] & l2) != 0L);
case 13:
return ((jjbitVec62[i2] & l2) != 0L);
case 14:
return ((jjbitVec63[i2] & l2) != 0L);
case 15:
return ((jjbitVec64[i2] & l2) != 0L);
case 16:
return ((jjbitVec65[i2] & l2) != 0L);
case 18:
return ((jjbitVec18[i2] & l2) != 0L);
case 19:
return ((jjbitVec66[i2] & l2) != 0L);
case 20:
return ((jjbitVec20[i2] & l2) != 0L);
case 22:
return ((jjbitVec21[i2] & l2) != 0L);
case 23:
return ((jjbitVec67[i2] & l2) != 0L);
case 24:
return ((jjbitVec68[i2] & l2) != 0L);
case 25:
return ((jjbitVec69[i2] & l2) != 0L);
case 26:
return ((jjbitVec70[i2] & l2) != 0L);
case 27:
return ((jjbitVec71[i2] & l2) != 0L);
case 28:
return ((jjbitVec72[i2] & l2) != 0L);
case 29:
return ((jjbitVec73[i2] & l2) != 0L);
case 31:
return ((jjbitVec29[i2] & l2) != 0L);
case 32:
return ((jjbitVec74[i2] & l2) != 0L);
case 33:
return ((jjbitVec31[i2] & l2) != 0L);
case 44:
return ((jjbitVec75[i2] & l2) != 0L);
case 45:
return ((jjbitVec76[i2] & l2) != 0L);
case 46:
return ((jjbitVec34[i2] & l2) != 0L);
case 48:
return ((jjbitVec77[i2] & l2) != 0L);
case 49:
return ((jjbitVec36[i2] & l2) != 0L);
case 77:
return ((jjbitVec37[i2] & l2) != 0L);
case 159:
return ((jjbitVec38[i2] & l2) != 0L);
case 164:
return ((jjbitVec39[i2] & l2) != 0L);
case 166:
return ((jjbitVec78[i2] & l2) != 0L);
case 167:
return ((jjbitVec41[i2] & l2) != 0L);
case 168:
return ((jjbitVec79[i2] & l2) != 0L);
case 169:
return ((jjbitVec80[i2] & l2) != 0L);
case 170:
return ((jjbitVec81[i2] & l2) != 0L);
case 171:
return ((jjbitVec82[i2] & l2) != 0L);
case 215:
return ((jjbitVec46[i2] & l2) != 0L);
case 250:
return ((jjbitVec47[i2] & l2) != 0L);
case 251:
return ((jjbitVec83[i2] & l2) != 0L);
case 253:
return ((jjbitVec49[i2] & l2) != 0L);
case 254:
return ((jjbitVec84[i2] & l2) != 0L);
case 255:
return ((jjbitVec85[i2] & l2) != 0L);
default :
if ((jjbitVec0[i1] & l1) != 0L)
return true;
return false;
}
}
/** Token literal values. */
public static final String[] jjstrLiteralImages = {
"", "\164\162\165\145", "\146\141\154\163\145", "\156\165\154\154", null, null,
null, null, null, null, null, "\50", "\51", "\133", "\135", "\54", "\56", "\77",
"\72", "\174\174", "\46\46", "\75\75", "\41\75", "\74", "\76", "\74\75", "\76\75",
"\41", "\53", "\55", "\52", "\57", "\45", };
/** Lexer state names. */
public static final String[] lexStateNames = {
"DEFAULT",
};
protected JavaCharStream input_stream;
private final int[] jjrounds = new int[19];
private final int[] jjstateSet = new int[38];
protected char curChar;
/** Constructor. */
public WontonExpressionParserTokenManager(JavaCharStream stream){
if (JavaCharStream.staticFlag)
throw new Error("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer.");
input_stream = stream;
}
/** Constructor. */
public WontonExpressionParserTokenManager(JavaCharStream stream, int lexState){
this(stream);
SwitchTo(lexState);
}
/** Reinitialise parser. */
public void ReInit(JavaCharStream stream)
{
jjmatchedPos = jjnewStateCnt = 0;
curLexState = defaultLexState;
input_stream = stream;
ReInitRounds();
}
private void ReInitRounds()
{
int i;
jjround = 0x80000001;
for (i = 19; i-- > 0;)
jjrounds[i] = 0x80000000;
}
/** Reinitialise parser. */
public void ReInit(JavaCharStream stream, int lexState)
{
ReInit(stream);
SwitchTo(lexState);
}
/** Switch to specified lex state. */
public void SwitchTo(int lexState)
{
if (lexState >= 1 || lexState < 0)
throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
else
curLexState = lexState;
}
protected Token jjFillToken()
{
final Token t;
final String curTokenImage;
final int beginLine;
final int endLine;
final int beginColumn;
final int endColumn;
String im = jjstrLiteralImages[jjmatchedKind];
curTokenImage = (im == null) ? input_stream.GetImage() : im;
beginLine = input_stream.getBeginLine();
beginColumn = input_stream.getBeginColumn();
endLine = input_stream.getEndLine();
endColumn = input_stream.getEndColumn();
t = Token.newToken(jjmatchedKind, curTokenImage);
t.beginLine = beginLine;
t.endLine = endLine;
t.beginColumn = beginColumn;
t.endColumn = endColumn;
return t;
}
int curLexState = 0;
int defaultLexState = 0;
int jjnewStateCnt;
int jjround;
int jjmatchedPos;
int jjmatchedKind;
/** Get the next Token. */
public Token getNextToken()
{
Token matchedToken;
int curPos = 0;
EOFLoop :
for (;;)
{
try
{
curChar = input_stream.BeginToken();
}
catch(java.io.IOException e)
{
jjmatchedKind = 0;
matchedToken = jjFillToken();
return matchedToken;
}
jjmatchedKind = 0x7fffffff;
jjmatchedPos = 0;
curPos = jjMoveStringLiteralDfa0_0();
if (jjmatchedKind != 0x7fffffff)
{
if (jjmatchedPos + 1 < curPos)
input_stream.backup(curPos - jjmatchedPos - 1);
matchedToken = jjFillToken();
return matchedToken;
}
int error_line = input_stream.getEndLine();
int error_column = input_stream.getEndColumn();
String error_after = null;
boolean EOFSeen = false;
try { input_stream.readChar(); input_stream.backup(1); }
catch (java.io.IOException e1) {
EOFSeen = true;
error_after = curPos <= 1 ? "" : input_stream.GetImage();
if (curChar == '\n' || curChar == '\r') {
error_line++;
error_column = 0;
}
else
error_column++;
}
if (!EOFSeen) {
input_stream.backup(1);
error_after = curPos <= 1 ? "" : input_stream.GetImage();
}
throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
}
}
private void jjCheckNAdd(int state)
{
if (jjrounds[state] != jjround)
{
jjstateSet[jjnewStateCnt++] = state;
jjrounds[state] = jjround;
}
}
private void jjAddStates(int start, int end)
{
do {
jjstateSet[jjnewStateCnt++] = jjnextStates[start];
} while (start++ != end);
}
private void jjCheckNAddTwoStates(int state1, int state2)
{
jjCheckNAdd(state1);
jjCheckNAdd(state2);
}
private void jjCheckNAddStates(int start, int end)
{
do {
jjCheckNAdd(jjnextStates[start]);
} while (start++ != end);
}
}