1 |
|
|
2 |
|
|
3 |
|
package org.json.simple.parser; |
4 |
|
|
5 |
|
import java.io.InputStreamReader; |
6 |
|
|
|
|
| 68.2% |
Uncovered Elements: 100 (314) |
Complexity: 94 |
Complexity Density: 0.38 |
|
7 |
|
class Yylex |
8 |
|
{ |
9 |
|
|
10 |
|
|
11 |
|
public static final int YYEOF = -1; |
12 |
|
|
13 |
|
|
14 |
|
private static final int ZZ_BUFFERSIZE = 16384; |
15 |
|
|
16 |
|
|
17 |
|
public static final int YYINITIAL = 0; |
18 |
|
|
19 |
|
public static final int STRING_BEGIN = 2; |
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
private static final int ZZ_LEXSTATE[] = { 0, 0, 1, 1 }; |
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
private static final String ZZ_CMAP_PACKED = "\11\0\1\7\1\7\2\0\1\7\22\0\1\7\1\0\1\11\10\0" |
32 |
|
+ "\1\6\1\31\1\2\1\4\1\12\12\3\1\32\6\0\4\1\1\5" |
33 |
|
+ "\1\1\24\0\1\27\1\10\1\30\3\0\1\22\1\13\2\1\1\21" |
34 |
|
+ "\1\14\5\0\1\23\1\0\1\15\3\0\1\16\1\24\1\17\1\20" |
35 |
|
+ "\5\0\1\25\1\0\1\26\uff82\0"; |
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
private static final char[] ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED); |
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
private static final int[] ZZ_ACTION = zzUnpackAction(); |
46 |
|
|
47 |
|
private static final String ZZ_ACTION_PACKED_0 = "\2\0\2\1\1\2\1\3\1\4\3\1\1\5\1\6" |
48 |
|
+ "\1\7\1\10\1\11\1\12\1\13\1\14\1\15\5\0" |
49 |
|
+ "\1\14\1\16\1\17\1\20\1\21\1\22\1\23\1\24" |
50 |
|
+ "\1\0\1\25\1\0\1\25\4\0\1\26\1\27\2\0" + "\1\30"; |
51 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
52 |
12 |
private static int[] zzUnpackAction()... |
53 |
|
{ |
54 |
12 |
int[] result = new int[45]; |
55 |
12 |
int offset = 0; |
56 |
12 |
offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); |
57 |
12 |
return result; |
58 |
|
} |
59 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (13) |
Complexity: 3 |
Complexity Density: 0.33 |
|
60 |
12 |
private static int zzUnpackAction(String packed, int offset, int[] result)... |
61 |
|
{ |
62 |
12 |
int i = 0; |
63 |
12 |
int j = offset; |
64 |
12 |
int l = packed.length(); |
65 |
408 |
while (i < l) |
66 |
|
{ |
67 |
396 |
int count = packed.charAt(i++); |
68 |
396 |
int value = packed.charAt(i++); |
69 |
396 |
do |
70 |
540 |
result[j++] = value; |
71 |
540 |
while (--count > 0); |
72 |
|
} |
73 |
12 |
return j; |
74 |
|
} |
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
private static final int[] ZZ_ROWMAP = zzUnpackRowMap(); |
80 |
|
|
81 |
|
private static final String ZZ_ROWMAP_PACKED_0 = "\0\0\0\33\0\66\0\121\0\154\0\207\0\66\0\242" |
82 |
|
+ "\0\275\0\330\0\66\0\66\0\66\0\66\0\66\0\66" |
83 |
|
+ "\0\363\0\u010e\0\66\0\u0129\0\u0144\0\u015f\0\u017a\0\u0195" |
84 |
|
+ "\0\66\0\66\0\66\0\66\0\66\0\66\0\66\0\66" |
85 |
|
+ "\0\u01b0\0\u01cb\0\u01e6\0\u01e6\0\u0201\0\u021c\0\u0237\0\u0252" |
86 |
|
+ "\0\66\0\66\0\u026d\0\u0288\0\66"; |
87 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
88 |
12 |
private static int[] zzUnpackRowMap()... |
89 |
|
{ |
90 |
12 |
int[] result = new int[45]; |
91 |
12 |
int offset = 0; |
92 |
12 |
offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); |
93 |
12 |
return result; |
94 |
|
} |
95 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 2 |
Complexity Density: 0.29 |
|
96 |
12 |
private static int zzUnpackRowMap(String packed, int offset, int[] result)... |
97 |
|
{ |
98 |
12 |
int i = 0; |
99 |
12 |
int j = offset; |
100 |
12 |
int l = packed.length(); |
101 |
552 |
while (i < l) |
102 |
|
{ |
103 |
540 |
int high = packed.codePointAt(i++) << 16; |
104 |
540 |
result[j++] = high | packed.codePointAt(i++); |
105 |
|
} |
106 |
12 |
return j; |
107 |
|
} |
108 |
|
|
109 |
|
|
110 |
|
|
111 |
|
|
112 |
|
private static final int ZZ_TRANS[] = { 2, 2, 3, 4, 2, 2, 2, 5, 2, 6, 2, |
113 |
|
2, 7, 8, 2, 9, 2, 2, 2, 2, 2, 10, 11, 12, 13, 14, 15, 16, 16, 16, 16, |
114 |
|
16, 16, 16, 16, 17, 18, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, |
115 |
|
16, 16, 16, 16, 16, 16, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
116 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
117 |
|
-1, -1, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
118 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4, 19, 20, -1, -1, -1, -1, |
119 |
|
-1, -1, -1, -1, -1, -1, -1, 20, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
120 |
|
-1, -1, -1, -1, -1, -1, -1, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
121 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
122 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 21, -1, -1, -1, -1, -1, -1, |
123 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
124 |
|
-1, 22, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
125 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, 23, -1, -1, -1, -1, -1, -1, -1, |
126 |
|
-1, -1, -1, -1, -1, 16, 16, 16, 16, 16, 16, 16, 16, -1, -1, 16, 16, |
127 |
|
16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, -1, -1, |
128 |
|
-1, -1, -1, -1, -1, -1, 24, 25, 26, 27, 28, 29, 30, 31, 32, -1, -1, |
129 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, |
130 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
131 |
|
-1, -1, -1, 34, 35, -1, -1, 34, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
132 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
133 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 36, -1, -1, -1, |
134 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
135 |
|
-1, -1, -1, -1, -1, -1, 37, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
136 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, -1, -1, |
137 |
|
-1, -1, -1, -1, -1, -1, -1, -1, 39, -1, 39, -1, 39, -1, -1, -1, -1, |
138 |
|
-1, 39, 39, -1, -1, -1, -1, 39, 39, -1, -1, -1, -1, -1, -1, -1, -1, |
139 |
|
-1, -1, -1, 33, -1, 20, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
140 |
|
20, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 35, -1, -1, -1, |
141 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
142 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
143 |
|
-1, -1, -1, -1, -1, -1, 38, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
144 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, -1, |
145 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
146 |
|
-1, -1, -1, -1, -1, -1, 41, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
147 |
|
42, -1, 42, -1, 42, -1, -1, -1, -1, -1, 42, 42, -1, -1, -1, -1, 42, |
148 |
|
42, -1, -1, -1, -1, -1, -1, -1, -1, -1, 43, -1, 43, -1, 43, -1, -1, |
149 |
|
-1, -1, -1, 43, 43, -1, -1, -1, -1, 43, 43, -1, -1, -1, -1, -1, -1, |
150 |
|
-1, -1, -1, 44, -1, 44, -1, 44, -1, -1, -1, -1, -1, 44, 44, -1, -1, |
151 |
|
-1, -1, 44, 44, -1, -1, -1, -1, -1, -1, -1, -1, }; |
152 |
|
|
153 |
|
|
154 |
|
private static final int ZZ_UNKNOWN_ERROR = 0; |
155 |
|
|
156 |
|
private static final int ZZ_NO_MATCH = 1; |
157 |
|
|
158 |
|
private static final int ZZ_PUSHBACK_2BIG = 2; |
159 |
|
|
160 |
|
|
161 |
|
private static final String ZZ_ERROR_MSG[] = { |
162 |
|
"Unkown internal scanner error", "Error: could not match input", |
163 |
|
"Error: pushback value was too large" }; |
164 |
|
|
165 |
|
|
166 |
|
|
167 |
|
|
168 |
|
private static final int[] ZZ_ATTRIBUTE = zzUnpackAttribute(); |
169 |
|
|
170 |
|
private static final String ZZ_ATTRIBUTE_PACKED_0 = "\2\0\1\11\3\1\1\11\3\1\6\11\2\1\1\11" |
171 |
|
+ "\5\0\10\11\1\0\1\1\1\0\1\1\4\0\2\11" + "\2\0\1\11"; |
172 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
173 |
12 |
private static int[] zzUnpackAttribute()... |
174 |
|
{ |
175 |
12 |
int[] result = new int[45]; |
176 |
12 |
int offset = 0; |
177 |
12 |
offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); |
178 |
12 |
return result; |
179 |
|
} |
180 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (13) |
Complexity: 3 |
Complexity Density: 0.33 |
|
181 |
12 |
private static int zzUnpackAttribute(String packed, int offset,... |
182 |
|
int[] result) |
183 |
|
{ |
184 |
12 |
int i = 0; |
185 |
12 |
int j = offset; |
186 |
12 |
int l = packed.length(); |
187 |
228 |
while (i < l) |
188 |
|
{ |
189 |
216 |
int count = packed.charAt(i++); |
190 |
216 |
int value = packed.charAt(i++); |
191 |
216 |
do |
192 |
540 |
result[j++] = value; |
193 |
540 |
while (--count > 0); |
194 |
|
} |
195 |
12 |
return j; |
196 |
|
} |
197 |
|
|
198 |
|
|
199 |
|
private java.io.Reader zzReader; |
200 |
|
|
201 |
|
|
202 |
|
private int zzState; |
203 |
|
|
204 |
|
|
205 |
|
private int zzLexicalState = YYINITIAL; |
206 |
|
|
207 |
|
|
208 |
|
|
209 |
|
|
210 |
|
|
211 |
|
private char zzBuffer[] = new char[ZZ_BUFFERSIZE]; |
212 |
|
|
213 |
|
|
214 |
|
private int zzMarkedPos; |
215 |
|
|
216 |
|
|
217 |
|
private int zzCurrentPos; |
218 |
|
|
219 |
|
|
220 |
|
private int zzStartRead; |
221 |
|
|
222 |
|
|
223 |
|
|
224 |
|
|
225 |
|
|
226 |
|
private int zzEndRead; |
227 |
|
|
228 |
|
|
229 |
|
private int yyline; |
230 |
|
|
231 |
|
|
232 |
|
private int yychar; |
233 |
|
|
234 |
|
|
235 |
|
|
236 |
|
|
237 |
|
|
238 |
|
private int yycolumn; |
239 |
|
|
240 |
|
|
241 |
|
|
242 |
|
|
243 |
|
private boolean zzAtBOL = true; |
244 |
|
|
245 |
|
|
246 |
|
private boolean zzAtEOF; |
247 |
|
|
248 |
|
|
249 |
|
private StringBuilder sb = new StringBuilder(); |
250 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
251 |
0 |
int getPosition()... |
252 |
|
{ |
253 |
0 |
return yychar; |
254 |
|
} |
255 |
|
|
256 |
|
|
257 |
|
|
258 |
|
|
259 |
|
|
260 |
|
@param |
261 |
|
|
262 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
263 |
224 |
Yylex(java.io.Reader in)... |
264 |
|
{ |
265 |
224 |
this.zzReader = in; |
266 |
|
} |
267 |
|
|
268 |
|
|
269 |
|
|
270 |
|
|
271 |
|
|
272 |
|
@param |
273 |
|
|
274 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
275 |
0 |
Yylex(java.io.InputStream in)... |
276 |
|
{ |
277 |
0 |
this(new InputStreamReader(in)); |
278 |
|
} |
279 |
|
|
280 |
|
|
281 |
|
|
282 |
|
|
283 |
|
@param |
284 |
|
|
285 |
|
@return |
286 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (13) |
Complexity: 3 |
Complexity Density: 0.33 |
|
287 |
12 |
private static char[] zzUnpackCMap(String packed)... |
288 |
|
{ |
289 |
12 |
char[] map = new char[0x10000]; |
290 |
12 |
int i = 0; |
291 |
12 |
int j = 0; |
292 |
552 |
while (i < 90) |
293 |
|
{ |
294 |
540 |
int count = packed.charAt(i++); |
295 |
540 |
char value = packed.charAt(i++); |
296 |
540 |
do |
297 |
786432 |
map[j++] = value; |
298 |
786432 |
while (--count > 0); |
299 |
|
} |
300 |
12 |
return map; |
301 |
|
} |
302 |
|
|
303 |
|
|
304 |
|
|
305 |
|
|
306 |
|
@return |
307 |
|
|
308 |
|
@exception |
309 |
|
|
310 |
|
|
|
|
| 61.3% |
Uncovered Elements: 12 (31) |
Complexity: 6 |
Complexity Density: 0.29 |
|
311 |
1771 |
private boolean zzRefill() throws java.io.IOException... |
312 |
|
{ |
313 |
|
|
314 |
|
|
315 |
1771 |
if (zzStartRead > 0) |
316 |
|
{ |
317 |
1547 |
System.arraycopy(zzBuffer, zzStartRead, zzBuffer, 0, |
318 |
|
zzEndRead - zzStartRead); |
319 |
|
|
320 |
|
|
321 |
1547 |
zzEndRead -= zzStartRead; |
322 |
1547 |
zzCurrentPos -= zzStartRead; |
323 |
1547 |
zzMarkedPos -= zzStartRead; |
324 |
1547 |
zzStartRead = 0; |
325 |
|
} |
326 |
|
|
327 |
|
|
328 |
1771 |
if (zzCurrentPos >= zzBuffer.length) |
329 |
|
{ |
330 |
|
|
331 |
0 |
char newBuffer[] = new char[zzCurrentPos * 2]; |
332 |
0 |
System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length); |
333 |
0 |
zzBuffer = newBuffer; |
334 |
|
} |
335 |
|
|
336 |
|
|
337 |
1771 |
int numRead = zzReader.read(zzBuffer, zzEndRead, |
338 |
|
zzBuffer.length - zzEndRead); |
339 |
|
|
340 |
1771 |
if (numRead > 0) |
341 |
|
{ |
342 |
1431 |
zzEndRead += numRead; |
343 |
1431 |
return false; |
344 |
|
} |
345 |
|
|
346 |
340 |
if (numRead == 0) |
347 |
|
{ |
348 |
0 |
int c = zzReader.read(); |
349 |
0 |
if (c == -1) |
350 |
|
{ |
351 |
0 |
return true; |
352 |
|
} |
353 |
|
else |
354 |
|
{ |
355 |
0 |
zzBuffer[zzEndRead++] = (char) c; |
356 |
0 |
return false; |
357 |
|
} |
358 |
|
} |
359 |
|
|
360 |
|
|
361 |
340 |
return true; |
362 |
|
} |
363 |
|
|
364 |
|
|
365 |
|
|
366 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
367 |
0 |
public final void yyclose() throws java.io.IOException... |
368 |
|
{ |
369 |
0 |
zzAtEOF = true; |
370 |
0 |
zzEndRead = zzStartRead; |
371 |
|
|
372 |
0 |
if (zzReader != null) |
373 |
0 |
zzReader.close(); |
374 |
|
} |
375 |
|
|
376 |
|
|
377 |
|
|
378 |
|
|
379 |
|
|
380 |
|
|
381 |
|
|
382 |
|
|
383 |
|
|
384 |
|
@param |
385 |
|
|
386 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (7) |
Complexity: 1 |
Complexity Density: 0.14 |
|
387 |
224 |
public final void yyreset(java.io.Reader reader)... |
388 |
|
{ |
389 |
224 |
zzReader = reader; |
390 |
224 |
zzAtBOL = true; |
391 |
224 |
zzAtEOF = false; |
392 |
224 |
zzEndRead = zzStartRead = 0; |
393 |
224 |
zzCurrentPos = zzMarkedPos = 0; |
394 |
224 |
yyline = yychar = yycolumn = 0; |
395 |
224 |
zzLexicalState = YYINITIAL; |
396 |
|
} |
397 |
|
|
398 |
|
|
399 |
|
|
400 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
401 |
0 |
public final int yystate()... |
402 |
|
{ |
403 |
0 |
return zzLexicalState; |
404 |
|
} |
405 |
|
|
406 |
|
|
407 |
|
|
408 |
|
|
409 |
|
@param |
410 |
|
|
411 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
412 |
1151836 |
public final void yybegin(int newState)... |
413 |
|
{ |
414 |
1151836 |
zzLexicalState = newState; |
415 |
|
} |
416 |
|
|
417 |
|
|
418 |
|
|
419 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
420 |
4551541 |
public final String yytext()... |
421 |
|
{ |
422 |
4551541 |
return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead); |
423 |
|
} |
424 |
|
|
425 |
|
|
426 |
|
|
427 |
|
|
428 |
|
|
429 |
|
|
430 |
|
@param |
431 |
|
|
432 |
|
|
433 |
|
|
434 |
|
@return |
435 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
436 |
0 |
public final char yycharat(int pos)... |
437 |
|
{ |
438 |
0 |
return zzBuffer[zzStartRead + pos]; |
439 |
|
} |
440 |
|
|
441 |
|
|
442 |
|
|
443 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
444 |
0 |
public final int yylength()... |
445 |
|
{ |
446 |
0 |
return zzMarkedPos - zzStartRead; |
447 |
|
} |
448 |
|
|
449 |
|
|
450 |
|
|
451 |
|
|
452 |
|
|
453 |
|
|
454 |
|
|
455 |
|
|
456 |
|
|
457 |
|
|
458 |
|
|
459 |
|
|
460 |
|
@param |
461 |
|
|
462 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.4 |
|
463 |
0 |
private void zzScanError(int errorCode)... |
464 |
|
{ |
465 |
0 |
String message; |
466 |
0 |
try |
467 |
|
{ |
468 |
0 |
message = ZZ_ERROR_MSG[errorCode]; |
469 |
|
} catch (ArrayIndexOutOfBoundsException e) |
470 |
|
{ |
471 |
0 |
message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; |
472 |
|
} |
473 |
|
|
474 |
0 |
throw new Error(message); |
475 |
|
} |
476 |
|
|
477 |
|
|
478 |
|
|
479 |
|
|
480 |
|
|
481 |
|
|
482 |
|
@param |
483 |
|
|
484 |
|
|
485 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
486 |
0 |
public void yypushback(int number)... |
487 |
|
{ |
488 |
0 |
if (number > yylength()) |
489 |
0 |
zzScanError(ZZ_PUSHBACK_2BIG); |
490 |
|
|
491 |
0 |
zzMarkedPos -= number; |
492 |
|
} |
493 |
|
|
494 |
|
|
495 |
|
|
496 |
|
|
497 |
|
|
498 |
|
@return |
499 |
|
@exception |
500 |
|
|
501 |
|
|
|
|
| 65.5% |
Uncovered Elements: 59 (171) |
Complexity: 59 |
Complexity Density: 0.38 |
|
502 |
9342761 |
public Yytoken yylex() throws java.io.IOException, ParseException... |
503 |
|
{ |
504 |
9342761 |
int zzInput; |
505 |
9342761 |
int zzAction; |
506 |
|
|
507 |
|
|
508 |
9342761 |
int zzCurrentPosL; |
509 |
9342761 |
int zzMarkedPosL; |
510 |
9342761 |
int zzEndReadL = zzEndRead; |
511 |
9342761 |
char[] zzBufferL = zzBuffer; |
512 |
9342761 |
char[] zzCMapL = ZZ_CMAP; |
513 |
|
|
514 |
9342761 |
int[] zzTransL = ZZ_TRANS; |
515 |
9342761 |
int[] zzRowMapL = ZZ_ROWMAP; |
516 |
9342761 |
int[] zzAttrL = ZZ_ATTRIBUTE; |
517 |
|
|
518 |
9342761 |
while (true) |
519 |
|
{ |
520 |
10666298 |
zzMarkedPosL = zzMarkedPos; |
521 |
|
|
522 |
10666298 |
yychar += zzMarkedPosL - zzStartRead; |
523 |
|
|
524 |
10666298 |
zzAction = -1; |
525 |
|
|
526 |
10666298 |
zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; |
527 |
|
|
528 |
10666298 |
zzState = ZZ_LEXSTATE[zzLexicalState]; |
529 |
|
|
530 |
10666298 |
zzForAction: |
531 |
|
{ |
532 |
10666298 |
while (true) |
533 |
|
{ |
534 |
|
|
535 |
25298730 |
if (zzCurrentPosL < zzEndReadL) |
536 |
25296959 |
zzInput = zzBufferL[zzCurrentPosL++]; |
537 |
1771 |
else if (zzAtEOF) |
538 |
|
{ |
539 |
0 |
zzInput = YYEOF; |
540 |
0 |
break zzForAction; |
541 |
|
} |
542 |
|
else |
543 |
|
{ |
544 |
|
|
545 |
1771 |
zzCurrentPos = zzCurrentPosL; |
546 |
1771 |
zzMarkedPos = zzMarkedPosL; |
547 |
1771 |
boolean eof = zzRefill(); |
548 |
|
|
549 |
1771 |
zzCurrentPosL = zzCurrentPos; |
550 |
1771 |
zzMarkedPosL = zzMarkedPos; |
551 |
1771 |
zzBufferL = zzBuffer; |
552 |
1771 |
zzEndReadL = zzEndRead; |
553 |
1771 |
if (eof) |
554 |
|
{ |
555 |
340 |
zzInput = YYEOF; |
556 |
340 |
break zzForAction; |
557 |
|
} |
558 |
|
else |
559 |
|
{ |
560 |
1431 |
zzInput = zzBufferL[zzCurrentPosL++]; |
561 |
|
} |
562 |
|
} |
563 |
25298390 |
int zzNext = zzTransL[zzRowMapL[zzState] + zzCMapL[zzInput]]; |
564 |
25298390 |
if (zzNext == -1) |
565 |
4648179 |
break zzForAction; |
566 |
20650211 |
zzState = zzNext; |
567 |
|
|
568 |
20650211 |
int zzAttributes = zzAttrL[zzState]; |
569 |
20650211 |
if ((zzAttributes & 1) == 1) |
570 |
|
{ |
571 |
20456786 |
zzAction = zzState; |
572 |
20456786 |
zzMarkedPosL = zzCurrentPosL; |
573 |
20456786 |
if ((zzAttributes & 8) == 8) |
574 |
6017779 |
break zzForAction; |
575 |
|
} |
576 |
|
|
577 |
|
} |
578 |
|
} |
579 |
|
|
580 |
|
|
581 |
10666298 |
zzMarkedPos = zzMarkedPosL; |
582 |
10666298 |
switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) |
583 |
|
{ |
584 |
605531 |
case 11: |
585 |
|
{ |
586 |
605531 |
sb.append(yytext()); |
587 |
|
} |
588 |
0 |
case 25: |
589 |
605531 |
break; |
590 |
575918 |
case 4: |
591 |
|
{ |
592 |
575918 |
sb = null; |
593 |
575918 |
sb = new StringBuilder(); |
594 |
575918 |
yybegin(STRING_BEGIN); |
595 |
|
} |
596 |
0 |
case 26: |
597 |
575918 |
break; |
598 |
0 |
case 16: |
599 |
|
{ |
600 |
0 |
sb.append('\b'); |
601 |
|
} |
602 |
0 |
case 27: |
603 |
0 |
break; |
604 |
53547 |
case 6: |
605 |
|
{ |
606 |
53547 |
return new Yytoken(Yytoken.TYPE_RIGHT_BRACE, null); |
607 |
|
} |
608 |
0 |
case 28: |
609 |
0 |
break; |
610 |
74 |
case 23: |
611 |
|
{ |
612 |
74 |
Boolean val = Boolean.valueOf(yytext()); |
613 |
74 |
return new Yytoken(Yytoken.TYPE_VALUE, val); |
614 |
|
} |
615 |
0 |
case 29: |
616 |
0 |
break; |
617 |
54819 |
case 22: |
618 |
|
{ |
619 |
54819 |
return new Yytoken(Yytoken.TYPE_VALUE, null); |
620 |
|
} |
621 |
0 |
case 30: |
622 |
0 |
break; |
623 |
575918 |
case 13: |
624 |
|
{ |
625 |
575918 |
yybegin(YYINITIAL); |
626 |
575918 |
return new Yytoken(Yytoken.TYPE_VALUE, sb.toString()); |
627 |
|
} |
628 |
0 |
case 31: |
629 |
0 |
break; |
630 |
102 |
case 12: |
631 |
|
{ |
632 |
102 |
sb.append('\\'); |
633 |
|
} |
634 |
0 |
case 32: |
635 |
102 |
break; |
636 |
82842 |
case 21: |
637 |
|
{ |
638 |
82842 |
Double val = Double.valueOf(yytext()); |
639 |
82842 |
return new Yytoken(Yytoken.TYPE_VALUE, val); |
640 |
|
} |
641 |
0 |
case 33: |
642 |
0 |
break; |
643 |
0 |
case 1: |
644 |
|
{ |
645 |
0 |
throw new ParseException(yychar, |
646 |
|
ParseException.ERROR_UNEXPECTED_CHAR, |
647 |
|
Character.valueOf(yycharat(0))); |
648 |
|
} |
649 |
0 |
case 34: |
650 |
0 |
break; |
651 |
41283 |
case 8: |
652 |
|
{ |
653 |
41283 |
return new Yytoken(Yytoken.TYPE_RIGHT_SQUARE, null); |
654 |
|
} |
655 |
0 |
case 35: |
656 |
0 |
break; |
657 |
0 |
case 19: |
658 |
|
{ |
659 |
0 |
sb.append('\r'); |
660 |
|
} |
661 |
0 |
case 36: |
662 |
0 |
break; |
663 |
44856 |
case 15: |
664 |
|
{ |
665 |
44856 |
sb.append('/'); |
666 |
|
} |
667 |
0 |
case 37: |
668 |
44856 |
break; |
669 |
330453 |
case 10: |
670 |
|
{ |
671 |
330453 |
return new Yytoken(Yytoken.TYPE_COLON, null); |
672 |
|
} |
673 |
0 |
case 38: |
674 |
0 |
break; |
675 |
24 |
case 14: |
676 |
|
{ |
677 |
24 |
sb.append('"'); |
678 |
|
} |
679 |
0 |
case 39: |
680 |
24 |
break; |
681 |
53547 |
case 5: |
682 |
|
{ |
683 |
53547 |
return new Yytoken(Yytoken.TYPE_LEFT_BRACE, null); |
684 |
|
} |
685 |
0 |
case 40: |
686 |
0 |
break; |
687 |
0 |
case 17: |
688 |
|
{ |
689 |
0 |
sb.append('\f'); |
690 |
|
} |
691 |
0 |
case 41: |
692 |
0 |
break; |
693 |
190 |
case 24: |
694 |
|
{ |
695 |
190 |
try |
696 |
|
{ |
697 |
190 |
int ch = Integer.parseInt(yytext().substring(2), 16); |
698 |
190 |
sb.append((char) ch); |
699 |
|
} catch (Exception e) |
700 |
|
{ |
701 |
0 |
throw new ParseException(yychar, |
702 |
|
ParseException.ERROR_UNEXPECTED_EXCEPTION, e); |
703 |
|
} |
704 |
|
} |
705 |
0 |
case 42: |
706 |
190 |
break; |
707 |
0 |
case 20: |
708 |
|
{ |
709 |
0 |
sb.append('\t'); |
710 |
|
} |
711 |
0 |
case 43: |
712 |
0 |
break; |
713 |
41283 |
case 7: |
714 |
|
{ |
715 |
41283 |
return new Yytoken(Yytoken.TYPE_LEFT_SQUARE, null); |
716 |
|
} |
717 |
0 |
case 44: |
718 |
0 |
break; |
719 |
3862904 |
case 2: |
720 |
|
{ |
721 |
3862904 |
Long val = Long.valueOf(yytext()); |
722 |
3862904 |
return new Yytoken(Yytoken.TYPE_VALUE, val); |
723 |
|
} |
724 |
0 |
case 45: |
725 |
0 |
break; |
726 |
0 |
case 18: |
727 |
|
{ |
728 |
0 |
sb.append('\n'); |
729 |
|
} |
730 |
0 |
case 46: |
731 |
0 |
break; |
732 |
4245867 |
case 9: |
733 |
|
{ |
734 |
4245867 |
return new Yytoken(Yytoken.TYPE_COMMA, null); |
735 |
|
} |
736 |
0 |
case 47: |
737 |
0 |
break; |
738 |
96916 |
case 3: |
739 |
|
{ |
740 |
|
} |
741 |
0 |
case 48: |
742 |
96916 |
break; |
743 |
224 |
default: |
744 |
224 |
if (zzInput == YYEOF && zzStartRead == zzCurrentPos) |
745 |
|
{ |
746 |
224 |
zzAtEOF = true; |
747 |
224 |
return null; |
748 |
|
} |
749 |
|
else |
750 |
|
{ |
751 |
0 |
zzScanError(ZZ_NO_MATCH); |
752 |
|
} |
753 |
|
} |
754 |
|
} |
755 |
|
} |
756 |
|
|
757 |
|
} |