• Home
  • Raw
  • Download

Lines Matching refs:yyscanner

272 #define YY_NEW_FILE yyrestart( yyin , yyscanner )
348 #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
440 void yyrestart ( FILE *input_file , yyscan_t yyscanner );
441 void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
442 YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size , yyscan_t yyscanner );
443 void yy_delete_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner );
444 void yy_flush_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner );
445 void yypush_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
446 void yypop_buffer_state ( yyscan_t yyscanner );
449 static void yyensure_buffer_stack ( yyscan_t yyscanner );
450 static void yy_load_buffer_state ( yyscan_t yyscanner );
451 static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file , yyscan_t yyscanner );
452 #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner)
455 YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size , yyscan_t yyscanner );
456 YY_BUFFER_STATE yy_scan_string ( const char *yy_str , yyscan_t yyscanner );
457 YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner );
460 void *yyalloc ( yy_size_t , yyscan_t yyscanner );
461 void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner );
462 void yyfree ( void * , yyscan_t yyscanner );
469 yyensure_buffer_stack (yyscanner); \
471 yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
478 yyensure_buffer_stack (yyscanner); \
480 yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
489 #define yywrap(yyscanner) (/*CONSTCOND*/1) argument
503 static yy_state_type yy_get_previous_state ( yyscan_t yyscanner );
504 static yy_state_type yy_try_NUL_trans ( yy_state_type current_state , yyscan_t yyscanner);
505 static int yy_get_next_buffer ( yyscan_t yyscanner );
506 static void yynoreturn yy_fatal_error ( const char* msg , yyscan_t yyscanner );
1171 result = string_input(buf, max_size, yyscanner);
1173 static yy_size_t string_input(char* buf, yy_size_t max_size, yyscan_t yyscanner);
1174 static int check_type(yyscan_t yyscanner);
1175 static int reserved_word(yyscan_t yyscanner);
1180 static int int_constant(yyscan_t yyscanner);
1181 static int float_constant(yyscan_t yyscanner);
1250 static int yy_init_globals ( yyscan_t yyscanner );
1276 int yylex_destroy ( yyscan_t yyscanner );
1280 int yyget_debug ( yyscan_t yyscanner );
1284 void yyset_debug ( int debug_flag , yyscan_t yyscanner );
1288 YY_EXTRA_TYPE yyget_extra ( yyscan_t yyscanner );
1292 void yyset_extra ( YY_EXTRA_TYPE user_defined , yyscan_t yyscanner );
1296 FILE *yyget_in ( yyscan_t yyscanner );
1300 void yyset_in ( FILE * _in_str , yyscan_t yyscanner );
1304 FILE *yyget_out ( yyscan_t yyscanner );
1308 void yyset_out ( FILE * _out_str , yyscan_t yyscanner );
1312 int yyget_leng ( yyscan_t yyscanner );
1316 char *yyget_text ( yyscan_t yyscanner );
1320 int yyget_lineno ( yyscan_t yyscanner );
1324 void yyset_lineno ( int _line_number , yyscan_t yyscanner );
1329 int yyget_column ( yyscan_t yyscanner );
1335 void yyset_column ( int _column_no , yyscan_t yyscanner );
1340 YYSTYPE * yyget_lval ( yyscan_t yyscanner );
1343 void yyset_lval ( YYSTYPE * yylval_param , yyscan_t yyscanner );
1347 YYLTYPE *yyget_lloc ( yyscan_t yyscanner );
1351 void yyset_lloc ( YYLTYPE * yylloc_param , yyscan_t yyscanner );
1361 extern "C" int yywrap ( yyscan_t yyscanner );
1363 extern int yywrap ( yyscan_t yyscanner );
1373 static void yy_flex_strncpy ( char *, const char *, int , yyscan_t yyscanner);
1377 static int yy_flex_strlen ( const char * , yyscan_t yyscanner);
1382 static int yyinput ( yyscan_t yyscanner );
1384 static int input ( yyscan_t yyscanner );
1472 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
1504 (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner);
1507 (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)
1538 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1570 yyensure_buffer_stack (yyscanner);
1572 yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
1575 yy_load_buffer_state( yyscanner );
2025 return check_type(yyscanner);
2027 return reserved_word(yyscanner);
2037 return check_type(yyscanner);
2040 return reserved_word(yyscanner);
2086 { return reserved_word(yyscanner); }
2092 return check_type(yyscanner);
2097 { return int_constant(yyscanner); }
2101 { return int_constant(yyscanner); }
2105 { return int_constant(yyscanner); }
2121 { return float_constant(yyscanner); }
2125 { return float_constant(yyscanner); }
2129 { return float_constant(yyscanner); }
2392 yy_current_state = yy_get_previous_state( yyscanner );
2403 yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
2423 else switch ( yy_get_next_buffer( yyscanner ) )
2429 if ( yywrap( yyscanner ) )
2458 yy_current_state = yy_get_previous_state( yyscanner );
2468 yy_current_state = yy_get_previous_state( yyscanner );
2496 static int yy_get_next_buffer (yyscan_t yyscanner)
2498 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2567 (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
2599 yyrestart( yyin , yyscanner);
2617 (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner );
2636 static yy_state_type yy_get_previous_state (yyscan_t yyscanner) in yy_get_previous_state() argument
2640 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_get_previous_state()
2670 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner) in yy_try_NUL_trans() argument
2673 …struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon opti… in yy_try_NUL_trans()
2702 static int yyinput (yyscan_t yyscanner) in yyinput() argument
2704 static int input (yyscan_t yyscanner) in yyinput()
2709 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyinput()
2728 switch ( yy_get_next_buffer( yyscanner ) ) in yyinput()
2742 yyrestart( yyin , yyscanner); in yyinput()
2748 if ( yywrap( yyscanner ) ) in yyinput()
2754 return yyinput(yyscanner); in yyinput()
2756 return input(yyscanner); in yyinput()
2787 void yyrestart (FILE * input_file , yyscan_t yyscanner) in yyrestart() argument
2789 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyrestart()
2792 yyensure_buffer_stack (yyscanner); in yyrestart()
2794 yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); in yyrestart()
2797 yy_init_buffer( YY_CURRENT_BUFFER, input_file , yyscanner); in yyrestart()
2798 yy_load_buffer_state( yyscanner ); in yyrestart()
2806 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) in yy_switch_to_buffer() argument
2808 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_switch_to_buffer()
2815 yyensure_buffer_stack (yyscanner); in yy_switch_to_buffer()
2828 yy_load_buffer_state( yyscanner ); in yy_switch_to_buffer()
2839 static void yy_load_buffer_state (yyscan_t yyscanner) in yy_load_buffer_state() argument
2841 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_load_buffer_state()
2854 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size , yyscan_t yyscanner) in yy_create_buffer() argument
2858 b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner ); in yy_create_buffer()
2867 b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner ); in yy_create_buffer()
2873 yy_init_buffer( b, file , yyscanner); in yy_create_buffer()
2883 void yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) in yy_delete_buffer() argument
2885 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_delete_buffer()
2894 yyfree( (void *) b->yy_ch_buf , yyscanner ); in yy_delete_buffer()
2896 yyfree( (void *) b , yyscanner ); in yy_delete_buffer()
2904 static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) in yy_init_buffer() argument
2908 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_init_buffer()
2910 yy_flush_buffer( b , yyscanner); in yy_init_buffer()
2936 void yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) in yy_flush_buffer() argument
2938 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_flush_buffer()
2957 yy_load_buffer_state( yyscanner ); in yy_flush_buffer()
2966 void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) in yypush_buffer_state() argument
2968 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yypush_buffer_state()
2972 yyensure_buffer_stack(yyscanner); in yypush_buffer_state()
2989 yy_load_buffer_state( yyscanner ); in yypush_buffer_state()
2998 void yypop_buffer_state (yyscan_t yyscanner) in yypop_buffer_state() argument
3000 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yypop_buffer_state()
3004 yy_delete_buffer(YY_CURRENT_BUFFER , yyscanner); in yypop_buffer_state()
3010 yy_load_buffer_state( yyscanner ); in yypop_buffer_state()
3019 static void yyensure_buffer_stack (yyscan_t yyscanner) in yyensure_buffer_stack() argument
3022 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyensure_buffer_stack()
3033 , yyscanner); in yyensure_buffer_stack()
3054 , yyscanner); in yyensure_buffer_stack()
3074 YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner) in yy_scan_buffer() argument
3084 b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner ); in yy_scan_buffer()
3098 yy_switch_to_buffer( b , yyscanner ); in yy_scan_buffer()
3114 YY_BUFFER_STATE yy_scan_string (const char * yystr , yyscan_t yyscanner) in yy_scan_string() argument
3117 return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner); in yy_scan_string()
3130 YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len , yyscan_t yyscanner) in yy_scan_bytes() argument
3139 buf = (char *) yyalloc( n , yyscanner ); in yy_scan_bytes()
3148 b = yy_scan_buffer( buf, n , yyscanner); in yy_scan_bytes()
3174 static void yynoreturn yy_fatal_error (const char* msg , yyscan_t yyscanner) in yy_fatal_error() argument
3176 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_fatal_error()
3207 YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner) in yyget_extra() argument
3209 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyget_extra()
3218 int yyget_lineno (yyscan_t yyscanner) in yyget_lineno() argument
3220 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyget_lineno()
3235 int yyget_column (yyscan_t yyscanner) in yyget_column() argument
3237 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyget_column()
3252 FILE *yyget_in (yyscan_t yyscanner) in yyget_in() argument
3254 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyget_in()
3263 FILE *yyget_out (yyscan_t yyscanner) in yyget_out() argument
3265 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyget_out()
3274 int yyget_leng (yyscan_t yyscanner) in yyget_leng() argument
3276 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyget_leng()
3285 char *yyget_text (yyscan_t yyscanner) in yyget_text() argument
3287 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyget_text()
3297 void yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) in yyset_extra() argument
3299 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyset_extra()
3309 void yyset_lineno (int _line_number , yyscan_t yyscanner) in yyset_lineno() argument
3311 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyset_lineno()
3328 void yyset_column (int _column_no , yyscan_t yyscanner) in yyset_column() argument
3330 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyset_column()
3350 void yyset_in (FILE * _in_str , yyscan_t yyscanner) in yyset_in() argument
3352 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyset_in()
3358 void yyset_out (FILE * _out_str , yyscan_t yyscanner) in yyset_out() argument
3360 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyset_out()
3367 int yyget_debug (yyscan_t yyscanner) in yyget_debug() argument
3369 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyget_debug()
3375 void yyset_debug (int _bdebug , yyscan_t yyscanner) in yyset_debug() argument
3377 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyset_debug()
3385 YYSTYPE * yyget_lval (yyscan_t yyscanner) in yyget_lval() argument
3387 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyget_lval()
3393 void yyset_lval (YYSTYPE * yylval_param , yyscan_t yyscanner) in yyset_lval() argument
3395 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyset_lval()
3402 YYLTYPE *yyget_lloc (yyscan_t yyscanner) in yyget_lloc() argument
3404 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyget_lloc()
3410 void yyset_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner) in yyset_lloc() argument
3412 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyset_lloc()
3482 static int yy_init_globals (yyscan_t yyscanner) in yy_init_globals() argument
3484 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_init_globals()
3526 int yylex_destroy (yyscan_t yyscanner) in yylex_destroy() argument
3528 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yylex_destroy()
3532 yy_delete_buffer( YY_CURRENT_BUFFER , yyscanner ); in yylex_destroy()
3534 yypop_buffer_state(yyscanner); in yylex_destroy()
3538 yyfree(yyg->yy_buffer_stack , yyscanner); in yylex_destroy()
3543 yyfree( yyg->yy_start_stack , yyscanner ); in yylex_destroy()
3551 yy_init_globals( yyscanner); in yylex_destroy()
3554 yyfree ( yyscanner , yyscanner ); in yylex_destroy()
3555 yyscanner = NULL; in yylex_destroy()
3568 static void yy_flex_strncpy (char* s1, const char * s2, int n , yyscan_t yyscanner) in yy_flex_strncpy() argument
3570 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_flex_strncpy()
3582 static int yy_flex_strlen (const char * s , yyscan_t yyscanner) in yy_flex_strlen() argument
3594 void *yyalloc (yy_size_t size , yyscan_t yyscanner) in yyalloc() argument
3596 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyalloc()
3603 void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner) in yyrealloc() argument
3605 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyrealloc()
3620 void yyfree (void * ptr , yyscan_t yyscanner) in yyfree() argument
3622 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyfree()
3637 yy_size_t string_input(char* buf, yy_size_t max_size, yyscan_t yyscanner) { in string_input() argument
3639 yyget_extra(yyscanner)->getPreprocessor().lex(&token); in string_input()
3643 yyset_column(token.location.file, yyscanner); in string_input()
3644 yyset_lineno(token.location.line, yyscanner); in string_input()
3653 int check_type(yyscan_t yyscanner) { in check_type() argument
3654 struct yyguts_t* yyg = (struct yyguts_t*) yyscanner; in check_type()
3669 int reserved_word(yyscan_t yyscanner) { in reserved_word() argument
3670 struct yyguts_t* yyg = (struct yyguts_t*) yyscanner; in reserved_word()
3679 yyscan_t yyscanner = (yyscan_t) context->getScanner(); in ES2_reserved_ES3_keyword() local
3683 return reserved_word(yyscanner); in ES2_reserved_ES3_keyword()
3691 yyscan_t yyscanner = (yyscan_t) context->getScanner(); in ES2_keyword_ES3_reserved() local
3695 return reserved_word(yyscanner); in ES2_keyword_ES3_reserved()
3704 yyscan_t yyscanner = (yyscan_t) context->getScanner(); in ES2_identifier_ES3_keyword() local
3710 return check_type(yyscanner); in ES2_identifier_ES3_keyword()
3752 int int_constant(yyscan_t yyscanner) { in int_constant() argument
3753 struct yyguts_t* yyg = (struct yyguts_t*) yyscanner; in int_constant()
3760 int float_constant(yyscan_t yyscanner) { in float_constant() argument
3761 struct yyguts_t* yyg = (struct yyguts_t*) yyscanner; in float_constant()