1 /* The following code was generated by JFlex 1.6.1 */
3 package org.simantics.scl.compiler.internal.parsing.parser;
5 import org.simantics.scl.compiler.internal.parsing.Token;
6 import org.simantics.scl.compiler.errors.Locations;
7 import org.simantics.scl.compiler.internal.parsing.exceptions.SCLSyntaxErrorException;
8 import gnu.trove.list.array.TIntArrayList;
12 * This class is a scanner generated by
13 * <a href="http://www.jflex.de/">JFlex</a> 1.6.1
14 * 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>
16 public class SCLLexer {
18 /** This character denotes the end of file */
19 public static final int YYEOF = -1;
21 /** initial size of the lookahead buffer */
22 private static final int ZZ_BUFFERSIZE = 16384;
25 public static final int YYINITIAL = 0;
26 public static final int STRING = 2;
27 public static final int LONG_STRING = 4;
28 public static final int CHAR = 6;
31 * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l
32 * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l
33 * at the beginning of a line
34 * l is of the form l = 2*k, k a non negative integer
36 private static final int ZZ_LEXSTATE[] = {
37 0, 0, 1, 1, 2, 2, 3, 3
41 * Translates characters to character classes
43 private static final String ZZ_CMAP_PACKED =
44 "\11\0\1\75\1\74\1\73\1\73\1\15\22\0\1\24\1\20\1\71"+
45 "\1\6\2\5\1\20\1\4\1\11\1\13\1\26\1\5\1\12\1\23"+
46 "\1\7\1\25\12\2\1\66\1\67\1\17\1\65\1\21\1\14\1\10"+
47 "\4\3\1\22\1\3\3\1\1\60\20\1\1\63\1\30\1\64\1\5"+
48 "\1\72\1\16\1\34\1\46\1\47\1\51\1\41\1\31\1\54\1\40"+
49 "\1\36\2\1\1\35\1\52\1\42\1\32\1\53\1\55\1\33\1\43"+
50 "\1\37\1\45\1\56\1\44\1\50\1\57\1\1\1\61\1\70\1\62"+
51 "\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";
54 * Translates characters to character classes
56 private static final char [] ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED);
59 * Translates DFA states to action switch labels.
61 private static final int [] ZZ_ACTION = zzUnpackAction();
63 private static final String ZZ_ACTION_PACKED_0 =
64 "\4\0\1\1\1\2\1\3\1\1\1\4\1\5\1\6"+
65 "\1\7\1\10\1\11\1\12\1\1\1\13\1\1\1\14"+
66 "\1\15\1\16\1\17\1\4\1\20\1\21\16\2\1\22"+
67 "\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\32"+
68 "\1\33\1\13\1\34\1\35\1\36\1\0\1\37\1\36"+
69 "\1\40\2\35\2\40\5\0\1\4\1\41\1\42\1\43"+
70 "\3\0\1\2\4\0\1\4\1\44\1\45\1\46\1\4"+
71 "\2\0\2\2\1\47\2\2\1\50\1\51\11\2\1\52"+
72 "\3\2\1\53\2\2\1\54\4\2\1\55\1\56\1\57"+
73 "\1\0\1\60\1\61\1\62\1\63\1\64\1\60\1\65"+
74 "\2\0\2\66\1\0\1\67\1\70\1\2\1\0\1\71"+
75 "\2\0\2\72\1\0\1\4\1\0\3\2\1\73\25\2"+
76 "\1\74\1\75\1\0\1\76\2\0\1\46\1\0\1\2"+
77 "\1\77\6\2\1\100\1\101\2\2\1\102\3\2\1\103"+
78 "\1\2\1\104\2\2\1\105\3\2\1\0\1\46\1\0"+
79 "\2\2\1\106\11\2\1\107\1\2\1\110\1\2\1\111"+
80 "\1\2\1\0\1\112\1\113\1\2\1\114\1\115\2\2"+
81 "\1\116\1\2\1\117\1\120\2\2\1\121\3\2\1\122"+
82 "\2\2\1\123\2\2\1\124\1\125\1\0\4\2\1\126"+
83 "\2\2\2\0\1\2\1\127\2\0\2\2\2\0\1\2"+
84 "\2\0\1\130\1\2\2\0\1\131\2\0\1\2\4\0"+
85 "\1\2\1\132\2\0\1\133\1\2\2\0\1\134\2\0"+
88 private static int [] zzUnpackAction() {
89 int [] result = new int[293];
91 offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);
95 private static int zzUnpackAction(String packed, int offset, int [] result) {
96 int i = 0; /* index in packed string */
97 int j = offset; /* index in unpacked array */
98 int l = packed.length();
100 int count = packed.charAt(i++);
101 int value = packed.charAt(i++);
102 do result[j++] = value; while (--count > 0);
109 * Translates a state to a row index in the transition table
111 private static final int [] ZZ_ROWMAP = zzUnpackRowMap();
113 private static final String ZZ_ROWMAP_PACKED_0 =
114 "\0\0\0\76\0\174\0\272\0\272\0\370\0\u0136\0\u0174"+
115 "\0\u01b2\0\u01f0\0\u022e\0\u026c\0\u02aa\0\272\0\272\0\u02e8"+
116 "\0\u0326\0\u0364\0\u03a2\0\u01b2\0\u03e0\0\u041e\0\u045c\0\272"+
117 "\0\u049a\0\u04d8\0\u0516\0\u0554\0\u0592\0\u05d0\0\u060e\0\u064c"+
118 "\0\u068a\0\u06c8\0\u0706\0\u0744\0\u0782\0\u07c0\0\u07fe\0\272"+
119 "\0\272\0\272\0\272\0\u083c\0\u087a\0\272\0\u01b2\0\u08b8"+
120 "\0\370\0\272\0\272\0\u08f6\0\u0934\0\u0972\0\272\0\272"+
121 "\0\u09b0\0\u09ee\0\u0a2c\0\u08f6\0\272\0\u0a6a\0\u0aa8\0\u0ae6"+
122 "\0\u0b24\0\u0b62\0\u0ba0\0\272\0\u0bde\0\u0c1c\0\u0c5a\0\u0c98"+
123 "\0\u0cd6\0\u0d14\0\u0d52\0\u0d90\0\u0dce\0\u0e0c\0\u0e4a\0\u01b2"+
124 "\0\u01b2\0\u0e88\0\u0ec6\0\u0f04\0\u0f42\0\u0f80\0\u0fbe\0\370"+
125 "\0\u0ffc\0\u103a\0\370\0\u1078\0\u10b6\0\u10f4\0\u1132\0\u1170"+
126 "\0\u11ae\0\u11ec\0\u122a\0\u1268\0\u12a6\0\370\0\u12e4\0\u1322"+
127 "\0\u1360\0\370\0\u139e\0\u13dc\0\370\0\u141a\0\u1458\0\u1496"+
128 "\0\u14d4\0\u01b2\0\u01b2\0\u01b2\0\u1512\0\272\0\272\0\272"+
129 "\0\272\0\272\0\u1550\0\272\0\u158e\0\u02e8\0\u15cc\0\u160a"+
130 "\0\u160a\0\272\0\272\0\272\0\u1648\0\272\0\u1686\0\u16c4"+
131 "\0\272\0\u01b2\0\u1702\0\u1740\0\u177e\0\u17bc\0\u17fa\0\u1838"+
132 "\0\370\0\u1876\0\u18b4\0\u18f2\0\u1930\0\u196e\0\u19ac\0\u19ea"+
133 "\0\u1a28\0\u1a66\0\u1aa4\0\u1ae2\0\u1b20\0\u1b5e\0\u1b9c\0\u1bda"+
134 "\0\u1c18\0\u1c56\0\u1c94\0\u1cd2\0\u1d10\0\u1d4e\0\370\0\272"+
135 "\0\u1d8c\0\272\0\u1dca\0\u1e08\0\u01b2\0\u1e46\0\u1e84\0\370"+
136 "\0\u1ec2\0\u1f00\0\u1f3e\0\u1f7c\0\u1fba\0\u1ff8\0\370\0\370"+
137 "\0\u2036\0\u2074\0\370\0\u20b2\0\u20f0\0\u212e\0\370\0\u216c"+
138 "\0\370\0\u21aa\0\u21e8\0\370\0\u2226\0\u2264\0\u22a2\0\u22e0"+
139 "\0\272\0\u231e\0\u235c\0\u239a\0\u23d8\0\u2416\0\u2454\0\u2492"+
140 "\0\u24d0\0\u250e\0\u254c\0\u258a\0\u25c8\0\u2606\0\370\0\u2644"+
141 "\0\370\0\u2682\0\370\0\u26c0\0\u26fe\0\272\0\370\0\u273c"+
142 "\0\370\0\370\0\u277a\0\u27b8\0\u27f6\0\u2834\0\370\0\370"+
143 "\0\u2872\0\u28b0\0\u28ee\0\u292c\0\u296a\0\u29a8\0\272\0\u29e6"+
144 "\0\u2a24\0\370\0\u2a62\0\u2aa0\0\370\0\370\0\u2ade\0\u2b1c"+
145 "\0\u2b5a\0\u2b98\0\u2bd6\0\370\0\u2c14\0\u2c52\0\u2c90\0\u2cce"+
146 "\0\u2d0c\0\370\0\u2d4a\0\u2d88\0\u2dc6\0\u2e04\0\u2e42\0\u2e80"+
147 "\0\u2ebe\0\u2efc\0\u2f3a\0\370\0\u2f78\0\u2fb6\0\u2ff4\0\370"+
148 "\0\u3032\0\u3070\0\u30ae\0\u30ec\0\u312a\0\u3168\0\u31a6\0\u31e4"+
149 "\0\272\0\u3222\0\u3260\0\272\0\u329e\0\u32dc\0\u331a\0\370"+
150 "\0\u3358\0\u3396\0\272\0\u33d4\0\272";
152 private static int [] zzUnpackRowMap() {
153 int [] result = new int[293];
155 offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);
159 private static int zzUnpackRowMap(String packed, int offset, int [] result) {
160 int i = 0; /* index in packed string */
161 int j = offset; /* index in unpacked array */
162 int l = packed.length();
164 int high = packed.charAt(i++) << 16;
165 result[j++] = high | packed.charAt(i++);
171 * The transition table of the DFA
173 private static final int [] ZZ_TRANS = zzUnpackTrans();
175 private static final String ZZ_TRANS_PACKED_0 =
176 "\1\5\1\6\1\7\1\6\1\10\1\11\1\12\1\13"+
177 "\1\14\1\15\1\16\1\17\1\20\1\21\1\22\1\23"+
178 "\1\11\1\24\1\6\1\25\1\26\1\27\1\11\1\30"+
179 "\1\31\1\32\1\6\1\33\1\34\1\35\1\36\1\37"+
180 "\1\40\1\41\1\6\1\42\1\43\1\6\1\44\1\45"+
181 "\1\6\1\46\1\47\6\6\1\50\1\51\1\52\1\53"+
182 "\1\54\1\55\1\56\1\57\1\60\1\61\2\62\1\63"+
183 "\15\64\1\65\11\64\1\30\1\66\40\64\1\67\2\64"+
184 "\1\70\16\64\1\71\11\64\1\30\1\72\40\64\1\73"+
185 "\1\64\1\74\1\75\1\64\77\0\4\6\2\0\1\76"+
186 "\12\0\1\6\6\0\30\6\11\0\1\6\5\0\1\7"+
187 "\4\0\1\77\12\0\1\100\16\0\1\100\34\0\4\101"+
188 "\1\0\22\101\1\0\1\102\45\101\5\0\2\11\1\0"+
189 "\1\11\6\0\3\11\1\0\1\11\1\0\2\11\1\0"+
190 "\1\11\34\0\2\11\1\0\1\11\12\0\2\11\1\0"+
191 "\1\11\4\0\1\103\1\0\3\11\1\0\1\11\1\103"+
192 "\2\11\1\0\1\11\34\0\2\11\1\0\1\11\3\0"+
193 "\1\103\10\0\1\104\5\0\1\105\6\0\1\105\47\0"+
194 "\1\105\2\0\1\106\1\0\1\106\1\0\2\11\1\0"+
195 "\1\11\6\0\3\11\1\106\1\11\1\0\2\11\1\0"+
196 "\1\11\30\106\4\0\2\11\1\0\1\11\1\0\1\106"+
197 "\10\0\2\107\1\110\1\107\1\0\1\111\4\0\3\107"+
198 "\1\0\1\107\1\0\2\107\1\0\1\107\34\0\2\107"+
199 "\1\0\1\107\6\0\1\112\1\0\1\112\16\0\1\112"+
200 "\6\0\30\112\11\0\1\112\77\0\1\62\2\0\1\113"+
201 "\1\0\1\113\5\0\1\114\2\0\1\115\5\0\1\113"+
202 "\6\0\30\113\11\0\1\113\10\0\2\11\1\0\1\11"+
203 "\3\0\1\116\2\0\1\11\1\117\1\11\1\0\1\120"+
204 "\1\0\2\11\1\0\1\11\34\0\2\11\1\0\1\117"+
205 "\12\0\2\11\1\0\1\11\6\0\2\11\1\121\1\0"+
206 "\1\11\1\0\2\11\1\0\1\11\34\0\2\11\1\0"+
207 "\1\11\31\0\1\26\56\0\2\11\1\0\1\11\6\0"+
208 "\3\11\1\0\1\11\1\0\1\122\1\123\1\0\1\11"+
209 "\34\0\2\11\1\0\1\11\12\0\2\11\1\0\1\11"+
210 "\6\0\3\11\1\0\1\11\1\124\2\11\1\0\1\11"+
211 "\21\0\1\125\12\0\2\11\1\0\1\11\6\0\4\6"+
212 "\2\0\1\76\12\0\1\6\6\0\1\6\1\126\26\6"+
213 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
214 "\6\0\14\6\1\127\13\6\11\0\1\6\4\0\4\6"+
215 "\2\0\1\76\12\0\1\6\6\0\12\6\1\130\2\6"+
216 "\1\131\12\6\11\0\1\6\4\0\4\6\2\0\1\76"+
217 "\12\0\1\6\6\0\10\6\1\132\17\6\11\0\1\6"+
218 "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\1\133"+
219 "\10\6\1\134\7\6\1\135\6\6\11\0\1\6\4\0"+
220 "\4\6\2\0\1\76\12\0\1\6\6\0\2\6\1\136"+
221 "\4\6\1\137\16\6\1\140\1\6\11\0\1\6\4\0"+
222 "\4\6\2\0\1\76\12\0\1\6\6\0\5\6\1\141"+
223 "\22\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
224 "\1\6\6\0\1\142\3\6\1\143\4\6\1\144\5\6"+
225 "\1\145\4\6\1\146\3\6\11\0\1\6\4\0\4\6"+
226 "\2\0\1\76\12\0\1\6\6\0\10\6\1\147\17\6"+
227 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
228 "\6\0\5\6\1\150\1\6\1\151\20\6\11\0\1\6"+
229 "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\26\6"+
230 "\1\152\1\6\11\0\1\6\4\0\4\6\2\0\1\76"+
231 "\12\0\1\6\6\0\1\6\1\153\2\6\1\154\23\6"+
232 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
233 "\6\0\1\6\1\155\1\6\1\156\4\6\1\157\17\6"+
234 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
235 "\6\0\3\6\1\160\14\6\1\161\7\6\11\0\1\6"+
236 "\10\0\2\11\1\0\1\11\6\0\2\11\1\162\1\0"+
237 "\1\11\1\0\2\11\1\0\1\11\34\0\2\11\1\0"+
238 "\1\11\12\0\2\11\1\0\1\11\6\0\3\11\1\0"+
239 "\1\163\1\0\2\11\1\0\1\11\34\0\1\11\1\164"+
240 "\1\0\1\11\76\0\1\165\4\0\15\64\1\0\11\64"+
241 "\2\0\40\64\1\0\2\64\1\0\1\64\74\0\1\70"+
242 "\1\0\4\166\1\167\4\166\1\170\3\166\1\0\12\166"+
243 "\1\167\2\166\1\171\3\166\1\172\2\166\1\75\2\166"+
244 "\1\173\23\166\1\167\1\166\2\0\1\166\74\0\1\75"+
245 "\12\0\1\174\155\0\1\175\5\0\1\6\1\0\1\6"+
246 "\10\0\1\176\5\0\1\6\6\0\30\6\11\0\1\6"+
247 "\5\0\1\177\75\0\1\200\20\0\1\201\56\0\1\202"+
248 "\71\0\27\101\1\0\46\101\15\0\1\103\6\0\1\103"+
249 "\47\0\1\103\16\0\1\105\6\0\1\105\47\0\1\105"+
250 "\2\0\4\106\15\0\1\106\6\0\30\106\11\0\1\106"+
251 "\10\0\2\107\1\0\1\107\2\0\1\203\3\0\3\107"+
252 "\1\0\1\107\1\0\2\107\1\0\1\107\34\0\2\107"+
253 "\1\0\1\107\20\0\1\203\74\0\1\111\1\204\63\0"+
254 "\4\112\15\0\1\112\6\0\30\112\11\0\1\112\4\0"+
255 "\4\113\2\0\1\205\6\0\1\206\3\0\1\113\6\0"+
256 "\30\113\11\0\1\113\15\0\1\207\64\0\1\210\1\0"+
257 "\1\210\16\0\1\210\6\0\30\210\11\0\1\210\24\0"+
258 "\1\211\61\0\2\11\1\0\1\11\6\0\2\11\1\212"+
259 "\1\0\1\11\1\0\2\11\1\0\1\11\34\0\2\11"+
260 "\1\0\1\11\5\0\15\122\1\0\56\122\1\0\1\122"+
261 "\5\213\2\123\1\213\1\123\6\213\3\123\1\213\1\123"+
262 "\1\213\1\123\1\214\1\213\1\123\34\213\2\123\1\213"+
263 "\1\123\5\213\24\0\1\124\25\0\1\125\57\0\1\215"+
264 "\42\0\4\6\2\0\1\76\12\0\1\6\6\0\2\6"+
265 "\1\216\25\6\11\0\1\6\4\0\4\6\2\0\1\76"+
266 "\12\0\1\6\6\0\4\6\1\217\23\6\11\0\1\6"+
267 "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\12\6"+
268 "\1\220\15\6\11\0\1\6\4\0\4\6\2\0\1\76"+
269 "\12\0\1\6\6\0\6\6\1\221\21\6\11\0\1\6"+
270 "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\1\222"+
271 "\11\6\1\223\3\6\1\224\11\6\11\0\1\6\4\0"+
272 "\4\6\2\0\1\76\12\0\1\6\6\0\22\6\1\225"+
273 "\5\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
274 "\1\6\6\0\3\6\1\226\24\6\11\0\1\6\4\0"+
275 "\4\6\2\0\1\76\12\0\1\6\6\0\10\6\1\227"+
276 "\17\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
277 "\1\6\6\0\22\6\1\230\5\6\11\0\1\6\4\0"+
278 "\4\6\2\0\1\76\12\0\1\6\6\0\20\6\1\231"+
279 "\7\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
280 "\1\6\6\0\1\232\27\6\11\0\1\6\4\0\4\6"+
281 "\2\0\1\76\12\0\1\6\6\0\12\6\1\233\15\6"+
282 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
283 "\6\0\1\234\27\6\11\0\1\6\4\0\4\6\2\0"+
284 "\1\76\12\0\1\6\6\0\6\6\1\235\21\6\11\0"+
285 "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
286 "\4\6\1\236\23\6\11\0\1\6\4\0\4\6\2\0"+
287 "\1\76\12\0\1\6\6\0\6\6\1\237\21\6\11\0"+
288 "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
289 "\10\6\1\240\17\6\11\0\1\6\4\0\4\6\2\0"+
290 "\1\76\12\0\1\6\6\0\11\6\1\241\16\6\11\0"+
291 "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
292 "\3\6\1\242\24\6\11\0\1\6\4\0\4\6\2\0"+
293 "\1\76\12\0\1\6\6\0\6\6\1\243\21\6\11\0"+
294 "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
295 "\2\6\1\244\25\6\11\0\1\6\4\0\4\6\2\0"+
296 "\1\76\12\0\1\6\6\0\6\6\1\245\13\6\1\246"+
297 "\5\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
298 "\1\6\6\0\1\6\1\247\26\6\11\0\1\6\74\0"+
299 "\1\250\6\0\2\251\16\0\1\251\6\0\1\251\2\0"+
300 "\1\251\4\0\1\251\4\0\2\251\1\0\1\251\115\0"+
301 "\1\252\6\0\1\177\17\0\1\100\16\0\1\100\36\0"+
302 "\1\200\74\0\1\113\1\0\1\113\10\0\1\115\5\0"+
303 "\1\113\6\0\30\113\11\0\1\113\15\0\1\207\1\253"+
304 "\63\0\4\210\11\0\1\206\3\0\1\210\6\0\30\210"+
305 "\11\0\1\210\3\0\26\213\1\254\54\213\2\123\1\213"+
306 "\1\123\6\213\3\123\1\213\1\123\1\213\1\255\1\214"+
307 "\1\213\1\123\34\213\2\123\1\213\1\123\5\213\37\0"+
308 "\1\256\37\0\4\6\2\0\1\76\12\0\1\6\6\0"+
309 "\3\6\1\257\24\6\11\0\1\6\4\0\4\6\2\0"+
310 "\1\76\12\0\1\6\6\0\10\6\1\260\17\6\11\0"+
311 "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
312 "\6\6\1\261\21\6\11\0\1\6\4\0\4\6\2\0"+
313 "\1\76\12\0\1\6\6\0\5\6\1\262\22\6\11\0"+
314 "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
315 "\6\6\1\263\21\6\11\0\1\6\4\0\4\6\2\0"+
316 "\1\76\12\0\1\6\6\0\4\6\1\264\23\6\11\0"+
317 "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
318 "\1\6\1\265\26\6\11\0\1\6\4\0\4\6\2\0"+
319 "\1\76\12\0\1\6\6\0\11\6\1\266\16\6\11\0"+
320 "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
321 "\11\6\1\267\16\6\11\0\1\6\4\0\4\6\2\0"+
322 "\1\76\12\0\1\6\6\0\10\6\1\270\17\6\11\0"+
323 "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
324 "\5\6\1\271\22\6\11\0\1\6\4\0\4\6\2\0"+
325 "\1\76\12\0\1\6\6\0\10\6\1\272\17\6\11\0"+
326 "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
327 "\10\6\1\273\17\6\11\0\1\6\4\0\4\6\2\0"+
328 "\1\76\12\0\1\6\6\0\1\6\1\274\26\6\11\0"+
329 "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
330 "\10\6\1\275\17\6\11\0\1\6\4\0\4\6\2\0"+
331 "\1\76\12\0\1\6\6\0\10\6\1\276\17\6\11\0"+
332 "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
333 "\7\6\1\277\20\6\11\0\1\6\4\0\4\6\2\0"+
334 "\1\76\12\0\1\6\6\0\2\6\1\300\6\6\1\301"+
335 "\16\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
336 "\1\6\6\0\12\6\1\302\15\6\11\0\1\6\4\0"+
337 "\4\6\2\0\1\76\12\0\1\6\6\0\12\6\1\303"+
338 "\15\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
339 "\1\6\6\0\3\6\1\304\24\6\11\0\1\6\4\0"+
340 "\4\6\2\0\1\76\12\0\1\6\6\0\5\6\1\305"+
341 "\22\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
342 "\1\6\6\0\16\6\1\306\11\6\11\0\1\6\4\0"+
343 "\4\6\2\0\1\76\12\0\1\6\6\0\22\6\1\307"+
344 "\5\6\11\0\1\6\5\0\2\310\16\0\1\310\6\0"+
345 "\1\310\2\0\1\310\4\0\1\310\4\0\2\310\1\0"+
346 "\1\310\42\0\1\206\57\0\25\213\1\311\1\254\47\213"+
347 "\47\0\1\312\27\0\4\6\2\0\1\76\12\0\1\6"+
348 "\6\0\4\6\1\313\23\6\11\0\1\6\4\0\4\6"+
349 "\2\0\1\76\12\0\1\6\6\0\2\6\1\314\25\6"+
350 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
351 "\6\0\17\6\1\315\10\6\11\0\1\6\4\0\4\6"+
352 "\2\0\1\76\12\0\1\6\6\0\3\6\1\316\24\6"+
353 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
354 "\6\0\14\6\1\317\13\6\11\0\1\6\4\0\4\6"+
355 "\2\0\1\76\12\0\1\6\6\0\2\6\1\320\25\6"+
356 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
357 "\6\0\12\6\1\321\15\6\11\0\1\6\4\0\4\6"+
358 "\2\0\1\76\12\0\1\6\6\0\11\6\1\322\16\6"+
359 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
360 "\6\0\16\6\1\323\11\6\11\0\1\6\4\0\4\6"+
361 "\2\0\1\76\12\0\1\6\6\0\2\6\1\324\25\6"+
362 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
363 "\6\0\11\6\1\325\16\6\11\0\1\6\4\0\4\6"+
364 "\2\0\1\76\12\0\1\6\6\0\16\6\1\326\11\6"+
365 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
366 "\6\0\10\6\1\327\17\6\11\0\1\6\4\0\4\6"+
367 "\2\0\1\76\12\0\1\6\6\0\6\6\1\330\21\6"+
368 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
369 "\6\0\12\6\1\331\15\6\11\0\1\6\4\0\4\6"+
370 "\2\0\1\76\12\0\1\6\6\0\25\6\1\332\2\6"+
371 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
372 "\6\0\7\6\1\333\20\6\11\0\1\6\4\0\4\6"+
373 "\2\0\1\76\12\0\1\6\6\0\5\6\1\334\22\6"+
374 "\11\0\1\6\5\0\2\335\16\0\1\335\6\0\1\335"+
375 "\2\0\1\335\4\0\1\335\4\0\2\335\1\0\1\335"+
376 "\64\0\1\336\36\0\4\6\2\0\1\76\12\0\1\6"+
377 "\6\0\4\6\1\337\23\6\11\0\1\6\4\0\4\6"+
378 "\2\0\1\76\12\0\1\6\6\0\3\6\1\340\24\6"+
379 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
380 "\6\0\2\6\1\341\1\6\1\342\23\6\11\0\1\6"+
381 "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\11\6"+
382 "\1\343\16\6\11\0\1\6\4\0\4\6\2\0\1\76"+
383 "\12\0\1\6\6\0\20\6\1\344\7\6\11\0\1\6"+
384 "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\6\6"+
385 "\1\345\21\6\11\0\1\6\4\0\4\6\2\0\1\76"+
386 "\12\0\1\6\6\0\1\346\27\6\11\0\1\6\4\0"+
387 "\4\6\2\0\1\76\12\0\1\6\6\0\23\6\1\347"+
388 "\4\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
389 "\1\6\6\0\6\6\1\350\21\6\11\0\1\6\4\0"+
390 "\4\6\2\0\1\76\12\0\1\6\6\0\16\6\1\351"+
391 "\11\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
392 "\1\6\6\0\20\6\1\352\7\6\11\0\1\6\4\0"+
393 "\4\6\2\0\1\76\12\0\1\6\6\0\6\6\1\353"+
394 "\21\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
395 "\1\6\6\0\2\6\1\354\25\6\11\0\1\6\4\0"+
396 "\4\6\2\0\1\76\12\0\1\6\6\0\5\6\1\355"+
397 "\22\6\11\0\1\6\4\0\4\6\2\0\1\76\12\0"+
398 "\1\6\6\0\11\6\1\356\16\6\11\0\1\6\5\0"+
399 "\2\357\16\0\1\357\6\0\1\357\2\0\1\357\4\0"+
400 "\1\357\4\0\2\357\1\0\1\357\25\0\4\6\2\0"+
401 "\1\76\12\0\1\6\6\0\16\6\1\360\11\6\11\0"+
402 "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
403 "\16\6\1\361\11\6\11\0\1\6\4\0\4\6\2\0"+
404 "\1\76\12\0\1\6\6\0\10\6\1\362\17\6\11\0"+
405 "\1\6\4\0\4\6\2\0\1\76\12\0\1\6\6\0"+
406 "\27\6\1\363\11\0\1\6\4\0\4\6\2\0\1\76"+
407 "\12\0\1\6\6\0\1\6\1\364\26\6\11\0\1\6"+
408 "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\10\6"+
409 "\1\365\17\6\11\0\1\6\4\0\4\6\2\0\1\76"+
410 "\12\0\1\6\6\0\12\6\1\366\15\6\11\0\1\6"+
411 "\4\0\4\6\2\0\1\76\12\0\1\6\1\0\1\367"+
412 "\4\0\30\6\11\0\1\6\4\0\4\6\2\0\1\76"+
413 "\12\0\1\6\6\0\3\6\1\370\24\6\11\0\1\6"+
414 "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\11\6"+
415 "\1\371\16\6\11\0\1\6\4\0\4\6\2\0\1\76"+
416 "\12\0\1\6\6\0\23\6\1\372\4\6\11\0\1\6"+
417 "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\6\6"+
418 "\1\373\21\6\11\0\1\6\4\0\4\6\2\0\1\76"+
419 "\12\0\1\6\6\0\10\6\1\374\17\6\11\0\1\6"+
420 "\4\0\4\6\2\0\1\76\12\0\1\6\6\0\3\6"+
421 "\1\375\24\6\11\0\1\6\4\0\4\6\2\0\1\76"+
422 "\12\0\1\6\6\0\2\6\1\376\25\6\11\0\1\6"+
423 "\27\0\1\367\4\0\1\377\17\0\1\u0100\25\0\4\6"+
424 "\2\0\1\76\12\0\1\6\6\0\5\6\1\u0101\22\6"+
425 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
426 "\6\0\23\6\1\u0102\4\6\11\0\1\6\4\0\4\6"+
427 "\2\0\1\76\12\0\1\6\1\0\1\u0103\4\0\30\6"+
428 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
429 "\1\0\1\u0104\4\0\30\6\11\0\1\6\4\0\4\6"+
430 "\2\0\1\76\12\0\1\6\6\0\25\6\1\u0105\2\6"+
431 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
432 "\6\0\21\6\1\u0106\6\6\11\0\1\6\41\0\1\u0107"+
433 "\75\0\1\u0108\40\0\4\6\2\0\1\76\12\0\1\6"+
434 "\6\0\11\6\1\u0109\16\6\11\0\1\6\27\0\1\u0103"+
435 "\6\0\1\u010a\66\0\1\u0104\6\0\1\u010b\43\0\4\6"+
436 "\2\0\1\76\12\0\1\6\6\0\3\6\1\u010c\24\6"+
437 "\11\0\1\6\4\0\4\6\2\0\1\76\12\0\1\6"+
438 "\6\0\3\6\1\u010d\24\6\11\0\1\6\36\0\1\u010e"+
439 "\105\0\1\u010f\33\0\4\6\2\0\1\76\12\0\1\6"+
440 "\6\0\6\6\1\u0110\21\6\11\0\1\6\44\0\1\u0111"+
441 "\101\0\1\u0112\31\0\4\6\2\0\1\76\12\0\1\6"+
442 "\6\0\6\6\1\u0113\21\6\11\0\1\6\46\0\1\u0114"+
443 "\71\0\1\u0115\73\0\1\u0116\75\0\1\u0117\41\0\4\6"+
444 "\2\0\1\76\12\0\1\6\6\0\5\6\1\u0118\22\6"+
445 "\11\0\1\6\42\0\1\u0119\74\0\1\u011a\73\0\1\u011b"+
446 "\102\0\1\u011c\35\0\4\6\2\0\1\76\12\0\1\6"+
447 "\6\0\1\6\1\u011d\26\6\11\0\1\6\45\0\1\u011e"+
448 "\72\0\1\u011f\37\0\4\6\2\0\1\76\12\0\1\6"+
449 "\6\0\11\6\1\u0120\16\6\11\0\1\6\52\0\1\u0121"+
450 "\64\0\1\u0122\76\0\1\u0123\70\0\1\u0124\105\0\1\u0125"+
453 private static int [] zzUnpackTrans() {
454 int [] result = new int[13330];
456 offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);
460 private static int zzUnpackTrans(String packed, int offset, int [] result) {
461 int i = 0; /* index in packed string */
462 int j = offset; /* index in unpacked array */
463 int l = packed.length();
465 int count = packed.charAt(i++);
466 int value = packed.charAt(i++);
468 do result[j++] = value; while (--count > 0);
475 private static final int ZZ_UNKNOWN_ERROR = 0;
476 private static final int ZZ_NO_MATCH = 1;
477 private static final int ZZ_PUSHBACK_2BIG = 2;
479 /* error messages for the codes above */
480 private static final String ZZ_ERROR_MSG[] = {
481 "Unknown internal scanner error",
482 "Error: could not match input",
483 "Error: pushback value was too large"
487 * ZZ_ATTRIBUTE[aState] contains the attributes of state <code>aState</code>
489 private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();
491 private static final String ZZ_ATTRIBUTE_PACKED_0 =
492 "\3\0\1\10\1\11\10\1\2\11\10\1\1\11\17\1"+
493 "\4\11\2\1\1\11\3\1\2\11\2\1\1\0\2\11"+
494 "\4\1\1\11\5\0\1\1\1\11\2\1\3\0\1\1"+
495 "\4\0\5\1\2\0\37\1\1\0\5\11\1\1\1\11"+
496 "\2\0\2\1\1\0\3\11\1\0\1\11\2\0\1\11"+
497 "\1\1\1\0\1\1\1\0\32\1\1\11\1\0\1\11"+
498 "\2\0\1\1\1\0\31\1\1\0\1\11\1\0\22\1"+
499 "\1\0\1\11\20\1\1\11\7\1\1\0\7\1\2\0"+
500 "\2\1\2\0\2\1\2\0\1\1\2\0\2\1\2\0"+
501 "\1\1\2\0\1\1\4\0\1\1\1\11\2\0\1\11"+
502 "\1\1\2\0\1\1\2\0\1\11\1\0\1\11";
504 private static int [] zzUnpackAttribute() {
505 int [] result = new int[293];
507 offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);
511 private static int zzUnpackAttribute(String packed, int offset, int [] result) {
512 int i = 0; /* index in packed string */
513 int j = offset; /* index in unpacked array */
514 int l = packed.length();
516 int count = packed.charAt(i++);
517 int value = packed.charAt(i++);
518 do result[j++] = value; while (--count > 0);
523 /** the input device */
524 private java.io.Reader zzReader;
526 /** the current state of the DFA */
529 /** the current lexical state */
530 private int zzLexicalState = YYINITIAL;
532 /** this buffer contains the current text to be matched and is
533 the source of the yytext() string */
534 private char zzBuffer[] = new char[ZZ_BUFFERSIZE];
536 /** the textposition at the last accepting state */
537 private int zzMarkedPos;
539 /** the current text position in the buffer */
540 private int zzCurrentPos;
542 /** startRead marks the beginning of the yytext() string in the buffer */
543 private int zzStartRead;
545 /** endRead marks the last character in the buffer, that has been read
547 private int zzEndRead;
549 /** number of newlines encountered up to the start of the matched text */
552 /** the number of characters up to the start of the matched text */
556 * the number of characters from the last newline up to the start of the
559 private int yycolumn;
562 * zzAtBOL == true <=> the scanner is currently at the beginning of a line
564 private boolean zzAtBOL = true;
566 /** zzAtEOF == true <=> the scanner is at the EOF */
567 private boolean zzAtEOF;
569 /** denotes if the user-EOF-code has already been executed */
570 private boolean zzEOFDone;
573 * The number of occupied positions in zzBuffer beyond zzEndRead.
574 * When a lead/high surrogate has been read from the input stream
575 * into the final zzBuffer position, this will have a value of 1;
576 * otherwise, it will have a value of 0.
578 private int zzFinalHighSurrogate = 0;
581 public SCLParserOptions options = SCLParserOptions.DEFAULT;
583 TIntArrayList parenCountStack = new TIntArrayList(2);
585 TIntArrayList stateStack = new TIntArrayList(2);
587 StringBuffer string = new StringBuffer();
589 private Token sym(int id) {
590 return new Token(id, yychar, yychar+yylength(), yytext());
592 private Token sym(int id, String text) {
593 return new Token(id, yychar, yychar+yylength(), text);
598 * Creates a new scanner
600 * @param in the java.io.Reader to read input from.
602 public SCLLexer(java.io.Reader in) {
608 * Unpacks the compressed character translation table.
610 * @param packed the packed character translation table
611 * @return the unpacked character translation table
613 private static char [] zzUnpackCMap(String packed) {
614 char [] map = new char[0x110000];
615 int i = 0; /* index in packed string */
616 int j = 0; /* index in unpacked array */
618 int count = packed.charAt(i++);
619 char value = packed.charAt(i++);
620 do map[j++] = value; while (--count > 0);
627 * Refills the input buffer.
629 * @return <code>false</code>, iff there was new input.
631 * @exception java.io.IOException if any I/O-Error occurs
633 private boolean zzRefill() throws java.io.IOException {
635 /* first: make room (if you can) */
636 if (zzStartRead > 0) {
637 zzEndRead += zzFinalHighSurrogate;
638 zzFinalHighSurrogate = 0;
639 System.arraycopy(zzBuffer, zzStartRead,
641 zzEndRead-zzStartRead);
643 /* translate stored positions */
644 zzEndRead-= zzStartRead;
645 zzCurrentPos-= zzStartRead;
646 zzMarkedPos-= zzStartRead;
650 /* is the buffer big enough? */
651 if (zzCurrentPos >= zzBuffer.length - zzFinalHighSurrogate) {
652 /* if not: blow it up */
653 char newBuffer[] = new char[zzBuffer.length*2];
654 System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length);
655 zzBuffer = newBuffer;
656 zzEndRead += zzFinalHighSurrogate;
657 zzFinalHighSurrogate = 0;
660 /* fill the buffer with new input */
661 int requested = zzBuffer.length - zzEndRead;
662 int numRead = zzReader.read(zzBuffer, zzEndRead, requested);
664 /* not supposed to occur according to specification of java.io.Reader */
666 throw new java.io.IOException("Reader returned 0 characters. See JFlex examples for workaround.");
669 zzEndRead += numRead;
670 /* If numRead == requested, we might have requested to few chars to
671 encode a full Unicode character. We assume that a Reader would
672 otherwise never return half characters. */
673 if (numRead == requested) {
674 if (Character.isHighSurrogate(zzBuffer[zzEndRead - 1])) {
676 zzFinalHighSurrogate = 1;
679 /* potentially more input available */
683 /* numRead < 0 ==> end of stream */
689 * Closes the input stream.
691 public final void yyclose() throws java.io.IOException {
692 zzAtEOF = true; /* indicate end of file */
693 zzEndRead = zzStartRead; /* invalidate buffer */
695 if (zzReader != null)
701 * Resets the scanner to read from a new input stream.
702 * Does not close the old reader.
704 * All internal variables are reset, the old input stream
705 * <b>cannot</b> be reused (internal buffer is discarded and lost).
706 * Lexical state is set to <tt>ZZ_INITIAL</tt>.
708 * Internal scan buffer is resized down to its initial length, if it has grown.
710 * @param reader the new input stream
712 public final void yyreset(java.io.Reader reader) {
717 zzEndRead = zzStartRead = 0;
718 zzCurrentPos = zzMarkedPos = 0;
719 zzFinalHighSurrogate = 0;
720 yyline = yychar = yycolumn = 0;
721 zzLexicalState = YYINITIAL;
722 if (zzBuffer.length > ZZ_BUFFERSIZE)
723 zzBuffer = new char[ZZ_BUFFERSIZE];
728 * Returns the current lexical state.
730 public final int yystate() {
731 return zzLexicalState;
736 * Enters a new lexical state
738 * @param newState the new lexical state
740 public final void yybegin(int newState) {
741 zzLexicalState = newState;
746 * Returns the text matched by the current regular expression.
748 public final String yytext() {
749 return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );
754 * Returns the character at position <tt>pos</tt> from the
757 * It is equivalent to yytext().charAt(pos), but faster
759 * @param pos the position of the character to fetch.
760 * A value from 0 to yylength()-1.
762 * @return the character at position pos
764 public final char yycharat(int pos) {
765 return zzBuffer[zzStartRead+pos];
770 * Returns the length of the matched text region.
772 public final int yylength() {
773 return zzMarkedPos-zzStartRead;
778 * Reports an error that occured while scanning.
780 * In a wellformed scanner (no or only correct usage of
781 * yypushback(int) and a match-all fallback rule) this method
782 * will only be called with things that "Can't Possibly Happen".
783 * If this method is called, something is seriously wrong
784 * (e.g. a JFlex bug producing a faulty scanner etc.).
786 * Usual syntax/scanner level error handling should be done
787 * in error fallback rules.
789 * @param errorCode the code of the errormessage to display
791 private void zzScanError(int errorCode) throws RuntimeException {
794 message = ZZ_ERROR_MSG[errorCode];
796 catch (ArrayIndexOutOfBoundsException e) {
797 message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];
800 throw new RuntimeException(message);
805 * Pushes the specified amount of characters back into the input stream.
807 * They will be read again by then next call of the scanning method
809 * @param number the number of characters to be read again.
810 * This number must not be greater than yylength()!
812 public void yypushback(int number) throws RuntimeException {
813 if ( number > yylength() )
814 zzScanError(ZZ_PUSHBACK_2BIG);
816 zzMarkedPos -= number;
821 * Resumes scanning until the next regular expression is matched,
822 * the end of input is encountered or an I/O-Error occurs.
824 * @return the next token
825 * @exception java.io.IOException if any I/O-Error occurs
827 public Token nextToken() throws java.io.IOException, SCLSyntaxErrorException, RuntimeException {
834 int zzEndReadL = zzEndRead;
835 char [] zzBufferL = zzBuffer;
836 char [] zzCMapL = ZZ_CMAP;
838 int [] zzTransL = ZZ_TRANS;
839 int [] zzRowMapL = ZZ_ROWMAP;
840 int [] zzAttrL = ZZ_ATTRIBUTE;
843 zzMarkedPosL = zzMarkedPos;
845 yychar+= zzMarkedPosL-zzStartRead;
849 zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;
851 zzState = ZZ_LEXSTATE[zzLexicalState];
853 // set up zzAction for empty match case:
854 int zzAttributes = zzAttrL[zzState];
855 if ( (zzAttributes & 1) == 1 ) {
863 if (zzCurrentPosL < zzEndReadL) {
864 zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL, zzEndReadL);
865 zzCurrentPosL += Character.charCount(zzInput);
872 // store back cached positions
873 zzCurrentPos = zzCurrentPosL;
874 zzMarkedPos = zzMarkedPosL;
875 boolean eof = zzRefill();
876 // get translated positions and possibly new buffer
877 zzCurrentPosL = zzCurrentPos;
878 zzMarkedPosL = zzMarkedPos;
879 zzBufferL = zzBuffer;
880 zzEndReadL = zzEndRead;
886 zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL, zzEndReadL);
887 zzCurrentPosL += Character.charCount(zzInput);
890 int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ];
891 if (zzNext == -1) break zzForAction;
894 zzAttributes = zzAttrL[zzState];
895 if ( (zzAttributes & 1) == 1 ) {
897 zzMarkedPosL = zzCurrentPosL;
898 if ( (zzAttributes & 8) == 8 ) break zzForAction;
904 // store back cached position
905 zzMarkedPos = zzMarkedPosL;
907 if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
909 switch (zzLexicalState) {
911 throw new SCLSyntaxErrorException(Locations.location(stringStart, yychar), "Unclosed string literal.");
915 throw new SCLSyntaxErrorException(Locations.location(stringStart, yychar), "Unclosed string literal.");
919 { return sym(SCLTerminals.EOF);
924 switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
926 { throw new SCLSyntaxErrorException(Locations.location(yychar, yychar+1), "Illegal character '" + yytext() + "'.");
930 { return sym(SCLTerminals.ID);
934 { return sym(SCLTerminals.INTEGER);
938 { return sym(SCLTerminals.SYMBOL, yytext().trim());
942 { return sym(SCLTerminals.ATTACHED_HASH, "#");
946 { return sym(SCLTerminals.ATTACHED_DOT, ".");
950 { return sym(SCLTerminals.AT);
954 { ++parenCount; return sym(SCLTerminals.LPAREN);
958 { return sym(SCLTerminals.COMMA);
963 if(parenCount == 0 && !parenCountStack.isEmpty()) {
964 parenCount = parenCountStack.removeAt(parenCountStack.size()-1);
967 yybegin(stateStack.removeAt(stateStack.size()-1));
968 return sym(SCLTerminals.CONTINUE_STRING);
971 return sym(SCLTerminals.RPAREN);
975 { return new Token(SCLTerminals.EOL, yychar, yychar+yylength(), "");
979 { return sym(SCLTerminals.LESS, "<");
983 { return sym(SCLTerminals.GREATER, ">");
987 { return sym(SCLTerminals.MINUS, "-");
995 { throw new SCLSyntaxErrorException(Locations.location(yychar, yychar+1), "Character does not conform to UTF-8 encoding.");
999 { return sym(SCLTerminals.LAMBDA);
1003 { return sym(SCLTerminals.LBRACE);
1007 { return sym(SCLTerminals.RBRACE);
1011 { return sym(SCLTerminals.LBRACKET);
1015 { return sym(SCLTerminals.RBRACKET);
1019 { return sym(SCLTerminals.EQUALS);
1023 { return sym(SCLTerminals.COLON);
1027 { return sym(SCLTerminals.SEMICOLON);
1031 { return sym(SCLTerminals.BAR);
1035 { string.setLength(0); stringStart=yychar; yybegin(STRING); return sym(SCLTerminals.BEGIN_STRING);
1039 { return sym(SCLTerminals.BLANK);
1043 { throw new SCLSyntaxErrorException(Locations.location(yychar, yychar+1), "Tabulator is not allowed except inside string literals.");
1047 { string.append( yytext() );
1051 { throw new SCLSyntaxErrorException(Locations.location(stringStart, yychar), "Unclosed string literal.");
1055 { yybegin(YYINITIAL);
1056 return new Token(SCLTerminals.END_STRING, stringStart, yychar+1, string.toString());
1060 { string.append('\n');
1064 { return sym(SCLTerminals.DOTDOT, ".");
1068 { return sym(SCLTerminals.SEPARATED_DOT, ".");
1072 { return sym(SCLTerminals.ANNOTATION_ID);
1076 { return sym(SCLTerminals.BINDS);
1080 { return sym(SCLTerminals.ARROW);
1084 { return sym(SCLTerminals.COMMENT);
1088 { return sym(SCLTerminals.AS);
1092 { return sym(SCLTerminals.IF);
1096 { return sym(SCLTerminals.IN);
1100 { return sym(options.supportEq ? SCLTerminals.EQ : SCLTerminals.ID);
1104 { return sym(SCLTerminals.BY);
1108 { return sym(SCLTerminals.DO);
1112 { return sym(SCLTerminals.IMPLIES);
1116 { return sym(SCLTerminals.FOLLOWS);
1120 { return sym(SCLTerminals.HASTYPE);
1124 { throw new SCLSyntaxErrorException(Locations.location(stringStart, yychar), "Illegal string escape character.");
1128 { string.append(yytext().substring(1));
1132 { parenCountStack.add(parenCount);
1134 stateStack.add(STRING);
1136 return new Token(SCLTerminals.SUSPEND_STRING, stringStart, yychar+1, string.toString());
1140 { string.append('\r');
1144 { string.append('\t');
1148 { parenCountStack.add(parenCount);
1150 stateStack.add(LONG_STRING);
1152 return new Token(SCLTerminals.SUSPEND_STRING, stringStart, yychar+1, string.toString());
1156 { return sym(SCLTerminals.FLOAT);
1160 { return sym(SCLTerminals.CHAR);
1164 { String text = yytext();
1165 return sym(SCLTerminals.ID, text.substring(1, text.length()-1));
1169 { String text = yytext();
1170 return sym(SCLTerminals.SYMBOL, text.substring(1, text.length()-1));
1174 { return sym(SCLTerminals.QUERY_OP);
1178 { return sym(SCLTerminals.LET);
1182 { return sym(SCLTerminals.MDO);
1186 { string.setLength(0); stringStart=yychar; yybegin(LONG_STRING); return sym(SCLTerminals.BEGIN_STRING);
1190 { yybegin(YYINITIAL);
1191 return new Token(SCLTerminals.END_STRING, stringStart, yychar+3, string.toString());
1195 { return sym(SCLTerminals.RULE);
1199 { return sym(SCLTerminals.THEN);
1203 { return sym(SCLTerminals.TYPE);
1207 { return sym(SCLTerminals.ELSE);
1211 { return sym(SCLTerminals.WITH);
1215 { return sym(SCLTerminals.WHEN);
1219 { return sym(SCLTerminals.DATA);
1223 { return sym(SCLTerminals.INFIX);
1227 { return sym(SCLTerminals.WHERE);
1231 { return sym(SCLTerminals.CLASS);
1235 { return sym(SCLTerminals.MATCH);
1239 { return sym(SCLTerminals.LAMBDA_MATCH);
1243 { return sym(SCLTerminals.FORALL);
1247 { return sym(SCLTerminals.INFIXR);
1251 { return sym(SCLTerminals.INFIXL);
1255 { return sym(SCLTerminals.IMPORT);
1259 { return sym(SCLTerminals.HIDING);
1263 { return sym(SCLTerminals.EFFECT);
1267 { return sym(SCLTerminals.SELECT);
1271 { string.append((char)Integer.parseInt(yytext().substring(2), 16));
1275 { return sym(SCLTerminals.INCLUDE);
1279 { return sym(SCLTerminals.ENFORCE);
1283 { return sym(SCLTerminals.EXTENDS);
1287 { return sym(SCLTerminals.INSTANCE);
1291 { return sym(SCLTerminals.DERIVING);
1295 { return sym(SCLTerminals.IMPORTJAVA);
1299 { return sym(SCLTerminals.CONSTRAINT);
1303 { return sym(SCLTerminals.SELECT_FIRST);
1307 { return sym(SCLTerminals.ABSTRACT_RULE);
1311 { return sym(SCLTerminals.TRANSFORMATION);
1315 { return sym(SCLTerminals.SELECT_DISTINCT);
1319 { return sym(SCLTerminals.MAPPING_RELATION);
1323 zzScanError(ZZ_NO_MATCH);