/* The following code was generated by JFlex 1.7.0-SNAPSHOT tweaked for IntelliJ platform */ package org.intellij.erlang.parser; import com.intellij.lexer.FlexLexer; import com.intellij.psi.tree.IElementType; import static org.intellij.erlang.ErlangTypes.*; import static org.intellij.erlang.ErlangParserDefinition.*; /** * This class is a scanner generated by * <a href="http://www.jflex.de/">JFlex</a> 1.7.0-SNAPSHOT * from the specification file <tt>Erlang.flex</tt> */ public class _ErlangLexer implements FlexLexer { /** 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; public static final int IN_QUOTES = 2; /** * 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 }; /** * Translates characters to character classes * Chosen bits are [8, 6, 7] * Total runtime size is 1040 bytes */ public static int ZZ_CMAP(int ch) { return ZZ_CMAP_A[ZZ_CMAP_Y[ZZ_CMAP_Z[ch>>13]|((ch>>7)&0x3f)]|(ch&0x7f)]; } /* The ZZ_CMAP_Z table has 136 entries */ static final char ZZ_CMAP_Z[] = zzUnpackCMap( "\1\0\207\100"); /* The ZZ_CMAP_Y table has 128 entries */ static final char ZZ_CMAP_Y[] = zzUnpackCMap( "\1\0\177\200"); /* The ZZ_CMAP_A table has 256 entries */ static final char ZZ_CMAP_A[] = zzUnpackCMap( "\1\1\10\0\1\1\1\6\2\0\1\4\21\0\2\1\1\3\1\22\1\2\1\41\1\5\1\0\1\33\1\67\1\70"+ "\1\62\1\61\1\43\1\14\1\15\1\63\10\17\2\11\1\56\1\72\1\60\1\42\1\57\1\73\1"+ "\20\4\7\1\12\25\7\1\34\1\16\1\36\1\21\1\44\1\40\1\45\1\23\1\53\1\24\1\13\1"+ "\25\1\50\1\47\1\51\2\10\1\66\1\64\1\26\1\52\2\10\1\27\1\30\1\31\1\54\1\32"+ "\1\46\1\65\1\55\1\10\1\35\1\71\1\37\202\0"); /** * 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\1\2\1\3\1\4\1\5\1\6\1\7"+ "\1\10\1\7\1\11\1\12\1\1\6\7\1\13\1\14"+ "\1\15\1\16\1\17\1\20\1\21\1\22\5\7\1\23"+ "\1\24\1\25\1\26\1\27\1\30\1\7\1\31\1\32"+ "\1\33\1\34\1\35\1\7\1\1\1\36\1\37\1\5"+ "\1\40\1\0\1\10\1\0\1\7\1\41\1\42\1\43"+ "\2\0\1\44\14\7\2\20\1\45\1\0\1\46\1\47"+ "\1\0\3\7\1\50\1\51\1\52\1\7\1\53\1\54"+ "\1\55\1\56\1\57\1\60\1\61\1\62\1\63\1\7"+ "\1\64\2\0\1\40\1\65\2\10\1\66\1\67\1\70"+ "\2\7\1\71\1\72\1\7\1\73\1\7\1\74\1\75"+ "\1\76\1\7\1\77\1\100\1\20\1\0\1\101\1\102"+ "\1\7\1\103\4\7\1\104\1\0\1\7\1\105\1\106"+ "\1\107\1\7\1\20\2\7\1\110\1\7\1\111\1\7"+ "\1\66\1\0\1\112\1\7\1\113\2\7\1\114\2\7"+ "\1\115\1\116\1\117"; private static int [] zzUnpackAction() { int [] result = new int[157]; 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\360\0\170\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\170\0\170\0\170"+ "\0\170\0\u04b0\0\u04ec\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\170\0\u07bc\0\170\0\170\0\u07f8\0\u0834\0\170"+ "\0\u0870\0\u08ac\0\u08e8\0\u0924\0\u0960\0\u099c\0\u09d8\0\170"+ "\0\170\0\u0a14\0\u02d0\0\u0a50\0\170\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\u0d20\0\170\0\u0d5c\0\170\0\170\0\u0d98"+ "\0\u0dd4\0\u0e10\0\u0e4c\0\u01a4\0\u01a4\0\u0e88\0\u0ec4\0\170"+ "\0\170\0\170\0\170\0\170\0\170\0\170\0\170\0\170"+ "\0\u0f00\0\170\0\u0834\0\u0f3c\0\u0f78\0\u0fb4\0\u0924\0\u0ff0"+ "\0\u102c\0\u01a4\0\170\0\u1068\0\u10a4\0\u01a4\0\u01a4\0\u10e0"+ "\0\u01a4\0\u111c\0\u01a4\0\u01a4\0\u01a4\0\u1158\0\u01a4\0\u01a4"+ "\0\u1194\0\u11d0\0\170\0\170\0\u120c\0\u1248\0\u1284\0\u12c0"+ "\0\u12fc\0\u1338\0\u01a4\0\u1374\0\u13b0\0\u01a4\0\u01a4\0\u01a4"+ "\0\u13ec\0\u1428\0\u1464\0\u14a0\0\u01a4\0\u14dc\0\u01a4\0\u1518"+ "\0\u1554\0\u1554\0\u01a4\0\u1590\0\u01a4\0\u15cc\0\u1608\0\u01a4"+ "\0\u1644\0\u1680\0\u01a4\0\u01a4\0\u01a4"; private static int [] zzUnpackRowMap() { int [] result = new int[157]; 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\3\1\4\1\5\1\6\1\3\1\7\1\4\1\10"+ "\1\11\1\12\1\10\1\13\1\14\1\15\1\3\1\12"+ "\2\3\1\16\1\17\1\20\1\21\1\22\1\23\1\11"+ "\1\24\1\11\1\25\1\26\1\27\1\30\1\31\1\3"+ "\1\32\1\33\1\34\1\10\1\35\1\36\2\11\1\37"+ "\1\40\1\41\2\11\1\42\1\43\1\44\1\45\1\46"+ "\1\47\1\11\1\50\1\11\1\51\1\52\1\53\1\54"+ "\1\55\16\56\1\57\14\56\1\60\40\56\75\0\1\4"+ "\4\0\1\4\70\0\1\61\70\0\4\62\1\0\1\63"+ "\1\0\65\62\7\0\5\10\3\0\2\10\2\0\10\10"+ "\11\0\12\10\6\0\3\10\14\0\5\11\3\0\2\11"+ "\2\0\10\11\11\0\12\11\6\0\3\11\7\0\1\64"+ "\6\0\1\65\3\0\1\66\1\0\1\65\63\0\5\11"+ "\3\0\2\11\2\0\3\11\1\67\4\11\11\0\12\11"+ "\6\0\3\11\21\0\1\70\42\0\1\71\31\0\1\72"+ "\56\0\16\73\1\74\3\73\1\75\51\73\7\0\4\11"+ "\1\76\3\0\2\11\2\0\3\11\1\77\1\11\1\100"+ "\2\11\11\0\1\11\1\101\4\11\1\102\3\11\6\0"+ "\1\11\1\103\1\11\14\0\5\11\3\0\2\11\2\0"+ "\10\11\11\0\5\11\1\104\4\11\6\0\3\11\14\0"+ "\5\11\3\0\2\11\2\0\10\11\11\0\10\11\1\105"+ "\1\11\6\0\3\11\14\0\5\11\3\0\2\11\2\0"+ "\10\11\11\0\6\11\1\106\3\11\6\0\3\11\14\0"+ "\4\11\1\107\3\0\2\11\2\0\10\11\11\0\12\11"+ "\6\0\3\11\14\0\5\11\3\0\2\11\2\0\4\11"+ "\1\110\3\11\11\0\12\11\6\0\3\11\40\0\1\111"+ "\40\0\6\112\1\0\7\112\1\113\55\112\42\0\1\114"+ "\13\0\1\115\1\116\1\117\2\0\1\120\17\0\5\11"+ "\3\0\2\11\2\0\2\11\1\121\1\122\4\11\11\0"+ "\12\11\6\0\3\11\14\0\5\11\3\0\2\11\2\0"+ "\10\11\11\0\3\11\1\123\6\11\6\0\3\11\14\0"+ "\5\11\3\0\2\11\2\0\2\11\1\124\5\11\11\0"+ "\12\11\6\0\3\11\14\0\5\11\3\0\2\11\2\0"+ "\2\11\1\125\1\11\1\126\3\11\11\0\12\11\6\0"+ "\3\11\14\0\5\11\3\0\2\11\2\0\10\11\11\0"+ "\1\11\1\127\10\11\6\0\3\11\47\0\1\130\13\0"+ "\1\131\57\0\1\132\14\0\1\133\30\0\1\134\25\0"+ "\1\135\15\0\1\136\74\0\1\137\54\0\1\140\40\0"+ "\5\11\3\0\2\11\2\0\10\11\11\0\6\11\1\141"+ "\3\11\6\0\3\11\76\0\1\142\2\0\16\56\1\143"+ "\14\56\1\0\40\56\5\0\1\56\5\0\1\56\1\0"+ "\3\56\1\0\1\144\23\56\27\0\4\61\1\0\1\61"+ "\1\0\65\61\4\62\1\0\1\62\1\0\65\62\4\145"+ "\1\0\1\146\1\0\65\145\7\0\5\147\3\0\1\147"+ "\3\0\10\147\12\0\11\147\6\0\3\147\7\0\1\64"+ "\6\0\1\150\3\0\1\66\1\0\1\150\65\0\1\151"+ "\5\0\1\151\63\0\5\11\3\0\2\11\2\0\1\11"+ "\1\152\6\11\11\0\12\11\6\0\3\11\22\0\1\153"+ "\56\0\74\73\7\0\5\11\3\0\2\11\2\0\10\11"+ "\11\0\4\11\1\154\5\11\6\0\3\11\14\0\5\11"+ "\3\0\2\11\2\0\10\11\11\0\6\11\1\155\3\11"+ "\6\0\3\11\14\0\5\11\3\0\2\11\2\0\4\11"+ "\1\156\3\11\11\0\12\11\6\0\2\11\1\157\14\0"+ "\5\11\3\0\2\11\2\0\3\11\1\160\4\11\11\0"+ "\12\11\6\0\3\11\14\0\5\11\3\0\2\11\2\0"+ "\4\11\1\161\3\11\11\0\12\11\6\0\3\11\14\0"+ "\5\11\3\0\2\11\2\0\10\11\11\0\6\11\1\162"+ "\3\11\6\0\3\11\14\0\5\11\3\0\2\11\2\0"+ "\7\11\1\163\11\0\12\11\6\0\3\11\14\0\5\11"+ "\3\0\2\11\2\0\3\11\1\164\4\11\11\0\12\11"+ "\6\0\3\11\14\0\5\11\3\0\2\11\2\0\6\11"+ "\1\165\1\11\11\0\12\11\6\0\3\11\14\0\5\11"+ "\3\0\2\11\2\0\10\11\11\0\7\11\1\166\2\11"+ "\6\0\1\167\2\11\14\0\5\11\3\0\2\11\2\0"+ "\10\11\11\0\11\11\1\170\6\0\3\11\6\0\1\112"+ "\3\0\2\112\4\0\1\112\1\0\2\112\1\171\1\0"+ "\1\172\23\112\71\0\1\173\73\0\1\174\40\0\5\11"+ "\3\0\2\11\2\0\6\11\1\175\1\11\11\0\12\11"+ "\6\0\3\11\14\0\5\11\3\0\2\11\2\0\1\11"+ "\1\176\6\11\11\0\12\11\6\0\3\11\14\0\4\11"+ "\1\177\3\0\2\11\2\0\10\11\11\0\12\11\6\0"+ "\3\11\14\0\4\11\1\200\3\0\2\11\2\0\10\11"+ "\11\0\12\11\6\0\3\11\14\0\5\11\3\0\2\11"+ "\2\0\5\11\1\201\1\202\1\11\11\0\12\11\6\0"+ "\3\11\14\0\5\11\3\0\2\11\2\0\4\11\1\203"+ "\3\11\11\0\12\11\6\0\3\11\14\0\1\56\2\0"+ "\1\56\3\0\1\56\1\0\2\56\12\0\1\56\1\0"+ "\1\56\5\0\1\56\27\0\4\145\1\0\1\145\1\0"+ "\65\145\4\146\1\0\1\146\1\0\65\146\11\0\1\150"+ "\3\0\1\66\1\0\1\150\65\0\1\151\2\204\3\0"+ "\1\151\63\0\5\11\3\0\2\11\2\0\10\11\11\0"+ "\5\11\1\205\4\11\6\0\3\11\14\0\5\11\3\0"+ "\2\11\2\0\6\11\1\206\1\11\11\0\12\11\6\0"+ "\3\11\14\0\5\11\3\0\2\11\2\0\1\11\1\207"+ "\6\11\11\0\12\11\6\0\3\11\14\0\5\11\3\0"+ "\2\11\2\0\4\11\1\210\3\11\11\0\12\11\6\0"+ "\3\11\14\0\4\11\1\211\3\0\2\11\2\0\10\11"+ "\11\0\12\11\6\0\3\11\24\0\1\212\63\0\1\112"+ "\2\0\1\112\3\0\1\112\1\0\2\112\12\0\1\112"+ "\1\0\1\112\5\0\1\112\36\0\4\11\1\213\3\0"+ "\2\11\2\0\10\11\11\0\12\11\6\0\3\11\14\0"+ "\5\11\3\0\2\11\2\0\10\11\11\0\1\11\1\214"+ "\10\11\6\0\3\11\14\0\5\11\3\0\2\11\2\0"+ "\3\11\1\215\4\11\11\0\12\11\6\0\3\11\14\0"+ "\5\11\3\0\2\11\2\0\10\11\11\0\12\11\6\0"+ "\2\11\1\216\14\0\4\11\1\217\3\0\2\11\2\0"+ "\10\11\11\0\12\11\6\0\3\11\14\0\5\11\3\0"+ "\2\11\2\0\10\11\11\0\7\11\1\220\2\11\6\0"+ "\3\11\16\0\1\221\2\0\1\222\2\0\1\221\41\0"+ "\1\222\21\0\5\11\3\0\2\11\2\0\3\11\1\223"+ "\4\11\11\0\12\11\6\0\3\11\14\0\5\11\3\0"+ "\2\11\2\0\10\11\11\0\5\11\1\224\4\11\6\0"+ "\3\11\24\0\1\112\63\0\5\11\3\0\2\11\2\0"+ "\4\11\1\225\3\11\11\0\12\11\6\0\3\11\14\0"+ "\5\11\3\0\2\11\2\0\10\11\11\0\12\11\6\0"+ "\2\11\1\226\14\0\5\11\3\0\2\11\2\0\5\11"+ "\1\227\2\11\11\0\12\11\6\0\3\11\14\0\5\11"+ "\3\0\2\11\2\0\10\11\11\0\3\11\1\230\6\11"+ "\6\0\3\11\16\0\1\221\5\0\1\221\63\0\5\11"+ "\3\0\2\11\2\0\7\11\1\231\11\0\12\11\6\0"+ "\3\11\14\0\5\11\3\0\2\11\2\0\5\11\1\232"+ "\2\11\11\0\12\11\6\0\3\11\14\0\4\11\1\233"+ "\3\0\2\11\2\0\10\11\11\0\12\11\6\0\3\11"+ "\14\0\4\11\1\234\3\0\2\11\2\0\10\11\11\0"+ "\12\11\6\0\3\11\14\0\5\11\3\0\2\11\2\0"+ "\10\11\11\0\6\11\1\235\3\11\6\0\3\11\5\0"; private static int [] zzUnpackTrans() { int [] result = new int[5820]; 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 = { "Unknown 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\2\1\1\11\17\1\4\11\2\1\1\11"+ "\11\1\1\11\2\1\2\11\1\1\2\11\2\1\1\11"+ "\3\1\1\0\1\1\1\0\1\1\2\11\1\1\2\0"+ "\1\11\13\1\2\11\1\1\1\11\1\0\2\11\1\0"+ "\7\1\11\11\1\1\1\11\2\0\6\1\1\11\16\1"+ "\1\0\2\11\7\1\1\0\15\1\1\0\13\1"; private static int [] zzUnpackAttribute() { int [] result = new int[157]; 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 CharSequence zzBuffer = ""; /** the textposition at the last accepting state */ private int zzMarkedPos; /** 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; /** * zzAtBOL == true <=> the scanner is currently at the beginning of a line */ private boolean zzAtBOL = true; /** zzAtEOF == true <=> the scanner is at the EOF */ private boolean zzAtEOF; /** denotes if the user-EOF-code has already been executed */ private boolean zzEOFDone; /* user code: */ public _ErlangLexer() { this((java.io.Reader)null); } /** * Creates a new scanner * * @param in the java.io.Reader to read input from. */ public _ErlangLexer(java.io.Reader in) { this.zzReader = in; } /** * Unpacks the compressed character translation table. * * @param packed the packed character translation table * @return the unpacked character translation table */ private static char [] zzUnpackCMap(String packed) { int size = 0; for (int i = 0, length = packed.length(); i < length; i += 2) { size += packed.charAt(i); } char[] map = new char[size]; int i = 0; /* index in packed string */ int j = 0; /* index in unpacked array */ while (i < packed.length()) { int count = packed.charAt(i++); char value = packed.charAt(i++); do map[j++] = value; while (--count > 0); } return map; } public final int getTokenStart() { return zzStartRead; } public final int getTokenEnd() { return getTokenStart() + yylength(); } public void reset(CharSequence buffer, int start, int end, int initialState) { zzBuffer = buffer; zzCurrentPos = zzMarkedPos = zzStartRead = start; zzAtEOF = false; zzAtBOL = true; zzEndRead = end; yybegin(initialState); } /** * Refills the input buffer. * * @return <code>false</code>, iff there was new input. * * @exception java.io.IOException if any I/O-Error occurs */ private boolean zzRefill() throws java.io.IOException { return true; } /** * Returns the current lexical state. */ public final int yystate() { return zzLexicalState; } /** * Enters a new lexical state * * @param newState the new lexical state */ public final void yybegin(int newState) { zzLexicalState = newState; } /** * Returns the text matched by the current regular expression. */ public final CharSequence yytext() { return zzBuffer.subSequence(zzStartRead, zzMarkedPos); } /** * Returns the character at position <tt>pos</tt> from the * matched text. * * It is equivalent to yytext().charAt(pos), but faster * * @param pos the position of the character to fetch. * A value from 0 to yylength()-1. * * @return the character at position pos */ public final char yycharat(int pos) { return zzBuffer.charAt(zzStartRead+pos); } /** * Returns the length of the matched text region. */ public final int yylength() { return zzMarkedPos-zzStartRead; } /** * Reports an error that occured while scanning. * * In a wellformed scanner (no or only correct usage of * yypushback(int) and a match-all fallback rule) this method * will only be called with things that "Can't Possibly Happen". * If this method is called, something is seriously wrong * (e.g. a JFlex bug producing a faulty scanner etc.). * * Usual syntax/scanner level error handling should be done * in error fallback rules. * * @param errorCode the code of the errormessage to display */ private void zzScanError(int errorCode) { String message; try { message = ZZ_ERROR_MSG[errorCode]; } catch (ArrayIndexOutOfBoundsException e) { message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; } throw new Error(message); } /** * Pushes the specified amount of characters back into the input stream. * * They will be read again by then next call of the scanning method * * @param number the number of characters to be read again. * This number must not be greater than yylength()! */ public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; } /** * Resumes scanning until the next regular expression is matched, * the end of input is encountered or an I/O-Error occurs. * * @return the next token * @exception java.io.IOException if any I/O-Error occurs */ public IElementType advance() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; CharSequence zzBufferL = zzBuffer; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; int [] zzAttrL = ZZ_ATTRIBUTE; while (true) { zzMarkedPosL = zzMarkedPos; zzAction = -1; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; zzState = ZZ_LEXSTATE[zzLexicalState]; // set up zzAction for empty match case: int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; } zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) { zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL/*, zzEndReadL*/); zzCurrentPosL += Character.charCount(zzInput); } else if (zzAtEOF) { zzInput = YYEOF; break zzForAction; } else { // store back cached positions zzCurrentPos = zzCurrentPosL; zzMarkedPos = zzMarkedPosL; boolean eof = zzRefill(); // get translated positions and possibly new buffer zzCurrentPosL = zzCurrentPos; zzMarkedPosL = zzMarkedPos; zzBufferL = zzBuffer; zzEndReadL = zzEndRead; if (eof) { zzInput = YYEOF; break zzForAction; } else { zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL/*, zzEndReadL*/); zzCurrentPosL += Character.charCount(zzInput); } } int zzNext = zzTransL[ zzRowMapL[zzState] + ZZ_CMAP(zzInput) ]; if (zzNext == -1) break zzForAction; zzState = zzNext; zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { zzAtEOF = true; return null; } else { switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 1: { yybegin(YYINITIAL); return com.intellij.psi.TokenType.BAD_CHARACTER; } case 80: break; case 2: { return com.intellij.psi.TokenType.WHITE_SPACE; } case 81: break; case 3: { return ERL_RADIX; } case 82: break; case 4: { return ERL_OP_EXL; } case 83: break; case 5: { return ERL_COMMENT; } case 84: break; case 6: { return ERL_VAR; } case 85: break; case 7: { return ERL_ATOM_NAME; } case 86: break; case 8: { return ERL_INTEGER; } case 87: break; case 9: { return ERL_OP_MINUS; } case 88: break; case 10: { return ERL_DOT; } case 89: break; case 11: { yybegin(IN_QUOTES); return ERL_SINGLE_QUOTE; } case 90: break; case 12: { return ERL_BRACKET_LEFT; } case 91: break; case 13: { return ERL_CURLY_LEFT; } case 92: break; case 14: { return ERL_BRACKET_RIGHT; } case 93: break; case 15: { return ERL_CURLY_RIGHT; } case 94: break; case 16: { return ERL_CHAR; } case 95: break; case 17: { return ERL_OP_EQ; } case 96: break; case 18: { return ERL_COMMA; } case 97: break; case 19: { return ERL_COLON; } case 98: break; case 20: { return ERL_OP_GT; } case 99: break; case 21: { return ERL_OP_LT; } case 100: break; case 22: { return ERL_OP_PLUS; } case 101: break; case 23: { return ERL_OP_AR_MUL; } case 102: break; case 24: { return ERL_OP_AR_DIV; } case 103: break; case 25: { return ERL_PAR_LEFT; } case 104: break; case 26: { return ERL_PAR_RIGHT; } case 105: break; case 27: { return ERL_OP_OR; } case 106: break; case 28: { return ERL_SEMI; } case 107: break; case 29: { return ERL_QMARK; } case 108: break; case 30: { yybegin(YYINITIAL); return ERL_SINGLE_QUOTE; } case 109: break; case 31: { return getTokenStart() == 0 ? ERL_SHEBANG : com.intellij.psi.TokenType.ERROR_ELEMENT; } case 110: break; case 32: { return ERL_FUNCTION_DOC_COMMENT; } case 111: break; case 33: { return ERL_OP_MINUS_MINUS; } case 112: break; case 34: { return ERL_ARROW; } case 113: break; case 35: { return ERL_DOT_DOT; } case 114: break; case 36: { return ERL_STRING; } case 115: break; case 37: { return ERL_OP_EQ_EQ; } case 116: break; case 38: { return ERL_ASSOC; } case 117: break; case 39: { return ERL_OP_EQ_LT; } case 118: break; case 40: { return ERL_IF; } case 119: break; case 41: { return ERL_OF; } case 120: break; case 42: { return ERL_OR; } case 121: break; case 43: { return ERL_MATCH; } case 122: break; case 44: { return ERL_COLON_COLON; } case 123: break; case 45: { return ERL_OP_GT_EQ; } case 124: break; case 46: { return ERL_BIN_END; } case 125: break; case 47: { return ERL_OP_LT_MINUS; } case 126: break; case 48: { return ERL_OP_LT_EQ; } case 127: break; case 49: { return ERL_BIN_START; } case 128: break; case 50: { return ERL_OP_PLUS_PLUS; } case 129: break; case 51: { return ERL_OP_DIV_EQ; } case 130: break; case 52: { return ERL_OR_OR; } case 131: break; case 53: { return ERL_MODULE_DOC_COMMENT; } case 132: break; case 54: { return ERL_FLOAT; } case 133: break; case 55: { return ERL_END; } case 134: break; case 56: { return ERL_DOT_DOT_DOT; } case 135: break; case 57: { return ERL_BSR; } case 136: break; case 58: { return ERL_BSL; } case 137: break; case 59: { return ERL_BOR; } case 138: break; case 60: { return ERL_DIV; } case 139: break; case 61: { return ERL_FUN; } case 140: break; case 62: { return ERL_NOT; } case 141: break; case 63: { return ERL_REM; } case 142: break; case 64: { return ERL_TRY; } case 143: break; case 65: { return ERL_OP_EQ_COL_EQ; } case 144: break; case 66: { return ERL_OP_EQ_DIV_EQ; } case 145: break; case 67: { return ERL_AND; } case 146: break; case 68: { return ERL_XOR; } case 147: break; case 69: { return ERL_BNOT; } case 148: break; case 70: { return ERL_BAND; } case 149: break; case 71: { return ERL_BXOR; } case 150: break; case 72: { return ERL_WHEN; } case 151: break; case 73: { return ERL_CASE; } case 152: break; case 74: { return ERL_BEGIN; } case 153: break; case 75: { return ERL_AFTER; } case 154: break; case 76: { return ERL_CATCH; } case 155: break; case 77: { return ERL_ORELSE; } case 156: break; case 78: { return ERL_RECEIVE; } case 157: break; case 79: { return ERL_ANDALSO; } case 158: break; default: zzScanError(ZZ_NO_MATCH); } } } } }