1 |
/* A Bison parser, made by GNU Bison 2.3. */ |
2 |
|
3 |
/* Skeleton interface for Bison's Yacc-like parsers in C |
4 |
|
5 |
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 |
6 |
Free Software Foundation, Inc. |
7 |
|
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. |
12 |
|
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. |
17 |
|
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. */ |
22 |
|
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. |
32 |
|
33 |
This special exception was added by the Free Software Foundation in |
34 |
version 2.2 of Bison. */ |
35 |
|
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 |
ADD_TOK = 258, |
43 |
ALIASES_TOK = 259, |
44 |
AND_TOK = 260, |
45 |
ANY_TOK = 261, |
46 |
AREALIKE_TOK = 262, |
47 |
ARETHESAME_TOK = 263, |
48 |
ARRAY_TOK = 264, |
49 |
ASSERT_TOK = 265, |
50 |
ATOM_TOK = 266, |
51 |
BEQ_TOK = 267, |
52 |
BNE_TOK = 268, |
53 |
BREAK_TOK = 269, |
54 |
CALL_TOK = 270, |
55 |
CARD_TOK = 271, |
56 |
CASE_TOK = 272, |
57 |
CHOICE_TOK = 273, |
58 |
CHECK_TOK = 274, |
59 |
CONDITIONAL_TOK = 275, |
60 |
CONSTANT_TOK = 276, |
61 |
CONTINUE_TOK = 277, |
62 |
CREATE_TOK = 278, |
63 |
DATA_TOK = 279, |
64 |
DECREASING_TOK = 280, |
65 |
DEFAULT_TOK = 281, |
66 |
DEFINITION_TOK = 282, |
67 |
DIMENSION_TOK = 283, |
68 |
DIMENSIONLESS_TOK = 284, |
69 |
DO_TOK = 285, |
70 |
ELSE_TOK = 286, |
71 |
END_TOK = 287, |
72 |
EXPECT_TOK = 288, |
73 |
EXTERNAL_TOK = 289, |
74 |
FALSE_TOK = 290, |
75 |
FALLTHRU_TOK = 291, |
76 |
FIX_TOK = 292, |
77 |
FOR_TOK = 293, |
78 |
FREE_TOK = 294, |
79 |
FROM_TOK = 295, |
80 |
GLOBAL_TOK = 296, |
81 |
IF_TOK = 297, |
82 |
IMPORT_TOK = 298, |
83 |
IN_TOK = 299, |
84 |
INPUT_TOK = 300, |
85 |
INCREASING_TOK = 301, |
86 |
INTERACTIVE_TOK = 302, |
87 |
INTERSECTION_TOK = 303, |
88 |
ISA_TOK = 304, |
89 |
_IS_T = 305, |
90 |
ISREFINEDTO_TOK = 306, |
91 |
MAXIMIZE_TOK = 307, |
92 |
MAXINTEGER_TOK = 308, |
93 |
MAXREAL_TOK = 309, |
94 |
METHODS_TOK = 310, |
95 |
METHOD_TOK = 311, |
96 |
MINIMIZE_TOK = 312, |
97 |
MODEL_TOK = 313, |
98 |
NOT_TOK = 314, |
99 |
NOTES_TOK = 315, |
100 |
OF_TOK = 316, |
101 |
OR_TOK = 317, |
102 |
OTHERWISE_TOK = 318, |
103 |
OUTPUT_TOK = 319, |
104 |
PATCH_TOK = 320, |
105 |
PROD_TOK = 321, |
106 |
PROVIDE_TOK = 322, |
107 |
REFINES_TOK = 323, |
108 |
REPLACE_TOK = 324, |
109 |
REQUIRE_TOK = 325, |
110 |
RETURN_TOK = 326, |
111 |
RUN_TOK = 327, |
112 |
SATISFIED_TOK = 328, |
113 |
SELECT_TOK = 329, |
114 |
SIZE_TOK = 330, |
115 |
STOP_TOK = 331, |
116 |
SUCHTHAT_TOK = 332, |
117 |
SUM_TOK = 333, |
118 |
SWITCH_TOK = 334, |
119 |
THEN_TOK = 335, |
120 |
TRUE_TOK = 336, |
121 |
UNION_TOK = 337, |
122 |
UNITS_TOK = 338, |
123 |
UNIVERSAL_TOK = 339, |
124 |
WHEN_TOK = 340, |
125 |
WHERE_TOK = 341, |
126 |
WHILE_TOK = 342, |
127 |
WILLBE_TOK = 343, |
128 |
WILLBETHESAME_TOK = 344, |
129 |
WILLNOTBETHESAME_TOK = 345, |
130 |
ASSIGN_TOK = 346, |
131 |
CASSIGN_TOK = 347, |
132 |
DBLCOLON_TOK = 348, |
133 |
USE_TOK = 349, |
134 |
LEQ_TOK = 350, |
135 |
GEQ_TOK = 351, |
136 |
NEQ_TOK = 352, |
137 |
DOTDOT_TOK = 353, |
138 |
WITH_TOK = 354, |
139 |
VALUE_TOK = 355, |
140 |
WITH_VALUE_T = 356, |
141 |
REAL_TOK = 357, |
142 |
INTEGER_TOK = 358, |
143 |
IDENTIFIER_TOK = 359, |
144 |
BRACEDTEXT_TOK = 360, |
145 |
SYMBOL_TOK = 361, |
146 |
DQUOTE_TOK = 362, |
147 |
UPLUS_TOK = 363, |
148 |
UMINUS_TOK = 364 |
149 |
}; |
150 |
#endif |
151 |
/* Tokens. */ |
152 |
#define ADD_TOK 258 |
153 |
#define ALIASES_TOK 259 |
154 |
#define AND_TOK 260 |
155 |
#define ANY_TOK 261 |
156 |
#define AREALIKE_TOK 262 |
157 |
#define ARETHESAME_TOK 263 |
158 |
#define ARRAY_TOK 264 |
159 |
#define ASSERT_TOK 265 |
160 |
#define ATOM_TOK 266 |
161 |
#define BEQ_TOK 267 |
162 |
#define BNE_TOK 268 |
163 |
#define BREAK_TOK 269 |
164 |
#define CALL_TOK 270 |
165 |
#define CARD_TOK 271 |
166 |
#define CASE_TOK 272 |
167 |
#define CHOICE_TOK 273 |
168 |
#define CHECK_TOK 274 |
169 |
#define CONDITIONAL_TOK 275 |
170 |
#define CONSTANT_TOK 276 |
171 |
#define CONTINUE_TOK 277 |
172 |
#define CREATE_TOK 278 |
173 |
#define DATA_TOK 279 |
174 |
#define DECREASING_TOK 280 |
175 |
#define DEFAULT_TOK 281 |
176 |
#define DEFINITION_TOK 282 |
177 |
#define DIMENSION_TOK 283 |
178 |
#define DIMENSIONLESS_TOK 284 |
179 |
#define DO_TOK 285 |
180 |
#define ELSE_TOK 286 |
181 |
#define END_TOK 287 |
182 |
#define EXPECT_TOK 288 |
183 |
#define EXTERNAL_TOK 289 |
184 |
#define FALSE_TOK 290 |
185 |
#define FALLTHRU_TOK 291 |
186 |
#define FIX_TOK 292 |
187 |
#define FOR_TOK 293 |
188 |
#define FREE_TOK 294 |
189 |
#define FROM_TOK 295 |
190 |
#define GLOBAL_TOK 296 |
191 |
#define IF_TOK 297 |
192 |
#define IMPORT_TOK 298 |
193 |
#define IN_TOK 299 |
194 |
#define INPUT_TOK 300 |
195 |
#define INCREASING_TOK 301 |
196 |
#define INTERACTIVE_TOK 302 |
197 |
#define INTERSECTION_TOK 303 |
198 |
#define ISA_TOK 304 |
199 |
#define _IS_T 305 |
200 |
#define ISREFINEDTO_TOK 306 |
201 |
#define MAXIMIZE_TOK 307 |
202 |
#define MAXINTEGER_TOK 308 |
203 |
#define MAXREAL_TOK 309 |
204 |
#define METHODS_TOK 310 |
205 |
#define METHOD_TOK 311 |
206 |
#define MINIMIZE_TOK 312 |
207 |
#define MODEL_TOK 313 |
208 |
#define NOT_TOK 314 |
209 |
#define NOTES_TOK 315 |
210 |
#define OF_TOK 316 |
211 |
#define OR_TOK 317 |
212 |
#define OTHERWISE_TOK 318 |
213 |
#define OUTPUT_TOK 319 |
214 |
#define PATCH_TOK 320 |
215 |
#define PROD_TOK 321 |
216 |
#define PROVIDE_TOK 322 |
217 |
#define REFINES_TOK 323 |
218 |
#define REPLACE_TOK 324 |
219 |
#define REQUIRE_TOK 325 |
220 |
#define RETURN_TOK 326 |
221 |
#define RUN_TOK 327 |
222 |
#define SATISFIED_TOK 328 |
223 |
#define SELECT_TOK 329 |
224 |
#define SIZE_TOK 330 |
225 |
#define STOP_TOK 331 |
226 |
#define SUCHTHAT_TOK 332 |
227 |
#define SUM_TOK 333 |
228 |
#define SWITCH_TOK 334 |
229 |
#define THEN_TOK 335 |
230 |
#define TRUE_TOK 336 |
231 |
#define UNION_TOK 337 |
232 |
#define UNITS_TOK 338 |
233 |
#define UNIVERSAL_TOK 339 |
234 |
#define WHEN_TOK 340 |
235 |
#define WHERE_TOK 341 |
236 |
#define WHILE_TOK 342 |
237 |
#define WILLBE_TOK 343 |
238 |
#define WILLBETHESAME_TOK 344 |
239 |
#define WILLNOTBETHESAME_TOK 345 |
240 |
#define ASSIGN_TOK 346 |
241 |
#define CASSIGN_TOK 347 |
242 |
#define DBLCOLON_TOK 348 |
243 |
#define USE_TOK 349 |
244 |
#define LEQ_TOK 350 |
245 |
#define GEQ_TOK 351 |
246 |
#define NEQ_TOK 352 |
247 |
#define DOTDOT_TOK 353 |
248 |
#define WITH_TOK 354 |
249 |
#define VALUE_TOK 355 |
250 |
#define WITH_VALUE_T 356 |
251 |
#define REAL_TOK 357 |
252 |
#define INTEGER_TOK 358 |
253 |
#define IDENTIFIER_TOK 359 |
254 |
#define BRACEDTEXT_TOK 360 |
255 |
#define SYMBOL_TOK 361 |
256 |
#define DQUOTE_TOK 362 |
257 |
#define UPLUS_TOK 363 |
258 |
#define UMINUS_TOK 364 |
259 |
|
260 |
|
261 |
|
262 |
|
263 |
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
264 |
typedef union YYSTYPE |
265 |
#line 304 "base/generic/compiler/ascParse.y" |
266 |
{ |
267 |
double real_value; |
268 |
long int_value; |
269 |
struct fraction frac_value; |
270 |
symchar *id_ptr; |
271 |
CONST char *braced_ptr; /* pointer for units, explanations, tables */ |
272 |
symchar *sym_ptr; /* pointer for symbols */ |
273 |
CONST char *dquote_ptr; /* for text in "double quotes" */ |
274 |
struct Name *nptr; |
275 |
struct Expr *eptr; |
276 |
struct Set *sptr; |
277 |
struct VariableList *lptr; |
278 |
struct Statement *statptr; |
279 |
struct StatementList *slptr; |
280 |
struct SelectList *septr; |
281 |
struct SwitchList *swptr; |
282 |
struct WhenList *wptr; |
283 |
struct NoteTmp *notesptr; /* change this once struct Notes is defined */ |
284 |
struct gl_list_t *listp; |
285 |
struct InitProcedure *procptr; |
286 |
CONST dim_type *dimp; |
287 |
struct TypeDescription *tptr; |
288 |
struct UnitDefinition *udefptr; |
289 |
dim_type dimen; |
290 |
enum ForOrder order; |
291 |
enum ForKind fkind; |
292 |
} |
293 |
/* Line 1489 of yacc.c. */ |
294 |
#line 295 "base/generic/compiler/ascParse.h" |
295 |
YYSTYPE; |
296 |
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
297 |
# define YYSTYPE_IS_DECLARED 1 |
298 |
# define YYSTYPE_IS_TRIVIAL 1 |
299 |
#endif |
300 |
|
301 |
extern YYSTYPE zz_lval; |
302 |
|