1 #ifndef FLEX_HEADER_mootPPLexer_h 2 #define FLEX_HEADER_mootPPLexer_h 3 #define YY_mootPPLexer_CHAR unsigned char 45 #define YY_PROTO(proto) proto 47 #define YY_PROTO(proto) () 56 #line 33 "mootPPLexer.ll" 76 #line 54 "mootPPLexer.ll" 77 #define YY_mootPPLexer_CLASS mootPPLexer 78 #line 56 "mootPPLexer.ll" 79 #define YY_mootPPLexer_INHERIT \ 81 #line 59 "mootPPLexer.ll" 82 #define YY_mootPPLexer_INPUT_CODE \ 83 return moot::GenericLexer::yyinput(buffer,result,max_size); 84 #line 62 "mootPPLexer.ll" 85 #define YY_mootPPLexer_MEMBERS \ 107 unsigned int ntokens; \ 109 std::string output_sentence_separator; \ 111 std::string output_token_separator; \ 114 virtual ~mootPPLexer(void) {}; \ 117 virtual void *mgl_yy_current_buffer_p(void) \ 118 {return reinterpret_cast<void*>(&yy_current_buffer);};\ 119 virtual void *mgl_yy_create_buffer(int size, FILE *unused=stdin) \ 120 {return reinterpret_cast<void*>(yy_create_buffer(unused,size));};\ 121 virtual void mgl_yy_init_buffer(void *buf, FILE *unused=stdin) \ 122 {yy_init_buffer(reinterpret_cast<YY_BUFFER_STATE>(buf),unused);};\ 123 virtual void mgl_yy_delete_buffer(void *buf) \ 124 {yy_delete_buffer(reinterpret_cast<YY_BUFFER_STATE>(buf));};\ 125 virtual void mgl_yy_switch_to_buffer(void *buf) \ 126 {yy_switch_to_buffer(reinterpret_cast<YY_BUFFER_STATE>(buf));};\ 127 virtual void mgl_begin(int stateno); \ 129 #line 107 "mootPPLexer.ll" 130 #define YY_mootPPLexer_CONSTRUCTOR_INIT : \ 131 GenericLexer("mootPPLexer"), \ 133 output_sentence_separator("\n\n"), \ 134 output_token_separator("\n") 135 #line 132 "mootPPLexer.ll" 136 #line 52 "./flexskel.h" 140 #ifndef YY_mootPPLexer_TEXT 141 #define YY_mootPPLexer_TEXT yytext 143 #ifndef YY_mootPPLexer_LENG 144 #define YY_mootPPLexer_LENG yyleng 146 #ifndef YY_mootPPLexer_IN 147 #define YY_mootPPLexer_IN yyin 149 #ifndef YY_mootPPLexer_OUT 150 #define YY_mootPPLexer_OUT yyout 152 #ifndef YY_mootPPLexer_LEX_RETURN 153 #define YY_mootPPLexer_LEX_RETURN int 155 #ifndef YY_mootPPLexer_LEX_DEFINED 156 #define YY_mootPPLexer_LEX_DEFINED 160 #ifndef YY_mootPPLexer_LEX 161 #define YY_mootPPLexer_LEX yylex 163 #ifndef YY_mootPPLexer_LEX_DEFINED 164 #define YY_mootPPLexer_LEX_DEFINED 168 #ifndef YY_mootPPLexer_LEX_PARAM 169 #ifndef YY_USE_PROTOS 170 #define YY_mootPPLexer_LEX_PARAM 172 #define YY_mootPPLexer_LEX_PARAM void 175 #ifndef YY_mootPPLexer_LEX_DEFINED 176 #define YY_mootPPLexer_LEX_DEFINED 180 #ifndef YY_mootPPLexer_LEX_PARAM_DEF 181 #define YY_mootPPLexer_LEX_PARAM_DEF 183 #ifndef YY_mootPPLexer_LEX_DEFINED 184 #define YY_mootPPLexer_LEX_DEFINED 188 #ifndef YY_mootPPLexer_RESTART 189 #define YY_mootPPLexer_RESTART yyrestart 191 #ifndef YY_mootPPLexer_SWITCH_TO_BUFFER 192 #define YY_mootPPLexer_SWITCH_TO_BUFFER yy_switch_to_buffer 194 #ifndef YY_mootPPLexer_LOAD_BUFFER_STATE 195 #define YY_mootPPLexer_LOAD_BUFFER_STATE yy_load_buffer_state 198 #ifndef YY_mootPPLexer_CREATE_BUFFER 199 #define YY_mootPPLexer_CREATE_BUFFER yy_create_buffer 201 #ifndef yy_new_buffer 202 #define yy_new_buffer yy_create_buffer 206 #ifndef YY_mootPPLexer_DELETE_BUFFER 207 #define YY_mootPPLexer_DELETE_BUFFER yy_delete_buffer 209 #ifndef YY_mootPPLexer_INIT_BUFFER 210 #define YY_mootPPLexer_INIT_BUFFER yy_init_buffer 212 #ifdef YY_mootPPLexer_FLEX_DEBUG 213 #ifndef YY_mootPPLexer_DEBUG 214 #define YY_mootPPLexer_DEBUG 1 217 #ifndef YY_mootPPLexer_DEBUG 218 #define YY_mootPPLexer_DEBUG 0 222 #if YY_mootPPLexer_DEBUG != 0 223 #ifndef YY_mootPPLexer_DEBUG_FLAG 224 #define YY_mootPPLexer_DEBUG_FLAG yy_flex_debug 226 #ifndef YY_mootPPLexer_DEBUG_INIT 227 #define YY_mootPPLexer_DEBUG_INIT 1 237 extern void YY_mootPPLexer_RESTART YY_PROTO(( FILE *input_file ));
238 extern void YY_mootPPLexer_SWITCH_TO_BUFFER YY_PROTO((
YY_BUFFER_STATE new_buffer ));
239 extern void YY_mootPPLexer_LOAD_BUFFER_STATE YY_PROTO((
void ));
240 extern YY_BUFFER_STATE YY_mootPPLexer_CREATE_BUFFER YY_PROTO(( FILE *file,
int size ));
241 extern void YY_mootPPLexer_DELETE_BUFFER YY_PROTO((
YY_BUFFER_STATE b ));
242 extern void YY_mootPPLexer_INIT_BUFFER YY_PROTO((
YY_BUFFER_STATE b, FILE *file ));
244 #if YY_mootPPLexer_DEBUG != 0 245 extern int YY_mootPPLexer_DEBUG_FLAG ;
247 extern YY_mootPPLexer_CHAR *YY_mootPPLexer_TEXT;
248 extern int YY_mootPPLexer_LENG;
249 extern FILE *YY_mootPPLexer_IN, *YY_mootPPLexer_OUT;
250 #ifdef YY_mootPPLexer_LEX_DEFINED 251 extern YY_mootPPLexer_LEX_RETURN YY_mootPPLexer_LEX ( YY_mootPPLexer_LEX_PARAM )
252 YY_mootPPLexer_LEX_PARAM_DEF
255 extern YY_mootPPLexer_LEX_RETURN YY_mootPPLexer_LEX ( YY_mootPPLexer_LEX_PARAM )
256 YY_mootPPLexer_LEX_PARAM_DEF
263 #ifndef YY_mootPPLexer_CLASS 264 #define YY_mootPPLexer_CLASS mootPPLexer 266 #ifndef YY_mootPPLexer_ECHO 267 #define YY_mootPPLexer_ECHO yy_echo 269 #ifdef YY_mootPPLexer_ECHO_PURE 270 #define YY_mootPPLexer_ECHO_NOCODE 272 #ifndef YY_mootPPLexer_ECHO_CODE 273 #define YY_mootPPLexer_ECHO_CODE fwrite( (char *) YY_mootPPLexer_TEXT, YY_mootPPLexer_LENG, 1, YY_mootPPLexer_OUT ); 275 #ifndef YY_mootPPLexer_INPUT 276 #define YY_mootPPLexer_INPUT yy_input 278 #ifdef YY_mootPPLexer_INPUT_PURE 279 #define YY_mootPPLexer_INPUT_NOCODE 281 #ifndef YY_mootPPLexer_INPUT_CODE 282 #define YY_mootPPLexer_INPUT_CODE return result= fread( buffer, 1,max_size,YY_mootPPLexer_IN ); 284 #ifdef YY_mootPPLexer_FATAL_ERROR_PURE 285 #define YY_mootPPLexer_FATAL_ERRO_NOCODE 287 #ifndef YY_mootPPLexer_FATAL_ERROR 288 #define YY_mootPPLexer_FATAL_ERROR yy_fatal_error 290 #ifndef YY_mootPPLexer_FATAL_ERROR_CODE 291 #define YY_mootPPLexer_FATAL_ERROR_CODE fputs( msg, stderr );putc( '\n', stderr );exit( 1 ); 293 #ifndef YY_mootPPLexer_WRAP 294 #define YY_mootPPLexer_WRAP yy_wrap 296 #ifdef YY_mootPPLexer_WRAP_PURE 297 #define YY_mootPPLexer_WRAP_NOCODE 299 #ifndef YY_mootPPLexer_WRAP_CODE 300 #define YY_mootPPLexer_WRAP_CODE return 1; 304 #ifndef YY_mootPPLexer_INHERIT 305 #define YY_mootPPLexer_INHERIT 307 #ifndef YY_mootPPLexer_MEMBERS 308 #define YY_mootPPLexer_MEMBERS 310 #ifndef YY_mootPPLexer_CONSTRUCTOR_PARAM 311 #define YY_mootPPLexer_CONSTRUCTOR_PARAM 313 #ifndef YY_mootPPLexer_CONSTRUCTOR_CODE 314 #define YY_mootPPLexer_CONSTRUCTOR_CODE 316 #ifndef YY_mootPPLexer_CONSTRUCTOR_INIT 317 #define YY_mootPPLexer_CONSTRUCTOR_INIT 321 class YY_mootPPLexer_CLASS YY_mootPPLexer_INHERIT
324 YY_mootPPLexer_CHAR *yy_c_buf_p;
325 YY_mootPPLexer_CHAR yy_hold_char;
329 int yy_did_buffer_switch_on_eof;
331 void yy_initialize();
333 int yyinput() {
return input();};
334 int yy_get_next_buffer();
335 void yyunput( YY_mootPPLexer_CHAR c, YY_mootPPLexer_CHAR *buf_ptr );
337 long yy_get_previous_state_ (
void );
338 long yy_try_NUL_trans_ (
long current_state_ );
340 YY_BUFFER_STATE yy_current_buffer;
341 void YY_mootPPLexer_RESTART ( FILE *input_file );
342 void YY_mootPPLexer_SWITCH_TO_BUFFER( YY_BUFFER_STATE new_buffer );
343 void YY_mootPPLexer_LOAD_BUFFER_STATE(
void );
344 YY_BUFFER_STATE YY_mootPPLexer_CREATE_BUFFER( FILE *file,
int size );
345 void YY_mootPPLexer_DELETE_BUFFER( YY_BUFFER_STATE b );
346 void YY_mootPPLexer_INIT_BUFFER( YY_BUFFER_STATE b, FILE *file );
348 virtual void YY_mootPPLexer_ECHO()
349 #ifdef YY_mootPPLexer_ECHO_PURE 353 virtual int YY_mootPPLexer_INPUT(
char *buf,
int &result,
int max_size)
354 #ifdef YY_mootPPLexer_INPUT_PURE 358 virtual void YY_mootPPLexer_FATAL_ERROR(
const char *msg)
359 #ifdef YY_mootPPLexer_FATAL_ERROR_PURE 363 virtual int YY_mootPPLexer_WRAP()
364 #ifdef YY_mootPPLexer_WRAP_PURE 369 YY_mootPPLexer_CHAR *YY_mootPPLexer_TEXT;
370 int YY_mootPPLexer_LENG;
371 FILE *YY_mootPPLexer_IN, *YY_mootPPLexer_OUT;
372 YY_mootPPLexer_LEX_RETURN YY_mootPPLexer_LEX ( YY_mootPPLexer_LEX_PARAM);
373 YY_mootPPLexer_CLASS(YY_mootPPLexer_CONSTRUCTOR_PARAM) ;
374 #if YY_mootPPLexer_DEBUG != 0 375 int YY_mootPPLexer_DEBUG_FLAG;
378 YY_mootPPLexer_MEMBERS
387 #line 188 "mootPPLexer.ll" 389 #line 302 "./flexskel.h" Definition: mootAssocVector.h:39
common utilities for flex++ lexers
struct yy_buffer_state * YY_BUFFER_STATE
Definition: mootClassfreqsLexer.h:49
struct yy_buffer_state * YY_BUFFER_STATE
Definition: mootPPLexer.h:49