Fixing copyright issues and code contributors
[alexxy/gromacs.git] / src / gmxlib / selection / scanner_flex.h
1 /*
2  * This file is part of the GROMACS molecular simulation package.
3  *
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.
8  *
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.
13  *
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.
18  *
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.
23  *
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.
31  *
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.
34  */
35 #ifndef _gmx_sel_yyHEADER_H
36 #define _gmx_sel_yyHEADER_H 1
37 #define _gmx_sel_yyIN_HEADER 1
38
39 #line 6 "scanner_flex.h"
40
41 #line 8 "scanner_flex.h"
42
43 #define  YY_INT_ALIGNED short int
44
45 /* A lexical scanner generated by flex */
46
47 #define FLEX_SCANNER
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
52 #define FLEX_BETA
53 #endif
54
55 /* First, we deal with  platform-specific or compiler-specific issues. */
56
57 /* begin standard C headers. */
58 #include <stdio.h>
59 #include <string.h>
60 #include <errno.h>
61 #include <stdlib.h>
62
63 /* end standard C headers. */
64
65 /* flex integer type definitions */
66
67 #ifndef FLEXINT_H
68 #define FLEXINT_H
69
70 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
71
72 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
73
74 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
75  * if you want the limit (max/min) macros for int types. 
76  */
77 #ifndef __STDC_LIMIT_MACROS
78 #define __STDC_LIMIT_MACROS 1
79 #endif
80
81 #include <inttypes.h>
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;
88 #else
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;
95
96 /* Limits of integral types. */
97 #ifndef INT8_MIN
98 #define INT8_MIN               (-128)
99 #endif
100 #ifndef INT16_MIN
101 #define INT16_MIN              (-32767-1)
102 #endif
103 #ifndef INT32_MIN
104 #define INT32_MIN              (-2147483647-1)
105 #endif
106 #ifndef INT8_MAX
107 #define INT8_MAX               (127)
108 #endif
109 #ifndef INT16_MAX
110 #define INT16_MAX              (32767)
111 #endif
112 #ifndef INT32_MAX
113 #define INT32_MAX              (2147483647)
114 #endif
115 #ifndef UINT8_MAX
116 #define UINT8_MAX              (255U)
117 #endif
118 #ifndef UINT16_MAX
119 #define UINT16_MAX             (65535U)
120 #endif
121 #ifndef UINT32_MAX
122 #define UINT32_MAX             (4294967295U)
123 #endif
124
125 #endif /* ! C99 */
126
127 #endif /* ! FLEXINT_H */
128
129 #ifdef __cplusplus
130
131 /* The "const" storage-class-modifier is valid. */
132 #define YY_USE_CONST
133
134 #else   /* ! __cplusplus */
135
136 /* C99 requires __STDC__ to be defined as 1. */
137 #if defined (__STDC__)
138
139 #define YY_USE_CONST
140
141 #endif  /* defined (__STDC__) */
142 #endif  /* ! __cplusplus */
143
144 #ifdef YY_USE_CONST
145 #define yyconst const
146 #else
147 #define yyconst
148 #endif
149
150 /* An opaque pointer. */
151 #ifndef YY_TYPEDEF_YY_SCANNER_T
152 #define YY_TYPEDEF_YY_SCANNER_T
153 typedef void* yyscan_t;
154 #endif
155
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
166
167 /* Size of default input buffer. */
168 #ifndef YY_BUF_SIZE
169 #ifdef __ia64__
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.
173  */
174 #define YY_BUF_SIZE 32768
175 #else
176 #define YY_BUF_SIZE 16384
177 #endif /* __ia64__ */
178 #endif
179
180 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
181 #define YY_TYPEDEF_YY_BUFFER_STATE
182 typedef struct yy_buffer_state *YY_BUFFER_STATE;
183 #endif
184
185 #ifndef YY_TYPEDEF_YY_SIZE_T
186 #define YY_TYPEDEF_YY_SIZE_T
187 typedef size_t yy_size_t;
188 #endif
189
190 #ifndef YY_STRUCT_YY_BUFFER_STATE
191 #define YY_STRUCT_YY_BUFFER_STATE
192 struct yy_buffer_state
193         {
194         FILE *yy_input_file;
195
196         char *yy_ch_buf;                /* input buffer */
197         char *yy_buf_pos;               /* current position in input buffer */
198
199         /* Size of input buffer in bytes, not including room for EOB
200          * characters.
201          */
202         yy_size_t yy_buf_size;
203
204         /* Number of characters read into yy_ch_buf, not including EOB
205          * characters.
206          */
207         int yy_n_chars;
208
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
211          * delete it.
212          */
213         int yy_is_our_buffer;
214
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
218          * each newline.
219          */
220         int yy_is_interactive;
221
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
224          * not.
225          */
226         int yy_at_bol;
227
228     int yy_bs_lineno; /**< The line count. */
229     int yy_bs_column; /**< The column count. */
230     
231         /* Whether to try to fill the input buffer when we reach the
232          * end of it.
233          */
234         int yy_fill_buffer;
235
236         int yy_buffer_status;
237
238         };
239 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
240
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 );
248
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 );
252
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 );
256
257 #define _gmx_sel_yywrap(n) 1
258 #define YY_SKIP_YYWRAP
259
260 #define yytext_ptr yytext_r
261
262 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
263 #define INITIAL 0
264 #define matchof 1
265 #define matchbool 2
266 #define cmdstart 3
267 #define help 4
268
269 #endif
270
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.
275  */
276 #include <unistd.h>
277 #endif
278
279 #ifndef YY_EXTRA_TYPE
280 #define YY_EXTRA_TYPE void *
281 #endif
282
283 int _gmx_sel_yylex_init (yyscan_t* scanner);
284
285 int _gmx_sel_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
286
287 /* Accessor methods to globals.
288    These are made visible to non-reentrant scanners for convenience. */
289
290 int _gmx_sel_yylex_destroy (yyscan_t yyscanner );
291
292 int _gmx_sel_yyget_debug (yyscan_t yyscanner );
293
294 void _gmx_sel_yyset_debug (int debug_flag ,yyscan_t yyscanner );
295
296 YY_EXTRA_TYPE _gmx_sel_yyget_extra (yyscan_t yyscanner );
297
298 void _gmx_sel_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
299
300 FILE *_gmx_sel_yyget_in (yyscan_t yyscanner );
301
302 void _gmx_sel_yyset_in  (FILE * in_str ,yyscan_t yyscanner );
303
304 FILE *_gmx_sel_yyget_out (yyscan_t yyscanner );
305
306 void _gmx_sel_yyset_out  (FILE * out_str ,yyscan_t yyscanner );
307
308 int _gmx_sel_yyget_leng (yyscan_t yyscanner );
309
310 char *_gmx_sel_yyget_text (yyscan_t yyscanner );
311
312 int _gmx_sel_yyget_lineno (yyscan_t yyscanner );
313
314 void _gmx_sel_yyset_lineno (int line_number ,yyscan_t yyscanner );
315
316 /* Macros after this point can all be overridden by user definitions in
317  * section 1.
318  */
319
320 #ifndef YY_SKIP_YYWRAP
321 #ifdef __cplusplus
322 extern "C" int _gmx_sel_yywrap (yyscan_t yyscanner );
323 #else
324 extern int _gmx_sel_yywrap (yyscan_t yyscanner );
325 #endif
326 #endif
327
328 #ifndef yytext_ptr
329 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
330 #endif
331
332 #ifdef YY_NEED_STRLEN
333 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
334 #endif
335
336 #ifndef YY_NO_INPUT
337
338 #endif
339
340 /* Amount of stuff to slurp up with each read. */
341 #ifndef YY_READ_BUF_SIZE
342 #ifdef __ia64__
343 /* On IA-64, the buffer size is 16k, not 8k */
344 #define YY_READ_BUF_SIZE 16384
345 #else
346 #define YY_READ_BUF_SIZE 8192
347 #endif /* __ia64__ */
348 #endif
349
350 /* Number of entries by which start-condition stack grows. */
351 #ifndef YY_START_STACK_INCR
352 #define YY_START_STACK_INCR 25
353 #endif
354
355 /* Default declaration of generated scanner - a define so the user can
356  * easily add parameters.
357  */
358 #ifndef YY_DECL
359 #define YY_DECL_IS_OURS 1
360
361 extern int _gmx_sel_yylex (yyscan_t yyscanner);
362
363 #define YY_DECL int _gmx_sel_yylex (yyscan_t yyscanner)
364 #endif /* !YY_DECL */
365
366 /* yy_get_previous_state - get the state just before the EOB char was reached */
367
368 #undef YY_NEW_FILE
369 #undef YY_FLUSH_BUFFER
370 #undef yy_set_bol
371 #undef yy_new_buffer
372 #undef yy_set_interactive
373 #undef YY_DO_BEFORE_ACTION
374
375 #ifdef YY_DECL_IS_OURS
376 #undef YY_DECL_IS_OURS
377 #undef YY_DECL
378 #endif
379
380 #line 156 "scanner.l"
381
382 #line 349 "scanner_flex.h"
383 #undef _gmx_sel_yyIN_HEADER
384 #endif /* _gmx_sel_yyHEADER_H */