mootClassfreqsLexer.h
Go to the documentation of this file.
1 #ifndef FLEX_HEADER_mootClassfreqsLexer_h
2 #define FLEX_HEADER_mootClassfreqsLexer_h
3 #define YY_mootClassfreqsLexer_CHAR unsigned char
4 #line 1 "./flexskel.h"
5 /* A lexical scanner header generated by flex */
6 /* MODIFIED FOR C++ CLASS BY Alain Coetmeur: coetmeur(at)icdc.fr */
7 /* Note that (at) mean the 'at' symbol that I cannot write */
8 /* because it is expanded to the class name */
9 /* made at Informatique-CDC, Research&development department */
10 /* company from the Caisse Des Depots et Consignations */
11 
12 
13 /*********************************************/
14 /* SYSTEM dependent declaration, includes... */
15 /*********************************************/
16 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
17 #ifdef c_plusplus
18 #ifndef __cplusplus
19 #define __cplusplus
20 #endif
21 #endif
22 #ifdef __cplusplus
23 #ifndef YY_USE_PROTOS
24 #define YY_USE_PROTOS
25 #endif
26 #ifndef YY_USE_CLASS
27 #define YY_USE_CLASS
28 #endif
29 #else /* ! __cplusplus */
30 #ifdef __STDC__
31 #ifdef __GNUC__
32 #else
33 #endif /* __GNUC__ */
34 #ifndef YY_USE_PROTOS
35 #define YY_USE_PROTOS
36 #endif
37 #endif /* __STDC__ */
38 #endif /* ! __cplusplus */
39 /*********************************************/
40 /* COMPILER DEPENDENT MACROS */
41 /*********************************************/
42 /* use prototypes in function declarations */
43 #ifndef YY_PROTO
44 #ifdef YY_USE_PROTOS
45 #define YY_PROTO(proto) proto
46 #else
47 #define YY_PROTO(proto) ()
48 #endif
49 #endif
50 #include <stdio.h>
51 
52 
53 
54 
55 /* % here is the declaration from section1 %header{ */
56 #line 33 "mootClassfreqsLexer.ll"
57 
58 /*============================================================================
59  * Doxygen docs
60  *============================================================================*/
73 #include <mootClassfreqsParser.h>
74 #include <mootGenericLexer.h>
75 
76 using namespace moot;
77 #line 55 "mootClassfreqsLexer.ll"
78 #define YY_mootClassfreqsLexer_LEX_PARAM \
79  YY_mootClassfreqsParser_STYPE *yylval, YY_mootClassfreqsParser_LTYPE *yylloc
80 #line 58 "mootClassfreqsLexer.ll"
81 #define YY_mootClassfreqsLexer_CLASS mootClassfreqsLexer
82 #line 60 "mootClassfreqsLexer.ll"
83 #define YY_mootClassfreqsLexer_INHERIT \
84  : public GenericLexer
85 #line 63 "mootClassfreqsLexer.ll"
86 #define YY_mootClassfreqsLexer_INPUT_CODE \
87  return moot::GenericLexer::yyinput(buffer,result,max_size);
88 #line 66 "mootClassfreqsLexer.ll"
89 #define YY_mootClassfreqsLexer_MEMBERS \
90  public: \
91 \
92  virtual ~mootClassfreqsLexer(void) {};\
93  /*----- BEGIN moot::GenericLexer helpers -----*/ \
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); \
105  /*----- END moot::GenericLexer helpers -----*/
106 #line 84 "mootClassfreqsLexer.ll"
107 #define YY_mootClassfreqsLexer_CONSTRUCTOR_INIT :\
108  GenericLexer("mootClassfreqsLexer")
109 #line 101 "mootClassfreqsLexer.ll"
110 #line 52 "./flexskel.h"
111 
113 
114 #ifndef YY_mootClassfreqsLexer_TEXT
115 #define YY_mootClassfreqsLexer_TEXT yytext
116 #endif
117 #ifndef YY_mootClassfreqsLexer_LENG
118 #define YY_mootClassfreqsLexer_LENG yyleng
119 #endif
120 #ifndef YY_mootClassfreqsLexer_IN
121 #define YY_mootClassfreqsLexer_IN yyin
122 #endif
123 #ifndef YY_mootClassfreqsLexer_OUT
124 #define YY_mootClassfreqsLexer_OUT yyout
125 #endif
126 #ifndef YY_mootClassfreqsLexer_LEX_RETURN
127 #define YY_mootClassfreqsLexer_LEX_RETURN int
128 #else
129 #ifndef YY_mootClassfreqsLexer_LEX_DEFINED
130 #define YY_mootClassfreqsLexer_LEX_DEFINED
131 #endif
132 #endif
133 
134 #ifndef YY_mootClassfreqsLexer_LEX
135 #define YY_mootClassfreqsLexer_LEX yylex
136 #else
137 #ifndef YY_mootClassfreqsLexer_LEX_DEFINED
138 #define YY_mootClassfreqsLexer_LEX_DEFINED
139 #endif
140 #endif
141 
142 #ifndef YY_mootClassfreqsLexer_LEX_PARAM
143 #ifndef YY_USE_PROTOS
144 #define YY_mootClassfreqsLexer_LEX_PARAM
145 #else
146 #define YY_mootClassfreqsLexer_LEX_PARAM void
147 #endif
148 #else
149 #ifndef YY_mootClassfreqsLexer_LEX_DEFINED
150 #define YY_mootClassfreqsLexer_LEX_DEFINED
151 #endif
152 #endif
153 
154 #ifndef YY_mootClassfreqsLexer_LEX_PARAM_DEF
155 #define YY_mootClassfreqsLexer_LEX_PARAM_DEF
156 #else
157 #ifndef YY_mootClassfreqsLexer_LEX_DEFINED
158 #define YY_mootClassfreqsLexer_LEX_DEFINED
159 #endif
160 #endif
161 
162 #ifndef YY_mootClassfreqsLexer_RESTART
163 #define YY_mootClassfreqsLexer_RESTART yyrestart
164 #endif
165 #ifndef YY_mootClassfreqsLexer_SWITCH_TO_BUFFER
166 #define YY_mootClassfreqsLexer_SWITCH_TO_BUFFER yy_switch_to_buffer
167 #endif
168 #ifndef YY_mootClassfreqsLexer_LOAD_BUFFER_STATE
169 #define YY_mootClassfreqsLexer_LOAD_BUFFER_STATE yy_load_buffer_state
170 #endif
171 
172 #ifndef YY_mootClassfreqsLexer_CREATE_BUFFER
173 #define YY_mootClassfreqsLexer_CREATE_BUFFER yy_create_buffer
174 #ifndef YY_USE_CLASS
175 #ifndef yy_new_buffer
176 #define yy_new_buffer yy_create_buffer
177 #endif
178 #endif
179 #endif
180 #ifndef YY_mootClassfreqsLexer_DELETE_BUFFER
181 #define YY_mootClassfreqsLexer_DELETE_BUFFER yy_delete_buffer
182 #endif
183 #ifndef YY_mootClassfreqsLexer_INIT_BUFFER
184 #define YY_mootClassfreqsLexer_INIT_BUFFER yy_init_buffer
185 #endif
186 #ifdef YY_mootClassfreqsLexer_FLEX_DEBUG
187 #ifndef YY_mootClassfreqsLexer_DEBUG
188 #define YY_mootClassfreqsLexer_DEBUG 1
189 #endif
190 #else
191 #ifndef YY_mootClassfreqsLexer_DEBUG
192 #define YY_mootClassfreqsLexer_DEBUG 0
193 #endif
194 #endif
195 
196 #if YY_mootClassfreqsLexer_DEBUG != 0
197 #ifndef YY_mootClassfreqsLexer_DEBUG_FLAG
198 #define YY_mootClassfreqsLexer_DEBUG_FLAG yy_flex_debug
199 #endif
200 #ifndef YY_mootClassfreqsLexer_DEBUG_INIT
201 #define YY_mootClassfreqsLexer_DEBUG_INIT 1
202 #endif
203 #endif
204 
205 
206 
207 
208 #ifndef YY_USE_CLASS
209 typedef struct yy_buffer_state *YY_BUFFER_STATE;
210 
211 extern void YY_mootClassfreqsLexer_RESTART YY_PROTO(( FILE *input_file ));
212 extern void YY_mootClassfreqsLexer_SWITCH_TO_BUFFER YY_PROTO(( YY_BUFFER_STATE new_buffer ));
213 extern void YY_mootClassfreqsLexer_LOAD_BUFFER_STATE YY_PROTO(( void ));
214 extern YY_BUFFER_STATE YY_mootClassfreqsLexer_CREATE_BUFFER YY_PROTO(( FILE *file, int size ));
215 extern void YY_mootClassfreqsLexer_DELETE_BUFFER YY_PROTO(( YY_BUFFER_STATE b ));
216 extern void YY_mootClassfreqsLexer_INIT_BUFFER YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
217 
218 #if YY_mootClassfreqsLexer_DEBUG != 0
219 extern int YY_mootClassfreqsLexer_DEBUG_FLAG ;
220 #endif
221 extern YY_mootClassfreqsLexer_CHAR *YY_mootClassfreqsLexer_TEXT;
222 extern int YY_mootClassfreqsLexer_LENG;
223 extern FILE *YY_mootClassfreqsLexer_IN, *YY_mootClassfreqsLexer_OUT;
224 #ifdef YY_mootClassfreqsLexer_LEX_DEFINED
225 extern YY_mootClassfreqsLexer_LEX_RETURN YY_mootClassfreqsLexer_LEX ( YY_mootClassfreqsLexer_LEX_PARAM )
226 YY_mootClassfreqsLexer_LEX_PARAM_DEF
227 #else
228 #ifndef YY_DECL
229 extern YY_mootClassfreqsLexer_LEX_RETURN YY_mootClassfreqsLexer_LEX ( YY_mootClassfreqsLexer_LEX_PARAM )
230 YY_mootClassfreqsLexer_LEX_PARAM_DEF
231 #else
232 /* no declaration if oldstyle flex */
233 #endif
234 #endif
235 #else
236 
237 #ifndef YY_mootClassfreqsLexer_CLASS
238 #define YY_mootClassfreqsLexer_CLASS mootClassfreqsLexer
239 #endif
240 #ifndef YY_mootClassfreqsLexer_ECHO
241 #define YY_mootClassfreqsLexer_ECHO yy_echo
242 #endif
243 #ifdef YY_mootClassfreqsLexer_ECHO_PURE
244 #define YY_mootClassfreqsLexer_ECHO_NOCODE
245 #endif
246 #ifndef YY_mootClassfreqsLexer_ECHO_CODE
247 #define YY_mootClassfreqsLexer_ECHO_CODE fwrite( (char *) YY_mootClassfreqsLexer_TEXT, YY_mootClassfreqsLexer_LENG, 1, YY_mootClassfreqsLexer_OUT );
248 #endif
249 #ifndef YY_mootClassfreqsLexer_INPUT
250 #define YY_mootClassfreqsLexer_INPUT yy_input
251 #endif
252 #ifdef YY_mootClassfreqsLexer_INPUT_PURE
253 #define YY_mootClassfreqsLexer_INPUT_NOCODE
254 #endif
255 #ifndef YY_mootClassfreqsLexer_INPUT_CODE
256 #define YY_mootClassfreqsLexer_INPUT_CODE return result= fread( buffer, 1,max_size,YY_mootClassfreqsLexer_IN );
257 #endif
258 #ifdef YY_mootClassfreqsLexer_FATAL_ERROR_PURE
259 #define YY_mootClassfreqsLexer_FATAL_ERRO_NOCODE
260 #endif
261 #ifndef YY_mootClassfreqsLexer_FATAL_ERROR
262 #define YY_mootClassfreqsLexer_FATAL_ERROR yy_fatal_error
263 #endif
264 #ifndef YY_mootClassfreqsLexer_FATAL_ERROR_CODE
265 #define YY_mootClassfreqsLexer_FATAL_ERROR_CODE fputs( msg, stderr );putc( '\n', stderr );exit( 1 );
266 #endif
267 #ifndef YY_mootClassfreqsLexer_WRAP
268 #define YY_mootClassfreqsLexer_WRAP yy_wrap
269 #endif
270 #ifdef YY_mootClassfreqsLexer_WRAP_PURE
271 #define YY_mootClassfreqsLexer_WRAP_NOCODE
272 #endif
273 #ifndef YY_mootClassfreqsLexer_WRAP_CODE
274 #define YY_mootClassfreqsLexer_WRAP_CODE return 1;
275 #endif
276 
277 
278 #ifndef YY_mootClassfreqsLexer_INHERIT
279 #define YY_mootClassfreqsLexer_INHERIT
280 #endif
281 #ifndef YY_mootClassfreqsLexer_MEMBERS
282 #define YY_mootClassfreqsLexer_MEMBERS
283 #endif
284 #ifndef YY_mootClassfreqsLexer_CONSTRUCTOR_PARAM
285 #define YY_mootClassfreqsLexer_CONSTRUCTOR_PARAM
286 #endif
287 #ifndef YY_mootClassfreqsLexer_CONSTRUCTOR_CODE
288 #define YY_mootClassfreqsLexer_CONSTRUCTOR_CODE
289 #endif
290 #ifndef YY_mootClassfreqsLexer_CONSTRUCTOR_INIT
291 #define YY_mootClassfreqsLexer_CONSTRUCTOR_INIT
292 #endif
293 typedef struct yy_buffer_state *YY_BUFFER_STATE;
294 
295 class YY_mootClassfreqsLexer_CLASS YY_mootClassfreqsLexer_INHERIT
296 {
297  private:/* data */
298  YY_mootClassfreqsLexer_CHAR *yy_c_buf_p;
299  YY_mootClassfreqsLexer_CHAR yy_hold_char;
300  int yy_n_chars;
301  int yy_init;
302  int yy_start;
303  int yy_did_buffer_switch_on_eof;
304  private: /* functions */
305  void yy_initialize();
306  int input();
307  int yyinput() {return input();};
308  int yy_get_next_buffer();
309  void yyunput( YY_mootClassfreqsLexer_CHAR c, YY_mootClassfreqsLexer_CHAR *buf_ptr );
310  /* use long instead of yy_state_type because it is undef */
311  long yy_get_previous_state_ ( void );
312  long yy_try_NUL_trans_ ( long current_state_ );
313  protected:/* non virtual */
314  YY_BUFFER_STATE yy_current_buffer;
315  void YY_mootClassfreqsLexer_RESTART ( FILE *input_file );
316  void YY_mootClassfreqsLexer_SWITCH_TO_BUFFER( YY_BUFFER_STATE new_buffer );
317  void YY_mootClassfreqsLexer_LOAD_BUFFER_STATE( void );
318  YY_BUFFER_STATE YY_mootClassfreqsLexer_CREATE_BUFFER( FILE *file, int size );
319  void YY_mootClassfreqsLexer_DELETE_BUFFER( YY_BUFFER_STATE b );
320  void YY_mootClassfreqsLexer_INIT_BUFFER( YY_BUFFER_STATE b, FILE *file );
321  protected: /* virtual */
322  virtual void YY_mootClassfreqsLexer_ECHO()
323 #ifdef YY_mootClassfreqsLexer_ECHO_PURE
324  =0
325 #endif
326  ;
327  virtual int YY_mootClassfreqsLexer_INPUT(char *buf,int &result,int max_size)
328 #ifdef YY_mootClassfreqsLexer_INPUT_PURE
329  =0
330 #endif
331  ;
332  virtual void YY_mootClassfreqsLexer_FATAL_ERROR(const char *msg)
333 #ifdef YY_mootClassfreqsLexer_FATAL_ERROR_PURE
334  =0
335 #endif
336  ;
337  virtual int YY_mootClassfreqsLexer_WRAP()
338 #ifdef YY_mootClassfreqsLexer_WRAP_PURE
339  =0
340 #endif
341  ;
342  public:
343  YY_mootClassfreqsLexer_CHAR *YY_mootClassfreqsLexer_TEXT;
344  int YY_mootClassfreqsLexer_LENG;
345  FILE *YY_mootClassfreqsLexer_IN, *YY_mootClassfreqsLexer_OUT;
346  YY_mootClassfreqsLexer_LEX_RETURN YY_mootClassfreqsLexer_LEX ( YY_mootClassfreqsLexer_LEX_PARAM);
347  YY_mootClassfreqsLexer_CLASS(YY_mootClassfreqsLexer_CONSTRUCTOR_PARAM) ;
348 #if YY_mootClassfreqsLexer_DEBUG != 0
349  int YY_mootClassfreqsLexer_DEBUG_FLAG;
350 #endif
351  public: /* added members */
352  YY_mootClassfreqsLexer_MEMBERS
353 };
354 #endif
355 
356 
357 
358 /* declaration of externs for public use of yylex scanner */
359 
360 /* % here is the declaration from section2 %header{ */
361 #line 156 "mootClassfreqsLexer.ll"
362 #endif
363 #line 302 "./flexskel.h"
364 
365 /* end of generated header */
Definition: mootAssocVector.h:39
bison++ lexical-class-frequency parameter file parser: autogenerated header
common utilities for flex++ lexers
struct yy_buffer_state * YY_BUFFER_STATE
Definition: mootClassfreqsLexer.h:49