Merge release-5-0 into master
[alexxy/gromacs.git] / src / gromacs / selection / scanner_flex.h
1 #ifndef _gmx_sel_yyHEADER_H
2 #define _gmx_sel_yyHEADER_H 1
3 #define _gmx_sel_yyIN_HEADER 1
4
5 #line 6 "scanner_flex.h"
6 #line 50 "scanner.l"
7 #if !_gmx_sel_yyIN_HEADER
8 #include "gmxpre.h"
9 #endif
10
11 // Required before flex definitions, since it includes <stdint.h>.
12 // Otherwise, compilers not strictly C99 get macro redefinition errors,
13 // since flex defines INT32_MAX etc. in such cases.
14 #include "gromacs/utility/basedefinitions.h"
15
16
17
18 #line 19 "scanner_flex.h"
19
20 #define  YY_INT_ALIGNED short int
21
22 /* A lexical scanner generated by flex */
23
24 #define FLEX_SCANNER
25 #define YY_FLEX_MAJOR_VERSION 2
26 #define YY_FLEX_MINOR_VERSION 5
27 #define YY_FLEX_SUBMINOR_VERSION 37
28 #if YY_FLEX_SUBMINOR_VERSION > 0
29 #define FLEX_BETA
30 #endif
31
32 /* First, we deal with  platform-specific or compiler-specific issues. */
33
34 /* begin standard C headers. */
35 #include <stdio.h>
36 #include <string.h>
37 #include <errno.h>
38 #include <stdlib.h>
39
40 /* end standard C headers. */
41
42 /* flex integer type definitions */
43
44 #ifndef FLEXINT_H
45 #define FLEXINT_H
46
47 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
48
49 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
50
51 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
52  * if you want the limit (max/min) macros for int types. 
53  */
54 #ifndef __STDC_LIMIT_MACROS
55 #define __STDC_LIMIT_MACROS 1
56 #endif
57
58 #include <inttypes.h>
59 typedef int8_t flex_int8_t;
60 typedef uint8_t flex_uint8_t;
61 typedef int16_t flex_int16_t;
62 typedef uint16_t flex_uint16_t;
63 typedef int32_t flex_int32_t;
64 typedef uint32_t flex_uint32_t;
65 #else
66 typedef signed char flex_int8_t;
67 typedef short int flex_int16_t;
68 typedef int flex_int32_t;
69 typedef unsigned char flex_uint8_t; 
70 typedef unsigned short int flex_uint16_t;
71 typedef unsigned int flex_uint32_t;
72
73 /* Limits of integral types. */
74 #ifndef INT8_MIN
75 #define INT8_MIN               (-128)
76 #endif
77 #ifndef INT16_MIN
78 #define INT16_MIN              (-32767-1)
79 #endif
80 #ifndef INT32_MIN
81 #define INT32_MIN              (-2147483647-1)
82 #endif
83 #ifndef INT8_MAX
84 #define INT8_MAX               (127)
85 #endif
86 #ifndef INT16_MAX
87 #define INT16_MAX              (32767)
88 #endif
89 #ifndef INT32_MAX
90 #define INT32_MAX              (2147483647)
91 #endif
92 #ifndef UINT8_MAX
93 #define UINT8_MAX              (255U)
94 #endif
95 #ifndef UINT16_MAX
96 #define UINT16_MAX             (65535U)
97 #endif
98 #ifndef UINT32_MAX
99 #define UINT32_MAX             (4294967295U)
100 #endif
101
102 #endif /* ! C99 */
103
104 #endif /* ! FLEXINT_H */
105
106 #ifdef __cplusplus
107
108 /* The "const" storage-class-modifier is valid. */
109 #define YY_USE_CONST
110
111 #else   /* ! __cplusplus */
112
113 /* C99 requires __STDC__ to be defined as 1. */
114 #if defined (__STDC__)
115
116 #define YY_USE_CONST
117
118 #endif  /* defined (__STDC__) */
119 #endif  /* ! __cplusplus */
120
121 #ifdef YY_USE_CONST
122 #define yyconst const
123 #else
124 #define yyconst
125 #endif
126
127 /* An opaque pointer. */
128 #ifndef YY_TYPEDEF_YY_SCANNER_T
129 #define YY_TYPEDEF_YY_SCANNER_T
130 typedef void* yyscan_t;
131 #endif
132
133 /* For convenience, these vars (plus the bison vars far below)
134    are macros in the reentrant scanner. */
135 #define yyin yyg->yyin_r
136 #define yyout yyg->yyout_r
137 #define yyextra yyg->yyextra_r
138 #define yyleng yyg->yyleng_r
139 #define yytext yyg->yytext_r
140 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
141 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
142 #define yy_flex_debug yyg->yy_flex_debug_r
143
144 /* Size of default input buffer. */
145 #ifndef YY_BUF_SIZE
146 #define YY_BUF_SIZE 16384
147 #endif
148
149 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
150 #define YY_TYPEDEF_YY_BUFFER_STATE
151 typedef struct yy_buffer_state *YY_BUFFER_STATE;
152 #endif
153
154 #ifndef YY_TYPEDEF_YY_SIZE_T
155 #define YY_TYPEDEF_YY_SIZE_T
156 typedef size_t yy_size_t;
157 #endif
158
159 #ifndef YY_STRUCT_YY_BUFFER_STATE
160 #define YY_STRUCT_YY_BUFFER_STATE
161 struct yy_buffer_state
162         {
163         FILE *yy_input_file;
164
165         char *yy_ch_buf;                /* input buffer */
166         char *yy_buf_pos;               /* current position in input buffer */
167
168         /* Size of input buffer in bytes, not including room for EOB
169          * characters.
170          */
171         yy_size_t yy_buf_size;
172
173         /* Number of characters read into yy_ch_buf, not including EOB
174          * characters.
175          */
176         yy_size_t yy_n_chars;
177
178         /* Whether we "own" the buffer - i.e., we know we created it,
179          * and can realloc() it to grow it, and should free() it to
180          * delete it.
181          */
182         int yy_is_our_buffer;
183
184         /* Whether this is an "interactive" input source; if so, and
185          * if we're using stdio for input, then we want to use getc()
186          * instead of fread(), to make sure we stop fetching input after
187          * each newline.
188          */
189         int yy_is_interactive;
190
191         /* Whether we're considered to be at the beginning of a line.
192          * If so, '^' rules will be active on the next match, otherwise
193          * not.
194          */
195         int yy_at_bol;
196
197     int yy_bs_lineno; /**< The line count. */
198     int yy_bs_column; /**< The column count. */
199     
200         /* Whether to try to fill the input buffer when we reach the
201          * end of it.
202          */
203         int yy_fill_buffer;
204
205         int yy_buffer_status;
206
207         };
208 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
209
210 void _gmx_sel_yyrestart (FILE *input_file ,yyscan_t yyscanner );
211 void _gmx_sel_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
212 YY_BUFFER_STATE _gmx_sel_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
213 void _gmx_sel_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
214 void _gmx_sel_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
215 void _gmx_sel_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
216 void _gmx_sel_yypop_buffer_state (yyscan_t yyscanner );
217
218 YY_BUFFER_STATE _gmx_sel_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
219 YY_BUFFER_STATE _gmx_sel_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
220 YY_BUFFER_STATE _gmx_sel_yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
221
222 void *_gmx_sel_yyalloc (yy_size_t ,yyscan_t yyscanner );
223 void *_gmx_sel_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
224 void _gmx_sel_yyfree (void * ,yyscan_t yyscanner );
225
226 #define _gmx_sel_yywrap(yyscanner) 1
227 #define YY_SKIP_YYWRAP
228
229 #define yytext_ptr yytext_r
230
231 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
232 #define INITIAL 0
233 #define matchof 1
234 #define matchbool 2
235 #define cmdstart 3
236
237 #endif
238
239 #ifndef YY_NO_UNISTD_H
240 /* Special case for "unistd.h", since it is non-ANSI. We include it way
241  * down here because we want the user's section 1 to have been scanned first.
242  * The user has a chance to override it with an option.
243  */
244 #include <unistd.h>
245 #endif
246
247 #ifndef YY_EXTRA_TYPE
248 #define YY_EXTRA_TYPE void *
249 #endif
250
251 int _gmx_sel_yylex_init (yyscan_t* scanner);
252
253 int _gmx_sel_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
254
255 /* Accessor methods to globals.
256    These are made visible to non-reentrant scanners for convenience. */
257
258 int _gmx_sel_yylex_destroy (yyscan_t yyscanner );
259
260 int _gmx_sel_yyget_debug (yyscan_t yyscanner );
261
262 void _gmx_sel_yyset_debug (int debug_flag ,yyscan_t yyscanner );
263
264 YY_EXTRA_TYPE _gmx_sel_yyget_extra (yyscan_t yyscanner );
265
266 void _gmx_sel_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
267
268 FILE *_gmx_sel_yyget_in (yyscan_t yyscanner );
269
270 void _gmx_sel_yyset_in  (FILE * in_str ,yyscan_t yyscanner );
271
272 FILE *_gmx_sel_yyget_out (yyscan_t yyscanner );
273
274 void _gmx_sel_yyset_out  (FILE * out_str ,yyscan_t yyscanner );
275
276 yy_size_t _gmx_sel_yyget_leng (yyscan_t yyscanner );
277
278 char *_gmx_sel_yyget_text (yyscan_t yyscanner );
279
280 int _gmx_sel_yyget_lineno (yyscan_t yyscanner );
281
282 void _gmx_sel_yyset_lineno (int line_number ,yyscan_t yyscanner );
283
284 int _gmx_sel_yyget_column  (yyscan_t yyscanner );
285
286 void _gmx_sel_yyset_column (int column_no ,yyscan_t yyscanner );
287
288 /* Macros after this point can all be overridden by user definitions in
289  * section 1.
290  */
291
292 #ifndef YY_SKIP_YYWRAP
293 #ifdef __cplusplus
294 extern "C" int _gmx_sel_yywrap (yyscan_t yyscanner );
295 #else
296 extern int _gmx_sel_yywrap (yyscan_t yyscanner );
297 #endif
298 #endif
299
300 #ifndef yytext_ptr
301 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
302 #endif
303
304 #ifdef YY_NEED_STRLEN
305 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
306 #endif
307
308 #ifndef YY_NO_INPUT
309
310 #endif
311
312 /* Amount of stuff to slurp up with each read. */
313 #ifndef YY_READ_BUF_SIZE
314 #define YY_READ_BUF_SIZE 8192
315 #endif
316
317 /* Number of entries by which start-condition stack grows. */
318 #ifndef YY_START_STACK_INCR
319 #define YY_START_STACK_INCR 25
320 #endif
321
322 /* Default declaration of generated scanner - a define so the user can
323  * easily add parameters.
324  */
325 #ifndef YY_DECL
326 #define YY_DECL_IS_OURS 1
327
328 extern int _gmx_sel_yylex (yyscan_t yyscanner);
329
330 #define YY_DECL int _gmx_sel_yylex (yyscan_t yyscanner)
331 #endif /* !YY_DECL */
332
333 /* yy_get_previous_state - get the state just before the EOB char was reached */
334
335 #undef YY_NEW_FILE
336 #undef YY_FLUSH_BUFFER
337 #undef yy_set_bol
338 #undef yy_new_buffer
339 #undef yy_set_interactive
340 #undef YY_DO_BEFORE_ACTION
341
342 #ifdef YY_DECL_IS_OURS
343 #undef YY_DECL_IS_OURS
344 #undef YY_DECL
345 #endif
346
347 #line 172 "scanner.l"
348
349 #line 350 "scanner_flex.h"
350 #undef _gmx_sel_yyIN_HEADER
351 #endif /* _gmx_sel_yyHEADER_H */