-/* The following code was generated by JFlex 1.6.1 */\r
-\r
-package org.simantics.scl.compiler.internal.parsing.parser;\r
-\r
-import org.simantics.scl.compiler.internal.parsing.Token;\r
-import org.simantics.scl.compiler.errors.Locations;\r
-import org.simantics.scl.compiler.internal.parsing.exceptions.SCLSyntaxErrorException;\r
-import gnu.trove.list.array.TIntArrayList;\r
-\r
-\r
-/**\r
- * This class is a scanner generated by \r
- * <a href="http://www.jflex.de/">JFlex</a> 1.6.1\r
- * from the specification file <tt>C:/Users/hannu/git/scl/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/parsing/parser/SCLLexer.flex</tt>\r
- */\r
-public class SCLLexer {\r
-\r
- /** This character denotes the end of file */\r
- public static final int YYEOF = -1;\r
-\r
- /** initial size of the lookahead buffer */\r
- private static final int ZZ_BUFFERSIZE = 16384;\r
-\r
- /** lexical states */\r
- public static final int YYINITIAL = 0;\r
- public static final int STRING = 2;\r
- public static final int LONG_STRING = 4;\r
- public static final int CHAR = 6;\r
-\r
- /**\r
- * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l\r
- * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l\r
- * at the beginning of a line\r
- * l is of the form l = 2*k, k a non negative integer\r
- */\r
- private static final int ZZ_LEXSTATE[] = { \r
- 0, 0, 1, 1, 2, 2, 3, 3\r
- };\r
-\r
- /** \r
- * Translates characters to character classes\r
- */\r
- private static final String ZZ_CMAP_PACKED = \r
- "\11\0\1\75\1\74\1\73\1\73\1\15\22\0\1\24\1\20\1\71"+\r
- "\1\6\2\5\1\20\1\4\1\11\1\13\1\26\1\5\1\12\1\23"+\r
- "\1\7\1\25\12\2\1\66\1\67\1\17\1\65\1\21\1\14\1\10"+\r
- "\4\3\1\22\1\3\3\1\1\60\20\1\1\63\1\30\1\64\1\5"+\r
- "\1\72\1\16\1\34\1\46\1\47\1\51\1\41\1\31\1\54\1\40"+\r
- "\1\36\2\1\1\35\1\52\1\42\1\32\1\53\1\55\1\33\1\43"+\r
- "\1\37\1\45\1\56\1\44\1\50\1\57\1\1\1\61\1\70\1\62"+\r
- "\1\5\6\0\1\73\u1fa2\0\1\73\1\73\udfd3\0\1\27\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\22\0";\r
-\r
- /** \r
- * Translates characters to character classes\r
- */\r
- private static final char [] ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED);\r
-\r
- /** \r
- * Translates DFA states to action switch labels.\r
- */\r
- private static final int [] ZZ_ACTION = zzUnpackAction();\r
-\r
- private static final String ZZ_ACTION_PACKED_0 =\r
- "\4\0\1\1\1\2\1\3\1\1\1\4\1\5\1\6"+\r
- "\1\7\1\10\1\11\1\12\1\4\1\13\1\1\1\14"+\r
- "\1\15\1\16\1\17\1\4\1\20\1\21\16\2\1\22"+\r
- "\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\32"+\r
- "\1\33\1\13\1\34\1\35\1\36\1\0\1\37\1\36"+\r
- "\1\40\2\35\2\40\5\0\1\4\1\41\1\42\1\43"+\r
- "\3\0\1\2\3\0\1\4\1\44\1\45\1\46\1\4"+\r
- "\2\2\1\47\2\2\1\50\1\51\11\2\1\52\3\2"+\r
- "\1\53\1\2\1\54\4\2\1\55\1\56\1\57\1\0"+\r
- "\1\60\1\61\1\62\1\63\1\64\1\60\1\65\2\0"+\r
- "\2\66\1\0\1\67\1\70\1\2\1\0\1\71\2\0"+\r
- "\1\72\1\0\1\4\3\2\1\73\24\2\1\74\1\75"+\r
- "\1\0\1\76\2\0\1\46\1\2\1\77\6\2\1\100"+\r
- "\1\101\2\2\1\102\3\2\1\103\1\2\1\104\1\2"+\r
- "\1\105\3\2\1\0\1\46\2\2\1\106\11\2\1\107"+\r
- "\1\110\1\2\1\111\1\2\1\0\1\112\1\2\1\113"+\r
- "\1\114\2\2\1\115\1\2\1\116\1\117\2\2\1\120"+\r
- "\2\2\1\121\2\2\1\122\2\2\1\123\1\124\1\0"+\r
- "\3\2\1\125\2\2\2\0\1\126\2\0\2\2\4\0"+\r
- "\1\127\1\2\4\0\1\2\4\0\1\2\1\130\2\0"+\r
- "\1\131\1\2\2\0\1\132\2\0\1\133\1\0\1\134";\r
-\r
- private static int [] zzUnpackAction() {\r
- int [] result = new int[276];\r
- int offset = 0;\r
- offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);\r
- return result;\r
- }\r
-\r
- private static int zzUnpackAction(String packed, int offset, int [] result) {\r
- int i = 0; /* index in packed string */\r
- int j = offset; /* index in unpacked array */\r
- int l = packed.length();\r
- while (i < l) {\r
- int count = packed.charAt(i++);\r
- int value = packed.charAt(i++);\r
- do result[j++] = value; while (--count > 0);\r
- }\r
- return j;\r
- }\r
-\r
-\r
- /** \r
- * Translates a state to a row index in the transition table\r
- */\r
- private static final int [] ZZ_ROWMAP = zzUnpackRowMap();\r
-\r
- private static final String ZZ_ROWMAP_PACKED_0 =\r
- "\0\0\0\76\0\174\0\272\0\272\0\370\0\u0136\0\u0174"+\r
- "\0\u01b2\0\u01f0\0\u022e\0\u026c\0\u02aa\0\272\0\272\0\u02e8"+\r
- "\0\u0326\0\u0364\0\u03a2\0\u01b2\0\u03e0\0\u041e\0\u045c\0\272"+\r
- "\0\u01b2\0\u049a\0\u04d8\0\u0516\0\u0554\0\u0592\0\u05d0\0\u060e"+\r
- "\0\u064c\0\u068a\0\u06c8\0\u0706\0\u0744\0\u0782\0\u07c0\0\272"+\r
- "\0\272\0\272\0\272\0\u07fe\0\u083c\0\272\0\u01b2\0\u087a"+\r
- "\0\370\0\272\0\272\0\u08b8\0\u08f6\0\u0934\0\272\0\272"+\r
- "\0\u0972\0\u09b0\0\u09ee\0\u08b8\0\272\0\u0a2c\0\u0a6a\0\u0aa8"+\r
- "\0\u0ae6\0\u0b24\0\u0b62\0\272\0\u0ba0\0\u0bde\0\u0c1c\0\u0c5a"+\r
- "\0\u0c98\0\u0cd6\0\u0d14\0\u0d52\0\u0d90\0\u0dce\0\u01b2\0\u01b2"+\r
- "\0\u0e0c\0\u0e4a\0\u0e88\0\u0ec6\0\370\0\u0f04\0\u0f42\0\370"+\r
- "\0\u0f80\0\u0fbe\0\u0ffc\0\u103a\0\u1078\0\u10b6\0\u10f4\0\u1132"+\r
- "\0\u1170\0\u11ae\0\370\0\u11ec\0\u122a\0\u1268\0\370\0\u12a6"+\r
- "\0\370\0\u12e4\0\u1322\0\u1360\0\u139e\0\u01b2\0\u01b2\0\u01b2"+\r
- "\0\u13dc\0\272\0\272\0\272\0\272\0\272\0\u141a\0\272"+\r
- "\0\u1458\0\u1496\0\u14d4\0\u1512\0\u1512\0\272\0\272\0\272"+\r
- "\0\u1550\0\272\0\u158e\0\u15cc\0\u01b2\0\u160a\0\u1648\0\u1686"+\r
- "\0\u16c4\0\u1702\0\370\0\u1740\0\u177e\0\u17bc\0\u17fa\0\u1838"+\r
- "\0\u1876\0\u18b4\0\u18f2\0\u1930\0\u196e\0\u19ac\0\u19ea\0\u1a28"+\r
- "\0\u1a66\0\u1aa4\0\u1ae2\0\u1b20\0\u1b5e\0\u1b9c\0\u1bda\0\370"+\r
- "\0\272\0\u1c18\0\272\0\u1c56\0\u1c94\0\u01b2\0\u1cd2\0\370"+\r
- "\0\u1d10\0\u1d4e\0\u1d8c\0\u1dca\0\u1e08\0\u1e46\0\370\0\370"+\r
- "\0\u1e84\0\u1ec2\0\370\0\u1f00\0\u1f3e\0\u1f7c\0\370\0\u1fba"+\r
- "\0\370\0\u1ff8\0\370\0\u2036\0\u2074\0\u20b2\0\u20f0\0\272"+\r
- "\0\u212e\0\u216c\0\u21aa\0\u21e8\0\u2226\0\u2264\0\u22a2\0\u22e0"+\r
- "\0\u231e\0\u235c\0\u239a\0\u23d8\0\370\0\370\0\u2416\0\370"+\r
- "\0\u2454\0\u2492\0\370\0\u24d0\0\370\0\370\0\u250e\0\u254c"+\r
- "\0\u258a\0\u25c8\0\370\0\370\0\u2606\0\u2644\0\u2682\0\u26c0"+\r
- "\0\u26fe\0\272\0\u273c\0\u277a\0\370\0\u27b8\0\u27f6\0\370"+\r
- "\0\370\0\u2834\0\u2872\0\u28b0\0\u28ee\0\370\0\u292c\0\u296a"+\r
- "\0\u29a8\0\u29e6\0\370\0\u2a24\0\u2a62\0\u2aa0\0\u2ade\0\u2b1c"+\r
- "\0\u2b5a\0\u2b98\0\u2bd6\0\370\0\u2c14\0\u2c52\0\u2c90\0\u2cce"+\r
- "\0\u2d0c\0\u2d4a\0\u2d88\0\u2dc6\0\u2e04\0\u2e42\0\u2e80\0\272"+\r
- "\0\u2ebe\0\u2efc\0\272\0\u2f3a\0\u2f78\0\u2fb6\0\370\0\u2ff4"+\r
- "\0\u3032\0\272\0\u3070\0\272";\r
-\r
- private static int [] zzUnpackRowMap() {\r
- int [] result = new int[276];\r
- int offset = 0;\r
- offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);\r
- return result;\r
- }\r
-\r
- private static int zzUnpackRowMap(String packed, int offset, int [] result) {\r
- int i = 0; /* index in packed string */\r
- int j = offset; /* index in unpacked array */\r
- int l = packed.length();\r
- while (i < l) {\r
- int high = packed.charAt(i++) << 16;\r
- result[j++] = high | packed.charAt(i++);\r
- }\r
- return j;\r
- }\r
-\r
- /** \r
- * The transition table of the DFA\r
- */\r
- private static final int [] ZZ_TRANS = zzUnpackTrans();\r
-\r
- private static final String ZZ_TRANS_PACKED_0 =\r
- "\1\5\1\6\1\7\1\6\1\10\1\11\1\12\1\13"+\r
- "\1\14\1\15\1\16\1\17\1\20\1\21\1\22\1\23"+\r
- "\1\11\1\24\1\6\1\25\1\26\1\27\1\11\1\30"+\r
- "\1\31\1\32\1\6\1\33\1\34\1\35\1\36\1\37"+\r
- "\1\40\1\41\1\6\1\42\1\43\1\6\1\44\1\45"+\r
- "\1\6\1\46\1\47\6\6\1\50\1\51\1\52\1\53"+\r
- "\1\54\1\55\1\56\1\57\1\60\1\61\2\62\1\63"+\r
- "\15\64\1\65\11\64\1\30\1\66\40\64\1\67\2\64"+\r
- "\1\70\16\64\1\71\11\64\1\30\1\72\40\64\1\73"+\r
- "\1\64\1\74\1\75\1\64\77\0\4\6\2\0\1\76"+\r
- "\12\0\1\6\6\0\30\6\11\0\1\6\5\0\1\7"+\r
- "\4\0\1\77\12\0\1\100\16\0\1\100\34\0\4\101"+\r
- "\1\0\22\101\1\0\1\102\45\101\5\0\2\11\1\0"+\r
- "\1\11\3\0\1\11\2\0\3\11\1\0\1\11\1\0"+\r
- "\2\11\1\0\1\11\34\0\2\11\1\0\1\11\12\0"+\r
- "\2\11\1\0\1\11\3\0\1\11\1\103\1\0\3\11"+\r
- "\1\0\1\11\1\103\2\11\1\0\1\11\34\0\2\11"+\r
- "\1\0\1\11\3\0\1\103\10\0\1\104\5\0\1\105"+\r
- "\6\0\1\105\47\0\1\105\2\0\1\106\1\0\1\106"+\r
- "\1\0\2\11\1\0\1\11\3\0\1\11\2\0\3\11"+\r
- "\1\106\1\11\1\0\2\11\1\0\1\11\30\106\4\0"+\r
- "\2\11\1\0\1\11\1\0\1\106\10\0\2\107\1\110"+\r
- "\1\107\1\0\1\111\1\0\1\107\2\0\3\107\1\0"+\r
- "\1\107\1\0\2\107\1\0\1\107\34\0\2\107\1\0"+\r
- "\1\107\6\0\1\112\1\0\1\112\1\0\2\11\1\0"+\r
- "\1\11\3\0\1\11\2\0\3\11\1\112\1\11\1\0"+\r
- "\2\11\1\0\1\11\30\112\4\0\2\11\1\0\1\11"+\r
- "\1\0\1\112\77\0\1\62\2\0\1\113\1\0\1\113"+\r
- "\5\0\1\114\2\0\1\115\5\0\1\113\6\0\30\113"+\r
- "\11\0\1\113\10\0\2\11\1\0\1\11\3\0\1\116"+\r
- "\2\0\1\11\1\116\1\11\1\0\1\117\1\0\2\11"+\r
- "\1\0\1\11\34\0\2\11\1\0\1\116\12\0\2\11"+\r
- "\1\0\1\11\3\0\1\11\2\0\2\11\1\120\1\0"+\r
- "\1\11\1\0\2\11\1\0\1\11\34\0\2\11\1\0"+\r
- "\1\11\31\0\1\26\56\0\2\11\1\0\1\11\3\0"+\r
- "\1\11\2\0\3\11\1\0\1\11\1\0\1\121\1\122"+\r
- "\1\0\1\11\34\0\2\11\1\0\1\11\6\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\1\6\1\123\26\6"+\r
- "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+\r
- "\6\0\14\6\1\124\13\6\11\0\1\6\4\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\12\6\1\125\2\6"+\r
- "\1\126\12\6\11\0\1\6\4\0\4\6\2\0\1\76"+\r
- "\12\0\1\6\6\0\10\6\1\127\17\6\11\0\1\6"+\r
- "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\1\130"+\r
- "\10\6\1\131\7\6\1\132\6\6\11\0\1\6\4\0"+\r
- "\4\6\2\0\1\76\12\0\1\6\6\0\2\6\1\133"+\r
- "\4\6\1\134\16\6\1\135\1\6\11\0\1\6\4\0"+\r
- "\4\6\2\0\1\76\12\0\1\6\6\0\5\6\1\136"+\r
- "\22\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+\r
- "\1\6\6\0\1\137\3\6\1\140\4\6\1\141\5\6"+\r
- "\1\142\4\6\1\143\3\6\11\0\1\6\4\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\10\6\1\144\17\6"+\r
- "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+\r
- "\6\0\5\6\1\145\1\6\1\146\20\6\11\0\1\6"+\r
- "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\26\6"+\r
- "\1\147\1\6\11\0\1\6\4\0\4\6\2\0\1\76"+\r
- "\12\0\1\6\6\0\4\6\1\150\23\6\11\0\1\6"+\r
- "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\1\6"+\r
- "\1\151\1\6\1\152\4\6\1\153\17\6\11\0\1\6"+\r
- "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\3\6"+\r
- "\1\154\14\6\1\155\7\6\11\0\1\6\10\0\2\11"+\r
- "\1\0\1\11\3\0\1\11\2\0\2\11\1\156\1\0"+\r
- "\1\11\1\0\2\11\1\0\1\11\34\0\2\11\1\0"+\r
- "\1\11\12\0\2\11\1\0\1\11\3\0\1\11\2\0"+\r
- "\3\11\1\0\1\157\1\0\2\11\1\0\1\11\34\0"+\r
- "\1\11\1\160\1\0\1\11\76\0\1\161\4\0\15\64"+\r
- "\1\0\11\64\2\0\40\64\1\0\2\64\1\0\1\64"+\r
- "\74\0\1\70\1\0\4\162\1\163\4\162\1\164\3\162"+\r
- "\1\0\12\162\1\163\2\162\1\165\3\162\1\166\2\162"+\r
- "\1\75\2\162\1\167\23\162\1\163\1\162\2\0\1\162"+\r
- "\74\0\1\75\12\0\1\170\155\0\1\171\5\0\1\6"+\r
- "\1\0\1\6\10\0\1\172\5\0\1\6\6\0\30\6"+\r
- "\11\0\1\6\5\0\1\173\75\0\1\174\20\0\1\175"+\r
- "\56\0\1\176\71\0\27\101\1\0\46\101\15\0\1\103"+\r
- "\6\0\1\103\47\0\1\103\16\0\1\105\6\0\1\105"+\r
- "\47\0\1\105\2\0\4\106\15\0\1\106\6\0\30\106"+\r
- "\11\0\1\106\10\0\2\107\1\0\1\107\2\0\1\177"+\r
- "\1\107\2\0\3\107\1\0\1\107\1\0\2\107\1\0"+\r
- "\1\107\34\0\2\107\1\0\1\107\20\0\1\177\74\0"+\r
- "\1\111\1\200\63\0\4\112\15\0\1\112\6\0\30\112"+\r
- "\11\0\1\112\4\0\4\113\2\0\1\201\6\0\1\202"+\r
- "\3\0\1\113\6\0\30\113\11\0\1\113\15\0\1\203"+\r
- "\64\0\1\204\1\0\1\204\16\0\1\204\6\0\30\204"+\r
- "\11\0\1\204\10\0\2\11\1\0\1\11\3\0\1\11"+\r
- "\2\0\2\11\1\205\1\0\1\11\1\0\2\11\1\0"+\r
- "\1\11\34\0\2\11\1\0\1\11\5\0\15\121\1\0"+\r
- "\56\121\1\0\1\121\5\206\2\122\1\206\1\122\3\206"+\r
- "\1\122\2\206\3\122\1\206\1\122\1\206\1\122\1\207"+\r
- "\1\206\1\122\34\206\2\122\1\206\1\122\5\206\1\0"+\r
- "\4\6\2\0\1\76\12\0\1\6\6\0\2\6\1\210"+\r
- "\25\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+\r
- "\1\6\6\0\4\6\1\211\23\6\11\0\1\6\4\0"+\r
- "\4\6\2\0\1\76\12\0\1\6\6\0\12\6\1\212"+\r
- "\15\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+\r
- "\1\6\6\0\6\6\1\213\21\6\11\0\1\6\4\0"+\r
- "\4\6\2\0\1\76\12\0\1\6\6\0\1\214\11\6"+\r
- "\1\215\3\6\1\216\11\6\11\0\1\6\4\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\22\6\1\217\5\6"+\r
- "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+\r
- "\6\0\3\6\1\220\24\6\11\0\1\6\4\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\10\6\1\221\17\6"+\r
- "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+\r
- "\6\0\22\6\1\222\5\6\11\0\1\6\4\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\20\6\1\223\7\6"+\r
- "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+\r
- "\6\0\1\224\27\6\11\0\1\6\4\0\4\6\2\0"+\r
- "\1\76\12\0\1\6\6\0\12\6\1\225\15\6\11\0"+\r
- "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\1\226\27\6\11\0\1\6\4\0\4\6\2\0\1\76"+\r
- "\12\0\1\6\6\0\6\6\1\227\21\6\11\0\1\6"+\r
- "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\4\6"+\r
- "\1\230\23\6\11\0\1\6\4\0\4\6\2\0\1\76"+\r
- "\12\0\1\6\6\0\6\6\1\231\21\6\11\0\1\6"+\r
- "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\10\6"+\r
- "\1\232\17\6\11\0\1\6\4\0\4\6\2\0\1\76"+\r
- "\12\0\1\6\6\0\3\6\1\233\24\6\11\0\1\6"+\r
- "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\6\6"+\r
- "\1\234\21\6\11\0\1\6\4\0\4\6\2\0\1\76"+\r
- "\12\0\1\6\6\0\2\6\1\235\25\6\11\0\1\6"+\r
- "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\6\6"+\r
- "\1\236\13\6\1\237\5\6\11\0\1\6\4\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\1\6\1\240\26\6"+\r
- "\11\0\1\6\74\0\1\241\6\0\2\242\16\0\1\242"+\r
- "\6\0\1\242\2\0\1\242\4\0\1\242\4\0\2\242"+\r
- "\1\0\1\242\115\0\1\243\5\0\1\112\1\0\1\112"+\r
- "\16\0\1\112\6\0\30\112\11\0\1\112\5\0\1\173"+\r
- "\17\0\1\100\16\0\1\100\36\0\1\174\74\0\1\113"+\r
- "\1\0\1\113\10\0\1\115\5\0\1\113\6\0\30\113"+\r
- "\11\0\1\113\15\0\1\203\1\244\63\0\4\204\11\0"+\r
- "\1\202\3\0\1\204\6\0\30\204\11\0\1\204\3\0"+\r
- "\26\206\1\245\54\206\2\122\1\206\1\122\3\206\1\122"+\r
- "\2\206\3\122\1\206\1\122\1\206\1\246\1\207\1\206"+\r
- "\1\122\34\206\2\122\1\206\1\122\5\206\1\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\3\6\1\247\24\6"+\r
- "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+\r
- "\6\0\10\6\1\250\17\6\11\0\1\6\4\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\6\6\1\251\21\6"+\r
- "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+\r
- "\6\0\5\6\1\252\22\6\11\0\1\6\4\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\6\6\1\253\21\6"+\r
- "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+\r
- "\6\0\4\6\1\254\23\6\11\0\1\6\4\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\1\6\1\255\26\6"+\r
- "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+\r
- "\6\0\11\6\1\256\16\6\11\0\1\6\4\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\11\6\1\257\16\6"+\r
- "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+\r
- "\6\0\10\6\1\260\17\6\11\0\1\6\4\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\5\6\1\261\22\6"+\r
- "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+\r
- "\6\0\10\6\1\262\17\6\11\0\1\6\4\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\10\6\1\263\17\6"+\r
- "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+\r
- "\6\0\1\6\1\264\26\6\11\0\1\6\4\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\10\6\1\265\17\6"+\r
- "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+\r
- "\6\0\10\6\1\266\17\6\11\0\1\6\4\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\7\6\1\267\20\6"+\r
- "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+\r
- "\6\0\2\6\1\270\6\6\1\271\16\6\11\0\1\6"+\r
- "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\12\6"+\r
- "\1\272\15\6\11\0\1\6\4\0\4\6\2\0\1\76"+\r
- "\12\0\1\6\6\0\3\6\1\273\24\6\11\0\1\6"+\r
- "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\5\6"+\r
- "\1\274\22\6\11\0\1\6\4\0\4\6\2\0\1\76"+\r
- "\12\0\1\6\6\0\16\6\1\275\11\6\11\0\1\6"+\r
- "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\22\6"+\r
- "\1\276\5\6\11\0\1\6\5\0\2\277\16\0\1\277"+\r
- "\6\0\1\277\2\0\1\277\4\0\1\277\4\0\2\277"+\r
- "\1\0\1\277\42\0\1\202\57\0\25\206\1\300\1\245"+\r
- "\47\206\1\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\4\6\1\301\23\6\11\0\1\6\4\0\4\6\2\0"+\r
- "\1\76\12\0\1\6\6\0\2\6\1\302\25\6\11\0"+\r
- "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\17\6\1\303\10\6\11\0\1\6\4\0\4\6\2\0"+\r
- "\1\76\12\0\1\6\6\0\3\6\1\304\24\6\11\0"+\r
- "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\14\6\1\305\13\6\11\0\1\6\4\0\4\6\2\0"+\r
- "\1\76\12\0\1\6\6\0\2\6\1\306\25\6\11\0"+\r
- "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\12\6\1\307\15\6\11\0\1\6\4\0\4\6\2\0"+\r
- "\1\76\12\0\1\6\6\0\11\6\1\310\16\6\11\0"+\r
- "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\16\6\1\311\11\6\11\0\1\6\4\0\4\6\2\0"+\r
- "\1\76\12\0\1\6\6\0\2\6\1\312\25\6\11\0"+\r
- "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\11\6\1\313\16\6\11\0\1\6\4\0\4\6\2\0"+\r
- "\1\76\12\0\1\6\6\0\16\6\1\314\11\6\11\0"+\r
- "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\10\6\1\315\17\6\11\0\1\6\4\0\4\6\2\0"+\r
- "\1\76\12\0\1\6\6\0\12\6\1\316\15\6\11\0"+\r
- "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\25\6\1\317\2\6\11\0\1\6\4\0\4\6\2\0"+\r
- "\1\76\12\0\1\6\6\0\7\6\1\320\20\6\11\0"+\r
- "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\5\6\1\321\22\6\11\0\1\6\5\0\2\322\16\0"+\r
- "\1\322\6\0\1\322\2\0\1\322\4\0\1\322\4\0"+\r
- "\2\322\1\0\1\322\25\0\4\6\2\0\1\76\12\0"+\r
- "\1\6\6\0\4\6\1\323\23\6\11\0\1\6\4\0"+\r
- "\4\6\2\0\1\76\12\0\1\6\6\0\3\6\1\324"+\r
- "\24\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+\r
- "\1\6\6\0\2\6\1\325\1\6\1\326\23\6\11\0"+\r
- "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\11\6\1\327\16\6\11\0\1\6\4\0\4\6\2\0"+\r
- "\1\76\12\0\1\6\6\0\20\6\1\330\7\6\11\0"+\r
- "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\6\6\1\331\21\6\11\0\1\6\4\0\4\6\2\0"+\r
- "\1\76\12\0\1\6\6\0\1\332\27\6\11\0\1\6"+\r
- "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\23\6"+\r
- "\1\333\4\6\11\0\1\6\4\0\4\6\2\0\1\76"+\r
- "\12\0\1\6\6\0\6\6\1\334\21\6\11\0\1\6"+\r
- "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\16\6"+\r
- "\1\335\11\6\11\0\1\6\4\0\4\6\2\0\1\76"+\r
- "\12\0\1\6\6\0\20\6\1\336\7\6\11\0\1\6"+\r
- "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\6\6"+\r
- "\1\337\21\6\11\0\1\6\4\0\4\6\2\0\1\76"+\r
- "\12\0\1\6\6\0\5\6\1\340\22\6\11\0\1\6"+\r
- "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\11\6"+\r
- "\1\341\16\6\11\0\1\6\5\0\2\342\16\0\1\342"+\r
- "\6\0\1\342\2\0\1\342\4\0\1\342\4\0\2\342"+\r
- "\1\0\1\342\25\0\4\6\2\0\1\76\12\0\1\6"+\r
- "\6\0\16\6\1\343\11\6\11\0\1\6\4\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\16\6\1\344\11\6"+\r
- "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+\r
- "\6\0\10\6\1\345\17\6\11\0\1\6\4\0\4\6"+\r
- "\2\0\1\76\12\0\1\6\6\0\27\6\1\346\11\0"+\r
- "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\1\6\1\347\26\6\11\0\1\6\4\0\4\6\2\0"+\r
- "\1\76\12\0\1\6\6\0\10\6\1\350\17\6\11\0"+\r
- "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\12\6\1\351\15\6\11\0\1\6\4\0\4\6\2\0"+\r
- "\1\76\12\0\1\6\1\0\1\352\4\0\30\6\11\0"+\r
- "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\11\6\1\353\16\6\11\0\1\6\4\0\4\6\2\0"+\r
- "\1\76\12\0\1\6\6\0\23\6\1\354\4\6\11\0"+\r
- "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\6\6\1\355\21\6\11\0\1\6\4\0\4\6\2\0"+\r
- "\1\76\12\0\1\6\6\0\10\6\1\356\17\6\11\0"+\r
- "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+\r
- "\3\6\1\357\24\6\11\0\1\6\4\0\4\6\2\0"+\r
- "\1\76\12\0\1\6\6\0\2\6\1\360\25\6\11\0"+\r
- "\1\6\27\0\1\352\4\0\1\361\17\0\1\362\25\0"+\r
- "\4\6\2\0\1\76\12\0\1\6\6\0\23\6\1\363"+\r
- "\4\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+\r
- "\1\6\1\0\1\364\4\0\30\6\11\0\1\6\4\0"+\r
- "\4\6\2\0\1\76\12\0\1\6\1\0\1\365\4\0"+\r
- "\30\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+\r
- "\1\6\6\0\25\6\1\366\2\6\11\0\1\6\4\0"+\r
- "\4\6\2\0\1\76\12\0\1\6\6\0\21\6\1\367"+\r
- "\6\6\11\0\1\6\41\0\1\370\75\0\1\371\63\0"+\r
- "\1\364\6\0\1\372\66\0\1\365\6\0\1\373\43\0"+\r
- "\4\6\2\0\1\76\12\0\1\6\6\0\3\6\1\374"+\r
- "\24\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+\r
- "\1\6\6\0\3\6\1\375\24\6\11\0\1\6\36\0"+\r
- "\1\376\105\0\1\377\73\0\1\u0100\101\0\1\u0101\31\0"+\r
- "\4\6\2\0\1\76\12\0\1\6\6\0\6\6\1\u0102"+\r
- "\21\6\11\0\1\6\46\0\1\u0103\71\0\1\u0104\73\0"+\r
- "\1\u0105\75\0\1\u0106\41\0\4\6\2\0\1\76\12\0"+\r
- "\1\6\6\0\5\6\1\u0107\22\6\11\0\1\6\42\0"+\r
- "\1\u0108\74\0\1\u0109\73\0\1\u010a\102\0\1\u010b\35\0"+\r
- "\4\6\2\0\1\76\12\0\1\6\6\0\1\6\1\u010c"+\r
- "\26\6\11\0\1\6\45\0\1\u010d\72\0\1\u010e\37\0"+\r
- "\4\6\2\0\1\76\12\0\1\6\6\0\11\6\1\u010f"+\r
- "\16\6\11\0\1\6\52\0\1\u0110\64\0\1\u0111\76\0"+\r
- "\1\u0112\70\0\1\u0113\105\0\1\u0114\33\0";\r
-\r
- private static int [] zzUnpackTrans() {\r
- int [] result = new int[12462];\r
- int offset = 0;\r
- offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);\r
- return result;\r
- }\r
-\r
- private static int zzUnpackTrans(String packed, int offset, int [] result) {\r
- int i = 0; /* index in packed string */\r
- int j = offset; /* index in unpacked array */\r
- int l = packed.length();\r
- while (i < l) {\r
- int count = packed.charAt(i++);\r
- int value = packed.charAt(i++);\r
- value--;\r
- do result[j++] = value; while (--count > 0);\r
- }\r
- return j;\r
- }\r
-\r
-\r
- /* error codes */\r
- private static final int ZZ_UNKNOWN_ERROR = 0;\r
- private static final int ZZ_NO_MATCH = 1;\r
- private static final int ZZ_PUSHBACK_2BIG = 2;\r
-\r
- /* error messages for the codes above */\r
- private static final String ZZ_ERROR_MSG[] = {\r
- "Unknown internal scanner error",\r
- "Error: could not match input",\r
- "Error: pushback value was too large"\r
- };\r
-\r
- /**\r
- * ZZ_ATTRIBUTE[aState] contains the attributes of state <code>aState</code>\r
- */\r
- private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();\r
-\r
- private static final String ZZ_ATTRIBUTE_PACKED_0 =\r
- "\3\0\1\10\1\11\10\1\2\11\10\1\1\11\17\1"+\r
- "\4\11\2\1\1\11\3\1\2\11\2\1\1\0\2\11"+\r
- "\4\1\1\11\5\0\1\1\1\11\2\1\3\0\1\1"+\r
- "\3\0\43\1\1\0\5\11\1\1\1\11\2\0\2\1"+\r
- "\1\0\3\11\1\0\1\11\2\0\1\1\1\0\32\1"+\r
- "\1\11\1\0\1\11\2\0\31\1\1\0\1\11\21\1"+\r
- "\1\0\17\1\1\11\7\1\1\0\6\1\2\0\1\1"+\r
- "\2\0\2\1\4\0\2\1\4\0\1\1\4\0\1\1"+\r
- "\1\11\2\0\1\11\1\1\2\0\1\1\2\0\1\11"+\r
- "\1\0\1\11";\r
-\r
- private static int [] zzUnpackAttribute() {\r
- int [] result = new int[276];\r
- int offset = 0;\r
- offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);\r
- return result;\r
- }\r
-\r
- private static int zzUnpackAttribute(String packed, int offset, int [] result) {\r
- int i = 0; /* index in packed string */\r
- int j = offset; /* index in unpacked array */\r
- int l = packed.length();\r
- while (i < l) {\r
- int count = packed.charAt(i++);\r
- int value = packed.charAt(i++);\r
- do result[j++] = value; while (--count > 0);\r
- }\r
- return j;\r
- }\r
-\r
- /** the input device */\r
- private java.io.Reader zzReader;\r
-\r
- /** the current state of the DFA */\r
- private int zzState;\r
-\r
- /** the current lexical state */\r
- private int zzLexicalState = YYINITIAL;\r
-\r
- /** this buffer contains the current text to be matched and is\r
- the source of the yytext() string */\r
- private char zzBuffer[] = new char[ZZ_BUFFERSIZE];\r
-\r
- /** the textposition at the last accepting state */\r
- private int zzMarkedPos;\r
-\r
- /** the current text position in the buffer */\r
- private int zzCurrentPos;\r
-\r
- /** startRead marks the beginning of the yytext() string in the buffer */\r
- private int zzStartRead;\r
-\r
- /** endRead marks the last character in the buffer, that has been read\r
- from input */\r
- private int zzEndRead;\r
-\r
- /** number of newlines encountered up to the start of the matched text */\r
- private int yyline;\r
-\r
- /** the number of characters up to the start of the matched text */\r
- private int yychar;\r
-\r
- /**\r
- * the number of characters from the last newline up to the start of the \r
- * matched text\r
- */\r
- private int yycolumn;\r
-\r
- /** \r
- * zzAtBOL == true <=> the scanner is currently at the beginning of a line\r
- */\r
- private boolean zzAtBOL = true;\r
-\r
- /** zzAtEOF == true <=> the scanner is at the EOF */\r
- private boolean zzAtEOF;\r
-\r
- /** denotes if the user-EOF-code has already been executed */\r
- private boolean zzEOFDone;\r
- \r
- /** \r
- * The number of occupied positions in zzBuffer beyond zzEndRead.\r
- * When a lead/high surrogate has been read from the input stream\r
- * into the final zzBuffer position, this will have a value of 1;\r
- * otherwise, it will have a value of 0.\r
- */\r
- private int zzFinalHighSurrogate = 0;\r
-\r
- /* user code: */\r
- public SCLParserOptions options = SCLParserOptions.DEFAULT;\r
- int stringStart;\r
- TIntArrayList parenCountStack = new TIntArrayList(2);\r
- int parenCount = 0;\r
- TIntArrayList stateStack = new TIntArrayList(2);\r
-\r
- StringBuffer string = new StringBuffer();\r
- \r
- private Token sym(int id) {\r
- return new Token(id, yychar, yychar+yylength(), yytext());\r
- }\r
- private Token sym(int id, String text) {\r
- return new Token(id, yychar, yychar+yylength(), text);\r
- }\r
-\r
-\r
- /**\r
- * Creates a new scanner\r
- *\r
- * @param in the java.io.Reader to read input from.\r
- */\r
- public SCLLexer(java.io.Reader in) {\r
- this.zzReader = in;\r
- }\r
-\r
-\r
- /** \r
- * Unpacks the compressed character translation table.\r
- *\r
- * @param packed the packed character translation table\r
- * @return the unpacked character translation table\r
- */\r
- private static char [] zzUnpackCMap(String packed) {\r
- char [] map = new char[0x110000];\r
- int i = 0; /* index in packed string */\r
- int j = 0; /* index in unpacked array */\r
- while (i < 190) {\r
- int count = packed.charAt(i++);\r
- char value = packed.charAt(i++);\r
- do map[j++] = value; while (--count > 0);\r
- }\r
- return map;\r
- }\r
-\r
-\r
- /**\r
- * Refills the input buffer.\r
- *\r
- * @return <code>false</code>, iff there was new input.\r
- * \r
- * @exception java.io.IOException if any I/O-Error occurs\r
- */\r
- private boolean zzRefill() throws java.io.IOException {\r
-\r
- /* first: make room (if you can) */\r
- if (zzStartRead > 0) {\r
- zzEndRead += zzFinalHighSurrogate;\r
- zzFinalHighSurrogate = 0;\r
- System.arraycopy(zzBuffer, zzStartRead,\r
- zzBuffer, 0,\r
- zzEndRead-zzStartRead);\r
-\r
- /* translate stored positions */\r
- zzEndRead-= zzStartRead;\r
- zzCurrentPos-= zzStartRead;\r
- zzMarkedPos-= zzStartRead;\r
- zzStartRead = 0;\r
- }\r
-\r
- /* is the buffer big enough? */\r
- if (zzCurrentPos >= zzBuffer.length - zzFinalHighSurrogate) {\r
- /* if not: blow it up */\r
- char newBuffer[] = new char[zzBuffer.length*2];\r
- System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length);\r
- zzBuffer = newBuffer;\r
- zzEndRead += zzFinalHighSurrogate;\r
- zzFinalHighSurrogate = 0;\r
- }\r
-\r
- /* fill the buffer with new input */\r
- int requested = zzBuffer.length - zzEndRead;\r
- int numRead = zzReader.read(zzBuffer, zzEndRead, requested);\r
-\r
- /* not supposed to occur according to specification of java.io.Reader */\r
- if (numRead == 0) {\r
- throw new java.io.IOException("Reader returned 0 characters. See JFlex examples for workaround.");\r
- }\r
- if (numRead > 0) {\r
- zzEndRead += numRead;\r
- /* If numRead == requested, we might have requested to few chars to\r
- encode a full Unicode character. We assume that a Reader would\r
- otherwise never return half characters. */\r
- if (numRead == requested) {\r
- if (Character.isHighSurrogate(zzBuffer[zzEndRead - 1])) {\r
- --zzEndRead;\r
- zzFinalHighSurrogate = 1;\r
- }\r
- }\r
- /* potentially more input available */\r
- return false;\r
- }\r
-\r
- /* numRead < 0 ==> end of stream */\r
- return true;\r
- }\r
-\r
- \r
- /**\r
- * Closes the input stream.\r
- */\r
- public final void yyclose() throws java.io.IOException {\r
- zzAtEOF = true; /* indicate end of file */\r
- zzEndRead = zzStartRead; /* invalidate buffer */\r
-\r
- if (zzReader != null)\r
- zzReader.close();\r
- }\r
-\r
-\r
- /**\r
- * Resets the scanner to read from a new input stream.\r
- * Does not close the old reader.\r
- *\r
- * All internal variables are reset, the old input stream \r
- * <b>cannot</b> be reused (internal buffer is discarded and lost).\r
- * Lexical state is set to <tt>ZZ_INITIAL</tt>.\r
- *\r
- * Internal scan buffer is resized down to its initial length, if it has grown.\r
- *\r
- * @param reader the new input stream \r
- */\r
- public final void yyreset(java.io.Reader reader) {\r
- zzReader = reader;\r
- zzAtBOL = true;\r
- zzAtEOF = false;\r
- zzEOFDone = false;\r
- zzEndRead = zzStartRead = 0;\r
- zzCurrentPos = zzMarkedPos = 0;\r
- zzFinalHighSurrogate = 0;\r
- yyline = yychar = yycolumn = 0;\r
- zzLexicalState = YYINITIAL;\r
- if (zzBuffer.length > ZZ_BUFFERSIZE)\r
- zzBuffer = new char[ZZ_BUFFERSIZE];\r
- }\r
-\r
-\r
- /**\r
- * Returns the current lexical state.\r
- */\r
- public final int yystate() {\r
- return zzLexicalState;\r
- }\r
-\r
-\r
- /**\r
- * Enters a new lexical state\r
- *\r
- * @param newState the new lexical state\r
- */\r
- public final void yybegin(int newState) {\r
- zzLexicalState = newState;\r
- }\r
-\r
-\r
- /**\r
- * Returns the text matched by the current regular expression.\r
- */\r
- public final String yytext() {\r
- return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r
- }\r
-\r
-\r
- /**\r
- * Returns the character at position <tt>pos</tt> from the \r
- * matched text. \r
- * \r
- * It is equivalent to yytext().charAt(pos), but faster\r
- *\r
- * @param pos the position of the character to fetch. \r
- * A value from 0 to yylength()-1.\r
- *\r
- * @return the character at position pos\r
- */\r
- public final char yycharat(int pos) {\r
- return zzBuffer[zzStartRead+pos];\r
- }\r
-\r
-\r
- /**\r
- * Returns the length of the matched text region.\r
- */\r
- public final int yylength() {\r
- return zzMarkedPos-zzStartRead;\r
- }\r
-\r
-\r
- /**\r
- * Reports an error that occured while scanning.\r
- *\r
- * In a wellformed scanner (no or only correct usage of \r
- * yypushback(int) and a match-all fallback rule) this method \r
- * will only be called with things that "Can't Possibly Happen".\r
- * If this method is called, something is seriously wrong\r
- * (e.g. a JFlex bug producing a faulty scanner etc.).\r
- *\r
- * Usual syntax/scanner level error handling should be done\r
- * in error fallback rules.\r
- *\r
- * @param errorCode the code of the errormessage to display\r
- */\r
- private void zzScanError(int errorCode) throws RuntimeException {\r
- String message;\r
- try {\r
- message = ZZ_ERROR_MSG[errorCode];\r
- }\r
- catch (ArrayIndexOutOfBoundsException e) {\r
- message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r
- }\r
-\r
- throw new RuntimeException(message);\r
- } \r
-\r
-\r
- /**\r
- * Pushes the specified amount of characters back into the input stream.\r
- *\r
- * They will be read again by then next call of the scanning method\r
- *\r
- * @param number the number of characters to be read again.\r
- * This number must not be greater than yylength()!\r
- */\r
- public void yypushback(int number) throws RuntimeException {\r
- if ( number > yylength() )\r
- zzScanError(ZZ_PUSHBACK_2BIG);\r
-\r
- zzMarkedPos -= number;\r
- }\r
-\r
-\r
- /**\r
- * Resumes scanning until the next regular expression is matched,\r
- * the end of input is encountered or an I/O-Error occurs.\r
- *\r
- * @return the next token\r
- * @exception java.io.IOException if any I/O-Error occurs\r
- */\r
- public Token nextToken() throws java.io.IOException, SCLSyntaxErrorException, RuntimeException {\r
- int zzInput;\r
- int zzAction;\r
-\r
- // cached fields:\r
- int zzCurrentPosL;\r
- int zzMarkedPosL;\r
- int zzEndReadL = zzEndRead;\r
- char [] zzBufferL = zzBuffer;\r
- char [] zzCMapL = ZZ_CMAP;\r
-\r
- int [] zzTransL = ZZ_TRANS;\r
- int [] zzRowMapL = ZZ_ROWMAP;\r
- int [] zzAttrL = ZZ_ATTRIBUTE;\r
-\r
- while (true) {\r
- zzMarkedPosL = zzMarkedPos;\r
-\r
- yychar+= zzMarkedPosL-zzStartRead;\r
-\r
- zzAction = -1;\r
-\r
- zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;\r
- \r
- zzState = ZZ_LEXSTATE[zzLexicalState];\r
-\r
- // set up zzAction for empty match case:\r
- int zzAttributes = zzAttrL[zzState];\r
- if ( (zzAttributes & 1) == 1 ) {\r
- zzAction = zzState;\r
- }\r
-\r
-\r
- zzForAction: {\r
- while (true) {\r
- \r
- if (zzCurrentPosL < zzEndReadL) {\r
- zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL, zzEndReadL);\r
- zzCurrentPosL += Character.charCount(zzInput);\r
- }\r
- else if (zzAtEOF) {\r
- zzInput = YYEOF;\r
- break zzForAction;\r
- }\r
- else {\r
- // store back cached positions\r
- zzCurrentPos = zzCurrentPosL;\r
- zzMarkedPos = zzMarkedPosL;\r
- boolean eof = zzRefill();\r
- // get translated positions and possibly new buffer\r
- zzCurrentPosL = zzCurrentPos;\r
- zzMarkedPosL = zzMarkedPos;\r
- zzBufferL = zzBuffer;\r
- zzEndReadL = zzEndRead;\r
- if (eof) {\r
- zzInput = YYEOF;\r
- break zzForAction;\r
- }\r
- else {\r
- zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL, zzEndReadL);\r
- zzCurrentPosL += Character.charCount(zzInput);\r
- }\r
- }\r
- int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ];\r
- if (zzNext == -1) break zzForAction;\r
- zzState = zzNext;\r
-\r
- zzAttributes = zzAttrL[zzState];\r
- if ( (zzAttributes & 1) == 1 ) {\r
- zzAction = zzState;\r
- zzMarkedPosL = zzCurrentPosL;\r
- if ( (zzAttributes & 8) == 8 ) break zzForAction;\r
- }\r
-\r
- }\r
- }\r
-\r
- // store back cached position\r
- zzMarkedPos = zzMarkedPosL;\r
-\r
- if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {\r
- zzAtEOF = true;\r
- switch (zzLexicalState) {\r
- case STRING: {\r
- throw new SCLSyntaxErrorException(Locations.location(stringStart, yychar), "Unclosed string literal.");\r
- }\r
- case 277: break;\r
- case LONG_STRING: {\r
- throw new SCLSyntaxErrorException(Locations.location(stringStart, yychar), "Unclosed string literal.");\r
- }\r
- case 278: break;\r
- default:\r
- { return sym(SCLTerminals.EOF);\r
- }\r
- }\r
- }\r
- else {\r
- switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {\r
- case 1: \r
- { throw new SCLSyntaxErrorException(Locations.location(yychar, yychar+1), "Illegal character '" + yytext() + "'.");\r
- }\r
- case 93: break;\r
- case 2: \r
- { return sym(SCLTerminals.ID);\r
- }\r
- case 94: break;\r
- case 3: \r
- { return sym(SCLTerminals.INTEGER);\r
- }\r
- case 95: break;\r
- case 4: \r
- { return sym(SCLTerminals.SYMBOL, yytext().trim());\r
- }\r
- case 96: break;\r
- case 5: \r
- { return sym(SCLTerminals.ATTACHED_HASH, "#");\r
- }\r
- case 97: break;\r
- case 6: \r
- { return sym(SCLTerminals.ATTACHED_DOT, ".");\r
- }\r
- case 98: break;\r
- case 7: \r
- { return sym(SCLTerminals.AT);\r
- }\r
- case 99: break;\r
- case 8: \r
- { ++parenCount; return sym(SCLTerminals.LPAREN);\r
- }\r
- case 100: break;\r
- case 9: \r
- { return sym(SCLTerminals.COMMA);\r
- }\r
- case 101: break;\r
- case 10: \r
- { --parenCount;\r
- if(parenCount == 0 && !parenCountStack.isEmpty()) { \r
- parenCount = parenCountStack.removeAt(parenCountStack.size()-1);\r
- string.setLength(0);\r
- stringStart=yychar;\r
- yybegin(stateStack.removeAt(stateStack.size()-1));\r
- return sym(SCLTerminals.CONTINUE_STRING);\r
- }\r
- else\r
- return sym(SCLTerminals.RPAREN);\r
- }\r
- case 102: break;\r
- case 11: \r
- { return new Token(SCLTerminals.EOL, yychar, yychar+yylength(), "");\r
- }\r
- case 103: break;\r
- case 12: \r
- { return sym(SCLTerminals.LESS, "<");\r
- }\r
- case 104: break;\r
- case 13: \r
- { return sym(SCLTerminals.GREATER, ">");\r
- }\r
- case 105: break;\r
- case 14: \r
- { return sym(SCLTerminals.MINUS, "-");\r
- }\r
- case 106: break;\r
- case 15: \r
- { \r
- }\r
- case 107: break;\r
- case 16: \r
- { throw new SCLSyntaxErrorException(Locations.location(yychar, yychar+1), "Character does not conform to UTF-8 encoding.");\r
- }\r
- case 108: break;\r
- case 17: \r
- { return sym(SCLTerminals.LAMBDA);\r
- }\r
- case 109: break;\r
- case 18: \r
- { return sym(SCLTerminals.LBRACE);\r
- }\r
- case 110: break;\r
- case 19: \r
- { return sym(SCLTerminals.RBRACE);\r
- }\r
- case 111: break;\r
- case 20: \r
- { return sym(SCLTerminals.LBRACKET);\r
- }\r
- case 112: break;\r
- case 21: \r
- { return sym(SCLTerminals.RBRACKET);\r
- }\r
- case 113: break;\r
- case 22: \r
- { return sym(SCLTerminals.EQUALS);\r
- }\r
- case 114: break;\r
- case 23: \r
- { return sym(SCLTerminals.COLON);\r
- }\r
- case 115: break;\r
- case 24: \r
- { return sym(SCLTerminals.SEMICOLON);\r
- }\r
- case 116: break;\r
- case 25: \r
- { return sym(SCLTerminals.BAR);\r
- }\r
- case 117: break;\r
- case 26: \r
- { string.setLength(0); stringStart=yychar; yybegin(STRING); return sym(SCLTerminals.BEGIN_STRING);\r
- }\r
- case 118: break;\r
- case 27: \r
- { return sym(SCLTerminals.BLANK);\r
- }\r
- case 119: break;\r
- case 28: \r
- { throw new SCLSyntaxErrorException(Locations.location(yychar, yychar+1), "Tabulator is not allowed except inside string literals.");\r
- }\r
- case 120: break;\r
- case 29: \r
- { string.append( yytext() );\r
- }\r
- case 121: break;\r
- case 30: \r
- { throw new SCLSyntaxErrorException(Locations.location(stringStart, yychar), "Unclosed string literal.");\r
- }\r
- case 122: break;\r
- case 31: \r
- { yybegin(YYINITIAL); \r
- return new Token(SCLTerminals.END_STRING, stringStart, yychar+1, string.toString());\r
- }\r
- case 123: break;\r
- case 32: \r
- { string.append('\n');\r
- }\r
- case 124: break;\r
- case 33: \r
- { return sym(SCLTerminals.DOTDOT, ".");\r
- }\r
- case 125: break;\r
- case 34: \r
- { return sym(SCLTerminals.SEPARATED_DOT, ".");\r
- }\r
- case 126: break;\r
- case 35: \r
- { return sym(SCLTerminals.ANNOTATION_ID);\r
- }\r
- case 127: break;\r
- case 36: \r
- { return sym(SCLTerminals.BINDS);\r
- }\r
- case 128: break;\r
- case 37: \r
- { return sym(SCLTerminals.ARROW);\r
- }\r
- case 129: break;\r
- case 38: \r
- { return sym(SCLTerminals.COMMENT);\r
- }\r
- case 130: break;\r
- case 39: \r
- { return sym(SCLTerminals.AS);\r
- }\r
- case 131: break;\r
- case 40: \r
- { return sym(SCLTerminals.IF);\r
- }\r
- case 132: break;\r
- case 41: \r
- { return sym(SCLTerminals.IN);\r
- }\r
- case 133: break;\r
- case 42: \r
- { return sym(options.supportEq ? SCLTerminals.EQ : SCLTerminals.ID);\r
- }\r
- case 134: break;\r
- case 43: \r
- { return sym(SCLTerminals.BY);\r
- }\r
- case 135: break;\r
- case 44: \r
- { return sym(SCLTerminals.DO);\r
- }\r
- case 136: break;\r
- case 45: \r
- { return sym(SCLTerminals.IMPLIES);\r
- }\r
- case 137: break;\r
- case 46: \r
- { return sym(SCLTerminals.FOLLOWS);\r
- }\r
- case 138: break;\r
- case 47: \r
- { return sym(SCLTerminals.HASTYPE);\r
- }\r
- case 139: break;\r
- case 48: \r
- { throw new SCLSyntaxErrorException(Locations.location(stringStart, yychar), "Illegal string escape character.");\r
- }\r
- case 140: break;\r
- case 49: \r
- { string.append(yytext().substring(1));\r
- }\r
- case 141: break;\r
- case 50: \r
- { parenCountStack.add(parenCount);\r
- parenCount = 1;\r
- stateStack.add(STRING);\r
- yybegin(YYINITIAL); \r
- return new Token(SCLTerminals.SUSPEND_STRING, stringStart, yychar+1, string.toString());\r
- }\r
- case 142: break;\r
- case 51: \r
- { string.append('\r');\r
- }\r
- case 143: break;\r
- case 52: \r
- { string.append('\t');\r
- }\r
- case 144: break;\r
- case 53: \r
- { parenCountStack.add(parenCount);\r
- parenCount = 1;\r
- stateStack.add(LONG_STRING);\r
- yybegin(YYINITIAL); \r
- return new Token(SCLTerminals.SUSPEND_STRING, stringStart, yychar+1, string.toString());\r
- }\r
- case 145: break;\r
- case 54: \r
- { return sym(SCLTerminals.FLOAT);\r
- }\r
- case 146: break;\r
- case 55: \r
- { return sym(SCLTerminals.CHAR);\r
- }\r
- case 147: break;\r
- case 56: \r
- { String text = yytext();\r
- return sym(SCLTerminals.ID, text.substring(1, text.length()-1));\r
- }\r
- case 148: break;\r
- case 57: \r
- { String text = yytext();\r
- return sym(SCLTerminals.SYMBOL, text.substring(1, text.length()-1));\r
- }\r
- case 149: break;\r
- case 58: \r
- { return sym(SCLTerminals.QUERY_OP);\r
- }\r
- case 150: break;\r
- case 59: \r
- { return sym(SCLTerminals.LET);\r
- }\r
- case 151: break;\r
- case 60: \r
- { return sym(SCLTerminals.MDO);\r
- }\r
- case 152: break;\r
- case 61: \r
- { string.setLength(0); stringStart=yychar; yybegin(LONG_STRING); return sym(SCLTerminals.BEGIN_STRING);\r
- }\r
- case 153: break;\r
- case 62: \r
- { yybegin(YYINITIAL); \r
- return new Token(SCLTerminals.END_STRING, stringStart, yychar+3, string.toString());\r
- }\r
- case 154: break;\r
- case 63: \r
- { return sym(SCLTerminals.RULE);\r
- }\r
- case 155: break;\r
- case 64: \r
- { return sym(SCLTerminals.THEN);\r
- }\r
- case 156: break;\r
- case 65: \r
- { return sym(SCLTerminals.TYPE);\r
- }\r
- case 157: break;\r
- case 66: \r
- { return sym(SCLTerminals.ELSE);\r
- }\r
- case 158: break;\r
- case 67: \r
- { return sym(SCLTerminals.WITH);\r
- }\r
- case 159: break;\r
- case 68: \r
- { return sym(SCLTerminals.WHEN);\r
- }\r
- case 160: break;\r
- case 69: \r
- { return sym(SCLTerminals.DATA);\r
- }\r
- case 161: break;\r
- case 70: \r
- { return sym(SCLTerminals.INFIX);\r
- }\r
- case 162: break;\r
- case 71: \r
- { return sym(SCLTerminals.WHERE);\r
- }\r
- case 163: break;\r
- case 72: \r
- { return sym(SCLTerminals.CLASS);\r
- }\r
- case 164: break;\r
- case 73: \r
- { return sym(SCLTerminals.MATCH);\r
- }\r
- case 165: break;\r
- case 74: \r
- { return sym(SCLTerminals.FORALL);\r
- }\r
- case 166: break;\r
- case 75: \r
- { return sym(SCLTerminals.INFIXR);\r
- }\r
- case 167: break;\r
- case 76: \r
- { return sym(SCLTerminals.INFIXL);\r
- }\r
- case 168: break;\r
- case 77: \r
- { return sym(SCLTerminals.IMPORT);\r
- }\r
- case 169: break;\r
- case 78: \r
- { return sym(SCLTerminals.HIDING);\r
- }\r
- case 170: break;\r
- case 79: \r
- { return sym(SCLTerminals.EFFECT);\r
- }\r
- case 171: break;\r
- case 80: \r
- { return sym(SCLTerminals.SELECT);\r
- }\r
- case 172: break;\r
- case 81: \r
- { string.append((char)Integer.parseInt(yytext().substring(2), 16));\r
- }\r
- case 173: break;\r
- case 82: \r
- { return sym(SCLTerminals.INCLUDE);\r
- }\r
- case 174: break;\r
- case 83: \r
- { return sym(SCLTerminals.ENFORCE);\r
- }\r
- case 175: break;\r
- case 84: \r
- { return sym(SCLTerminals.EXTENDS);\r
- }\r
- case 176: break;\r
- case 85: \r
- { return sym(SCLTerminals.INSTANCE);\r
- }\r
- case 177: break;\r
- case 86: \r
- { return sym(SCLTerminals.DERIVING);\r
- }\r
- case 178: break;\r
- case 87: \r
- { return sym(SCLTerminals.IMPORTJAVA);\r
- }\r
- case 179: break;\r
- case 88: \r
- { return sym(SCLTerminals.SELECT_FIRST);\r
- }\r
- case 180: break;\r
- case 89: \r
- { return sym(SCLTerminals.ABSTRACT_RULE);\r
- }\r
- case 181: break;\r
- case 90: \r
- { return sym(SCLTerminals.TRANSFORMATION);\r
- }\r
- case 182: break;\r
- case 91: \r
- { return sym(SCLTerminals.SELECT_DISTINCT);\r
- }\r
- case 183: break;\r
- case 92: \r
- { return sym(SCLTerminals.MAPPING_RELATION);\r
- }\r
- case 184: break;\r
- default:\r
- zzScanError(ZZ_NO_MATCH);\r
- }\r
- }\r
- }\r
- }\r
-\r
-\r
-}\r
+/* The following code was generated by JFlex 1.6.1 */
+
+package org.simantics.scl.compiler.internal.parsing.parser;
+
+import org.simantics.scl.compiler.compilation.CompilationContext;
+import org.simantics.scl.compiler.internal.parsing.Token;
+import org.simantics.scl.compiler.errors.Locations;
+import org.simantics.scl.compiler.internal.parsing.exceptions.SCLSyntaxErrorException;
+import gnu.trove.list.array.TIntArrayList;
+
+
+/**
+ * This class is a scanner generated by
+ * <a href="http://www.jflex.de/">JFlex</a> 1.6.1
+ * from the specification file <tt>C:/Simugawa.git/git/platform/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/parsing/parser/SCLLexer.flex</tt>
+ */
+public class SCLLexer {
+
+ /** 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 STRING = 2;
+ public static final int LONG_STRING = 4;
+ public static final int CHAR = 6;
+
+ /**
+ * 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, 2, 2, 3, 3
+ };
+
+ /**
+ * Translates characters to character classes
+ */
+ private static final String ZZ_CMAP_PACKED =
+ "\11\0\1\75\1\74\1\73\1\73\1\15\22\0\1\24\1\20\1\71"+
+ "\1\6\2\5\1\20\1\4\1\11\1\13\1\26\1\5\1\12\1\23"+
+ "\1\7\1\25\12\2\1\66\1\67\1\17\1\65\1\21\1\14\1\10"+
+ "\4\3\1\22\1\3\3\1\1\60\20\1\1\63\1\30\1\64\1\5"+
+ "\1\72\1\16\1\34\1\46\1\47\1\51\1\41\1\31\1\54\1\40"+
+ "\1\36\2\1\1\35\1\52\1\42\1\32\1\53\1\55\1\33\1\43"+
+ "\1\37\1\45\1\56\1\44\1\50\1\57\1\1\1\61\1\70\1\62"+
+ "\1\5\6\0\1\73\u1fa2\0\1\73\1\73\udfd3\0\1\27\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\22\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 =
+ "\4\0\1\1\1\2\1\3\1\1\1\4\1\5\1\6"+
+ "\1\7\1\10\1\11\1\12\1\1\1\13\1\1\1\14"+
+ "\1\15\1\16\1\17\1\4\1\20\1\21\16\2\1\22"+
+ "\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\32"+
+ "\1\33\1\13\1\34\1\35\1\36\1\0\1\37\1\36"+
+ "\1\40\2\35\2\40\5\0\1\4\1\41\1\42\1\43"+
+ "\3\0\1\2\4\0\1\4\1\44\1\45\1\46\1\4"+
+ "\2\0\2\2\1\47\2\2\1\50\1\51\11\2\1\52"+
+ "\3\2\1\53\2\2\1\54\4\2\1\55\1\56\1\57"+
+ "\1\0\1\60\1\61\1\62\1\63\1\64\1\60\1\65"+
+ "\2\0\2\66\1\0\1\67\1\70\1\2\1\0\1\71"+
+ "\2\0\2\72\1\0\1\4\1\0\3\2\1\73\25\2"+
+ "\1\74\1\75\1\0\1\76\2\0\1\46\1\0\1\2"+
+ "\1\77\6\2\1\100\1\101\2\2\1\102\3\2\1\103"+
+ "\1\2\1\104\2\2\1\105\3\2\1\0\1\46\1\0"+
+ "\3\2\1\106\11\2\1\107\1\2\1\110\1\2\1\111"+
+ "\1\2\1\0\1\112\1\113\2\2\1\114\1\115\2\2"+
+ "\1\116\1\2\1\117\1\120\2\2\1\121\3\2\1\122"+
+ "\1\123\2\2\1\124\2\2\1\125\1\126\1\0\4\2"+
+ "\1\127\2\2\2\0\1\2\1\130\2\0\2\2\2\0"+
+ "\1\2\2\0\1\131\1\2\2\0\1\132\2\0\1\2"+
+ "\4\0\1\2\1\133\2\0\1\134\1\2\2\0\1\135"+
+ "\2\0\1\136\1\0\1\137";
+
+ private static int [] zzUnpackAction() {
+ int [] result = new int[296];
+ 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\76\0\174\0\272\0\272\0\370\0\u0136\0\u0174"+
+ "\0\u01b2\0\u01f0\0\u022e\0\u026c\0\u02aa\0\272\0\272\0\u02e8"+
+ "\0\u0326\0\u0364\0\u03a2\0\u01b2\0\u03e0\0\u041e\0\u045c\0\272"+
+ "\0\u049a\0\u04d8\0\u0516\0\u0554\0\u0592\0\u05d0\0\u060e\0\u064c"+
+ "\0\u068a\0\u06c8\0\u0706\0\u0744\0\u0782\0\u07c0\0\u07fe\0\272"+
+ "\0\272\0\272\0\272\0\u083c\0\u087a\0\272\0\u01b2\0\u08b8"+
+ "\0\370\0\272\0\272\0\u08f6\0\u0934\0\u0972\0\272\0\272"+
+ "\0\u09b0\0\u09ee\0\u0a2c\0\u08f6\0\272\0\u0a6a\0\u0aa8\0\u0ae6"+
+ "\0\u0b24\0\u0b62\0\u0ba0\0\272\0\u0bde\0\u0c1c\0\u0c5a\0\u0c98"+
+ "\0\u0cd6\0\u0d14\0\u0d52\0\u0d90\0\u0dce\0\u0e0c\0\u0e4a\0\u01b2"+
+ "\0\u01b2\0\u0e88\0\u0ec6\0\u0f04\0\u0f42\0\u0f80\0\u0fbe\0\370"+
+ "\0\u0ffc\0\u103a\0\370\0\u1078\0\u10b6\0\u10f4\0\u1132\0\u1170"+
+ "\0\u11ae\0\u11ec\0\u122a\0\u1268\0\u12a6\0\370\0\u12e4\0\u1322"+
+ "\0\u1360\0\370\0\u139e\0\u13dc\0\370\0\u141a\0\u1458\0\u1496"+
+ "\0\u14d4\0\u01b2\0\u01b2\0\u01b2\0\u1512\0\272\0\272\0\272"+
+ "\0\272\0\272\0\u1550\0\272\0\u158e\0\u02e8\0\u15cc\0\u160a"+
+ "\0\u160a\0\272\0\272\0\272\0\u1648\0\272\0\u1686\0\u16c4"+
+ "\0\272\0\u01b2\0\u1702\0\u1740\0\u177e\0\u17bc\0\u17fa\0\u1838"+
+ "\0\370\0\u1876\0\u18b4\0\u18f2\0\u1930\0\u196e\0\u19ac\0\u19ea"+
+ "\0\u1a28\0\u1a66\0\u1aa4\0\u1ae2\0\u1b20\0\u1b5e\0\u1b9c\0\u1bda"+
+ "\0\u1c18\0\u1c56\0\u1c94\0\u1cd2\0\u1d10\0\u1d4e\0\370\0\272"+
+ "\0\u1d8c\0\272\0\u1dca\0\u1e08\0\u01b2\0\u1e46\0\u1e84\0\u1ec2"+
+ "\0\u1f00\0\u1f3e\0\u1f7c\0\u1fba\0\u1ff8\0\u2036\0\370\0\370"+
+ "\0\u2074\0\u20b2\0\370\0\u20f0\0\u212e\0\u216c\0\370\0\u21aa"+
+ "\0\370\0\u21e8\0\u2226\0\370\0\u2264\0\u22a2\0\u22e0\0\u231e"+
+ "\0\272\0\u235c\0\u239a\0\u23d8\0\u2416\0\u2454\0\u2492\0\u24d0"+
+ "\0\u250e\0\u254c\0\u258a\0\u25c8\0\u2606\0\u2644\0\u2682\0\370"+
+ "\0\u26c0\0\370\0\u26fe\0\370\0\u273c\0\u277a\0\272\0\370"+
+ "\0\u27b8\0\u27f6\0\370\0\370\0\u2834\0\u2872\0\u28b0\0\u28ee"+
+ "\0\370\0\370\0\u292c\0\u296a\0\u29a8\0\u29e6\0\u2a24\0\u2a62"+
+ "\0\272\0\370\0\u2aa0\0\u2ade\0\370\0\u2b1c\0\u2b5a\0\370"+
+ "\0\370\0\u2b98\0\u2bd6\0\u2c14\0\u2c52\0\u2c90\0\370\0\u2cce"+
+ "\0\u2d0c\0\u2d4a\0\u2d88\0\u2dc6\0\370\0\u2e04\0\u2e42\0\u2e80"+
+ "\0\u2ebe\0\u2efc\0\u2f3a\0\u2f78\0\u2fb6\0\u2ff4\0\370\0\u3032"+
+ "\0\u3070\0\u30ae\0\370\0\u30ec\0\u312a\0\u3168\0\u31a6\0\u31e4"+
+ "\0\u3222\0\u3260\0\u329e\0\272\0\u32dc\0\u331a\0\272\0\u3358"+
+ "\0\u3396\0\u33d4\0\370\0\u3412\0\u3450\0\272\0\u348e\0\272";
+
+ private static int [] zzUnpackRowMap() {
+ int [] result = new int[296];
+ 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\5\1\6\1\7\1\6\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\11\1\24\1\6\1\25\1\26\1\27\1\11\1\30"+
+ "\1\31\1\32\1\6\1\33\1\34\1\35\1\36\1\37"+
+ "\1\40\1\41\1\6\1\42\1\43\1\6\1\44\1\45"+
+ "\1\6\1\46\1\47\6\6\1\50\1\51\1\52\1\53"+
+ "\1\54\1\55\1\56\1\57\1\60\1\61\2\62\1\63"+
+ "\15\64\1\65\11\64\1\30\1\66\40\64\1\67\2\64"+
+ "\1\70\16\64\1\71\11\64\1\30\1\72\40\64\1\73"+
+ "\1\64\1\74\1\75\1\64\77\0\4\6\2\0\1\76"+
+ "\12\0\1\6\6\0\30\6\11\0\1\6\5\0\1\7"+
+ "\4\0\1\77\12\0\1\100\16\0\1\100\34\0\4\101"+
+ "\1\0\22\101\1\0\1\102\45\101\5\0\2\11\1\0"+
+ "\1\11\6\0\3\11\1\0\1\11\1\0\2\11\1\0"+
+ "\1\11\34\0\2\11\1\0\1\11\12\0\2\11\1\0"+
+ "\1\11\4\0\1\103\1\0\3\11\1\0\1\11\1\103"+
+ "\2\11\1\0\1\11\34\0\2\11\1\0\1\11\3\0"+
+ "\1\103\10\0\1\104\5\0\1\105\6\0\1\105\47\0"+
+ "\1\105\2\0\1\106\1\0\1\106\1\0\2\11\1\0"+
+ "\1\11\6\0\3\11\1\106\1\11\1\0\2\11\1\0"+
+ "\1\11\30\106\4\0\2\11\1\0\1\11\1\0\1\106"+
+ "\10\0\2\107\1\110\1\107\1\0\1\111\4\0\3\107"+
+ "\1\0\1\107\1\0\2\107\1\0\1\107\34\0\2\107"+
+ "\1\0\1\107\6\0\1\112\1\0\1\112\16\0\1\112"+
+ "\6\0\30\112\11\0\1\112\77\0\1\62\2\0\1\113"+
+ "\1\0\1\113\5\0\1\114\2\0\1\115\5\0\1\113"+
+ "\6\0\30\113\11\0\1\113\10\0\2\11\1\0\1\11"+
+ "\3\0\1\116\2\0\1\11\1\117\1\11\1\0\1\120"+
+ "\1\0\2\11\1\0\1\11\34\0\2\11\1\0\1\117"+
+ "\12\0\2\11\1\0\1\11\6\0\2\11\1\121\1\0"+
+ "\1\11\1\0\2\11\1\0\1\11\34\0\2\11\1\0"+
+ "\1\11\31\0\1\26\56\0\2\11\1\0\1\11\6\0"+
+ "\3\11\1\0\1\11\1\0\1\122\1\123\1\0\1\11"+
+ "\34\0\2\11\1\0\1\11\12\0\2\11\1\0\1\11"+
+ "\6\0\3\11\1\0\1\11\1\124\2\11\1\0\1\11"+
+ "\21\0\1\125\12\0\2\11\1\0\1\11\6\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\1\6\1\126\26\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\14\6\1\127\13\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\12\6\1\130\2\6"+
+ "\1\131\12\6\11\0\1\6\4\0\4\6\2\0\1\76"+
+ "\12\0\1\6\6\0\10\6\1\132\17\6\11\0\1\6"+
+ "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\1\133"+
+ "\10\6\1\134\7\6\1\135\6\6\11\0\1\6\4\0"+
+ "\4\6\2\0\1\76\12\0\1\6\6\0\2\6\1\136"+
+ "\4\6\1\137\16\6\1\140\1\6\11\0\1\6\4\0"+
+ "\4\6\2\0\1\76\12\0\1\6\6\0\5\6\1\141"+
+ "\22\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
+ "\1\6\6\0\1\142\3\6\1\143\4\6\1\144\5\6"+
+ "\1\145\4\6\1\146\3\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\10\6\1\147\17\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\5\6\1\150\1\6\1\151\20\6\11\0\1\6"+
+ "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\26\6"+
+ "\1\152\1\6\11\0\1\6\4\0\4\6\2\0\1\76"+
+ "\12\0\1\6\6\0\1\6\1\153\2\6\1\154\23\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\1\6\1\155\1\6\1\156\4\6\1\157\17\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\3\6\1\160\14\6\1\161\7\6\11\0\1\6"+
+ "\10\0\2\11\1\0\1\11\6\0\2\11\1\162\1\0"+
+ "\1\11\1\0\2\11\1\0\1\11\34\0\2\11\1\0"+
+ "\1\11\12\0\2\11\1\0\1\11\6\0\3\11\1\0"+
+ "\1\163\1\0\2\11\1\0\1\11\34\0\1\11\1\164"+
+ "\1\0\1\11\76\0\1\165\4\0\15\64\1\0\11\64"+
+ "\2\0\40\64\1\0\2\64\1\0\1\64\74\0\1\70"+
+ "\1\0\4\166\1\167\4\166\1\170\3\166\1\0\12\166"+
+ "\1\167\2\166\1\171\3\166\1\172\2\166\1\75\2\166"+
+ "\1\173\23\166\1\167\1\166\2\0\1\166\74\0\1\75"+
+ "\12\0\1\174\155\0\1\175\5\0\1\6\1\0\1\6"+
+ "\10\0\1\176\5\0\1\6\6\0\30\6\11\0\1\6"+
+ "\5\0\1\177\75\0\1\200\20\0\1\201\56\0\1\202"+
+ "\71\0\27\101\1\0\46\101\15\0\1\103\6\0\1\103"+
+ "\47\0\1\103\16\0\1\105\6\0\1\105\47\0\1\105"+
+ "\2\0\4\106\15\0\1\106\6\0\30\106\11\0\1\106"+
+ "\10\0\2\107\1\0\1\107\2\0\1\203\3\0\3\107"+
+ "\1\0\1\107\1\0\2\107\1\0\1\107\34\0\2\107"+
+ "\1\0\1\107\20\0\1\203\74\0\1\111\1\204\63\0"+
+ "\4\112\15\0\1\112\6\0\30\112\11\0\1\112\4\0"+
+ "\4\113\2\0\1\205\6\0\1\206\3\0\1\113\6\0"+
+ "\30\113\11\0\1\113\15\0\1\207\64\0\1\210\1\0"+
+ "\1\210\16\0\1\210\6\0\30\210\11\0\1\210\24\0"+
+ "\1\211\61\0\2\11\1\0\1\11\6\0\2\11\1\212"+
+ "\1\0\1\11\1\0\2\11\1\0\1\11\34\0\2\11"+
+ "\1\0\1\11\5\0\15\122\1\0\56\122\1\0\1\122"+
+ "\5\213\2\123\1\213\1\123\6\213\3\123\1\213\1\123"+
+ "\1\213\1\123\1\214\1\213\1\123\34\213\2\123\1\213"+
+ "\1\123\5\213\24\0\1\124\25\0\1\125\57\0\1\215"+
+ "\42\0\4\6\2\0\1\76\12\0\1\6\6\0\2\6"+
+ "\1\216\25\6\11\0\1\6\4\0\4\6\2\0\1\76"+
+ "\12\0\1\6\6\0\4\6\1\217\23\6\11\0\1\6"+
+ "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\12\6"+
+ "\1\220\15\6\11\0\1\6\4\0\4\6\2\0\1\76"+
+ "\12\0\1\6\6\0\6\6\1\221\21\6\11\0\1\6"+
+ "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\1\222"+
+ "\11\6\1\223\3\6\1\224\11\6\11\0\1\6\4\0"+
+ "\4\6\2\0\1\76\12\0\1\6\6\0\22\6\1\225"+
+ "\5\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
+ "\1\6\6\0\3\6\1\226\24\6\11\0\1\6\4\0"+
+ "\4\6\2\0\1\76\12\0\1\6\6\0\10\6\1\227"+
+ "\17\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
+ "\1\6\6\0\22\6\1\230\5\6\11\0\1\6\4\0"+
+ "\4\6\2\0\1\76\12\0\1\6\6\0\20\6\1\231"+
+ "\7\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
+ "\1\6\6\0\1\232\27\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\12\6\1\233\15\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\1\234\27\6\11\0\1\6\4\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\6\6\1\235\21\6\11\0"+
+ "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
+ "\4\6\1\236\23\6\11\0\1\6\4\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\6\6\1\237\21\6\11\0"+
+ "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
+ "\10\6\1\240\17\6\11\0\1\6\4\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\11\6\1\241\16\6\11\0"+
+ "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
+ "\3\6\1\242\24\6\11\0\1\6\4\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\6\6\1\243\21\6\11\0"+
+ "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
+ "\2\6\1\244\25\6\11\0\1\6\4\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\6\6\1\245\13\6\1\246"+
+ "\5\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
+ "\1\6\6\0\1\6\1\247\26\6\11\0\1\6\74\0"+
+ "\1\250\6\0\2\251\16\0\1\251\6\0\1\251\2\0"+
+ "\1\251\4\0\1\251\4\0\2\251\1\0\1\251\115\0"+
+ "\1\252\6\0\1\177\17\0\1\100\16\0\1\100\36\0"+
+ "\1\200\74\0\1\113\1\0\1\113\10\0\1\115\5\0"+
+ "\1\113\6\0\30\113\11\0\1\113\15\0\1\207\1\253"+
+ "\63\0\4\210\11\0\1\206\3\0\1\210\6\0\30\210"+
+ "\11\0\1\210\3\0\26\213\1\254\54\213\2\123\1\213"+
+ "\1\123\6\213\3\123\1\213\1\123\1\213\1\255\1\214"+
+ "\1\213\1\123\34\213\2\123\1\213\1\123\5\213\37\0"+
+ "\1\256\37\0\4\6\2\0\1\76\12\0\1\6\6\0"+
+ "\3\6\1\257\24\6\11\0\1\6\4\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\10\6\1\260\17\6\11\0"+
+ "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
+ "\6\6\1\261\21\6\11\0\1\6\4\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\5\6\1\262\22\6\11\0"+
+ "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
+ "\6\6\1\263\21\6\11\0\1\6\4\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\4\6\1\264\23\6\11\0"+
+ "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
+ "\1\6\1\265\26\6\11\0\1\6\4\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\11\6\1\266\16\6\11\0"+
+ "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
+ "\11\6\1\267\16\6\11\0\1\6\4\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\10\6\1\270\17\6\11\0"+
+ "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
+ "\5\6\1\271\22\6\11\0\1\6\4\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\10\6\1\272\17\6\11\0"+
+ "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
+ "\10\6\1\273\17\6\11\0\1\6\4\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\1\6\1\274\26\6\11\0"+
+ "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
+ "\10\6\1\275\17\6\11\0\1\6\4\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\10\6\1\276\17\6\11\0"+
+ "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
+ "\7\6\1\277\20\6\11\0\1\6\4\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\2\6\1\300\6\6\1\301"+
+ "\16\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
+ "\1\6\6\0\12\6\1\302\15\6\11\0\1\6\4\0"+
+ "\4\6\2\0\1\76\12\0\1\6\6\0\12\6\1\303"+
+ "\15\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
+ "\1\6\6\0\3\6\1\304\24\6\11\0\1\6\4\0"+
+ "\4\6\2\0\1\76\12\0\1\6\6\0\5\6\1\305"+
+ "\22\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
+ "\1\6\6\0\16\6\1\306\11\6\11\0\1\6\4\0"+
+ "\4\6\2\0\1\76\12\0\1\6\6\0\22\6\1\307"+
+ "\5\6\11\0\1\6\5\0\2\310\16\0\1\310\6\0"+
+ "\1\310\2\0\1\310\4\0\1\310\4\0\2\310\1\0"+
+ "\1\310\42\0\1\206\57\0\25\213\1\311\1\254\47\213"+
+ "\47\0\1\312\27\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\4\6\1\313\23\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\12\6\1\314\15\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\2\6\1\315\25\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\17\6\1\316\10\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\3\6\1\317\24\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\14\6\1\320\13\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\2\6\1\321\25\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\12\6\1\322\15\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\11\6\1\323\16\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\16\6\1\324\11\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\2\6\1\325\25\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\11\6\1\326\16\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\16\6\1\327\11\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\10\6\1\330\17\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\6\6\1\331\21\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\12\6\1\332\15\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\25\6\1\333\2\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\7\6\1\334\20\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\5\6\1\335\22\6\11\0\1\6\5\0\2\336"+
+ "\16\0\1\336\6\0\1\336\2\0\1\336\4\0\1\336"+
+ "\4\0\2\336\1\0\1\336\64\0\1\337\36\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\4\6\1\340\23\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\10\6\1\341\17\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\3\6\1\342\24\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\2\6\1\343\1\6\1\344\23\6\11\0\1\6"+
+ "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\11\6"+
+ "\1\345\16\6\11\0\1\6\4\0\4\6\2\0\1\76"+
+ "\12\0\1\6\6\0\20\6\1\346\7\6\11\0\1\6"+
+ "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\6\6"+
+ "\1\347\21\6\11\0\1\6\4\0\4\6\2\0\1\76"+
+ "\12\0\1\6\6\0\1\350\27\6\11\0\1\6\4\0"+
+ "\4\6\2\0\1\76\12\0\1\6\6\0\23\6\1\351"+
+ "\4\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
+ "\1\6\6\0\6\6\1\352\21\6\11\0\1\6\4\0"+
+ "\4\6\2\0\1\76\12\0\1\6\6\0\16\6\1\353"+
+ "\11\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
+ "\1\6\6\0\20\6\1\354\7\6\11\0\1\6\4\0"+
+ "\4\6\2\0\1\76\12\0\1\6\6\0\6\6\1\355"+
+ "\21\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
+ "\1\6\6\0\2\6\1\356\25\6\11\0\1\6\4\0"+
+ "\4\6\2\0\1\76\12\0\1\6\6\0\5\6\1\357"+
+ "\22\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
+ "\1\6\6\0\11\6\1\360\16\6\11\0\1\6\5\0"+
+ "\2\361\16\0\1\361\6\0\1\361\2\0\1\361\4\0"+
+ "\1\361\4\0\2\361\1\0\1\361\25\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\6\6\1\362\21\6\11\0"+
+ "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
+ "\16\6\1\363\11\6\11\0\1\6\4\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\16\6\1\364\11\6\11\0"+
+ "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
+ "\10\6\1\365\17\6\11\0\1\6\4\0\4\6\2\0"+
+ "\1\76\12\0\1\6\6\0\27\6\1\366\11\0\1\6"+
+ "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\1\6"+
+ "\1\367\26\6\11\0\1\6\4\0\4\6\2\0\1\76"+
+ "\12\0\1\6\6\0\10\6\1\370\17\6\11\0\1\6"+
+ "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\12\6"+
+ "\1\371\15\6\11\0\1\6\4\0\4\6\2\0\1\76"+
+ "\12\0\1\6\1\0\1\372\4\0\30\6\11\0\1\6"+
+ "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\3\6"+
+ "\1\373\24\6\11\0\1\6\4\0\4\6\2\0\1\76"+
+ "\12\0\1\6\6\0\11\6\1\374\16\6\11\0\1\6"+
+ "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\23\6"+
+ "\1\375\4\6\11\0\1\6\4\0\4\6\2\0\1\76"+
+ "\12\0\1\6\6\0\6\6\1\376\21\6\11\0\1\6"+
+ "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\10\6"+
+ "\1\377\17\6\11\0\1\6\4\0\4\6\2\0\1\76"+
+ "\12\0\1\6\6\0\3\6\1\u0100\24\6\11\0\1\6"+
+ "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\2\6"+
+ "\1\u0101\25\6\11\0\1\6\27\0\1\372\4\0\1\u0102"+
+ "\17\0\1\u0103\25\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\5\6\1\u0104\22\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\23\6\1\u0105\4\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\1\0\1\u0106\4\0\30\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\1\0\1\u0107\4\0\30\6"+
+ "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\25\6\1\u0108\2\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\21\6\1\u0109\6\6"+
+ "\11\0\1\6\41\0\1\u010a\75\0\1\u010b\40\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\11\6\1\u010c\16\6"+
+ "\11\0\1\6\27\0\1\u0106\6\0\1\u010d\66\0\1\u0107"+
+ "\6\0\1\u010e\43\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\3\6\1\u010f\24\6\11\0\1\6\4\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\3\6\1\u0110\24\6"+
+ "\11\0\1\6\36\0\1\u0111\105\0\1\u0112\33\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\6\6\1\u0113\21\6"+
+ "\11\0\1\6\44\0\1\u0114\101\0\1\u0115\31\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\6\6\1\u0116\21\6"+
+ "\11\0\1\6\46\0\1\u0117\71\0\1\u0118\73\0\1\u0119"+
+ "\75\0\1\u011a\41\0\4\6\2\0\1\76\12\0\1\6"+
+ "\6\0\5\6\1\u011b\22\6\11\0\1\6\42\0\1\u011c"+
+ "\74\0\1\u011d\73\0\1\u011e\102\0\1\u011f\35\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\1\6\1\u0120\26\6"+
+ "\11\0\1\6\45\0\1\u0121\72\0\1\u0122\37\0\4\6"+
+ "\2\0\1\76\12\0\1\6\6\0\11\6\1\u0123\16\6"+
+ "\11\0\1\6\52\0\1\u0124\64\0\1\u0125\76\0\1\u0126"+
+ "\70\0\1\u0127\105\0\1\u0128\33\0";
+
+ private static int [] zzUnpackTrans() {
+ int [] result = new int[13516];
+ 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 =
+ "\3\0\1\10\1\11\10\1\2\11\10\1\1\11\17\1"+
+ "\4\11\2\1\1\11\3\1\2\11\2\1\1\0\2\11"+
+ "\4\1\1\11\5\0\1\1\1\11\2\1\3\0\1\1"+
+ "\4\0\5\1\2\0\37\1\1\0\5\11\1\1\1\11"+
+ "\2\0\2\1\1\0\3\11\1\0\1\11\2\0\1\11"+
+ "\1\1\1\0\1\1\1\0\32\1\1\11\1\0\1\11"+
+ "\2\0\1\1\1\0\31\1\1\0\1\11\1\0\23\1"+
+ "\1\0\1\11\21\1\1\11\10\1\1\0\7\1\2\0"+
+ "\2\1\2\0\2\1\2\0\1\1\2\0\2\1\2\0"+
+ "\1\1\2\0\1\1\4\0\1\1\1\11\2\0\1\11"+
+ "\1\1\2\0\1\1\2\0\1\11\1\0\1\11";
+
+ private static int [] zzUnpackAttribute() {
+ int [] result = new int[296];
+ 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;
+
+ /**
+ * The number of occupied positions in zzBuffer beyond zzEndRead.
+ * When a lead/high surrogate has been read from the input stream
+ * into the final zzBuffer position, this will have a value of 1;
+ * otherwise, it will have a value of 0.
+ */
+ private int zzFinalHighSurrogate = 0;
+
+ /* user code: */
+ public SCLParserOptions options = SCLParserOptions.DEFAULT;
+ int stringStart;
+ TIntArrayList parenCountStack = new TIntArrayList(2);
+ int parenCount = 0;
+ TIntArrayList stateStack = new TIntArrayList(2);
+
+ StringBuffer string = new StringBuffer();
+ CompilationContext context;
+
+ private Token sym(int id) {
+ return new Token(id, yychar, yychar+yylength(), yytext());
+ }
+ private Token sym(int id, String text) {
+ return new Token(id, yychar, yychar+yylength(), text);
+ }
+ public void setCompilationContext(CompilationContext context) {
+ this.context = context;
+ }
+ public boolean supportCHR() {
+ return context.header == null ? false : context.header.chr;
+ }
+
+
+ /**
+ * Creates a new scanner
+ *
+ * @param in the java.io.Reader to read input from.
+ */
+ public SCLLexer(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) {
+ char [] map = new char[0x110000];
+ int i = 0; /* index in packed string */
+ int j = 0; /* index in unpacked array */
+ while (i < 190) {
+ int count = packed.charAt(i++);
+ char value = packed.charAt(i++);
+ do map[j++] = value; while (--count > 0);
+ }
+ return map;
+ }
+
+
+ /**
+ * 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 {
+
+ /* first: make room (if you can) */
+ if (zzStartRead > 0) {
+ zzEndRead += zzFinalHighSurrogate;
+ zzFinalHighSurrogate = 0;
+ System.arraycopy(zzBuffer, zzStartRead,
+ zzBuffer, 0,
+ zzEndRead-zzStartRead);
+
+ /* translate stored positions */
+ zzEndRead-= zzStartRead;
+ zzCurrentPos-= zzStartRead;
+ zzMarkedPos-= zzStartRead;
+ zzStartRead = 0;
+ }
+
+ /* is the buffer big enough? */
+ if (zzCurrentPos >= zzBuffer.length - zzFinalHighSurrogate) {
+ /* if not: blow it up */
+ char newBuffer[] = new char[zzBuffer.length*2];
+ System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length);
+ zzBuffer = newBuffer;
+ zzEndRead += zzFinalHighSurrogate;
+ zzFinalHighSurrogate = 0;
+ }
+
+ /* fill the buffer with new input */
+ int requested = zzBuffer.length - zzEndRead;
+ int numRead = zzReader.read(zzBuffer, zzEndRead, requested);
+
+ /* not supposed to occur according to specification of java.io.Reader */
+ if (numRead == 0) {
+ throw new java.io.IOException("Reader returned 0 characters. See JFlex examples for workaround.");
+ }
+ if (numRead > 0) {
+ zzEndRead += numRead;
+ /* If numRead == requested, we might have requested to few chars to
+ encode a full Unicode character. We assume that a Reader would
+ otherwise never return half characters. */
+ if (numRead == requested) {
+ if (Character.isHighSurrogate(zzBuffer[zzEndRead - 1])) {
+ --zzEndRead;
+ zzFinalHighSurrogate = 1;
+ }
+ }
+ /* potentially more input available */
+ return false;
+ }
+
+ /* numRead < 0 ==> end of stream */
+ return true;
+ }
+
+
+ /**
+ * 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
+ * <b>cannot</b> be reused (internal buffer is discarded and lost).
+ * Lexical state is set to <tt>ZZ_INITIAL</tt>.
+ *
+ * Internal scan buffer is resized down to its initial length, if it has grown.
+ *
+ * @param reader the new input stream
+ */
+ public final void yyreset(java.io.Reader reader) {
+ zzReader = reader;
+ zzAtBOL = true;
+ zzAtEOF = false;
+ zzEOFDone = false;
+ zzEndRead = zzStartRead = 0;
+ zzCurrentPos = zzMarkedPos = 0;
+ zzFinalHighSurrogate = 0;
+ yyline = yychar = yycolumn = 0;
+ zzLexicalState = YYINITIAL;
+ if (zzBuffer.length > ZZ_BUFFERSIZE)
+ zzBuffer = new char[ZZ_BUFFERSIZE];
+ }
+
+
+ /**
+ * 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) throws RuntimeException {
+ String message;
+ try {
+ message = ZZ_ERROR_MSG[errorCode];
+ }
+ catch (ArrayIndexOutOfBoundsException e) {
+ message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];
+ }
+
+ throw new RuntimeException(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) throws RuntimeException {
+ 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 Token nextToken() throws java.io.IOException, SCLSyntaxErrorException, RuntimeException {
+ 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 = 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] + zzCMapL[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;
+ switch (zzLexicalState) {
+ case STRING: {
+ throw new SCLSyntaxErrorException(Locations.location(stringStart, yychar), "Unclosed string literal.");
+ }
+ case 297: break;
+ case LONG_STRING: {
+ throw new SCLSyntaxErrorException(Locations.location(stringStart, yychar), "Unclosed string literal.");
+ }
+ case 298: break;
+ default:
+ { return sym(SCLTerminals.EOF);
+ }
+ }
+ }
+ else {
+ switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
+ case 1:
+ { throw new SCLSyntaxErrorException(Locations.location(yychar, yychar+1), "Illegal character '" + yytext() + "'.");
+ }
+ case 96: break;
+ case 2:
+ { return sym(SCLTerminals.ID);
+ }
+ case 97: break;
+ case 3:
+ { return sym(SCLTerminals.INTEGER);
+ }
+ case 98: break;
+ case 4:
+ { return sym(SCLTerminals.SYMBOL, yytext().trim());
+ }
+ case 99: break;
+ case 5:
+ { return sym(SCLTerminals.ATTACHED_HASH, "#");
+ }
+ case 100: break;
+ case 6:
+ { return sym(SCLTerminals.ATTACHED_DOT, ".");
+ }
+ case 101: break;
+ case 7:
+ { return sym(SCLTerminals.AT);
+ }
+ case 102: break;
+ case 8:
+ { ++parenCount; return sym(SCLTerminals.LPAREN);
+ }
+ case 103: break;
+ case 9:
+ { return sym(SCLTerminals.COMMA);
+ }
+ case 104: break;
+ case 10:
+ { --parenCount;
+ if(parenCount == 0 && !parenCountStack.isEmpty()) {
+ parenCount = parenCountStack.removeAt(parenCountStack.size()-1);
+ string.setLength(0);
+ stringStart=yychar;
+ yybegin(stateStack.removeAt(stateStack.size()-1));
+ return sym(SCLTerminals.CONTINUE_STRING);
+ }
+ else
+ return sym(SCLTerminals.RPAREN);
+ }
+ case 105: break;
+ case 11:
+ { return new Token(SCLTerminals.EOL, yychar, yychar+yylength(), "");
+ }
+ case 106: break;
+ case 12:
+ { return sym(SCLTerminals.LESS, "<");
+ }
+ case 107: break;
+ case 13:
+ { return sym(SCLTerminals.GREATER, ">");
+ }
+ case 108: break;
+ case 14:
+ { return sym(SCLTerminals.MINUS, "-");
+ }
+ case 109: break;
+ case 15:
+ {
+ }
+ case 110: break;
+ case 16:
+ { throw new SCLSyntaxErrorException(Locations.location(yychar, yychar+1), "Character does not conform to UTF-8 encoding.");
+ }
+ case 111: break;
+ case 17:
+ { return sym(SCLTerminals.LAMBDA);
+ }
+ case 112: break;
+ case 18:
+ { return sym(SCLTerminals.LBRACE);
+ }
+ case 113: break;
+ case 19:
+ { return sym(SCLTerminals.RBRACE);
+ }
+ case 114: break;
+ case 20:
+ { return sym(SCLTerminals.LBRACKET);
+ }
+ case 115: break;
+ case 21:
+ { return sym(SCLTerminals.RBRACKET);
+ }
+ case 116: break;
+ case 22:
+ { return sym(SCLTerminals.EQUALS);
+ }
+ case 117: break;
+ case 23:
+ { return sym(SCLTerminals.COLON);
+ }
+ case 118: break;
+ case 24:
+ { return sym(SCLTerminals.SEMICOLON);
+ }
+ case 119: break;
+ case 25:
+ { return sym(SCLTerminals.BAR);
+ }
+ case 120: break;
+ case 26:
+ { string.setLength(0); stringStart=yychar; yybegin(STRING); return sym(SCLTerminals.BEGIN_STRING);
+ }
+ case 121: break;
+ case 27:
+ { return sym(SCLTerminals.BLANK);
+ }
+ case 122: break;
+ case 28:
+ { throw new SCLSyntaxErrorException(Locations.location(yychar, yychar+1), "Tabulator is not allowed except inside string literals.");
+ }
+ case 123: break;
+ case 29:
+ { string.append( yytext() );
+ }
+ case 124: break;
+ case 30:
+ { throw new SCLSyntaxErrorException(Locations.location(stringStart, yychar), "Unclosed string literal.");
+ }
+ case 125: break;
+ case 31:
+ { yybegin(YYINITIAL);
+ return new Token(SCLTerminals.END_STRING, stringStart, yychar+1, string.toString());
+ }
+ case 126: break;
+ case 32:
+ { string.append('\n');
+ }
+ case 127: break;
+ case 33:
+ { return sym(SCLTerminals.DOTDOT, ".");
+ }
+ case 128: break;
+ case 34:
+ { return sym(SCLTerminals.SEPARATED_DOT, ".");
+ }
+ case 129: break;
+ case 35:
+ { return sym(SCLTerminals.ANNOTATION_ID);
+ }
+ case 130: break;
+ case 36:
+ { return sym(SCLTerminals.BINDS);
+ }
+ case 131: break;
+ case 37:
+ { return sym(SCLTerminals.ARROW);
+ }
+ case 132: break;
+ case 38:
+ { return sym(SCLTerminals.COMMENT);
+ }
+ case 133: break;
+ case 39:
+ { return sym(SCLTerminals.AS);
+ }
+ case 134: break;
+ case 40:
+ { return sym(SCLTerminals.IF);
+ }
+ case 135: break;
+ case 41:
+ { return sym(SCLTerminals.IN);
+ }
+ case 136: break;
+ case 42:
+ { return sym(options.supportEq ? SCLTerminals.EQ : SCLTerminals.ID);
+ }
+ case 137: break;
+ case 43:
+ { return sym(SCLTerminals.BY);
+ }
+ case 138: break;
+ case 44:
+ { return sym(SCLTerminals.DO);
+ }
+ case 139: break;
+ case 45:
+ { return sym(SCLTerminals.IMPLIES);
+ }
+ case 140: break;
+ case 46:
+ { return sym(SCLTerminals.FOLLOWS);
+ }
+ case 141: break;
+ case 47:
+ { return sym(SCLTerminals.HASTYPE);
+ }
+ case 142: break;
+ case 48:
+ { throw new SCLSyntaxErrorException(Locations.location(stringStart, yychar), "Illegal string escape character.");
+ }
+ case 143: break;
+ case 49:
+ { string.append(yytext().substring(1));
+ }
+ case 144: break;
+ case 50:
+ { parenCountStack.add(parenCount);
+ parenCount = 1;
+ stateStack.add(STRING);
+ yybegin(YYINITIAL);
+ return new Token(SCLTerminals.SUSPEND_STRING, stringStart, yychar+1, string.toString());
+ }
+ case 145: break;
+ case 51:
+ { string.append('\r');
+ }
+ case 146: break;
+ case 52:
+ { string.append('\t');
+ }
+ case 147: break;
+ case 53:
+ { parenCountStack.add(parenCount);
+ parenCount = 1;
+ stateStack.add(LONG_STRING);
+ yybegin(YYINITIAL);
+ return new Token(SCLTerminals.SUSPEND_STRING, stringStart, yychar+1, string.toString());
+ }
+ case 148: break;
+ case 54:
+ { return sym(SCLTerminals.FLOAT);
+ }
+ case 149: break;
+ case 55:
+ { return sym(SCLTerminals.CHAR);
+ }
+ case 150: break;
+ case 56:
+ { String text = yytext();
+ return sym(SCLTerminals.ID, text.substring(1, text.length()-1));
+ }
+ case 151: break;
+ case 57:
+ { String text = yytext();
+ return sym(SCLTerminals.SYMBOL, text.substring(1, text.length()-1));
+ }
+ case 152: break;
+ case 58:
+ { return sym(SCLTerminals.QUERY_OP);
+ }
+ case 153: break;
+ case 59:
+ { return sym(SCLTerminals.LET);
+ }
+ case 154: break;
+ case 60:
+ { return sym(SCLTerminals.MDO);
+ }
+ case 155: break;
+ case 61:
+ { string.setLength(0); stringStart=yychar; yybegin(LONG_STRING); return sym(SCLTerminals.BEGIN_STRING);
+ }
+ case 156: break;
+ case 62:
+ { yybegin(YYINITIAL);
+ return new Token(SCLTerminals.END_STRING, stringStart, yychar+3, string.toString());
+ }
+ case 157: break;
+ case 63:
+ { return sym(supportCHR() ? SCLTerminals.ID : SCLTerminals.RULE);
+ }
+ case 158: break;
+ case 64:
+ { return sym(SCLTerminals.THEN);
+ }
+ case 159: break;
+ case 65:
+ { return sym(SCLTerminals.TYPE);
+ }
+ case 160: break;
+ case 66:
+ { return sym(SCLTerminals.ELSE);
+ }
+ case 161: break;
+ case 67:
+ { return sym(SCLTerminals.WITH);
+ }
+ case 162: break;
+ case 68:
+ { return sym(SCLTerminals.WHEN);
+ }
+ case 163: break;
+ case 69:
+ { return sym(SCLTerminals.DATA);
+ }
+ case 164: break;
+ case 70:
+ { return sym(SCLTerminals.INFIX);
+ }
+ case 165: break;
+ case 71:
+ { return sym(SCLTerminals.WHERE);
+ }
+ case 166: break;
+ case 72:
+ { return sym(SCLTerminals.CLASS);
+ }
+ case 167: break;
+ case 73:
+ { return sym(SCLTerminals.MATCH);
+ }
+ case 168: break;
+ case 74:
+ { return sym(SCLTerminals.LAMBDA_MATCH);
+ }
+ case 169: break;
+ case 75:
+ { return sym(SCLTerminals.FORALL);
+ }
+ case 170: break;
+ case 76:
+ { return sym(SCLTerminals.INFIXR);
+ }
+ case 171: break;
+ case 77:
+ { return sym(SCLTerminals.INFIXL);
+ }
+ case 172: break;
+ case 78:
+ { return sym(SCLTerminals.IMPORT);
+ }
+ case 173: break;
+ case 79:
+ { return sym(SCLTerminals.HIDING);
+ }
+ case 174: break;
+ case 80:
+ { return sym(SCLTerminals.EFFECT);
+ }
+ case 175: break;
+ case 81:
+ { return sym(SCLTerminals.SELECT);
+ }
+ case 176: break;
+ case 82:
+ { string.append((char)Integer.parseInt(yytext().substring(2), 16));
+ }
+ case 177: break;
+ case 83:
+ { return sym(supportCHR() ? SCLTerminals.RULESET : SCLTerminals.ID);
+ }
+ case 178: break;
+ case 84:
+ { return sym(SCLTerminals.INCLUDE);
+ }
+ case 179: break;
+ case 85:
+ { return sym(SCLTerminals.ENFORCE);
+ }
+ case 180: break;
+ case 86:
+ { return sym(SCLTerminals.EXTENDS);
+ }
+ case 181: break;
+ case 87:
+ { return sym(SCLTerminals.INSTANCE);
+ }
+ case 182: break;
+ case 88:
+ { return sym(SCLTerminals.DERIVING);
+ }
+ case 183: break;
+ case 89:
+ { return sym(SCLTerminals.IMPORTJAVA);
+ }
+ case 184: break;
+ case 90:
+ { return sym(SCLTerminals.CONSTRAINT);
+ }
+ case 185: break;
+ case 91:
+ { return sym(SCLTerminals.SELECT_FIRST);
+ }
+ case 186: break;
+ case 92:
+ { return sym(SCLTerminals.ABSTRACT_RULE);
+ }
+ case 187: break;
+ case 93:
+ { return sym(supportCHR() ? SCLTerminals.ID : SCLTerminals.TRANSFORMATION);
+ }
+ case 188: break;
+ case 94:
+ { return sym(SCLTerminals.SELECT_DISTINCT);
+ }
+ case 189: break;
+ case 95:
+ { return sym(SCLTerminals.MAPPING_RELATION);
+ }
+ case 190: break;
+ default:
+ zzScanError(ZZ_NO_MATCH);
+ }
+ }
+ }
+ }
+
+
+}