Fixed memory handling issues in selections.
[gromacs/qmmm-gamess-us.git] / src / gmxlib / selection / parser.h
blob83411adbd4ef68e45f7df6c3380dcf2679313c46
1 /* A Bison parser, made by GNU Bison 2.3. */
3 /* Skeleton interface for Bison's Yacc-like parsers in C
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6 Free Software Foundation, Inc.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
23 /* As a special exception, you may create a larger work that contains
24 part or all of the Bison parser skeleton and distribute that work
25 under terms of your choice, so long as that work isn't itself a
26 parser generator using the skeleton or a modified version thereof
27 as a parser skeleton. Alternatively, if you modify or redistribute
28 the parser skeleton itself, you may (at your option) remove this
29 special exception, which will cause the skeleton and the resulting
30 Bison output files to be licensed under the GNU General Public
31 License without this special exception.
33 This special exception was added by the Free Software Foundation in
34 version 2.2 of Bison. */
36 /* Tokens. */
37 #ifndef YYTOKENTYPE
38 # define YYTOKENTYPE
39 /* Put the tokens into the symbol table, so that GDB and other debuggers
40 know about them. */
41 enum yytokentype {
42 INVALID = 258,
43 HELP = 259,
44 HELP_TOPIC = 260,
45 INT = 261,
46 REAL = 262,
47 STR = 263,
48 IDENTIFIER = 264,
49 CMD_SEP = 265,
50 GROUP = 266,
51 TO = 267,
52 OF = 268,
53 VARIABLE_NUMERIC = 269,
54 VARIABLE_GROUP = 270,
55 VARIABLE_POS = 271,
56 KEYWORD_INT = 272,
57 KEYWORD_REAL = 273,
58 KEYWORD_STR = 274,
59 KEYWORD_POS = 275,
60 KEYWORD_GROUP = 276,
61 METHOD_NUMERIC = 277,
62 METHOD_GROUP = 278,
63 METHOD_POS = 279,
64 MODIFIER = 280,
65 PARAM_BOOL = 281,
66 BOOL_VALUE = 282,
67 PARAM_INT = 283,
68 PARAM_REAL = 284,
69 PARAM_STR = 285,
70 PARAM_POS = 286,
71 PARAM_GROUP = 287,
72 END_OF_METHOD = 288,
73 XOR = 289,
74 OR = 290,
75 AND = 291,
76 NOT = 292,
77 CMP_OP = 293
79 #endif
80 /* Tokens. */
81 #define INVALID 258
82 #define HELP 259
83 #define HELP_TOPIC 260
84 #define INT 261
85 #define REAL 262
86 #define STR 263
87 #define IDENTIFIER 264
88 #define CMD_SEP 265
89 #define GROUP 266
90 #define TO 267
91 #define OF 268
92 #define VARIABLE_NUMERIC 269
93 #define VARIABLE_GROUP 270
94 #define VARIABLE_POS 271
95 #define KEYWORD_INT 272
96 #define KEYWORD_REAL 273
97 #define KEYWORD_STR 274
98 #define KEYWORD_POS 275
99 #define KEYWORD_GROUP 276
100 #define METHOD_NUMERIC 277
101 #define METHOD_GROUP 278
102 #define METHOD_POS 279
103 #define MODIFIER 280
104 #define PARAM_BOOL 281
105 #define BOOL_VALUE 282
106 #define PARAM_INT 283
107 #define PARAM_REAL 284
108 #define PARAM_STR 285
109 #define PARAM_POS 286
110 #define PARAM_GROUP 287
111 #define END_OF_METHOD 288
112 #define XOR 289
113 #define OR 290
114 #define AND 291
115 #define NOT 292
116 #define CMP_OP 293
121 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
122 typedef union YYSTYPE
123 #line 71 "parser.y"
125 int i;
126 real r;
127 char *str;
128 struct gmx_ana_selmethod_t *meth;
130 struct t_selelem *sel;
132 struct t_selexpr_value *val;
133 struct t_selexpr_param *param;
135 /* Line 1489 of yacc.c. */
136 #line 137 "parser.h"
137 YYSTYPE;
138 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
139 # define YYSTYPE_IS_DECLARED 1
140 # define YYSTYPE_IS_TRIVIAL 1
141 #endif