1 #ifndef FLEX_HEADER_mootNgramsLexer_h 2 #define FLEX_HEADER_mootNgramsLexer_h 3 #define YY_mootNgramsLexer_CHAR unsigned char 45 #define YY_PROTO(proto) proto 47 #define YY_PROTO(proto) () 56 #line 33 "mootNgramsLexer.ll" 77 #line 55 "mootNgramsLexer.ll" 78 #define YY_mootNgramsLexer_LEX_PARAM \ 79 YY_mootNgramsParser_STYPE *yylval, YY_mootNgramsParser_LTYPE *yylloc 80 #line 58 "mootNgramsLexer.ll" 81 #define YY_mootNgramsLexer_CLASS mootNgramsLexer 82 #line 60 "mootNgramsLexer.ll" 83 #define YY_mootNgramsLexer_INHERIT \ 85 #line 63 "mootNgramsLexer.ll" 86 #define YY_mootNgramsLexer_INPUT_CODE \ 87 return moot::GenericLexer::yyinput(buffer,result,max_size); 88 #line 66 "mootNgramsLexer.ll" 89 #define YY_mootNgramsLexer_MEMBERS \ 92 virtual ~mootNgramsLexer(void) {}; \ 94 virtual void *mgl_yy_current_buffer_p(void) \ 95 {return reinterpret_cast<void*>(&yy_current_buffer);};\ 96 virtual void *mgl_yy_create_buffer(int size, FILE *unused=stdin) \ 97 {return reinterpret_cast<void*>(yy_create_buffer(unused,size));};\ 98 virtual void mgl_yy_init_buffer(void *buf, FILE *unused=stdin) \ 99 {yy_init_buffer(reinterpret_cast<YY_BUFFER_STATE>(buf),unused);};\ 100 virtual void mgl_yy_delete_buffer(void *buf) \ 101 {yy_delete_buffer(reinterpret_cast<YY_BUFFER_STATE>(buf));};\ 102 virtual void mgl_yy_switch_to_buffer(void *buf) \ 103 {yy_switch_to_buffer(reinterpret_cast<YY_BUFFER_STATE>(buf));};\ 104 virtual void mgl_begin(int stateno); \ 107 #line 85 "mootNgramsLexer.ll" 108 #define YY_mootNgramsLexer_CONSTRUCTOR_INIT :\ 109 GenericLexer("mootNgramsLexer") 110 #line 101 "mootNgramsLexer.ll" 111 #line 52 "./flexskel.h" 115 #ifndef YY_mootNgramsLexer_TEXT 116 #define YY_mootNgramsLexer_TEXT yytext 118 #ifndef YY_mootNgramsLexer_LENG 119 #define YY_mootNgramsLexer_LENG yyleng 121 #ifndef YY_mootNgramsLexer_IN 122 #define YY_mootNgramsLexer_IN yyin 124 #ifndef YY_mootNgramsLexer_OUT 125 #define YY_mootNgramsLexer_OUT yyout 127 #ifndef YY_mootNgramsLexer_LEX_RETURN 128 #define YY_mootNgramsLexer_LEX_RETURN int 130 #ifndef YY_mootNgramsLexer_LEX_DEFINED 131 #define YY_mootNgramsLexer_LEX_DEFINED 135 #ifndef YY_mootNgramsLexer_LEX 136 #define YY_mootNgramsLexer_LEX yylex 138 #ifndef YY_mootNgramsLexer_LEX_DEFINED 139 #define YY_mootNgramsLexer_LEX_DEFINED 143 #ifndef YY_mootNgramsLexer_LEX_PARAM 144 #ifndef YY_USE_PROTOS 145 #define YY_mootNgramsLexer_LEX_PARAM 147 #define YY_mootNgramsLexer_LEX_PARAM void 150 #ifndef YY_mootNgramsLexer_LEX_DEFINED 151 #define YY_mootNgramsLexer_LEX_DEFINED 155 #ifndef YY_mootNgramsLexer_LEX_PARAM_DEF 156 #define YY_mootNgramsLexer_LEX_PARAM_DEF 158 #ifndef YY_mootNgramsLexer_LEX_DEFINED 159 #define YY_mootNgramsLexer_LEX_DEFINED 163 #ifndef YY_mootNgramsLexer_RESTART 164 #define YY_mootNgramsLexer_RESTART yyrestart 166 #ifndef YY_mootNgramsLexer_SWITCH_TO_BUFFER 167 #define YY_mootNgramsLexer_SWITCH_TO_BUFFER yy_switch_to_buffer 169 #ifndef YY_mootNgramsLexer_LOAD_BUFFER_STATE 170 #define YY_mootNgramsLexer_LOAD_BUFFER_STATE yy_load_buffer_state 173 #ifndef YY_mootNgramsLexer_CREATE_BUFFER 174 #define YY_mootNgramsLexer_CREATE_BUFFER yy_create_buffer 176 #ifndef yy_new_buffer 177 #define yy_new_buffer yy_create_buffer 181 #ifndef YY_mootNgramsLexer_DELETE_BUFFER 182 #define YY_mootNgramsLexer_DELETE_BUFFER yy_delete_buffer 184 #ifndef YY_mootNgramsLexer_INIT_BUFFER 185 #define YY_mootNgramsLexer_INIT_BUFFER yy_init_buffer 187 #ifdef YY_mootNgramsLexer_FLEX_DEBUG 188 #ifndef YY_mootNgramsLexer_DEBUG 189 #define YY_mootNgramsLexer_DEBUG 1 192 #ifndef YY_mootNgramsLexer_DEBUG 193 #define YY_mootNgramsLexer_DEBUG 0 197 #if YY_mootNgramsLexer_DEBUG != 0 198 #ifndef YY_mootNgramsLexer_DEBUG_FLAG 199 #define YY_mootNgramsLexer_DEBUG_FLAG yy_flex_debug 201 #ifndef YY_mootNgramsLexer_DEBUG_INIT 202 #define YY_mootNgramsLexer_DEBUG_INIT 1 212 extern void YY_mootNgramsLexer_RESTART YY_PROTO(( FILE *input_file ));
213 extern void YY_mootNgramsLexer_SWITCH_TO_BUFFER YY_PROTO((
YY_BUFFER_STATE new_buffer ));
214 extern void YY_mootNgramsLexer_LOAD_BUFFER_STATE YY_PROTO((
void ));
215 extern YY_BUFFER_STATE YY_mootNgramsLexer_CREATE_BUFFER YY_PROTO(( FILE *file,
int size ));
216 extern void YY_mootNgramsLexer_DELETE_BUFFER YY_PROTO((
YY_BUFFER_STATE b ));
217 extern void YY_mootNgramsLexer_INIT_BUFFER YY_PROTO((
YY_BUFFER_STATE b, FILE *file ));
219 #if YY_mootNgramsLexer_DEBUG != 0 220 extern int YY_mootNgramsLexer_DEBUG_FLAG ;
222 extern YY_mootNgramsLexer_CHAR *YY_mootNgramsLexer_TEXT;
223 extern int YY_mootNgramsLexer_LENG;
224 extern FILE *YY_mootNgramsLexer_IN, *YY_mootNgramsLexer_OUT;
225 #ifdef YY_mootNgramsLexer_LEX_DEFINED 226 extern YY_mootNgramsLexer_LEX_RETURN YY_mootNgramsLexer_LEX ( YY_mootNgramsLexer_LEX_PARAM )
227 YY_mootNgramsLexer_LEX_PARAM_DEF
230 extern YY_mootNgramsLexer_LEX_RETURN YY_mootNgramsLexer_LEX ( YY_mootNgramsLexer_LEX_PARAM )
231 YY_mootNgramsLexer_LEX_PARAM_DEF
238 #ifndef YY_mootNgramsLexer_CLASS 239 #define YY_mootNgramsLexer_CLASS mootNgramsLexer 241 #ifndef YY_mootNgramsLexer_ECHO 242 #define YY_mootNgramsLexer_ECHO yy_echo 244 #ifdef YY_mootNgramsLexer_ECHO_PURE 245 #define YY_mootNgramsLexer_ECHO_NOCODE 247 #ifndef YY_mootNgramsLexer_ECHO_CODE 248 #define YY_mootNgramsLexer_ECHO_CODE fwrite( (char *) YY_mootNgramsLexer_TEXT, YY_mootNgramsLexer_LENG, 1, YY_mootNgramsLexer_OUT ); 250 #ifndef YY_mootNgramsLexer_INPUT 251 #define YY_mootNgramsLexer_INPUT yy_input 253 #ifdef YY_mootNgramsLexer_INPUT_PURE 254 #define YY_mootNgramsLexer_INPUT_NOCODE 256 #ifndef YY_mootNgramsLexer_INPUT_CODE 257 #define YY_mootNgramsLexer_INPUT_CODE return result= fread( buffer, 1,max_size,YY_mootNgramsLexer_IN ); 259 #ifdef YY_mootNgramsLexer_FATAL_ERROR_PURE 260 #define YY_mootNgramsLexer_FATAL_ERRO_NOCODE 262 #ifndef YY_mootNgramsLexer_FATAL_ERROR 263 #define YY_mootNgramsLexer_FATAL_ERROR yy_fatal_error 265 #ifndef YY_mootNgramsLexer_FATAL_ERROR_CODE 266 #define YY_mootNgramsLexer_FATAL_ERROR_CODE fputs( msg, stderr );putc( '\n', stderr );exit( 1 ); 268 #ifndef YY_mootNgramsLexer_WRAP 269 #define YY_mootNgramsLexer_WRAP yy_wrap 271 #ifdef YY_mootNgramsLexer_WRAP_PURE 272 #define YY_mootNgramsLexer_WRAP_NOCODE 274 #ifndef YY_mootNgramsLexer_WRAP_CODE 275 #define YY_mootNgramsLexer_WRAP_CODE return 1; 279 #ifndef YY_mootNgramsLexer_INHERIT 280 #define YY_mootNgramsLexer_INHERIT 282 #ifndef YY_mootNgramsLexer_MEMBERS 283 #define YY_mootNgramsLexer_MEMBERS 285 #ifndef YY_mootNgramsLexer_CONSTRUCTOR_PARAM 286 #define YY_mootNgramsLexer_CONSTRUCTOR_PARAM 288 #ifndef YY_mootNgramsLexer_CONSTRUCTOR_CODE 289 #define YY_mootNgramsLexer_CONSTRUCTOR_CODE 291 #ifndef YY_mootNgramsLexer_CONSTRUCTOR_INIT 292 #define YY_mootNgramsLexer_CONSTRUCTOR_INIT 296 class YY_mootNgramsLexer_CLASS YY_mootNgramsLexer_INHERIT
299 YY_mootNgramsLexer_CHAR *yy_c_buf_p;
300 YY_mootNgramsLexer_CHAR yy_hold_char;
304 int yy_did_buffer_switch_on_eof;
306 void yy_initialize();
308 int yyinput() {
return input();};
309 int yy_get_next_buffer();
310 void yyunput( YY_mootNgramsLexer_CHAR c, YY_mootNgramsLexer_CHAR *buf_ptr );
312 long yy_get_previous_state_ (
void );
313 long yy_try_NUL_trans_ (
long current_state_ );
315 YY_BUFFER_STATE yy_current_buffer;
316 void YY_mootNgramsLexer_RESTART ( FILE *input_file );
317 void YY_mootNgramsLexer_SWITCH_TO_BUFFER( YY_BUFFER_STATE new_buffer );
318 void YY_mootNgramsLexer_LOAD_BUFFER_STATE(
void );
319 YY_BUFFER_STATE YY_mootNgramsLexer_CREATE_BUFFER( FILE *file,
int size );
320 void YY_mootNgramsLexer_DELETE_BUFFER( YY_BUFFER_STATE b );
321 void YY_mootNgramsLexer_INIT_BUFFER( YY_BUFFER_STATE b, FILE *file );
323 virtual void YY_mootNgramsLexer_ECHO()
324 #ifdef YY_mootNgramsLexer_ECHO_PURE 328 virtual int YY_mootNgramsLexer_INPUT(
char *buf,
int &result,
int max_size)
329 #ifdef YY_mootNgramsLexer_INPUT_PURE 333 virtual void YY_mootNgramsLexer_FATAL_ERROR(
const char *msg)
334 #ifdef YY_mootNgramsLexer_FATAL_ERROR_PURE 338 virtual int YY_mootNgramsLexer_WRAP()
339 #ifdef YY_mootNgramsLexer_WRAP_PURE 344 YY_mootNgramsLexer_CHAR *YY_mootNgramsLexer_TEXT;
345 int YY_mootNgramsLexer_LENG;
346 FILE *YY_mootNgramsLexer_IN, *YY_mootNgramsLexer_OUT;
347 YY_mootNgramsLexer_LEX_RETURN YY_mootNgramsLexer_LEX ( YY_mootNgramsLexer_LEX_PARAM);
348 YY_mootNgramsLexer_CLASS(YY_mootNgramsLexer_CONSTRUCTOR_PARAM) ;
349 #if YY_mootNgramsLexer_DEBUG != 0 350 int YY_mootNgramsLexer_DEBUG_FLAG;
353 YY_mootNgramsLexer_MEMBERS
362 #line 151 "mootNgramsLexer.ll" 364 #line 302 "./flexskel.h" Definition: mootAssocVector.h:39
struct yy_buffer_state * YY_BUFFER_STATE
Definition: mootNgramsLexer.h:49
common utilities for flex++ lexers
struct yy_buffer_state * YY_BUFFER_STATE
Definition: mootClassfreqsLexer.h:49
bison++ n-gram frequency parameter file parser: autogenerated header