📄 jsgfparsertokenmanager.java
字号:
/* Generated By:JavaCC: Do not edit this line. JSGFParserTokenManager.java */package com.sun.speech.engine.recognition;public class JSGFParserTokenManager implements JSGFParserConstants{ public java.io.PrintStream debugStream = System.out; public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x400000140L) != 0L) return 2; if ((active0 & 0x800e000L) != 0L) { jjmatchedKind = 23; return 37; } if ((active0 & 0x20000000L) != 0L) return 5; return -1; case 1: if ((active0 & 0x100L) != 0L) return 0; if ((active0 & 0x800e000L) != 0L) { jjmatchedKind = 23; jjmatchedPos = 1; return 37; } return -1; case 2: if ((active0 & 0x8000000L) != 0L) { if (jjmatchedPos < 1) { jjmatchedKind = 23; jjmatchedPos = 1; } return -1; } if ((active0 & 0xe000L) != 0L) { jjmatchedKind = 23; jjmatchedPos = 2; return 37; } return -1; case 3: if ((active0 & 0x8000000L) != 0L) { if (jjmatchedPos < 1) { jjmatchedKind = 23; jjmatchedPos = 1; } return -1; } if ((active0 & 0xe000L) != 0L) { jjmatchedKind = 23; jjmatchedPos = 3; return 37; } return -1; case 4: if ((active0 & 0xe000L) != 0L) { jjmatchedKind = 23; jjmatchedPos = 4; return 37; } return -1; case 5: if ((active0 & 0xc000L) != 0L) return 37; if ((active0 & 0x2000L) != 0L) { jjmatchedKind = 23; jjmatchedPos = 5; return 37; } return -1; default : return -1; }}private final int jjStartNfa_0(int pos, long active0){ return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1);}private final int jjStopAtPos(int pos, int kind){ jjmatchedKind = kind; jjmatchedPos = pos; return pos + 1;}private final 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);}private final int jjMoveStringLiteralDfa0_0(){ switch(curChar) { case 40: return jjStopAtPos(0, 36); case 41: return jjStopAtPos(0, 37); case 42: return jjStopAtPos(0, 30); case 43: return jjStopAtPos(0, 35); case 46: return jjStartNfaWithStates_0(0, 29, 5); case 47: jjmatchedKind = 34; return jjMoveStringLiteralDfa1_0(0x140L); case 59: return jjStopAtPos(0, 26); case 60: return jjStopAtPos(0, 28); case 61: return jjStopAtPos(0, 32); case 62: return jjStopAtPos(0, 31); case 86: return jjMoveStringLiteralDfa1_0(0x8000000L); case 91: return jjStopAtPos(0, 38); case 93: return jjStopAtPos(0, 39); case 103: return jjMoveStringLiteralDfa1_0(0x2000L); case 105: return jjMoveStringLiteralDfa1_0(0x4000L); case 112: return jjMoveStringLiteralDfa1_0(0x8000L); case 124: return jjStopAtPos(0, 33); default : return jjMoveNfa_0(3, 0); }}private final int jjMoveStringLiteralDfa1_0(long active0){ try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(0, active0); return 1; } switch(curChar) { case 42: if ((active0 & 0x100L) != 0L) return jjStartNfaWithStates_0(1, 8, 0); break; case 47: if ((active0 & 0x40L) != 0L) return jjStopAtPos(1, 6); break; case 49: return jjMoveStringLiteralDfa2_0(active0, 0x8000000L); case 109: return jjMoveStringLiteralDfa2_0(active0, 0x4000L); case 114: return jjMoveStringLiteralDfa2_0(active0, 0x2000L); case 117: return jjMoveStringLiteralDfa2_0(active0, 0x8000L); default : break; } return jjStartNfa_0(0, active0);}private final 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 46: return jjMoveStringLiteralDfa3_0(active0, 0x8000000L); case 97: return jjMoveStringLiteralDfa3_0(active0, 0x2000L); case 98: return jjMoveStringLiteralDfa3_0(active0, 0x8000L); case 112: return jjMoveStringLiteralDfa3_0(active0, 0x4000L); default : break; } return jjStartNfa_0(1, active0);}private final 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 48: if ((active0 & 0x8000000L) != 0L) return jjStopAtPos(3, 27); break; case 108: return jjMoveStringLiteralDfa4_0(active0, 0x8000L); case 109: return jjMoveStringLiteralDfa4_0(active0, 0x2000L); case 111: return jjMoveStringLiteralDfa4_0(active0, 0x4000L); default : break; } return jjStartNfa_0(2, active0);}private final 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 105: return jjMoveStringLiteralDfa5_0(active0, 0x8000L); case 109: return jjMoveStringLiteralDfa5_0(active0, 0x2000L); case 114: return jjMoveStringLiteralDfa5_0(active0, 0x4000L); default : break; } return jjStartNfa_0(3, active0);}private final int jjMoveStringLiteralDfa5_0(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_0(3, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(4, active0); return 5; } switch(curChar) { case 97: return jjMoveStringLiteralDfa6_0(active0, 0x2000L); case 99: if ((active0 & 0x8000L) != 0L) return jjStartNfaWithStates_0(5, 15, 37); break; case 116: if ((active0 & 0x4000L) != 0L) return jjStartNfaWithStates_0(5, 14, 37); break; default : break; } return jjStartNfa_0(4, active0);}private final int jjMoveStringLiteralDfa6_0(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_0(4, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(5, active0); return 6; } switch(curChar) { case 114: if ((active0 & 0x2000L) != 0L) return jjStartNfaWithStates_0(6, 13, 37); break; default : break; } return jjStartNfa_0(5, active0);}private final void jjCheckNAdd(int state){ if (jjrounds[state] != jjround) { jjstateSet[jjnewStateCnt++] = state; jjrounds[state] = jjround; }}private final void jjAddStates(int start, int end){ do { jjstateSet[jjnewStateCnt++] = jjnextStates[start]; } while (start++ != end);}private final void jjCheckNAddTwoStates(int state1, int state2){ jjCheckNAdd(state1); jjCheckNAdd(state2);}private final void jjCheckNAddStates(int start, int end){ do { jjCheckNAdd(jjnextStates[start]); } while (start++ != end);}private final void jjCheckNAddStates(int start){ jjCheckNAdd(jjnextStates[start]); jjCheckNAdd(jjnextStates[start + 1]);}static final long[] jjbitVec0 = { 0xfffffffffffffffeL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL};static final long[] jjbitVec2 = { 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL};static final long[] jjbitVec3 = { 0x1ff00000fffffffeL, 0xffffffffffffc000L, 0xffffffffL, 0x600000000000000L};static final long[] jjbitVec4 = { 0x0L, 0x0L, 0x0L, 0xff7fffffff7fffffL};static final long[] jjbitVec5 = { 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL};static final long[] jjbitVec6 = { 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffL, 0x0L};static final long[] jjbitVec7 = { 0xffffffffffffffffL, 0xffffffffffffffffL, 0x0L, 0x0L};static final long[] jjbitVec8 = { 0x3fffffffffffL, 0x0L, 0x0L, 0x0L};private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 54; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x7ff30fa00000000L & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAdd(37); } else if (curChar == 34) jjCheckNAddStates(0, 2); else if (curChar == 46) jjCheckNAdd(5); else if (curChar == 47) jjstateSet[jjnewStateCnt++] = 2; if ((0x3ff000000000000L & l) != 0L) { if (kind > 16) kind = 16; jjCheckNAddStates(3, 10); } else if (curChar == 39)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -