📄 parsemibtokenmanager.java
字号:
else if (curChar == 39) jjCheckNAddTwoStates(11, 13); if (curChar == 45) jjstateSet[jjnewStateCnt++] = 7; if (curChar == 45) jjstateSet[jjnewStateCnt++] = 0; break; case 0: if (curChar == 45) jjCheckNAddStates(3, 5); break; case 1: if ((0xffffffffffffdbffL & l) != 0L) jjCheckNAddStates(3, 5); break; case 2: if ((0x2400L & l) != 0L && kind > 5) kind = 5; break; case 3: if (curChar == 10 && kind > 5) kind = 5; break; case 4: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; case 6: if (curChar == 45) jjstateSet[jjnewStateCnt++] = 7; break; case 7: if ((0x3fe000000000000L & l) == 0L) break; if (kind > 58) kind = 58; jjCheckNAddTwoStates(8, 9); break; case 8: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 58) kind = 58; jjCheckNAddTwoStates(8, 9); break; case 10: if (curChar == 39) jjCheckNAddTwoStates(11, 13); break; case 11: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(11, 13); break; case 13: if (curChar == 39) jjstateSet[jjnewStateCnt++] = 12; break; case 14: if (curChar != 48) break; if (kind > 58) kind = 58; jjCheckNAddTwoStates(15, 9); break; case 15: if ((0xff000000000000L & l) == 0L) break; if (kind > 58) kind = 58; jjCheckNAddTwoStates(15, 9); break; case 16: if (curChar != 45) break; if (kind > 64) kind = 64; jjCheckNAdd(17); break; case 17: if ((0x3ff200000000000L & l) == 0L) break; if (kind > 64) kind = 64; jjCheckNAdd(17); break; case 18: if (curChar == 34) jjCheckNAddStates(0, 2); break; case 19: if ((0xfffffffbffffffffL & l) != 0L) jjCheckNAddTwoStates(19, 20); break; case 20: if (curChar == 34 && kind > 62) kind = 62; break; case 21: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(21, 22); break; case 23: if (curChar == 34 && kind > 63) kind = 63; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 24: case 19: jjCheckNAddTwoStates(19, 20); break; case 5: case 17: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 64) kind = 64; jjCheckNAdd(17); break; case 1: jjAddStates(3, 5); break; case 9: if ((0x100000001000L & l) != 0L && kind > 58) kind = 58; break; case 11: if ((0x7e0000007eL & l) != 0L) jjAddStates(6, 7); break; case 12: if (curChar != 104) break; if (kind > 58) kind = 58; jjstateSet[jjnewStateCnt++] = 9; break; case 22: if ((0x400000004000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 23; break; default : break; } } while(i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 24: case 19: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddTwoStates(19, 20); break; case 1: if ((jjbitVec0[i2] & l2) != 0L) jjAddStates(3, 5); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 24 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}static final int[] jjnextStates = { 19, 20, 21, 1, 2, 4, 11, 13, };public static final String[] jjstrLiteralImages = {"", null, null, null, null, null, "\111\115\120\117\122\124\123", "\102\105\107\111\116", "\106\122\117\115", "\123\124\101\124\125\123", "\104\105\123\103\122\111\120\124\111\117\116", "\122\105\106\105\122\105\116\103\105", "\104\105\106\126\101\114", "\101\125\107\115\105\116\124\123", "\105\116\104", "\123\131\116\124\101\130", "\125\116\111\124\123", "\101\103\103\105\123\123", "\115\101\130\55\101\103\103\105\123\123", "\115\111\116\55\101\103\103\105\123\123", "\116\117\124\111\106\111\103\101\124\111\117\116\55\124\131\120\105", "\124\122\101\120\55\124\131\120\105", "\114\101\123\124\55\125\120\104\101\124\105\104", "\115\117\104\125\114\105\55\111\104\105\116\124\111\124\131", "\117\122\107\101\116\111\132\101\124\111\117\116", "\103\117\116\124\101\103\124\55\111\116\106\117", "\122\105\126\111\123\111\117\116", "\123\111\132\105", "\123\105\121\125\105\116\103\105", "\117\106", "\111\116\104\105\130", "\115\117\104\125\114\105\55\103\117\115\120\114\111\101\116\103\105", "\115\117\104\125\114\105", "\115\101\116\104\101\124\117\122\131\55\107\122\117\125\120\123", "\107\122\117\125\120", "\117\102\112\105\103\124\55\107\122\117\125\120", "\116\117\124\111\106\111\103\101\124\111\117\116\55\107\122\117\125\120", "\116\117\124\111\106\111\103\101\124\111\117\116\123", "\124\105\130\124\125\101\114\55\103\117\116\126\105\116\124\111\117\116", "\104\111\123\120\114\101\131\55\110\111\116\124", "\117\103\124\105\124", "\123\124\122\111\116\107", "\105\116\124\105\122\120\122\111\123\105", "\126\101\122\111\101\102\114\105\123", "\117\102\112\105\103\124\55\124\131\120\105", "\117\102\112\105\103\124\55\111\104\105\116\124\111\124\131", "\117\102\112\105\103\124", "\117\102\112\105\103\124\123", "\111\104\105\116\124\111\106\111\105\122", "\50", "\51", "\173", "\175", "\133", "\135", "\73", "\54", "\42", null, null, null, null, null, null, null, null, null, "\72\72\75", "\56", "\174", };public static final String[] lexStateNames = { "DEFAULT", };static final long[] jjtoToken = { 0xc7ffffffffffffc1L, 0x39L, };static final long[] jjtoSkip = { 0x3eL, 0x0L, };static protected SimpleCharStream input_stream;static private final int[] jjrounds = new int[24];static private final int[] jjstateSet = new int[48];static protected char curChar;public ParseMibTokenManager(SimpleCharStream stream){ if (input_stream != null) throw new TokenMgrError("ERROR: Second call to constructor of static lexer. You must use ReInit() to initialize the static variables.", TokenMgrError.STATIC_LEXER_ERROR); input_stream = stream;}public ParseMibTokenManager(SimpleCharStream stream, int lexState){ this(stream); SwitchTo(lexState);}static public void ReInit(SimpleCharStream stream){ jjmatchedPos = jjnewStateCnt = 0; curLexState = defaultLexState; input_stream = stream; ReInitRounds();}static private final void ReInitRounds(){ int i; jjround = 0x80000001; for (i = 24; i-- > 0;) jjrounds[i] = 0x80000000;}static public void ReInit(SimpleCharStream stream, int lexState){ ReInit(stream); SwitchTo(lexState);}static 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;}static 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;}static int curLexState = 0;static int defaultLexState = 0;static int jjnewStateCnt;static int jjround;static int jjmatchedPos;static int jjmatchedKind;public static 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; } try { input_stream.backup(0); while (curChar <= 32 && (0x100002600L & (1L << curChar)) != 0L) curChar = input_stream.BeginToken(); } catch (java.io.IOException e1) { continue EOFLoop; } jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_0(); 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 + -