📄 mjscanner.java~
字号:
/* The following code was generated by JFlex 1.4.1 on 07-6-6 上午12:19 */package edu.ustc.cs.minijool.parser;
import java_cup.runtime.*;
/** * This class is a scanner generated by * <a href="http://www.jflex.de/">JFlex</a> 1.4.1 * on 07-6-6 上午12:19 from the specification file * <tt>/home/taotao/workspace/Lab3/JFlex/MiniJOOL.flex</tt> */public class MJScanner implements 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 YYINITIAL = 0; /** * Translates characters to character classes */ private static final String ZZ_CMAP_PACKED = "\11\0\1\5\1\2\1\0\2\2\22\0\1\3\1\56\1\1\2\12"+ "\1\54\1\57\1\15\1\42\1\43\1\53\1\51\1\47\1\52\1\50"+ "\1\4\12\11\1\12\1\46\1\62\1\55\1\61\2\12\32\7\1\40"+ "\1\13\1\41\3\12\1\20\1\24\1\22\1\31\1\27\1\35\1\37"+ "\1\34\1\21\2\7\1\26\1\7\1\23\1\25\2\7\1\14\1\16"+ "\1\17\1\36\1\30\1\33\1\32\2\7\1\44\1\60\1\45\1\12"+ "\53\0\1\6\12\0\1\6\4\0\1\6\5\0\27\6\1\0\37\6"+ "\1\0\u013f\6\31\0\162\6\4\0\14\6\16\0\5\6\11\0\1\6"+ "\213\0\1\6\13\0\1\6\1\0\3\6\1\0\1\6\1\0\24\6"+ "\1\0\54\6\1\0\46\6\1\0\5\6\4\0\202\6\10\0\105\6"+ "\1\0\46\6\2\0\2\6\6\0\20\6\41\0\46\6\2\0\1\6"+ "\7\0\47\6\110\0\33\6\5\0\3\6\56\0\32\6\5\0\13\6"+ "\25\0\12\10\4\0\2\6\1\0\143\6\1\0\1\6\17\0\2\6"+ "\7\0\2\6\12\10\3\6\2\0\1\6\20\0\1\6\1\0\36\6"+ "\35\0\3\6\60\0\46\6\13\0\1\6\u0152\0\66\6\3\0\1\6"+ "\22\0\1\6\7\0\12\6\4\0\12\10\25\0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"+ "\104\6\5\0\122\6\6\0\7\6\1\0\77\6\1\0\1\6\1\0"+ "\4\6\2\0\7\6\1\0\1\6\1\0\4\6\2\0\47\6\1\0"+ "\1\6\1\0\4\6\2\0\37\6\1\0\1\6\1\0\4\6\2\0"+ "\7\6\1\0\1\6\1\0\4\6\2\0\7\6\1\0\7\6\1\0"+ "\27\6\1\0\37\6\1\0\1\6\1\0\4\6\2\0\7\6\1\0"+ "\47\6\1\0\23\6\16\0\11\10\56\0\125\6\14\0\u026c\6\2\0"+ "\10\6\12\0\32\6\5\0\113\6\25\0\15\6\1\0\4\6\16\0"+ "\22\6\16\0\22\6\16\0\15\6\1\0\3\6\17\0\64\6\43\0"+ "\1\6\4\0\1\6\3\0\12\10\46\0\12\10\6\0\130\6\10\0"+ "\51\6\127\0\35\6\51\0\12\10\36\6\2\0\5\6\u038b\0\154\6"+ "\224\0\234\6\4\0\132\6\6\0\26\6\2\0\6\6\2\0\46\6"+ "\2\0\6\6\2\0\10\6\1\0\1\6\1\0\1\6\1\0\1\6"+ "\1\0\37\6\2\0\65\6\1\0\7\6\1\0\1\6\3\0\3\6"+ "\1\0\7\6\3\0\4\6\2\0\6\6\4\0\15\6\5\0\3\6"+ "\1\0\7\6\164\0\1\6\15\0\1\6\202\0\1\6\4\0\1\6"+ "\2\0\12\6\1\0\1\6\3\0\5\6\6\0\1\6\1\0\1\6"+ "\1\0\1\6\1\0\4\6\1\0\3\6\1\0\7\6\3\0\3\6"+ "\5\0\5\6\u0ebb\0\2\6\52\0\5\6\5\0\2\6\4\0\126\6"+ "\6\0\3\6\1\0\132\6\1\0\4\6\5\0\50\6\4\0\136\6"+ "\21\0\30\6\70\0\20\6\u0200\0\u19b6\6\112\0\u51a6\6\132\0\u048d\6"+ "\u0773\0\u2ba4\6\u215c\0\u012e\6\2\0\73\6\225\0\7\6\14\0\5\6"+ "\5\0\1\6\1\0\12\6\1\0\15\6\1\0\5\6\1\0\1\6"+ "\1\0\2\6\1\0\2\6\1\0\154\6\41\0\u016b\6\22\0\100\6"+ "\2\0\66\6\50\0\14\6\164\0\5\6\1\0\207\6\23\0\12\10"+ "\7\0\32\6\6\0\32\6\13\0\131\6\3\0\6\6\2\0\6\6"+ "\2\0\6\6\2\0\3\6\43\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\0\2\1\1\2\1\3\1\4\1\5\13\4\1\6"+ "\1\7\1\10\1\11\1\12\1\13\1\14\1\15\1\16"+ "\1\17\1\20\1\21\1\22\1\23\1\24\2\1\1\25"+ "\1\26\1\27\2\0\1\2\1\30\5\4\1\31\11\4"+ "\1\32\1\33\1\34\1\35\1\36\1\37\1\40\1\41"+ "\1\42\1\43\1\44\1\45\5\4\1\46\1\4\1\47"+ "\7\4\1\50\1\51\3\4\1\52\1\53\1\4\1\54"+ "\1\4\1\55\1\4\1\56\4\4\1\57\2\4\1\60"+ "\1\61\1\62\1\63\2\4\1\64\1\65"; private static int [] zzUnpackAction() { int [] result = new int[112]; 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 */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } /** * Translates a state to a row index in the transition table */ private static final int [] ZZ_ROWMAP = zzUnpackRowMap(); private static final String ZZ_ROWMAP_PACKED_0 = "\0\0\0\63\0\146\0\63\0\231\0\314\0\377\0\u0132"+ "\0\u0165\0\u0198\0\u01cb\0\u01fe\0\u0231\0\u0264\0\u0297\0\u02ca"+ "\0\u02fd\0\u0330\0\63\0\63\0\63\0\63\0\63\0\63"+ "\0\63\0\63\0\63\0\u0363\0\u0396\0\u03c9\0\u03fc\0\u042f"+ "\0\u0462\0\u0495\0\u04c8\0\u04fb\0\u052e\0\63\0\146\0\u0561"+ "\0\u0594\0\63\0\u05c7\0\u05fa\0\u062d\0\u0660\0\u0693\0\314"+ "\0\u06c6\0\u06f9\0\u072c\0\u075f\0\u0792\0\u07c5\0\u07f8\0\u082b"+ "\0\u085e\0\63\0\63\0\63\0\63\0\63\0\63\0\63"+ "\0\63\0\63\0\u0891\0\63\0\u08c4\0\u08f7\0\u092a\0\u095d"+ "\0\u0990\0\u09c3\0\314\0\u09f6\0\314\0\u0a29\0\u0a5c\0\u0a8f"+ "\0\u0ac2\0\u0af5\0\u0b28\0\u0b5b\0\63\0\63\0\u0b8e\0\u0bc1"+ "\0\u0bf4\0\314\0\314\0\u0c27\0\314\0\u0c5a\0\314\0\u0c8d"+ "\0\314\0\u0cc0\0\u0cf3\0\u0d26\0\u0d59\0\314\0\u0d8c\0\u0dbf"+ "\0\314\0\314\0\314\0\314\0\u0df2\0\u0e25\0\314\0\314"; private static int [] zzUnpackRowMap() { int [] result = new int[112]; int offset = 0; offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); return result; } private static int zzUnpackRowMap(String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int high = packed.charAt(i++) << 16; result[j++] = high | packed.charAt(i++); } return j; } /** * The transition table of the DFA */ private static final int [] ZZ_TRANS = zzUnpackTrans(); private static final String ZZ_TRANS_PACKED_0 = "\1\2\1\3\2\4\1\5\1\4\2\6\2\7\2\2"+ "\1\10\1\2\1\11\1\12\1\6\1\13\1\14\1\15"+ "\1\16\2\6\1\17\1\20\2\6\1\21\1\6\1\22"+ "\2\6\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\1\40\1\41"+ "\1\42\1\43\1\44\1\45\64\0\1\46\1\0\2\47"+ "\2\0\1\47\1\0\2\47\1\50\47\47\4\0\1\51"+ "\50\0\1\52\13\0\4\6\2\0\1\6\1\0\22\6"+ "\33\0\2\7\57\0\4\6\2\0\1\6\1\0\11\6"+ "\1\53\10\6\31\0\4\6\2\0\1\6\1\0\1\6"+ "\1\54\20\6\31\0\4\6\2\0\1\55\1\0\16\6"+ "\1\56\3\6\31\0\4\6\2\0\1\6\1\0\5\6"+ "\1\57\11\6\1\60\2\6\31\0\4\6\2\0\1\6"+ "\1\0\10\6\1\61\11\6\31\0\4\6\2\0\1\6"+ "\1\0\11\6\1\62\6\6\1\63\1\6\31\0\4\6"+ "\2\0\1\6\1\0\7\6\1\64\12\6\31\0\4\6"+ "\2\0\1\6\1\0\10\6\1\65\3\6\1\66\5\6"+ "\31\0\4\6\2\0\1\6\1\0\7\6\1\67\12\6"+ "\31\0\4\6\2\0\1\6\1\0\16\6\1\70\3\6"+ "\31\0\4\6\2\0\1\6\1\0\2\6\1\71\17\6"+ "\100\0\1\72\62\0\1\73\62\0\1\74\62\0\1\75"+ "\62\0\1\76\62\0\1\77\64\0\1\100\63\0\1\101"+ "\57\0\1\102\3\0\1\103\56\0\1\104\4\0\1\105"+ "\1\0\1\47\11\0\3\47\1\0\1\47\3\0\1\47"+ "\11\0\1\47\26\0\1\51\1\0\3\51\1\0\1\51"+ "\1\0\52\51\6\0\4\6\2\0\1\6\1\0\1\6"+ "\1\106\20\6\31\0\4\6\2\0\1\107\1\0\2\6"+ "\1\110\17\6\31\0\4\6\2\0\1\6\1\0\20\6"+ "\1\111\1\6\31\0\4\6\2\0\1\6\1\0\3\6"+ "\1\112\16\6\31\0\4\6\2\0\1\6\1\0\1\6"+ "\1\113\20\6\31\0\4\6\2\0\1\6\1\0\2\6"+ "\1\114\17\6\31\0\4\6\2\0\1\6\1\0\15\6"+ "\1\115\4\6\31\0\4\6\2\0\1\6\1\0\10\6"+ "\1\116\11\6\31\0\4\6\2\0\1\6\1\0\7\6"+ "\1\117\12\6\31\0\4\6\2\0\1\6\1\0\1\120"+ "\21\6\31\0\4\6\2\0\1\6\1\0\1\6\1\121"+ "\20\6\31\0\4\6\2\0\1\6\1\0\3\6\1\122"+ "\16\6\31\0\4\6\2\0\1\6\1\0\3\6\1\123"+ "\16\6\31\0\4\6\2\0\1\6\1\0\10\6\1\124"+ "\11\6\100\0\1\125\62\0\1\126\13\0\4\6\2\0"+ "\1\6\1\0\20\6\1\127\1\6\31\0\4\6\2\0"+ "\1\6\1\0\3\6\1\130\16\6\31\0\4\6\2\0"+ "\1\6\1\0\1\6\1\131\20\6\31\0\4\6\2\0"+ "\1\6\1\0\11\6\1\132\10\6\31\0\4\6\2\0"+ "\1\6\1\0\1\133\21\6\31\0\4\6\2\0\1\6"+ "\1\0\1\134\21\6\31\0\4\6\2\0\1\6\1\0"+ "\10\6\1\135\11\6\31\0\4\6\2\0\1\6\1\0"+ "\10\6\1\136\11\6\31\0\4\6\2\0\1\6\1\0"+ "\11\6\1\137\10\6\31\0\4\6\2\0\1\6\1\0"+ "\11\6\1\140\10\6\31\0\4\6\2\0\1\6\1\0"+ "\13\6\1\141\6\6\31\0\4\6\2\0\1\6\1\0"+ "\10\6\1\142\11\6\31\0\4\6\2\0\1\6\1\0"+ "\1\111\21\6\31\0\4\6\2\0\1\143\1\0\22\6"+ "\31\0\4\6\2\0\1\6\1\0\5\6\1\144\14\6"+ "\31\0\4\6\2\0\1\6\1\0\3\6\1\145\16\6"+ "\31\0\4\6\2\0\1\6\1\0\1\146\21\6\31\0"+ "\4\6\2\0\1\6\1\0\11\6\1\147\10\6\31\0"+ "\4\6\2\0\1\6\1\0\5\6\1\150\14\6\31\0"+ "\4\6\2\0\1\6\1\0\11\6\1\151\10\6\31\0"+ "\4\6\2\0\1\6\1\0\5\6\1\152\14\6\31\0"+ "\4\6\2\0\1\6\1\0\21\6\1\153\31\0\4\6"+ "\2\0\1\6\1\0\4\6\1\154\15\6\31\0\4\6"+ "\2\0\1\6\1\0\2\6\1\155\17\6\31\0\4\6"+ "\2\0\1\6\1\0\13\6\1\156\6\6\31\0\4\6"+ "\2\0\1\6\1\0\5\6\1\157\14\6\31\0\4\6"+ "\2\0\1\6\1\0\1\160\21\6\23\0"; private static int [] zzUnpackTrans() { int [] result = new int[3672]; int offset = 0; offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); return result; } private static int zzUnpackTrans(String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); value--; do result[j++] = value; while (--count > 0); } return j; } /* error codes */ private static final int ZZ_UNKNOWN_ERROR = 0; private static final int ZZ_NO_MATCH = 1; private static final int ZZ_PUSHBACK_2BIG = 2; /* error messages for the codes above */ private static final String ZZ_ERROR_MSG[] = { "Unkown internal scanner error", "Error: could not match input", "Error: pushback value was too large" }; /** * ZZ_ATTRIBUTE[aState] contains the attributes of state <code>aState</code> */ private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute(); private static final String ZZ_ATTRIBUTE_PACKED_0 = "\1\0\1\11\1\1\1\11\16\1\11\11\12\1\1\11"+ "\2\0\1\1\1\11\17\1\11\11\1\1\1\11\20\1"+ "\2\11\32\1"; private static int [] zzUnpackAttribute() { int [] result = new int[112]; int offset = 0; offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); return result; } private static int zzUnpackAttribute(String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } /** the input device */ private java.io.Reader zzReader; /** the current state of the DFA */ private int zzState; /** the current lexical state */ private int zzLexicalState = YYINITIAL; /** this buffer contains the current text to be matched and is the source of the yytext() string */ private char zzBuffer[] = new char[ZZ_BUFFERSIZE]; /** the textposition at the last accepting state */ private int zzMarkedPos; /** the textposition at the last state to be included in yytext */ private int zzPushbackPos; /** the current text position in the buffer */ private int zzCurrentPos; /** startRead marks the beginning of the yytext() string in the buffer */ private int zzStartRead; /** endRead marks the last character in the buffer, that has been read from input */ private int zzEndRead; /** 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;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -