1 #line 16 "./Tokenizer.l"
12 #line 13 "./Tokenizer.cpp"
14 #define YY_INT_ALIGNED short int
19 #define YY_FLEX_MAJOR_VERSION 2
20 #define YY_FLEX_MINOR_VERSION 5
21 #define YY_FLEX_SUBMINOR_VERSION 35
22 #if YY_FLEX_SUBMINOR_VERSION > 0
43 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
48 #ifndef __STDC_LIMIT_MACROS
49 #define __STDC_LIMIT_MACROS 1
71 #define INT8_MIN (-128)
74 #define INT16_MIN (-32767-1)
77 #define INT32_MIN (-2147483647-1)
80 #define INT8_MAX (127)
83 #define INT16_MAX (32767)
86 #define INT32_MAX (2147483647)
89 #define UINT8_MAX (255U)
92 #define UINT16_MAX (65535U)
95 #define UINT32_MAX (4294967295U)
108 #if defined (__STDC__)
116 #define yyconst const
129 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
132 #ifndef YY_TYPEDEF_YY_SCANNER_T
133 #define YY_TYPEDEF_YY_SCANNER_T
139 #define yyin yyg->yyin_r
140 #define yyout yyg->yyout_r
141 #define yyextra yyg->yyextra_r
142 #define yyleng yyg->yyleng_r
143 #define yytext yyg->yytext_r
144 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
145 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
146 #define yy_flex_debug yyg->yy_flex_debug_r
152 #define BEGIN yyg->yy_start = 1 + 2 *
158 #define YY_START ((yyg->yy_start - 1) / 2)
159 #define YYSTATE YY_START
162 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
165 #define YY_NEW_FILE pprestart(yyin ,yyscanner )
167 #define YY_END_OF_BUFFER_CHAR 0
171 #define YY_BUF_SIZE 16384
176 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
178 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
179 #define YY_TYPEDEF_YY_BUFFER_STATE
183 #ifndef YY_TYPEDEF_YY_SIZE_T
184 #define YY_TYPEDEF_YY_SIZE_T
188 #define EOB_ACT_CONTINUE_SCAN 0
189 #define EOB_ACT_END_OF_FILE 1
190 #define EOB_ACT_LAST_MATCH 2
192 #define YY_LESS_LINENO(n)
199 int yyless_macro_arg = (n); \
200 YY_LESS_LINENO(yyless_macro_arg);\
201 *yy_cp = yyg->yy_hold_char; \
202 YY_RESTORE_YY_MORE_OFFSET \
203 yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
204 YY_DO_BEFORE_ACTION; \
208 #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
210 #ifndef YY_STRUCT_YY_BUFFER_STATE
211 #define YY_STRUCT_YY_BUFFER_STATE
212 struct yy_buffer_state
233 int yy_is_our_buffer;
240 int yy_is_interactive;
256 int yy_buffer_status;
258 #define YY_BUFFER_NEW 0
259 #define YY_BUFFER_NORMAL 1
270 #define YY_BUFFER_EOF_PENDING 2
281 #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
282 ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
288 #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
302 #define YY_FLUSH_BUFFER pp_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
312 #define yy_new_buffer pp_create_buffer
314 #define yy_set_interactive(is_interactive) \
316 if ( ! YY_CURRENT_BUFFER ){ \
317 ppensure_buffer_stack (yyscanner); \
318 YY_CURRENT_BUFFER_LVALUE = \
319 pp_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
321 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
324 #define yy_set_bol(at_bol) \
326 if ( ! YY_CURRENT_BUFFER ){\
327 ppensure_buffer_stack (yyscanner); \
328 YY_CURRENT_BUFFER_LVALUE = \
329 pp_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
331 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
334 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
339 #define YY_SKIP_YYWRAP
345 #define yytext_ptr yytext_r
355 #define YY_DO_BEFORE_ACTION \
356 yyg->yytext_ptr = yy_bp; \
357 yyleng = (yy_size_t) (yy_cp - yy_bp); \
358 yyg->yy_hold_char = *yy_cp; \
360 yyg->yy_c_buf_p = yy_cp;
362 #define YY_NUM_RULES 38
363 #define YY_END_OF_BUFFER 39
373 0, 0, 0, 0, 39, 37, 34, 35, 35, 33,
374 7, 33, 33, 33, 33, 33, 33, 33, 33, 9,
375 9, 33, 33, 33, 8, 37, 33, 33, 3, 5,
376 5, 4, 34, 35, 19, 27, 20, 30, 25, 12,
377 23, 13, 24, 10, 2, 1, 26, 10, 9, 11,
378 11, 11, 11, 9, 14, 16, 18, 17, 15, 8,
379 36, 36, 31, 21, 32, 22, 3, 5, 6, 11,
380 10, 11, 1, 10, 11, 0, 10, 9, 28, 29,
386 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
387 2, 2, 4, 1, 1, 1, 1, 1, 1, 1,
388 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
389 1, 2, 5, 1, 6, 1, 7, 8, 1, 9,
390 9, 10, 11, 9, 12, 13, 14, 15, 16, 16,
391 16, 16, 16, 16, 16, 17, 17, 9, 9, 18,
392 19, 20, 9, 1, 21, 21, 21, 21, 22, 21,
393 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
394 23, 23, 23, 23, 23, 23, 23, 24, 23, 23,
395 9, 25, 9, 26, 23, 1, 21, 21, 21, 21,
397 22, 21, 23, 23, 23, 23, 23, 23, 23, 23,
398 23, 23, 23, 23, 23, 23, 23, 23, 23, 24,
399 23, 23, 9, 27, 9, 9, 1, 1, 1, 1,
400 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
401 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
402 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
403 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
404 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
405 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
406 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
408 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
409 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
410 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
411 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
412 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
418 1, 1, 2, 2, 1, 1, 1, 1, 1, 3,
419 1, 1, 4, 1, 5, 5, 5, 1, 1, 1,
425 0, 0, 25, 27, 162, 163, 159, 163, 152, 132,
426 163, 131, 24, 163, 116, 22, 26, 31, 30, 37,
427 40, 44, 115, 46, 0, 64, 50, 15, 0, 163,
428 124, 91, 88, 163, 163, 163, 163, 163, 163, 163,
429 163, 163, 163, 64, 163, 0, 163, 76, 54, 58,
430 79, 91, 91, 0, 56, 163, 163, 163, 32, 0,
431 163, 36, 163, 163, 163, 163, 0, 163, 163, 94,
432 0, 106, 0, 0, 113, 55, 72, 113, 163, 163,
433 116, 101, 108, 123, 126, 163, 143, 31, 148, 153,
440 86, 1, 87, 87, 86, 86, 86, 86, 86, 86,
441 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
442 20, 86, 86, 86, 88, 86, 86, 86, 89, 86,
443 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
444 86, 86, 86, 86, 86, 90, 86, 86, 20, 20,
445 48, 51, 91, 21, 86, 86, 86, 86, 86, 88,
446 86, 86, 86, 86, 86, 86, 89, 86, 86, 44,
447 44, 70, 90, 48, 51, 86, 52, 91, 86, 86,
448 86, 72, 75, 86, 86, 0, 86, 86, 86, 86,
455 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
456 16, 17, 18, 19, 20, 21, 21, 22, 23, 24,
457 25, 25, 25, 25, 26, 27, 28, 30, 31, 30,
458 31, 37, 40, 65, 32, 60, 32, 42, 61, 45,
459 41, 66, 38, 46, 43, 44, 44, 44, 47, 48,
460 80, 49, 49, 50, 54, 54, 54, 51, 52, 51,
461 53, 55, 56, 51, 58, 59, 61, 62, 63, 84,
462 84, 84, 50, 50, 79, 64, 70, 51, 71, 71,
463 71, 51, 86, 86, 70, 72, 70, 70, 51, 33,
464 74, 74, 74, 51, 51, 51, 51, 75, 51, 51,
466 51, 76, 76, 51, 69, 77, 77, 77, 70, 70,
467 70, 86, 86, 51, 51, 70, 81, 81, 86, 86,
468 82, 82, 82, 81, 81, 51, 68, 83, 83, 83,
469 85, 85, 85, 57, 39, 51, 51, 84, 84, 84,
470 85, 85, 85, 29, 29, 29, 29, 29, 67, 36,
471 35, 67, 67, 73, 34, 73, 73, 73, 78, 78,
472 33, 86, 5, 86, 86, 86, 86, 86, 86, 86,
473 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
474 86, 86, 86, 86, 86, 86, 86, 86, 86, 86
479 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
480 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
481 1, 1, 1, 1, 1, 1, 1, 3, 3, 4,
482 4, 13, 16, 28, 3, 88, 4, 17, 62, 19,
483 16, 28, 13, 19, 17, 18, 18, 18, 19, 20,
484 59, 20, 20, 20, 21, 21, 21, 20, 20, 20,
485 20, 22, 22, 21, 24, 24, 26, 26, 27, 76,
486 76, 76, 50, 50, 55, 27, 44, 49, 44, 44,
487 44, 50, 77, 77, 44, 44, 44, 44, 48, 33,
488 48, 48, 48, 51, 51, 51, 48, 48, 48, 48,
490 51, 52, 52, 53, 32, 52, 52, 52, 70, 70,
491 70, 82, 82, 53, 53, 70, 72, 72, 83, 83,
492 72, 72, 72, 75, 75, 78, 31, 75, 75, 75,
493 81, 81, 81, 23, 15, 78, 78, 84, 84, 84,
494 85, 85, 85, 87, 87, 87, 87, 87, 89, 12,
495 10, 89, 89, 90, 9, 90, 90, 90, 91, 91,
496 7, 5, 86, 86, 86, 86, 86, 86, 86, 86,
497 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
498 86, 86, 86, 86, 86, 86, 86, 86, 86, 86
504 #define REJECT reject_used_but_not_detected
505 #define yymore() yymore_used_but_not_detected
506 #define YY_MORE_ADJ 0
507 #define YY_RESTORE_YY_MORE_OFFSET
527 #if defined(__GNUC__)
529 #pragma GCC diagnostic ignored "-Wmissing-noreturn"
536 #define yyfileno yycolumn
538 #define YY_USER_INIT \
542 yyextra->leadingSpace = false; \
543 yyextra->lineStart = true; \
546 #define YY_USER_ACTION \
549 pp::Input* input = &yyextra->input; \
550 pp::Input::Location* scanLoc = &yyextra->scanLoc; \
551 while ((scanLoc->sIndex < input->count()) && \
552 (scanLoc->cIndex >= input->length(scanLoc->sIndex))) \
554 scanLoc->cIndex -= input->length(scanLoc->sIndex++); \
555 ++yyfileno; yylineno = 1; \
557 yylloc->file = yyfileno; \
558 yylloc->line = yylineno; \
559 scanLoc->cIndex += yyleng; \
562 #define YY_INPUT(buf, result, maxSize) \
563 result = yyextra->input.read(buf, maxSize);
568 #define YY_EXTRA_TYPE pp::Tokenizer::Context*
578 FILE *yyin_r, *yyout_r;
579 size_t yy_buffer_stack_top;
580 size_t yy_buffer_stack_max;
588 int yy_did_buffer_switch_on_eof;
589 int yy_start_stack_ptr;
590 int yy_start_stack_depth;
593 char* yy_last_accepting_cpos;
612 # define yylval yyg->yylval_r
614 # define yylloc yyg->yylloc_r
661 #ifndef YY_SKIP_YYWRAP
670 static void yy_flex_strncpy (
char *,
yyconst char *,
int ,
yyscan_t yyscanner);
673 #ifdef YY_NEED_STRLEN
680 static int yyinput (
yyscan_t yyscanner );
688 #ifndef YY_READ_BUF_SIZE
689 #define YY_READ_BUF_SIZE 8192
697 #define ECHO fwrite( yytext, yyleng, 1, yyout )
704 #define YY_INPUT(buf,result,max_size) \
705 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
709 for ( n = 0; n < max_size && \
710 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
713 buf[n++] = (char) c; \
714 if ( c == EOF && ferror( yyin ) ) \
715 YY_FATAL_ERROR( "input in flex scanner failed" ); \
721 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
723 if( errno != EINTR) \
725 YY_FATAL_ERROR( "input in flex scanner failed" ); \
741 #define yyterminate() return YY_NULL
745 #ifndef YY_START_STACK_INCR
746 #define YY_START_STACK_INCR 25
750 #ifndef YY_FATAL_ERROR
751 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
760 #define YY_DECL_IS_OURS 1
765 #define YY_DECL int pplex \
766 (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)
772 #ifndef YY_USER_ACTION
773 #define YY_USER_ACTION
778 #define YY_BREAK break;
781 #define YY_RULE_SETUP \
791 struct yyguts_t *
yyg = (
struct yyguts_t*)yyscanner;
807 if ( ! yyg->yy_start )
827 yy_cp = yyg->yy_c_buf_p;
830 *yy_cp = yyg->yy_hold_char;
837 yy_current_state = yyg->yy_start;
844 yyg->yy_last_accepting_state = yy_current_state;
845 yyg->yy_last_accepting_cpos =
yy_cp;
847 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
849 yy_current_state = (
int)
yy_def[yy_current_state];
850 if ( yy_current_state >= 87 )
856 while ( yy_current_state != 86 );
857 yy_cp = yyg->yy_last_accepting_cpos;
858 yy_current_state = yyg->yy_last_accepting_state;
871 *yy_cp = yyg->yy_hold_char;
872 yy_cp = yyg->yy_last_accepting_cpos;
873 yy_current_state = yyg->yy_last_accepting_state;
1101 {
yyextra->leadingSpace =
true; }
1132 if (scanLoc->
sIndex != sIndexMax)
1161 int yy_amount_of_matched_text = (
int) (yy_cp - yyg->yytext_ptr) - 1;
1164 *yy_cp = yyg->yy_hold_char;
1194 yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
1211 if ( yy_next_state )
1214 yy_cp = ++yyg->yy_c_buf_p;
1215 yy_current_state = yy_next_state;
1221 yy_cp = yyg->yy_last_accepting_cpos;
1222 yy_current_state = yyg->yy_last_accepting_state;
1223 goto yy_find_action;
1231 yyg->yy_did_buffer_switch_on_eof = 0;
1233 if (
ppwrap(yyscanner ) )
1252 if ( ! yyg->yy_did_buffer_switch_on_eof )
1260 yyg->yytext_ptr + yy_amount_of_matched_text;
1264 yy_cp = yyg->yy_c_buf_p;
1274 yy_cp = yyg->yy_c_buf_p;
1276 goto yy_find_action;
1283 "fatal flex scanner internal error--no action found" );
1297 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1299 register char *
source = yyg->yytext_ptr;
1300 register int number_to_move,
i;
1305 "fatal flex scanner internal error--end of buffer missed" );
1309 if ( yyg->yy_c_buf_p - yyg->yytext_ptr -
YY_MORE_ADJ == 1 )
1329 number_to_move = (
int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
1331 for ( i = 0; i < number_to_move; ++
i )
1332 *(dest++) = *(source++);
1345 while ( num_to_read <= 0 )
1351 int yy_c_buf_p_offset =
1352 (
int) (yyg->yy_c_buf_p - b->yy_ch_buf);
1354 if ( b->yy_is_our_buffer )
1356 yy_size_t new_size = b->yy_buf_size * 2;
1358 if ( new_size <= 0 )
1359 b->yy_buf_size += b->yy_buf_size / 8;
1361 b->yy_buf_size *= 2;
1363 b->yy_ch_buf = (
char *)
1365 pprealloc((
void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner );
1371 if ( ! b->yy_ch_buf )
1373 "fatal error - scanner input buffer overflow" );
1375 yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1387 yyg->yy_n_chars, num_to_read );
1392 if ( yyg->yy_n_chars == 0 )
1413 yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
1416 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1419 yyg->yy_n_chars += number_to_move;
1433 register char *
yy_cp;
1434 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1436 yy_current_state = yyg->yy_start;
1438 for ( yy_cp = yyg->yytext_ptr +
YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
1443 yyg->yy_last_accepting_state = yy_current_state;
1444 yyg->yy_last_accepting_cpos =
yy_cp;
1446 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1448 yy_current_state = (
int)
yy_def[yy_current_state];
1449 if ( yy_current_state >= 87 )
1452 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + (
unsigned int) yy_c];
1455 return yy_current_state;
1465 register int yy_is_jam;
1466 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1467 register char *yy_cp = yyg->yy_c_buf_p;
1472 yyg->yy_last_accepting_state = yy_current_state;
1473 yyg->yy_last_accepting_cpos =
yy_cp;
1475 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1477 yy_current_state = (
int)
yy_def[yy_current_state];
1478 if ( yy_current_state >= 87 )
1481 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + (
unsigned int) yy_c];
1482 yy_is_jam = (yy_current_state == 86);
1484 return yy_is_jam ? 0 : yy_current_state;
1489 static int yyinput (
yyscan_t yyscanner)
1496 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1498 *yyg->yy_c_buf_p = yyg->yy_hold_char;
1508 *yyg->yy_c_buf_p =
'\0';
1535 if (
ppwrap(yyscanner ) )
1538 if ( ! yyg->yy_did_buffer_switch_on_eof )
1541 return yyinput(yyscanner);
1543 return input(yyscanner);
1548 yyg->yy_c_buf_p = yyg->yytext_ptr +
offset;
1554 c = *(
unsigned char *) yyg->yy_c_buf_p;
1555 *yyg->yy_c_buf_p =
'\0';
1556 yyg->yy_hold_char = *++yyg->yy_c_buf_p;
1569 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1587 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1601 *yyg->yy_c_buf_p = yyg->yy_hold_char;
1614 yyg->yy_did_buffer_switch_on_eof = 1;
1619 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1623 yyg->yy_hold_char = *yyg->yy_c_buf_p;
1640 b->yy_buf_size =
size;
1645 b->yy_ch_buf = (
char *)
ppalloc(b->yy_buf_size + 2 ,yyscanner );
1646 if ( ! b->yy_ch_buf )
1649 b->yy_is_our_buffer = 1;
1662 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1670 if ( b->yy_is_our_buffer )
1671 ppfree((
void *) b->yy_ch_buf ,yyscanner );
1673 ppfree((
void *) b ,yyscanner );
1684 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1688 b->yy_input_file =
file;
1689 b->yy_fill_buffer = 1;
1696 b->yy_bs_lineno = 1;
1697 b->yy_bs_column = 0;
1700 b->yy_is_interactive = 0;
1711 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1724 b->yy_buf_pos = &b->yy_ch_buf[0];
1741 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1742 if (new_buffer ==
NULL)
1751 *yyg->yy_c_buf_p = yyg->yy_hold_char;
1758 yyg->yy_buffer_stack_top++;
1763 yyg->yy_did_buffer_switch_on_eof = 1;
1772 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1778 if (yyg->yy_buffer_stack_top > 0)
1779 --yyg->yy_buffer_stack_top;
1783 yyg->yy_did_buffer_switch_on_eof = 1;
1793 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1795 if (!yyg->yy_buffer_stack) {
1802 yyg->yy_buffer_stack = (
struct yy_buffer_state**)
ppalloc
1803 (num_to_alloc *
sizeof(
struct yy_buffer_state*)
1805 if ( ! yyg->yy_buffer_stack )
1806 YY_FATAL_ERROR(
"out of dynamic memory in ppensure_buffer_stack()" );
1808 memset(yyg->yy_buffer_stack, 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
1810 yyg->yy_buffer_stack_max = num_to_alloc;
1811 yyg->yy_buffer_stack_top = 0;
1815 if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
1820 num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
1821 yyg->yy_buffer_stack = (
struct yy_buffer_state**)
pprealloc
1822 (yyg->yy_buffer_stack,
1823 num_to_alloc *
sizeof(
struct yy_buffer_state*)
1825 if ( ! yyg->yy_buffer_stack )
1826 YY_FATAL_ERROR(
"out of dynamic memory in ppensure_buffer_stack()" );
1829 memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size *
sizeof(
struct yy_buffer_state*));
1830 yyg->yy_buffer_stack_max = num_to_alloc;
1854 b->yy_buf_size = size - 2;
1855 b->yy_buf_pos = b->yy_ch_buf = base;
1856 b->yy_is_our_buffer = 0;
1857 b->yy_input_file = 0;
1858 b->yy_n_chars = b->yy_buf_size;
1859 b->yy_is_interactive = 0;
1861 b->yy_fill_buffer = 0;
1897 n = _yybytes_len + 2;
1898 buf = (
char *)
ppalloc(n ,yyscanner );
1902 for ( i = 0; i < _yybytes_len; ++
i )
1903 buf[i] = yybytes[i];
1914 b->yy_is_our_buffer = 1;
1919 #ifndef YY_EXIT_FAILURE
1920 #define YY_EXIT_FAILURE 2
1925 (
void) fprintf( stderr,
"%s\n", msg );
1936 int yyless_macro_arg = (n); \
1937 YY_LESS_LINENO(yyless_macro_arg);\
1938 yytext[yyleng] = yyg->yy_hold_char; \
1939 yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
1940 yyg->yy_hold_char = *yyg->yy_c_buf_p; \
1941 *yyg->yy_c_buf_p = '\0'; \
1942 yyleng = yyless_macro_arg; \
1953 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1962 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1975 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1988 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
1997 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
2006 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
2016 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
2026 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
2036 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
2040 yy_fatal_error(
"ppset_lineno called with no buffer" , yyscanner);
2051 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
2055 yy_fatal_error(
"ppset_column called with no buffer" , yyscanner);
2068 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
2074 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
2080 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
2086 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
2094 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
2100 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
2106 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
2112 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
2126 if (ptr_yy_globals ==
NULL){
2133 if (*ptr_yy_globals ==
NULL){
2139 memset(*ptr_yy_globals,0x00,
sizeof(
struct yyguts_t));
2155 struct yyguts_t dummy_yyguts;
2159 if (ptr_yy_globals ==
NULL){
2164 *ptr_yy_globals = (
yyscan_t)
ppalloc (
sizeof(
struct yyguts_t ), &dummy_yyguts );
2166 if (*ptr_yy_globals ==
NULL){
2173 memset(*ptr_yy_globals,0x00,
sizeof(
struct yyguts_t));
2182 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
2187 yyg->yy_buffer_stack = 0;
2188 yyg->yy_buffer_stack_top = 0;
2189 yyg->yy_buffer_stack_max = 0;
2190 yyg->yy_c_buf_p = (
char *) 0;
2194 yyg->yy_start_stack_ptr = 0;
2195 yyg->yy_start_stack_depth = 0;
2196 yyg->yy_start_stack =
NULL;
2216 struct yyguts_t * yyg = (
struct yyguts_t*)yyscanner;
2226 ppfree(yyg->yy_buffer_stack ,yyscanner);
2227 yyg->yy_buffer_stack =
NULL;
2230 ppfree(yyg->yy_start_stack ,yyscanner );
2231 yyg->yy_start_stack =
NULL;
2238 ppfree ( yyscanner , yyscanner );
2248 static void yy_flex_strncpy (
char*
s1,
yyconst char * s2,
int n ,
yyscan_t yyscanner)
2251 for ( i = 0; i <
n; ++
i )
2256 #ifdef YY_NEED_STRLEN
2260 for ( n = 0; s[
n]; ++
n )
2269 return (
void *)
malloc( size );
2281 return (
void *)
realloc( (
char *) ptr, size );
2286 free( (
char *) ptr );
2289 #define YYTABLES_NAME "yytables"
2309 if ((count > 0) && (
string == 0))
return false;
2311 mContext.
input =
Input(count,
string, length);
2312 return initScanner();
2346 bool Tokenizer::initScanner()
2355 void Tokenizer::destroyScanner()
2357 if (mHandle ==
NULL)
#define YY_BUFFER_EOF_PENDING
#define YY_INPUT(buf, result, maxSize)
void ppset_out(FILE *out_str, yyscan_t yyscanner)
static yyconst flex_int16_t yy_def[92]
void pppush_buffer_state(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
YY_BUFFER_STATE pp_scan_buffer(char *base, yy_size_t size, yyscan_t yyscanner)
void pp_flush_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner)
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
YY_BUFFER_STATE pp_scan_string(yyconst char *yy_str, yyscan_t yyscanner)
int pplex(YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner)
void ppfree(void *, yyscan_t yyscanner)
int pplex_destroy(yyscan_t yyscanner)
YYSTYPE * ppget_lval(yyscan_t yyscanner)
yy_size_t ppget_leng(yyscan_t yyscanner)
void ppset_lval(YYSTYPE *yylval_param, yyscan_t yyscanner)
static const std::size_t kMaxTokenLength
bool init(size_t count, const char *const string[], const int length[])
#define YY_DO_BEFORE_ACTION
char * ppget_text(yyscan_t yyscanner)
unsigned long long uint64_t
#define YY_FATAL_ERROR(msg)
int pplex_init_extra(YY_EXTRA_TYPE user_defined, yyscan_t *scanner)
void setAtStartOfLine(bool start)
#define YY_STATE_EOF(state)
#define YY_END_OF_BUFFER_CHAR
void ppset_extra(YY_EXTRA_TYPE user_defined, yyscan_t yyscanner)
void * ppalloc(yy_size_t, yyscan_t yyscanner)
YYLTYPE * ppget_lloc(yyscan_t yyscanner)
void * pprealloc(void *, yy_size_t, yyscan_t yyscanner)
static yyconst flex_int16_t yy_accept[87]
YY_BUFFER_STATE pp_create_buffer(FILE *file, int size, yyscan_t yyscanner)
static void yy_fatal_error(yyconst char msg[], yyscan_t yyscanner)
void setFileNumber(int file)
unsigned int flex_uint32_t
void pprestart(FILE *input_file, yyscan_t yyscanner)
unsigned char flex_uint8_t
void setLineNumber(int line)
#define EOB_ACT_CONTINUE_SCAN
struct yy_buffer_state * YY_BUFFER_STATE
static yy_state_type yy_get_previous_state(yyscan_t yyscanner)
int ppget_lineno(yyscan_t yyscanner)
static yyconst flex_int32_t yy_meta[28]
int ppget_debug(yyscan_t yyscanner)
static yyconst flex_int16_t yy_base[92]
YY_BUFFER_STATE pp_scan_bytes(yyconst char *bytes, yy_size_t len, yyscan_t yyscanner)
FILE * ppget_out(yyscan_t yyscanner)
void ppset_lineno(int line_number, yyscan_t yyscanner)
static yyconst flex_int32_t yy_ec[256]
Diagnostics * diagnostics
void ppset_column(int column_no, yyscan_t yyscanner)
static void ppensure_buffer_stack(yyscan_t yyscanner)
#define EOB_ACT_LAST_MATCH
void report(ID id, const SourceLocation &loc, const std::string &text)
static yyconst flex_int16_t yy_nxt[191]
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
YY_EXTRA_TYPE ppget_extra(yyscan_t yyscanner)
void pp_switch_to_buffer(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
virtual void lex(Token *token)
#define YY_RESTORE_YY_MORE_OFFSET
FILE * ppget_in(yyscan_t yyscanner)
static int yy_get_next_buffer(yyscan_t yyscanner)
#define YY_CURRENT_BUFFER_LVALUE
Tokenizer(Diagnostics *diagnostics)
void pppop_buffer_state(yyscan_t yyscanner)
void ppset_debug(int debug_flag, yyscan_t yyscanner)
GLenum GLenum GLenum input
GLenum GLuint GLsizei const GLchar * buf
static void pp_init_buffer(YY_BUFFER_STATE b, FILE *file, yyscan_t yyscanner)
GLsizei const GLcharARB ** string
void setHasLeadingSpace(bool space)
pp::SourceLocation YYLTYPE
GLdouble GLdouble GLdouble b
static yyconst flex_int16_t yy_chk[191]
static yy_state_type yy_try_NUL_trans(yy_state_type current_state, yyscan_t yyscanner)
#define YY_CURRENT_BUFFER
static void pp_load_buffer_state(yyscan_t yyscanner)
void ppset_lloc(YYLTYPE *yylloc_param, yyscan_t yyscanner)
static int yy_init_globals(yyscan_t yyscanner)
int ppget_column(yyscan_t yyscanner)
void ppset_in(FILE *in_str, yyscan_t yyscanner)
void pp_delete_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner)
GLsizei GLsizei GLchar * source
int pplex_init(yyscan_t *scanner)
#define EOB_ACT_END_OF_FILE
unsigned short int flex_uint16_t