Merge branch release-4-6 into release-5-0
[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,2013,2014, 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      TOK_INT = 259,
99      TOK_REAL = 260,
100      STR = 261,
101      IDENTIFIER = 262,
102      CMD_SEP = 263,
103      GROUP = 264,
104      TO = 265,
105      VARIABLE_NUMERIC = 266,
106      VARIABLE_GROUP = 267,
107      VARIABLE_POS = 268,
108      KEYWORD_NUMERIC = 269,
109      KEYWORD_STR = 270,
110      KEYWORD_POS = 271,
111      KEYWORD_GROUP = 272,
112      METHOD_NUMERIC = 273,
113      METHOD_GROUP = 274,
114      METHOD_POS = 275,
115      MODIFIER = 276,
116      EMPTY_POSMOD = 277,
117      PARAM = 278,
118      END_OF_METHOD = 279,
119      OF = 280,
120      CMP_OP = 281,
121      PARAM_REDUCT = 282,
122      XOR = 283,
123      OR = 284,
124      AND = 285,
125      NOT = 286,
126      UNARY_NEG = 287,
127      NUM_REDUCT = 288
128    };
129 #endif
130
131
132 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
133 typedef union YYSTYPE
134 {
135 /* Line 2049 of yacc.c  */
136 #line 78 "parser.y"
137
138     int                         i;
139     real                        r;
140     char                       *str;
141     struct gmx_ana_selmethod_t *meth;
142
143     gmx::SelectionStringMatchType                smt;
144
145     gmx::SelectionTreeElementPointer            *sel;
146     gmx::SelectionParserValue                   *val;
147     gmx::SelectionParserValueListPointer        *vlist;
148     gmx::SelectionParserParameter               *param;
149     gmx::SelectionParserParameterListPointer    *plist;
150
151
152 /* Line 2049 of yacc.c  */
153 #line 154 "parser.h"
154 } YYSTYPE;
155 # define YYSTYPE_IS_TRIVIAL 1
156 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
157 # define YYSTYPE_IS_DECLARED 1
158 #endif
159
160
161 #ifndef YYPUSH_MORE_DEFINED
162 # define YYPUSH_MORE_DEFINED
163 enum { YYPUSH_MORE = 4 };
164 #endif
165
166 typedef struct _gmx_sel_yypstate _gmx_sel_yypstate;
167
168 #if defined __STDC__ || defined __cplusplus
169 int _gmx_sel_yypush_parse (_gmx_sel_yypstate *ps, int pushed_char, YYSTYPE const *pushed_val, void *scanner);
170 #else
171 int _gmx_sel_yypush_parse ();
172 #endif
173
174 #if defined __STDC__ || defined __cplusplus
175 _gmx_sel_yypstate * _gmx_sel_yypstate_new (void);
176 #else
177 _gmx_sel_yypstate * _gmx_sel_yypstate_new ();
178 #endif
179 #if defined __STDC__ || defined __cplusplus
180 void _gmx_sel_yypstate_delete (_gmx_sel_yypstate *ps);
181 #else
182 void _gmx_sel_yypstate_delete ();
183 #endif
184
185 #endif /* !_GMX_SEL_YY_PARSER_H  */