Line | Count | Source |
1 | | #line 2 "/work/cue_scanner.c" |
2 | | |
3 | | #line 4 "/work/cue_scanner.c" |
4 | | |
5 | | #define YY_INT_ALIGNED short int |
6 | | |
7 | | /* A lexical scanner generated by flex */ |
8 | | |
9 | | #define FLEX_SCANNER |
10 | | #define YY_FLEX_MAJOR_VERSION 2 |
11 | | #define YY_FLEX_MINOR_VERSION 6 |
12 | | #define YY_FLEX_SUBMINOR_VERSION 4 |
13 | | #if YY_FLEX_SUBMINOR_VERSION > 0 |
14 | | #define FLEX_BETA |
15 | | #endif |
16 | | |
17 | | #ifdef yy_create_buffer |
18 | | #define cue_yy_create_buffer_ALREADY_DEFINED |
19 | | #else |
20 | 0 | #define yy_create_buffer cue_yy_create_buffer |
21 | | #endif |
22 | | |
23 | | #ifdef yy_delete_buffer |
24 | | #define cue_yy_delete_buffer_ALREADY_DEFINED |
25 | | #else |
26 | 2.38k | #define yy_delete_buffer cue_yy_delete_buffer |
27 | | #endif |
28 | | |
29 | | #ifdef yy_scan_buffer |
30 | | #define cue_yy_scan_buffer_ALREADY_DEFINED |
31 | | #else |
32 | 2.38k | #define yy_scan_buffer cue_yy_scan_buffer |
33 | | #endif |
34 | | |
35 | | #ifdef yy_scan_string |
36 | | #define cue_yy_scan_string_ALREADY_DEFINED |
37 | | #else |
38 | | #define yy_scan_string cue_yy_scan_string |
39 | | #endif |
40 | | |
41 | | #ifdef yy_scan_bytes |
42 | | #define cue_yy_scan_bytes_ALREADY_DEFINED |
43 | | #else |
44 | 2.38k | #define yy_scan_bytes cue_yy_scan_bytes |
45 | | #endif |
46 | | |
47 | | #ifdef yy_init_buffer |
48 | | #define cue_yy_init_buffer_ALREADY_DEFINED |
49 | | #else |
50 | 0 | #define yy_init_buffer cue_yy_init_buffer |
51 | | #endif |
52 | | |
53 | | #ifdef yy_flush_buffer |
54 | | #define cue_yy_flush_buffer_ALREADY_DEFINED |
55 | | #else |
56 | 0 | #define yy_flush_buffer cue_yy_flush_buffer |
57 | | #endif |
58 | | |
59 | | #ifdef yy_load_buffer_state |
60 | | #define cue_yy_load_buffer_state_ALREADY_DEFINED |
61 | | #else |
62 | 4.77k | #define yy_load_buffer_state cue_yy_load_buffer_state |
63 | | #endif |
64 | | |
65 | | #ifdef yy_switch_to_buffer |
66 | | #define cue_yy_switch_to_buffer_ALREADY_DEFINED |
67 | | #else |
68 | 2.38k | #define yy_switch_to_buffer cue_yy_switch_to_buffer |
69 | | #endif |
70 | | |
71 | | #ifdef yypush_buffer_state |
72 | | #define cue_yypush_buffer_state_ALREADY_DEFINED |
73 | | #else |
74 | | #define yypush_buffer_state cue_yypush_buffer_state |
75 | | #endif |
76 | | |
77 | | #ifdef yypop_buffer_state |
78 | | #define cue_yypop_buffer_state_ALREADY_DEFINED |
79 | | #else |
80 | 2.38k | #define yypop_buffer_state cue_yypop_buffer_state |
81 | | #endif |
82 | | |
83 | | #ifdef yyensure_buffer_stack |
84 | | #define cue_yyensure_buffer_stack_ALREADY_DEFINED |
85 | | #else |
86 | 2.38k | #define yyensure_buffer_stack cue_yyensure_buffer_stack |
87 | | #endif |
88 | | |
89 | | #ifdef yylex |
90 | | #define cue_yylex_ALREADY_DEFINED |
91 | | #else |
92 | | #define yylex cue_yylex |
93 | | #endif |
94 | | |
95 | | #ifdef yyrestart |
96 | | #define cue_yyrestart_ALREADY_DEFINED |
97 | | #else |
98 | 0 | #define yyrestart cue_yyrestart |
99 | | #endif |
100 | | |
101 | | #ifdef yylex_init |
102 | | #define cue_yylex_init_ALREADY_DEFINED |
103 | | #else |
104 | | #define yylex_init cue_yylex_init |
105 | | #endif |
106 | | |
107 | | #ifdef yylex_init_extra |
108 | | #define cue_yylex_init_extra_ALREADY_DEFINED |
109 | | #else |
110 | | #define yylex_init_extra cue_yylex_init_extra |
111 | | #endif |
112 | | |
113 | | #ifdef yylex_destroy |
114 | | #define cue_yylex_destroy_ALREADY_DEFINED |
115 | | #else |
116 | | #define yylex_destroy cue_yylex_destroy |
117 | | #endif |
118 | | |
119 | | #ifdef yyget_debug |
120 | | #define cue_yyget_debug_ALREADY_DEFINED |
121 | | #else |
122 | | #define yyget_debug cue_yyget_debug |
123 | | #endif |
124 | | |
125 | | #ifdef yyset_debug |
126 | | #define cue_yyset_debug_ALREADY_DEFINED |
127 | | #else |
128 | | #define yyset_debug cue_yyset_debug |
129 | | #endif |
130 | | |
131 | | #ifdef yyget_extra |
132 | | #define cue_yyget_extra_ALREADY_DEFINED |
133 | | #else |
134 | | #define yyget_extra cue_yyget_extra |
135 | | #endif |
136 | | |
137 | | #ifdef yyset_extra |
138 | | #define cue_yyset_extra_ALREADY_DEFINED |
139 | | #else |
140 | 4.77k | #define yyset_extra cue_yyset_extra |
141 | | #endif |
142 | | |
143 | | #ifdef yyget_in |
144 | | #define cue_yyget_in_ALREADY_DEFINED |
145 | | #else |
146 | | #define yyget_in cue_yyget_in |
147 | | #endif |
148 | | |
149 | | #ifdef yyset_in |
150 | | #define cue_yyset_in_ALREADY_DEFINED |
151 | | #else |
152 | | #define yyset_in cue_yyset_in |
153 | | #endif |
154 | | |
155 | | #ifdef yyget_out |
156 | | #define cue_yyget_out_ALREADY_DEFINED |
157 | | #else |
158 | | #define yyget_out cue_yyget_out |
159 | | #endif |
160 | | |
161 | | #ifdef yyset_out |
162 | | #define cue_yyset_out_ALREADY_DEFINED |
163 | | #else |
164 | | #define yyset_out cue_yyset_out |
165 | | #endif |
166 | | |
167 | | #ifdef yyget_leng |
168 | | #define cue_yyget_leng_ALREADY_DEFINED |
169 | | #else |
170 | | #define yyget_leng cue_yyget_leng |
171 | | #endif |
172 | | |
173 | | #ifdef yyget_text |
174 | | #define cue_yyget_text_ALREADY_DEFINED |
175 | | #else |
176 | | #define yyget_text cue_yyget_text |
177 | | #endif |
178 | | |
179 | | #ifdef yyget_lineno |
180 | | #define cue_yyget_lineno_ALREADY_DEFINED |
181 | | #else |
182 | | #define yyget_lineno cue_yyget_lineno |
183 | | #endif |
184 | | |
185 | | #ifdef yyset_lineno |
186 | | #define cue_yyset_lineno_ALREADY_DEFINED |
187 | | #else |
188 | | #define yyset_lineno cue_yyset_lineno |
189 | | #endif |
190 | | |
191 | | #ifdef yyget_column |
192 | | #define cue_yyget_column_ALREADY_DEFINED |
193 | | #else |
194 | | #define yyget_column cue_yyget_column |
195 | | #endif |
196 | | |
197 | | #ifdef yyset_column |
198 | | #define cue_yyset_column_ALREADY_DEFINED |
199 | | #else |
200 | | #define yyset_column cue_yyset_column |
201 | | #endif |
202 | | |
203 | | #ifdef yywrap |
204 | | #define cue_yywrap_ALREADY_DEFINED |
205 | | #else |
206 | 4.77k | #define yywrap cue_yywrap |
207 | | #endif |
208 | | |
209 | | #ifdef yyget_lval |
210 | | #define cue_yyget_lval_ALREADY_DEFINED |
211 | | #else |
212 | | #define yyget_lval cue_yyget_lval |
213 | | #endif |
214 | | |
215 | | #ifdef yyset_lval |
216 | | #define cue_yyset_lval_ALREADY_DEFINED |
217 | | #else |
218 | | #define yyset_lval cue_yyset_lval |
219 | | #endif |
220 | | |
221 | | #ifdef yyalloc |
222 | | #define cue_yyalloc_ALREADY_DEFINED |
223 | | #else |
224 | 9.54k | #define yyalloc cue_yyalloc |
225 | | #endif |
226 | | |
227 | | #ifdef yyrealloc |
228 | | #define cue_yyrealloc_ALREADY_DEFINED |
229 | | #else |
230 | 0 | #define yyrealloc cue_yyrealloc |
231 | | #endif |
232 | | |
233 | | #ifdef yyfree |
234 | | #define cue_yyfree_ALREADY_DEFINED |
235 | | #else |
236 | 11.9k | #define yyfree cue_yyfree |
237 | | #endif |
238 | | |
239 | | /* First, we deal with platform-specific or compiler-specific issues. */ |
240 | | |
241 | | /* begin standard C headers. */ |
242 | | #include <stdio.h> |
243 | | #include <string.h> |
244 | | #include <errno.h> |
245 | | #include <stdlib.h> |
246 | | |
247 | | /* end standard C headers. */ |
248 | | |
249 | | /* flex integer type definitions */ |
250 | | |
251 | | #ifndef FLEXINT_H |
252 | | #define FLEXINT_H |
253 | | |
254 | | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ |
255 | | |
256 | | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L |
257 | | |
258 | | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, |
259 | | * if you want the limit (max/min) macros for int types. |
260 | | */ |
261 | | #ifndef __STDC_LIMIT_MACROS |
262 | | #define __STDC_LIMIT_MACROS 1 |
263 | | #endif |
264 | | |
265 | | #include <inttypes.h> |
266 | | typedef int8_t flex_int8_t; |
267 | | typedef uint8_t flex_uint8_t; |
268 | | typedef int16_t flex_int16_t; |
269 | | typedef uint16_t flex_uint16_t; |
270 | | typedef int32_t flex_int32_t; |
271 | | typedef uint32_t flex_uint32_t; |
272 | | #else |
273 | | typedef signed char flex_int8_t; |
274 | | typedef short int flex_int16_t; |
275 | | typedef int flex_int32_t; |
276 | | typedef unsigned char flex_uint8_t; |
277 | | typedef unsigned short int flex_uint16_t; |
278 | | typedef unsigned int flex_uint32_t; |
279 | | |
280 | | /* Limits of integral types. */ |
281 | | #ifndef INT8_MIN |
282 | | #define INT8_MIN (-128) |
283 | | #endif |
284 | | #ifndef INT16_MIN |
285 | | #define INT16_MIN (-32767-1) |
286 | | #endif |
287 | | #ifndef INT32_MIN |
288 | | #define INT32_MIN (-2147483647-1) |
289 | | #endif |
290 | | #ifndef INT8_MAX |
291 | | #define INT8_MAX (127) |
292 | | #endif |
293 | | #ifndef INT16_MAX |
294 | | #define INT16_MAX (32767) |
295 | | #endif |
296 | | #ifndef INT32_MAX |
297 | | #define INT32_MAX (2147483647) |
298 | | #endif |
299 | | #ifndef UINT8_MAX |
300 | | #define UINT8_MAX (255U) |
301 | | #endif |
302 | | #ifndef UINT16_MAX |
303 | | #define UINT16_MAX (65535U) |
304 | | #endif |
305 | | #ifndef UINT32_MAX |
306 | | #define UINT32_MAX (4294967295U) |
307 | | #endif |
308 | | |
309 | | #ifndef SIZE_MAX |
310 | | #define SIZE_MAX (~(size_t)0) |
311 | | #endif |
312 | | |
313 | | #endif /* ! C99 */ |
314 | | |
315 | | #endif /* ! FLEXINT_H */ |
316 | | |
317 | | /* begin standard C++ headers. */ |
318 | | |
319 | | /* TODO: this is always defined, so inline it */ |
320 | | #define yyconst const |
321 | | |
322 | | #if defined(__GNUC__) && __GNUC__ >= 3 |
323 | | #define yynoreturn __attribute__((__noreturn__)) |
324 | | #else |
325 | | #define yynoreturn |
326 | | #endif |
327 | | |
328 | | /* Returned upon end-of-file. */ |
329 | 2.38k | #define YY_NULL 0 |
330 | | |
331 | | /* Promotes a possibly negative, possibly signed char to an |
332 | | * integer in range [0..255] for use as an array index. |
333 | | */ |
334 | 67.4M | #define YY_SC_TO_UI(c) ((YY_CHAR) (c)) |
335 | | |
336 | | /* An opaque pointer. */ |
337 | | #ifndef YY_TYPEDEF_YY_SCANNER_T |
338 | | #define YY_TYPEDEF_YY_SCANNER_T |
339 | | typedef void* yyscan_t; |
340 | | #endif |
341 | | |
342 | | /* For convenience, these vars (plus the bison vars far below) |
343 | | are macros in the reentrant scanner. */ |
344 | 16.6k | #define yyin yyg->yyin_r |
345 | 9.54k | #define yyout yyg->yyout_r |
346 | 19.7k | #define yyextra yyg->yyextra_r |
347 | 13.0M | #define yyleng yyg->yyleng_r |
348 | 9.83M | #define yytext yyg->yytext_r |
349 | 538k | #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
350 | 278k | #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
351 | 0 | #define yy_flex_debug yyg->yy_flex_debug_r |
352 | | |
353 | | /* Enter a start condition. This macro really ought to take a parameter, |
354 | | * but we do it the disgusting crufty way forced on us by the ()-less |
355 | | * definition of BEGIN. |
356 | | */ |
357 | 301k | #define BEGIN yyg->yy_start = 1 + 2 * |
358 | | /* Translate the current start state into a value that can be later handed |
359 | | * to BEGIN to return to the state. The YYSTATE alias is for lex |
360 | | * compatibility. |
361 | | */ |
362 | | #define YY_START ((yyg->yy_start - 1) / 2) |
363 | | #define YYSTATE YY_START |
364 | | /* Action number for EOF rule of a given start state. */ |
365 | 35.3k | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
366 | | /* Special action meaning "start processing a new file". */ |
367 | 0 | #define YY_NEW_FILE yyrestart( yyin , yyscanner ) |
368 | 9.54k | #define YY_END_OF_BUFFER_CHAR 0 |
369 | | |
370 | | /* Size of default input buffer. */ |
371 | | #ifndef YY_BUF_SIZE |
372 | | #ifdef __ia64__ |
373 | | /* On IA-64, the buffer size is 16k, not 8k. |
374 | | * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. |
375 | | * Ditto for the __ia64__ case accordingly. |
376 | | */ |
377 | | #define YY_BUF_SIZE 32768 |
378 | | #else |
379 | 0 | #define YY_BUF_SIZE 16384 |
380 | | #endif /* __ia64__ */ |
381 | | #endif |
382 | | |
383 | | /* The state buf must be large enough to hold one state per character in the main buffer. |
384 | | */ |
385 | | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
386 | | |
387 | | #ifndef YY_TYPEDEF_YY_BUFFER_STATE |
388 | | #define YY_TYPEDEF_YY_BUFFER_STATE |
389 | | typedef struct yy_buffer_state *YY_BUFFER_STATE; |
390 | | #endif |
391 | | |
392 | | #ifndef YY_TYPEDEF_YY_SIZE_T |
393 | | #define YY_TYPEDEF_YY_SIZE_T |
394 | | typedef size_t yy_size_t; |
395 | | #endif |
396 | | |
397 | 0 | #define EOB_ACT_CONTINUE_SCAN 0 |
398 | 9.54k | #define EOB_ACT_END_OF_FILE 1 |
399 | 5.37k | #define EOB_ACT_LAST_MATCH 2 |
400 | | |
401 | | /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires |
402 | | * access to the local variable yy_act. Since yyless() is a macro, it would break |
403 | | * existing scanners that call yyless() from OUTSIDE yylex. |
404 | | * One obvious solution it to make yy_act a global. I tried that, and saw |
405 | | * a 5% performance hit in a non-yylineno scanner, because yy_act is |
406 | | * normally declared as a register variable-- so it is not worth it. |
407 | | */ |
408 | | #define YY_LESS_LINENO(n) \ |
409 | | do { \ |
410 | | int yyl;\ |
411 | | for ( yyl = n; yyl < yyleng; ++yyl )\ |
412 | | if ( yytext[yyl] == '\n' )\ |
413 | | --yylineno;\ |
414 | | }while(0) |
415 | | #define YY_LINENO_REWIND_TO(dst) \ |
416 | | do {\ |
417 | | const char *p;\ |
418 | | for ( p = yy_cp-1; p >= (dst); --p)\ |
419 | | if ( *p == '\n' )\ |
420 | | --yylineno;\ |
421 | | }while(0) |
422 | | |
423 | | /* Return all but the first "n" matched characters back to the input stream. */ |
424 | | #define yyless(n) \ |
425 | | do \ |
426 | | { \ |
427 | | /* Undo effects of setting up yytext. */ \ |
428 | | int yyless_macro_arg = (n); \ |
429 | | YY_LESS_LINENO(yyless_macro_arg);\ |
430 | | *yy_cp = yyg->yy_hold_char; \ |
431 | | YY_RESTORE_YY_MORE_OFFSET \ |
432 | | yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ |
433 | | YY_DO_BEFORE_ACTION; /* set up yytext again */ \ |
434 | | } \ |
435 | | while ( 0 ) |
436 | | #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) |
437 | | |
438 | | #ifndef YY_STRUCT_YY_BUFFER_STATE |
439 | | #define YY_STRUCT_YY_BUFFER_STATE |
440 | | struct yy_buffer_state |
441 | | { |
442 | | FILE *yy_input_file; |
443 | | |
444 | | char *yy_ch_buf; /* input buffer */ |
445 | | char *yy_buf_pos; /* current position in input buffer */ |
446 | | |
447 | | /* Size of input buffer in bytes, not including room for EOB |
448 | | * characters. |
449 | | */ |
450 | | int yy_buf_size; |
451 | | |
452 | | /* Number of characters read into yy_ch_buf, not including EOB |
453 | | * characters. |
454 | | */ |
455 | | int yy_n_chars; |
456 | | |
457 | | /* Whether we "own" the buffer - i.e., we know we created it, |
458 | | * and can realloc() it to grow it, and should free() it to |
459 | | * delete it. |
460 | | */ |
461 | | int yy_is_our_buffer; |
462 | | |
463 | | /* Whether this is an "interactive" input source; if so, and |
464 | | * if we're using stdio for input, then we want to use getc() |
465 | | * instead of fread(), to make sure we stop fetching input after |
466 | | * each newline. |
467 | | */ |
468 | | int yy_is_interactive; |
469 | | |
470 | | /* Whether we're considered to be at the beginning of a line. |
471 | | * If so, '^' rules will be active on the next match, otherwise |
472 | | * not. |
473 | | */ |
474 | | int yy_at_bol; |
475 | | |
476 | | int yy_bs_lineno; /**< The line count. */ |
477 | | int yy_bs_column; /**< The column count. */ |
478 | | |
479 | | /* Whether to try to fill the input buffer when we reach the |
480 | | * end of it. |
481 | | */ |
482 | | int yy_fill_buffer; |
483 | | |
484 | | int yy_buffer_status; |
485 | | |
486 | 9.84k | #define YY_BUFFER_NEW 0 |
487 | 2.38k | #define YY_BUFFER_NORMAL 1 |
488 | | /* When an EOF's been seen but there's still some text to process |
489 | | * then we mark the buffer as YY_EOF_PENDING, to indicate that we |
490 | | * shouldn't try reading from the input source any more. We might |
491 | | * still have a bunch of tokens to match, though, because of |
492 | | * possible backing-up. |
493 | | * |
494 | | * When we actually see the EOF, we change the status to "new" |
495 | | * (via yyrestart()), so that the user can continue scanning by |
496 | | * just pointing yyin at a new input file. |
497 | | */ |
498 | 0 | #define YY_BUFFER_EOF_PENDING 2 |
499 | | |
500 | | }; |
501 | | #endif /* !YY_STRUCT_YY_BUFFER_STATE */ |
502 | | |
503 | | /* We provide macros for accessing buffer states in case in the |
504 | | * future we want to put the buffer states in a more general |
505 | | * "scanner state". |
506 | | * |
507 | | * Returns the top of the stack, or NULL. |
508 | | */ |
509 | 278k | #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \ |
510 | 278k | ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \ |
511 | 278k | : NULL) |
512 | | /* Same as previous macro, but useful when we know that the buffer stack is not |
513 | | * NULL or when we need an lvalue. For internal use only. |
514 | | */ |
515 | 5.57M | #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] |
516 | | |
517 | | void yyrestart ( FILE *input_file , yyscan_t yyscanner ); |
518 | | void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner ); |
519 | | YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size , yyscan_t yyscanner ); |
520 | | void yy_delete_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner ); |
521 | | void yy_flush_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner ); |
522 | | void yypush_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner ); |
523 | | void yypop_buffer_state ( yyscan_t yyscanner ); |
524 | | |
525 | | static void yyensure_buffer_stack ( yyscan_t yyscanner ); |
526 | | static void yy_load_buffer_state ( yyscan_t yyscanner ); |
527 | | static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file , yyscan_t yyscanner ); |
528 | | #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner) |
529 | | |
530 | | YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size , yyscan_t yyscanner ); |
531 | | YY_BUFFER_STATE yy_scan_string ( const char *yy_str , yyscan_t yyscanner ); |
532 | | YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner ); |
533 | | |
534 | | void *yyalloc ( yy_size_t , yyscan_t yyscanner ); |
535 | | void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner ); |
536 | | void yyfree ( void * , yyscan_t yyscanner ); |
537 | | |
538 | | #define yy_new_buffer yy_create_buffer |
539 | | #define yy_set_interactive(is_interactive) \ |
540 | | { \ |
541 | | if ( ! YY_CURRENT_BUFFER ){ \ |
542 | | yyensure_buffer_stack (yyscanner); \ |
543 | | YY_CURRENT_BUFFER_LVALUE = \ |
544 | | yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \ |
545 | | } \ |
546 | | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ |
547 | | } |
548 | | #define yy_set_bol(at_bol) \ |
549 | | { \ |
550 | | if ( ! YY_CURRENT_BUFFER ){\ |
551 | | yyensure_buffer_stack (yyscanner); \ |
552 | | YY_CURRENT_BUFFER_LVALUE = \ |
553 | | yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \ |
554 | | } \ |
555 | | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ |
556 | | } |
557 | 2.34M | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
558 | | |
559 | | /* Begin user sect3 */ |
560 | | |
561 | 4.77k | #define cue_yywrap(yyscanner) (/*CONSTCOND*/1) |
562 | | #define YY_SKIP_YYWRAP |
563 | | typedef flex_uint8_t YY_CHAR; |
564 | | |
565 | | typedef int yy_state_type; |
566 | | |
567 | 2.39M | #define yytext_ptr yytext_r |
568 | | |
569 | | static yy_state_type yy_get_previous_state ( yyscan_t yyscanner ); |
570 | | static yy_state_type yy_try_NUL_trans ( yy_state_type current_state , yyscan_t yyscanner); |
571 | | static int yy_get_next_buffer ( yyscan_t yyscanner ); |
572 | | static void yynoreturn yy_fatal_error ( const char* msg , yyscan_t yyscanner ); |
573 | | |
574 | | /* Done after the current pattern has been matched and before the |
575 | | * corresponding action - sets up yytext. |
576 | | */ |
577 | | #define YY_DO_BEFORE_ACTION \ |
578 | 2.35M | yyg->yytext_ptr = yy_bp; \ |
579 | 2.35M | yyleng = (int) (yy_cp - yy_bp); \ |
580 | 2.35M | yyg->yy_hold_char = *yy_cp; \ |
581 | 2.35M | *yy_cp = '\0'; \ |
582 | 2.35M | yyg->yy_c_buf_p = yy_cp; |
583 | | #define YY_NUM_RULES 74 |
584 | 4.74M | #define YY_END_OF_BUFFER 75 |
585 | | /* This struct is not used in this scanner, |
586 | | but its presence is necessary. */ |
587 | | struct yy_trans_info |
588 | | { |
589 | | flex_int32_t yy_verify; |
590 | | flex_int32_t yy_nxt; |
591 | | }; |
592 | | static const flex_int16_t yy_accept[749] = |
593 | | { 0, |
594 | | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
595 | | 0, 0, 0, 0, 75, 73, 68, 72, 73, 73, |
596 | | 69, 69, 70, 73, 73, 73, 73, 73, 73, 73, |
597 | | 73, 73, 73, 73, 73, 73, 73, 68, 71, 3, |
598 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
599 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, |
600 | | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, |
601 | | 4, 4, 4, 4, 4, 4, 4, 4, 4, 58, |
602 | | 57, 60, 59, 58, 58, 58, 58, 58, 61, 62, |
603 | | 63, 64, 65, 67, 66, 68, 0, 2, 0, 1, |
604 | | |
605 | | 69, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
606 | | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
607 | | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
608 | | 0, 68, 71, 3, 3, 2, 3, 1, 3, 3, |
609 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
610 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
611 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, |
612 | | 0, 4, 0, 2, 4, 0, 1, 4, 4, 4, |
613 | | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, |
614 | | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, |
615 | | |
616 | | 4, 4, 4, 4, 4, 4, 4, 4, 58, 57, |
617 | | 58, 58, 58, 58, 58, 58, 61, 63, 64, 67, |
618 | | 66, 26, 0, 0, 0, 0, 0, 0, 0, 25, |
619 | | 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, |
620 | | 0, 0, 24, 45, 0, 0, 0, 0, 0, 0, |
621 | | 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, |
622 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
623 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
624 | | 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, |
625 | | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, |
626 | | |
627 | | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, |
628 | | 4, 4, 4, 4, 58, 58, 58, 58, 58, 58, |
629 | | 10, 0, 0, 0, 0, 0, 0, 0, 7, 13, |
630 | | 0, 0, 0, 44, 0, 0, 0, 0, 0, 0, |
631 | | 27, 0, 0, 0, 0, 0, 0, 11, 3, 3, |
632 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
633 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
634 | | 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, |
635 | | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, |
636 | | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, |
637 | | |
638 | | 4, 4, 4, 4, 58, 58, 58, 58, 58, 58, |
639 | | 58, 0, 15, 0, 0, 0, 0, 0, 23, 38, |
640 | | 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
641 | | 0, 31, 0, 14, 0, 3, 3, 3, 3, 3, |
642 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
643 | | 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, |
644 | | 4, 4, 4, 4, 4, 4, 4, 4, 0, 4, |
645 | | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, |
646 | | 4, 4, 58, 58, 46, 58, 58, 58, 58, 58, |
647 | | 0, 8, 0, 0, 0, 0, 42, 0, 0, 0, |
648 | | |
649 | | 0, 0, 0, 28, 0, 0, 0, 0, 3, 3, |
650 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
651 | | 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, |
652 | | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, |
653 | | 4, 4, 4, 58, 58, 58, 58, 47, 58, 58, |
654 | | 0, 5, 0, 0, 37, 36, 0, 0, 0, 0, |
655 | | 30, 0, 0, 0, 41, 3, 3, 3, 3, 3, |
656 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
657 | | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, |
658 | | 4, 4, 4, 4, 4, 58, 58, 48, 58, 58, |
659 | | |
660 | | 58, 35, 0, 34, 0, 0, 0, 0, 9, 0, |
661 | | 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, |
662 | | 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, |
663 | | 4, 4, 4, 4, 4, 4, 4, 54, 58, 58, |
664 | | 58, 58, 0, 0, 0, 0, 0, 0, 0, 32, |
665 | | 43, 0, 39, 40, 3, 3, 3, 3, 3, 3, |
666 | | 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, |
667 | | 4, 4, 4, 4, 4, 4, 4, 4, 49, 58, |
668 | | 58, 58, 6, 16, 17, 19, 21, 18, 20, 22, |
669 | | 33, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
670 | | |
671 | | 4, 4, 4, 4, 4, 4, 4, 4, 4, 58, |
672 | | 58, 58, 55, 58, 56, 58, 58, 58, 58, 58, |
673 | | 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, |
674 | | 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, |
675 | | 58, 58, 58, 50, 51, 52, 53, 0 |
676 | | } ; |
677 | | |
678 | | static const YY_CHAR yy_ec[256] = |
679 | | { 0, |
680 | | 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, |
681 | | 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, |
682 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
683 | | 1, 2, 1, 4, 1, 1, 1, 1, 5, 1, |
684 | | 1, 1, 1, 1, 1, 1, 6, 7, 8, 9, |
685 | | 10, 11, 12, 13, 14, 15, 14, 16, 1, 1, |
686 | | 1, 1, 1, 1, 17, 18, 19, 20, 21, 22, |
687 | | 23, 24, 25, 1, 26, 27, 28, 29, 30, 31, |
688 | | 1, 32, 33, 34, 35, 36, 37, 38, 39, 40, |
689 | | 1, 1, 1, 1, 41, 1, 42, 43, 44, 45, |
690 | | |
691 | | 46, 47, 48, 49, 50, 1, 51, 52, 53, 54, |
692 | | 55, 56, 1, 57, 58, 59, 60, 61, 62, 63, |
693 | | 64, 65, 1, 1, 1, 1, 1, 1, 1, 1, |
694 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
695 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
696 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
697 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
698 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
699 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
700 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
701 | | |
702 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
703 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
704 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
705 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
706 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
707 | | 1, 1, 1, 1, 1 |
708 | | } ; |
709 | | |
710 | | static const YY_CHAR yy_meta[66] = |
711 | | { 0, |
712 | | 1, 2, 3, 4, 4, 1, 5, 5, 5, 5, |
713 | | 5, 5, 5, 5, 5, 1, 1, 1, 5, 1, |
714 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
715 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
716 | | 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, |
717 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
718 | | 1, 1, 1, 1, 1 |
719 | | } ; |
720 | | |
721 | | static const flex_int16_t yy_base[766] = |
722 | | { 0, |
723 | | 0, 64, 67, 131, 134, 198, 200, 258, 1778, 1777, |
724 | | 204, 206, 1776, 1775, 1777, 1782, 1774, 1782, 1771, 1769, |
725 | | 203, 202, 1782, 208, 197, 209, 205, 200, 207, 237, |
726 | | 252, 254, 210, 255, 264, 211, 255, 233, 1782, 0, |
727 | | 267, 236, 315, 324, 0, 315, 251, 324, 268, 321, |
728 | | 258, 316, 321, 332, 267, 361, 358, 325, 340, 1771, |
729 | | 356, 390, 415, 429, 1770, 430, 359, 433, 432, 431, |
730 | | 399, 462, 468, 447, 400, 467, 483, 416, 492, 0, |
731 | | 1769, 1782, 1782, 355, 493, 373, 438, 441, 0, 1782, |
732 | | 0, 1768, 1782, 1766, 1782, 1766, 1763, 1762, 1760, 1759, |
733 | | |
734 | | 537, 476, 479, 471, 485, 477, 473, 478, 501, 505, |
735 | | 506, 514, 525, 524, 535, 524, 524, 538, 1753, 527, |
736 | | 527, 541, 535, 537, 528, 540, 536, 552, 556, 555, |
737 | | 539, 394, 1782, 0, 396, 402, 574, 584, 594, 567, |
738 | | 570, 578, 591, 583, 579, 580, 587, 587, 586, 593, |
739 | | 604, 593, 603, 592, 592, 607, 1752, 594, 595, 608, |
740 | | 602, 603, 592, 604, 600, 623, 643, 642, 626, 1759, |
741 | | 1758, 410, 450, 517, 663, 667, 668, 686, 678, 661, |
742 | | 672, 662, 674, 675, 676, 677, 682, 673, 687, 709, |
743 | | 688, 713, 689, 679, 716, 353, 690, 721, 722, 717, |
744 | | |
745 | | 738, 723, 730, 714, 750, 739, 753, 742, 0, 1757, |
746 | | 721, 723, 727, 733, 733, 731, 0, 0, 1756, 1754, |
747 | | 1782, 1782, 745, 754, 751, 760, 763, 762, 755, 1782, |
748 | | 774, 774, 781, 766, 778, 787, 774, 788, 780, 1782, |
749 | | 790, 779, 791, 1782, 782, 795, 794, 792, 1715, 802, |
750 | | 1714, 801, 0, 804, 810, 803, 813, 816, 815, 812, |
751 | | 0, 826, 827, 831, 817, 835, 838, 826, 839, 832, |
752 | | 0, 841, 830, 842, 0, 833, 846, 846, 844, 1713, |
753 | | 853, 1712, 855, 1750, 876, 878, 875, 891, 897, 881, |
754 | | 884, 1749, 902, 901, 905, 903, 908, 907, 904, 909, |
755 | | |
756 | | 911, 1748, 910, 914, 915, 1747, 917, 940, 929, 916, |
757 | | 318, 957, 942, 943, 939, 935, 946, 937, 944, 955, |
758 | | 1782, 945, 948, 947, 953, 944, 954, 1707, 1782, 1782, |
759 | | 952, 966, 950, 1745, 974, 452, 961, 968, 977, 985, |
760 | | 1782, 1705, 969, 987, 986, 988, 994, 1782, 0, 988, |
761 | | 989, 988, 994, 984, 994, 1704, 0, 0, 993, 1007, |
762 | | 991, 1742, 1013, 458, 1000, 1004, 1012, 1020, 0, 1702, |
763 | | 1001, 1020, 1018, 1022, 1029, 0, 1740, 1050, 1054, 1056, |
764 | | 1059, 1062, 1063, 1065, 1739, 1738, 1068, 1069, 1067, 1737, |
765 | | 1070, 1072, 1075, 1080, 1074, 1081, 1736, 1076, 1083, 1087, |
766 | | |
767 | | 1089, 1090, 1100, 1735, 1073, 1069, 1132, 1102, 1082, 1112, |
768 | | 1111, 1117, 1782, 1103, 1113, 1110, 1114, 1123, 1782, 1782, |
769 | | 1782, 932, 1126, 1730, 1729, 1120, 1119, 1136, 1124, 1132, |
770 | | 1126, 1782, 1130, 1782, 1143, 1138, 0, 1123, 1134, 1132, |
771 | | 1137, 1146, 0, 0, 0, 1154, 1728, 1727, 1149, 1149, |
772 | | 1171, 1159, 1167, 1161, 0, 1165, 0, 1180, 1197, 1730, |
773 | | 1196, 1198, 1199, 1201, 1205, 1729, 1728, 1727, 1206, 1203, |
774 | | 397, 1210, 1207, 1209, 1212, 1219, 1221, 1225, 1726, 1223, |
775 | | 1725, 1222, 1202, 1203, 1782, 1218, 1205, 1265, 1204, 1227, |
776 | | 1227, 1782, 1226, 1254, 1257, 1259, 1782, 1259, 1717, 1716, |
777 | | |
778 | | 1254, 1255, 1253, 1782, 1256, 1261, 1265, 1259, 1268, 0, |
779 | | 1267, 1269, 1271, 1273, 1273, 1715, 1714, 1268, 1268, 1266, |
780 | | 0, 1269, 1274, 1278, 1273, 1305, 1720, 1326, 1328, 1327, |
781 | | 1332, 1719, 1333, 1329, 1330, 1331, 1334, 1335, 1711, 1338, |
782 | | 1339, 1341, 1340, 1311, 1325, 1351, 1319, 1782, 1334, 1334, |
783 | | 1328, 1782, 1336, 1333, 1782, 1782, 1371, 1386, 1359, 1359, |
784 | | 1782, 1373, 1363, 1368, 1782, 1367, 0, 1375, 1370, 0, |
785 | | 0, 1396, 1397, 1391, 1388, 0, 1388, 1377, 1382, 0, |
786 | | 1411, 1710, 1413, 1412, 1706, 1702, 1419, 1438, 1414, 1426, |
787 | | 1701, 1417, 1415, 1416, 1700, 1448, 1398, 1782, 1414, 1424, |
788 | | |
789 | | 1409, 1782, 1424, 1782, 1687, 1681, 1677, 1448, 1782, 1422, |
790 | | 1431, 1441, 1087, 0, 1438, 0, 1672, 1666, 1662, 1470, |
791 | | 0, 1438, 1443, 1454, 1469, 1670, 1481, 1666, 1482, 1230, |
792 | | 1483, 1494, 1661, 1486, 1487, 1489, 1505, 1782, 1497, 1476, |
793 | | 1478, 1490, 1490, 1623, 1625, 1612, 1503, 1616, 1614, 1782, |
794 | | 1782, 1483, 1782, 1782, 1498, 1607, 1612, 1602, 1511, 1604, |
795 | | 1600, 0, 0, 1489, 0, 0, 1524, 1523, 1521, 1535, |
796 | | 1539, 1530, 1545, 1605, 1527, 1525, 1490, 1366, 1782, 1499, |
797 | | 1520, 1518, 1782, 1782, 1782, 1782, 1782, 1782, 1782, 1782, |
798 | | 1782, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
799 | | |
800 | | 1342, 1242, 956, 751, 718, 669, 575, 525, 472, 1556, |
801 | | 366, 1560, 1782, 1538, 1782, 1526, 1527, 1545, 1549, 1532, |
802 | | 1549, 1541, 1545, 352, 275, 1550, 1552, 1560, 1558, 1568, |
803 | | 1565, 1562, 1572, 1565, 1578, 1570, 1575, 1574, 1579, 1614, |
804 | | 1627, 1631, 1635, 1782, 1782, 1782, 1782, 1782, 1640, 1645, |
805 | | 1650, 1655, 1660, 1665, 232, 1670, 1675, 1680, 1685, 1690, |
806 | | 1695, 1700, 1705, 1710, 1715 |
807 | | } ; |
808 | | |
809 | | static const flex_int16_t yy_def[766] = |
810 | | { 0, |
811 | | 748, 1, 748, 3, 748, 5, 749, 749, 750, 750, |
812 | | 751, 751, 752, 752, 748, 748, 748, 748, 753, 754, |
813 | | 748, 755, 748, 748, 748, 748, 748, 748, 748, 748, |
814 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 756, |
815 | | 757, 758, 756, 756, 756, 756, 756, 756, 756, 756, |
816 | | 756, 756, 756, 756, 756, 756, 756, 756, 756, 759, |
817 | | 760, 761, 759, 759, 759, 759, 759, 759, 759, 759, |
818 | | 759, 759, 759, 759, 759, 759, 759, 759, 759, 762, |
819 | | 748, 748, 748, 762, 762, 762, 762, 762, 763, 748, |
820 | | 764, 748, 748, 765, 748, 748, 753, 753, 754, 754, |
821 | | |
822 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
823 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
824 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
825 | | 748, 748, 748, 756, 757, 757, 758, 758, 756, 756, |
826 | | 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, |
827 | | 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, |
828 | | 756, 756, 756, 756, 756, 756, 756, 756, 756, 759, |
829 | | 759, 760, 760, 760, 761, 761, 761, 759, 759, 759, |
830 | | 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, |
831 | | 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, |
832 | | |
833 | | 759, 759, 759, 759, 759, 759, 759, 759, 762, 748, |
834 | | 762, 762, 762, 762, 762, 762, 763, 764, 748, 765, |
835 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
836 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
837 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
838 | | 748, 748, 756, 756, 756, 756, 756, 756, 756, 756, |
839 | | 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, |
840 | | 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, |
841 | | 756, 756, 756, 759, 759, 759, 759, 759, 759, 759, |
842 | | 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, |
843 | | |
844 | | 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, |
845 | | 759, 759, 759, 759, 762, 762, 762, 762, 762, 762, |
846 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
847 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
848 | | 748, 748, 748, 748, 748, 748, 748, 748, 756, 756, |
849 | | 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, |
850 | | 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, |
851 | | 756, 756, 756, 756, 756, 756, 759, 759, 759, 759, |
852 | | 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, |
853 | | 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, |
854 | | |
855 | | 759, 759, 759, 759, 762, 762, 762, 762, 762, 762, |
856 | | 762, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
857 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
858 | | 748, 748, 748, 748, 748, 756, 756, 756, 756, 756, |
859 | | 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, |
860 | | 756, 756, 756, 756, 756, 756, 756, 756, 759, 759, |
861 | | 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, |
862 | | 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, |
863 | | 759, 759, 762, 762, 748, 762, 762, 762, 762, 762, |
864 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
865 | | |
866 | | 748, 748, 748, 748, 748, 748, 748, 748, 756, 756, |
867 | | 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, |
868 | | 756, 756, 756, 756, 756, 759, 759, 759, 759, 759, |
869 | | 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, |
870 | | 759, 759, 759, 762, 762, 762, 762, 748, 762, 762, |
871 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
872 | | 748, 748, 748, 748, 748, 756, 756, 756, 756, 756, |
873 | | 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, |
874 | | 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, |
875 | | 759, 759, 759, 759, 759, 762, 762, 748, 762, 762, |
876 | | |
877 | | 762, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
878 | | 748, 748, 748, 756, 756, 756, 756, 756, 756, 756, |
879 | | 756, 756, 756, 756, 756, 759, 759, 759, 759, 759, |
880 | | 759, 759, 759, 759, 759, 759, 759, 748, 762, 762, |
881 | | 762, 762, 748, 748, 748, 748, 748, 748, 748, 748, |
882 | | 748, 748, 748, 748, 756, 756, 756, 756, 756, 756, |
883 | | 756, 756, 756, 756, 756, 756, 759, 759, 759, 759, |
884 | | 759, 759, 759, 759, 759, 759, 759, 759, 748, 762, |
885 | | 762, 762, 748, 748, 748, 748, 748, 748, 748, 748, |
886 | | 748, 756, 756, 756, 756, 756, 756, 756, 756, 756, |
887 | | |
888 | | 759, 759, 759, 759, 759, 759, 759, 759, 759, 762, |
889 | | 762, 762, 748, 762, 748, 762, 762, 762, 762, 762, |
890 | | 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, |
891 | | 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, |
892 | | 762, 762, 762, 748, 748, 748, 748, 0, 748, 748, |
893 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
894 | | 748, 748, 748, 748, 748 |
895 | | } ; |
896 | | |
897 | | static const flex_int16_t yy_nxt[1848] = |
898 | | { 0, |
899 | | 16, 17, 18, 19, 20, 16, 21, 21, 21, 21, |
900 | | 22, 21, 21, 21, 21, 23, 24, 25, 26, 27, |
901 | | 16, 28, 29, 16, 30, 16, 16, 31, 16, 16, |
902 | | 32, 33, 34, 35, 36, 16, 37, 16, 16, 16, |
903 | | 16, 24, 25, 26, 27, 16, 28, 29, 16, 30, |
904 | | 16, 16, 31, 16, 16, 32, 33, 34, 35, 36, |
905 | | 16, 37, 16, 16, 16, 38, 39, 40, 17, 18, |
906 | | 41, 42, 40, 43, 43, 43, 43, 44, 43, 43, |
907 | | 43, 43, 45, 46, 47, 48, 49, 40, 50, 51, |
908 | | 40, 52, 40, 40, 53, 40, 40, 54, 55, 56, |
909 | | |
910 | | 57, 58, 40, 59, 40, 40, 40, 40, 46, 47, |
911 | | 48, 49, 40, 50, 51, 40, 52, 40, 40, 53, |
912 | | 40, 40, 54, 55, 56, 57, 58, 40, 59, 40, |
913 | | 40, 40, 38, 39, 60, 17, 18, 61, 62, 60, |
914 | | 63, 63, 63, 63, 64, 63, 63, 63, 63, 65, |
915 | | 66, 67, 68, 69, 60, 70, 71, 60, 72, 60, |
916 | | 60, 73, 60, 60, 74, 75, 76, 77, 78, 60, |
917 | | 79, 60, 60, 60, 60, 66, 67, 68, 69, 60, |
918 | | 70, 71, 60, 72, 60, 60, 73, 60, 60, 74, |
919 | | 75, 76, 77, 78, 60, 79, 60, 60, 60, 38, |
920 | | |
921 | | 39, 81, 82, 83, 83, 92, 93, 92, 93, 101, |
922 | | 101, 101, 101, 101, 101, 101, 101, 101, 84, 85, |
923 | | 102, 106, 86, 110, 112, 107, 113, 114, 108, 111, |
924 | | 123, 87, 103, 88, 132, 133, 101, 99, 109, 104, |
925 | | 138, 130, 105, 84, 85, 102, 106, 86, 110, 112, |
926 | | 107, 113, 114, 108, 111, 123, 87, 103, 88, 81, |
927 | | 82, 83, 83, 109, 104, 115, 130, 105, 97, 116, |
928 | | 136, 131, 117, 124, 120, 144, 84, 85, 152, 125, |
929 | | 86, 118, 119, 121, 126, 122, 148, 161, 127, 87, |
930 | | 115, 88, 149, 128, 116, 129, 131, 117, 124, 120, |
931 | | |
932 | | 144, 84, 85, 152, 125, 86, 118, 119, 121, 126, |
933 | | 122, 148, 161, 127, 87, 727, 88, 149, 128, 171, |
934 | | 129, 139, 139, 139, 139, 139, 139, 139, 139, 139, |
935 | | 139, 139, 139, 139, 139, 139, 139, 139, 139, 141, |
936 | | 145, 155, 140, 146, 153, 150, 142, 151, 154, 143, |
937 | | 156, 157, 158, 147, 171, 168, 169, 173, 401, 174, |
938 | | 171, 159, 302, 160, 141, 145, 155, 140, 146, 153, |
939 | | 150, 142, 151, 154, 143, 156, 157, 158, 147, 162, |
940 | | 168, 169, 165, 183, 211, 163, 159, 166, 160, 167, |
941 | | 164, 176, 726, 214, 177, 132, 133, 97, 171, 136, |
942 | | |
943 | | 171, 171, 534, 97, 162, 136, 714, 165, 183, 211, |
944 | | 163, 173, 166, 174, 167, 164, 171, 171, 214, 191, |
945 | | 200, 178, 178, 178, 178, 178, 178, 178, 178, 178, |
946 | | 171, 171, 171, 171, 171, 178, 178, 178, 178, 178, |
947 | | 178, 178, 178, 178, 191, 200, 207, 179, 171, 184, |
948 | | 187, 173, 185, 174, 180, 189, 188, 190, 215, 424, |
949 | | 425, 181, 186, 171, 182, 447, 448, 197, 171, 171, |
950 | | 216, 207, 179, 171, 184, 187, 198, 185, 199, 180, |
951 | | 189, 188, 190, 215, 171, 201, 181, 186, 194, 182, |
952 | | 192, 202, 197, 171, 193, 216, 203, 195, 196, 222, |
953 | | |
954 | | 223, 198, 224, 199, 225, 226, 227, 204, 208, 212, |
955 | | 201, 228, 205, 194, 206, 192, 202, 213, 173, 193, |
956 | | 174, 203, 195, 196, 222, 223, 171, 224, 229, 225, |
957 | | 226, 227, 204, 208, 212, 230, 228, 205, 231, 206, |
958 | | 232, 233, 213, 101, 101, 101, 101, 101, 101, 101, |
959 | | 101, 101, 234, 229, 235, 236, 237, 238, 241, 242, |
960 | | 230, 243, 244, 231, 245, 232, 233, 246, 247, 248, |
961 | | 249, 239, 250, 251, 252, 99, 171, 234, 138, 235, |
962 | | 236, 237, 238, 241, 242, 99, 243, 244, 138, 245, |
963 | | 253, 254, 246, 247, 248, 249, 239, 250, 251, 252, |
964 | | |
965 | | 139, 139, 139, 139, 139, 139, 139, 139, 139, 255, |
966 | | 256, 257, 258, 259, 260, 253, 254, 261, 262, 263, |
967 | | 264, 265, 266, 267, 268, 272, 269, 273, 274, 275, |
968 | | 276, 277, 278, 279, 255, 256, 257, 258, 259, 260, |
969 | | 270, 280, 261, 262, 263, 264, 265, 266, 267, 268, |
970 | | 272, 269, 273, 274, 275, 276, 277, 278, 279, 281, |
971 | | 282, 283, 171, 171, 176, 270, 280, 177, 176, 176, |
972 | | 171, 177, 177, 171, 171, 171, 171, 171, 171, 171, |
973 | | 171, 287, 285, 171, 281, 282, 283, 171, 171, 171, |
974 | | 171, 171, 178, 178, 178, 178, 178, 178, 178, 178, |
975 | | |
976 | | 178, 284, 288, 286, 291, 293, 287, 285, 289, 290, |
977 | | 171, 299, 292, 294, 171, 171, 296, 171, 171, 171, |
978 | | 298, 303, 171, 171, 171, 295, 284, 288, 286, 291, |
979 | | 293, 171, 297, 289, 290, 300, 299, 292, 294, 171, |
980 | | 171, 296, 305, 171, 306, 298, 303, 310, 315, 301, |
981 | | 295, 171, 171, 304, 171, 312, 316, 297, 309, 317, |
982 | | 300, 318, 308, 319, 320, 307, 321, 305, 311, 306, |
983 | | 322, 313, 310, 315, 301, 323, 324, 314, 304, 325, |
984 | | 312, 316, 326, 309, 317, 327, 318, 308, 319, 320, |
985 | | 307, 321, 328, 311, 329, 322, 313, 332, 333, 330, |
986 | | |
987 | | 323, 324, 314, 331, 325, 334, 335, 326, 336, 337, |
988 | | 327, 338, 339, 340, 341, 342, 343, 328, 344, 329, |
989 | | 346, 348, 332, 333, 330, 349, 350, 351, 331, 352, |
990 | | 334, 335, 353, 336, 337, 354, 338, 339, 340, 341, |
991 | | 342, 343, 355, 344, 356, 346, 348, 357, 360, 358, |
992 | | 349, 350, 351, 359, 352, 361, 362, 353, 363, 364, |
993 | | 354, 365, 366, 367, 368, 369, 370, 355, 371, 356, |
994 | | 372, 374, 357, 360, 358, 376, 171, 171, 359, 171, |
995 | | 361, 362, 171, 363, 364, 171, 365, 366, 367, 368, |
996 | | 369, 370, 171, 371, 378, 372, 374, 377, 171, 379, |
997 | | |
998 | | 376, 382, 171, 171, 171, 171, 171, 380, 171, 171, |
999 | | 171, 171, 171, 381, 383, 171, 171, 171, 171, 378, |
1000 | | 384, 385, 377, 386, 379, 390, 382, 387, 389, 392, |
1001 | | 171, 394, 380, 422, 388, 497, 391, 396, 381, 383, |
1002 | | 393, 171, 400, 171, 171, 384, 385, 395, 386, 397, |
1003 | | 390, 399, 387, 389, 392, 407, 394, 171, 171, 388, |
1004 | | 398, 391, 396, 404, 408, 393, 405, 400, 409, 406, |
1005 | | 410, 411, 395, 412, 397, 402, 399, 413, 414, 415, |
1006 | | 407, 416, 403, 417, 419, 398, 420, 421, 404, 408, |
1007 | | 423, 405, 426, 409, 406, 410, 411, 427, 412, 428, |
1008 | | |
1009 | | 402, 429, 413, 414, 415, 431, 416, 432, 417, 419, |
1010 | | 433, 420, 421, 434, 435, 423, 436, 426, 437, 438, |
1011 | | 439, 440, 427, 441, 428, 443, 429, 444, 445, 446, |
1012 | | 431, 449, 432, 450, 451, 433, 452, 454, 434, 435, |
1013 | | 455, 436, 456, 437, 438, 439, 440, 457, 441, 458, |
1014 | | 443, 171, 444, 445, 446, 171, 449, 171, 450, 451, |
1015 | | 171, 452, 454, 171, 171, 455, 171, 456, 171, 171, |
1016 | | 171, 171, 457, 171, 458, 171, 171, 171, 459, 471, |
1017 | | 472, 171, 171, 460, 171, 462, 470, 461, 171, 467, |
1018 | | 171, 171, 464, 483, 653, 654, 475, 476, 484, 463, |
1019 | | |
1020 | | 466, 171, 488, 459, 468, 465, 473, 479, 460, 474, |
1021 | | 462, 470, 461, 480, 467, 481, 477, 464, 483, 478, |
1022 | | 482, 475, 476, 484, 463, 466, 486, 488, 489, 468, |
1023 | | 487, 473, 479, 485, 474, 485, 485, 490, 480, 491, |
1024 | | 481, 492, 493, 494, 478, 482, 495, 496, 498, 501, |
1025 | | 502, 486, 503, 489, 504, 487, 505, 506, 507, 508, |
1026 | | 509, 510, 490, 511, 491, 512, 492, 493, 494, 513, |
1027 | | 514, 495, 496, 498, 501, 502, 515, 503, 518, 504, |
1028 | | 519, 505, 506, 507, 508, 509, 510, 520, 511, 521, |
1029 | | 512, 522, 523, 524, 513, 514, 525, 171, 171, 171, |
1030 | | |
1031 | | 171, 515, 171, 518, 171, 519, 171, 469, 171, 532, |
1032 | | 171, 171, 520, 171, 521, 535, 522, 523, 524, 526, |
1033 | | 171, 525, 171, 171, 171, 533, 171, 528, 538, 531, |
1034 | | 544, 171, 529, 530, 527, 545, 536, 546, 543, 547, |
1035 | | 537, 669, 549, 171, 526, 540, 550, 551, 552, 539, |
1036 | | 533, 542, 528, 538, 531, 544, 541, 529, 530, 527, |
1037 | | 545, 536, 546, 543, 547, 537, 548, 549, 548, 548, |
1038 | | 540, 550, 551, 552, 539, 553, 542, 554, 555, 556, |
1039 | | 559, 541, 560, 561, 562, 563, 564, 565, 566, 567, |
1040 | | 568, 569, 570, 571, 574, 575, 576, 577, 578, 579, |
1041 | | |
1042 | | 553, 580, 554, 555, 556, 559, 171, 560, 561, 562, |
1043 | | 563, 564, 565, 566, 567, 568, 569, 570, 571, 574, |
1044 | | 575, 576, 577, 578, 579, 581, 580, 171, 171, 171, |
1045 | | 171, 171, 171, 171, 171, 171, 171, 587, 588, 171, |
1046 | | 171, 171, 171, 171, 596, 597, 599, 584, 582, 583, |
1047 | | 581, 585, 598, 586, 598, 598, 600, 589, 601, 602, |
1048 | | 603, 590, 594, 593, 604, 591, 592, 171, 595, 596, |
1049 | | 597, 599, 584, 582, 583, 609, 585, 605, 586, 610, |
1050 | | 606, 600, 589, 601, 602, 603, 590, 594, 593, 604, |
1051 | | 591, 592, 607, 595, 611, 608, 612, 613, 614, 615, |
1052 | | |
1053 | | 609, 616, 617, 619, 610, 618, 620, 621, 622, 623, |
1054 | | 624, 625, 171, 171, 171, 171, 171, 171, 171, 611, |
1055 | | 171, 612, 613, 614, 615, 629, 616, 171, 630, 639, |
1056 | | 633, 640, 621, 622, 623, 624, 625, 627, 635, 171, |
1057 | | 641, 642, 626, 628, 631, 637, 634, 632, 636, 638, |
1058 | | 643, 638, 638, 650, 639, 633, 640, 647, 648, 649, |
1059 | | 651, 652, 627, 635, 655, 641, 642, 626, 628, 662, |
1060 | | 637, 634, 663, 636, 664, 643, 665, 666, 650, 659, |
1061 | | 660, 661, 171, 171, 171, 651, 652, 171, 171, 655, |
1062 | | 171, 171, 668, 670, 662, 171, 680, 663, 679, 664, |
1063 | | |
1064 | | 679, 679, 681, 671, 672, 673, 171, 667, 682, 676, |
1065 | | 683, 687, 677, 678, 691, 688, 675, 674, 692, 696, |
1066 | | 700, 680, 171, 697, 171, 171, 171, 681, 171, 703, |
1067 | | 710, 171, 667, 682, 676, 683, 171, 702, 707, 691, |
1068 | | 171, 675, 674, 692, 701, 700, 171, 705, 711, 704, |
1069 | | 712, 706, 718, 708, 716, 710, 709, 713, 719, 713, |
1070 | | 713, 715, 720, 715, 715, 721, 722, 723, 724, 701, |
1071 | | 725, 717, 728, 711, 730, 712, 732, 718, 733, 716, |
1072 | | 729, 709, 731, 719, 734, 735, 736, 720, 737, 738, |
1073 | | 721, 722, 723, 724, 739, 725, 717, 728, 740, 730, |
1074 | | |
1075 | | 741, 732, 742, 733, 743, 729, 171, 731, 699, 734, |
1076 | | 735, 736, 698, 737, 738, 744, 695, 744, 744, 739, |
1077 | | 694, 693, 690, 740, 689, 741, 686, 742, 745, 743, |
1078 | | 745, 745, 746, 685, 746, 746, 747, 684, 747, 747, |
1079 | | 80, 80, 80, 80, 80, 89, 89, 89, 89, 89, |
1080 | | 91, 91, 91, 91, 91, 94, 94, 94, 94, 94, |
1081 | | 97, 97, 171, 97, 97, 99, 99, 171, 99, 99, |
1082 | | 134, 171, 658, 134, 134, 135, 135, 657, 135, 135, |
1083 | | 137, 137, 656, 137, 137, 170, 170, 646, 170, 170, |
1084 | | 172, 172, 645, 172, 172, 175, 175, 644, 175, 175, |
1085 | | |
1086 | | 209, 171, 171, 171, 209, 217, 217, 171, 217, 217, |
1087 | | 218, 171, 171, 218, 218, 220, 220, 220, 220, 220, |
1088 | | 171, 171, 573, 572, 558, 557, 171, 171, 171, 171, |
1089 | | 171, 171, 517, 516, 500, 499, 171, 171, 469, 171, |
1090 | | 171, 171, 453, 422, 442, 430, 422, 418, 171, 171, |
1091 | | 171, 171, 375, 373, 347, 345, 221, 219, 210, 171, |
1092 | | 171, 271, 240, 100, 100, 98, 98, 96, 221, 219, |
1093 | | 210, 171, 171, 100, 98, 96, 748, 95, 95, 90, |
1094 | | 90, 15, 748, 748, 748, 748, 748, 748, 748, 748, |
1095 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
1096 | | |
1097 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
1098 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
1099 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
1100 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
1101 | | 748, 748, 748, 748, 748, 748, 748 |
1102 | | } ; |
1103 | | |
1104 | | static const flex_int16_t yy_chk[1848] = |
1105 | | { 0, |
1106 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
1107 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
1108 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
1109 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
1110 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
1111 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
1112 | | 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, |
1113 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
1114 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
1115 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
1116 | | |
1117 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
1118 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
1119 | | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
1120 | | 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, |
1121 | | 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
1122 | | 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
1123 | | 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
1124 | | 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
1125 | | 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
1126 | | 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, |
1127 | | |
1128 | | 6, 7, 7, 7, 7, 11, 11, 12, 12, 21, |
1129 | | 21, 21, 21, 21, 21, 21, 21, 21, 7, 7, |
1130 | | 22, 25, 7, 27, 28, 26, 28, 29, 26, 27, |
1131 | | 33, 7, 24, 7, 38, 38, 755, 42, 26, 24, |
1132 | | 42, 36, 24, 7, 7, 22, 25, 7, 27, 28, |
1133 | | 26, 28, 29, 26, 27, 33, 7, 24, 7, 8, |
1134 | | 8, 8, 8, 26, 24, 30, 36, 24, 41, 30, |
1135 | | 41, 37, 31, 34, 32, 47, 8, 8, 51, 34, |
1136 | | 8, 31, 31, 32, 34, 32, 49, 55, 35, 8, |
1137 | | 30, 8, 49, 35, 30, 35, 37, 31, 34, 32, |
1138 | | |
1139 | | 47, 8, 8, 51, 34, 8, 31, 31, 32, 34, |
1140 | | 32, 49, 55, 35, 8, 725, 8, 49, 35, 311, |
1141 | | 35, 43, 43, 43, 43, 43, 43, 43, 43, 43, |
1142 | | 44, 44, 44, 44, 44, 44, 44, 44, 44, 46, |
1143 | | 48, 53, 44, 48, 52, 50, 46, 50, 52, 46, |
1144 | | 53, 53, 54, 48, 196, 58, 59, 61, 311, 61, |
1145 | | 67, 54, 196, 54, 46, 48, 53, 44, 48, 52, |
1146 | | 50, 46, 50, 52, 46, 53, 53, 54, 48, 56, |
1147 | | 58, 59, 57, 67, 84, 56, 54, 57, 54, 57, |
1148 | | 56, 62, 724, 86, 62, 132, 132, 135, 471, 135, |
1149 | | |
1150 | | 71, 75, 471, 136, 56, 136, 711, 57, 67, 84, |
1151 | | 56, 172, 57, 172, 57, 56, 63, 78, 86, 71, |
1152 | | 75, 63, 63, 63, 63, 63, 63, 63, 63, 63, |
1153 | | 64, 66, 70, 69, 68, 64, 64, 64, 64, 64, |
1154 | | 64, 64, 64, 64, 71, 75, 78, 64, 74, 68, |
1155 | | 69, 173, 68, 173, 66, 70, 69, 70, 87, 336, |
1156 | | 336, 66, 68, 72, 66, 364, 364, 74, 76, 73, |
1157 | | 88, 78, 64, 709, 68, 69, 74, 68, 74, 66, |
1158 | | 70, 69, 70, 87, 77, 76, 66, 68, 73, 66, |
1159 | | 72, 76, 74, 79, 72, 88, 76, 73, 73, 102, |
1160 | | |
1161 | | 103, 74, 104, 74, 105, 106, 107, 77, 79, 85, |
1162 | | 76, 108, 77, 73, 77, 72, 76, 85, 174, 72, |
1163 | | 174, 76, 73, 73, 102, 103, 708, 104, 109, 105, |
1164 | | 106, 107, 77, 79, 85, 110, 108, 77, 111, 77, |
1165 | | 112, 113, 85, 101, 101, 101, 101, 101, 101, 101, |
1166 | | 101, 101, 114, 109, 115, 116, 117, 118, 120, 121, |
1167 | | 110, 122, 123, 111, 124, 112, 113, 125, 126, 127, |
1168 | | 128, 118, 129, 130, 131, 137, 707, 114, 137, 115, |
1169 | | 116, 117, 118, 120, 121, 138, 122, 123, 138, 124, |
1170 | | 140, 141, 125, 126, 127, 128, 118, 129, 130, 131, |
1171 | | |
1172 | | 139, 139, 139, 139, 139, 139, 139, 139, 139, 142, |
1173 | | 143, 144, 145, 146, 147, 140, 141, 148, 149, 150, |
1174 | | 151, 152, 153, 154, 155, 158, 156, 159, 160, 161, |
1175 | | 162, 163, 164, 165, 142, 143, 144, 145, 146, 147, |
1176 | | 156, 166, 148, 149, 150, 151, 152, 153, 154, 155, |
1177 | | 158, 156, 159, 160, 161, 162, 163, 164, 165, 167, |
1178 | | 168, 169, 180, 182, 175, 156, 166, 175, 176, 177, |
1179 | | 706, 176, 177, 181, 188, 183, 184, 185, 186, 179, |
1180 | | 194, 182, 180, 187, 167, 168, 169, 178, 189, 191, |
1181 | | 193, 197, 178, 178, 178, 178, 178, 178, 178, 178, |
1182 | | |
1183 | | 178, 179, 183, 181, 186, 188, 182, 180, 184, 185, |
1184 | | 190, 194, 187, 189, 192, 204, 191, 195, 200, 705, |
1185 | | 193, 197, 198, 199, 202, 190, 179, 183, 181, 186, |
1186 | | 188, 203, 192, 184, 185, 195, 194, 187, 189, 201, |
1187 | | 206, 191, 199, 208, 200, 193, 197, 204, 211, 195, |
1188 | | 190, 205, 704, 198, 207, 206, 212, 192, 203, 213, |
1189 | | 195, 214, 202, 215, 216, 201, 223, 199, 205, 200, |
1190 | | 224, 207, 204, 211, 195, 225, 226, 208, 198, 227, |
1191 | | 206, 212, 228, 203, 213, 229, 214, 202, 215, 216, |
1192 | | 201, 223, 231, 205, 232, 224, 207, 234, 235, 233, |
1193 | | |
1194 | | 225, 226, 208, 233, 227, 236, 237, 228, 238, 239, |
1195 | | 229, 241, 242, 243, 245, 246, 247, 231, 248, 232, |
1196 | | 250, 252, 234, 235, 233, 254, 255, 256, 233, 257, |
1197 | | 236, 237, 258, 238, 239, 259, 241, 242, 243, 245, |
1198 | | 246, 247, 260, 248, 262, 250, 252, 263, 265, 264, |
1199 | | 254, 255, 256, 264, 257, 266, 267, 258, 268, 269, |
1200 | | 259, 270, 272, 273, 274, 276, 277, 260, 278, 262, |
1201 | | 279, 281, 263, 265, 264, 283, 287, 285, 264, 286, |
1202 | | 266, 267, 290, 268, 269, 291, 270, 272, 273, 274, |
1203 | | 276, 277, 288, 278, 286, 279, 281, 285, 289, 287, |
1204 | | |
1205 | | 283, 290, 294, 293, 296, 299, 295, 288, 298, 297, |
1206 | | 300, 303, 301, 289, 291, 304, 305, 310, 307, 286, |
1207 | | 293, 294, 285, 295, 287, 298, 290, 295, 297, 300, |
1208 | | 309, 303, 288, 422, 296, 422, 299, 305, 289, 291, |
1209 | | 301, 308, 310, 313, 314, 293, 294, 304, 295, 307, |
1210 | | 298, 309, 295, 297, 300, 316, 303, 703, 312, 296, |
1211 | | 308, 299, 305, 314, 317, 301, 315, 310, 318, 315, |
1212 | | 319, 320, 304, 322, 307, 312, 309, 323, 324, 325, |
1213 | | 316, 326, 313, 327, 331, 308, 332, 333, 314, 317, |
1214 | | 335, 315, 337, 318, 315, 319, 320, 338, 322, 339, |
1215 | | |
1216 | | 312, 340, 323, 324, 325, 343, 326, 344, 327, 331, |
1217 | | 345, 332, 333, 346, 347, 335, 350, 337, 351, 352, |
1218 | | 353, 354, 338, 355, 339, 359, 340, 360, 361, 363, |
1219 | | 343, 365, 344, 366, 367, 345, 368, 371, 346, 347, |
1220 | | 372, 350, 373, 351, 352, 353, 354, 374, 355, 375, |
1221 | | 359, 378, 360, 361, 363, 379, 365, 380, 366, 367, |
1222 | | 381, 368, 371, 382, 383, 372, 384, 373, 389, 387, |
1223 | | 388, 391, 374, 392, 375, 395, 393, 398, 378, 392, |
1224 | | 392, 394, 396, 379, 399, 381, 391, 380, 400, 388, |
1225 | | 401, 402, 383, 405, 613, 613, 395, 396, 406, 382, |
1226 | | |
1227 | | 387, 403, 409, 378, 389, 384, 393, 400, 379, 394, |
1228 | | 381, 391, 380, 401, 388, 402, 398, 383, 405, 399, |
1229 | | 403, 395, 396, 406, 382, 387, 408, 409, 410, 389, |
1230 | | 408, 393, 400, 407, 394, 407, 407, 411, 401, 412, |
1231 | | 402, 414, 415, 416, 399, 403, 417, 418, 423, 426, |
1232 | | 427, 408, 428, 410, 429, 408, 430, 431, 433, 435, |
1233 | | 436, 438, 411, 439, 412, 440, 414, 415, 416, 441, |
1234 | | 442, 417, 418, 423, 426, 427, 446, 428, 449, 429, |
1235 | | 450, 430, 431, 433, 435, 436, 438, 451, 439, 452, |
1236 | | 440, 453, 454, 456, 441, 442, 458, 461, 459, 462, |
1237 | | |
1238 | | 463, 446, 464, 449, 470, 450, 465, 469, 473, 469, |
1239 | | 474, 472, 451, 475, 452, 472, 453, 454, 456, 459, |
1240 | | 476, 458, 477, 482, 480, 470, 478, 462, 475, 465, |
1241 | | 483, 630, 463, 464, 461, 484, 473, 486, 482, 487, |
1242 | | 474, 630, 489, 702, 459, 477, 490, 491, 493, 476, |
1243 | | 470, 480, 462, 475, 465, 483, 478, 463, 464, 461, |
1244 | | 484, 473, 486, 482, 487, 474, 488, 489, 488, 488, |
1245 | | 477, 490, 491, 493, 476, 494, 480, 495, 496, 498, |
1246 | | 501, 478, 502, 503, 505, 506, 507, 508, 509, 511, |
1247 | | 512, 513, 514, 515, 518, 519, 520, 522, 523, 524, |
1248 | | |
1249 | | 494, 525, 495, 496, 498, 501, 526, 502, 503, 505, |
1250 | | 506, 507, 508, 509, 511, 512, 513, 514, 515, 518, |
1251 | | 519, 520, 522, 523, 524, 526, 525, 528, 530, 529, |
1252 | | 534, 535, 536, 531, 533, 537, 538, 534, 535, 540, |
1253 | | 541, 543, 542, 701, 544, 545, 547, 530, 528, 529, |
1254 | | 526, 531, 546, 533, 546, 546, 549, 536, 550, 551, |
1255 | | 553, 537, 542, 541, 554, 538, 540, 678, 543, 544, |
1256 | | 545, 547, 530, 528, 529, 559, 531, 557, 533, 560, |
1257 | | 557, 549, 536, 550, 551, 553, 537, 542, 541, 554, |
1258 | | 538, 540, 558, 543, 562, 558, 563, 564, 566, 568, |
1259 | | |
1260 | | 559, 569, 572, 573, 560, 572, 573, 574, 575, 577, |
1261 | | 578, 579, 581, 584, 583, 589, 593, 594, 592, 562, |
1262 | | 587, 563, 564, 566, 568, 587, 569, 590, 587, 597, |
1263 | | 589, 599, 574, 575, 577, 578, 579, 583, 592, 588, |
1264 | | 600, 601, 581, 584, 588, 594, 590, 588, 593, 596, |
1265 | | 603, 596, 596, 610, 597, 589, 599, 608, 608, 608, |
1266 | | 611, 612, 583, 592, 615, 600, 601, 581, 584, 622, |
1267 | | 594, 590, 623, 593, 624, 603, 625, 625, 610, 620, |
1268 | | 620, 620, 627, 629, 631, 611, 612, 634, 635, 615, |
1269 | | 636, 677, 629, 631, 622, 632, 640, 623, 639, 624, |
1270 | | |
1271 | | 639, 639, 641, 632, 632, 632, 637, 627, 642, 636, |
1272 | | 643, 647, 637, 637, 652, 647, 635, 634, 655, 659, |
1273 | | 664, 640, 669, 659, 668, 667, 676, 641, 675, 669, |
1274 | | 680, 672, 627, 642, 636, 643, 670, 668, 672, 652, |
1275 | | 671, 635, 634, 655, 667, 664, 673, 671, 681, 670, |
1276 | | 682, 671, 716, 673, 714, 680, 676, 710, 717, 710, |
1277 | | 710, 712, 718, 712, 712, 719, 720, 721, 722, 667, |
1278 | | 723, 714, 726, 681, 727, 682, 728, 716, 729, 714, |
1279 | | 726, 676, 727, 717, 730, 731, 732, 718, 733, 734, |
1280 | | 719, 720, 721, 722, 735, 723, 714, 726, 736, 727, |
1281 | | |
1282 | | 737, 728, 738, 729, 739, 726, 674, 727, 661, 730, |
1283 | | 731, 732, 660, 733, 734, 740, 658, 740, 740, 735, |
1284 | | 657, 656, 649, 736, 648, 737, 646, 738, 741, 739, |
1285 | | 741, 741, 742, 645, 742, 742, 743, 644, 743, 743, |
1286 | | 749, 749, 749, 749, 749, 750, 750, 750, 750, 750, |
1287 | | 751, 751, 751, 751, 751, 752, 752, 752, 752, 752, |
1288 | | 753, 753, 633, 753, 753, 754, 754, 628, 754, 754, |
1289 | | 756, 626, 619, 756, 756, 757, 757, 618, 757, 757, |
1290 | | 758, 758, 617, 758, 758, 759, 759, 607, 759, 759, |
1291 | | 760, 760, 606, 760, 760, 761, 761, 605, 761, 761, |
1292 | | |
1293 | | 762, 595, 591, 586, 762, 763, 763, 585, 763, 763, |
1294 | | 764, 582, 539, 764, 764, 765, 765, 765, 765, 765, |
1295 | | 532, 527, 517, 516, 500, 499, 481, 479, 468, 467, |
1296 | | 466, 460, 448, 447, 425, 424, 404, 397, 390, 386, |
1297 | | 385, 377, 370, 362, 356, 342, 334, 328, 306, 302, |
1298 | | 292, 284, 282, 280, 251, 249, 220, 219, 210, 171, |
1299 | | 170, 157, 119, 100, 99, 98, 97, 96, 94, 92, |
1300 | | 81, 65, 60, 20, 19, 17, 15, 14, 13, 10, |
1301 | | 9, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
1302 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
1303 | | |
1304 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
1305 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
1306 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
1307 | | 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, |
1308 | | 748, 748, 748, 748, 748, 748, 748 |
1309 | | } ; |
1310 | | |
1311 | | /* Table of booleans, true if rule could match eol. */ |
1312 | | static const flex_int32_t yy_rule_can_match_eol[75] = |
1313 | | { 0, |
1314 | | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1315 | | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1316 | | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1317 | | 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, }; |
1318 | | |
1319 | | /* The intent behind this definition is that it'll catch |
1320 | | * any uses of REJECT which flex missed. |
1321 | | */ |
1322 | | #define REJECT reject_used_but_not_detected |
1323 | | #define yymore() yymore_used_but_not_detected |
1324 | 17.5k | #define YY_MORE_ADJ 0 |
1325 | | #define YY_RESTORE_YY_MORE_OFFSET |
1326 | | #line 1 "cue_scanner.l" |
1327 | | #line 2 "cue_scanner.l" |
1328 | | /* |
1329 | | * Copyright (c) 2004, 2005, 2006, 2007, Svend Sorensen |
1330 | | * Copyright (c) 2009, 2010 Jochen Keil |
1331 | | * For license terms, see the file COPYING in this distribution. |
1332 | | */ |
1333 | | |
1334 | | #include <limits.h> |
1335 | | #include <stdio.h> |
1336 | | #include <stdlib.h> |
1337 | | #include <string.h> |
1338 | | |
1339 | | #include "cd.h" |
1340 | | #include "cue_parser_state.h" |
1341 | | #include "cue_parser.h" |
1342 | | |
1343 | | /* Store a token value in the per-parse string buffer, truncating it if needed. */ |
1344 | | static char *set_string(struct cue_parser_state *st, const char *s, size_t len) |
1345 | 7.81k | { |
1346 | 7.81k | if (len > sizeof(st->string) - 1) |
1347 | 1.06k | len = sizeof(st->string) - 1; |
1348 | 7.81k | memcpy(st->string, s, len); |
1349 | 7.81k | st->string[len] = '\0'; |
1350 | 7.81k | return st->string; |
1351 | 7.81k | } |
1352 | | |
1353 | | /* |
1354 | | * Convert a run of decimal digits. Every number in a cue sheet must fit |
1355 | | * an int, so anything larger is returned as -1, which the parser rejects. |
1356 | | * (Saturating at LONG_MAX does not work where long is as wide as int: |
1357 | | * LONG_MAX == INT_MAX there, and the value would be taken as valid.) |
1358 | | */ |
1359 | | static long parse_number(const char *s) |
1360 | 100k | { |
1361 | 100k | long v = 0; |
1362 | | |
1363 | 721k | for (; *s >= '0' && *s <= '9'; s++) { |
1364 | 621k | int d = *s - '0'; |
1365 | 621k | if (v > (INT_MAX - d) / 10) |
1366 | 1.08k | return -1; |
1367 | 620k | v = v * 10 + d; |
1368 | 620k | } |
1369 | 99.4k | return v; |
1370 | 100k | } |
1371 | | #line 1372 "/work/cue_scanner.c" |
1372 | | /* what may follow a known REM keyword */ |
1373 | | #define YY_NO_INPUT 1 |
1374 | | /* every state must handle every input; flex refuses to build otherwise */ |
1375 | | |
1376 | | #line 1377 "/work/cue_scanner.c" |
1377 | | |
1378 | 285k | #define INITIAL 0 |
1379 | 3.52k | #define NAME 1 |
1380 | 6.10k | #define TEXT 2 |
1381 | 3.55k | #define REM 3 |
1382 | 764 | #define REMSKIP 4 |
1383 | 1.14k | #define RPG 5 |
1384 | 536 | #define SKIP 6 |
1385 | | |
1386 | | #ifndef YY_NO_UNISTD_H |
1387 | | /* Special case for "unistd.h", since it is non-ANSI. We include it way |
1388 | | * down here because we want the user's section 1 to have been scanned first. |
1389 | | * The user has a chance to override it with an option. |
1390 | | */ |
1391 | | #include <unistd.h> |
1392 | | #endif |
1393 | | |
1394 | | #define YY_EXTRA_TYPE struct cue_parser_state * |
1395 | | |
1396 | | /* Holds the entire state of the reentrant scanner. */ |
1397 | | struct yyguts_t |
1398 | | { |
1399 | | |
1400 | | /* User-defined. Not touched by flex. */ |
1401 | | YY_EXTRA_TYPE yyextra_r; |
1402 | | |
1403 | | /* The rest are the same as the globals declared in the non-reentrant scanner. */ |
1404 | | FILE *yyin_r, *yyout_r; |
1405 | | size_t yy_buffer_stack_top; /**< index of top of stack. */ |
1406 | | size_t yy_buffer_stack_max; /**< capacity of stack. */ |
1407 | | YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */ |
1408 | | char yy_hold_char; |
1409 | | int yy_n_chars; |
1410 | | int yyleng_r; |
1411 | | char *yy_c_buf_p; |
1412 | | int yy_init; |
1413 | | int yy_start; |
1414 | | int yy_did_buffer_switch_on_eof; |
1415 | | int yy_start_stack_ptr; |
1416 | | int yy_start_stack_depth; |
1417 | | int *yy_start_stack; |
1418 | | yy_state_type yy_last_accepting_state; |
1419 | | char* yy_last_accepting_cpos; |
1420 | | |
1421 | | int yylineno_r; |
1422 | | int yy_flex_debug_r; |
1423 | | |
1424 | | char *yytext_r; |
1425 | | int yy_more_flag; |
1426 | | int yy_more_len; |
1427 | | |
1428 | | YYSTYPE * yylval_r; |
1429 | | |
1430 | | }; /* end struct yyguts_t */ |
1431 | | |
1432 | | static int yy_init_globals ( yyscan_t yyscanner ); |
1433 | | |
1434 | | /* This must go here because YYSTYPE and YYLTYPE are included |
1435 | | * from bison output in section 1.*/ |
1436 | 797k | # define yylval yyg->yylval_r |
1437 | | |
1438 | | int yylex_init (yyscan_t* scanner); |
1439 | | |
1440 | | int yylex_init_extra ( YY_EXTRA_TYPE user_defined, yyscan_t* scanner); |
1441 | | |
1442 | | /* Accessor methods to globals. |
1443 | | These are made visible to non-reentrant scanners for convenience. */ |
1444 | | |
1445 | | int yylex_destroy ( yyscan_t yyscanner ); |
1446 | | |
1447 | | int yyget_debug ( yyscan_t yyscanner ); |
1448 | | |
1449 | | void yyset_debug ( int debug_flag , yyscan_t yyscanner ); |
1450 | | |
1451 | | YY_EXTRA_TYPE yyget_extra ( yyscan_t yyscanner ); |
1452 | | |
1453 | | void yyset_extra ( YY_EXTRA_TYPE user_defined , yyscan_t yyscanner ); |
1454 | | |
1455 | | FILE *yyget_in ( yyscan_t yyscanner ); |
1456 | | |
1457 | | void yyset_in ( FILE * _in_str , yyscan_t yyscanner ); |
1458 | | |
1459 | | FILE *yyget_out ( yyscan_t yyscanner ); |
1460 | | |
1461 | | void yyset_out ( FILE * _out_str , yyscan_t yyscanner ); |
1462 | | |
1463 | | int yyget_leng ( yyscan_t yyscanner ); |
1464 | | |
1465 | | char *yyget_text ( yyscan_t yyscanner ); |
1466 | | |
1467 | | int yyget_lineno ( yyscan_t yyscanner ); |
1468 | | |
1469 | | void yyset_lineno ( int _line_number , yyscan_t yyscanner ); |
1470 | | |
1471 | | int yyget_column ( yyscan_t yyscanner ); |
1472 | | |
1473 | | void yyset_column ( int _column_no , yyscan_t yyscanner ); |
1474 | | |
1475 | | YYSTYPE * yyget_lval ( yyscan_t yyscanner ); |
1476 | | |
1477 | | void yyset_lval ( YYSTYPE * yylval_param , yyscan_t yyscanner ); |
1478 | | |
1479 | | /* Macros after this point can all be overridden by user definitions in |
1480 | | * section 1. |
1481 | | */ |
1482 | | |
1483 | | #ifndef YY_SKIP_YYWRAP |
1484 | | #ifdef __cplusplus |
1485 | | extern "C" int yywrap ( yyscan_t yyscanner ); |
1486 | | #else |
1487 | | extern int yywrap ( yyscan_t yyscanner ); |
1488 | | #endif |
1489 | | #endif |
1490 | | |
1491 | | #ifndef YY_NO_UNPUT |
1492 | | |
1493 | | #endif |
1494 | | |
1495 | | #ifndef yytext_ptr |
1496 | | static void yy_flex_strncpy ( char *, const char *, int , yyscan_t yyscanner); |
1497 | | #endif |
1498 | | |
1499 | | #ifdef YY_NEED_STRLEN |
1500 | | static int yy_flex_strlen ( const char * , yyscan_t yyscanner); |
1501 | | #endif |
1502 | | |
1503 | | #ifndef YY_NO_INPUT |
1504 | | #ifdef __cplusplus |
1505 | | static int yyinput ( yyscan_t yyscanner ); |
1506 | | #else |
1507 | | static int input ( yyscan_t yyscanner ); |
1508 | | #endif |
1509 | | |
1510 | | #endif |
1511 | | |
1512 | | /* Amount of stuff to slurp up with each read. */ |
1513 | | #ifndef YY_READ_BUF_SIZE |
1514 | | #ifdef __ia64__ |
1515 | | /* On IA-64, the buffer size is 16k, not 8k */ |
1516 | | #define YY_READ_BUF_SIZE 16384 |
1517 | | #else |
1518 | 0 | #define YY_READ_BUF_SIZE 8192 |
1519 | | #endif /* __ia64__ */ |
1520 | | #endif |
1521 | | |
1522 | | /* Copy whatever the last rule matched to the standard output. */ |
1523 | | #ifndef ECHO |
1524 | | /* This used to be an fputs(), but since the string might contain NUL's, |
1525 | | * we now use fwrite(). |
1526 | | */ |
1527 | | #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0) |
1528 | | #endif |
1529 | | |
1530 | | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, |
1531 | | * is returned in "result". |
1532 | | */ |
1533 | | #ifndef YY_INPUT |
1534 | | #define YY_INPUT(buf,result,max_size) \ |
1535 | 0 | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ |
1536 | 0 | { \ |
1537 | 0 | int c = '*'; \ |
1538 | 0 | int n; \ |
1539 | 0 | for ( n = 0; n < max_size && \ |
1540 | 0 | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ |
1541 | 0 | buf[n] = (char) c; \ |
1542 | 0 | if ( c == '\n' ) \ |
1543 | 0 | buf[n++] = (char) c; \ |
1544 | 0 | if ( c == EOF && ferror( yyin ) ) \ |
1545 | 0 | YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
1546 | 0 | result = n; \ |
1547 | 0 | } \ |
1548 | 0 | else \ |
1549 | 0 | { \ |
1550 | 0 | errno=0; \ |
1551 | 0 | while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \ |
1552 | 0 | { \ |
1553 | 0 | if( errno != EINTR) \ |
1554 | 0 | { \ |
1555 | 0 | YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
1556 | 0 | break; \ |
1557 | 0 | } \ |
1558 | 0 | errno=0; \ |
1559 | 0 | clearerr(yyin); \ |
1560 | 0 | } \ |
1561 | 0 | }\ |
1562 | | \ |
1563 | | |
1564 | | #endif |
1565 | | |
1566 | | /* No semi-colon after return; correct usage is to write "yyterminate();" - |
1567 | | * we don't want an extra ';' after the "return" because that will cause |
1568 | | * some compilers to complain about unreachable statements. |
1569 | | */ |
1570 | | #ifndef yyterminate |
1571 | 2.38k | #define yyterminate() return YY_NULL |
1572 | | #endif |
1573 | | |
1574 | | /* Number of entries by which start-condition stack grows. */ |
1575 | | #ifndef YY_START_STACK_INCR |
1576 | | #define YY_START_STACK_INCR 25 |
1577 | | #endif |
1578 | | |
1579 | | /* Report a fatal error. */ |
1580 | | #ifndef YY_FATAL_ERROR |
1581 | 0 | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) |
1582 | | #endif |
1583 | | |
1584 | | /* end tables serialization structures and prototypes */ |
1585 | | |
1586 | | /* Default declaration of generated scanner - a define so the user can |
1587 | | * easily add parameters. |
1588 | | */ |
1589 | | #ifndef YY_DECL |
1590 | | #define YY_DECL_IS_OURS 1 |
1591 | | |
1592 | | extern int yylex \ |
1593 | | (YYSTYPE * yylval_param , yyscan_t yyscanner); |
1594 | | |
1595 | | #define YY_DECL int yylex \ |
1596 | | (YYSTYPE * yylval_param , yyscan_t yyscanner) |
1597 | | #endif /* !YY_DECL */ |
1598 | | |
1599 | | /* Code executed at the beginning of each rule, after yytext and yyleng |
1600 | | * have been set up. |
1601 | | */ |
1602 | | #ifndef YY_USER_ACTION |
1603 | | #define YY_USER_ACTION |
1604 | | #endif |
1605 | | |
1606 | | /* Code executed at the end of each rule. */ |
1607 | | #ifndef YY_BREAK |
1608 | 1.66M | #define YY_BREAK /*LINTED*/break; |
1609 | | #endif |
1610 | | |
1611 | | #define YY_RULE_SETUP \ |
1612 | 2.34M | if ( yyleng > 0 ) \ |
1613 | 2.34M | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ |
1614 | 2.34M | (yytext[yyleng - 1] == '\n'); \ |
1615 | 2.34M | YY_USER_ACTION |
1616 | | |
1617 | | /** The main scanner function which does all the work. |
1618 | | */ |
1619 | | YY_DECL |
1620 | 677k | { |
1621 | 677k | yy_state_type yy_current_state; |
1622 | 677k | char *yy_cp, *yy_bp; |
1623 | 677k | int yy_act; |
1624 | 677k | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
1625 | | |
1626 | 677k | yylval = yylval_param; |
1627 | | |
1628 | 677k | if ( !yyg->yy_init ) |
1629 | 2.38k | { |
1630 | 2.38k | yyg->yy_init = 1; |
1631 | | |
1632 | | #ifdef YY_USER_INIT |
1633 | | YY_USER_INIT; |
1634 | | #endif |
1635 | | |
1636 | 2.38k | if ( ! yyg->yy_start ) |
1637 | 2.38k | yyg->yy_start = 1; /* first start state */ |
1638 | | |
1639 | 2.38k | if ( ! yyin ) |
1640 | 2.38k | yyin = stdin; |
1641 | | |
1642 | 2.38k | if ( ! yyout ) |
1643 | 2.38k | yyout = stdout; |
1644 | | |
1645 | 2.38k | if ( ! YY_CURRENT_BUFFER ) { |
1646 | 0 | yyensure_buffer_stack (yyscanner); |
1647 | 0 | YY_CURRENT_BUFFER_LVALUE = |
1648 | 0 | yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); |
1649 | 0 | } |
1650 | | |
1651 | 2.38k | yy_load_buffer_state( yyscanner ); |
1652 | 2.38k | } |
1653 | | |
1654 | 677k | { |
1655 | 677k | #line 71 "cue_scanner.l" |
1656 | | |
1657 | | |
1658 | | |
1659 | 677k | #line 75 "cue_scanner.l" |
1660 | | /* |
1661 | | * A quoted value ends at the last matching quote on its line, so quotes |
1662 | | * inside it are kept (TITLE "Op. 66 "Fantaisie-Impromptu""). It never |
1663 | | * extends past the end of the line. |
1664 | | */ |
1665 | 677k | #line 1666 "/work/cue_scanner.c" |
1666 | | |
1667 | 2.34M | while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ |
1668 | 2.34M | { |
1669 | 2.34M | yy_cp = yyg->yy_c_buf_p; |
1670 | | |
1671 | | /* Support of yytext. */ |
1672 | 2.34M | *yy_cp = yyg->yy_hold_char; |
1673 | | |
1674 | | /* yy_bp points to the position in yy_ch_buf of the start of |
1675 | | * the current run. |
1676 | | */ |
1677 | 2.34M | yy_bp = yy_cp; |
1678 | | |
1679 | 2.34M | yy_current_state = yyg->yy_start; |
1680 | 2.34M | yy_current_state += YY_AT_BOL(); |
1681 | 2.34M | yy_match: |
1682 | 2.34M | do |
1683 | 41.1M | { |
1684 | 41.1M | YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; |
1685 | 41.1M | if ( yy_accept[yy_current_state] ) |
1686 | 28.5M | { |
1687 | 28.5M | yyg->yy_last_accepting_state = yy_current_state; |
1688 | 28.5M | yyg->yy_last_accepting_cpos = yy_cp; |
1689 | 28.5M | } |
1690 | 65.1M | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
1691 | 23.9M | { |
1692 | 23.9M | yy_current_state = (int) yy_def[yy_current_state]; |
1693 | 23.9M | if ( yy_current_state >= 749 ) |
1694 | 21.3M | yy_c = yy_meta[yy_c]; |
1695 | 23.9M | } |
1696 | 41.1M | yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; |
1697 | 41.1M | ++yy_cp; |
1698 | 41.1M | } |
1699 | 41.1M | while ( yy_current_state != 748 ); |
1700 | 2.34M | yy_cp = yyg->yy_last_accepting_cpos; |
1701 | 2.34M | yy_current_state = yyg->yy_last_accepting_state; |
1702 | | |
1703 | 2.34M | yy_find_action: |
1704 | 2.34M | yy_act = yy_accept[yy_current_state]; |
1705 | | |
1706 | 2.34M | YY_DO_BEFORE_ACTION; |
1707 | | |
1708 | 2.34M | if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] ) |
1709 | 278k | { |
1710 | 278k | int yyl; |
1711 | 5.99M | for ( yyl = 0; yyl < yyleng; ++yyl ) |
1712 | 5.71M | if ( yytext[yyl] == '\n' ) |
1713 | | |
1714 | 278k | do{ yylineno++; |
1715 | 278k | yycolumn=0; |
1716 | 278k | }while(0) |
1717 | 278k | ; |
1718 | 278k | } |
1719 | | |
1720 | 2.35M | do_action: /* This label is used only to access EOF actions. */ |
1721 | | |
1722 | 2.35M | switch ( yy_act ) |
1723 | 2.35M | { /* beginning of action switch */ |
1724 | 215 | case 0: /* must back up */ |
1725 | | /* undo the effects of YY_DO_BEFORE_ACTION */ |
1726 | 215 | *yy_cp = yyg->yy_hold_char; |
1727 | 215 | yy_cp = yyg->yy_last_accepting_cpos; |
1728 | 215 | yy_current_state = yyg->yy_last_accepting_state; |
1729 | 215 | goto yy_find_action; |
1730 | | |
1731 | 565 | case 1: |
1732 | 565 | #line 81 "cue_scanner.l" |
1733 | 1.36k | case 2: |
1734 | 1.36k | YY_RULE_SETUP |
1735 | 1.36k | #line 81 "cue_scanner.l" |
1736 | 1.36k | { |
1737 | 1.36k | yylval->sval = set_string(yyextra, yytext + 1, yyleng - 2); |
1738 | 1.36k | BEGIN(INITIAL); |
1739 | 1.36k | return STRING; |
1740 | 565 | } |
1741 | 0 | YY_BREAK |
1742 | 2.73k | case 3: |
1743 | 2.73k | YY_RULE_SETUP |
1744 | 2.73k | #line 87 "cue_scanner.l" |
1745 | 2.73k | { |
1746 | 2.73k | yylval->sval = set_string(yyextra, yytext, yyleng); |
1747 | 2.73k | BEGIN(INITIAL); |
1748 | 2.73k | return STRING; |
1749 | 565 | } |
1750 | 0 | YY_BREAK |
1751 | | /* |
1752 | | * Unquoted text value: the rest of the line, without trailing blanks. |
1753 | | * An opening quote whose closing quote is missing is dropped. |
1754 | | */ |
1755 | 3.17k | case 4: |
1756 | 3.17k | YY_RULE_SETUP |
1757 | 3.17k | #line 97 "cue_scanner.l" |
1758 | 3.17k | { |
1759 | 3.17k | if ((yytext[0] == '"' || yytext[0] == '\'') |
1760 | 3.17k | && NULL == memchr(yytext + 1, yytext[0], yyleng - 1)) |
1761 | 1.50k | yylval->sval = set_string(yyextra, yytext + 1, yyleng - 1); |
1762 | 1.66k | else |
1763 | 1.66k | yylval->sval = set_string(yyextra, yytext, yyleng); |
1764 | 3.17k | BEGIN(INITIAL); |
1765 | 3.17k | return STRING; |
1766 | 565 | } |
1767 | 0 | YY_BREAK |
1768 | 391 | case 5: |
1769 | 391 | YY_RULE_SETUP |
1770 | 391 | #line 107 "cue_scanner.l" |
1771 | 391 | { BEGIN(NAME); return CATALOG; } |
1772 | 0 | YY_BREAK |
1773 | 400 | case 6: |
1774 | 400 | YY_RULE_SETUP |
1775 | 400 | #line 108 "cue_scanner.l" |
1776 | 400 | { BEGIN(NAME); return CDTEXTFILE; } |
1777 | 0 | YY_BREAK |
1778 | 1.97k | case 7: |
1779 | 1.97k | YY_RULE_SETUP |
1780 | 1.97k | #line 110 "cue_scanner.l" |
1781 | 1.97k | { BEGIN(NAME); return FFILE; } |
1782 | 0 | YY_BREAK |
1783 | 206 | case 8: |
1784 | 206 | YY_RULE_SETUP |
1785 | 206 | #line 111 "cue_scanner.l" |
1786 | 206 | { return BINARY; } |
1787 | 0 | YY_BREAK |
1788 | 196 | case 9: |
1789 | 196 | YY_RULE_SETUP |
1790 | 196 | #line 112 "cue_scanner.l" |
1791 | 196 | { return MOTOROLA; } |
1792 | 0 | YY_BREAK |
1793 | 203 | case 10: |
1794 | 203 | YY_RULE_SETUP |
1795 | 203 | #line 113 "cue_scanner.l" |
1796 | 203 | { return AIFF; } |
1797 | 0 | YY_BREAK |
1798 | 471 | case 11: |
1799 | 471 | YY_RULE_SETUP |
1800 | 471 | #line 114 "cue_scanner.l" |
1801 | 471 | { return WAVE; } |
1802 | 0 | YY_BREAK |
1803 | 1.26k | case 12: |
1804 | 1.26k | YY_RULE_SETUP |
1805 | 1.26k | #line 115 "cue_scanner.l" |
1806 | 1.26k | { return MP3; } |
1807 | 0 | YY_BREAK |
1808 | 196 | case 13: |
1809 | 196 | YY_RULE_SETUP |
1810 | 196 | #line 116 "cue_scanner.l" |
1811 | 196 | { return FLAC; } |
1812 | 0 | YY_BREAK |
1813 | 257k | case 14: |
1814 | 257k | YY_RULE_SETUP |
1815 | 257k | #line 118 "cue_scanner.l" |
1816 | 257k | { return TRACK; } |
1817 | 0 | YY_BREAK |
1818 | 1.76k | case 15: |
1819 | 1.76k | YY_RULE_SETUP |
1820 | 1.76k | #line 119 "cue_scanner.l" |
1821 | 1.76k | { yylval->ival = MODE_AUDIO; return AUDIO; } |
1822 | 0 | YY_BREAK |
1823 | 198 | case 16: |
1824 | 198 | YY_RULE_SETUP |
1825 | 198 | #line 120 "cue_scanner.l" |
1826 | 198 | { yylval->ival = MODE_MODE1; return MODE1_2048; } |
1827 | 0 | YY_BREAK |
1828 | 196 | case 17: |
1829 | 196 | YY_RULE_SETUP |
1830 | 196 | #line 121 "cue_scanner.l" |
1831 | 196 | { yylval->ival = MODE_MODE1_RAW; return MODE1_2352; } |
1832 | 0 | YY_BREAK |
1833 | 197 | case 18: |
1834 | 197 | YY_RULE_SETUP |
1835 | 197 | #line 122 "cue_scanner.l" |
1836 | 197 | { yylval->ival = MODE_MODE2; return MODE2_2336; } |
1837 | 0 | YY_BREAK |
1838 | 194 | case 19: |
1839 | 194 | YY_RULE_SETUP |
1840 | 194 | #line 123 "cue_scanner.l" |
1841 | 194 | { yylval->ival = MODE_MODE2_FORM1; return MODE2_2048; } |
1842 | 0 | YY_BREAK |
1843 | 194 | case 20: |
1844 | 194 | YY_RULE_SETUP |
1845 | 194 | #line 124 "cue_scanner.l" |
1846 | 194 | { yylval->ival = MODE_MODE2_FORM2; return MODE2_2342; } |
1847 | 0 | YY_BREAK |
1848 | 194 | case 21: |
1849 | 194 | YY_RULE_SETUP |
1850 | 194 | #line 125 "cue_scanner.l" |
1851 | 194 | { yylval->ival = MODE_MODE2_FORM_MIX; return MODE2_2332; } |
1852 | 0 | YY_BREAK |
1853 | 202 | case 22: |
1854 | 202 | YY_RULE_SETUP |
1855 | 202 | #line 126 "cue_scanner.l" |
1856 | 202 | { yylval->ival = MODE_MODE2_RAW; return MODE2_2352; } |
1857 | 0 | YY_BREAK |
1858 | 406 | case 23: |
1859 | 406 | YY_RULE_SETUP |
1860 | 406 | #line 128 "cue_scanner.l" |
1861 | 406 | { return FLAGS; } |
1862 | 0 | YY_BREAK |
1863 | 815 | case 24: |
1864 | 815 | YY_RULE_SETUP |
1865 | 815 | #line 129 "cue_scanner.l" |
1866 | 815 | { yylval->ival = FLAG_PRE_EMPHASIS; return PRE; } |
1867 | 0 | YY_BREAK |
1868 | 219 | case 25: |
1869 | 219 | YY_RULE_SETUP |
1870 | 219 | #line 130 "cue_scanner.l" |
1871 | 219 | { yylval->ival = FLAG_COPY_PERMITTED; return DCP; } |
1872 | 0 | YY_BREAK |
1873 | 198 | case 26: |
1874 | 198 | YY_RULE_SETUP |
1875 | 198 | #line 131 "cue_scanner.l" |
1876 | 198 | { yylval->ival = FLAG_FOUR_CHANNEL; return FOUR_CH; } |
1877 | 0 | YY_BREAK |
1878 | 228 | case 27: |
1879 | 228 | YY_RULE_SETUP |
1880 | 228 | #line 132 "cue_scanner.l" |
1881 | 228 | { yylval->ival = FLAG_SCMS; return SCMS; } |
1882 | 0 | YY_BREAK |
1883 | 2.20k | case 28: |
1884 | 2.20k | YY_RULE_SETUP |
1885 | 2.20k | #line 134 "cue_scanner.l" |
1886 | 2.20k | { return PREGAP; } |
1887 | 0 | YY_BREAK |
1888 | 4.03k | case 29: |
1889 | 4.03k | YY_RULE_SETUP |
1890 | 4.03k | #line 135 "cue_scanner.l" |
1891 | 4.03k | { return INDEX; } |
1892 | 0 | YY_BREAK |
1893 | 393 | case 30: |
1894 | 393 | YY_RULE_SETUP |
1895 | 393 | #line 136 "cue_scanner.l" |
1896 | 393 | { return POSTGAP; } |
1897 | 0 | YY_BREAK |
1898 | 739 | case 31: |
1899 | 739 | YY_RULE_SETUP |
1900 | 739 | #line 138 "cue_scanner.l" |
1901 | 739 | { BEGIN(TEXT); yylval->ival = PTI_TITLE; return TITLE; } |
1902 | 0 | YY_BREAK |
1903 | 197 | case 32: |
1904 | 197 | YY_RULE_SETUP |
1905 | 197 | #line 139 "cue_scanner.l" |
1906 | 197 | { BEGIN(TEXT); yylval->ival = PTI_PERFORMER; return PERFORMER; } |
1907 | 0 | YY_BREAK |
1908 | 207 | case 33: |
1909 | 207 | YY_RULE_SETUP |
1910 | 207 | #line 140 "cue_scanner.l" |
1911 | 207 | { BEGIN(TEXT); yylval->ival = PTI_SONGWRITER; return SONGWRITER; } |
1912 | 0 | YY_BREAK |
1913 | 195 | case 34: |
1914 | 195 | YY_RULE_SETUP |
1915 | 195 | #line 141 "cue_scanner.l" |
1916 | 195 | { BEGIN(TEXT); yylval->ival = PTI_COMPOSER; return COMPOSER; } |
1917 | 0 | YY_BREAK |
1918 | 197 | case 35: |
1919 | 197 | YY_RULE_SETUP |
1920 | 197 | #line 142 "cue_scanner.l" |
1921 | 197 | { BEGIN(TEXT); yylval->ival = PTI_ARRANGER; return ARRANGER; } |
1922 | 0 | YY_BREAK |
1923 | 195 | case 36: |
1924 | 195 | YY_RULE_SETUP |
1925 | 195 | #line 143 "cue_scanner.l" |
1926 | 195 | { BEGIN(TEXT); yylval->ival = PTI_MESSAGE; return MESSAGE; } |
1927 | 0 | YY_BREAK |
1928 | 208 | case 37: |
1929 | 208 | YY_RULE_SETUP |
1930 | 208 | #line 144 "cue_scanner.l" |
1931 | 208 | { BEGIN(TEXT); yylval->ival = PTI_DISC_ID; return DISC_ID; } |
1932 | 0 | YY_BREAK |
1933 | 1.40k | case 38: |
1934 | 1.40k | YY_RULE_SETUP |
1935 | 1.40k | #line 145 "cue_scanner.l" |
1936 | 1.40k | { BEGIN(TEXT); yylval->ival = PTI_GENRE; return GENRE; } |
1937 | 0 | YY_BREAK |
1938 | 194 | case 39: |
1939 | 194 | YY_RULE_SETUP |
1940 | 194 | #line 146 "cue_scanner.l" |
1941 | 194 | { BEGIN(TEXT); yylval->ival = PTI_TOC_INFO1; return TOC_INFO1; } |
1942 | 0 | YY_BREAK |
1943 | 194 | case 40: |
1944 | 194 | YY_RULE_SETUP |
1945 | 194 | #line 147 "cue_scanner.l" |
1946 | 194 | { BEGIN(TEXT); yylval->ival = PTI_TOC_INFO2; return TOC_INFO2; } |
1947 | 0 | YY_BREAK |
1948 | 195 | case 41: |
1949 | 195 | YY_RULE_SETUP |
1950 | 195 | #line 148 "cue_scanner.l" |
1951 | 195 | { BEGIN(TEXT); yylval->ival = PTI_UPC_ISRC; return UPC_EAN; } |
1952 | 0 | YY_BREAK |
1953 | 931 | case 42: |
1954 | 931 | *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ |
1955 | 931 | yyg->yy_c_buf_p = yy_cp = yy_bp + 4; |
1956 | 931 | YY_DO_BEFORE_ACTION; /* set up yytext again */ |
1957 | 931 | YY_RULE_SETUP |
1958 | 931 | #line 149 "cue_scanner.l" |
1959 | 931 | { BEGIN(TEXT); yylval->ival = PTI_UPC_ISRC; return ISRC; } |
1960 | 0 | YY_BREAK |
1961 | 195 | case 43: |
1962 | 195 | YY_RULE_SETUP |
1963 | 195 | #line 150 "cue_scanner.l" |
1964 | 195 | { BEGIN(TEXT); yylval->ival = PTI_SIZE_INFO; return SIZE_INFO; } |
1965 | 0 | YY_BREAK |
1966 | 763 | case 44: |
1967 | 763 | YY_RULE_SETUP |
1968 | 763 | #line 152 "cue_scanner.l" |
1969 | 763 | { BEGIN(NAME); return TRACK_ISRC; } |
1970 | 0 | YY_BREAK |
1971 | 3.55k | case 45: |
1972 | 3.55k | YY_RULE_SETUP |
1973 | 3.55k | #line 154 "cue_scanner.l" |
1974 | 3.55k | { BEGIN(REM); /* exclusive rules for special exceptions */ } |
1975 | 3.55k | YY_BREAK |
1976 | | /* |
1977 | | * A REM keyword is only recognized as the first word after REM. Anything |
1978 | | * else is an unknown (or free-form) comment and the whole line is skipped, |
1979 | | * so that e.g. "REM ORIGINALDATE", "REM MUSICBRAINZ_DISCID" or a comment |
1980 | | * that merely mentions a genre do not clobber the real fields. |
1981 | | */ |
1982 | 227 | case 46: |
1983 | 227 | *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ |
1984 | 227 | yyg->yy_c_buf_p = yy_cp = yy_bp + 4; |
1985 | 227 | YY_DO_BEFORE_ACTION; /* set up yytext again */ |
1986 | 227 | YY_RULE_SETUP |
1987 | 227 | #line 162 "cue_scanner.l" |
1988 | 227 | { BEGIN(TEXT); yylval->ival = REM_DATE; return DATE; } |
1989 | 0 | YY_BREAK |
1990 | 195 | case 47: |
1991 | 195 | *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ |
1992 | 195 | yyg->yy_c_buf_p = yy_cp = yy_bp + 5; |
1993 | 195 | YY_DO_BEFORE_ACTION; /* set up yytext again */ |
1994 | 195 | YY_RULE_SETUP |
1995 | 195 | #line 163 "cue_scanner.l" |
1996 | 195 | { BEGIN(TEXT); yylval->ival = PTI_GENRE; return XXX_GENRE; } |
1997 | 0 | YY_BREAK |
1998 | 203 | case 48: |
1999 | 203 | *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ |
2000 | 203 | yyg->yy_c_buf_p = yy_cp = yy_bp + 6; |
2001 | 203 | YY_DO_BEFORE_ACTION; /* set up yytext again */ |
2002 | 203 | YY_RULE_SETUP |
2003 | 203 | #line 164 "cue_scanner.l" |
2004 | 203 | { BEGIN(TEXT); yylval->ival = PTI_DISC_ID; return XXX_DISCID; } |
2005 | 0 | YY_BREAK |
2006 | 196 | case 49: |
2007 | 196 | *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ |
2008 | 196 | yyg->yy_c_buf_p = yy_cp = yy_bp + 8; |
2009 | 196 | YY_DO_BEFORE_ACTION; /* set up yytext again */ |
2010 | 196 | YY_RULE_SETUP |
2011 | 196 | #line 165 "cue_scanner.l" |
2012 | 196 | { BEGIN(TEXT); yylval->ival = PTI_COMPOSER; return XXX_COMPOSER; } |
2013 | 0 | YY_BREAK |
2014 | 297 | case 50: |
2015 | 297 | *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ |
2016 | 297 | yyg->yy_c_buf_p = yy_cp = yy_bp + 21; |
2017 | 297 | YY_DO_BEFORE_ACTION; /* set up yytext again */ |
2018 | 297 | YY_RULE_SETUP |
2019 | 297 | #line 166 "cue_scanner.l" |
2020 | 297 | { BEGIN(RPG); yylval->ival = REM_REPLAYGAIN_ALBUM_GAIN; |
2021 | 297 | return REPLAYGAIN_ALBUM_GAIN; } |
2022 | 0 | YY_BREAK |
2023 | 237 | case 51: |
2024 | 237 | *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ |
2025 | 237 | yyg->yy_c_buf_p = yy_cp = yy_bp + 21; |
2026 | 237 | YY_DO_BEFORE_ACTION; /* set up yytext again */ |
2027 | 237 | YY_RULE_SETUP |
2028 | 237 | #line 168 "cue_scanner.l" |
2029 | 237 | { BEGIN(RPG); yylval->ival = REM_REPLAYGAIN_ALBUM_PEAK; |
2030 | 237 | return REPLAYGAIN_ALBUM_PEAK; } |
2031 | 0 | YY_BREAK |
2032 | 219 | case 52: |
2033 | 219 | *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ |
2034 | 219 | yyg->yy_c_buf_p = yy_cp = yy_bp + 21; |
2035 | 219 | YY_DO_BEFORE_ACTION; /* set up yytext again */ |
2036 | 219 | YY_RULE_SETUP |
2037 | 219 | #line 170 "cue_scanner.l" |
2038 | 219 | { BEGIN(RPG); yylval->ival = REM_REPLAYGAIN_TRACK_GAIN; |
2039 | 219 | return REPLAYGAIN_TRACK_GAIN; } |
2040 | 0 | YY_BREAK |
2041 | 391 | case 53: |
2042 | 391 | *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ |
2043 | 391 | yyg->yy_c_buf_p = yy_cp = yy_bp + 21; |
2044 | 391 | YY_DO_BEFORE_ACTION; /* set up yytext again */ |
2045 | 391 | YY_RULE_SETUP |
2046 | 391 | #line 172 "cue_scanner.l" |
2047 | 391 | { BEGIN(RPG); yylval->ival = REM_REPLAYGAIN_TRACK_PEAK; |
2048 | 391 | return REPLAYGAIN_TRACK_PEAK; } |
2049 | 0 | YY_BREAK |
2050 | 228 | case 54: |
2051 | 228 | *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ |
2052 | 228 | yyg->yy_c_buf_p = yy_cp = yy_bp + 7; |
2053 | 228 | YY_DO_BEFORE_ACTION; /* set up yytext again */ |
2054 | 228 | YY_RULE_SETUP |
2055 | 228 | #line 174 "cue_scanner.l" |
2056 | 228 | { BEGIN(TEXT); yylval->ival = REM_COMMENT; return COMMENT; } |
2057 | 0 | YY_BREAK |
2058 | 0 | case 55: |
2059 | 0 | *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ |
2060 | 0 | yyg->yy_c_buf_p = yy_cp = yy_bp + 10; |
2061 | 0 | YY_DO_BEFORE_ACTION; /* set up yytext again */ |
2062 | 0 | YY_RULE_SETUP |
2063 | 0 | #line 175 "cue_scanner.l" |
2064 | 0 | { BEGIN(TEXT); yylval->ival = REM_DISCNUMBER; return DISCNUMBER; } |
2065 | 0 | YY_BREAK |
2066 | 0 | case 56: |
2067 | 0 | *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ |
2068 | 0 | yyg->yy_c_buf_p = yy_cp = yy_bp + 10; |
2069 | 0 | YY_DO_BEFORE_ACTION; /* set up yytext again */ |
2070 | 0 | YY_RULE_SETUP |
2071 | 0 | #line 176 "cue_scanner.l" |
2072 | 0 | { BEGIN(TEXT); yylval->ival = REM_TOTALDISCS; return TOTALDISCS; } |
2073 | 0 | YY_BREAK |
2074 | 439 | case 57: |
2075 | 439 | YY_RULE_SETUP |
2076 | 439 | #line 178 "cue_scanner.l" |
2077 | 439 | { /* skip whitespace before the keyword */ } |
2078 | 439 | YY_BREAK |
2079 | 369 | case 58: |
2080 | 369 | #line 180 "cue_scanner.l" |
2081 | 764 | case 59: |
2082 | 764 | YY_RULE_SETUP |
2083 | 764 | #line 180 "cue_scanner.l" |
2084 | 764 | { BEGIN(REMSKIP); /* unknown REM keyword */ } |
2085 | 764 | YY_BREAK |
2086 | 570 | case 60: |
2087 | | /* rule 60 can match eol */ |
2088 | 570 | YY_RULE_SETUP |
2089 | 570 | #line 181 "cue_scanner.l" |
2090 | 570 | { BEGIN(INITIAL); } |
2091 | 570 | YY_BREAK |
2092 | 261 | case 61: |
2093 | 261 | YY_RULE_SETUP |
2094 | 261 | #line 183 "cue_scanner.l" |
2095 | 261 | { /* ignore the rest of an unknown REM line */ } |
2096 | 261 | YY_BREAK |
2097 | 667 | case 62: |
2098 | | /* rule 62 can match eol */ |
2099 | 667 | YY_RULE_SETUP |
2100 | 667 | #line 184 "cue_scanner.l" |
2101 | 667 | { BEGIN(INITIAL); } |
2102 | 667 | YY_BREAK |
2103 | 536 | case 63: |
2104 | 536 | YY_RULE_SETUP |
2105 | 536 | #line 186 "cue_scanner.l" |
2106 | 536 | { |
2107 | 536 | yylval->sval = set_string(yyextra, yytext, yyleng); |
2108 | 536 | BEGIN(SKIP); |
2109 | 536 | return STRING; |
2110 | 369 | } |
2111 | 0 | YY_BREAK |
2112 | 858 | case 64: |
2113 | 858 | YY_RULE_SETUP |
2114 | 858 | #line 191 "cue_scanner.l" |
2115 | 858 | { } |
2116 | 858 | YY_BREAK |
2117 | 582 | case 65: |
2118 | | /* rule 65 can match eol */ |
2119 | 582 | YY_RULE_SETUP |
2120 | 582 | #line 192 "cue_scanner.l" |
2121 | 582 | { BEGIN(INITIAL); return '\n'; /* REPLAYGAIN_* without a value */ } |
2122 | 0 | YY_BREAK |
2123 | 441 | case 66: |
2124 | | /* rule 66 can match eol */ |
2125 | 441 | YY_RULE_SETUP |
2126 | 441 | #line 194 "cue_scanner.l" |
2127 | 441 | { BEGIN(INITIAL); return '\n'; } |
2128 | 0 | YY_BREAK |
2129 | 38 | case 67: |
2130 | 38 | YY_RULE_SETUP |
2131 | 38 | #line 195 "cue_scanner.l" |
2132 | 38 | { /* trailing text on the last line, no newline before EOF */ } |
2133 | 38 | YY_BREAK |
2134 | 4.55k | case 68: |
2135 | 4.55k | YY_RULE_SETUP |
2136 | 4.55k | #line 197 "cue_scanner.l" |
2137 | 4.55k | { /* ignore whitespace */ } |
2138 | 4.55k | YY_BREAK |
2139 | 100k | case 69: |
2140 | 100k | YY_RULE_SETUP |
2141 | 100k | #line 199 "cue_scanner.l" |
2142 | 100k | { yylval->ival = parse_number(yytext); return NUMBER; } |
2143 | 0 | YY_BREAK |
2144 | 4.94k | case 70: |
2145 | 4.94k | YY_RULE_SETUP |
2146 | 4.94k | #line 200 "cue_scanner.l" |
2147 | 4.94k | { return yytext[0]; } |
2148 | 0 | YY_BREAK |
2149 | 790 | case 71: |
2150 | | /* rule 71 can match eol */ |
2151 | 790 | YY_RULE_SETUP |
2152 | 790 | #line 202 "cue_scanner.l" |
2153 | 790 | { BEGIN(INITIAL); /* blank line */ } |
2154 | 790 | YY_BREAK |
2155 | 275k | case 72: |
2156 | | /* rule 72 can match eol */ |
2157 | 275k | YY_RULE_SETUP |
2158 | 275k | #line 203 "cue_scanner.l" |
2159 | 275k | { BEGIN(INITIAL); return '\n'; } |
2160 | 0 | YY_BREAK |
2161 | 1.65M | case 73: |
2162 | 1.65M | YY_RULE_SETUP |
2163 | 1.65M | #line 204 "cue_scanner.l" |
2164 | 1.65M | { fprintf(stderr, "bad character '%c'\n", yytext[0]); } |
2165 | 1.65M | YY_BREAK |
2166 | | /* make sure the last statement is terminated even without a final newline */ |
2167 | 3.97k | case YY_STATE_EOF(INITIAL): |
2168 | 4.06k | case YY_STATE_EOF(NAME): |
2169 | 4.28k | case YY_STATE_EOF(TEXT): |
2170 | 4.33k | case YY_STATE_EOF(REM): |
2171 | 4.52k | case YY_STATE_EOF(REMSKIP): |
2172 | 4.58k | case YY_STATE_EOF(RPG): |
2173 | 4.77k | case YY_STATE_EOF(SKIP): |
2174 | 4.77k | #line 207 "cue_scanner.l" |
2175 | 4.77k | { |
2176 | 4.77k | if (!yyextra->eof_newline_sent) { |
2177 | 2.38k | yyextra->eof_newline_sent = 1; |
2178 | 2.38k | return '\n'; |
2179 | 2.38k | } |
2180 | 4.77k | yyterminate(); |
2181 | 4.77k | } |
2182 | 0 | YY_BREAK |
2183 | 0 | case 74: |
2184 | 0 | YY_RULE_SETUP |
2185 | 0 | #line 215 "cue_scanner.l" |
2186 | 0 | YY_FATAL_ERROR( "flex scanner jammed" ); |
2187 | 0 | YY_BREAK |
2188 | 0 | #line 2189 "/work/cue_scanner.c" |
2189 | | |
2190 | 7.45k | case YY_END_OF_BUFFER: |
2191 | 7.45k | { |
2192 | | /* Amount of text matched not including the EOB char. */ |
2193 | 7.45k | int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1; |
2194 | | |
2195 | | /* Undo the effects of YY_DO_BEFORE_ACTION. */ |
2196 | 7.45k | *yy_cp = yyg->yy_hold_char; |
2197 | 7.45k | YY_RESTORE_YY_MORE_OFFSET |
2198 | | |
2199 | 7.45k | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) |
2200 | 2.38k | { |
2201 | | /* We're scanning a new file or input source. It's |
2202 | | * possible that this happened because the user |
2203 | | * just pointed yyin at a new source and called |
2204 | | * yylex(). If so, then we have to assure |
2205 | | * consistency between YY_CURRENT_BUFFER and our |
2206 | | * globals. Here is the right place to do so, because |
2207 | | * this is the first action (other than possibly a |
2208 | | * back-up) that will match for the new input source. |
2209 | | */ |
2210 | 2.38k | yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
2211 | 2.38k | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; |
2212 | 2.38k | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; |
2213 | 2.38k | } |
2214 | | |
2215 | | /* Note that here we test for yy_c_buf_p "<=" to the position |
2216 | | * of the first EOB in the buffer, since yy_c_buf_p will |
2217 | | * already have been incremented past the NUL character |
2218 | | * (since all states make transitions on EOB to the |
2219 | | * end-of-buffer state). Contrast this with the test |
2220 | | * in input(). |
2221 | | */ |
2222 | 7.45k | if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) |
2223 | 0 | { /* This was really a NUL. */ |
2224 | 0 | yy_state_type yy_next_state; |
2225 | |
|
2226 | 0 | yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text; |
2227 | |
|
2228 | 0 | yy_current_state = yy_get_previous_state( yyscanner ); |
2229 | | |
2230 | | /* Okay, we're now positioned to make the NUL |
2231 | | * transition. We couldn't have |
2232 | | * yy_get_previous_state() go ahead and do it |
2233 | | * for us because it doesn't know how to deal |
2234 | | * with the possibility of jamming (and we don't |
2235 | | * want to build jamming into it because then it |
2236 | | * will run more slowly). |
2237 | | */ |
2238 | |
|
2239 | 0 | yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner); |
2240 | |
|
2241 | 0 | yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; |
2242 | |
|
2243 | 0 | if ( yy_next_state ) |
2244 | 0 | { |
2245 | | /* Consume the NUL. */ |
2246 | 0 | yy_cp = ++yyg->yy_c_buf_p; |
2247 | 0 | yy_current_state = yy_next_state; |
2248 | 0 | goto yy_match; |
2249 | 0 | } |
2250 | | |
2251 | 0 | else |
2252 | 0 | { |
2253 | 0 | yy_cp = yyg->yy_last_accepting_cpos; |
2254 | 0 | yy_current_state = yyg->yy_last_accepting_state; |
2255 | 0 | goto yy_find_action; |
2256 | 0 | } |
2257 | 0 | } |
2258 | | |
2259 | 7.45k | else switch ( yy_get_next_buffer( yyscanner ) ) |
2260 | 7.45k | { |
2261 | 4.77k | case EOB_ACT_END_OF_FILE: |
2262 | 4.77k | { |
2263 | 4.77k | yyg->yy_did_buffer_switch_on_eof = 0; |
2264 | | |
2265 | 4.77k | if ( yywrap( yyscanner ) ) |
2266 | 4.77k | { |
2267 | | /* Note: because we've taken care in |
2268 | | * yy_get_next_buffer() to have set up |
2269 | | * yytext, we can now set up |
2270 | | * yy_c_buf_p so that if some total |
2271 | | * hoser (like flex itself) wants to |
2272 | | * call the scanner after we return the |
2273 | | * YY_NULL, it'll still work - another |
2274 | | * YY_NULL will get returned. |
2275 | | */ |
2276 | 4.77k | yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ; |
2277 | | |
2278 | 4.77k | yy_act = YY_STATE_EOF(YY_START); |
2279 | 4.77k | goto do_action; |
2280 | 4.77k | } |
2281 | | |
2282 | 0 | else |
2283 | 0 | { |
2284 | 0 | if ( ! yyg->yy_did_buffer_switch_on_eof ) |
2285 | 0 | YY_NEW_FILE; |
2286 | 0 | } |
2287 | 0 | break; |
2288 | 4.77k | } |
2289 | | |
2290 | 0 | case EOB_ACT_CONTINUE_SCAN: |
2291 | 0 | yyg->yy_c_buf_p = |
2292 | 0 | yyg->yytext_ptr + yy_amount_of_matched_text; |
2293 | |
|
2294 | 0 | yy_current_state = yy_get_previous_state( yyscanner ); |
2295 | |
|
2296 | 0 | yy_cp = yyg->yy_c_buf_p; |
2297 | 0 | yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; |
2298 | 0 | goto yy_match; |
2299 | | |
2300 | 2.68k | case EOB_ACT_LAST_MATCH: |
2301 | 2.68k | yyg->yy_c_buf_p = |
2302 | 2.68k | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars]; |
2303 | | |
2304 | 2.68k | yy_current_state = yy_get_previous_state( yyscanner ); |
2305 | | |
2306 | 2.68k | yy_cp = yyg->yy_c_buf_p; |
2307 | 2.68k | yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; |
2308 | 2.68k | goto yy_find_action; |
2309 | 7.45k | } |
2310 | 0 | break; |
2311 | 7.45k | } |
2312 | | |
2313 | 0 | default: |
2314 | 0 | YY_FATAL_ERROR( |
2315 | 2.35M | "fatal flex scanner internal error--no action found" ); |
2316 | 2.35M | } /* end of action switch */ |
2317 | 2.35M | } /* end of scanning one token */ |
2318 | 677k | } /* end of user's declarations */ |
2319 | 677k | } /* end of yylex */ |
2320 | | |
2321 | | /* yy_get_next_buffer - try to read in a new buffer |
2322 | | * |
2323 | | * Returns a code representing an action: |
2324 | | * EOB_ACT_LAST_MATCH - |
2325 | | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position |
2326 | | * EOB_ACT_END_OF_FILE - end of file |
2327 | | */ |
2328 | | static int yy_get_next_buffer (yyscan_t yyscanner) |
2329 | 7.45k | { |
2330 | 7.45k | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
2331 | 7.45k | char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; |
2332 | 7.45k | char *source = yyg->yytext_ptr; |
2333 | 7.45k | int number_to_move, i; |
2334 | 7.45k | int ret_val; |
2335 | | |
2336 | 7.45k | if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] ) |
2337 | 0 | YY_FATAL_ERROR( |
2338 | 7.45k | "fatal flex scanner internal error--end of buffer missed" ); |
2339 | | |
2340 | 7.45k | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) |
2341 | 7.45k | { /* Don't try to fill the buffer, so this is an EOF. */ |
2342 | 7.45k | if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 ) |
2343 | 4.77k | { |
2344 | | /* We matched a single character, the EOB, so |
2345 | | * treat this as a final EOF. |
2346 | | */ |
2347 | 4.77k | return EOB_ACT_END_OF_FILE; |
2348 | 4.77k | } |
2349 | | |
2350 | 2.68k | else |
2351 | 2.68k | { |
2352 | | /* We matched some text prior to the EOB, first |
2353 | | * process it. |
2354 | | */ |
2355 | 2.68k | return EOB_ACT_LAST_MATCH; |
2356 | 2.68k | } |
2357 | 7.45k | } |
2358 | | |
2359 | | /* Try to read more data. */ |
2360 | | |
2361 | | /* First move last chars to start of buffer. */ |
2362 | 0 | number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr - 1); |
2363 | |
|
2364 | 0 | for ( i = 0; i < number_to_move; ++i ) |
2365 | 0 | *(dest++) = *(source++); |
2366 | |
|
2367 | 0 | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) |
2368 | | /* don't do the read, it's not guaranteed to return an EOF, |
2369 | | * just force an EOF |
2370 | | */ |
2371 | 0 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0; |
2372 | | |
2373 | 0 | else |
2374 | 0 | { |
2375 | 0 | int num_to_read = |
2376 | 0 | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; |
2377 | |
|
2378 | 0 | while ( num_to_read <= 0 ) |
2379 | 0 | { /* Not enough room in the buffer - grow it. */ |
2380 | | |
2381 | | /* just a shorter name for the current buffer */ |
2382 | 0 | YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; |
2383 | |
|
2384 | 0 | int yy_c_buf_p_offset = |
2385 | 0 | (int) (yyg->yy_c_buf_p - b->yy_ch_buf); |
2386 | |
|
2387 | 0 | if ( b->yy_is_our_buffer ) |
2388 | 0 | { |
2389 | 0 | int new_size = b->yy_buf_size * 2; |
2390 | |
|
2391 | 0 | if ( new_size <= 0 ) |
2392 | 0 | b->yy_buf_size += b->yy_buf_size / 8; |
2393 | 0 | else |
2394 | 0 | b->yy_buf_size *= 2; |
2395 | |
|
2396 | 0 | b->yy_ch_buf = (char *) |
2397 | | /* Include room in for 2 EOB chars. */ |
2398 | 0 | yyrealloc( (void *) b->yy_ch_buf, |
2399 | 0 | (yy_size_t) (b->yy_buf_size + 2) , yyscanner ); |
2400 | 0 | } |
2401 | 0 | else |
2402 | | /* Can't grow it, we don't own it. */ |
2403 | 0 | b->yy_ch_buf = NULL; |
2404 | |
|
2405 | 0 | if ( ! b->yy_ch_buf ) |
2406 | 0 | YY_FATAL_ERROR( |
2407 | 0 | "fatal error - scanner input buffer overflow" ); |
2408 | | |
2409 | 0 | yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; |
2410 | |
|
2411 | 0 | num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - |
2412 | 0 | number_to_move - 1; |
2413 | |
|
2414 | 0 | } |
2415 | | |
2416 | 0 | if ( num_to_read > YY_READ_BUF_SIZE ) |
2417 | 0 | num_to_read = YY_READ_BUF_SIZE; |
2418 | | |
2419 | | /* Read in more data. */ |
2420 | 0 | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), |
2421 | 0 | yyg->yy_n_chars, num_to_read ); |
2422 | |
|
2423 | 0 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; |
2424 | 0 | } |
2425 | | |
2426 | 0 | if ( yyg->yy_n_chars == 0 ) |
2427 | 0 | { |
2428 | 0 | if ( number_to_move == YY_MORE_ADJ ) |
2429 | 0 | { |
2430 | 0 | ret_val = EOB_ACT_END_OF_FILE; |
2431 | 0 | yyrestart( yyin , yyscanner); |
2432 | 0 | } |
2433 | | |
2434 | 0 | else |
2435 | 0 | { |
2436 | 0 | ret_val = EOB_ACT_LAST_MATCH; |
2437 | 0 | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = |
2438 | 0 | YY_BUFFER_EOF_PENDING; |
2439 | 0 | } |
2440 | 0 | } |
2441 | | |
2442 | 0 | else |
2443 | 0 | ret_val = EOB_ACT_CONTINUE_SCAN; |
2444 | |
|
2445 | 0 | if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { |
2446 | | /* Extend the array by 50%, plus the number we really need. */ |
2447 | 0 | int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1); |
2448 | 0 | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc( |
2449 | 0 | (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner ); |
2450 | 0 | if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) |
2451 | 0 | YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); |
2452 | | /* "- 2" to take care of EOB's */ |
2453 | 0 | YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2); |
2454 | 0 | } |
2455 | | |
2456 | 0 | yyg->yy_n_chars += number_to_move; |
2457 | 0 | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR; |
2458 | 0 | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; |
2459 | |
|
2460 | 0 | yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; |
2461 | |
|
2462 | 0 | return ret_val; |
2463 | 0 | } |
2464 | | |
2465 | | /* yy_get_previous_state - get the state just before the EOB char was reached */ |
2466 | | |
2467 | | static yy_state_type yy_get_previous_state (yyscan_t yyscanner) |
2468 | 2.68k | { |
2469 | 2.68k | yy_state_type yy_current_state; |
2470 | 2.68k | char *yy_cp; |
2471 | 2.68k | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
2472 | | |
2473 | 2.68k | yy_current_state = yyg->yy_start; |
2474 | 2.68k | yy_current_state += YY_AT_BOL(); |
2475 | | |
2476 | 26.3M | for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) |
2477 | 26.3M | { |
2478 | 26.3M | YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); |
2479 | 26.3M | if ( yy_accept[yy_current_state] ) |
2480 | 17.3M | { |
2481 | 17.3M | yyg->yy_last_accepting_state = yy_current_state; |
2482 | 17.3M | yyg->yy_last_accepting_cpos = yy_cp; |
2483 | 17.3M | } |
2484 | 44.3M | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
2485 | 18.0M | { |
2486 | 18.0M | yy_current_state = (int) yy_def[yy_current_state]; |
2487 | 18.0M | if ( yy_current_state >= 749 ) |
2488 | 18.0M | yy_c = yy_meta[yy_c]; |
2489 | 18.0M | } |
2490 | 26.3M | yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; |
2491 | 26.3M | } |
2492 | | |
2493 | 2.68k | return yy_current_state; |
2494 | 2.68k | } |
2495 | | |
2496 | | /* yy_try_NUL_trans - try to make a transition on the NUL character |
2497 | | * |
2498 | | * synopsis |
2499 | | * next_state = yy_try_NUL_trans( current_state ); |
2500 | | */ |
2501 | | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner) |
2502 | 0 | { |
2503 | 0 | int yy_is_jam; |
2504 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */ |
2505 | 0 | char *yy_cp = yyg->yy_c_buf_p; |
2506 | |
|
2507 | 0 | YY_CHAR yy_c = 1; |
2508 | 0 | if ( yy_accept[yy_current_state] ) |
2509 | 0 | { |
2510 | 0 | yyg->yy_last_accepting_state = yy_current_state; |
2511 | 0 | yyg->yy_last_accepting_cpos = yy_cp; |
2512 | 0 | } |
2513 | 0 | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
2514 | 0 | { |
2515 | 0 | yy_current_state = (int) yy_def[yy_current_state]; |
2516 | 0 | if ( yy_current_state >= 749 ) |
2517 | 0 | yy_c = yy_meta[yy_c]; |
2518 | 0 | } |
2519 | 0 | yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; |
2520 | 0 | yy_is_jam = (yy_current_state == 748); |
2521 | |
|
2522 | 0 | (void)yyg; |
2523 | 0 | return yy_is_jam ? 0 : yy_current_state; |
2524 | 0 | } |
2525 | | |
2526 | | #ifndef YY_NO_UNPUT |
2527 | | |
2528 | | #endif |
2529 | | |
2530 | | #ifndef YY_NO_INPUT |
2531 | | #ifdef __cplusplus |
2532 | | static int yyinput (yyscan_t yyscanner) |
2533 | | #else |
2534 | | static int input (yyscan_t yyscanner) |
2535 | | #endif |
2536 | | |
2537 | | { |
2538 | | int c; |
2539 | | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
2540 | | |
2541 | | *yyg->yy_c_buf_p = yyg->yy_hold_char; |
2542 | | |
2543 | | if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) |
2544 | | { |
2545 | | /* yy_c_buf_p now points to the character we want to return. |
2546 | | * If this occurs *before* the EOB characters, then it's a |
2547 | | * valid NUL; if not, then we've hit the end of the buffer. |
2548 | | */ |
2549 | | if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) |
2550 | | /* This was really a NUL. */ |
2551 | | *yyg->yy_c_buf_p = '\0'; |
2552 | | |
2553 | | else |
2554 | | { /* need more input */ |
2555 | | int offset = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr); |
2556 | | ++yyg->yy_c_buf_p; |
2557 | | |
2558 | | switch ( yy_get_next_buffer( yyscanner ) ) |
2559 | | { |
2560 | | case EOB_ACT_LAST_MATCH: |
2561 | | /* This happens because yy_g_n_b() |
2562 | | * sees that we've accumulated a |
2563 | | * token and flags that we need to |
2564 | | * try matching the token before |
2565 | | * proceeding. But for input(), |
2566 | | * there's no matching to consider. |
2567 | | * So convert the EOB_ACT_LAST_MATCH |
2568 | | * to EOB_ACT_END_OF_FILE. |
2569 | | */ |
2570 | | |
2571 | | /* Reset buffer status. */ |
2572 | | yyrestart( yyin , yyscanner); |
2573 | | |
2574 | | /*FALLTHROUGH*/ |
2575 | | |
2576 | | case EOB_ACT_END_OF_FILE: |
2577 | | { |
2578 | | if ( yywrap( yyscanner ) ) |
2579 | | return 0; |
2580 | | |
2581 | | if ( ! yyg->yy_did_buffer_switch_on_eof ) |
2582 | | YY_NEW_FILE; |
2583 | | #ifdef __cplusplus |
2584 | | return yyinput(yyscanner); |
2585 | | #else |
2586 | | return input(yyscanner); |
2587 | | #endif |
2588 | | } |
2589 | | |
2590 | | case EOB_ACT_CONTINUE_SCAN: |
2591 | | yyg->yy_c_buf_p = yyg->yytext_ptr + offset; |
2592 | | break; |
2593 | | } |
2594 | | } |
2595 | | } |
2596 | | |
2597 | | c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */ |
2598 | | *yyg->yy_c_buf_p = '\0'; /* preserve yytext */ |
2599 | | yyg->yy_hold_char = *++yyg->yy_c_buf_p; |
2600 | | |
2601 | | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); |
2602 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_at_bol ) |
2603 | | |
2604 | | do{ yylineno++; |
2605 | | yycolumn=0; |
2606 | | }while(0) |
2607 | | ; |
2608 | | |
2609 | | return c; |
2610 | | } |
2611 | | #endif /* ifndef YY_NO_INPUT */ |
2612 | | |
2613 | | /** Immediately switch to a different input stream. |
2614 | | * @param input_file A readable stream. |
2615 | | * @param yyscanner The scanner object. |
2616 | | * @note This function does not reset the start condition to @c INITIAL . |
2617 | | */ |
2618 | | void yyrestart (FILE * input_file , yyscan_t yyscanner) |
2619 | 0 | { |
2620 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
2621 | |
|
2622 | 0 | if ( ! YY_CURRENT_BUFFER ){ |
2623 | 0 | yyensure_buffer_stack (yyscanner); |
2624 | 0 | YY_CURRENT_BUFFER_LVALUE = |
2625 | 0 | yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); |
2626 | 0 | } |
2627 | |
|
2628 | 0 | yy_init_buffer( YY_CURRENT_BUFFER, input_file , yyscanner); |
2629 | 0 | yy_load_buffer_state( yyscanner ); |
2630 | 0 | } |
2631 | | |
2632 | | /** Switch to a different input buffer. |
2633 | | * @param new_buffer The new input buffer. |
2634 | | * @param yyscanner The scanner object. |
2635 | | */ |
2636 | | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) |
2637 | 2.38k | { |
2638 | 2.38k | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
2639 | | |
2640 | | /* TODO. We should be able to replace this entire function body |
2641 | | * with |
2642 | | * yypop_buffer_state(); |
2643 | | * yypush_buffer_state(new_buffer); |
2644 | | */ |
2645 | 2.38k | yyensure_buffer_stack (yyscanner); |
2646 | 2.38k | if ( YY_CURRENT_BUFFER == new_buffer ) |
2647 | 0 | return; |
2648 | | |
2649 | 2.38k | if ( YY_CURRENT_BUFFER ) |
2650 | 0 | { |
2651 | | /* Flush out information for old buffer. */ |
2652 | 0 | *yyg->yy_c_buf_p = yyg->yy_hold_char; |
2653 | 0 | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; |
2654 | 0 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; |
2655 | 0 | } |
2656 | | |
2657 | 2.38k | YY_CURRENT_BUFFER_LVALUE = new_buffer; |
2658 | 2.38k | yy_load_buffer_state( yyscanner ); |
2659 | | |
2660 | | /* We don't actually know whether we did this switch during |
2661 | | * EOF (yywrap()) processing, but the only time this flag |
2662 | | * is looked at is after yywrap() is called, so it's safe |
2663 | | * to go ahead and always set it. |
2664 | | */ |
2665 | 2.38k | yyg->yy_did_buffer_switch_on_eof = 1; |
2666 | 2.38k | } |
2667 | | |
2668 | | static void yy_load_buffer_state (yyscan_t yyscanner) |
2669 | 4.77k | { |
2670 | 4.77k | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
2671 | 4.77k | yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
2672 | 4.77k | yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; |
2673 | 4.77k | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; |
2674 | 4.77k | yyg->yy_hold_char = *yyg->yy_c_buf_p; |
2675 | 4.77k | } |
2676 | | |
2677 | | /** Allocate and initialize an input buffer state. |
2678 | | * @param file A readable stream. |
2679 | | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. |
2680 | | * @param yyscanner The scanner object. |
2681 | | * @return the allocated buffer state. |
2682 | | */ |
2683 | | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size , yyscan_t yyscanner) |
2684 | 0 | { |
2685 | 0 | YY_BUFFER_STATE b; |
2686 | | |
2687 | 0 | b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner ); |
2688 | 0 | if ( ! b ) |
2689 | 0 | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
2690 | | |
2691 | 0 | b->yy_buf_size = size; |
2692 | | |
2693 | | /* yy_ch_buf has to be 2 characters longer than the size given because |
2694 | | * we need to put in 2 end-of-buffer characters. |
2695 | | */ |
2696 | 0 | b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner ); |
2697 | 0 | if ( ! b->yy_ch_buf ) |
2698 | 0 | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
2699 | | |
2700 | 0 | b->yy_is_our_buffer = 1; |
2701 | |
|
2702 | 0 | yy_init_buffer( b, file , yyscanner); |
2703 | |
|
2704 | 0 | return b; |
2705 | 0 | } |
2706 | | |
2707 | | /** Destroy the buffer. |
2708 | | * @param b a buffer created with yy_create_buffer() |
2709 | | * @param yyscanner The scanner object. |
2710 | | */ |
2711 | | void yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) |
2712 | 2.38k | { |
2713 | 2.38k | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
2714 | | |
2715 | 2.38k | if ( ! b ) |
2716 | 0 | return; |
2717 | | |
2718 | 2.38k | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ |
2719 | 2.38k | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; |
2720 | | |
2721 | 2.38k | if ( b->yy_is_our_buffer ) |
2722 | 2.38k | yyfree( (void *) b->yy_ch_buf , yyscanner ); |
2723 | | |
2724 | 2.38k | yyfree( (void *) b , yyscanner ); |
2725 | 2.38k | } |
2726 | | |
2727 | | /* Initializes or reinitializes a buffer. |
2728 | | * This function is sometimes called more than once on the same buffer, |
2729 | | * such as during a yyrestart() or at EOF. |
2730 | | */ |
2731 | | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) |
2732 | | |
2733 | 0 | { |
2734 | 0 | int oerrno = errno; |
2735 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
2736 | |
|
2737 | 0 | yy_flush_buffer( b , yyscanner); |
2738 | |
|
2739 | 0 | b->yy_input_file = file; |
2740 | 0 | b->yy_fill_buffer = 1; |
2741 | | |
2742 | | /* If b is the current buffer, then yy_init_buffer was _probably_ |
2743 | | * called from yyrestart() or through yy_get_next_buffer. |
2744 | | * In that case, we don't want to reset the lineno or column. |
2745 | | */ |
2746 | 0 | if (b != YY_CURRENT_BUFFER){ |
2747 | 0 | b->yy_bs_lineno = 1; |
2748 | 0 | b->yy_bs_column = 0; |
2749 | 0 | } |
2750 | |
|
2751 | 0 | b->yy_is_interactive = 0; |
2752 | | |
2753 | 0 | errno = oerrno; |
2754 | 0 | } |
2755 | | |
2756 | | /** Discard all buffered characters. On the next scan, YY_INPUT will be called. |
2757 | | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. |
2758 | | * @param yyscanner The scanner object. |
2759 | | */ |
2760 | | void yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) |
2761 | 0 | { |
2762 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
2763 | 0 | if ( ! b ) |
2764 | 0 | return; |
2765 | | |
2766 | 0 | b->yy_n_chars = 0; |
2767 | | |
2768 | | /* We always need two end-of-buffer characters. The first causes |
2769 | | * a transition to the end-of-buffer state. The second causes |
2770 | | * a jam in that state. |
2771 | | */ |
2772 | 0 | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; |
2773 | 0 | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; |
2774 | |
|
2775 | 0 | b->yy_buf_pos = &b->yy_ch_buf[0]; |
2776 | |
|
2777 | 0 | b->yy_at_bol = 1; |
2778 | 0 | b->yy_buffer_status = YY_BUFFER_NEW; |
2779 | |
|
2780 | 0 | if ( b == YY_CURRENT_BUFFER ) |
2781 | 0 | yy_load_buffer_state( yyscanner ); |
2782 | 0 | } |
2783 | | |
2784 | | /** Pushes the new state onto the stack. The new state becomes |
2785 | | * the current state. This function will allocate the stack |
2786 | | * if necessary. |
2787 | | * @param new_buffer The new state. |
2788 | | * @param yyscanner The scanner object. |
2789 | | */ |
2790 | | void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) |
2791 | 0 | { |
2792 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
2793 | 0 | if (new_buffer == NULL) |
2794 | 0 | return; |
2795 | | |
2796 | 0 | yyensure_buffer_stack(yyscanner); |
2797 | | |
2798 | | /* This block is copied from yy_switch_to_buffer. */ |
2799 | 0 | if ( YY_CURRENT_BUFFER ) |
2800 | 0 | { |
2801 | | /* Flush out information for old buffer. */ |
2802 | 0 | *yyg->yy_c_buf_p = yyg->yy_hold_char; |
2803 | 0 | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; |
2804 | 0 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; |
2805 | 0 | } |
2806 | | |
2807 | | /* Only push if top exists. Otherwise, replace top. */ |
2808 | 0 | if (YY_CURRENT_BUFFER) |
2809 | 0 | yyg->yy_buffer_stack_top++; |
2810 | 0 | YY_CURRENT_BUFFER_LVALUE = new_buffer; |
2811 | | |
2812 | | /* copied from yy_switch_to_buffer. */ |
2813 | 0 | yy_load_buffer_state( yyscanner ); |
2814 | 0 | yyg->yy_did_buffer_switch_on_eof = 1; |
2815 | 0 | } |
2816 | | |
2817 | | /** Removes and deletes the top of the stack, if present. |
2818 | | * The next element becomes the new top. |
2819 | | * @param yyscanner The scanner object. |
2820 | | */ |
2821 | | void yypop_buffer_state (yyscan_t yyscanner) |
2822 | 2.38k | { |
2823 | 2.38k | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
2824 | 2.38k | if (!YY_CURRENT_BUFFER) |
2825 | 2.38k | return; |
2826 | | |
2827 | 0 | yy_delete_buffer(YY_CURRENT_BUFFER , yyscanner); |
2828 | 0 | YY_CURRENT_BUFFER_LVALUE = NULL; |
2829 | 0 | if (yyg->yy_buffer_stack_top > 0) |
2830 | 0 | --yyg->yy_buffer_stack_top; |
2831 | |
|
2832 | 0 | if (YY_CURRENT_BUFFER) { |
2833 | 0 | yy_load_buffer_state( yyscanner ); |
2834 | 0 | yyg->yy_did_buffer_switch_on_eof = 1; |
2835 | 0 | } |
2836 | 0 | } |
2837 | | |
2838 | | /* Allocates the stack if it does not exist. |
2839 | | * Guarantees space for at least one push. |
2840 | | */ |
2841 | | static void yyensure_buffer_stack (yyscan_t yyscanner) |
2842 | 2.38k | { |
2843 | 2.38k | yy_size_t num_to_alloc; |
2844 | 2.38k | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
2845 | | |
2846 | 2.38k | if (!yyg->yy_buffer_stack) { |
2847 | | |
2848 | | /* First allocation is just for 2 elements, since we don't know if this |
2849 | | * scanner will even need a stack. We use 2 instead of 1 to avoid an |
2850 | | * immediate realloc on the next call. |
2851 | | */ |
2852 | 2.38k | num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ |
2853 | 2.38k | yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc |
2854 | 2.38k | (num_to_alloc * sizeof(struct yy_buffer_state*) |
2855 | 2.38k | , yyscanner); |
2856 | 2.38k | if ( ! yyg->yy_buffer_stack ) |
2857 | 0 | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); |
2858 | | |
2859 | 2.38k | memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*)); |
2860 | | |
2861 | 2.38k | yyg->yy_buffer_stack_max = num_to_alloc; |
2862 | 2.38k | yyg->yy_buffer_stack_top = 0; |
2863 | 2.38k | return; |
2864 | 2.38k | } |
2865 | | |
2866 | 0 | if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){ |
2867 | | |
2868 | | /* Increase the buffer to prepare for a possible push. */ |
2869 | 0 | yy_size_t grow_size = 8 /* arbitrary grow size */; |
2870 | |
|
2871 | 0 | num_to_alloc = yyg->yy_buffer_stack_max + grow_size; |
2872 | 0 | yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc |
2873 | 0 | (yyg->yy_buffer_stack, |
2874 | 0 | num_to_alloc * sizeof(struct yy_buffer_state*) |
2875 | 0 | , yyscanner); |
2876 | 0 | if ( ! yyg->yy_buffer_stack ) |
2877 | 0 | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); |
2878 | | |
2879 | | /* zero only the new slots.*/ |
2880 | 0 | memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*)); |
2881 | 0 | yyg->yy_buffer_stack_max = num_to_alloc; |
2882 | 0 | } |
2883 | 0 | } |
2884 | | |
2885 | | /** Setup the input buffer state to scan directly from a user-specified character buffer. |
2886 | | * @param base the character buffer |
2887 | | * @param size the size in bytes of the character buffer |
2888 | | * @param yyscanner The scanner object. |
2889 | | * @return the newly allocated buffer state object. |
2890 | | */ |
2891 | | YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner) |
2892 | 2.38k | { |
2893 | 2.38k | YY_BUFFER_STATE b; |
2894 | | |
2895 | 2.38k | if ( size < 2 || |
2896 | 2.38k | base[size-2] != YY_END_OF_BUFFER_CHAR || |
2897 | 2.38k | base[size-1] != YY_END_OF_BUFFER_CHAR ) |
2898 | | /* They forgot to leave room for the EOB's. */ |
2899 | 0 | return NULL; |
2900 | | |
2901 | 2.38k | b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner ); |
2902 | 2.38k | if ( ! b ) |
2903 | 0 | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); |
2904 | | |
2905 | 2.38k | b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */ |
2906 | 2.38k | b->yy_buf_pos = b->yy_ch_buf = base; |
2907 | 2.38k | b->yy_is_our_buffer = 0; |
2908 | 2.38k | b->yy_input_file = NULL; |
2909 | 2.38k | b->yy_n_chars = b->yy_buf_size; |
2910 | 2.38k | b->yy_is_interactive = 0; |
2911 | 2.38k | b->yy_at_bol = 1; |
2912 | 2.38k | b->yy_fill_buffer = 0; |
2913 | 2.38k | b->yy_buffer_status = YY_BUFFER_NEW; |
2914 | | |
2915 | 2.38k | yy_switch_to_buffer( b , yyscanner ); |
2916 | | |
2917 | 2.38k | return b; |
2918 | 2.38k | } |
2919 | | |
2920 | | /** Setup the input buffer state to scan a string. The next call to yylex() will |
2921 | | * scan from a @e copy of @a str. |
2922 | | * @param yystr a NUL-terminated string to scan |
2923 | | * @param yyscanner The scanner object. |
2924 | | * @return the newly allocated buffer state object. |
2925 | | * @note If you want to scan bytes that may contain NUL values, then use |
2926 | | * yy_scan_bytes() instead. |
2927 | | */ |
2928 | | YY_BUFFER_STATE yy_scan_string (const char * yystr , yyscan_t yyscanner) |
2929 | 2.38k | { |
2930 | | |
2931 | 2.38k | return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner); |
2932 | 2.38k | } |
2933 | | |
2934 | | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will |
2935 | | * scan from a @e copy of @a bytes. |
2936 | | * @param yybytes the byte buffer to scan |
2937 | | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. |
2938 | | * @param yyscanner The scanner object. |
2939 | | * @return the newly allocated buffer state object. |
2940 | | */ |
2941 | | YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len , yyscan_t yyscanner) |
2942 | 2.38k | { |
2943 | 2.38k | YY_BUFFER_STATE b; |
2944 | 2.38k | char *buf; |
2945 | 2.38k | yy_size_t n; |
2946 | 2.38k | int i; |
2947 | | |
2948 | | /* Get memory for full buffer, including space for trailing EOB's. */ |
2949 | 2.38k | n = (yy_size_t) (_yybytes_len + 2); |
2950 | 2.38k | buf = (char *) yyalloc( n , yyscanner ); |
2951 | 2.38k | if ( ! buf ) |
2952 | 0 | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); |
2953 | | |
2954 | 37.3M | for ( i = 0; i < _yybytes_len; ++i ) |
2955 | 37.3M | buf[i] = yybytes[i]; |
2956 | | |
2957 | 2.38k | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; |
2958 | | |
2959 | 2.38k | b = yy_scan_buffer( buf, n , yyscanner); |
2960 | 2.38k | if ( ! b ) |
2961 | 0 | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); |
2962 | | |
2963 | | /* It's okay to grow etc. this buffer, and we should throw it |
2964 | | * away when we're done. |
2965 | | */ |
2966 | 2.38k | b->yy_is_our_buffer = 1; |
2967 | | |
2968 | 2.38k | return b; |
2969 | 2.38k | } |
2970 | | |
2971 | | #ifndef YY_EXIT_FAILURE |
2972 | 0 | #define YY_EXIT_FAILURE 2 |
2973 | | #endif |
2974 | | |
2975 | | static void yynoreturn yy_fatal_error (const char* msg , yyscan_t yyscanner) |
2976 | 0 | { |
2977 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
2978 | 0 | (void)yyg; |
2979 | 0 | fprintf( stderr, "%s\n", msg ); |
2980 | 0 | exit( YY_EXIT_FAILURE ); |
2981 | 0 | } |
2982 | | |
2983 | | /* Redefine yyless() so it works in section 3 code. */ |
2984 | | |
2985 | | #undef yyless |
2986 | | #define yyless(n) \ |
2987 | | do \ |
2988 | | { \ |
2989 | | /* Undo effects of setting up yytext. */ \ |
2990 | | int yyless_macro_arg = (n); \ |
2991 | | YY_LESS_LINENO(yyless_macro_arg);\ |
2992 | | yytext[yyleng] = yyg->yy_hold_char; \ |
2993 | | yyg->yy_c_buf_p = yytext + yyless_macro_arg; \ |
2994 | | yyg->yy_hold_char = *yyg->yy_c_buf_p; \ |
2995 | | *yyg->yy_c_buf_p = '\0'; \ |
2996 | | yyleng = yyless_macro_arg; \ |
2997 | | } \ |
2998 | | while ( 0 ) |
2999 | | |
3000 | | /* Accessor methods (get/set functions) to struct members. */ |
3001 | | |
3002 | | /** Get the user-defined data for this scanner. |
3003 | | * @param yyscanner The scanner object. |
3004 | | */ |
3005 | | YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner) |
3006 | 0 | { |
3007 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3008 | 0 | return yyextra; |
3009 | 0 | } |
3010 | | |
3011 | | /** Get the current line number. |
3012 | | * @param yyscanner The scanner object. |
3013 | | */ |
3014 | | int yyget_lineno (yyscan_t yyscanner) |
3015 | 257k | { |
3016 | 257k | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3017 | | |
3018 | 257k | if (! YY_CURRENT_BUFFER) |
3019 | 0 | return 0; |
3020 | | |
3021 | 257k | return yylineno; |
3022 | 257k | } |
3023 | | |
3024 | | /** Get the current column number. |
3025 | | * @param yyscanner The scanner object. |
3026 | | */ |
3027 | | int yyget_column (yyscan_t yyscanner) |
3028 | 0 | { |
3029 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3030 | |
|
3031 | 0 | if (! YY_CURRENT_BUFFER) |
3032 | 0 | return 0; |
3033 | | |
3034 | 0 | return yycolumn; |
3035 | 0 | } |
3036 | | |
3037 | | /** Get the input stream. |
3038 | | * @param yyscanner The scanner object. |
3039 | | */ |
3040 | | FILE *yyget_in (yyscan_t yyscanner) |
3041 | 0 | { |
3042 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3043 | 0 | return yyin; |
3044 | 0 | } |
3045 | | |
3046 | | /** Get the output stream. |
3047 | | * @param yyscanner The scanner object. |
3048 | | */ |
3049 | | FILE *yyget_out (yyscan_t yyscanner) |
3050 | 0 | { |
3051 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3052 | 0 | return yyout; |
3053 | 0 | } |
3054 | | |
3055 | | /** Get the length of the current token. |
3056 | | * @param yyscanner The scanner object. |
3057 | | */ |
3058 | | int yyget_leng (yyscan_t yyscanner) |
3059 | 0 | { |
3060 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3061 | 0 | return yyleng; |
3062 | 0 | } |
3063 | | |
3064 | | /** Get the current token. |
3065 | | * @param yyscanner The scanner object. |
3066 | | */ |
3067 | | |
3068 | | char *yyget_text (yyscan_t yyscanner) |
3069 | 0 | { |
3070 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3071 | 0 | return yytext; |
3072 | 0 | } |
3073 | | |
3074 | | /** Set the user-defined data. This data is never touched by the scanner. |
3075 | | * @param user_defined The data to be associated with this scanner. |
3076 | | * @param yyscanner The scanner object. |
3077 | | */ |
3078 | | void yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) |
3079 | 4.77k | { |
3080 | 4.77k | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3081 | 4.77k | yyextra = user_defined ; |
3082 | 4.77k | } |
3083 | | |
3084 | | /** Set the current line number. |
3085 | | * @param _line_number line number |
3086 | | * @param yyscanner The scanner object. |
3087 | | */ |
3088 | | void yyset_lineno (int _line_number , yyscan_t yyscanner) |
3089 | 2.38k | { |
3090 | 2.38k | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3091 | | |
3092 | | /* lineno is only valid if an input buffer exists. */ |
3093 | 2.38k | if (! YY_CURRENT_BUFFER ) |
3094 | 0 | YY_FATAL_ERROR( "yyset_lineno called with no buffer" ); |
3095 | | |
3096 | 2.38k | yylineno = _line_number; |
3097 | 2.38k | } |
3098 | | |
3099 | | /** Set the current column. |
3100 | | * @param _column_no column number |
3101 | | * @param yyscanner The scanner object. |
3102 | | */ |
3103 | | void yyset_column (int _column_no , yyscan_t yyscanner) |
3104 | 0 | { |
3105 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3106 | | |
3107 | | /* column is only valid if an input buffer exists. */ |
3108 | 0 | if (! YY_CURRENT_BUFFER ) |
3109 | 0 | YY_FATAL_ERROR( "yyset_column called with no buffer" ); |
3110 | | |
3111 | 0 | yycolumn = _column_no; |
3112 | 0 | } |
3113 | | |
3114 | | /** Set the input stream. This does not discard the current |
3115 | | * input buffer. |
3116 | | * @param _in_str A readable stream. |
3117 | | * @param yyscanner The scanner object. |
3118 | | * @see yy_switch_to_buffer |
3119 | | */ |
3120 | | void yyset_in (FILE * _in_str , yyscan_t yyscanner) |
3121 | 0 | { |
3122 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3123 | 0 | yyin = _in_str ; |
3124 | 0 | } |
3125 | | |
3126 | | void yyset_out (FILE * _out_str , yyscan_t yyscanner) |
3127 | 0 | { |
3128 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3129 | 0 | yyout = _out_str ; |
3130 | 0 | } |
3131 | | |
3132 | | int yyget_debug (yyscan_t yyscanner) |
3133 | 0 | { |
3134 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3135 | 0 | return yy_flex_debug; |
3136 | 0 | } |
3137 | | |
3138 | | void yyset_debug (int _bdebug , yyscan_t yyscanner) |
3139 | 0 | { |
3140 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3141 | 0 | yy_flex_debug = _bdebug ; |
3142 | 0 | } |
3143 | | |
3144 | | /* Accessor methods for yylval and yylloc */ |
3145 | | |
3146 | | YYSTYPE * yyget_lval (yyscan_t yyscanner) |
3147 | 0 | { |
3148 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3149 | 0 | return yylval; |
3150 | 0 | } |
3151 | | |
3152 | | void yyset_lval (YYSTYPE * yylval_param , yyscan_t yyscanner) |
3153 | 0 | { |
3154 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3155 | 0 | yylval = yylval_param; |
3156 | 0 | } |
3157 | | |
3158 | | /* User-visible API */ |
3159 | | |
3160 | | /* yylex_init is special because it creates the scanner itself, so it is |
3161 | | * the ONLY reentrant function that doesn't take the scanner as the last argument. |
3162 | | * That's why we explicitly handle the declaration, instead of using our macros. |
3163 | | */ |
3164 | | int yylex_init(yyscan_t* ptr_yy_globals) |
3165 | 0 | { |
3166 | 0 | if (ptr_yy_globals == NULL){ |
3167 | 0 | errno = EINVAL; |
3168 | 0 | return 1; |
3169 | 0 | } |
3170 | | |
3171 | 0 | *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), NULL ); |
3172 | |
|
3173 | 0 | if (*ptr_yy_globals == NULL){ |
3174 | 0 | errno = ENOMEM; |
3175 | 0 | return 1; |
3176 | 0 | } |
3177 | | |
3178 | | /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ |
3179 | 0 | memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); |
3180 | |
|
3181 | 0 | return yy_init_globals ( *ptr_yy_globals ); |
3182 | 0 | } |
3183 | | |
3184 | | /* yylex_init_extra has the same functionality as yylex_init, but follows the |
3185 | | * convention of taking the scanner as the last argument. Note however, that |
3186 | | * this is a *pointer* to a scanner, as it will be allocated by this call (and |
3187 | | * is the reason, too, why this function also must handle its own declaration). |
3188 | | * The user defined value in the first argument will be available to yyalloc in |
3189 | | * the yyextra field. |
3190 | | */ |
3191 | | int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals ) |
3192 | 2.38k | { |
3193 | 2.38k | struct yyguts_t dummy_yyguts; |
3194 | | |
3195 | 2.38k | yyset_extra (yy_user_defined, &dummy_yyguts); |
3196 | | |
3197 | 2.38k | if (ptr_yy_globals == NULL){ |
3198 | 0 | errno = EINVAL; |
3199 | 0 | return 1; |
3200 | 0 | } |
3201 | | |
3202 | 2.38k | *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts ); |
3203 | | |
3204 | 2.38k | if (*ptr_yy_globals == NULL){ |
3205 | 0 | errno = ENOMEM; |
3206 | 0 | return 1; |
3207 | 0 | } |
3208 | | |
3209 | | /* By setting to 0xAA, we expose bugs in |
3210 | | yy_init_globals. Leave at 0x00 for releases. */ |
3211 | 2.38k | memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); |
3212 | | |
3213 | 2.38k | yyset_extra (yy_user_defined, *ptr_yy_globals); |
3214 | | |
3215 | 2.38k | return yy_init_globals ( *ptr_yy_globals ); |
3216 | 2.38k | } |
3217 | | |
3218 | | static int yy_init_globals (yyscan_t yyscanner) |
3219 | 4.77k | { |
3220 | 4.77k | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3221 | | /* Initialization is the same as for the non-reentrant scanner. |
3222 | | * This function is called from yylex_destroy(), so don't allocate here. |
3223 | | */ |
3224 | | |
3225 | 4.77k | yyg->yy_buffer_stack = NULL; |
3226 | 4.77k | yyg->yy_buffer_stack_top = 0; |
3227 | 4.77k | yyg->yy_buffer_stack_max = 0; |
3228 | 4.77k | yyg->yy_c_buf_p = NULL; |
3229 | 4.77k | yyg->yy_init = 0; |
3230 | 4.77k | yyg->yy_start = 0; |
3231 | | |
3232 | 4.77k | yyg->yy_start_stack_ptr = 0; |
3233 | 4.77k | yyg->yy_start_stack_depth = 0; |
3234 | 4.77k | yyg->yy_start_stack = NULL; |
3235 | | |
3236 | | /* Defined in main.c */ |
3237 | | #ifdef YY_STDINIT |
3238 | | yyin = stdin; |
3239 | | yyout = stdout; |
3240 | | #else |
3241 | 4.77k | yyin = NULL; |
3242 | 4.77k | yyout = NULL; |
3243 | 4.77k | #endif |
3244 | | |
3245 | | /* For future reference: Set errno on error, since we are called by |
3246 | | * yylex_init() |
3247 | | */ |
3248 | 4.77k | return 0; |
3249 | 4.77k | } |
3250 | | |
3251 | | /* yylex_destroy is for both reentrant and non-reentrant scanners. */ |
3252 | | int yylex_destroy (yyscan_t yyscanner) |
3253 | 2.38k | { |
3254 | 2.38k | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3255 | | |
3256 | | /* Pop the buffer stack, destroying each element. */ |
3257 | 4.77k | while(YY_CURRENT_BUFFER){ |
3258 | 2.38k | yy_delete_buffer( YY_CURRENT_BUFFER , yyscanner ); |
3259 | 2.38k | YY_CURRENT_BUFFER_LVALUE = NULL; |
3260 | 2.38k | yypop_buffer_state(yyscanner); |
3261 | 2.38k | } |
3262 | | |
3263 | | /* Destroy the stack itself. */ |
3264 | 2.38k | yyfree(yyg->yy_buffer_stack , yyscanner); |
3265 | 2.38k | yyg->yy_buffer_stack = NULL; |
3266 | | |
3267 | | /* Destroy the start condition stack. */ |
3268 | 2.38k | yyfree( yyg->yy_start_stack , yyscanner ); |
3269 | 2.38k | yyg->yy_start_stack = NULL; |
3270 | | |
3271 | | /* Reset the globals. This is important in a non-reentrant scanner so the next time |
3272 | | * yylex() is called, initialization will occur. */ |
3273 | 2.38k | yy_init_globals( yyscanner); |
3274 | | |
3275 | | /* Destroy the main struct (reentrant only). */ |
3276 | 2.38k | yyfree ( yyscanner , yyscanner ); |
3277 | 2.38k | yyscanner = NULL; |
3278 | 2.38k | return 0; |
3279 | 2.38k | } |
3280 | | |
3281 | | /* |
3282 | | * Internal utility routines. |
3283 | | */ |
3284 | | |
3285 | | #ifndef yytext_ptr |
3286 | | static void yy_flex_strncpy (char* s1, const char * s2, int n , yyscan_t yyscanner) |
3287 | | { |
3288 | | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3289 | | (void)yyg; |
3290 | | |
3291 | | int i; |
3292 | | for ( i = 0; i < n; ++i ) |
3293 | | s1[i] = s2[i]; |
3294 | | } |
3295 | | #endif |
3296 | | |
3297 | | #ifdef YY_NEED_STRLEN |
3298 | | static int yy_flex_strlen (const char * s , yyscan_t yyscanner) |
3299 | | { |
3300 | | int n; |
3301 | | for ( n = 0; s[n]; ++n ) |
3302 | | ; |
3303 | | |
3304 | | return n; |
3305 | | } |
3306 | | #endif |
3307 | | |
3308 | | void *yyalloc (yy_size_t size , yyscan_t yyscanner) |
3309 | 9.54k | { |
3310 | 9.54k | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3311 | 9.54k | (void)yyg; |
3312 | 9.54k | return malloc(size); |
3313 | 9.54k | } |
3314 | | |
3315 | | void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner) |
3316 | 0 | { |
3317 | 0 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3318 | 0 | (void)yyg; |
3319 | | |
3320 | | /* The cast to (char *) in the following accommodates both |
3321 | | * implementations that use char* generic pointers, and those |
3322 | | * that use void* generic pointers. It works with the latter |
3323 | | * because both ANSI C and C++ allow castless assignment from |
3324 | | * any pointer type to void*, and deal with argument conversions |
3325 | | * as though doing an assignment. |
3326 | | */ |
3327 | 0 | return realloc(ptr, size); |
3328 | 0 | } |
3329 | | |
3330 | | void yyfree (void * ptr , yyscan_t yyscanner) |
3331 | 11.9k | { |
3332 | 11.9k | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
3333 | 11.9k | (void)yyg; |
3334 | 11.9k | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ |
3335 | 11.9k | } |
3336 | | |
3337 | | #define YYTABLES_NAME "yytables" |
3338 | | |
3339 | | #line 215 "cue_scanner.l" |
3340 | | |
3341 | | |