📄 htmllexer1.java
字号:
"\5\122\1\u0138\43\122\3\0\16\122\1\0\13\122\1\242"+ "\50\122\3\0\16\122\1\0\22\122\1\u0146\1\u0147\40\122"+ "\3\0\16\122\1\0\13\122\1\251\14\122\1\242\33\122"+ "\3\0\16\122\1\0\20\122\1\u0138\7\122\1\u0148\33\122"+ "\3\0\16\122\1\0\23\122\1\344\4\122\1\242\33\122"+ "\3\0\16\122\1\0\3\122\1\u0135\13\122\1\u0149\1\u0138"+ "\5\122\1\u0119\35\122\3\0\16\122\1\0\15\122\1\242"+ "\46\122\3\0\16\122\1\0\3\122\1\242\60\122\3\0"+ "\16\122\1\0\17\122\1\242\10\122\1\242\33\122\3\0"+ "\16\122\1\0\21\122\1\u014a\42\122\3\0\16\122\1\0"+ "\7\122\1\312\6\122\1\u014b\45\122\3\0\16\122\1\0"+ "\6\122\1\u014c\55\122\3\0\16\122\1\0\7\122\1\u014d"+ "\54\122\3\0\16\122\1\0\3\122\1\u0140\6\122\1\u014e"+ "\4\122\1\u014f\44\122\3\0\16\122\1\0\12\122\1\u0138"+ "\51\122\3\0\16\122\1\0\15\122\1\u0150\46\122\3\0"+ "\16\122\1\0\20\122\1\u0151\43\122\3\0\16\122\1\0"+ "\23\122\1\u0152\40\122\3\0\16\122\1\0\13\122\1\u0153"+ "\7\122\1\u0154\40\122\3\0\16\122\1\0\24\122\1\u0155"+ "\37\122\3\0\16\122\1\0\23\122\1\242\40\122\3\0"+ "\16\122\1\0\42\122\1\242\21\122\3\0\16\122\1\0"+ "\44\122\1\u0156\17\122\3\0\16\122\1\0\3\122\1\u0157"+ "\57\122\1\242\3\0\16\122\1\0\13\122\1\251\50\122"+ "\3\0\16\122\1\0\30\122\1\u0148\33\122\3\0\16\122"+ "\1\0\6\122\1\u0158\55\122\3\0\16\122\1\0\24\122"+ "\1\u0139\37\122\3\0\16\122\1\0\7\122\1\u0125\54\122"+ "\3\0\16\122\1\0\30\122\1\u0155\33\122\3\0\16\122"+ "\1\0\7\122\1\u0159\54\122\3\0\12\122\101\177\1\u015a"+ "\1\u0103\3\177\101\200\1\u015a\1\200\1\u0104\2\200\1\0"+ "\3\35\3\0\5\35\1\u015b\30\35\1\u015b\23\35\5\0"+ "\1\35\5\0\1\35\2\0\3\35\3\0\12\35\1\u015c"+ "\24\35\1\u015c\22\35\5\0\1\35\5\0\1\35\1\0"+ "\17\34\1\u015d\24\34\1\u015d\34\34\1\0\25\34\1\u015e"+ "\24\34\1\u015e\32\34\1\0\4\34\104\210\1\u015f\1\210"+ "\12\67\1\u0160\53\67\1\u0160\4\67\1\216\31\67\1\u0161"+ "\24\67\1\u0161\26\67\1\216\105\67\1\216\10\67\1\u0162"+ "\1\67\13\100\1\u0163\51\100\1\u0163\5\100\1\225\37\100"+ "\1\u0164\26\100\1\u0164\16\100\1\225\12\100\21\112\1\u0165"+ "\24\112\1\u0165\24\112\1\234\27\112\1\u0166\25\112\1\u0166"+ "\27\112\1\234\12\112\1\122\1\u0113\1\122\1\u0113\1\0"+ "\4\122\1\u0113\3\122\1\u0113\1\122\1\u0113\4\122\1\u0113"+ "\3\122\1\u0113\1\122\1\u0113\3\122\7\u0113\11\122\1\u0113"+ "\1\122\1\u0113\10\122\1\0\1\u0112\1\0\16\122\1\0"+ "\4\122\1\242\57\122\3\0\16\122\1\0\13\122\1\u013b"+ "\50\122\3\0\16\122\1\0\7\122\1\353\54\122\1\0"+ "\1\u0112\1\0\16\122\1\0\5\122\1\u0167\56\122\3\0"+ "\16\122\1\0\13\122\1\370\50\122\3\0\16\122\1\0"+ "\16\122\1\352\45\122\3\0\16\122\1\0\4\122\1\u0168"+ "\57\122\3\0\16\122\1\0\17\122\1\u013c\44\122\3\0"+ "\16\122\1\0\24\122\1\u0169\37\122\3\0\16\122\1\0"+ "\14\122\1\242\47\122\3\0\16\122\1\0\20\122\1\u016a"+ "\43\122\3\0\16\122\1\0\10\122\1\242\53\122\1\0"+ "\1\u0112\1\0\16\122\1\0\10\122\1\242\20\122\3\242"+ "\30\122\1\0\1\u0112\1\0\16\122\1\0\7\122\1\u0135"+ "\54\122\3\0\16\122\1\0\6\122\1\242\15\122\1\u0132"+ "\37\122\3\0\16\122\1\0\5\122\1\u016b\56\122\3\0"+ "\16\122\1\0\3\122\1\u016c\60\122\3\0\16\122\1\0"+ "\24\122\1\u016d\37\122\3\0\16\122\1\0\6\122\1\242"+ "\10\122\1\242\44\122\3\0\16\122\1\0\14\122\1\242"+ "\6\122\1\242\40\122\3\0\16\122\1\0\12\122\1\344"+ "\51\122\3\0\16\122\1\0\16\122\1\u014b\45\122\3\0"+ "\16\122\1\0\30\122\1\u016d\33\122\3\0\16\122\1\0"+ "\10\122\1\u012e\53\122\3\0\16\122\1\0\23\122\1\u016e"+ "\40\122\3\0\16\122\1\0\7\122\1\u016f\54\122\3\0"+ "\16\122\1\0\5\122\1\u011d\56\122\3\0\16\122\1\0"+ "\14\122\1\263\47\122\3\0\16\122\1\0\7\122\1\u0170"+ "\54\122\3\0\16\122\1\0\12\122\1\242\51\122\3\0"+ "\16\122\1\0\7\122\1\344\54\122\3\0\16\122\1\0"+ "\17\122\1\u0132\44\122\3\0\16\122\1\0\4\122\1\u0171"+ "\57\122\3\0\16\122\1\0\30\122\1\242\33\122\3\0"+ "\16\122\1\0\20\122\1\u0172\43\122\3\0\16\122\1\0"+ "\23\122\1\u012e\40\122\3\0\16\122\1\0\20\122\1\242"+ "\43\122\3\0\16\122\1\0\4\122\1\u0173\57\122\3\0"+ "\16\122\1\0\15\122\1\u0174\46\122\3\0\16\122\1\0"+ "\17\122\1\u016d\44\122\3\0\16\122\1\0\10\122\1\u0171"+ "\53\122\3\0\16\122\1\0\3\122\1\243\60\122\3\0"+ "\16\122\1\0\14\122\1\u0175\3\122\1\u0176\43\122\3\0"+ "\16\122\1\0\20\122\1\353\43\122\3\0\16\122\1\0"+ "\16\122\1\u0171\45\122\3\0\16\122\1\0\3\122\1\u016d"+ "\60\122\3\0\16\122\1\0\24\122\2\242\36\122\3\0"+ "\16\122\1\0\12\122\1\u011e\51\122\3\0\16\122\1\0"+ "\30\122\1\370\33\122\3\0\16\122\1\0\7\122\1\u0177"+ "\54\122\3\0\16\122\1\0\7\122\1\u013b\54\122\3\0"+ "\16\122\1\0\24\122\1\u0171\37\122\3\0\16\122\1\0"+ "\30\122\1\u0178\33\122\3\0\16\122\1\0\7\122\1\u0131"+ "\54\122\3\0\16\122\1\0\24\122\1\321\37\122\3\0"+ "\16\122\1\0\14\122\1\u016d\47\122\3\0\16\122\1\0"+ "\27\122\1\370\34\122\3\0\16\122\1\0\3\122\1\u0135"+ "\60\122\3\0\16\122\1\0\20\122\1\352\43\122\3\0"+ "\16\122\1\0\17\122\1\262\44\122\3\0\16\122\1\0"+ "\25\122\1\242\36\122\3\0\16\122\1\0\23\122\1\252"+ "\40\122\3\0\16\122\1\0\5\122\1\344\4\122\1\u0179"+ "\51\122\3\0\16\122\1\0\13\122\1\u017a\50\122\3\0"+ "\16\122\1\0\20\122\1\u017b\43\122\3\0\16\122\1\0"+ "\24\122\1\370\37\122\3\0\16\122\1\0\47\122\1\u017c"+ "\14\122\3\0\16\122\1\0\63\122\1\242\3\0\16\122"+ "\1\0\6\122\1\370\55\122\3\0\16\122\1\0\10\122"+ "\1\u017d\53\122\3\0\12\122\1\0\3\35\3\0\4\35"+ "\1\u017e\51\35\1\u017e\3\35\5\0\1\35\5\0\1\35"+ "\2\0\3\35\3\0\21\35\1\u017f\11\35\1\u017f\26\35"+ "\5\0\1\35\5\0\1\35\1\0\21\34\1\u0180\24\34"+ "\1\u0180\32\34\1\0\32\34\1\u0181\24\34\1\u0181\25\34"+ "\1\0\4\34\17\67\1\u0182\24\67\1\u0182\26\67\1\216"+ "\37\67\1\u0183\26\67\1\u0183\16\67\1\216\12\67\73\u0162"+ "\1\u0184\10\u0162\1\u0185\1\u0162\25\100\1\u0186\26\100\1\u0186"+ "\16\100\1\225\27\100\1\u0187\25\100\1\u0187\27\100\1\225"+ "\12\100\15\112\1\u0188\25\112\1\u0188\27\112\1\234\21\112"+ "\1\u0189\6\112\1\u0189\54\112\1\234\12\112\4\122\1\0"+ "\27\122\1\242\34\122\3\0\16\122\1\0\23\122\1\u0138"+ "\40\122\3\0\16\122\1\0\23\122\1\u018a\40\122\3\0"+ "\16\122\1\0\15\122\1\353\46\122\3\0\16\122\1\0"+ "\24\122\1\353\37\122\3\0\16\122\1\0\17\122\1\242"+ "\44\122\3\0\16\122\1\0\10\122\1\242\53\122\3\0"+ "\16\122\1\0\22\122\1\u016d\41\122\3\0\16\122\1\0"+ "\13\122\1\u016a\50\122\3\0\16\122\1\0\22\122\1\242"+ "\41\122\3\0\16\122\1\0\5\122\1\242\56\122\3\0"+ "\16\122\1\0\10\122\1\353\53\122\3\0\16\122\1\0"+ "\17\122\1\370\44\122\3\0\16\122\1\0\15\122\1\u0138"+ "\46\122\3\0\16\122\1\0\23\122\1\u018b\40\122\3\0"+ "\16\122\1\0\10\122\1\u018c\53\122\3\0\16\122\1\0"+ "\13\122\1\u016a\13\122\1\242\34\122\3\0\16\122\1\0"+ "\10\122\1\u0138\53\122\3\0\16\122\1\0\32\122\1\u018c"+ "\1\u018d\30\122\3\0\16\122\1\0\7\122\1\321\54\122"+ "\3\0\16\122\1\0\14\122\1\u0171\47\122\3\0\16\122"+ "\1\0\43\122\1\242\20\122\3\0\16\122\1\0\20\122"+ "\1\321\43\122\3\0\12\122\1\0\3\35\3\0\12\35"+ "\1\u018e\24\35\1\u018e\22\35\5\0\1\35\5\0\1\35"+ "\2\0\3\35\3\0\16\35\1\u018f\26\35\1\u018f\14\35"+ "\5\0\1\35\5\0\1\35\1\0\26\34\1\u0190\24\34"+ "\1\u0190\25\34\1\0\17\34\1\u0191\51\34\1\u0191\13\34"+ "\1\0\4\34\25\67\1\u0192\26\67\1\u0192\16\67\1\216"+ "\26\67\1\u0193\30\67\1\u0193\25\67\1\216\12\67\73\u0162"+ "\1\u0184\3\u0162\1\u0194\4\u0162\1\u0185\74\u0162\1\u0184\10\u0162"+ "\1\220\1\u0162\15\100\1\u0195\25\100\1\u0195\27\100\1\225"+ "\105\100\1\225\5\100\1\u0196\4\100\7\112\1\u0197\6\112"+ "\1\u0197\54\112\1\234\33\112\1\u0198\24\112\1\u0198\24\112"+ "\1\234\12\112\4\122\1\0\25\122\1\242\36\122\1\0"+ "\1\u0112\1\0\16\122\1\0\5\122\1\u0199\56\122\1\0"+ "\1\u0112\1\0\16\122\1\0\34\122\1\242\27\122\3\0"+ "\16\122\1\0\31\122\1\242\2\122\1\242\27\122\3\0"+ "\12\122\1\0\3\35\3\0\6\35\1\u019a\25\35\1\u019a"+ "\25\35\5\0\1\35\5\0\1\35\1\0\13\34\1\u019b"+ "\51\34\1\u019b\13\34\1\0\21\34\1\u019c\25\34\1\u019c"+ "\35\34\1\0\4\34\14\67\1\u019d\30\67\1\u019d\25\67"+ "\1\216\25\67\1\u019e\51\67\1\u019e\5\67\1\216\12\67"+ "\12\u0162\1\u019f\53\u0162\1\u019f\4\u0162\1\u0184\10\u0162\1\u0185"+ "\1\u0162\73\100\1\225\5\100\1\0\4\100\21\112\1\u01a0"+ "\24\112\1\u01a0\24\112\1\234\42\112\1\u01a1\11\112\1\u01a1"+ "\30\112\1\234\12\112\4\122\1\0\21\122\1\325\42\122"+ "\3\0\12\122\1\0\3\35\3\0\21\35\1\u01a2\11\35"+ "\1\u01a2\26\35\5\0\1\35\5\0\1\35\1\0\15\34"+ "\1\0\25\34\1\0\35\34\1\0\4\34\13\67\1\u01a3"+ "\51\67\1\u01a3\5\67\1\216\33\67\1\u01a4\24\67\1\u01a4"+ "\24\67\1\216\12\67\17\u0162\1\u01a5\24\u0162\1\u01a5\26\u0162"+ "\1\u0184\10\u0162\1\u0185\1\u0162\30\112\1\u01a6\11\112\1\u01a6"+ "\30\112\1\234\37\112\1\u01a7\26\112\1\u01a7\16\112\1\234"+ "\12\112\21\67\1\u01a8\24\67\1\u01a8\24\67\1\216\105\67"+ "\1\216\5\67\1\u0196\4\67\25\u0162\1\u01a9\26\u0162\1\u01a9"+ "\16\u0162\1\u0184\10\u0162\1\u0185\1\u0162\25\112\1\u01aa\26\112"+ "\1\u01aa\16\112\1\234\27\112\1\u01ab\25\112\1\u01ab\27\112"+ "\1\234\12\112\73\67\1\216\5\67\1\0\4\67\14\u0162"+ "\1\u01ac\30\u0162\1\u01ac\25\u0162\1\u0184\10\u0162\1\u0185\1\u0162"+ "\15\112\1\u01ad\25\112\1\u01ad\27\112\1\234\42\112\1\u01ae"+ "\11\112\1\u01ae\30\112\1\234\12\112\13\u0162\1\u01af\51\u0162"+ "\1\u01af\5\u0162\1\u0184\10\u0162\1\u0185\1\u0162\30\112\1\u01b0"+ "\11\112\1\u01b0\30\112\1\234\105\112\1\234\5\112\1\u0196"+ "\4\112\21\u0162\1\u01b1\24\u0162\1\u01b1\24\u0162\1\u0184\10\u0162"+ "\1\u0185\1\u0162\73\112\1\234\5\112\1\0\4\112\73\u0162"+ "\1\u0184\5\u0162\1\u01b2\2\u0162\1\u0185\1\u0162\104\u01b2\1\u01b3"+ "\105\u01b2\1\u01b4\1\u01b2\4\0\2\u01b4\73\0\1\u01b5\2\0"+ "\1\u01b6\105\0\1\u01b2\1\0"; /** * The transition table of the DFA */ final private static int yytrans [] = yy_unpack(); /* error codes */ final private static int YY_UNKNOWN_ERROR = 0; final private static int YY_ILLEGAL_STATE = 1; final private static int YY_NO_MATCH = 2; final private static int YY_PUSHBACK_2BIG = 3; /* error messages for the codes above */ final private static String YY_ERROR_MSG[] = { "Unkown internal scanner error", "Internal error: unknown state", "Error: could not match input", "Error: pushback value was too large" }; /** * YY_ATTRIBUTE[aState] contains the attributes of state <code>aState</code> */ private final static byte YY_ATTRIBUTE[] = { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 9, 1, 1, 9, 9, 1, 1, 1, 1, 1, 9, 1, 9, 1, 1, 1, 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, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 9, 0, 1, 1, 1, 0, 9, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 9, 0 }; /** the input device */ private java.io.Reader yy_reader; /** the current state of the DFA */ private int yy_state; /** the current lexical state */ private int yy_lexical_state = YYINITIAL; /** this buffer contains the current text to be matched and is the source of the yytext() string */ private char yy_buffer[] = new char[YY_BUFFERSIZE]; /** the textposition at the last accepting state */ private int yy_markedPos; /** the textposition at the last state to be included in yytext */ private int yy_pushbackPos; /** the current text position in the buffer */ private int yy_currentPos; /** startRead marks the beginning of the yytext() string in the buffer */ private int yy_startRead; /** endRead marks the last character in the buffer, that has been read from input */ private int yy_endRead; /** number of newlines encountered up to the start of the matched text */ private int yyline; /** the number of characters up to the start of the matched text */ private int yychar; /** * the number of characters from the last newline up to the start of the * matched text */ private int yycolumn; /** * yy_atBOL == true <=> the scanner is currently at the beginning of a line */ private boolean yy_atBOL = true; /** yy_atEOF == true <=> the scanner is at the EOF */ private boolean yy_atEOF; /* user code: */ private int lastToken; private int nextState=YYINITIAL; /** * next Token method that allows you to control if whitespace and comments are * returned as tokens. */ public Token getNextToken(boolean returnComments, boolean returnWhiteSpace)throws IOException{ Token t = getNextToken(); while (t != null && ((!returnWhiteSpace && t.isWhiteSpace()) || (!returnComments && t.isComment()))){ t = getNextToken(); } return (t); } /** * Prints out tokens from a file or System.in. * If no arguments are given, System.in will be used for input. * If more arguments are given, the first argument will be used as * the name of the file to use as input * * @param args program arguments, of which the first is a filename */ public static void main(String[] args) { InputStream in; try { if (args.length > 0){ File f = new File(args[0]); if (f.exists()){ if (f.canRead()){ in = new FileInputStream(f); } else { throw new IOException("Could not open " + args[0]); } } else { throw new IOException("Could not find " + args[0]); } } else { in = System.in; } HTMLLexer1 shredder = new HTMLLexer1(in); Token t; while ((t = shredder.getNextToken()) != null) { if (t.getID() != CToken.WHITE_SPACE){ System.out.println(t); } } } catch (IOException e){ System.out.println(e.getMessage()); } } /** * Closes the current input stream, and resets the scanner to read from a new input stream. * All internal variables are reset, the old input stream cannot be reused * (content of the internal buffer is discarded and lost). * The lexical state is set to the initial state. * Subsequent tokens read from the lexer will start with the line, char, and column * values given here. * * @param reader The new input. * @param yyline The line number of the first token. * @param yychar The position (relative to the start of the stream) of the first token. * @param yycolumn The position (relative to the line) of the first token. * @throws IOException if an IOExecption occurs while switching readers. */ public void reset(java.io.Reader reader, int yyline, int yychar, int yycolumn) throws IOException{ yyreset(reader); this.yyline = yyline; this.yychar = yychar; this.yycolumn = yycolumn; } /** * Creates a new scanner * There is also a java.io.InputStream version of this constructor. * * @param in the java.io.Reader to read input from. */ public HTMLLexer1(java.io.Reader in) { this.yy_reader = in; } /** * Creates a new scanner. * There is also java.io.Reader version of this constructor. * * @param in the java.io.Inputstream to read input from. */ public HTMLLexer1(java.io.InputStream in) { this(new java.io.InputStreamReader(in)); } /** * Unpacks the split, compressed DFA transition table. * * @return the unpacked transition table */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -