Home | History | Annotate | Download | only in translator

Lines Matching defs:yyscanner

178 #define YY_NEW_FILE yyrestart(yyin ,yyscanner )
239 #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
321 void yyrestart (FILE *input_file ,yyscan_t yyscanner );
322 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
323 YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
324 void yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
325 void yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
326 void yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
327 void yypop_buffer_state (yyscan_t yyscanner );
329 static void yyensure_buffer_stack (yyscan_t yyscanner );
330 static void yy_load_buffer_state (yyscan_t yyscanner );
331 static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner );
333 #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
335 YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
336 YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
337 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
339 void *yyalloc (yy_size_t ,yyscan_t yyscanner );
340 void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
341 void yyfree (void * ,yyscan_t yyscanner );
348 yyensure_buffer_stack (yyscanner); \
350 yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
358 yyensure_buffer_stack (yyscanner); \
360 yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
369 #define yywrap(yyscanner) 1
378 static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
379 static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner);
380 static int yy_get_next_buffer (yyscan_t yyscanner );
381 static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
1015 result = string_input(buf, max_size, yyscanner);
1017 static yy_size_t string_input(char* buf, yy_size_t max_size, yyscan_t yyscanner);
1018 static int check_type(yyscan_t yyscanner);
1019 static int reserved_word(yyscan_t yyscanner);
1024 static int int_constant(yyscan_t yyscanner);
1025 static int float_constant(yyscan_t yyscanner);
1070 static int yy_init_globals (yyscan_t yyscanner );
1085 int yylex_destroy (yyscan_t yyscanner );
1087 int yyget_debug (yyscan_t yyscanner );
1089 void yyset_debug (int debug_flag ,yyscan_t yyscanner );
1091 YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner );
1093 void yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
1095 FILE *yyget_in (yyscan_t yyscanner );
1097 void yyset_in (FILE * in_str ,yyscan_t yyscanner );
1099 FILE *yyget_out (yyscan_t yyscanner );
1101 void yyset_out (FILE * out_str ,yyscan_t yyscanner );
1103 yy_size_t yyget_leng (yyscan_t yyscanner );
1105 char *yyget_text (yyscan_t yyscanner );
1107 int yyget_lineno (yyscan_t yyscanner );
1109 void yyset_lineno (int line_number ,yyscan_t yyscanner );
1111 int yyget_column (yyscan_t yyscanner );
1113 void yyset_column (int column_no ,yyscan_t yyscanner );
1115 YYSTYPE * yyget_lval (yyscan_t yyscanner );
1117 void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
1119 YYLTYPE *yyget_lloc (yyscan_t yyscanner );
1121 void yyset_lloc (YYLTYPE * yylloc_param ,yyscan_t yyscanner );
1129 extern "C" int yywrap (yyscan_t yyscanner );
1131 extern int yywrap (yyscan_t yyscanner );
1136 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
1140 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
1146 static int yyinput (yyscan_t yyscanner );
1148 static int input (yyscan_t yyscanner );
1217 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
1229 (YYSTYPE * yylval_param,YYLTYPE * yylloc_param ,yyscan_t yyscanner);
1232 (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)
1257 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1283 yyensure_buffer_stack (yyscanner);
1285 yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
1288 yy_load_buffer_state(yyscanner );
1727 return check_type(yyscanner);
1729 return reserved_word(yyscanner);
1739 return check_type(yyscanner);
1742 return reserved_word(yyscanner);
1788 { return reserved_word(yyscanner); }
1794 return check_type(yyscanner);
1799 { return int_constant(yyscanner); }
1803 { return int_constant(yyscanner); }
1807 { return int_constant(yyscanner); }
1823 { return float_constant(yyscanner); }
1827 { return float_constant(yyscanner); }
1831 { return float_constant(yyscanner); }
2080 yy_current_state = yy_get_previous_state( yyscanner );
2091 yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
2111 else switch ( yy_get_next_buffer( yyscanner ) )
2117 if ( yywrap(yyscanner ) )
2146 yy_current_state = yy_get_previous_state( yyscanner );
2156 yy_current_state = yy_get_previous_state( yyscanner );
2179 static int yy_get_next_buffer (yyscan_t yyscanner)
2181 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2249 yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner );
2281 yyrestart(yyin ,yyscanner);
2298 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner );
2314 static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
2318 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2347 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
2350 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
2374 static int yyinput (yyscan_t yyscanner)
2376 static int input (yyscan_t yyscanner)
2381 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2400 switch ( yy_get_next_buffer( yyscanner ) )
2414 yyrestart(yyin ,yyscanner);
2420 if ( yywrap(yyscanner ) )
2426 return yyinput(yyscanner);
2428 return input(yyscanner);
2456 * @param yyscanner The scanner object.
2459 void yyrestart (FILE * input_file , yyscan_t yyscanner)
2461 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2464 yyensure_buffer_stack (yyscanner);
2466 yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
2469 yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
2470 yy_load_buffer_state(yyscanner );
2475 * @param yyscanner The scanner object.
2477 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2479 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2486 yyensure_buffer_stack (yyscanner);
2499 yy_load_buffer_state(yyscanner );
2509 static void yy_load_buffer_state (yyscan_t yyscanner)
2511 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2521 * @param yyscanner The scanner object.
2524 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size , yyscan_t yyscanner)
2528 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
2537 b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ,yyscanner );
2543 yy_init_buffer(b,file ,yyscanner);
2550 * @param yyscanner The scanner object.
2552 void yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
2554 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2563 yyfree((void *) b->yy_ch_buf ,yyscanner );
2565 yyfree((void *) b ,yyscanner );
2572 static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
2576 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2578 yy_flush_buffer(b ,yyscanner);
2599 * @param yyscanner The scanner object.
2601 void yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
2603 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2622 yy_load_buffer_state(yyscanner );
2629 * @param yyscanner The scanner object.
2631 void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2633 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2637 yyensure_buffer_stack(yyscanner);
2654 yy_load_buffer_state(yyscanner );
2660 * @param yyscanner The scanner object.
2662 void yypop_buffer_state (yyscan_t yyscanner)
2664 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2668 yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
2674 yy_load_buffer_state(yyscanner );
2682 static void yyensure_buffer_stack (yyscan_t yyscanner)
2685 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2696 , yyscanner);
2716 , yyscanner);
2729 * @param yyscanner The scanner object.
2732 YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
2742 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
2756 yy_switch_to_buffer(b ,yyscanner );
2764 * @param yyscanner The scanner object.
2769 YY_BUFFER_STATE yy_scan_string (yyconst char * yystr , yyscan_t yyscanner)
2772 return yy_scan_bytes(yystr,strlen(yystr) ,yyscanner);
2779 * @param yyscanner The scanner object.
2782 YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len , yyscan_t yyscanner)
2791 buf = (char *) yyalloc(n ,yyscanner );
2800 b = yy_scan_buffer(buf,n ,yyscanner);
2816 static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
2842 * @param yyscanner The scanner object.
2844 YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner)
2846 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2851 * @param yyscanner The scanner object.
2853 int yyget_lineno (yyscan_t yyscanner)
2855 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2864 * @param yyscanner The scanner object.
2866 int yyget_column (yyscan_t yyscanner)
2868 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2877 * @param yyscanner The scanner object.
2879 FILE *yyget_in (yyscan_t yyscanner)
2881 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2886 * @param yyscanner The scanner object.
2888 FILE *yyget_out (yyscan_t yyscanner)
2890 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2895 * @param yyscanner The scanner object.
2897 yy_size_t yyget_leng (yyscan_t yyscanner)
2899 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2904 * @param yyscanner The scanner object.
2907 char *yyget_text (yyscan_t yyscanner)
2909 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2915 * @param yyscanner The scanner object.
2917 void yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
2919 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2925 * @param yyscanner The scanner object.
2927 void yyset_lineno (int line_number , yyscan_t yyscanner)
2929 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2940 * @param yyscanner The scanner object.
2942 void yyset_column (int column_no , yyscan_t yyscanner)
2944 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2956 * @param yyscanner The scanner object.
2959 void yyset_in (FILE * in_str , yyscan_t yyscanner)
2961 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2965 void yyset_out (FILE * out_str , yyscan_t yyscanner)
2967 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2971 int yyget_debug (yyscan_t yyscanner)
2973 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2977 void yyset_debug (int bdebug , yyscan_t yyscanner)
2979 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2985 YYSTYPE * yyget_lval (yyscan_t yyscanner)
2987 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2991 void yyset_lval (YYSTYPE * yylval_param , yyscan_t yyscanner)
2993 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2997 YYLTYPE *yyget_lloc (yyscan_t yyscanner)
2999 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3003 void yyset_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner)
3005 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3073 static int yy_init_globals (yyscan_t yyscanner)
3075 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3107 int yylex_destroy (yyscan_t yyscanner)
3109 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3113 yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
3115 yypop_buffer_state(yyscanner);
3119 yyfree(yyg->yy_buffer_stack ,yyscanner);
3123 yyfree(yyg->yy_start_stack ,yyscanner );
3128 yy_init_globals( yyscanner);
3131 yyfree ( yyscanner , yyscanner );
3132 yyscanner = NULL;
3141 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
3150 static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
3160 void *yyalloc (yy_size_t size , yyscan_t yyscanner)
3165 void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
3177 void yyfree (void * ptr , yyscan_t yyscanner)
3184 yy_size_t string_input(char* buf, yy_size_t max_size, yyscan_t yyscanner) {
3186 yyget_extra(yyscanner)->preprocessor.lex(&token);
3190 yyset_column(token.location.file,yyscanner);
3191 yyset_lineno(token.location.line,yyscanner);
3200 int check_type(yyscan_t yyscanner) {
3201 struct yyguts_t* yyg = (struct yyguts_t*) yyscanner;
3215 int reserved_word(yyscan_t yyscanner) {
3216 struct yyguts_t* yyg = (struct yyguts_t*) yyscanner;
3225 yyscan_t yyscanner = (yyscan_t) context->scanner;
3229 return reserved_word(yyscanner);
3237 yyscan_t yyscanner = (yyscan_t) context->scanner;
3241 return reserved_word(yyscanner);
3250 yyscan_t yyscanner = (yyscan_t) context->scanner;
3256 return check_type(yyscanner);
3265 yyscan_t yyscanner = (yyscan_t) context->scanner;
3302 int int_constant(yyscan_t yyscanner) {
3303 struct yyguts_t* yyg = (struct yyguts_t*) yyscanner;
3310 int float_constant(yyscan_t yyscanner) {
3311 struct yyguts_t* yyg = (struct yyguts_t*) yyscanner;