/* The following code was generated by JFlex 1.4.1 on 5/3/06 3:14 PM */
package grammar;
import java.io.*;
import java_cup.runtime.*;
/**
* This class is a scanner generated by
* JFlex 1.4.1
* on 5/3/06 3:14 PM from the specification file
* Source/grammar/Yylex.jflex
*/
public class Yylex {
/** 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 COMMENT = 2;
public static final int NORMAL = 1;
/**
* Translates characters to character classes
*/
private static final char [] ZZ_CMAP = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 0, 0, 2, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 57, 14, 0, 0, 50, 55, 13, 59, 60, 48, 47, 45, 9, 22, 49,
21, 5, 5, 5, 5, 5, 5, 5, 6, 6, 56, 44, 51, 46, 52, 16,
0, 7, 7, 7, 7, 8, 12, 4, 4, 4, 4, 4, 10, 4, 4, 4,
4, 4, 4, 4, 4, 11, 4, 4, 20, 4, 4, 63, 15, 64, 54, 4,
0, 23, 18, 30, 35, 28, 19, 39, 32, 34, 4, 29, 36, 37, 33, 26,
43, 4, 27, 31, 25, 24, 17, 41, 38, 42, 40, 61, 53, 62, 58, 0
};
/**
* Translates DFA states to action switch labels.
*/
private static final int [] ZZ_ACTION = zzUnpackAction();
private static final String ZZ_ACTION_PACKED_0 =
"\3\0\2\1\1\0\1\2\1\3\1\4\1\5\1\6"+
"\1\4\3\2\1\7\3\4\1\5\1\10\14\4\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\1\27\1\30\1\31"+
"\1\32\1\33\1\34\1\35\2\3\1\0\2\5\1\0"+
"\1\36\1\37\1\40\4\0\1\41\1\0\4\4\1\5"+
"\3\0\16\4\1\42\1\4\1\43\4\4\1\44\1\45"+
"\1\46\1\47\1\50\1\51\1\3\1\52\1\53\1\54"+
"\1\55\1\56\1\57\1\60\1\61\1\62\1\63\1\64"+
"\1\65\1\66\1\0\1\5\1\66\1\67\2\0\2\4"+
"\1\70\1\4\1\5\1\71\22\4\1\72\5\4\1\73"+
"\1\74\1\66\1\75\2\4\1\76\5\4\1\77\1\100"+
"\1\4\1\101\1\4\1\102\10\4\1\103\1\104\1\4"+
"\1\105\1\106\1\4\1\107\7\4\1\110\5\4\1\111"+
"\2\4\1\112\1\4\1\113\1\4\1\114\1\115\1\116"+
"\1\117\1\120\1\121\2\4\1\122\2\4\1\123\1\124"+
"\1\125\1\126";
private static int [] zzUnpackAction() {
int [] result = new int[222];
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\101\0\202\0\303\0\u0104\0\u0145\0\u0104\0\u0104"+
"\0\u0186\0\u01c7\0\u0208\0\u0249\0\u028a\0\u02cb\0\u0145\0\u0104"+
"\0\u030c\0\u034d\0\u038e\0\u03cf\0\u0410\0\u0451\0\u0492\0\u04d3"+
"\0\u0514\0\u0555\0\u0596\0\u05d7\0\u0618\0\u0659\0\u069a\0\u06db"+
"\0\u071c\0\u0104\0\u0104\0\u075d\0\u079e\0\u07df\0\u0820\0\u0861"+
"\0\u08a2\0\u08e3\0\u0924\0\u0965\0\u09a6\0\u0104\0\u09e7\0\u0104"+
"\0\u0104\0\u0104\0\u0104\0\u0104\0\u0104\0\u0104\0\u0145\0\u0a28"+
"\0\u0a69\0\u0aaa\0\u0aeb\0\u0b2c\0\u0104\0\u0104\0\u0104\0\u028a"+
"\0\u02cb\0\u0b6d\0\u0bae\0\u0104\0\u0bef\0\u0c30\0\u0c71\0\u0cb2"+
"\0\u0cf3\0\u0d34\0\u0d75\0\u0db6\0\u0df7\0\u0e38\0\u0e79\0\u0eba"+
"\0\u0efb\0\u0f3c\0\u0f7d\0\u0fbe\0\u0fff\0\u1040\0\u1081\0\u10c2"+
"\0\u1103\0\u1144\0\u1185\0\u0186\0\u11c6\0\u1207\0\u1248\0\u1289"+
"\0\u12ca\0\u130b\0\u0104\0\u0104\0\u0104\0\u0104\0\u0104\0\u0104"+
"\0\u134c\0\u0104\0\u0104\0\u138d\0\u0104\0\u13ce\0\u0104\0\u0104"+
"\0\u0104\0\u0104\0\u0104\0\u0104\0\u0104\0\u140f\0\u1450\0\u0104"+
"\0\u1491\0\u0104\0\u14d2\0\u1513\0\u1554\0\u1595\0\u0186\0\u15d6"+
"\0\u1617\0\u0104\0\u1658\0\u1699\0\u16da\0\u171b\0\u175c\0\u179d"+
"\0\u17de\0\u181f\0\u1860\0\u18a1\0\u18e2\0\u1923\0\u1964\0\u19a5"+
"\0\u19e6\0\u1a27\0\u1a68\0\u1aa9\0\u0186\0\u1aea\0\u1b2b\0\u1b6c"+
"\0\u1bad\0\u1bee\0\u0104\0\u0104\0\u0104\0\u0186\0\u1c2f\0\u1c70"+
"\0\u0186\0\u1cb1\0\u1cf2\0\u1d33\0\u1d74\0\u1db5\0\u0186\0\u0186"+
"\0\u1df6\0\u0186\0\u1e37\0\u0186\0\u1e78\0\u1eb9\0\u1efa\0\u1f3b"+
"\0\u1f7c\0\u1fbd\0\u1ffe\0\u203f\0\u0186\0\u0186\0\u2080\0\u0186"+
"\0\u0186\0\u20c1\0\u0186\0\u2102\0\u2143\0\u2184\0\u21c5\0\u2206"+
"\0\u2247\0\u2288\0\u0186\0\u22c9\0\u230a\0\u234b\0\u238c\0\u23cd"+
"\0\u0186\0\u240e\0\u244f\0\u0186\0\u2490\0\u0186\0\u24d1\0\u0186"+
"\0\u0186\0\u0186\0\u0186\0\u0186\0\u0186\0\u2512\0\u2553\0\u0186"+
"\0\u2594\0\u25d5\0\u0186\0\u0186\0\u0186\0\u0186";
private static int [] zzUnpackRowMap() {
int [] result = new int[222];
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\0\1\4\1\5\13\0\1\6\61\0\1\7\1\10"+
"\1\4\1\5\1\11\2\12\2\11\1\13\1\14\2\11"+
"\1\15\1\16\1\17\1\20\1\21\1\22\1\23\1\11"+
"\1\24\1\25\1\26\1\27\1\30\1\11\1\31\1\32"+
"\1\11\1\33\1\34\2\11\1\35\1\36\1\37\2\11"+
"\1\40\1\11\1\41\2\11\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\61\1\62\1\63\1\64\1\65"+
"\1\66\2\10\1\4\1\5\13\10\1\67\40\10\1\70"+
"\20\10\3\0\1\5\200\0\1\4\1\5\101\0\5\11"+
"\1\0\3\11\4\0\5\11\1\0\25\11\32\0\2\12"+
"\1\0\1\71\1\0\1\72\1\73\11\0\1\12\1\74"+
"\1\0\1\73\3\0\1\71\7\0\1\72\45\0\1\75"+
"\44\0\1\76\5\0\1\77\20\0\5\11\1\0\3\11"+
"\1\100\1\101\2\0\5\11\1\0\25\11\25\0\2\102"+
"\2\0\11\102\1\0\1\102\1\103\61\102\2\101\2\0"+
"\12\101\1\104\1\105\61\101\4\0\5\11\1\0\3\11"+
"\4\0\5\11\1\0\3\11\1\106\21\11\31\0\5\11"+
"\1\0\3\11\4\0\5\11\1\0\4\11\1\107\20\11"+
"\31\0\5\11\1\0\3\11\4\0\5\11\1\0\3\11"+
"\1\110\11\11\1\111\7\11\32\0\1\112\1\113\1\0"+
"\1\71\1\0\1\72\1\73\10\0\1\114\1\112\1\74"+
"\1\0\1\73\3\0\1\71\7\0\1\72\1\0\1\114"+
"\60\0\1\115\56\0\5\11\1\0\3\11\4\0\5\11"+
"\1\0\1\11\1\116\23\11\31\0\5\11\1\0\3\11"+
"\4\0\5\11\1\0\12\11\1\117\12\11\31\0\5\11"+
"\1\0\3\11\4\0\5\11\1\0\23\11\1\120\1\11"+
"\31\0\5\11\1\0\3\11\4\0\5\11\1\0\5\11"+
"\1\121\17\11\31\0\5\11\1\0\3\11\4\0\5\11"+
"\1\0\12\11\1\122\2\11\1\123\1\11\1\124\5\11"+
"\31\0\5\11\1\0\3\11\4\0\5\11\1\0\1\125"+
"\2\11\1\126\5\11\1\127\13\11\31\0\5\11\1\0"+
"\3\11\4\0\5\11\1\0\2\11\1\130\6\11\1\131"+
"\1\11\1\132\6\11\1\133\2\11\31\0\5\11\1\0"+
"\3\11\4\0\2\11\1\134\2\11\1\0\12\11\1\135"+
"\12\11\31\0\5\11\1\0\3\11\4\0\5\11\1\0"+
"\3\11\1\136\1\11\1\137\17\11\31\0\5\11\1\0"+
"\3\11\1\100\1\101\2\0\5\11\1\0\3\11\1\140"+
"\21\11\31\0\5\11\1\0\3\11\4\0\5\11\1\0"+
"\3\11\1\141\21\11\31\0\5\11\1\0\3\11\4\0"+
"\5\11\1\0\11\11\1\142\13\11\103\0\1\143\100\0"+
"\1\144\1\145\77\0\1\146\100\0\1\147\1\0\1\150"+
"\1\151\75\0\1\152\100\0\1\153\4\0\1\154\73\0"+
"\1\155\5\0\1\156\72\0\1\157\6\0\1\160\71\0"+
"\1\161\100\0\1\162\10\0\1\163\67\0\1\164\103\0"+
"\1\165\24\0\2\166\2\0\1\167\13\0\1\166\31\0"+
"\1\167\34\0\1\170\14\0\1\170\62\0\1\170\31\0"+
"\1\170\41\0\2\171\16\0\1\171\53\0\2\102\2\0"+
"\11\102\1\172\1\102\1\103\61\102\5\0\1\102\7\0"+
"\7\102\1\173\1\102\1\0\1\102\1\0\1\102\1\0"+
"\1\102\5\0\1\102\4\0\1\173\37\0\1\101\7\0"+
"\7\101\1\174\1\101\1\0\1\101\1\0\1\101\1\0"+
"\1\101\5\0\1\101\4\0\1\174\36\0\5\11\1\0"+
"\3\11\4\0\5\11\1\0\13\11\1\175\11\11\31\0"+
"\5\11\1\0\3\11\4\0\5\11\1\0\5\11\1\176"+
"\17\11\31\0\5\11\1\0\3\11\4\0\5\11\1\0"+
"\4\11\1\177\20\11\31\0\5\11\1\0\3\11\4\0"+
"\5\11\1\0\3\11\1\200\21\11\32\0\1\112\1\113"+
"\1\0\1\71\1\0\1\72\1\73\11\0\1\112\1\74"+
"\1\0\1\73\3\0\1\71\7\0\1\72\41\0\2\113"+
"\1\0\1\71\14\0\1\113\1\74\5\0\1\71\51\0"+
"\4\201\3\0\1\201\5\0\2\201\1\0\1\201\1\0"+
"\1\201\4\0\1\201\1\0\1\201\4\0\1\201\63\0"+
"\1\202\56\0\5\11\1\0\3\11\4\0\5\11\1\0"+
"\2\11\1\203\22\11\31\0\5\11\1\0\3\11\4\0"+
"\5\11\1\0\10\11\1\204\2\11\1\205\11\11\31\0"+
"\5\11\1\0\3\11\4\0\5\11\1\0\24\11\1\206"+
"\31\0\5\11\1\0\3\11\4\0\5\11\1\0\2\11"+
"\1\207\15\11\1\210\4\11\31\0\5\11\1\0\3\11"+
"\4\0\5\11\1\0\1\11\1\211\23\11\31\0\5\11"+
"\1\0\3\11\4\0\5\11\1\0\10\11\1\212\14\11"+
"\31\0\5\11\1\0\3\11\4\0\5\11\1\0\2\11"+
"\1\213\22\11\31\0\5\11\1\0\3\11\4\0\5\11"+
"\1\0\10\11\1\214\14\11\31\0\5\11\1\0\3\11"+
"\4\0\5\11\1\0\12\11\1\215\12\11\31\0\5\11"+
"\1\0\3\11\4\0\5\11\1\0\1\216\24\11\31\0"+
"\5\11\1\0\3\11\4\0\5\11\1\0\1\217\3\11"+
"\1\220\20\11\31\0\5\11\1\0\3\11\4\0\5\11"+
"\1\0\3\11\1\221\21\11\31\0\5\11\1\0\3\11"+
"\4\0\5\11\1\0\20\11\1\222\1\223\3\11\31\0"+
"\5\11\1\0\3\11\4\0\5\11\1\0\13\11\1\224"+
"\11\11\31\0\5\11\1\0\3\11\4\0\5\11\1\0"+
"\2\11\1\225\22\11\31\0\5\11\1\0\3\11\4\0"+
"\5\11\1\0\1\11\1\226\23\11\31\0\5\11\1\0"+
"\3\11\4\0\2\11\1\227\2\11\1\0\25\11\31\0"+
"\5\11\1\0\3\11\4\0\5\11\1\0\12\11\1\230"+
"\12\11\31\0\5\11\1\0\3\11\4\0\5\11\1\0"+
"\2\11\1\231\22\11\31\0\5\11\1\0\3\11\4\0"+
"\5\11\1\0\13\11\1\232\11\11\25\0\2\151\2\0"+
"\75\151\56\0\1\233\100\0\1\234\27\0\2\166\3\0"+
"\1\235\1\0\1\235\6\0\1\235\1\0\1\166\16\0"+
"\1\235\41\0\2\166\16\0\1\166\60\0\2\171\1\0"+
"\1\71\1\0\1\235\1\0\1\235\6\0\1\235\1\0"+
"\1\171\6\0\1\71\7\0\1\235\41\0\4\102\3\0"+
"\1\102\5\0\2\102\1\0\1\102\1\0\1\102\4\0"+
"\1\102\1\0\1\102\4\0\1\102\42\0\4\101\3\0"+
"\1\101\5\0\2\101\1\0\1\101\1\0\1\101\4\0"+
"\1\101\1\0\1\101\4\0\1\101\41\0\5\11\1\0"+
"\3\11\4\0\5\11\1\0\14\11\1\236\10\11\31\0"+
"\5\11\1\0\3\11\4\0\5\11\1\0\1\237\24\11"+
"\31\0\5\11\1\0\3\11\4\0\5\11\1\0\1\240"+
"\24\11\32\0\4\201\1\0\1\72\1\73\1\201\5\0"+
"\2\201\1\0\1\201\1\0\1\201\1\73\3\0\1\201"+
"\1\0\1\201\4\0\1\201\1\72\40\0\5\11\1\0"+
"\3\11\4\0\5\11\1\0\3\11\1\241\21\11\31\0"+
"\5\11\1\0\3\11\4\0\5\11\1\0\13\11\1\242"+
"\11\11\31\0\5\11\1\0\3\11\4\0\5\11\1\0"+
"\3\11\1\243\21\11\31\0\5\11\1\0\3\11\4\0"+
"\5\11\1\0\5\11\1\244\17\11\31\0\5\11\1\0"+
"\3\11\4\0\5\11\1\0\1\11\1\245\23\11\31\0"+
"\5\11\1\0\3\11\4\0\5\11\1\0\13\11\1\246"+
"\11\11\31\0\5\11\1\0\3\11\4\0\5\11\1\0"+
"\16\11\1\247\6\11\31\0\5\11\1\0\3\11\4\0"+
"\5\11\1\0\5\11\1\250\17\11\31\0\5\11\1\0"+
"\3\11\4\0\5\11\1\0\5\11\1\251\17\11\31\0"+
"\5\11\1\0\3\11\4\0\5\11\1\0\5\11\1\252"+
"\17\11\31\0\5\11\1\0\3\11\4\0\5\11\1\0"+
"\2\11\1\253\22\11\31\0\5\11\1\0\3\11\4\0"+
"\5\11\1\0\4\11\1\254\20\11\31\0\5\11\1\0"+
"\3\11\4\0\5\11\1\0\2\11\1\255\22\11\31\0"+
"\5\11\1\0\3\11\4\0\5\11\1\0\1\11\1\256"+
"\23\11\31\0\5\11\1\0\3\11\4\0\5\11\1\0"+
"\4\11\1\257\20\11\31\0\5\11\1\0\3\11\4\0"+
"\5\11\1\0\12\11\1\260\12\11\31\0\5\11\1\0"+
"\3\11\4\0\5\11\1\0\5\11\1\261\17\11\31\0"+
"\5\11\1\0\3\11\4\0\5\11\1\0\2\11\1\262"+
"\22\11\31\0\5\11\1\0\3\11\4\0\1\11\1\263"+
"\3\11\1\0\25\11\31\0\5\11\1\0\3\11\4\0"+
"\5\11\1\0\1\264\24\11\31\0\5\11\1\0\3\11"+
"\4\0\5\11\1\0\20\11\1\265\4\11\31\0\5\11"+
"\1\0\3\11\4\0\5\11\1\0\3\11\1\266\21\11"+
"\31\0\5\11\1\0\3\11\4\0\5\11\1\0\15\11"+
"\1\267\7\11\31\0\5\11\1\0\3\11\4\0\5\11"+
"\1\0\6\11\1\270\16\11\31\0\5\11\1\0\3\11"+
"\4\0\5\11\1\0\2\11\1\271\22\11\31\0\5\11"+
"\1\0\3\11\4\0\5\11\1\0\20\11\1\272\4\11"+
"\31\0\5\11\1\0\3\11\4\0\5\11\1\0\12\11"+
"\1\273\12\11\31\0\5\11\1\0\3\11\4\0\5\11"+
"\1\0\14\11\1\274\10\11\31\0\5\11\1\0\3\11"+
"\4\0\5\11\1\0\4\11\1\275\20\11\31\0\5\11"+
"\1\0\3\11\4\0\5\11\1\0\10\11\1\276\14\11"+
"\31\0\5\11\1\0\3\11\4\0\5\11\1\0\4\11"+
"\1\277\20\11\31\0\5\11\1\0\3\11\4\0\5\11"+
"\1\0\13\11\1\300\11\11\31\0\5\11\1\0\3\11"+
"\4\0\5\11\1\0\13\11\1\301\11\11\31\0\5\11"+
"\1\0\3\11\4\0\5\11\1\0\7\11\1\302\15\11"+
"\31\0\5\11\1\0\3\11\4\0\5\11\1\0\2\11"+
"\1\303\22\11\31\0\5\11\1\0\3\11\4\0\5\11"+
"\1\0\5\11\1\304\17\11\31\0\5\11\1\0\3\11"+
"\4\0\5\11\1\0\3\11\1\305\21\11\31\0\5\11"+
"\1\0\3\11\4\0\5\11\1\0\7\11\1\306\15\11"+
"\31\0\5\11\1\0\3\11\4\0\5\11\1\0\15\11"+
"\1\307\7\11\31\0\5\11\1\0\3\11\4\0\5\11"+
"\1\0\1\11\1\310\23\11\31\0\5\11\1\0\3\11"+
"\4\0\5\11\1\0\5\11\1\311\17\11\31\0\5\11"+
"\1\0\3\11\4\0\5\11\1\0\12\11\1\312\12\11"+
"\31\0\5\11\1\0\3\11\4\0\5\11\1\0\5\11"+
"\1\313\17\11\31\0\5\11\1\0\3\11\4\0\5\11"+
"\1\0\12\11\1\314\12\11\31\0\5\11\1\0\3\11"+
"\4\0\5\11\1\0\2\11\1\315\22\11\31\0\5\11"+
"\1\0\3\11\4\0\5\11\1\0\12\11\1\316\12\11"+
"\31\0\5\11\1\0\3\11\4\0\5\11\1\0\12\11"+
"\1\317\12\11\31\0\5\11\1\0\3\11\4\0\5\11"+
"\1\0\7\11\1\320\15\11\31\0\5\11\1\0\3\11"+
"\4\0\5\11\1\0\2\11\1\321\22\11\31\0\5\11"+
"\1\0\3\11\4\0\5\11\1\0\14\11\1\322\10\11"+
"\31\0\5\11\1\0\3\11\4\0\2\11\1\323\2\11"+
"\1\0\25\11\31\0\5\11\1\0\3\11\4\0\5\11"+
"\1\0\11\11\1\324\13\11\31\0\5\11\1\0\3\11"+
"\4\0\5\11\1\0\5\11\1\325\17\11\31\0\5\11"+
"\1\0\3\11\4\0\5\11\1\0\15\11\1\326\7\11"+
"\31\0\5\11\1\0\3\11\4\0\5\11\1\0\5\11"+
"\1\327\17\11\31\0\5\11\1\0\3\11\4\0\2\11"+
"\1\330\2\11\1\0\25\11\31\0\5\11\1\0\3\11"+
"\4\0\5\11\1\0\5\11\1\331\17\11\31\0\5\11"+
"\1\0\3\11\4\0\5\11\1\0\1\11\1\332\23\11"+
"\31\0\5\11\1\0\3\11\4\0\5\11\1\0\2\11"+
"\1\333\22\11\31\0\5\11\1\0\3\11\4\0\5\11"+
"\1\0\14\11\1\334\10\11\31\0\5\11\1\0\3\11"+
"\4\0\5\11\1\0\4\11\1\335\20\11\31\0\5\11"+
"\1\0\3\11\4\0\5\11\1\0\5\11\1\336\17\11"+
"\25\0";
private static int [] zzUnpackTrans() {
int [] result = new int[9750];
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 aState
*/
private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();
private static final String ZZ_ATTRIBUTE_PACKED_0 =
"\3\0\1\1\1\11\1\0\2\11\7\1\1\11\21\1"+
"\2\11\12\1\1\11\1\1\7\11\2\1\1\0\2\1"+
"\1\0\3\11\4\0\1\11\1\0\5\1\3\0\25\1"+
"\6\11\1\1\2\11\1\1\1\11\1\1\7\11\1\1"+
"\1\0\1\11\1\1\1\11\2\0\5\1\1\11\30\1"+
"\3\11\101\1";
private static int [] zzUnpackAttribute() {
int [] result = new int[222];
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;
/**
* 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;
/* user code: */
private int lineNumber = 1;
public int lineNumber() { return lineNumber; }
Symbol token( int tokenType ) {
return new Symbol( tokenType, yychar, yychar+yytext().length(), yytext() );
}
/**
* 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 Yylex(java.io.Reader in) {
yybegin( NORMAL );
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 Yylex(java.io.InputStream in) {
this(new java.io.InputStreamReader(in));
}
/**
* Refills the input buffer.
*
* @return false
, iff there was new input.
*
* @exception java.io.IOException if any I/O-Error occurs
*/
private boolean zzRefill() throws java.io.IOException {
/* first: make room (if you can) */
if (zzStartRead > 0) {
System.arraycopy(zzBuffer, zzStartRead,
zzBuffer, 0,
zzEndRead-zzStartRead);
/* translate stored positions */
zzEndRead-= zzStartRead;
zzCurrentPos-= zzStartRead;
zzMarkedPos-= zzStartRead;
zzPushbackPos-= zzStartRead;
zzStartRead = 0;
}
/* is the buffer big enough? */
if (zzCurrentPos >= zzBuffer.length) {
/* if not: blow it up */
char newBuffer[] = new char[zzCurrentPos*2];
System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length);
zzBuffer = newBuffer;
}
/* finally: fill the buffer with new input */
int numRead = zzReader.read(zzBuffer, zzEndRead,
zzBuffer.length-zzEndRead);
if (numRead < 0) {
return true;
}
else {
zzEndRead+= numRead;
return false;
}
}
/**
* 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();
}
/**
* 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
* cannot be reused (internal buffer is discarded and lost).
* Lexical state is set to ZZ_INITIAL.
*
* @param reader the new input stream
*/
public final void yyreset(java.io.Reader reader) {
zzReader = reader;
zzAtBOL = true;
zzAtEOF = false;
zzEndRead = zzStartRead = 0;
zzCurrentPos = zzMarkedPos = zzPushbackPos = 0;
yyline = yychar = yycolumn = 0;
zzLexicalState = YYINITIAL;
}
/**
* 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 pos 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 Symbol 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;
yychar+= zzMarkedPosL-zzStartRead;
zzAction = -1;
zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;
zzState = 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 27:
{ return token( sym.RIGHTCURLY );
}
case 87: break;
case 84:
{ return token( sym.UNSIGNED );
}
case 88: break;
case 43:
{ return token( sym.LE );
}
case 89: break;
case 25:
{ return token( sym.RIGHT );
}
case 90: break;
case 51:
{ return token( sym.AND );
}
case 91: break;
case 7:
{ return token( sym.QUEST );
}
case 92: break;
case 83:
{ return token( sym.DEFAULT );
}
case 93: break;
case 12:
{ return token( sym.PLUS );
}
case 94: break;
case 75:
{ return token( sym.EXTERN );
}
case 95: break;
case 72:
{ return token( sym.SHORT );
}
case 96: break;
case 47:
{ return token( sym.BITORASSIGN );
}
case 97: break;
case 63:
{ return token( sym.ENUM );
}
case 98: break;
case 26:
{ return token( sym.LEFTCURLY );
}
case 99: break;
case 80:
{ return token( sym.SWITCH );
}
case 100: break;
case 68:
{ return token( sym.GOTO );
}
case 101: break;
case 82:
{ return token( sym.TYPEDEF );
}
case 102: break;
case 67:
{ return token( sym.LONG );
}
case 103: break;
case 28:
{ return token( sym.LEFTSQ );
}
case 104: break;
case 62:
{ return token( sym.AUTO );
}
case 105: break;
case 18:
{ return token( sym.BITOR );
}
case 106: break;
case 54:
{ return token( sym.FLOATCONST );
}
case 107: break;
case 61:
{ return token( sym.VOID );
}
case 108: break;
case 40:
{ return token( sym.DIVIDEASSIGN );
}
case 109: break;
case 49:
{ return token( sym.BITXORASSIGN );
}
case 110: break;
case 21:
{ return token( sym.COLON );
}
case 111: break;
case 22:
{ return token( sym.NOT );
}
case 112: break;
case 6:
{ return token( sym.MINUS );
}
case 113: break;
case 14:
{ return token( sym.DIVIDE );
}
case 114: break;
case 4:
{ return token( sym.IDENT );
}
case 115: break;
case 17:
{ return token( sym.GT );
}
case 116: break;
case 19:
{ return token( sym.BITXOR );
}
case 117: break;
case 5:
{ return token( sym.INTCONST );
}
case 118: break;
case 37:
{ return token( sym.PLUSASSIGN );
}
case 119: break;
case 16:
{ return token( sym.LT );
}
case 120: break;
case 33:
{ return token( sym.STRINGCONST );
}
case 121: break;
case 42:
{ return token( sym.MODASSIGN );
}
case 122: break;
case 71:
{ return token( sym.UNION );
}
case 123: break;
case 13:
{ return token( sym.STAR );
}
case 124: break;
case 46:
{ return token( sym.RIGHTSHIFT );
}
case 125: break;
case 44:
{ return token( sym.LEFTSHIFT );
}
case 126: break;
case 66:
{ return token( sym.CHAR );
}
case 127: break;
case 24:
{ return token( sym.LEFT );
}
case 128: break;
case 60:
{ return token( sym.RIGHTASSIGN );
}
case 129: break;
case 30:
{ return token( sym.DECR );
}
case 130: break;
case 10:
{ return token( sym.COMMA );
}
case 131: break;
case 57:
{ return token( sym.ETC );
}
case 132: break;
case 78:
{ return token( sym.SIGNED );
}
case 133: break;
case 70:
{ return token( sym.FLOAT );
}
case 134: break;
case 55:
{ return token( sym.CHARCONST );
}
case 135: break;
case 9:
{ return token( sym.SEMICOLON );
}
case 136: break;
case 31:
{ return token( sym.MINUSASSIGN );
}
case 137: break;
case 34:
{ return token( sym.IF );
}
case 138: break;
case 65:
{ return token( sym.CASE );
}
case 139: break;
case 77:
{ return token( sym.STRUCT );
}
case 140: break;
case 81:
{ return token( sym.DOUBLE );
}
case 141: break;
case 2:
{ System.err.println( "Invalid character \"" + yytext() + "\"" );
}
case 142: break;
case 20:
{ return token( sym.AMPERSAND );
}
case 143: break;
case 52:
{ return token( sym.NE );
}
case 144: break;
case 36:
{ return token( sym.EQ );
}
case 145: break;
case 85:
{ return token( sym.REGISTER );
}
case 146: break;
case 58:
{ return token( sym.INT );
}
case 147: break;
case 53:
{ yybegin( NORMAL );
}
case 148: break;
case 15:
{ return token( sym.MOD );
}
case 149: break;
case 11:
{ return token( sym.ASSIGN );
}
case 150: break;
case 8:
{ return token( sym.DOT );
}
case 151: break;
case 59:
{ return token( sym.LEFTASSIGN );
}
case 152: break;
case 74:
{ return token( sym.RETURN );
}
case 153: break;
case 39:
{ return token( sym.TIMESASSIGN );
}
case 154: break;
case 73:
{ return token( sym.WHILE );
}
case 155: break;
case 35:
{ return token( sym.DO );
}
case 156: break;
case 48:
{ return token( sym.OR );
}
case 157: break;
case 69:
{ return token( sym.BREAK );
}
case 158: break;
case 23:
{ return token( sym.BITNOT );
}
case 159: break;
case 41:
{ yybegin( COMMENT );
}
case 160: break;
case 86:
{ return token( sym.CONTINUE );
}
case 161: break;
case 38:
{ return token( sym.INCR );
}
case 162: break;
case 76:
{ return token( sym.STATIC );
}
case 163: break;
case 32:
{ return token( sym.ARROW );
}
case 164: break;
case 50:
{ return token( sym.BITANDASSIGN );
}
case 165: break;
case 45:
{ return token( sym.GE );
}
case 166: break;
case 79:
{ return token( sym.SIZEOF );
}
case 167: break;
case 64:
{ return token( sym.ELSE );
}
case 168: break;
case 56:
{ return token( sym.FOR );
}
case 169: break;
case 29:
{ return token( sym.RIGHTSQ );
}
case 170: break;
case 1:
{ lineNumber++;
}
case 171: break;
case 3:
{
}
case 172: break;
default:
if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
zzAtEOF = true;
{
return token( sym.EOF );
}
}
else {
zzScanError(ZZ_NO_MATCH);
}
}
}
}
}