📄 yylex.java
字号:
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 new Symbol(sym.EOF); } 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 0: { // System.out.println ("Text==" + yytext ()); return (new Symbol(sym.TEXT,yyline,yychar,yytext()));} case -2: break; case 1: case -3: break; case 2: { return (new Symbol(sym.SLASH,yyline, yychar)); } case -4: break; case 3: { System.out.println("Illegal character: <" + yytext() + ">"); } case -5: break; case 4: { } case -6: break; case 5: { } case -7: break; case 7: { yybegin(COMMENT); } case -8: break; case 8: { yybegin (XML); } case -9: break; case 9: { yybegin (ELEMENT); /*System.out.println ("Starting element");*/ return (new Symbol(sym.ELEMENT,yyline, yychar)); } case -10: break; case 10: { yybegin (ATTLIST); /*System.out.println ("Starting attlist");*/ return (new Symbol(sym.ATTLIST,yyline, yychar)); } case -11: break; case 11: { yybegin (DOCTYPE); } case -12: break; case 12: { /*System.out.println ("Un-Matched:'" + yytext ()+ "'");*/ } case -13: break; case 13: { } case -14: break; case 14: { yybegin(YYINITIAL);} case -15: break; case 15: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -16: break; case 16: { yybegin (YYINITIAL); return (new Symbol(sym.RBRACK,yyline, yychar)); } case -17: break; case 17: { return (new Symbol(sym.LPAREN,yyline,yychar,yytext()));} case -18: break; case 18: { return (new Symbol(sym.OR_BAR,yyline,yychar,yytext()));} case -19: break; case 19: { return (new Symbol(sym.RPAREN,yyline,yychar,yytext()));} case -20: break; case 20: { return (new Symbol(sym.COMMA,yyline,yychar,yytext()));} case -21: break; case 21: { return (new Symbol(sym.ANY,yyline,yychar));} case -22: break; case 22: { return (new Symbol(sym.EMPTY,yyline,yychar));} case -23: break; case 23: { return (new Symbol(sym.PCDATA,yyline,yychar));} case -24: break; case 24: { return (new Symbol(sym.QUOTED_NAME,yyline,yychar,yytext()));} case -25: break; case 25: { return (new Symbol(sym.CDATA,yyline,yychar));} case -26: break; case 26: { return (new Symbol(sym.SYNTAX,yyline,yychar));} case -27: break; case 27: { return (new Symbol(sym.FIXED,yyline,yychar));} case -28: break; case 28: { } case -29: break; case 29: { yybegin (YYINITIAL); } case -30: break; case 30: { // System.out.println ("Text==" + yytext ()); return (new Symbol(sym.TEXT,yyline,yychar,yytext()));} case -31: break; case 31: { System.out.println("Illegal character: <" + yytext() + ">"); } case -32: break; case 32: { } case -33: break; case 33: { } case -34: break; case 35: { /*System.out.println ("Un-Matched:'" + yytext ()+ "'");*/ } case -35: break; case 36: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -36: break; case 37: { return (new Symbol(sym.QUOTED_NAME,yyline,yychar,yytext()));} case -37: break; case 38: { // System.out.println ("Text==" + yytext ()); return (new Symbol(sym.TEXT,yyline,yychar,yytext()));} case -38: break; case 39: { System.out.println("Illegal character: <" + yytext() + ">"); } case -39: break; case 41: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -40: break; case 42: { // System.out.println ("Text==" + yytext ()); return (new Symbol(sym.TEXT,yyline,yychar,yytext()));} case -41: break; case 43: { System.out.println("Illegal character: <" + yytext() + ">"); } case -42: break; case 45: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -43: break; case 46: { System.out.println("Illegal character: <" + yytext() + ">"); } case -44: break; case 48: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -45: break; case 49: { System.out.println("Illegal character: <" + yytext() + ">"); } case -46: break; case 51: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -47: break; case 86: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -48: break; case 88: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -49: break; case 90: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -50: break; case 92: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -51: break; case 93: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -52: break; case 94: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -53: break; case 95: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -54: break; case 96: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -55: break; case 97: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -56: break; case 98: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -57: break; case 99: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -58: break; case 100: { // System.out.println ("returning name -> " + yytext ()); return (new Symbol(sym.NAME_SYMBOL,yyline,yychar,yytext()));} case -59: 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 + -