1 |
/* A Bison parser, made by GNU Bison 2.0. */ |
2 |
|
3 |
/* Skeleton parser for Yacc-like parsing with Bison, |
4 |
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. |
5 |
|
6 |
This program is free software; you can redistribute it and/or modify |
7 |
it under the terms of the GNU General Public License as published by |
8 |
the Free Software Foundation; either version 2, or (at your option) |
9 |
any later version. |
10 |
|
11 |
This program is distributed in the hope that it will be useful, |
12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
GNU General Public License for more details. |
15 |
|
16 |
You should have received a copy of the GNU General Public License |
17 |
along with this program; if not, write to the Free Software |
18 |
Foundation, Inc., 59 Temple Place - Suite 330, |
19 |
Boston, MA 02111-1307, USA. */ |
20 |
|
21 |
/* As a special exception, when this file is copied by Bison into a |
22 |
Bison output file, you may use that output file without restriction. |
23 |
This special exception was added by the Free Software Foundation |
24 |
in version 1.24 of Bison. */ |
25 |
|
26 |
/* Tokens. */ |
27 |
#ifndef ZZ_TOKENTYPE |
28 |
# define ZZ_TOKENTYPE |
29 |
/* Put the tokens into the symbol table, so that GDB and other debuggers |
30 |
know about them. */ |
31 |
enum zz_tokentype { |
32 |
ADD_T = 258, |
33 |
ALIASES_T = 259, |
34 |
AND_T = 260, |
35 |
ANY_T = 261, |
36 |
AREALIKE_T = 262, |
37 |
ARETHESAME_T = 263, |
38 |
ARRAY_T = 264, |
39 |
ASSERT_T = 265, |
40 |
ATOM_T = 266, |
41 |
BEQ_T = 267, |
42 |
BNE_T = 268, |
43 |
BREAK_T = 269, |
44 |
CALL_T = 270, |
45 |
CARD_T = 271, |
46 |
CASE_T = 272, |
47 |
CHOICE_T = 273, |
48 |
CHECK_T = 274, |
49 |
CONDITIONAL_T = 275, |
50 |
CONSTANT_T = 276, |
51 |
CONTINUE_T = 277, |
52 |
CREATE_T = 278, |
53 |
DATA_T = 279, |
54 |
DECREASING_T = 280, |
55 |
DEFAULT_T = 281, |
56 |
DEFINITION_T = 282, |
57 |
DIMENSION_T = 283, |
58 |
DIMENSIONLESS_T = 284, |
59 |
DO_T = 285, |
60 |
ELSE_T = 286, |
61 |
END_T = 287, |
62 |
EXPECT_T = 288, |
63 |
EXTERNAL_T = 289, |
64 |
FALSE_T = 290, |
65 |
FALLTHRU_T = 291, |
66 |
FIX_T = 292, |
67 |
FOR_T = 293, |
68 |
FREE_T = 294, |
69 |
FROM_T = 295, |
70 |
GLOBAL_T = 296, |
71 |
IF_T = 297, |
72 |
IMPORT_T = 298, |
73 |
IN_T = 299, |
74 |
INPUT_T = 300, |
75 |
INCREASING_T = 301, |
76 |
INTERACTIVE_T = 302, |
77 |
INTERSECTION_T = 303, |
78 |
ISA_T = 304, |
79 |
_IS_T = 305, |
80 |
ISREFINEDTO_T = 306, |
81 |
MAXIMIZE_T = 307, |
82 |
MAXINTEGER_T = 308, |
83 |
MAXREAL_T = 309, |
84 |
METHODS_T = 310, |
85 |
METHOD_T = 311, |
86 |
MINIMIZE_T = 312, |
87 |
MODEL_T = 313, |
88 |
NOT_T = 314, |
89 |
NOTES_T = 315, |
90 |
OF_T = 316, |
91 |
OR_T = 317, |
92 |
OTHERWISE_T = 318, |
93 |
OUTPUT_T = 319, |
94 |
PATCH_T = 320, |
95 |
PROD_T = 321, |
96 |
PROVIDE_T = 322, |
97 |
REFINES_T = 323, |
98 |
REPLACE_T = 324, |
99 |
REQUIRE_T = 325, |
100 |
RETURN_T = 326, |
101 |
RUN_T = 327, |
102 |
SATISFIED_T = 328, |
103 |
SELECT_T = 329, |
104 |
SIZE_T = 330, |
105 |
STOP_T = 331, |
106 |
SUCHTHAT_T = 332, |
107 |
SUM_T = 333, |
108 |
SWITCH_T = 334, |
109 |
THEN_T = 335, |
110 |
TRUE_T = 336, |
111 |
UNION_T = 337, |
112 |
UNITS_T = 338, |
113 |
UNIVERSAL_T = 339, |
114 |
WHEN_T = 340, |
115 |
WHERE_T = 341, |
116 |
WHILE_T = 342, |
117 |
WILLBE_T = 343, |
118 |
WILLBETHESAME_T = 344, |
119 |
WILLNOTBETHESAME_T = 345, |
120 |
ASSIGN_T = 346, |
121 |
CASSIGN_T = 347, |
122 |
DBLCOLON_T = 348, |
123 |
USE_T = 349, |
124 |
LEQ_T = 350, |
125 |
GEQ_T = 351, |
126 |
NEQ_T = 352, |
127 |
DOTDOT_T = 353, |
128 |
WITH_T = 354, |
129 |
VALUE_T = 355, |
130 |
WITH_VALUE_T = 356, |
131 |
REAL_T = 357, |
132 |
INTEGER_T = 358, |
133 |
IDENTIFIER_T = 359, |
134 |
BRACEDTEXT_T = 360, |
135 |
SYMBOL_T = 361, |
136 |
DQUOTE_T = 362, |
137 |
UPLUS_T = 363, |
138 |
UMINUS_T = 364 |
139 |
}; |
140 |
#endif |
141 |
#define ADD_T 258 |
142 |
#define ALIASES_T 259 |
143 |
#define AND_T 260 |
144 |
#define ANY_T 261 |
145 |
#define AREALIKE_T 262 |
146 |
#define ARETHESAME_T 263 |
147 |
#define ARRAY_T 264 |
148 |
#define ASSERT_T 265 |
149 |
#define ATOM_T 266 |
150 |
#define BEQ_T 267 |
151 |
#define BNE_T 268 |
152 |
#define BREAK_T 269 |
153 |
#define CALL_T 270 |
154 |
#define CARD_T 271 |
155 |
#define CASE_T 272 |
156 |
#define CHOICE_T 273 |
157 |
#define CHECK_T 274 |
158 |
#define CONDITIONAL_T 275 |
159 |
#define CONSTANT_T 276 |
160 |
#define CONTINUE_T 277 |
161 |
#define CREATE_T 278 |
162 |
#define DATA_T 279 |
163 |
#define DECREASING_T 280 |
164 |
#define DEFAULT_T 281 |
165 |
#define DEFINITION_T 282 |
166 |
#define DIMENSION_T 283 |
167 |
#define DIMENSIONLESS_T 284 |
168 |
#define DO_T 285 |
169 |
#define ELSE_T 286 |
170 |
#define END_T 287 |
171 |
#define EXPECT_T 288 |
172 |
#define EXTERNAL_T 289 |
173 |
#define FALSE_T 290 |
174 |
#define FALLTHRU_T 291 |
175 |
#define FIX_T 292 |
176 |
#define FOR_T 293 |
177 |
#define FREE_T 294 |
178 |
#define FROM_T 295 |
179 |
#define GLOBAL_T 296 |
180 |
#define IF_T 297 |
181 |
#define IMPORT_T 298 |
182 |
#define IN_T 299 |
183 |
#define INPUT_T 300 |
184 |
#define INCREASING_T 301 |
185 |
#define INTERACTIVE_T 302 |
186 |
#define INTERSECTION_T 303 |
187 |
#define ISA_T 304 |
188 |
#define _IS_T 305 |
189 |
#define ISREFINEDTO_T 306 |
190 |
#define MAXIMIZE_T 307 |
191 |
#define MAXINTEGER_T 308 |
192 |
#define MAXREAL_T 309 |
193 |
#define METHODS_T 310 |
194 |
#define METHOD_T 311 |
195 |
#define MINIMIZE_T 312 |
196 |
#define MODEL_T 313 |
197 |
#define NOT_T 314 |
198 |
#define NOTES_T 315 |
199 |
#define OF_T 316 |
200 |
#define OR_T 317 |
201 |
#define OTHERWISE_T 318 |
202 |
#define OUTPUT_T 319 |
203 |
#define PATCH_T 320 |
204 |
#define PROD_T 321 |
205 |
#define PROVIDE_T 322 |
206 |
#define REFINES_T 323 |
207 |
#define REPLACE_T 324 |
208 |
#define REQUIRE_T 325 |
209 |
#define RETURN_T 326 |
210 |
#define RUN_T 327 |
211 |
#define SATISFIED_T 328 |
212 |
#define SELECT_T 329 |
213 |
#define SIZE_T 330 |
214 |
#define STOP_T 331 |
215 |
#define SUCHTHAT_T 332 |
216 |
#define SUM_T 333 |
217 |
#define SWITCH_T 334 |
218 |
#define THEN_T 335 |
219 |
#define TRUE_T 336 |
220 |
#define UNION_T 337 |
221 |
#define UNITS_T 338 |
222 |
#define UNIVERSAL_T 339 |
223 |
#define WHEN_T 340 |
224 |
#define WHERE_T 341 |
225 |
#define WHILE_T 342 |
226 |
#define WILLBE_T 343 |
227 |
#define WILLBETHESAME_T 344 |
228 |
#define WILLNOTBETHESAME_T 345 |
229 |
#define ASSIGN_T 346 |
230 |
#define CASSIGN_T 347 |
231 |
#define DBLCOLON_T 348 |
232 |
#define USE_T 349 |
233 |
#define LEQ_T 350 |
234 |
#define GEQ_T 351 |
235 |
#define NEQ_T 352 |
236 |
#define DOTDOT_T 353 |
237 |
#define WITH_T 354 |
238 |
#define VALUE_T 355 |
239 |
#define WITH_VALUE_T 356 |
240 |
#define REAL_T 357 |
241 |
#define INTEGER_T 358 |
242 |
#define IDENTIFIER_T 359 |
243 |
#define BRACEDTEXT_T 360 |
244 |
#define SYMBOL_T 361 |
245 |
#define DQUOTE_T 362 |
246 |
#define UPLUS_T 363 |
247 |
#define UMINUS_T 364 |
248 |
|
249 |
|
250 |
|
251 |
|
252 |
#if ! defined (ZZ_STYPE) && ! defined (ZZ_STYPE_IS_DECLARED) |
253 |
#line 300 "/tmp/trunk/base/autotools/../generic/compiler/ascParse.y" |
254 |
typedef union ZZ_STYPE { |
255 |
double real_value; |
256 |
long int_value; |
257 |
struct fraction frac_value; |
258 |
symchar *id_ptr; |
259 |
CONST char *braced_ptr; /* pointer for units, explanations, tables */ |
260 |
symchar *sym_ptr; /* pointer for symbols */ |
261 |
CONST char *dquote_ptr; /* for text in "double quotes" */ |
262 |
struct Name *nptr; |
263 |
struct Expr *eptr; |
264 |
struct Set *sptr; |
265 |
struct VariableList *lptr; |
266 |
struct Statement *statptr; |
267 |
struct StatementList *slptr; |
268 |
struct SelectList *septr; |
269 |
struct SwitchList *swptr; |
270 |
struct WhenList *wptr; |
271 |
struct NoteTmp *notesptr; /* change this once struct Notes is defined */ |
272 |
struct gl_list_t *listp; |
273 |
struct InitProcedure *procptr; |
274 |
CONST dim_type *dimp; |
275 |
struct TypeDescription *tptr; |
276 |
struct UnitDefinition *udefptr; |
277 |
dim_type dimen; |
278 |
enum ForOrder order; |
279 |
enum ForKind fkind; |
280 |
} ZZ_STYPE; |
281 |
/* Line 1318 of yacc.c. */ |
282 |
#line 283 "y.tab.h" |
283 |
# define zz_stype ZZ_STYPE /* obsolescent; will be withdrawn */ |
284 |
# define ZZ_STYPE_IS_DECLARED 1 |
285 |
# define ZZ_STYPE_IS_TRIVIAL 1 |
286 |
#endif |
287 |
|
288 |
extern ZZ_STYPE zz_lval; |