00001 #ifndef FLEX_HEADER_mootClassfreqsLexer_h
00002 #define FLEX_HEADER_mootClassfreqsLexer_h
00003 #define YY_mootClassfreqsLexer_CHAR unsigned char
00004 #line 1 "/usr/local/share/flex++bison++/flexskel.h"
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifdef c_plusplus
00018 #ifndef __cplusplus
00019 #define __cplusplus
00020 #endif
00021 #endif
00022 #ifdef __cplusplus
00023 #ifndef YY_USE_PROTOS
00024 #define YY_USE_PROTOS
00025 #endif
00026 #ifndef YY_USE_CLASS
00027 #define YY_USE_CLASS
00028 #endif
00029 #else
00030 #ifdef __STDC__
00031 #ifdef __GNUC__
00032 #else
00033 #endif
00034 #ifndef YY_USE_PROTOS
00035 #define YY_USE_PROTOS
00036 #endif
00037 #endif
00038 #endif
00039
00040
00041
00042
00043 #ifndef YY_PROTO
00044 #ifdef YY_USE_PROTOS
00045 #define YY_PROTO(proto) proto
00046 #else
00047 #define YY_PROTO(proto) ()
00048 #endif
00049 #endif
00050 #include <stdio.h>
00051
00052
00053
00054
00055
00056 #line 33 "mootClassfreqsLexer.ll"
00057
00058
00059
00060
00068 #include <mootTypes.h>
00069 #include <mootClassfreqsParser.h>
00070 #include <mootGenericLexer.h>
00071
00072 using namespace moot;
00073 #line 51 "mootClassfreqsLexer.ll"
00074 #define YY_mootClassfreqsLexer_LEX_PARAM \
00075 YY_mootClassfreqsParser_STYPE *yylval, YY_mootClassfreqsParser_LTYPE *yylloc
00076 #line 54 "mootClassfreqsLexer.ll"
00077 #define YY_mootClassfreqsLexer_CLASS mootClassfreqsLexer
00078 #line 56 "mootClassfreqsLexer.ll"
00079 #define YY_mootClassfreqsLexer_INHERIT \
00080 : public GenericLexer
00081 #line 59 "mootClassfreqsLexer.ll"
00082 #define YY_mootClassfreqsLexer_INPUT_CODE \
00083 return moot::GenericLexer::yyinput(buffer,result,max_size);
00084 #line 62 "mootClassfreqsLexer.ll"
00085 #define YY_mootClassfreqsLexer_MEMBERS \
00086 public: \
00087 \
00088 virtual ~mootClassfreqsLexer(void) {};\
00089 \
00090 virtual void **mgl_yy_current_buffer_p(void) \
00091 {return (void**)(&yy_current_buffer);};\
00092 virtual void *mgl_yy_create_buffer(int size, FILE *unused=stdin) \
00093 {return (void*)(yy_create_buffer(unused,size));};\
00094 virtual void mgl_yy_init_buffer(void *buf, FILE *unused=stdin) \
00095 {yy_init_buffer((YY_BUFFER_STATE)buf,unused);};\
00096 virtual void mgl_yy_delete_buffer(void *buf) \
00097 {yy_delete_buffer((YY_BUFFER_STATE)buf);};\
00098 virtual void mgl_yy_switch_to_buffer(void *buf) \
00099 {yy_switch_to_buffer((YY_BUFFER_STATE)buf);};\
00100 virtual void mgl_begin(int stateno);
00101 #line 79 "mootClassfreqsLexer.ll"
00102 #define YY_mootClassfreqsLexer_CONSTRUCTOR_INIT :\
00103 GenericLexer("mootClassfreqsLexer")
00104 #line 96 "mootClassfreqsLexer.ll"
00105 #line 52 "/usr/local/share/flex++bison++/flexskel.h"
00106
00107
00108
00109 #ifndef YY_mootClassfreqsLexer_TEXT
00110 #define YY_mootClassfreqsLexer_TEXT yytext
00111 #endif
00112 #ifndef YY_mootClassfreqsLexer_LENG
00113 #define YY_mootClassfreqsLexer_LENG yyleng
00114 #endif
00115 #ifndef YY_mootClassfreqsLexer_IN
00116 #define YY_mootClassfreqsLexer_IN yyin
00117 #endif
00118 #ifndef YY_mootClassfreqsLexer_OUT
00119 #define YY_mootClassfreqsLexer_OUT yyout
00120 #endif
00121 #ifndef YY_mootClassfreqsLexer_LEX_RETURN
00122 #define YY_mootClassfreqsLexer_LEX_RETURN int
00123 #else
00124 #ifndef YY_mootClassfreqsLexer_LEX_DEFINED
00125 #define YY_mootClassfreqsLexer_LEX_DEFINED
00126 #endif
00127 #endif
00128
00129 #ifndef YY_mootClassfreqsLexer_LEX
00130 #define YY_mootClassfreqsLexer_LEX yylex
00131 #else
00132 #ifndef YY_mootClassfreqsLexer_LEX_DEFINED
00133 #define YY_mootClassfreqsLexer_LEX_DEFINED
00134 #endif
00135 #endif
00136
00137 #ifndef YY_mootClassfreqsLexer_LEX_PARAM
00138 #ifndef YY_USE_PROTOS
00139 #define YY_mootClassfreqsLexer_LEX_PARAM
00140 #else
00141 #define YY_mootClassfreqsLexer_LEX_PARAM void
00142 #endif
00143 #else
00144 #ifndef YY_mootClassfreqsLexer_LEX_DEFINED
00145 #define YY_mootClassfreqsLexer_LEX_DEFINED
00146 #endif
00147 #endif
00148
00149 #ifndef YY_mootClassfreqsLexer_LEX_PARAM_DEF
00150 #define YY_mootClassfreqsLexer_LEX_PARAM_DEF
00151 #else
00152 #ifndef YY_mootClassfreqsLexer_LEX_DEFINED
00153 #define YY_mootClassfreqsLexer_LEX_DEFINED
00154 #endif
00155 #endif
00156
00157 #ifndef YY_mootClassfreqsLexer_RESTART
00158 #define YY_mootClassfreqsLexer_RESTART yyrestart
00159 #endif
00160 #ifndef YY_mootClassfreqsLexer_SWITCH_TO_BUFFER
00161 #define YY_mootClassfreqsLexer_SWITCH_TO_BUFFER yy_switch_to_buffer
00162 #endif
00163 #ifndef YY_mootClassfreqsLexer_LOAD_BUFFER_STATE
00164 #define YY_mootClassfreqsLexer_LOAD_BUFFER_STATE yy_load_buffer_state
00165 #endif
00166
00167 #ifndef YY_mootClassfreqsLexer_CREATE_BUFFER
00168 #define YY_mootClassfreqsLexer_CREATE_BUFFER yy_create_buffer
00169 #ifndef YY_USE_CLASS
00170 #ifndef yy_new_buffer
00171 #define yy_new_buffer yy_create_buffer
00172 #endif
00173 #endif
00174 #endif
00175 #ifndef YY_mootClassfreqsLexer_DELETE_BUFFER
00176 #define YY_mootClassfreqsLexer_DELETE_BUFFER yy_delete_buffer
00177 #endif
00178 #ifndef YY_mootClassfreqsLexer_INIT_BUFFER
00179 #define YY_mootClassfreqsLexer_INIT_BUFFER yy_init_buffer
00180 #endif
00181 #ifdef YY_mootClassfreqsLexer_FLEX_DEBUG
00182 #ifndef YY_mootClassfreqsLexer_DEBUG
00183 #define YY_mootClassfreqsLexer_DEBUG 1
00184 #endif
00185 #else
00186 #ifndef YY_mootClassfreqsLexer_DEBUG
00187 #define YY_mootClassfreqsLexer_DEBUG 0
00188 #endif
00189 #endif
00190
00191 #if YY_mootClassfreqsLexer_DEBUG != 0
00192 #ifndef YY_mootClassfreqsLexer_DEBUG_FLAG
00193 #define YY_mootClassfreqsLexer_DEBUG_FLAG yy_flex_debug
00194 #endif
00195 #ifndef YY_mootClassfreqsLexer_DEBUG_INIT
00196 #define YY_mootClassfreqsLexer_DEBUG_INIT 1
00197 #endif
00198 #endif
00199
00200
00201
00202
00203 #ifndef YY_USE_CLASS
00204 typedef struct yy_buffer_state *YY_BUFFER_STATE;
00205
00206 extern void YY_mootClassfreqsLexer_RESTART YY_PROTO(( FILE *input_file ));
00207 extern void YY_mootClassfreqsLexer_SWITCH_TO_BUFFER YY_PROTO(( YY_BUFFER_STATE new_buffer ));
00208 extern void YY_mootClassfreqsLexer_LOAD_BUFFER_STATE YY_PROTO(( void ));
00209 extern YY_BUFFER_STATE YY_mootClassfreqsLexer_CREATE_BUFFER YY_PROTO(( FILE *file, int size ));
00210 extern void YY_mootClassfreqsLexer_DELETE_BUFFER YY_PROTO(( YY_BUFFER_STATE b ));
00211 extern void YY_mootClassfreqsLexer_INIT_BUFFER YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
00212
00213 #if YY_mootClassfreqsLexer_DEBUG != 0
00214 extern int YY_mootClassfreqsLexer_DEBUG_FLAG ;
00215 #endif
00216 extern YY_mootClassfreqsLexer_CHAR *YY_mootClassfreqsLexer_TEXT;
00217 extern int YY_mootClassfreqsLexer_LENG;
00218 extern FILE *YY_mootClassfreqsLexer_IN, *YY_mootClassfreqsLexer_OUT;
00219 #ifdef YY_mootClassfreqsLexer_LEX_DEFINED
00220 extern YY_mootClassfreqsLexer_LEX_RETURN YY_mootClassfreqsLexer_LEX ( YY_mootClassfreqsLexer_LEX_PARAM )
00221 YY_mootClassfreqsLexer_LEX_PARAM_DEF
00222 #else
00223 #ifndef YY_DECL
00224 extern YY_mootClassfreqsLexer_LEX_RETURN YY_mootClassfreqsLexer_LEX ( YY_mootClassfreqsLexer_LEX_PARAM )
00225 YY_mootClassfreqsLexer_LEX_PARAM_DEF
00226 #else
00227
00228 #endif
00229 #endif
00230 #else
00231
00232 #ifndef YY_mootClassfreqsLexer_CLASS
00233 #define YY_mootClassfreqsLexer_CLASS mootClassfreqsLexer
00234 #endif
00235 #ifndef YY_mootClassfreqsLexer_ECHO
00236 #define YY_mootClassfreqsLexer_ECHO yy_echo
00237 #endif
00238 #ifdef YY_mootClassfreqsLexer_ECHO_PURE
00239 #define YY_mootClassfreqsLexer_ECHO_NOCODE
00240 #endif
00241 #ifndef YY_mootClassfreqsLexer_ECHO_CODE
00242 #define YY_mootClassfreqsLexer_ECHO_CODE fwrite( (char *) YY_mootClassfreqsLexer_TEXT, YY_mootClassfreqsLexer_LENG, 1, YY_mootClassfreqsLexer_OUT );
00243 #endif
00244 #ifndef YY_mootClassfreqsLexer_INPUT
00245 #define YY_mootClassfreqsLexer_INPUT yy_input
00246 #endif
00247 #ifdef YY_mootClassfreqsLexer_INPUT_PURE
00248 #define YY_mootClassfreqsLexer_INPUT_NOCODE
00249 #endif
00250 #ifndef YY_mootClassfreqsLexer_INPUT_CODE
00251 #define YY_mootClassfreqsLexer_INPUT_CODE return result= fread( buffer, 1,max_size,YY_mootClassfreqsLexer_IN );
00252 #endif
00253 #ifdef YY_mootClassfreqsLexer_FATAL_ERROR_PURE
00254 #define YY_mootClassfreqsLexer_FATAL_ERRO_NOCODE
00255 #endif
00256 #ifndef YY_mootClassfreqsLexer_FATAL_ERROR
00257 #define YY_mootClassfreqsLexer_FATAL_ERROR yy_fatal_error
00258 #endif
00259 #ifndef YY_mootClassfreqsLexer_FATAL_ERROR_CODE
00260 #define YY_mootClassfreqsLexer_FATAL_ERROR_CODE fputs( msg, stderr );putc( '\n', stderr );exit( 1 );
00261 #endif
00262 #ifndef YY_mootClassfreqsLexer_WRAP
00263 #define YY_mootClassfreqsLexer_WRAP yy_wrap
00264 #endif
00265 #ifdef YY_mootClassfreqsLexer_WRAP_PURE
00266 #define YY_mootClassfreqsLexer_WRAP_NOCODE
00267 #endif
00268 #ifndef YY_mootClassfreqsLexer_WRAP_CODE
00269 #define YY_mootClassfreqsLexer_WRAP_CODE return 1;
00270 #endif
00271
00272
00273 #ifndef YY_mootClassfreqsLexer_INHERIT
00274 #define YY_mootClassfreqsLexer_INHERIT
00275 #endif
00276 #ifndef YY_mootClassfreqsLexer_MEMBERS
00277 #define YY_mootClassfreqsLexer_MEMBERS
00278 #endif
00279 #ifndef YY_mootClassfreqsLexer_CONSTRUCTOR_PARAM
00280 #define YY_mootClassfreqsLexer_CONSTRUCTOR_PARAM
00281 #endif
00282 #ifndef YY_mootClassfreqsLexer_CONSTRUCTOR_CODE
00283 #define YY_mootClassfreqsLexer_CONSTRUCTOR_CODE
00284 #endif
00285 #ifndef YY_mootClassfreqsLexer_CONSTRUCTOR_INIT
00286 #define YY_mootClassfreqsLexer_CONSTRUCTOR_INIT
00287 #endif
00288 typedef struct yy_buffer_state *YY_BUFFER_STATE;
00289
00290 class YY_mootClassfreqsLexer_CLASS YY_mootClassfreqsLexer_INHERIT
00291 {
00292 private:
00293 YY_mootClassfreqsLexer_CHAR *yy_c_buf_p;
00294 YY_mootClassfreqsLexer_CHAR yy_hold_char;
00295 int yy_n_chars;
00296 int yy_init;
00297 int yy_start;
00298 int yy_did_buffer_switch_on_eof;
00299 private:
00300 void yy_initialize();
00301 int input();
00302 int yyinput() {return input();};
00303 int yy_get_next_buffer();
00304 void yyunput( YY_mootClassfreqsLexer_CHAR c, YY_mootClassfreqsLexer_CHAR *buf_ptr );
00305
00306 long yy_get_previous_state_ ( void );
00307 long yy_try_NUL_trans_ ( long current_state_ );
00308 protected:
00309 YY_BUFFER_STATE yy_current_buffer;
00310 void YY_mootClassfreqsLexer_RESTART ( FILE *input_file );
00311 void YY_mootClassfreqsLexer_SWITCH_TO_BUFFER( YY_BUFFER_STATE new_buffer );
00312 void YY_mootClassfreqsLexer_LOAD_BUFFER_STATE( void );
00313 YY_BUFFER_STATE YY_mootClassfreqsLexer_CREATE_BUFFER( FILE *file, int size );
00314 void YY_mootClassfreqsLexer_DELETE_BUFFER( YY_BUFFER_STATE b );
00315 void YY_mootClassfreqsLexer_INIT_BUFFER( YY_BUFFER_STATE b, FILE *file );
00316 protected:
00317 virtual void YY_mootClassfreqsLexer_ECHO()
00318 #ifdef YY_mootClassfreqsLexer_ECHO_PURE
00319 =0
00320 #endif
00321 ;
00322 virtual int YY_mootClassfreqsLexer_INPUT(char *buf,int &result,int max_size)
00323 #ifdef YY_mootClassfreqsLexer_INPUT_PURE
00324 =0
00325 #endif
00326 ;
00327 virtual void YY_mootClassfreqsLexer_FATAL_ERROR(char *msg)
00328 #ifdef YY_mootClassfreqsLexer_FATAL_ERROR_PURE
00329 =0
00330 #endif
00331 ;
00332 virtual int YY_mootClassfreqsLexer_WRAP()
00333 #ifdef YY_mootClassfreqsLexer_WRAP_PURE
00334 =0
00335 #endif
00336 ;
00337 public:
00338 YY_mootClassfreqsLexer_CHAR *YY_mootClassfreqsLexer_TEXT;
00339 int YY_mootClassfreqsLexer_LENG;
00340 FILE *YY_mootClassfreqsLexer_IN, *YY_mootClassfreqsLexer_OUT;
00341 YY_mootClassfreqsLexer_LEX_RETURN YY_mootClassfreqsLexer_LEX ( YY_mootClassfreqsLexer_LEX_PARAM);
00342 YY_mootClassfreqsLexer_CLASS(YY_mootClassfreqsLexer_CONSTRUCTOR_PARAM) ;
00343 #if YY_mootClassfreqsLexer_DEBUG != 0
00344 int YY_mootClassfreqsLexer_DEBUG_FLAG;
00345 #endif
00346 public:
00347 YY_mootClassfreqsLexer_MEMBERS
00348 };
00349 #endif
00350
00351
00352
00353
00354
00355
00356 #line 151 "mootClassfreqsLexer.ll"
00357 #endif
00358 #line 302 "/usr/local/share/flex++bison++/flexskel.h"
00359
00360