996
|
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 UNKNOWN = 258,
|
|
43 GETS = 259,
|
|
44 RESIZE = 260,
|
|
45 NEXT = 261,
|
|
46 GO_AHEAD = 262,
|
|
47 GO_BACK = 263,
|
|
48 FORGET = 264,
|
|
49 RESUME = 265,
|
|
50 STASH = 266,
|
|
51 RETRIEVE = 267,
|
|
52 IGNORE = 268,
|
|
53 REMEMBER = 269,
|
|
54 ABSTAIN = 270,
|
|
55 REINSTATE = 271,
|
|
56 DISABLE = 272,
|
|
57 ENABLE = 273,
|
|
58 MANYFROM = 274,
|
|
59 GIVE_UP = 275,
|
|
60 READ_OUT = 276,
|
|
61 WRITE_IN = 277,
|
|
62 PIN = 278,
|
|
63 COME_FROM = 279,
|
|
64 NEXTFROMLABEL = 280,
|
|
65 NEXTFROMEXPR = 281,
|
|
66 NEXTFROMGERUND = 282,
|
|
67 COMPUCOME = 283,
|
|
68 GERUCOME = 284,
|
|
69 PREPROC = 285,
|
|
70 WHILE = 286,
|
|
71 TRY_AGAIN = 287,
|
|
72 CREATE = 288,
|
|
73 COMPUCREATE = 289,
|
|
74 FROM = 290,
|
|
75 MAYBE = 291,
|
|
76 DO = 292,
|
|
77 PLEASE = 293,
|
|
78 NOT = 294,
|
|
79 ONCE = 295,
|
|
80 AGAIN = 296,
|
|
81 MESH = 297,
|
|
82 NOSPOT = 298,
|
|
83 ick_ONESPOT = 299,
|
|
84 ick_TWOSPOT = 300,
|
|
85 ick_TAIL = 301,
|
|
86 ick_HYBRID = 302,
|
|
87 MINGLE = 303,
|
|
88 SELECT = 304,
|
|
89 UNKNOWNOP = 305,
|
|
90 SUB = 306,
|
|
91 BY = 307,
|
|
92 SLAT = 308,
|
|
93 BACKSLAT = 309,
|
|
94 NUMBER = 310,
|
|
95 UNARY = 311,
|
|
96 OHOHSEVEN = 312,
|
|
97 GERUND = 313,
|
|
98 LABEL = 314,
|
|
99 BADCHAR = 315,
|
|
100 INTERSECTION = 316,
|
|
101 SPLATTERED = 317,
|
|
102 MESH32 = 318,
|
|
103 C_AND = 319,
|
|
104 C_OR = 320,
|
|
105 C_XOR = 321,
|
|
106 C_NOT = 322,
|
|
107 C_LOGICALNOT = 323,
|
|
108 C_LSHIFTBY = 324,
|
|
109 C_RSHIFTBY = 325,
|
|
110 C_NOTEQUAL = 326,
|
|
111 C_A = 327,
|
|
112 C_PLUS = 328,
|
|
113 C_MINUS = 329,
|
|
114 C_TIMES = 330,
|
|
115 C_DIVIDEBY = 331,
|
|
116 C_MODULUS = 332,
|
|
117 C_GREATER = 333,
|
|
118 C_LESS = 334,
|
|
119 C_ISEQUAL = 335,
|
|
120 C_LOGICALAND = 336,
|
|
121 C_LOGICALOR = 337,
|
|
122 AND = 338,
|
|
123 OR = 339,
|
|
124 XOR = 340,
|
|
125 FIN = 341,
|
|
126 WHIRL = 342,
|
|
127 WHIRL2 = 343,
|
|
128 WHIRL3 = 344,
|
|
129 WHIRL4 = 345,
|
|
130 WHIRL5 = 346,
|
|
131 REV_AND = 347,
|
|
132 REV_OR = 348,
|
|
133 REV_XOR = 349,
|
|
134 REV_FIN = 350,
|
|
135 REV_WHIRL = 351,
|
|
136 REV_WHIRL2 = 352,
|
|
137 REV_WHIRL3 = 353,
|
|
138 REV_WHIRL4 = 354,
|
|
139 REV_WHIRL5 = 355,
|
|
140 UNKNOWNID = 356,
|
|
141 US_ID = 357,
|
|
142 US_SCALAR = 358,
|
|
143 US_ARRVAR = 359,
|
|
144 US_ELEM = 360,
|
|
145 US_EXPR = 361,
|
|
146 CLOSESPARK = 362,
|
|
147 CLOSEEARS = 363,
|
|
148 OPENSPARK = 364,
|
|
149 OPENEARS = 365,
|
|
150 HIGHPREC = 366,
|
|
151 UNARYPREC = 367,
|
|
152 LOWPREC = 368
|
|
153 };
|
|
154 #endif
|
|
155 /* Tokens. */
|
|
156 #define UNKNOWN 258
|
|
157 #define GETS 259
|
|
158 #define RESIZE 260
|
|
159 #define NEXT 261
|
|
160 #define GO_AHEAD 262
|
|
161 #define GO_BACK 263
|
|
162 #define FORGET 264
|
|
163 #define RESUME 265
|
|
164 #define STASH 266
|
|
165 #define RETRIEVE 267
|
|
166 #define IGNORE 268
|
|
167 #define REMEMBER 269
|
|
168 #define ABSTAIN 270
|
|
169 #define REINSTATE 271
|
|
170 #define DISABLE 272
|
|
171 #define ENABLE 273
|
|
172 #define MANYFROM 274
|
|
173 #define GIVE_UP 275
|
|
174 #define READ_OUT 276
|
|
175 #define WRITE_IN 277
|
|
176 #define PIN 278
|
|
177 #define COME_FROM 279
|
|
178 #define NEXTFROMLABEL 280
|
|
179 #define NEXTFROMEXPR 281
|
|
180 #define NEXTFROMGERUND 282
|
|
181 #define COMPUCOME 283
|
|
182 #define GERUCOME 284
|
|
183 #define PREPROC 285
|
|
184 #define WHILE 286
|
|
185 #define TRY_AGAIN 287
|
|
186 #define CREATE 288
|
|
187 #define COMPUCREATE 289
|
|
188 #define FROM 290
|
|
189 #define MAYBE 291
|
|
190 #define DO 292
|
|
191 #define PLEASE 293
|
|
192 #define NOT 294
|
|
193 #define ONCE 295
|
|
194 #define AGAIN 296
|
|
195 #define MESH 297
|
|
196 #define NOSPOT 298
|
|
197 #define ick_ONESPOT 299
|
|
198 #define ick_TWOSPOT 300
|
|
199 #define ick_TAIL 301
|
|
200 #define ick_HYBRID 302
|
|
201 #define MINGLE 303
|
|
202 #define SELECT 304
|
|
203 #define UNKNOWNOP 305
|
|
204 #define SUB 306
|
|
205 #define BY 307
|
|
206 #define SLAT 308
|
|
207 #define BACKSLAT 309
|
|
208 #define NUMBER 310
|
|
209 #define UNARY 311
|
|
210 #define OHOHSEVEN 312
|
|
211 #define GERUND 313
|
|
212 #define LABEL 314
|
|
213 #define BADCHAR 315
|
|
214 #define INTERSECTION 316
|
|
215 #define SPLATTERED 317
|
|
216 #define MESH32 318
|
|
217 #define C_AND 319
|
|
218 #define C_OR 320
|
|
219 #define C_XOR 321
|
|
220 #define C_NOT 322
|
|
221 #define C_LOGICALNOT 323
|
|
222 #define C_LSHIFTBY 324
|
|
223 #define C_RSHIFTBY 325
|
|
224 #define C_NOTEQUAL 326
|
|
225 #define C_A 327
|
|
226 #define C_PLUS 328
|
|
227 #define C_MINUS 329
|
|
228 #define C_TIMES 330
|
|
229 #define C_DIVIDEBY 331
|
|
230 #define C_MODULUS 332
|
|
231 #define C_GREATER 333
|
|
232 #define C_LESS 334
|
|
233 #define C_ISEQUAL 335
|
|
234 #define C_LOGICALAND 336
|
|
235 #define C_LOGICALOR 337
|
|
236 #define AND 338
|
|
237 #define OR 339
|
|
238 #define XOR 340
|
|
239 #define FIN 341
|
|
240 #define WHIRL 342
|
|
241 #define WHIRL2 343
|
|
242 #define WHIRL3 344
|
|
243 #define WHIRL4 345
|
|
244 #define WHIRL5 346
|
|
245 #define REV_AND 347
|
|
246 #define REV_OR 348
|
|
247 #define REV_XOR 349
|
|
248 #define REV_FIN 350
|
|
249 #define REV_WHIRL 351
|
|
250 #define REV_WHIRL2 352
|
|
251 #define REV_WHIRL3 353
|
|
252 #define REV_WHIRL4 354
|
|
253 #define REV_WHIRL5 355
|
|
254 #define UNKNOWNID 356
|
|
255 #define US_ID 357
|
|
256 #define US_SCALAR 358
|
|
257 #define US_ARRVAR 359
|
|
258 #define US_ELEM 360
|
|
259 #define US_EXPR 361
|
|
260 #define CLOSESPARK 362
|
|
261 #define CLOSEEARS 363
|
|
262 #define OPENSPARK 364
|
|
263 #define OPENEARS 365
|
|
264 #define HIGHPREC 366
|
|
265 #define UNARYPREC 367
|
|
266 #define LOWPREC 368
|
|
267
|
|
268
|
|
269
|
|
270
|
|
271 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
|
272 typedef union YYSTYPE
|
|
273 #line 83 "parser.y"
|
|
274 {
|
|
275 int numval; /* a numeric value */
|
|
276 tuple *tuple; /* a code tuple */
|
|
277 node *node; /* an expression-tree node */
|
|
278 }
|
|
279 /* Line 1489 of yacc.c. */
|
|
280 #line 281 "parser.h"
|
|
281 YYSTYPE;
|
|
282 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
|
283 # define YYSTYPE_IS_DECLARED 1
|
|
284 # define YYSTYPE_IS_TRIVIAL 1
|
|
285 #endif
|
|
286
|
|
287 extern YYSTYPE yylval;
|
|
288
|