⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exprlexer.java~

📁 实现的一个简单的语言编译器,可以编译类JAVA 的小语言
💻 JAVA~
📖 第 1 页 / 共 3 页
字号:
/* The following code was generated by JFlex 1.4.1 on 08-6-20 下午9:10 */

package edu.ustc.cs.compile.parser.expr;

import java_cup.runtime.*;


/**
 * This class is a scanner generated by 
 * <a href="http://www.jflex.de/">JFlex</a> 1.4.1
 * on 08-6-20 下午9:10 from the specification file
 * <tt>E:/student/PB05011/PB05210142/config/JFlex/expr.flex</tt>
 */
public class ExprLexer 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 STRING = 1;
  public static final int YYINITIAL = 0;

  /** 
   * Translates characters to character classes
   */
  private static final String ZZ_CMAP_PACKED = 
    "\11\12\1\5\1\3\1\0\1\4\1\2\16\12\4\0\1\5\1\65"+
    "\1\72\1\1\1\11\1\64\1\71\1\73\1\50\1\51\1\7\1\61"+
    "\1\57\1\63\1\60\1\6\1\14\3\17\4\20\2\13\1\1\1\52"+
    "\1\67\1\62\1\66\2\1\6\16\11\11\1\42\2\11\1\47\4\11"+
    "\1\15\2\11\1\55\1\21\1\56\1\1\1\11\1\1\1\32\1\30"+
    "\1\34\1\46\1\27\1\23\1\43\1\25\1\22\1\11\1\33\1\26"+
    "\1\44\1\36\1\35\2\11\1\31\1\41\1\37\1\40\1\45\1\24"+
    "\1\15\2\11\1\53\1\70\1\54\1\1\41\12\2\0\4\10\4\0"+
    "\1\10\2\0\1\12\7\0\1\10\4\0\1\10\5\0\27\10\1\0"+
    "\37\10\1\0\u013f\10\31\0\162\10\4\0\14\10\16\0\5\10\11\0"+
    "\1\10\21\0\130\12\5\0\23\12\12\0\1\10\13\0\1\10\1\0"+
    "\3\10\1\0\1\10\1\0\24\10\1\0\54\10\1\0\46\10\1\0"+
    "\5\10\4\0\202\10\1\0\4\12\3\0\105\10\1\0\46\10\2\0"+
    "\2\10\6\0\20\10\41\0\46\10\2\0\1\10\7\0\47\10\11\0"+
    "\21\12\1\0\27\12\1\0\3\12\1\0\1\12\1\0\2\12\1\0"+
    "\1\12\13\0\33\10\5\0\3\10\15\0\4\12\14\0\6\12\13\0"+
    "\32\10\5\0\13\10\16\12\7\0\12\12\4\0\2\10\1\12\143\10"+
    "\1\0\1\10\10\12\1\0\6\12\2\10\2\12\1\0\4\12\2\10"+
    "\12\12\3\10\2\0\1\10\17\0\1\12\1\10\1\12\36\10\33\12"+
    "\2\0\3\10\60\0\46\10\13\12\1\10\u014f\0\3\12\66\10\2\0"+
    "\1\12\1\10\20\12\2\0\1\10\4\12\3\0\12\10\2\12\2\0"+
    "\12\12\21\0\3\12\1\0\10\10\2\0\2\10\2\0\26\10\1\0"+
    "\7\10\1\0\1\10\3\0\4\10\2\0\1\12\1\10\7\12\2\0"+
    "\2\12\2\0\3\12\11\0\1\12\4\0\2\10\1\0\3\10\2\12"+
    "\2\0\12\12\4\10\15\0\3\12\1\0\6\10\4\0\2\10\2\0"+
    "\26\10\1\0\7\10\1\0\2\10\1\0\2\10\1\0\2\10\2\0"+
    "\1\12\1\0\5\12\4\0\2\12\2\0\3\12\13\0\4\10\1\0"+
    "\1\10\7\0\14\12\3\10\14\0\3\12\1\0\11\10\1\0\3\10"+
    "\1\0\26\10\1\0\7\10\1\0\2\10\1\0\5\10\2\0\1\12"+
    "\1\10\10\12\1\0\3\12\1\0\3\12\2\0\1\10\17\0\2\10"+
    "\2\12\2\0\12\12\1\0\1\10\17\0\3\12\1\0\10\10\2\0"+
    "\2\10\2\0\26\10\1\0\7\10\1\0\2\10\1\0\5\10\2\0"+
    "\1\12\1\10\6\12\3\0\2\12\2\0\3\12\10\0\2\12\4\0"+
    "\2\10\1\0\3\10\4\0\12\12\1\0\1\10\20\0\1\12\1\10"+
    "\1\0\6\10\3\0\3\10\1\0\4\10\3\0\2\10\1\0\1\10"+
    "\1\0\2\10\3\0\2\10\3\0\3\10\3\0\10\10\1\0\3\10"+
    "\4\0\5\12\3\0\3\12\1\0\4\12\11\0\1\12\17\0\11\12"+
    "\11\0\1\10\7\0\3\12\1\0\10\10\1\0\3\10\1\0\27\10"+
    "\1\0\12\10\1\0\5\10\4\0\7\12\1\0\3\12\1\0\4\12"+
    "\7\0\2\12\11\0\2\10\4\0\12\12\22\0\2\12\1\0\10\10"+
    "\1\0\3\10\1\0\27\10\1\0\12\10\1\0\5\10\2\0\1\12"+
    "\1\10\7\12\1\0\3\12\1\0\4\12\7\0\2\12\7\0\1\10"+
    "\1\0\2\10\4\0\12\12\22\0\2\12\1\0\10\10\1\0\3\10"+
    "\1\0\27\10\1\0\20\10\4\0\6\12\2\0\3\12\1\0\4\12"+
    "\11\0\1\12\10\0\2\10\4\0\12\12\22\0\2\12\1\0\22\10"+
    "\3\0\30\10\1\0\11\10\1\0\1\10\2\0\7\10\3\0\1\12"+
    "\4\0\6\12\1\0\1\12\1\0\10\12\22\0\2\12\15\0\60\10"+
    "\1\12\2\10\7\12\4\0\10\10\10\12\1\0\12\12\47\0\2\10"+
    "\1\0\1\10\2\0\2\10\1\0\1\10\2\0\1\10\6\0\4\10"+
    "\1\0\7\10\1\0\3\10\1\0\1\10\1\0\1\10\2\0\2\10"+
    "\1\0\4\10\1\12\2\10\6\12\1\0\2\12\1\10\2\0\5\10"+
    "\1\0\1\10\1\0\6\12\2\0\12\12\2\0\2\10\42\0\1\10"+
    "\27\0\2\12\6\0\12\12\13\0\1\12\1\0\1\12\1\0\1\12"+
    "\4\0\2\12\10\10\1\0\42\10\6\0\24\12\1\0\2\12\4\10"+
    "\4\0\10\12\1\0\44\12\11\0\1\12\71\0\42\10\1\0\5\10"+
    "\1\0\2\10\1\0\7\12\3\0\4\12\6\0\12\12\6\0\6\10"+
    "\4\12\106\0\46\10\12\0\51\10\7\0\132\10\5\0\104\10\5\0"+
    "\122\10\6\0\7\10\1\0\77\10\1\0\1\10\1\0\4\10\2\0"+
    "\7\10\1\0\1\10\1\0\4\10\2\0\47\10\1\0\1\10\1\0"+
    "\4\10\2\0\37\10\1\0\1\10\1\0\4\10\2\0\7\10\1\0"+
    "\1\10\1\0\4\10\2\0\7\10\1\0\7\10\1\0\27\10\1\0"+
    "\37\10\1\0\1\10\1\0\4\10\2\0\7\10\1\0\47\10\1\0"+
    "\23\10\16\0\11\12\56\0\125\10\14\0\u026c\10\2\0\10\10\12\0"+
    "\32\10\5\0\113\10\3\0\3\10\17\0\15\10\1\0\4\10\3\12"+
    "\13\0\22\10\3\12\13\0\22\10\2\12\14\0\15\10\1\0\3\10"+
    "\1\0\2\12\14\0\64\10\40\12\3\0\1\10\3\0\2\10\1\12"+
    "\2\0\12\12\41\0\3\12\2\0\12\12\6\0\130\10\10\0\51\10"+
    "\1\12\126\0\35\10\3\0\14\12\4\0\14\12\12\0\12\12\36\10"+
    "\2\0\5\10\u038b\0\154\10\224\0\234\10\4\0\132\10\6\0\26\10"+
    "\2\0\6\10\2\0\46\10\2\0\6\10\2\0\10\10\1\0\1\10"+
    "\1\0\1\10\1\0\1\10\1\0\37\10\2\0\65\10\1\0\7\10"+
    "\1\0\1\10\3\0\3\10\1\0\7\10\3\0\4\10\2\0\6\10"+
    "\4\0\15\10\5\0\3\10\1\0\7\10\17\0\4\12\32\0\5\12"+
    "\20\0\2\10\23\0\1\10\13\0\4\12\6\0\6\12\1\0\1\10"+
    "\15\0\1\10\40\0\22\10\36\0\15\12\4\0\1\12\3\0\6\12"+
    "\27\0\1\10\4\0\1\10\2\0\12\10\1\0\1\10\3\0\5\10"+
    "\6\0\1\10\1\0\1\10\1\0\1\10\1\0\4\10\1\0\3\10"+
    "\1\0\7\10\3\0\3\10\5\0\5\10\26\0\44\10\u0e81\0\3\10"+
    "\31\0\11\10\6\12\1\0\5\10\2\0\5\10\4\0\126\10\2\0"+
    "\2\12\2\0\3\10\1\0\137\10\5\0\50\10\4\0\136\10\21\0"+
    "\30\10\70\0\20\10\u0200\0\u19b6\10\112\0\u51a6\10\132\0\u048d\10\u0773\0"+
    "\u2ba4\10\u215c\0\u012e\10\2\0\73\10\225\0\7\10\14\0\5\10\5\0"+
    "\1\10\1\12\12\10\1\0\15\10\1\0\5\10\1\0\1\10\1\0"+
    "\2\10\1\0\2\10\1\0\154\10\41\0\u016b\10\22\0\100\10\2\0"+
    "\66\10\50\0\15\10\3\0\20\12\20\0\4\12\17\0\2\10\30\0"+
    "\3\10\31\0\1\10\6\0\5\10\1\0\207\10\2\0\1\12\4\0"+
    "\1\10\13\0\12\12\7\0\32\10\4\0\1\10\1\0\32\10\12\0"+
    "\132\10\3\0\6\10\2\0\6\10\2\0\6\10\2\0\3\10\3\0"+
    "\2\10\3\0\2\10\22\0\3\12\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 =
    "\2\0\1\1\2\2\1\3\1\4\1\5\2\6\15\5"+
    "\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\1\25\1\26"+
    "\2\1\1\27\1\30\2\31\1\1\1\32\1\2\1\0"+
    "\1\33\1\34\1\35\1\0\2\35\1\36\20\5\1\37"+
    "\1\40\1\41\1\42\1\43\1\44\1\45\1\46\1\47"+
    "\1\50\1\51\1\52\1\53\1\54\1\55\1\56\1\57"+
    "\1\60\1\0\2\61\1\35\1\62\17\5\1\61\1\35"+
    "\4\5\1\63\5\5\1\64\2\5\1\65\1\5\1\61"+
    "\1\35\1\66\1\67\1\70\1\5\1\71\2\5\1\72"+
    "\4\5\1\61\1\35\1\73\1\5\1\74\1\5\1\75"+
    "\1\5\1\76\1\61\1\35\1\77\1\5\1\100\1\61"+
    "\1\35\1\101\1\61\1\35\1\61\7\35";

  private static int [] zzUnpackAction() {
    int [] result = new int[168];
    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\74\0\170\0\264\0\170\0\360\0\u012c\0\u0168"+
    "\0\u01a4\0\u01e0\0\u021c\0\u0258\0\u0294\0\u02d0\0\u030c\0\u0348"+
    "\0\u0384\0\u03c0\0\u03fc\0\u0438\0\u0474\0\u04b0\0\u04ec\0\170"+
    "\0\170\0\170\0\170\0\170\0\170\0\170\0\170\0\170"+
    "\0\u0528\0\u0564\0\u05a0\0\u05dc\0\u0618\0\u0654\0\u0690\0\u06cc"+
    "\0\u0708\0\170\0\u0744\0\u0780\0\170\0\u07bc\0\170\0\u07f8"+
    "\0\u0834\0\170\0\170\0\u0870\0\u08ac\0\u08e8\0\u0924\0\u0168"+
    "\0\u0960\0\u099c\0\u09d8\0\u0a14\0\u0a50\0\u0a8c\0\u0ac8\0\u0b04"+
    "\0\u0b40\0\u0b7c\0\u0bb8\0\u0bf4\0\u0c30\0\u0c6c\0\u0ca8\0\u0ce4"+
    "\0\170\0\170\0\170\0\170\0\170\0\170\0\170\0\170"+
    "\0\170\0\170\0\170\0\170\0\170\0\170\0\170\0\170"+
    "\0\170\0\170\0\u0d20\0\u0d5c\0\u08ac\0\u0d98\0\u0168\0\u0dd4"+
    "\0\u0e10\0\u0e4c\0\u0e88\0\u0ec4\0\u0f00\0\u0f3c\0\u0f78\0\u0fb4"+
    "\0\u0ff0\0\u102c\0\u1068\0\u10a4\0\u10e0\0\u111c\0\u1158\0\u1194"+
    "\0\u11d0\0\u120c\0\u1248\0\u1284\0\u0168\0\u12c0\0\u12fc\0\u1338"+
    "\0\u1374\0\u13b0\0\u0168\0\u13ec\0\u1428\0\u0168\0\u1464\0\u14a0"+
    "\0\u14dc\0\u0168\0\u0168\0\u0168\0\u1518\0\u0168\0\u1554\0\u1590"+
    "\0\u0168\0\u15cc\0\u1608\0\u1644\0\u1680\0\u16bc\0\u16f8\0\u0168"+
    "\0\u1734\0\u0168\0\u1770\0\u0168\0\u17ac\0\u0168\0\u17e8\0\u1824"+
    "\0\u0168\0\u1860\0\u0168\0\u189c\0\u18d8\0\u0168\0\u1914\0\u1950"+
    "\0\170\0\u198c\0\u19c8\0\u1a04\0\u1a40\0\u1a7c\0\u1ab8\0\170";

  private static int [] zzUnpackRowMap() {
    int [] result = new int[168];
    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 =
    "\2\3\1\4\3\5\1\6\1\7\2\10\1\3\1\11"+
    "\1\12\2\10\2\11\1\3\1\13\1\14\1\15\1\10"+
    "\1\16\1\17\1\20\1\21\2\10\1\22\2\10\1\23"+
    "\1\10\1\24\1\25\2\10\1\26\1\10\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\1\46\1\47\1\50"+
    "\1\51\1\52\1\3\2\53\1\54\1\55\15\53\1\56"+
    "\50\53\1\57\1\53\77\0\1\5\76\0\1\60\1\61"+
    "\52\0\1\62\73\0\1\63\21\0\11\10\1\0\26\10"+
    "\37\0\2\11\2\0\2\11\67\0\1\64\1\65\1\0"+
    "\1\66\1\67\63\0\11\10\1\0\1\10\1\70\12\10"+
    "\1\71\11\10\34\0\11\10\1\0\1\72\7\10\1\73"+
    "\15\10\34\0\11\10\1\0\3\10\1\74\22\10\34\0"+
    "\11\10\1\0\5\10\1\75\20\10\34\0\11\10\1\0"+
    "\4\10\1\76\21\10\34\0\11\10\1\0\7\10\1\77"+
    "\3\10\1\100\12\10\34\0\11\10\1\0\5\10\1\101"+
    "\20\10\34\0\11\10\1\0\4\10\1\102\6\10\1\103"+
    "\12\10\34\0\11\10\1\0\7\10\1\104\16\10\34\0"+
    "\11\10\1\0\15\10\1\105\10\10\34\0\11\10\1\0"+
    "\7\10\1\106\16\10\34\0\11\10\1\0\13\10\1\107"+
    "\12\10\34\0\11\10\1\0\15\10\1\110\10\10\106\0"+
    "\1\111\73\0\1\112\73\0\1\113\73\0\1\114\73\0"+
    "\1\115\73\0\1\116\73\0\1\117\101\0\1\120\74\0"+
    "\1\121\2\0\2\53\2\0\15\53\1\0\50\53\1\0"+
    "\1\53\3\0\1\55\70\0\3\122\1\0\15\122\1\123"+
    "\1\122\1\124\4\122\1\125\1\126\4\122\1\127\1\130"+
    "\32\122\1\131\1\132\1\0\1\60\3\0\3\60\1\0"+
    "\1\60\1\0\61\60\7\61\1\133\64\61\14\0\1\64"+
    "\2\0\1\66\1\67\66\0\1\134\1\135\1\0\3\134"+
    "\2\0\1\134\3\0\2\134\1\0\1\134\1\0\1\134"+
    "\11\0\1\134\41\0\1\67\2\0\2\67\67\0\1\136"+
    "\2\0\2\136\63\0\11\10\1\0\15\10\1\137\10\10"+
    "\34\0\11\10\1\0\14\10\1\140\11\10\34\0\11\10"+
    "\1\0\4\10\1\141\21\10\34\0\11\10\1\0\1\142"+
    "\25\10\34\0\11\10\1\0\14\10\1\143\11\10\34\0"+
    "\11\10\1\0\17\10\1\144\6\10\34\0\11\10\1\0"+
    "\5\10\1\145\20\10\34\0\11\10\1\0\13\10\1\146"+
    "\12\10\34\0\11\10\1\0\15\10\1\147\10\10\34\0"+
    "\11\10\1\0\10\10\1\150\15\10\34\0\11\10\1\0"+
    "\14\10\1\151\11\10\34\0\11\10\1\0\16\10\1\152"+
    "\7\10\34\0\11\10\1\0\10\10\1\153\15\10\34\0"+
    "\11\10\1\0\13\10\1\154\12\10\34\0\11\10\1\0"+
    "\1\155\25\10\34\0\11\10\1\0\7\10\1\156\16\10"+
    "\24\0\6\61\1\5\1\133\64\61\13\0\2\157\1\0"+
    "\3\157\2\0\1\157\3\0\2\157\1\0\1\157\1\0"+
    "\1\157\11\0\1\157\41\0\1\160\2\0\2\160\63\0"+
    "\11\10\1\0\10\10\1\161\15\10\34\0\11\10\1\0"+
    "\17\10\1\162\6\10\34\0\11\10\1\0\4\10\1\163"+
    "\21\10\34\0\11\10\1\0\21\10\1\164\4\10\34\0"+
    "\11\10\1\0\5\10\1\165\20\10\34\0\11\10\1\0"+
    "\10\10\1\166\15\10\34\0\11\10\1\0\4\10\1\167"+
    "\21\10\34\0\11\10\1\0\16\10\1\170\7\10\34\0"+
    "\11\10\1\0\17\10\1\171\6\10\34\0\11\10\1\0"+
    "\15\10\1\172\10\10\34\0\11\10\1\0\5\10\1\173"+
    "\20\10\34\0\11\10\1\0\15\10\1\174\10\10\34\0"+
    "\11\10\1\0\21\10\1\175\4\10\34\0\11\10\1\0"+
    "\24\10\1\176\1\10\34\0\11\10\1\0\1\177\25\10"+
    "\37\0\2\200\1\0\3\200\2\0\1\200\3\0\2\200"+
    "\1\0\1\200\1\0\1\200\11\0\1\200\41\0\1\201"+
    "\2\0\2\201\63\0\11\10\1\0\4\10\1\202\21\10"+
    "\34\0\11\10\1\0\5\10\1\203\20\10\34\0\11\10"+
    "\1\0\5\10\1\204\20\10\34\0\11\10\1\0\15\10"+
    "\1\205\10\10\34\0\11\10\1\0\11\10\1\206\14\10"+
    "\34\0\11\10\1\0\5\10\1\207\20\10\34\0\11\10"+
    "\1\0\7\10\1\210\16\10\34\0\11\10\1\0\17\10"+
    "\1\211\6\10\34\0\11\10\1\0\1\212\25\10\34\0"+
    "\11\10\1\0\1\213\25\10\34\0\11\10\1\0\7\10"+
    "\1\214\16\10\34\0\11\10\1\0\14\10\1\215\11\10"+
    "\37\0\2\216\1\0\3\216\2\0\1\216\3\0\2\216"+
    "\1\0\1\216\1\0\1\216\11\0\1\216\41\0\1\217"+
    "\2\0\2\217\63\0\11\10\1\0\3\10\1\220\22\10"+
    "\34\0\11\10\1\0\10\10\1\221\15\10\34\0\11\10"+
    "\1\0\14\10\1\222\11\10\34\0\11\10\1\0\14\10"+
    "\1\223\11\10\34\0\11\10\1\0\12\10\1\224\13\10"+
    "\34\0\11\10\1\0\10\10\1\225\15\10\34\0\11\10"+
    "\1\0\21\10\1\226\4\10\37\0\2\227\1\0\3\227"+
    "\2\0\1\227\3\0\2\227\1\0\1\227\1\0\1\227"+
    "\11\0\1\227\41\0\1\230\2\0\2\230\63\0\11\10"+
    "\1\0\14\10\1\231\11\10\34\0\11\10\1\0\16\10"+
    "\1\232\7\10\34\0\11\10\1\0\22\10\1\233\3\10"+
    "\37\0\2\234\1\0\3\234\2\0\1\234\3\0\2\234"+
    "\1\0\1\234\1\0\1\234\11\0\1\234\41\0\1\235"+
    "\2\0\2\235\63\0\11\10\1\0\5\10\1\236\20\10"+
    "\37\0\2\237\1\0\3\237\2\0\1\237\3\0\2\237"+
    "\1\0\1\237\1\0\1\237\11\0\1\237\41\0\1\240"+
    "\2\0\2\240\66\0\2\241\1\0\3\241\2\0\1\241"+
    "\3\0\2\241\1\0\1\241\1\0\1\241\11\0\1\241"+
    "\41\0\1\242\2\0\2\242\67\0\1\243\2\0\2\243"+
    "\67\0\1\244\2\0\2\244\67\0\1\245\2\0\2\245"+
    "\67\0\1\246\2\0\2\246\67\0\1\247\2\0\2\247"+
    "\67\0\1\250\2\0\2\250\53\0";

  private static int [] zzUnpackTrans() {
    int [] result = new int[6900];
    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 =
    "\2\0\1\11\1\1\1\11\22\1\11\11\11\1\1\11"+
    "\2\1\1\11\1\1\1\11\1\1\1\0\2\11\1\1"+
    "\1\0\23\1\22\11\1\0\105\1\1\11\6\1\1\11";

  private static int [] zzUnpackAttribute() {
    int [] result = new int[168];
    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 */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -