📄 yylex.java
字号:
/* 41 */ YY_NOT_ACCEPT,
/* 42 */ YY_NOT_ACCEPT,
/* 43 */ YY_NOT_ACCEPT,
/* 44 */ YY_NOT_ACCEPT,
/* 45 */ YY_NOT_ACCEPT,
/* 46 */ YY_NOT_ACCEPT,
/* 47 */ YY_NOT_ACCEPT,
/* 48 */ YY_NOT_ACCEPT,
/* 49 */ YY_NOT_ACCEPT,
/* 50 */ YY_NOT_ACCEPT,
/* 51 */ YY_NOT_ACCEPT,
/* 52 */ YY_NOT_ACCEPT,
/* 53 */ YY_NOT_ACCEPT,
/* 54 */ YY_NOT_ACCEPT,
/* 55 */ YY_NOT_ACCEPT,
/* 56 */ YY_NOT_ACCEPT,
/* 57 */ YY_NOT_ACCEPT,
/* 58 */ YY_NOT_ACCEPT,
/* 59 */ YY_NOT_ACCEPT,
/* 60 */ YY_NOT_ACCEPT,
/* 61 */ YY_NOT_ACCEPT,
/* 62 */ YY_NOT_ACCEPT,
/* 63 */ YY_NO_ANCHOR,
/* 64 */ YY_NOT_ACCEPT,
/* 65 */ YY_NO_ANCHOR,
/* 66 */ YY_NOT_ACCEPT,
/* 67 */ YY_NOT_ACCEPT,
/* 68 */ YY_NOT_ACCEPT,
/* 69 */ YY_NO_ANCHOR,
/* 70 */ YY_NOT_ACCEPT
};
private int yy_cmap[] = unpackFromString(1,130,
"29:8,14:3,29:21,14,16,28,15,11,15:2,13,26,27,3,1,8,2,10,4,9:10,17,15,7,6,5," +
"15:2,23,12:3,21,22,12:5,24,12:5,19,25,18,20,12:5,29:3,15:2,29,12:26,29,15,2" +
"9,15,29,0:2")[0];
private int yy_rmap[] = unpackFromString(1,71,
"0,1,2:4,3,2,4,2,5,2,1:4,2:3,6,7,1,8,9,10,11,10,12,13,1,14,15,10,16,17,18,19" +
",20,21,22,23,8,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,11,40,41,42," +
"12,43,44,45,2,46,47,48,49")[0];
private int yy_nxt[][] = unpackFromString(50,30,
"1,2,3,4,5,6,7,8,9,10,30,35,30,37,11,66:2,12,64,30:3,70,30:3,13,14,15,-1:32," +
"66:12,39,66:2,68,-1,66:8,-1:5,66:5,16,66:6,39,66:2,68,-1,66:8,-1:5,66:4,17," +
"18,66:6,39,66:2,68,-1,66:8,-1:5,66:8,10,41,66:2,39,66:2,68,-1,66:8,-1:5,66:" +
"8,19,66:3,39,66:2,68,67,66:8,-1:5,66:8,31,32,42,32,39,66:2,68,-1,32:8,21,-1" +
":4,66:8,22,66:3,39,66:2,68,-1,66:8,-1:5,66:8,23,66:3,39,66:2,68,56,66:8,-1:" +
"5,66:8,38,32,66,32,39,66:2,68,-1,32:8,21,-1:12,25,-1:29,27,-1:20,1,34:27,29" +
",34,-1,66:8,19,20,42,20,39,66:2,68,-1,20:8,21,-1:4,66:8,31,38,66,38,39,66:2" +
",68,67,38:8,-1:13,33,-1:7,56,-1:13,34:27,-1,34,-1,66:9,43,66,43,39,66:2,68," +
"-1,43:8,-1:5,66:8,38,32,66,32,39,66:2,68,-1,32:3,24,32:4,21,-1:4,66:12,-1,6" +
"6:3,-1,66:8,-1:5,66:8,38:2,66,38,39,66:2,68,-1,38:8,-1:20,44,-1:14,66:8,38," +
"32,66,32,39,66:2,68,-1,32:3,26,32:4,21,-1:4,66:8,19,66:3,39,66:2,68,-1,66:8" +
",-1:5,66:8,19,47,42,47,39,66:2,68,-1,47:8,-1:14,48,49,48,-1:5,48:8,-1:5,66:" +
"8,23,50,51,50,39,66:2,68,-1,50:8,-1:5,66:9,45,66,45,39,66:2,68,-1,45:8,-1:5" +
",66:8,19,66,42,66,39,66:2,68,-1,66:8,-1:13,33,54,55,54,-1:5,54:8,-1:14,48,-" +
"1,48,-1:5,48:8,-1:5,66:8,23,66,51,66,39,66:2,68,-1,66:8,-1:5,66:8,23,66:3,3" +
"9,66:2,68,-1,66:8,-1:13,25,57,58,57,-1:5,57:8,-1:14,52,-1,52,-1:5,52:8,-1:1" +
"3,33,-1,55,-1:27,33,-1:30,59,60,59,-1:5,59:8,-1:13,25,-1,58,-1:27,27,61,62," +
"61,-1:5,61:8,-1:14,59,-1,59,-1:5,59:8,-1:13,27,-1,62,-1:19,66:8,31,32,42,32" +
",39,66:2,68,-1,32:2,36,32:5,21,-1:4,66:8,19,20,42,20,39,66:2,68,-1,20,63,20" +
":6,21,-1:4,66:8,38,32,66,32,39,66:2,68,-1,32:7,40,21,-1:13,52,53,52,-1:5,52" +
":8,-1:5,66:9,45,46,45,39,66:2,68,-1,45:8,-1:5,66:8,31,32,42,32,39,66:2,68,-" +
"1,32:6,65,32,21,-1:4,66:8,19,20,42,20,39,66:2,68,-1,20:5,69,20:2,21,-1:3");
public ParseItem yylex ()
throws java.io.IOException, jxl.biff.formula.FormulaException
{
int yy_lookahead;
int yy_anchor = YY_NO_ANCHOR;
int yy_state = yy_state_dtrans[yy_lexical_state];
int yy_next_state = YY_NO_STATE;
int yy_last_accept_state = YY_NO_STATE;
boolean yy_initial = true;
int yy_this_accept;
yy_mark_start();
yy_this_accept = yy_acpt[yy_state];
if (YY_NOT_ACCEPT != yy_this_accept) {
yy_last_accept_state = yy_state;
yy_mark_end();
}
while (true) {
if (yy_initial && yy_at_bol) yy_lookahead = YY_BOL;
else yy_lookahead = yy_advance();
yy_next_state = YY_F;
yy_next_state = yy_nxt[yy_rmap[yy_state]][yy_cmap[yy_lookahead]];
if (YY_EOF == yy_lookahead && true == yy_initial) {
return null;
}
if (YY_F != yy_next_state) {
yy_state = yy_next_state;
yy_initial = false;
yy_this_accept = yy_acpt[yy_state];
if (YY_NOT_ACCEPT != yy_this_accept) {
yy_last_accept_state = yy_state;
yy_mark_end();
}
}
else {
if (YY_NO_STATE == yy_last_accept_state) {
throw (new Error("Lexical Error: Unmatched Input."));
}
else {
yy_anchor = yy_acpt[yy_last_accept_state];
if (0 != (YY_END & yy_anchor)) {
yy_move_end();
}
yy_to_mark();
switch (yy_last_accept_state) {
case 1:
case -2:
break;
case 2:
{ return new Plus() ;}
case -3:
break;
case 3:
{ return new Minus() ; }
case -4:
break;
case 4:
{ return new Multiply() ; }
case -5:
break;
case 5:
{ return new Divide() ; }
case -6:
break;
case 6:
{ return new GreaterThan() ; }
case -7:
break;
case 7:
{ return new Equal() ; }
case -8:
break;
case 8:
{ return new LessThan() ; }
case -9:
break;
case 9:
{ return new ArgumentSeparator() ; }
case -10:
break;
case 10:
{ return new IntegerValue(yytext()) ; }
case -11:
break;
case 11:
{}
case -12:
break;
case 12:
{ return new RangeSeparator(); }
case -13:
break;
case 13:
{ return new OpenParentheses() ;}
case -14:
break;
case 14:
{ return new CloseParentheses() ;}
case -15:
break;
case 15:
{emptyString = true; yybegin(YYSTRING);}
case -16:
break;
case 16:
{ return new GreaterEqual() ; }
case -17:
break;
case 17:
{ return new NotEqual() ; }
case -18:
break;
case 18:
{ return new LessEqual() ; }
case -19:
break;
case 19:
{ return new CellReference(yytext()) ; }
case -20:
break;
case 20:
{return new NameRange(yytext(), nameTable); }
case -21:
break;
case 21:
{ return new StringFunction(yytext()) ; }
case -22:
break;
case 22:
{ return new DoubleValue(yytext()) ; }
case -23:
break;
case 23:
{ return new CellReference3d(yytext(),externalSheet) ; }
case -24:
break;
case 24:
{return new BooleanValue(yytext());}
case -25:
break;
case 25:
{ return new Area(yytext()) ; }
case -26:
break;
case 26:
{return new BooleanValue(yytext());}
case -27:
break;
case 27:
{ return new Area3d(yytext(),externalSheet) ; }
case -28:
break;
case 28:
{emptyString = false; return new StringValue(yytext()) ; }
case -29:
break;
case 29:
{yybegin(YYINITIAL); if (emptyString) return new StringValue("");}
case -30:
break;
case 31:
{ return new CellReference(yytext()) ; }
case -31:
break;
case 32:
{return new NameRange(yytext(), nameTable); }
case -32:
break;
case 33:
{ return new CellReference3d(yytext(),externalSheet) ; }
case -33:
break;
case 34:
{emptyString = false; return new StringValue(yytext()) ; }
case -34:
break;
case 36:
{return new NameRange(yytext(), nameTable); }
case -35:
break;
case 38:
{return new NameRange(yytext(), nameTable); }
case -36:
break;
case 40:
{return new NameRange(yytext(), nameTable); }
case -37:
break;
case 63:
{return new NameRange(yytext(), nameTable); }
case -38:
break;
case 65:
{return new NameRange(yytext(), nameTable); }
case -39:
break;
case 69:
{return new NameRange(yytext(), nameTable); }
case -40:
break;
default:
yy_error(YY_E_INTERNAL,false);
case -1:
}
yy_initial = true;
yy_state = yy_state_dtrans[yy_lexical_state];
yy_next_state = YY_NO_STATE;
yy_last_accept_state = YY_NO_STATE;
yy_mark_start();
yy_this_accept = yy_acpt[yy_state];
if (YY_NOT_ACCEPT != yy_this_accept) {
yy_last_accept_state = yy_state;
yy_mark_end();
}
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -