📄 lexscan.java
字号:
/* The following code was generated by JFlex 1.4.2 on 5/28/08 7:17 PM *//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * JFlex 1.4.2 * * Copyright (C) 1998-2008 Gerwin Klein <lsf@jflex.de> * * All rights reserved. * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License. See the file * * COPYRIGHT for more information. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License along * * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */package JFlex;import java_cup.runtime.Symbol;import java.util.Vector;import java.io.*;import java.util.Stack;/** * The lexer of JFlex. * * Generated by <a href="http://www.jflex.de/">JFlex</a>. * * @author Gerwin Klein * @version JFlex 1.4.2, $Revision: 358 $, $Date: 2008-05-27 16:28:29 +1000 (Tue, 27 May 2008) $ */public final class LexScan implements sym, java_cup.runtime.Scanner { /** This character denotes the end of file */ public static final int YYEOF = -1; /** initial size of the lookahead buffer */ private static final int ZZ_BUFFERSIZE = 16384; /** lexical states */ public static final int STRING_CONTENT = 16; public static final int REGEXPSTART = 8; public static final int MACROS = 6; public static final int STATELIST = 4; public static final int CTOR_ARG = 26; public static final int EATWSPNL = 24; public static final int CHARCLASS = 18; public static final int JAVA_CODE = 12; public static final int REGEXP = 10; public static final int YYINITIAL = 0; public static final int REPEATEXP = 22; public static final int COMMENT = 2; public static final int STATES = 14; public static final int COPY = 20; /** * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l * at the beginning of a line * l is of the form l = 2*k, k a non negative integer */ private static final int ZZ_LEXSTATE[] = { 0, 0, 1, 1, 2, 2, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14 }; /** * Translates characters to character classes */ private static final String ZZ_CMAP_PACKED = "\10\25\1\26\1\10\1\13\2\11\1\12\16\25\4\0\1\10\1\76"+ "\1\32\1\0\1\103\1\35\1\22\1\33\1\100\1\101\1\30\1\102"+ "\1\15\1\106\1\14\1\31\1\7\1\66\2\7\2\3\1\67\1\64"+ "\1\65\1\1\1\105\1\0\1\20\1\71\1\21\1\23\1\0\4\2"+ "\1\72\1\74\10\24\1\73\13\24\1\16\1\4\1\17\1\104\1\24"+ "\1\0\1\53\1\57\1\55\1\62\1\46\1\47\1\63\1\42\1\37"+ "\1\60\1\70\1\51\1\56\1\40\1\44\1\61\1\24\1\43\1\54"+ "\1\41\1\6\1\52\1\45\1\5\1\50\1\24\1\36\1\75\1\34"+ "\1\77\6\25\1\27\32\25\2\0\4\24\4\0\1\24\2\0\1\25"+ "\7\0\1\24\4\0\1\24\5\0\27\24\1\0\37\24\1\0\u013f\24"+ "\31\0\162\24\4\0\14\24\16\0\5\24\11\0\1\24\21\0\130\25"+ "\5\0\23\25\12\0\1\24\13\0\1\24\1\0\3\24\1\0\1\24"+ "\1\0\24\24\1\0\54\24\1\0\46\24\1\0\5\24\4\0\202\24"+ "\1\0\4\25\3\0\105\24\1\0\46\24\2\0\2\24\6\0\20\24"+ "\41\0\46\24\2\0\1\24\7\0\47\24\11\0\21\25\1\0\27\25"+ "\1\0\3\25\1\0\1\25\1\0\2\25\1\0\1\25\13\0\33\24"+ "\5\0\3\24\15\0\4\25\14\0\6\25\13\0\32\24\5\0\13\24"+ "\16\25\7\0\12\25\4\0\2\24\1\25\143\24\1\0\1\24\10\25"+ "\1\0\6\25\2\24\2\25\1\0\4\25\2\24\12\25\3\24\2\0"+ "\1\24\17\0\1\25\1\24\1\25\36\24\33\25\2\0\3\24\60\0"+ "\46\24\13\25\1\24\u014f\0\3\25\66\24\2\0\1\25\1\24\20\25"+ "\2\0\1\24\4\25\3\0\12\24\2\25\2\0\12\25\21\0\3\25"+ "\1\0\10\24\2\0\2\24\2\0\26\24\1\0\7\24\1\0\1\24"+ "\3\0\4\24\2\0\1\25\1\24\7\25\2\0\2\25\2\0\3\25"+ "\11\0\1\25\4\0\2\24\1\0\3\24\2\25\2\0\12\25\4\24"+ "\15\0\3\25\1\0\6\24\4\0\2\24\2\0\26\24\1\0\7\24"+ "\1\0\2\24\1\0\2\24\1\0\2\24\2\0\1\25\1\0\5\25"+ "\4\0\2\25\2\0\3\25\13\0\4\24\1\0\1\24\7\0\14\25"+ "\3\24\14\0\3\25\1\0\11\24\1\0\3\24\1\0\26\24\1\0"+ "\7\24\1\0\2\24\1\0\5\24\2\0\1\25\1\24\10\25\1\0"+ "\3\25\1\0\3\25\2\0\1\24\17\0\2\24\2\25\2\0\12\25"+ "\1\0\1\24\17\0\3\25\1\0\10\24\2\0\2\24\2\0\26\24"+ "\1\0\7\24\1\0\2\24\1\0\5\24\2\0\1\25\1\24\6\25"+ "\3\0\2\25\2\0\3\25\10\0\2\25\4\0\2\24\1\0\3\24"+ "\4\0\12\25\1\0\1\24\20\0\1\25\1\24\1\0\6\24\3\0"+ "\3\24\1\0\4\24\3\0\2\24\1\0\1\24\1\0\2\24\3\0"+ "\2\24\3\0\3\24\3\0\10\24\1\0\3\24\4\0\5\25\3\0"+ "\3\25\1\0\4\25\11\0\1\25\17\0\11\25\11\0\1\24\7\0"+ "\3\25\1\0\10\24\1\0\3\24\1\0\27\24\1\0\12\24\1\0"+ "\5\24\4\0\7\25\1\0\3\25\1\0\4\25\7\0\2\25\11\0"+ "\2\24\4\0\12\25\22\0\2\25\1\0\10\24\1\0\3\24\1\0"+ "\27\24\1\0\12\24\1\0\5\24\2\0\1\25\1\24\7\25\1\0"+ "\3\25\1\0\4\25\7\0\2\25\7\0\1\24\1\0\2\24\4\0"+ "\12\25\22\0\2\25\1\0\10\24\1\0\3\24\1\0\27\24\1\0"+ "\20\24\4\0\6\25\2\0\3\25\1\0\4\25\11\0\1\25\10\0"+ "\2\24\4\0\12\25\22\0\2\25\1\0\22\24\3\0\30\24\1\0"+ "\11\24\1\0\1\24\2\0\7\24\3\0\1\25\4\0\6\25\1\0"+ "\1\25\1\0\10\25\22\0\2\25\15\0\60\24\1\25\2\24\7\25"+ "\4\0\10\24\10\25\1\0\12\25\47\0\2\24\1\0\1\24\2\0"+ "\2\24\1\0\1\24\2\0\1\24\6\0\4\24\1\0\7\24\1\0"+ "\3\24\1\0\1\24\1\0\1\24\2\0\2\24\1\0\4\24\1\25"+ "\2\24\6\25\1\0\2\25\1\24\2\0\5\24\1\0\1\24\1\0"+ "\6\25\2\0\12\25\2\0\2\24\42\0\1\24\27\0\2\25\6\0"+ "\12\25\13\0\1\25\1\0\1\25\1\0\1\25\4\0\2\25\10\24"+ "\1\0\42\24\6\0\24\25\1\0\2\25\4\24\4\0\10\25\1\0"+ "\44\25\11\0\1\25\71\0\42\24\1\0\5\24\1\0\2\24\1\0"+ "\7\25\3\0\4\25\6\0\12\25\6\0\6\24\4\25\106\0\46\24"+ "\12\0\51\24\7\0\132\24\5\0\104\24\5\0\122\24\6\0\7\24"+ "\1\0\77\24\1\0\1\24\1\0\4\24\2\0\7\24\1\0\1\24"+ "\1\0\4\24\2\0\47\24\1\0\1\24\1\0\4\24\2\0\37\24"+ "\1\0\1\24\1\0\4\24\2\0\7\24\1\0\1\24\1\0\4\24"+ "\2\0\7\24\1\0\7\24\1\0\27\24\1\0\37\24\1\0\1\24"+ "\1\0\4\24\2\0\7\24\1\0\47\24\1\0\23\24\16\0\11\25"+ "\56\0\125\24\14\0\u026c\24\2\0\10\24\12\0\32\24\5\0\113\24"+ "\3\0\3\24\17\0\15\24\1\0\4\24\3\25\13\0\22\24\3\25"+ "\13\0\22\24\2\25\14\0\15\24\1\0\3\24\1\0\2\25\14\0"+ "\64\24\40\25\3\0\1\24\3\0\2\24\1\25\2\0\12\25\41\0"+ "\3\25\2\0\12\25\6\0\130\24\10\0\51\24\1\25\126\0\35\24"+ "\3\0\14\25\4\0\14\25\12\0\12\25\36\24\2\0\5\24\u038b\0"+ "\154\24\224\0\234\24\4\0\132\24\6\0\26\24\2\0\6\24\2\0"+ "\46\24\2\0\6\24\2\0\10\24\1\0\1\24\1\0\1\24\1\0"+ "\1\24\1\0\37\24\2\0\65\24\1\0\7\24\1\0\1\24\3\0"+ "\3\24\1\0\7\24\3\0\4\24\2\0\6\24\4\0\15\24\5\0"+ "\3\24\1\0\7\24\17\0\4\25\30\0\2\11\5\25\20\0\2\24"+ "\23\0\1\24\13\0\4\25\6\0\6\25\1\0\1\24\15\0\1\24"+ "\40\0\22\24\36\0\15\25\4\0\1\25\3\0\6\25\27\0\1\24"+ "\4\0\1\24\2\0\12\24\1\0\1\24\3\0\5\24\6\0\1\24"+ "\1\0\1\24\1\0\1\24\1\0\4\24\1\0\3\24\1\0\7\24"+ "\3\0\3\24\5\0\5\24\26\0\44\24\u0e81\0\3\24\31\0\11\24"+ "\6\25\1\0\5\24\2\0\5\24\4\0\126\24\2\0\2\25\2\0"+ "\3\24\1\0\137\24\5\0\50\24\4\0\136\24\21\0\30\24\70\0"+ "\20\24\u0200\0\u19b6\24\112\0\u51a6\24\132\0\u048d\24\u0773\0\u2ba4\24\u215c\0"+ "\u012e\24\2\0\73\24\225\0\7\24\14\0\5\24\5\0\1\24\1\25"+ "\12\24\1\0\15\24\1\0\5\24\1\0\1\24\1\0\2\24\1\0"+ "\2\24\1\0\154\24\41\0\u016b\24\22\0\100\24\2\0\66\24\50\0"+ "\15\24\3\0\20\25\20\0\4\25\17\0\2\24\30\0\3\24\31\0"+ "\1\24\6\0\5\24\1\0\207\24\2\0\1\25\4\0\1\24\13\0"+ "\12\25\7\0\32\24\4\0\1\24\1\0\32\24\12\0\132\24\3\0"+ "\6\24\2\0\6\24\2\0\6\24\2\0\3\24\3\0\2\24\3\0"+ "\2\24\22\0\3\25\4\0"; /** * Translates characters to character classes */ private static final char [] ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED); /** * Translates DFA states to action switch labels. */ private static final int [] ZZ_ACTION = zzUnpackAction(); private static final String ZZ_ACTION_PACKED_0 = "\1\1\1\2\15\0\1\1\2\3\1\1\1\2\3\4"+ "\1\5\1\6\2\7\1\6\1\10\2\6\1\4\1\11"+ "\1\12\1\6\1\11\1\13\1\14\1\4\1\15\2\16"+ "\1\6\2\17\1\20\1\21\1\16\1\22\1\23\1\24"+ "\1\25\1\26\1\27\1\30\1\31\1\32\1\33\1\34"+ "\1\35\1\36\1\37\3\4\1\40\1\41\1\6\1\42"+ "\1\43\1\44\1\4\2\45\1\46\1\16\1\47\1\50"+ "\1\51\1\52\1\16\1\53\1\54\1\4\2\44\1\4"+ "\1\55\1\4\1\56\1\13\1\57\1\60\1\61\3\0"+ "\1\62\1\63\1\0\1\64\1\0\2\11\1\0\15\11"+ "\3\0\1\65\1\11\1\66\1\11\2\0\1\67\1\6"+ "\1\70\1\71\2\70\1\71\1\72\1\73\1\74\1\75"+ "\1\76\1\0\1\77\2\0\1\100\1\101\3\0\2\102"+ "\10\0\1\103\1\104\2\103\1\104\1\105\1\106\1\107"+ "\1\110\1\111\1\112\3\0\1\113\5\0\1\114\1\0"+ "\1\60\1\61\2\6\1\11\2\115\35\11\3\0\2\116"+ "\1\11\2\117\1\11\1\0\1\71\1\0\1\120\6\0"+ "\1\121\1\122\1\0\1\37\4\0\1\104\1\0\1\123"+ "\1\124\2\125\3\0\2\11\1\126\24\11\1\127\12\11"+ "\3\0\2\11\1\0\2\120\14\0\2\123\3\0\20\11"+ "\1\130\3\11\1\131\10\11\1\132\6\11\1\133\1\11"+ "\1\134\1\130\1\0\2\11\1\0\1\120\13\0\1\123"+ "\5\0\11\11\1\0\1\11\1\135\5\11\1\136\1\137"+ "\17\11\1\140\1\141\2\11\7\0\2\37\10\0\2\142"+ "\3\0\11\11\1\143\1\0\11\11\1\144\4\11\1\145"+ "\1\0\3\11\1\146\1\147\2\11\6\0\1\150\1\37"+ "\3\0\1\37\6\0\2\151\4\0\1\141\1\11\1\152"+ "\1\126\3\11\1\153\2\154\1\143\4\0\11\11\2\155"+ "\2\11\1\156\1\11\2\157\1\11\1\160\6\0\1\37"+ "\6\0\1\37\13\0\1\11\1\161\2\11\1\154\1\162"+ "\1\154\1\143\3\0\2\11\1\163\2\11\1\164\3\11"+ "\1\155\1\165\1\155\1\166\1\0\1\11\1\156\1\0"+ "\1\167\1\157\2\170\1\157\4\0\1\171\1\172\2\37"+ "\4\0\2\37\7\0\2\173\1\0\3\11\2\162\2\143"+ "\1\174\2\175\1\0\1\11\1\0\5\11\2\165\2\0"+ "\1\11\1\0\2\170\2\0\1\176\2\0\1\37\2\0"+ "\2\37\4\0\1\37\2\0\2\37\7\0\2\177\1\11"+ "\1\162\1\0\1\143\1\0\1\174\1\0\1\175\1\200"+ "\1\175\2\0\2\11\1\201\1\11\1\202\1\203\2\204"+ "\1\165\1\0\1\205\3\0\1\205\1\0\1\205\1\156"+ "\3\0\1\206\1\0\4\37\3\0\4\37\3\0\2\207"+ "\1\0\1\177\1\210\1\177\1\211\3\0\2\200\2\0"+ "\2\11\1\201\2\212\1\204\1\213\1\204\12\0\3\37"+ "\5\0\3\37\1\0\2\214\1\0\2\210\2\143\1\174"+ "\1\200\3\0\2\11\1\212\1\215\1\212\2\213\1\205"+ "\2\0\1\216\1\217\4\0\1\37\3\0\1\37\2\220"+ "\1\210\1\0\1\143\1\163\1\0\1\163\1\11\2\215"+ "\1\213\1\0\2\205\1\0\1\205\3\0\1\37\2\0"+ "\1\37\2\221\1\215\10\0\1\222\3\205"; private static int [] zzUnpackAction() { int [] result = new int[826]; int offset = 0; offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); return result; } private static int zzUnpackAction(String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -