2 * This file is part of the GROMACS molecular simulation package.
4 * Copyright (c) 2012,2013, by the GROMACS development team, led by
5 * David van der Spoel, Berk Hess, Erik Lindahl, and including many
6 * others, as listed in the AUTHORS file in the top-level source
7 * directory and at http://www.gromacs.org.
9 * GROMACS is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public License
11 * as published by the Free Software Foundation; either version 2.1
12 * of the License, or (at your option) any later version.
14 * GROMACS is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with GROMACS; if not, see
21 * http://www.gnu.org/licenses, or write to the Free Software Foundation,
22 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 * If you want to redistribute modifications to GROMACS, please
25 * consider that scientific software is very special. Version
26 * control is crucial - bugs must be traceable. We will be happy to
27 * consider code for inclusion in the official distribution, but
28 * derived work must not be called official GROMACS. Details are found
29 * in the README & COPYING files - if they are missing, get the
30 * official version at http://www.gromacs.org.
32 * To help us fund GROMACS development, we humbly ask that you cite
33 * the research papers on the package. Check out http://www.gromacs.org.
35 #ifndef _gmx_sel_yyHEADER_H
36 #define _gmx_sel_yyHEADER_H 1
37 #define _gmx_sel_yyIN_HEADER 1
39 #line 6 "scanner_flex.h"
41 #line 8 "scanner_flex.h"
43 #define YY_INT_ALIGNED short int
45 /* A lexical scanner generated by flex */
48 #define YY_FLEX_MAJOR_VERSION 2
49 #define YY_FLEX_MINOR_VERSION 5
50 #define YY_FLEX_SUBMINOR_VERSION 35
51 #if YY_FLEX_SUBMINOR_VERSION > 0
55 /* First, we deal with platform-specific or compiler-specific issues. */
57 /* begin standard C headers. */
63 /* end standard C headers. */
65 /* flex integer type definitions */
70 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
72 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
74 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
75 * if you want the limit (max/min) macros for int types.
77 #ifndef __STDC_LIMIT_MACROS
78 #define __STDC_LIMIT_MACROS 1
82 typedef int8_t flex_int8_t;
83 typedef uint8_t flex_uint8_t;
84 typedef int16_t flex_int16_t;
85 typedef uint16_t flex_uint16_t;
86 typedef int32_t flex_int32_t;
87 typedef uint32_t flex_uint32_t;
89 typedef signed char flex_int8_t;
90 typedef short int flex_int16_t;
91 typedef int flex_int32_t;
92 typedef unsigned char flex_uint8_t;
93 typedef unsigned short int flex_uint16_t;
94 typedef unsigned int flex_uint32_t;
96 /* Limits of integral types. */
98 #define INT8_MIN (-128)
101 #define INT16_MIN (-32767-1)
104 #define INT32_MIN (-2147483647-1)
107 #define INT8_MAX (127)
110 #define INT16_MAX (32767)
113 #define INT32_MAX (2147483647)
116 #define UINT8_MAX (255U)
119 #define UINT16_MAX (65535U)
122 #define UINT32_MAX (4294967295U)
127 #endif /* ! FLEXINT_H */
131 /* The "const" storage-class-modifier is valid. */
134 #else /* ! __cplusplus */
136 /* C99 requires __STDC__ to be defined as 1. */
137 #if defined (__STDC__)
141 #endif /* defined (__STDC__) */
142 #endif /* ! __cplusplus */
145 #define yyconst const
150 /* An opaque pointer. */
151 #ifndef YY_TYPEDEF_YY_SCANNER_T
152 #define YY_TYPEDEF_YY_SCANNER_T
153 typedef void* yyscan_t;
156 /* For convenience, these vars (plus the bison vars far below)
157 are macros in the reentrant scanner. */
158 #define yyin yyg->yyin_r
159 #define yyout yyg->yyout_r
160 #define yyextra yyg->yyextra_r
161 #define yyleng yyg->yyleng_r
162 #define yytext yyg->yytext_r
163 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
164 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
165 #define yy_flex_debug yyg->yy_flex_debug_r
167 /* Size of default input buffer. */
170 /* On IA-64, the buffer size is 16k, not 8k.
171 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
172 * Ditto for the __ia64__ case accordingly.
174 #define YY_BUF_SIZE 32768
176 #define YY_BUF_SIZE 16384
177 #endif /* __ia64__ */
180 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
181 #define YY_TYPEDEF_YY_BUFFER_STATE
182 typedef struct yy_buffer_state *YY_BUFFER_STATE;
185 #ifndef YY_TYPEDEF_YY_SIZE_T
186 #define YY_TYPEDEF_YY_SIZE_T
187 typedef size_t yy_size_t;
190 #ifndef YY_STRUCT_YY_BUFFER_STATE
191 #define YY_STRUCT_YY_BUFFER_STATE
192 struct yy_buffer_state
196 char *yy_ch_buf; /* input buffer */
197 char *yy_buf_pos; /* current position in input buffer */
199 /* Size of input buffer in bytes, not including room for EOB
202 yy_size_t yy_buf_size;
204 /* Number of characters read into yy_ch_buf, not including EOB
209 /* Whether we "own" the buffer - i.e., we know we created it,
210 * and can realloc() it to grow it, and should free() it to
213 int yy_is_our_buffer;
215 /* Whether this is an "interactive" input source; if so, and
216 * if we're using stdio for input, then we want to use getc()
217 * instead of fread(), to make sure we stop fetching input after
220 int yy_is_interactive;
222 /* Whether we're considered to be at the beginning of a line.
223 * If so, '^' rules will be active on the next match, otherwise
228 int yy_bs_lineno; /**< The line count. */
229 int yy_bs_column; /**< The column count. */
231 /* Whether to try to fill the input buffer when we reach the
236 int yy_buffer_status;
239 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
241 void _gmx_sel_yyrestart (FILE *input_file ,yyscan_t yyscanner );
242 void _gmx_sel_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
243 YY_BUFFER_STATE _gmx_sel_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
244 void _gmx_sel_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
245 void _gmx_sel_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
246 void _gmx_sel_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
247 void _gmx_sel_yypop_buffer_state (yyscan_t yyscanner );
249 YY_BUFFER_STATE _gmx_sel_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
250 YY_BUFFER_STATE _gmx_sel_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
251 YY_BUFFER_STATE _gmx_sel_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
253 void *_gmx_sel_yyalloc (yy_size_t ,yyscan_t yyscanner );
254 void *_gmx_sel_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
255 void _gmx_sel_yyfree (void * ,yyscan_t yyscanner );
257 #define _gmx_sel_yywrap(n) 1
258 #define YY_SKIP_YYWRAP
260 #define yytext_ptr yytext_r
262 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
271 #ifndef YY_NO_UNISTD_H
272 /* Special case for "unistd.h", since it is non-ANSI. We include it way
273 * down here because we want the user's section 1 to have been scanned first.
274 * The user has a chance to override it with an option.
279 #ifndef YY_EXTRA_TYPE
280 #define YY_EXTRA_TYPE void *
283 int _gmx_sel_yylex_init (yyscan_t* scanner);
285 int _gmx_sel_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
287 /* Accessor methods to globals.
288 These are made visible to non-reentrant scanners for convenience. */
290 int _gmx_sel_yylex_destroy (yyscan_t yyscanner );
292 int _gmx_sel_yyget_debug (yyscan_t yyscanner );
294 void _gmx_sel_yyset_debug (int debug_flag ,yyscan_t yyscanner );
296 YY_EXTRA_TYPE _gmx_sel_yyget_extra (yyscan_t yyscanner );
298 void _gmx_sel_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
300 FILE *_gmx_sel_yyget_in (yyscan_t yyscanner );
302 void _gmx_sel_yyset_in (FILE * in_str ,yyscan_t yyscanner );
304 FILE *_gmx_sel_yyget_out (yyscan_t yyscanner );
306 void _gmx_sel_yyset_out (FILE * out_str ,yyscan_t yyscanner );
308 int _gmx_sel_yyget_leng (yyscan_t yyscanner );
310 char *_gmx_sel_yyget_text (yyscan_t yyscanner );
312 int _gmx_sel_yyget_lineno (yyscan_t yyscanner );
314 void _gmx_sel_yyset_lineno (int line_number ,yyscan_t yyscanner );
316 /* Macros after this point can all be overridden by user definitions in
320 #ifndef YY_SKIP_YYWRAP
322 extern "C" int _gmx_sel_yywrap (yyscan_t yyscanner );
324 extern int _gmx_sel_yywrap (yyscan_t yyscanner );
329 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
332 #ifdef YY_NEED_STRLEN
333 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
340 /* Amount of stuff to slurp up with each read. */
341 #ifndef YY_READ_BUF_SIZE
343 /* On IA-64, the buffer size is 16k, not 8k */
344 #define YY_READ_BUF_SIZE 16384
346 #define YY_READ_BUF_SIZE 8192
347 #endif /* __ia64__ */
350 /* Number of entries by which start-condition stack grows. */
351 #ifndef YY_START_STACK_INCR
352 #define YY_START_STACK_INCR 25
355 /* Default declaration of generated scanner - a define so the user can
356 * easily add parameters.
359 #define YY_DECL_IS_OURS 1
361 extern int _gmx_sel_yylex (yyscan_t yyscanner);
363 #define YY_DECL int _gmx_sel_yylex (yyscan_t yyscanner)
364 #endif /* !YY_DECL */
366 /* yy_get_previous_state - get the state just before the EOB char was reached */
369 #undef YY_FLUSH_BUFFER
372 #undef yy_set_interactive
373 #undef YY_DO_BEFORE_ACTION
375 #ifdef YY_DECL_IS_OURS
376 #undef YY_DECL_IS_OURS
380 #line 156 "scanner.l"
382 #line 349 "scanner_flex.h"
383 #undef _gmx_sel_yyIN_HEADER
384 #endif /* _gmx_sel_yyHEADER_H */