📄 bifv01tokenmanager.java
字号:
/* Generated By:JavaCC: Do not edit this line. BIFv01TokenManager.java */
/* This parser uses the data structures in the JavaBayes core *
* engine (package BayesianNetworks); other implementations *
* may use different data structures */
package Parsers.BIFv01;
import InterchangeFormat.*;
import java.util.Vector;
import java.util.Enumeration;
public class BIFv01TokenManager implements BIFv01Constants
{
private final int jjStopStringLiteralDfa_0(int pos, long active0){
switch (pos) {
case 0:
if ((active0 & 0xf300L) != 0L)
{
jjmatchedKind = 17;
return 11;
}
if ((active0 & 0xc00L) != 0L)
{
jjmatchedKind = 17;
return 8;
}
return -1;
case 1:
if ((active0 & 0xf300L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 1;
return 11;
}
if ((active0 & 0xc00L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 1;
return 7;
}
return -1;
case 2:
if ((active0 & 0xc00L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 2;
return 6;
}
if ((active0 & 0xf300L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 2;
return 11;
}
return -1;
case 3:
if ((active0 & 0x800L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 3;
return 5;
}
if ((active0 & 0x1000L) != 0L)
return 11;
if ((active0 & 0xe700L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 3;
return 11;
}
return -1;
case 4:
if ((active0 & 0x6700L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 4;
return 11;
}
if ((active0 & 0x8000L) != 0L)
return 11;
if ((active0 & 0x800L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 4;
return 4;
}
return -1;
case 5:
if ((active0 & 0x6700L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 5;
return 11;
}
if ((active0 & 0x800L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 5;
return 3;
}
return -1;
case 6:
if ((active0 & 0x4100L) != 0L)
return 11;
if ((active0 & 0x2600L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 6;
return 11;
}
if ((active0 & 0x800L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 6;
return 0;
}
return -1;
case 7:
if ((active0 & 0x400L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 7;
return 11;
}
if ((active0 & 0x2200L) != 0L)
return 11;
if ((active0 & 0x800L) != 0L)
return 42;
return -1;
case 8:
if ((active0 & 0x400L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 8;
return 11;
}
return -1;
case 9:
if ((active0 & 0x400L) != 0L)
{
jjmatchedKind = 17;
jjmatchedPos = 9;
return 11;
}
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, 27);
case 41:
return jjStopAtPos(0, 28);
case 59:
return jjStopAtPos(0, 26);
case 91:
return jjStopAtPos(0, 24);
case 93:
return jjStopAtPos(0, 25);
case 100:
return jjMoveStringLiteralDfa1_0(0x6000L);
case 110:
return jjMoveStringLiteralDfa1_0(0x100L);
case 112:
return jjMoveStringLiteralDfa1_0(0xc00L);
case 116:
return jjMoveStringLiteralDfa1_0(0x9000L);
case 118:
return jjMoveStringLiteralDfa1_0(0x200L);
case 123:
return jjStopAtPos(0, 22);
case 124:
return jjStopAtPos(0, 29);
case 125:
return jjStopAtPos(0, 23);
default :
return jjMoveNfa_0(9, 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 97:
return jjMoveStringLiteralDfa2_0(active0, 0x8200L);
case 101:
return jjMoveStringLiteralDfa2_0(active0, 0x4100L);
case 105:
return jjMoveStringLiteralDfa2_0(active0, 0x2000L);
case 114:
return jjMoveStringLiteralDfa2_0(active0, 0xc00L);
case 121:
return jjMoveStringLiteralDfa2_0(active0, 0x1000L);
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 98:
return jjMoveStringLiteralDfa3_0(active0, 0x8000L);
case 102:
return jjMoveStringLiteralDfa3_0(active0, 0x4000L);
case 111:
return jjMoveStringLiteralDfa3_0(active0, 0xc00L);
case 112:
return jjMoveStringLiteralDfa3_0(active0, 0x1000L);
case 114:
return jjMoveStringLiteralDfa3_0(active0, 0x200L);
case 115:
return jjMoveStringLiteralDfa3_0(active0, 0x2000L);
case 116:
return jjMoveStringLiteralDfa3_0(active0, 0x100L);
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 97:
return jjMoveStringLiteralDfa4_0(active0, 0x4000L);
case 98:
return jjMoveStringLiteralDfa4_0(active0, 0x400L);
case 99:
return jjMoveStringLiteralDfa4_0(active0, 0x2000L);
case 101:
if ((active0 & 0x1000L) != 0L)
return jjStartNfaWithStates_0(3, 12, 11);
break;
case 105:
return jjMoveStringLiteralDfa4_0(active0, 0x200L);
case 108:
return jjMoveStringLiteralDfa4_0(active0, 0x8000L);
case 112:
return jjMoveStringLiteralDfa4_0(active0, 0x800L);
case 119:
return jjMoveStringLiteralDfa4_0(active0, 0x100L);
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 97:
return jjMoveStringLiteralDfa5_0(active0, 0x600L);
case 101:
if ((active0 & 0x8000L) != 0L)
return jjStartNfaWithStates_0(4, 15, 11);
return jjMoveStringLiteralDfa5_0(active0, 0x800L);
case 111:
return jjMoveStringLiteralDfa5_0(active0, 0x100L);
case 114:
return jjMoveStringLiteralDfa5_0(active0, 0x2000L);
case 117:
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 98:
return jjMoveStringLiteralDfa6_0(active0, 0x600L);
case 101:
return jjMoveStringLiteralDfa6_0(active0, 0x2000L);
case 108:
return jjMoveStringLiteralDfa6_0(active0, 0x4000L);
case 114:
return jjMoveStringLiteralDfa6_0(active0, 0x900L);
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 105:
return jjMoveStringLiteralDfa7_0(active0, 0x400L);
case 107:
if ((active0 & 0x100L) != 0L)
return jjStartNfaWithStates_0(6, 8, 11);
break;
case 108:
return jjMoveStringLiteralDfa7_0(active0, 0x200L);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -