comparison interps/c-intercal/parser.h @ 996:859f9b4339e6

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