/* The following code was generated by JFlex 1.4.3 on 2/13/15 10:33 PM */ /* * 13/02/2015 * * MatlabTokenMaker.java - Token maker for the Matlab programming language. * * This library is distributed under a modified BSD license. See the included * RSyntaxTextArea.License.txt file for details. */ package org.fife.ui.rsyntaxtextarea.modes; import java.io.*; import javax.swing.text.Segment; import org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker; import org.fife.ui.rsyntaxtextarea.Token; import org.fife.ui.rsyntaxtextarea.TokenMaker; /** * Scanner for the Matlab programming language. * * @author Vinu K.N * */ public class MatlabTokenMaker extends AbstractJFlexTokenMaker { /** 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 LONG_STRING = 2; public static final int YYINITIAL = 0; /** * 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 */ private static final String ZZ_CMAP_PACKED = "\11\0\1\32\1\11\1\0\1\32\1\31\22\0\1\32\1\65\1\31"+ "\1\0\1\0\1\33\1\70\1\10\1\60\1\60\1\63\1\62\1\65"+ "\1\26\1\23\1\64\1\15\1\20\1\55\1\54\4\20\2\3\1\65"+ "\1\73\1\66\1\61\1\67\1\65\1\72\4\22\1\25\1\22\3\2"+ "\1\30\1\2\1\14\5\2\1\6\2\2\1\7\2\2\1\17\2\2"+ "\1\60\1\12\1\60\1\65\1\1\1\0\1\43\1\21\1\36\1\42"+ "\1\24\1\34\1\51\1\53\1\40\1\27\1\45\1\13\1\50\1\35"+ "\1\41\1\46\1\2\1\4\1\44\1\37\1\5\1\56\1\52\1\16"+ "\1\47\1\57\1\60\1\71\1\60\1\65\uff81\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\1\2\1\3\4\2\1\4\1\5\1\2"+ "\1\3\2\2\1\6\1\2\1\6\1\7\1\10\21\2"+ "\1\11\10\6\1\2\2\12\1\13\1\3\1\14\1\13"+ "\1\14\4\2\2\4\1\0\4\2\1\13\1\3\1\13"+ "\26\2\2\15\1\2\1\16\1\15\1\2\1\15\32\2"+ "\2\0\2\14\1\0\12\2\1\4\1\17\3\2\1\3"+ "\11\2\1\15\15\2\1\16\5\2\1\15\22\2\1\20"+ "\1\14\5\2\1\21\3\2\1\15\41\2\1\15\23\2"+ "\1\15\6\2"; private static int [] zzUnpackAction() { int [] result = new int[264]; 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\u012c\0\u0168\0\u01a4"+ "\0\u01e0\0\u021c\0\170\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\u0528"+ "\0\u0564\0\u05a0\0\u05dc\0\u0618\0\u0654\0\u0690\0\u06cc\0\u0708"+ "\0\u0744\0\u0780\0\u07bc\0\u07f8\0\u0834\0\170\0\u0870\0\u08ac"+ "\0\u08e8\0\170\0\u0924\0\u0960\0\u099c\0\u09d8\0\170\0\u0a14"+ "\0\u0a50\0\u0a8c\0\u0a8c\0\u0ac8\0\u0b04\0\u0a8c\0\u0b40\0\u0b7c"+ "\0\u0bb8\0\u0bf4\0\u0c30\0\u0c6c\0\u0ca8\0\u0ce4\0\u0d20\0\u0d5c"+ "\0\u0d98\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\u12c0\0\u12fc"+ "\0\u1338\0\u1374\0\264\0\u13b0\0\u13ec\0\264\0\u1428\0\u1464"+ "\0\u14a0\0\u14dc\0\u1518\0\u1554\0\u1590\0\u15cc\0\u1608\0\u1644"+ "\0\u1680\0\u16bc\0\u16f8\0\u1734\0\u1770\0\u17ac\0\u17e8\0\u1824"+ "\0\u1860\0\u189c\0\u18d8\0\u1914\0\u1950\0\u198c\0\u19c8\0\u1a04"+ "\0\u1a40\0\u1a7c\0\u1ab8\0\u1af4\0\u1b30\0\170\0\u1b6c\0\u1ba8"+ "\0\u1be4\0\u1c20\0\u1c5c\0\u1c98\0\u1cd4\0\u1d10\0\u1d4c\0\u1d88"+ "\0\u1dc4\0\u1e00\0\170\0\170\0\u1e3c\0\u1e78\0\u1eb4\0\u1ef0"+ "\0\u1f2c\0\u1f68\0\u1fa4\0\u1fe0\0\u201c\0\u2058\0\u2094\0\u20d0"+ "\0\u210c\0\u2148\0\u2184\0\u21c0\0\u21fc\0\u2238\0\u2274\0\u22b0"+ "\0\u22ec\0\u2328\0\u2364\0\u23a0\0\u23dc\0\u2418\0\u2454\0\u2490"+ "\0\u24cc\0\u2508\0\u2544\0\u2580\0\u25bc\0\u25f8\0\u2634\0\u2670"+ "\0\u26ac\0\u26e8\0\u2724\0\u2760\0\u25f8\0\u279c\0\u27d8\0\u2814"+ "\0\u2850\0\u288c\0\u28c8\0\u2904\0\u2940\0\u297c\0\u29b8\0\u29f4"+ "\0\170\0\u2a30\0\u2a6c\0\u2aa8\0\u14a0\0\u2ae4\0\u2b20\0\264"+ "\0\u2b5c\0\u2b98\0\u2bd4\0\u2c10\0\u2c4c\0\u2c88\0\u2cc4\0\u2d00"+ "\0\u2d3c\0\u2d78\0\u2db4\0\u2df0\0\u2e2c\0\u2e68\0\u2ea4\0\u2ee0"+ "\0\u2f1c\0\u2f58\0\u2f94\0\u2fd0\0\u300c\0\u3048\0\u3084\0\u30c0"+ "\0\u30fc\0\u3138\0\u3174\0\u31b0\0\u31ec\0\u3228\0\u3264\0\u32a0"+ "\0\u32dc\0\u3318\0\u3354\0\u3390\0\u33cc\0\u3408\0\u3444\0\u3480"+ "\0\u34bc\0\u34f8\0\u3534\0\u3570\0\u35ac\0\u35e8\0\u3624\0\u3660"+ "\0\u369c\0\u36d8\0\u3714\0\u3750\0\u378c\0\u37c8\0\u3804\0\u3408"+ "\0\u3840\0\u26ac\0\u387c\0\u38b8\0\u38f4\0\u3930\0\u396c\0\u39a8"; private static int [] zzUnpackRowMap() { int [] result = new int[264]; 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\2\4\1\5\1\6\1\7\1\10\1\11\1\12"+ "\1\13\1\3\1\14\1\4\1\15\1\16\1\4\1\5"+ "\1\17\1\4\1\20\1\21\1\4\1\22\2\4\1\3"+ "\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\32"+ "\1\33\1\34\1\35\1\4\1\36\1\37\1\40\1\41"+ "\1\42\1\43\2\5\1\44\1\45\1\46\1\47\1\50"+ "\1\51\1\47\1\52\1\53\1\54\1\55\1\56\2\57"+ "\10\60\1\61\63\60\75\0\7\4\3\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\24\4\14\0\3\62\1\5"+ "\4\62\2\0\1\62\2\63\1\5\2\62\1\5\2\62"+ "\1\64\2\65\1\0\2\66\3\0\20\62\2\5\2\62"+ "\12\0\1\62\2\0\7\4\1\12\2\0\10\4\1\0"+ "\1\67\1\4\1\0\2\4\3\0\5\4\1\70\1\4"+ "\1\71\14\4\15\0\3\4\1\10\1\4\1\10\1\4"+ "\1\12\2\0\10\4\1\0\2\4\1\0\2\4\3\0"+ "\1\4\1\72\22\4\15\0\7\4\1\12\2\0\10\4"+ "\1\0\2\4\1\0\2\4\3\0\24\4\15\0\3\4"+ "\1\10\1\4\1\10\1\4\1\12\2\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\24\4\14\0\10\73\1\74"+ "\1\0\1\75\61\73\1\0\7\4\3\0\10\4\1\0"+ "\1\76\1\4\1\0\2\4\3\0\4\4\1\77\1\100"+ "\1\4\1\101\14\4\14\0\3\62\1\102\4\62\2\0"+ "\1\62\2\63\1\103\2\104\1\103\2\62\1\64\2\65"+ "\1\0\2\66\3\0\20\62\2\103\2\62\12\0\1\62"+ "\2\0\3\4\1\105\3\4\3\0\10\4\1\0\2\4"+ "\1\0\2\4\3\0\24\4\15\0\3\4\1\106\1\107"+ "\2\4\3\0\10\4\1\0\2\4\1\0\2\4\3\0"+ "\5\4\1\110\16\4\17\0\1\64\11\0\1\64\2\0"+ "\1\64\33\0\2\64\17\0\7\4\3\0\1\111\2\4"+ "\1\112\4\4\1\0\2\4\1\0\2\4\3\0\1\4"+ "\1\113\20\4\1\114\1\4\42\0\1\52\32\0\1\52"+ "\44\0\1\23\41\0\11\24\1\0\62\24\1\0\3\4"+ "\1\115\1\116\2\4\3\0\1\117\7\4\1\0\2\4"+ "\1\0\2\4\3\0\4\4\1\120\1\121\16\4\15\0"+ "\7\4\3\0\10\4\1\0\2\4\1\0\2\4\3\0"+ "\5\4\1\122\16\4\15\0\7\4\3\0\1\123\7\4"+ "\1\0\2\4\1\0\2\4\3\0\5\4\1\124\1\4"+ "\1\125\4\4\1\126\2\4\1\127\4\4\15\0\3\4"+ "\1\130\1\131\2\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\13\4\1\132\10\4\15\0\7\4\3\0"+ "\10\4\1\0\2\4\1\0\2\4\3\0\1\133\1\134"+ "\1\4\1\135\2\4\1\136\1\4\1\137\3\4\1\140"+ "\7\4\15\0\3\4\1\141\3\4\3\0\6\4\1\142"+ "\1\4\1\0\2\4\1\0\2\4\3\0\2\4\1\143"+ "\7\4\1\144\11\4\15\0\7\4\3\0\10\4\1\0"+ "\1\145\1\4\1\0\2\4\3\0\4\4\1\146\1\147"+ "\16\4\15\0\7\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\2\4\1\150\5\4\1\151\1\4\1\152"+ "\11\4\15\0\4\4\1\153\2\4\3\0\1\154\7\4"+ "\1\0\1\155\1\4\1\0\2\4\3\0\3\4\1\156"+ "\1\157\12\4\1\160\4\4\15\0\3\4\1\161\3\4"+ "\3\0\10\4\1\0\2\4\1\0\2\4\3\0\5\4"+ "\1\162\1\4\1\163\14\4\15\0\7\4\3\0\10\4"+ "\1\0\2\4\1\0\2\4\3\0\4\4\1\164\17\4"+ "\15\0\7\4\3\0\10\4\1\0\2\4\1\0\2\4"+ "\3\0\4\4\1\76\2\4\1\165\14\4\15\0\7\4"+ "\3\0\1\166\7\4\1\0\1\155\1\4\1\0\2\4"+ "\3\0\24\4\15\0\7\4\3\0\10\4\1\0\2\4"+ "\1\0\2\4\3\0\17\4\1\167\4\4\15\0\7\4"+ "\3\0\10\4\1\0\1\170\1\4\1\0\2\4\3\0"+ "\7\4\1\171\14\4\15\0\7\4\3\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\5\4\1\172\1\4\1\173"+ "\14\4\15\0\7\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\4\4\1\126\17\4\75\0\1\52\73\0"+ "\2\52\72\0\1\52\1\0\1\52\76\0\1\47\74\0"+ "\1\47\74\0\1\52\74\0\1\52\2\0\10\60\1\0"+ "\63\60\10\0\1\174\63\0\10\62\2\0\11\62\1\0"+ "\2\62\1\0\2\62\3\0\24\62\12\0\1\62\4\0"+ "\1\64\11\0\1\64\2\0\1\64\3\0\2\175\1\0"+ "\2\176\23\0\2\64\16\0\3\62\1\177\4\62\2\0"+ "\3\62\1\177\2\62\1\177\2\62\1\0\2\62\1\200"+ "\2\62\3\0\20\62\2\177\2\62\2\0\1\200\7\0"+ "\1\62\2\0\7\4\3\0\1\201\7\4\1\0\2\4"+ "\1\0\2\4\3\0\3\4\1\202\2\4\1\203\3\4"+ "\1\204\11\4\15\0\4\4\1\205\2\4\3\0\10\4"+ "\1\0\2\4\1\0\2\4\3\0\24\4\15\0\7\4"+ "\3\0\10\4\1\0\2\4\1\0\2\4\3\0\1\4"+ "\1\206\2\4\1\207\11\4\1\210\5\4\15\0\7\4"+ "\3\0\10\4\1\0\2\4\1\0\2\4\3\0\4\4"+ "\1\211\3\4\1\212\13\4\14\0\10\73\1\213\1\0"+ "\1\75\61\73\10\0\1\214\63\0\11\73\1\0\62\73"+ "\1\0\7\4\3\0\10\4\1\0\2\4\1\0\2\4"+ "\3\0\1\4\1\136\22\4\15\0\7\4\3\0\10\4"+ "\1\0\2\4\1\0\2\4\3\0\10\4\1\143\13\4"+ "\15\0\7\4\3\0\10\4\1\0\2\4\1\0\2\4"+ "\3\0\1\4\1\215\1\216\21\4\15\0\7\4\3\0"+ "\10\4\1\0\2\4\1\0\2\4\3\0\14\4\1\217"+ "\7\4\14\0\3\62\1\102\4\62\2\0\3\62\1\102"+ "\2\62\1\102\2\62\1\64\2\65\1\0\2\66\3\0"+ "\20\62\2\102\2\62\12\0\1\62\1\0\3\62\1\102"+ "\4\62\2\0\1\62\2\63\1\103\2\62\1\103\2\62"+ "\1\64\2\65\1\0\2\66\3\0\20\62\2\103\2\62"+ "\12\0\1\62\1\0\3\62\1\220\4\62\2\0\3\62"+ "\1\220\2\62\3\220\1\0\2\220\1\0\2\62\3\0"+ "\1\220\1\62\1\220\3\62\2\220\10\62\2\220\2\62"+ "\12\0\1\62\2\0\7\4\3\0\10\4\1\0\2\4"+ "\1\0\2\4\3\0\7\4\1\221\14\4\15\0\7\4"+ "\3\0\10\4\1\0\1\222\1\4\1\0\2\4\3\0"+ "\24\4\15\0\7\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\1\223\23\4\15\0\7\4\3\0\10\4"+ "\1\0\2\4\1\0\2\4\3\0\5\4\1\224\16\4"+ "\15\0\7\4\3\0\10\4\1\0\2\4\1\0\2\4"+ "\3\0\4\4\1\225\3\4\1\226\13\4\15\0\7\4"+ "\3\0\10\4\1\0\1\227\1\4\1\0\2\4\3\0"+ "\2\4\1\230\21\4\15\0\4\4\1\231\2\4\3\0"+ "\10\4\1\0\2\4\1\0\2\4\3\0\6\4\1\232"+ "\15\4\15\0\7\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\7\4\1\224\14\4\15\0\7\4\3\0"+ "\10\4\1\0\2\4\1\0\2\4\3\0\5\4\1\233"+ "\16\4\15\0\7\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\1\4\1\234\22\4\15\0\7\4\3\0"+ "\10\4\1\0\2\4\1\0\2\4\3\0\5\4\1\235"+ "\16\4\15\0\7\4\3\0\1\236\7\4\1\0\2\4"+ "\1\0\2\4\3\0\1\4\1\237\22\4\15\0\3\4"+ "\1\133\3\4\3\0\10\4\1\0\2\4\1\0\2\4"+ "\3\0\24\4\15\0\7\4\3\0\10\4\1\0\2\4"+ "\1\0\2\4\3\0\3\4\1\133\20\4\15\0\7\4"+ "\3\0\10\4\1\0\2\4\1\0\2\4\3\0\7\4"+ "\1\240\14\4\15\0\7\4\3\0\10\4\1\0\1\241"+ "\1\4\1\0\2\4\3\0\1\4\1\242\12\4\1\243"+ "\7\4\15\0\7\4\3\0\1\244\7\4\1\0\2\4"+ "\1\0\2\4\3\0\24\4\15\0\7\4\3\0\10\4"+ "\1\0\2\4\1\0\2\4\3\0\12\4\1\136\11\4"+ "\15\0\3\4\1\136\3\4\3\0\10\4\1\0\2\4"+ "\1\0\2\4\3\0\7\4\1\245\14\4\15\0\7\4"+ "\3\0\10\4\1\0\2\4\1\0\2\4\3\0\13\4"+ "\1\133\10\4\15\0\7\4\3\0\10\4\1\0\2\4"+ "\1\0\2\4\3\0\12\4\1\246\11\4\15\0\7\4"+ "\3\0\10\4\1\0\2\4\1\0\2\4\3\0\12\4"+ "\1\247\11\4\15\0\7\4\3\0\10\4\1\0\2\4"+ "\1\0\2\4\3\0\3\4\1\250\6\4\1\251\11\4"+ "\15\0\7\4\3\0\10\4\1\0\1\204\1\4\1\0"+ "\2\4\3\0\24\4\15\0\7\4\3\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\4\4\1\252\3\4\1\253"+ "\13\4\15\0\7\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\12\4\1\254\11\4\15\0\7\4\3\0"+ "\10\4\1\0\2\4\1\0\2\4\3\0\6\4\1\136"+ "\15\4\15\0\7\4\3\0\10\4\1\0\2\4\1\0"+ "\1\255\1\4\3\0\24\4\15\0\7\4\3\0\10\4"+ "\1\0\2\4\1\0\2\4\3\0\3\4\1\136\20\4"+ "\15\0\7\4\3\0\10\4\1\0\1\76\1\4\1\0"+ "\2\4\3\0\24\4\15\0\7\4\3\0\1\256\7\4"+ "\1\0\2\4\1\0\2\4\3\0\1\133\23\4\15\0"+ "\3\4\1\136\3\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\2\4\1\143\17\4\1\257\1\4\15\0"+ "\4\4\1\260\2\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\24\4\15\0\7\4\3\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\5\4\1\261\16\4\15\0"+ "\7\4\3\0\10\4\1\0\2\4\1\0\2\4\3\0"+ "\10\4\1\262\13\4\15\0\7\4\3\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\12\4\1\263\11\4\15\0"+ "\7\4\3\0\10\4\1\0\2\4\1\0\2\4\3\0"+ "\12\4\1\135\1\4\1\136\7\4\15\0\7\4\3\0"+ "\10\4\1\0\2\4\1\0\2\4\3\0\4\4\1\264"+ "\17\4\15\0\7\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\3\4\1\265\20\4\15\0\3\4\1\136"+ "\3\4\3\0\10\4\1\0\2\4\1\0\2\4\3\0"+ "\7\4\1\266\14\4\15\0\7\4\3\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\15\4\1\267\6\4\15\0"+ "\7\4\3\0\10\4\1\0\2\4\1\0\2\4\3\0"+ "\5\4\1\270\16\4\15\0\7\4\3\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\4\4\1\271\1\272\16\4"+ "\15\0\7\4\3\0\10\4\1\0\2\4\1\0\2\4"+ "\3\0\16\4\1\136\5\4\15\0\7\4\3\0\10\4"+ "\1\0\2\4\1\0\2\4\3\0\10\4\1\273\13\4"+ "\15\0\7\4\3\0\10\4\1\0\1\274\1\4\1\0"+ "\2\4\3\0\24\4\15\0\7\4\3\0\3\4\1\136"+ "\4\4\1\0\2\4\1\0\2\4\3\0\12\4\1\136"+ "\11\4\15\0\7\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\5\4\1\275\16\4\15\0\7\4\3\0"+ "\10\4\1\0\2\4\1\0\2\4\3\0\4\4\1\276"+ "\17\4\15\0\7\4\3\0\3\4\1\136\4\4\1\0"+ "\2\4\1\0\2\4\3\0\24\4\15\0\7\4\3\0"+ "\10\4\1\0\2\4\1\0\2\4\3\0\10\4\1\277"+ "\13\4\15\0\7\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\4\4\1\300\17\4\15\0\3\4\1\261"+ "\3\4\3\0\10\4\1\0\2\4\1\0\2\4\3\0"+ "\24\4\24\0\1\301\66\0\1\302\11\0\1\302\2\0"+ "\1\302\5\0\1\200\25\0\2\302\4\0\1\200\11\0"+ "\3\62\1\177\4\62\2\0\3\62\1\177\2\62\1\177"+ "\2\62\1\0\2\62\1\0\2\66\3\0\20\62\2\177"+ "\2\62\12\0\1\62\4\0\1\302\11\0\1\302\2\0"+ "\1\302\33\0\2\302\17\0\7\4\3\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\5\4\1\303\16\4\15\0"+ "\4\4\1\304\2\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\24\4\15\0\4\4\1\264\2\4\3\0"+ "\10\4\1\0\2\4\1\0\2\4\3\0\24\4\15\0"+ "\3\4\1\136\3\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\24\4\15\0\7\4\3\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\1\4\1\305\22\4\15\0"+ "\7\4\3\0\10\4\1\0\2\4\1\0\2\4\3\0"+ "\15\4\1\247\6\4\15\0\7\4\3\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\10\4\1\226\13\4\15\0"+ "\1\306\6\4\3\0\10\4\1\0\2\4\1\0\2\4"+ "\3\0\24\4\15\0\7\4\3\0\10\4\1\0\2\4"+ "\1\0\2\4\3\0\2\4\1\307\21\4\15\0\7\4"+ "\3\0\10\4\1\0\2\4\1\0\2\4\3\0\4\4"+ "\1\157\17\4\15\0\7\4\3\0\10\4\1\0\2\4"+ "\1\0\2\4\3\0\15\4\1\310\6\4\15\0\7\4"+ "\3\0\10\4\1\0\2\4\1\0\2\4\3\0\7\4"+ "\1\311\14\4\15\0\7\4\3\0\6\4\1\312\1\4"+ "\1\0\2\4\1\0\2\4\3\0\24\4\14\0\3\62"+ "\1\220\4\62\2\0\1\62\2\63\1\220\2\62\3\220"+ "\1\0\2\220\1\0\2\62\3\0\1\220\1\62\1\220"+ "\3\62\2\220\10\62\2\220\2\62\12\0\1\62\2\0"+ "\7\4\3\0\10\4\1\0\2\4\1\0\2\4\3\0"+ "\1\4\1\206\22\4\15\0\7\4\3\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\7\4\1\313\14\4\15\0"+ "\7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 "\11\4\15\0\7\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\10\4\1\133\13\4\15\0\7\4\3\0"+ "\1\344\7\4\1\0\2\4\1\0\2\4\3\0\24\4"+ "\15\0\7\4\3\0\6\4\1\345\1\4\1\0\2\4"+ "\1\0\2\4\3\0\24\4\15\0\7\4\3\0\1\226"+ "\7\4\1\0\2\4\1\0\2\4\3\0\24\4\15\0"+ "\7\4\3\0\10\4\1\0\2\4\1\0\2\4\3\0"+ "\7\4\1\335\7\4\1\136\4\4\15\0\7\4\3\0"+ "\10\4\1\0\2\4\1\0\2\4\3\0\6\4\1\310"+ "\15\4\17\0\1\302\11\0\1\302\2\0\1\302\6\0"+ "\2\176\23\0\2\302\17\0\7\4\3\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\7\4\1\305\14\4\15\0"+ "\3\4\1\346\3\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\24\4\15\0\7\4\3\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\4\4\1\347\17\4\15\0"+ "\7\4\3\0\10\4\1\0\2\4\1\0\2\4\3\0"+ "\5\4\1\350\11\4\1\204\4\4\15\0\7\4\3\0"+ "\1\261\7\4\1\0\2\4\1\0\2\4\3\0\24\4"+ "\15\0\7\4\3\0\10\4\1\0\2\4\1\0\2\4"+ "\3\0\6\4\1\351\15\4\15\0\7\4\3\0\10\4"+ "\1\0\2\4\1\0\2\4\3\0\11\4\1\133\12\4"+ "\15\0\7\4\3\0\10\4\1\0\2\4\1\0\2\4"+ "\3\0\1\352\23\4\15\0\7\4\3\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\12\4\1\122\11\4\15\0"+ "\7\4\3\0\10\4\1\0\1\353\1\4\1\0\2\4"+ "\3\0\24\4\15\0\7\4\3\0\10\4\1\0\2\4"+ "\1\0\2\4\3\0\5\4\1\121\16\4\15\0\7\4"+ "\3\0\10\4\1\0\2\4\1\0\2\4\3\0\3\4"+ "\1\354\20\4\15\0\7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\4\1\0\2\4\1\0\2\4\3\0\24\4"+ "\15\0\7\4\3\0\1\u0102\7\4\1\0\2\4\1\0"+ "\2\4\3\0\24\4\15\0\7\4\3\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\12\4\1\251\11\4\15\0"+ "\7\4\3\0\10\4\1\0\2\4\1\0\2\4\3\0"+ "\7\4\1\u0103\14\4\15\0\7\4\3\0\10\4\1\0"+ "\2\4\1\0\2\4\3\0\5\4\1\346\16\4\15\0"+ "\7\4\3\0\10\4\1\0\1\u0104\1\4\1\0\2\4"+ "\3\0\24\4\15\0\4\4\1\226\2\4\3\0\10\4"+ "\1\0\2\4\1\0\2\4\3\0\24\4\15\0\7\4"+ "\3\0\10\4\1\0\2\4\1\0\2\4\3\0\7\4"+ "\1\u0105\14\4\15\0\7\4\3\0\1\u0106\7\4\1\0"+ "\2\4\1\0\2\4\3\0\24\4\15\0\7\4\3\0"+ "\10\4\1\0\2\4\1\0\2\4\3\0\3\4\1\340"+ "\20\4\15\0\7\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\3\4\1\247\20\4\15\0\7\4\3\0"+ "\10\4\1\0\2\4\1\0\2\4\3\0\3\4\1\u0107"+ "\20\4\15\0\7\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\1\4\1\264\22\4\15\0\7\4\3\0"+ "\10\4\1\0\2\4\1\0\2\4\3\0\7\4\1\u0108"+ "\14\4\15\0\7\4\3\0\10\4\1\0\2\4\1\0"+ "\2\4\3\0\17\4\1\336\4\4\15\0\7\4\3\0"+ "\10\4\1\0\2\4\1\0\2\4\3\0\10\4\1\261"+ "\13\4\14\0"; private static int [] zzUnpackTrans() { int [] result = new int[14820]; 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\7\1\1\11\32\1\1\11\3\1\1\11"+ "\4\1\1\11\15\1\1\0\76\1\2\0\1\11\1\1"+ "\1\0\12\1\2\11\64\1\1\11\107\1"; private static int [] zzUnpackAttribute() { int [] result = new int[264]; 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 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; /** * 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: */ /** * Constructor. This must be here because JFlex does not generate a * no-parameter constructor. */ public MatlabTokenMaker() { super(); } /** * Adds the token specified to the current linked list of tokens. * * @param tokenType The token's type. */ private void addToken(int tokenType) { addToken(zzStartRead, zzMarkedPos-1, tokenType); } /** * Adds the token specified to the current linked list of tokens. * * @param tokenType The token's type. */ private void addToken(int start, int end, int tokenType) { int so = start + offsetShift; addToken(zzBuffer, start,end, tokenType, so); } /** * Adds the token specified to the current linked list of tokens. * * @param array The character array. * @param start The starting offset in the array. * @param end The ending offset in the array. * @param tokenType The token's type. * @param startOffset The offset in the document at which this token * occurs. */ @Override public void addToken(char[] array, int start, int end, int tokenType, int startOffset) { super.addToken(array, start,end, tokenType, startOffset); zzStartRead = zzMarkedPos; } /** * {@inheritDoc} */ //@Override public String[] getLineCommentStartAndEnd(int languageIndex) { return new String[] { "#", null }; } /** * Returns the first token in the linked list of tokens generated * from <code>text</code>. This method must be implemented by * subclasses so they can correctly implement syntax highlighting. * * @param text The text from which to get tokens. * @param initialTokenType The token type we should start with. * @param startOffset The offset into the document at which * <code>text</code> starts. * @return The first <code>Token</code> in a linked list representing * the syntax highlighted text. */ public Token getTokenList(Segment text, int initialTokenType, int startOffset) { resetTokenList(); this.offsetShift = -text.offset + startOffset; // Start off in the proper state. int state = Token.NULL; switch (initialTokenType) { case Token.LITERAL_STRING_DOUBLE_QUOTE: state = LONG_STRING; break; case Token.LITERAL_CHAR: state = LONG_STRING; break; default: state = Token.NULL; } s = text; try { yyreset(zzReader); yybegin(state); return yylex(); } catch (IOException ioe) { ioe.printStackTrace(); return null; } } /** * Resets the scanner to read from a new input stream. * Does not close the old reader. * * All internal variables are reset, the old input stream * <b>cannot</b> be reused (internal buffer is discarded and lost). * Lexical state is set to <tt>YY_INITIAL</tt>. * * @param reader the new input stream */ public final void yyreset(java.io.Reader reader) throws java.io.IOException { // 's' has been updated. zzBuffer = s.array; /* * We replaced the line below with the two below it because zzRefill * no longer "refills" the buffer (since the way we do it, it's always * "full" the first time through, since it points to the segment's * array). So, we assign zzEndRead here. */ //zzStartRead = zzEndRead = s.offset; zzStartRead = s.offset; zzEndRead = zzStartRead + s.count - 1; zzCurrentPos = zzMarkedPos = s.offset; zzLexicalState = YYINITIAL; zzReader = reader; zzAtBOL = true; zzAtEOF = false; } /** * Refills the input buffer. * * @return <code>true</code> if EOF was reached, otherwise * <code>false</code>. * @exception IOException if any I/O-Error occurs. */ private boolean zzRefill() throws java.io.IOException { return zzCurrentPos>=s.offset+s.count; } /** * 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 MatlabTokenMaker(java.io.Reader in) { this.zzReader = 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 MatlabTokenMaker(java.io.InputStream in) { this(new java.io.InputStreamReader(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) { char [] map = new char[0x10000]; int i = 0; /* index in packed string */ int j = 0; /* index in unpacked array */ while (i < 174) { int count = packed.charAt(i++); char value = packed.charAt(i++); do map[j++] = value; while (--count > 0); } return map; } /** * Closes the input stream. */ public final void yyclose() throws java.io.IOException { zzAtEOF = true; /* indicate end of file */ zzEndRead = zzStartRead; /* invalidate buffer */ if (zzReader != null) zzReader.close(); } /** * 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 String yytext() { return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead ); } /** * 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[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 org.fife.ui.rsyntaxtextarea.Token yylex() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; 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]; zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) zzInput = zzBufferL[zzCurrentPosL++]; 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 = zzBufferL[zzCurrentPosL++]; } } int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ]; if (zzNext == -1) break zzForAction; zzState = zzNext; int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 13: { addToken(Token.RESERVED_WORD); } case 18: break; case 2: { addToken(Token.IDENTIFIER); } case 19: break; case 14: { addToken(Token.FUNCTION); } case 20: break; case 12: { addToken(Token.LITERAL_NUMBER_FLOAT); } case 21: break; case 4: { addToken(Token.LITERAL_STRING_DOUBLE_QUOTE); } case 22: break; case 7: { addToken(Token.WHITESPACE); } case 23: break; case 16: { yybegin(YYINITIAL); addToken(Token.LITERAL_CHAR); } case 24: break; case 17: { addToken(Token.DATA_TYPE); } case 25: break; case 11: { addToken(Token.ERROR_NUMBER_FORMAT); } case 26: break; case 8: { addToken(Token.COMMENT_EOL); } case 27: break; case 1: { addToken(Token.ERROR_IDENTIFIER); } case 28: break; case 6: { addToken(Token.OPERATOR); } case 29: break; case 3: { addToken(Token.LITERAL_NUMBER_DECIMAL_INT); } case 30: break; case 10: { addToken(Token.LITERAL_CHAR); } case 31: break; case 15: { yybegin(LONG_STRING); addToken(Token.LITERAL_CHAR); } case 32: break; case 5: { addNullToken(); return firstToken; } case 33: break; case 9: { addToken(Token.SEPARATOR); } case 34: break; default: if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { zzAtEOF = true; switch (zzLexicalState) { case LONG_STRING: { if (firstToken==null) { addToken(Token.LITERAL_CHAR); } return firstToken; } case 265: break; case YYINITIAL: { addNullToken(); return firstToken; } case 266: break; default: return null; } } else { zzScanError(ZZ_NO_MATCH); } } } } }