📄 cstandardtokenizertokenmanager.java
字号:
break;
if (kind > 7)
kind = 7;
jjCheckNAddTwoStates(20, 25);
break;
case 26:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
jjCheckNAddStates(12, 17);
break;
case 27:
if (!jjCanMove_2(hiByte, i1, i2, l1, l2))
break;
if (kind > 1)
kind = 1;
jjCheckNAddStates(0, 11);
break;
case 28:
if (!jjCanMove_2(hiByte, i1, i2, l1, l2))
break;
if (kind > 1)
kind = 1;
jjCheckNAdd(28);
break;
case 29:
if (jjCanMove_2(hiByte, i1, i2, l1, l2))
jjCheckNAddStates(24, 26);
break;
case 31:
if (jjCanMove_2(hiByte, i1, i2, l1, l2))
jjCheckNAddStates(27, 29);
break;
case 33:
if (jjCanMove_2(hiByte, i1, i2, l1, l2))
jjCheckNAddTwoStates(33, 34);
break;
case 35:
if (!jjCanMove_2(hiByte, i1, i2, l1, l2))
break;
if (kind > 5)
kind = 5;
jjCheckNAddTwoStates(34, 35);
break;
case 36:
if (jjCanMove_2(hiByte, i1, i2, l1, l2))
jjCheckNAddTwoStates(36, 37);
break;
case 38:
if (!jjCanMove_2(hiByte, i1, i2, l1, l2))
break;
if (kind > 6)
kind = 6;
jjCheckNAddTwoStates(37, 38);
break;
case 39:
if (jjCanMove_2(hiByte, i1, i2, l1, l2))
jjCheckNAddTwoStates(39, 40);
break;
case 41:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
jjAddStates(52, 53);
break;
case 42:
if (!jjCanMove_1(hiByte, i1, i2, l1, l2))
break;
if (kind > 7)
kind = 7;
jjCheckNAdd(43);
break;
case 43:
if (!jjCanMove_0(hiByte, i1, i2, l1, l2))
break;
if (kind > 7)
kind = 7;
jjCheckNAdd(43);
break;
case 44:
if (jjCanMove_2(hiByte, i1, i2, l1, l2))
jjCheckNAddTwoStates(44, 45);
break;
case 46:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
jjAddStates(54, 55);
break;
case 47:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
jjCheckNAddTwoStates(48, 49);
break;
case 48:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
jjCheckNAddTwoStates(48, 49);
break;
case 50:
if (!jjCanMove_2(hiByte, i1, i2, l1, l2))
break;
if (kind > 7)
kind = 7;
jjCheckNAddTwoStates(45, 50);
break;
case 51:
if (jjCanMove_2(hiByte, i1, i2, l1, l2))
jjCheckNAddTwoStates(51, 52);
break;
case 53:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
jjAddStates(56, 57);
break;
case 54:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
jjCheckNAddTwoStates(55, 56);
break;
case 55:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
jjCheckNAddTwoStates(55, 56);
break;
case 57:
if (jjCanMove_2(hiByte, i1, i2, l1, l2))
jjAddStates(58, 59);
break;
case 59:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
jjAddStates(60, 61);
break;
case 60:
if (!jjCanMove_1(hiByte, i1, i2, l1, l2))
break;
if (kind > 7)
kind = 7;
jjCheckNAddTwoStates(56, 61);
break;
case 61:
if (!jjCanMove_0(hiByte, i1, i2, l1, l2))
break;
if (kind > 7)
kind = 7;
jjCheckNAddTwoStates(56, 61);
break;
case 62:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
jjCheckNAddStates(30, 35);
break;
case 63:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
jjCheckNAddTwoStates(63, 64);
break;
case 65:
if (!jjCanMove_0(hiByte, i1, i2, l1, l2))
break;
if (kind > 2)
kind = 2;
jjCheckNAddTwoStates(64, 65);
break;
case 66:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
jjCheckNAddTwoStates(66, 67);
break;
case 68:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
jjAddStates(44, 45);
break;
case 70:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
jjCheckNAddTwoStates(70, 71);
break;
case 72:
if (!jjCanMove_0(hiByte, i1, i2, l1, l2))
break;
if (kind > 4)
kind = 4;
jjstateSet[jjnewStateCnt++] = 72;
break;
default : break;
}
} while(i != startsAt);
}
if (kind != 0x7fffffff)
{
jjmatchedKind = kind;
jjmatchedPos = curPos;
kind = 0x7fffffff;
}
++curPos;
if ((i = jjnewStateCnt) == (startsAt = 73 - (jjnewStateCnt = startsAt)))
return curPos;
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) { return curPos; }
}
}
static final int[] jjnextStates = {
28, 29, 30, 32, 36, 37, 39, 40, 44, 45, 51, 52, 3, 4, 8, 9,
17, 18, 1, 2, 6, 7, 15, 16, 29, 30, 32, 30, 31, 32, 63, 64,
66, 67, 70, 71, 3, 4, 17, 18, 23, 24, 48, 49, 68, 69, 10, 11,
12, 13, 21, 22, 41, 42, 46, 47, 53, 54, 57, 58, 59, 60,
};
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);
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 6:
return ((jjbitVec5[i2] & l2) != 0L);
case 11:
return ((jjbitVec6[i2] & l2) != 0L);
case 13:
return ((jjbitVec7[i2] & l2) != 0L);
case 14:
return ((jjbitVec8[i2] & l2) != 0L);
case 16:
return ((jjbitVec9[i2] & l2) != 0L);
default :
if ((jjbitVec3[i1] & l1) != 0L)
if ((jjbitVec4[i2] & l2) == 0L)
return false;
else
return true;
return false;
}
}
private static final boolean jjCanMove_2(int hiByte, int i1, int i2, long l1, long l2)
{
switch(hiByte)
{
case 0:
return ((jjbitVec2[i2] & l2) != 0L);
case 48:
return ((jjbitVec11[i2] & l2) != 0L);
case 49:
return ((jjbitVec12[i2] & l2) != 0L);
case 51:
return ((jjbitVec13[i2] & l2) != 0L);
case 61:
return ((jjbitVec14[i2] & l2) != 0L);
default :
if ((jjbitVec10[i1] & l1) != 0L)
return true;
return false;
}
}
public static final String[] jjstrLiteralImages = {
"", null, null, null, null, null, null, null, null, null, null, null, null,
null, };
public static final String[] lexStateNames = {
"DEFAULT",
};
static final long[] jjtoToken = {
0xffL,
};
static final long[] jjtoSkip = {
0x2000L,
};
protected CharStream input_stream;
private final int[] jjrounds = new int[73];
private final int[] jjstateSet = new int[146];
protected char curChar;
public CStandardTokenizerTokenManager(CharStream stream)
{
input_stream = stream;
}
public CStandardTokenizerTokenManager(CharStream stream, int lexState)
{
this(stream);
SwitchTo(lexState);
}
public void ReInit(CharStream stream)
{
jjmatchedPos = jjnewStateCnt = 0;
curLexState = defaultLexState;
input_stream = stream;
ReInitRounds();
}
private final void ReInitRounds()
{
int i;
jjround = 0x80000001;
for (i = 73; i-- > 0;)
jjrounds[i] = 0x80000000;
}
public void ReInit(CharStream stream, int lexState)
{
ReInit(stream);
SwitchTo(lexState);
}
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()
{
Token t = Token.newToken(jjmatchedKind);
t.kind = jjmatchedKind;
String im = jjstrLiteralImages[jjmatchedKind];
t.image = (im == null) ? input_stream.GetImage() : im;
t.beginLine = input_stream.getBeginLine();
t.beginColumn = input_stream.getBeginColumn();
t.endLine = input_stream.getEndLine();
t.endColumn = input_stream.getEndColumn();
return t;
}
int curLexState = 0;
int defaultLexState = 0;
int jjnewStateCnt;
int jjround;
int jjmatchedPos;
int jjmatchedKind;
public Token getNextToken()
{
int kind;
Token specialToken = null;
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 (jjmatchedPos == 0 && jjmatchedKind > 13)
{
jjmatchedKind = 13;
}
if (jjmatchedKind != 0x7fffffff)
{
if (jjmatchedPos + 1 < curPos)
input_stream.backup(curPos - jjmatchedPos - 1);
if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
{
matchedToken = jjFillToken();
return matchedToken;
}
else
{
continue EOFLoop;
}
}
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);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -