Reformat existing LGPL copyright notices.
[alexxy/gromacs.git] / src / gromacs / selection / parser.h
1 /* A Bison parser, made by GNU Bison 2.6.2.  */
2
3 /* Bison interface for Yacc-like parsers in C
4    
5       Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
6    
7    This program is free software: you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation, either version 3 of the License, or
10    (at your option) any later version.
11    
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16    
17    You should have received a copy of the GNU General Public License
18    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
19
20 /* As a special exception, you may create a larger work that contains
21    part or all of the Bison parser skeleton and distribute that work
22    under terms of your choice, so long as that work isn't itself a
23    parser generator using the skeleton or a modified version thereof
24    as a parser skeleton.  Alternatively, if you modify or redistribute
25    the parser skeleton itself, you may (at your option) remove this
26    special exception, which will cause the skeleton and the resulting
27    Bison output files to be licensed under the GNU General Public
28    License without this special exception.
29    
30    This special exception was added by the Free Software Foundation in
31    version 2.2 of Bison.  */
32
33 #ifndef _GMX_SEL_YY_PARSER_H
34 # define _GMX_SEL_YY_PARSER_H
35 /* Enabling traces.  */
36 #ifndef YYDEBUG
37 # define YYDEBUG 1
38 #endif
39 #if YYDEBUG
40 extern int _gmx_sel_yydebug;
41 #endif
42 /* "%code requires" blocks.  */
43 /* Line 2049 of yacc.c  */
44 #line 1 "parser.y"
45
46 /*
47  * This file is part of the GROMACS molecular simulation package.
48  *
49  * Copyright (c) 2009,2010,2011,2012, by the GROMACS development team, led by
50  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
51  * and including many others, as listed in the AUTHORS file in the
52  * top-level source directory and at http://www.gromacs.org.
53  *
54  * GROMACS is free software; you can redistribute it and/or
55  * modify it under the terms of the GNU Lesser General Public License
56  * as published by the Free Software Foundation; either version 2.1
57  * of the License, or (at your option) any later version.
58  *
59  * GROMACS is distributed in the hope that it will be useful,
60  * but WITHOUT ANY WARRANTY; without even the implied warranty of
61  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
62  * Lesser General Public License for more details.
63  *
64  * You should have received a copy of the GNU Lesser General Public
65  * License along with GROMACS; if not, see
66  * http://www.gnu.org/licenses, or write to the Free Software Foundation,
67  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
68  *
69  * If you want to redistribute modifications to GROMACS, please
70  * consider that scientific software is very special. Version
71  * control is crucial - bugs must be traceable. We will be happy to
72  * consider code for inclusion in the official distribution, but
73  * derived work must not be called official GROMACS. Details are found
74  * in the README & COPYING files - if they are missing, get the
75  * official version at http://www.gromacs.org.
76  *
77  * To help us fund GROMACS development, we humbly ask that you cite
78  * the research papers on the package. Check out http://www.gromacs.org.
79  */
80
81 /* Line 2049 of yacc.c  */
82 #line 73 "parser.y"
83
84 #include "parsetree.h"
85 #include "selelem.h"
86
87
88 /* Line 2049 of yacc.c  */
89 #line 90 "parser.h"
90
91 /* Tokens.  */
92 #ifndef YYTOKENTYPE
93 # define YYTOKENTYPE
94    /* Put the tokens into the symbol table, so that GDB and other debuggers
95       know about them.  */
96    enum yytokentype {
97      INVALID = 258,
98      HELP = 259,
99      HELP_TOPIC = 260,
100      TOK_INT = 261,
101      TOK_REAL = 262,
102      STR = 263,
103      IDENTIFIER = 264,
104      CMD_SEP = 265,
105      GROUP = 266,
106      TO = 267,
107      VARIABLE_NUMERIC = 268,
108      VARIABLE_GROUP = 269,
109      VARIABLE_POS = 270,
110      KEYWORD_NUMERIC = 271,
111      KEYWORD_STR = 272,
112      KEYWORD_POS = 273,
113      KEYWORD_GROUP = 274,
114      METHOD_NUMERIC = 275,
115      METHOD_GROUP = 276,
116      METHOD_POS = 277,
117      MODIFIER = 278,
118      EMPTY_POSMOD = 279,
119      PARAM = 280,
120      END_OF_METHOD = 281,
121      OF = 282,
122      CMP_OP = 283,
123      PARAM_REDUCT = 284,
124      XOR = 285,
125      OR = 286,
126      AND = 287,
127      NOT = 288,
128      UNARY_NEG = 289,
129      NUM_REDUCT = 290
130    };
131 #endif
132
133
134 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
135 typedef union YYSTYPE
136 {
137 /* Line 2049 of yacc.c  */
138 #line 78 "parser.y"
139
140     int                         i;
141     real                        r;
142     char                       *str;
143     struct gmx_ana_selmethod_t *meth;
144
145     gmx::SelectionStringMatchType                smt;
146
147     gmx::SelectionTreeElementPointer            *sel;
148     gmx::SelectionParserValue                   *val;
149     gmx::SelectionParserValueListPointer        *vlist;
150     gmx::SelectionParserParameter               *param;
151     gmx::SelectionParserParameterListPointer    *plist;
152
153
154 /* Line 2049 of yacc.c  */
155 #line 156 "parser.h"
156 } YYSTYPE;
157 # define YYSTYPE_IS_TRIVIAL 1
158 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
159 # define YYSTYPE_IS_DECLARED 1
160 #endif
161
162
163 #ifndef YYPUSH_MORE_DEFINED
164 # define YYPUSH_MORE_DEFINED
165 enum { YYPUSH_MORE = 4 };
166 #endif
167
168 typedef struct _gmx_sel_yypstate _gmx_sel_yypstate;
169
170 #if defined __STDC__ || defined __cplusplus
171 int _gmx_sel_yypush_parse (_gmx_sel_yypstate *ps, int pushed_char, YYSTYPE const *pushed_val, void *scanner);
172 #else
173 int _gmx_sel_yypush_parse ();
174 #endif
175
176 #if defined __STDC__ || defined __cplusplus
177 _gmx_sel_yypstate * _gmx_sel_yypstate_new (void);
178 #else
179 _gmx_sel_yypstate * _gmx_sel_yypstate_new ();
180 #endif
181 #if defined __STDC__ || defined __cplusplus
182 void _gmx_sel_yypstate_delete (_gmx_sel_yypstate *ps);
183 #else
184 void _gmx_sel_yypstate_delete ();
185 #endif
186
187 #endif /* !_GMX_SEL_YY_PARSER_H  */