Debian Codegraph @

src/core/chuck_yacc.h

raw symbols SCIP
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 ID = 258,
43 STRING_LIT = 259,
44 CHAR_LIT = 260,
45 INT_VAL = 261,
46 FLOAT_VAL = 262,
47 POUND = 263,
48 COMMA = 264,
49 COLON = 265,
50 SEMICOLON = 266,
51 LPAREN = 267,
52 RPAREN = 268,
53 LBRACK = 269,
54 RBRACK = 270,
55 LBRACE = 271,
56 RBRACE = 272,
57 DOT = 273,
58 PLUS = 274,
59 MINUS = 275,
60 TIMES = 276,
61 DIVIDE = 277,
62 PERCENT = 278,
63 EQ = 279,
64 NEQ = 280,
65 LT = 281,
66 LE = 282,
67 GT = 283,
68 GE = 284,
69 AND = 285,
70 OR = 286,
71 ASSIGN = 287,
72 IF = 288,
73 THEN = 289,
74 ELSE = 290,
75 WHILE = 291,
76 FOR = 292,
77 DO = 293,
78 LOOP = 294,
79 BREAK = 295,
80 CONTINUE = 296,
81 NULL_TOK = 297,
82 FUNCTION = 298,
83 RETURN = 299,
84 QUESTION = 300,
85 EXCLAMATION = 301,
86 S_OR = 302,
87 S_AND = 303,
88 S_XOR = 304,
89 PLUSPLUS = 305,
90 MINUSMINUS = 306,
91 DOLLAR = 307,
92 POUNDPAREN = 308,
93 PERCENTPAREN = 309,
94 ATPAREN = 310,
95 SIMULT = 311,
96 PATTERN = 312,
97 CODE = 313,
98 TRANSPORT = 314,
99 HOST = 315,
100 TIME = 316,
101 WHENEVER = 317,
102 NEXT = 318,
103 UNTIL = 319,
104 EXTERNAL = 320,
105 GLOBAL = 321,
106 EVERY = 322,
107 BEFORE = 323,
108 AFTER = 324,
109 AT = 325,
110 AT_SYM = 326,
111 ATAT_SYM = 327,
112 NEW = 328,
113 SIZEOF = 329,
114 TYPEOF = 330,
115 SAME = 331,
116 PLUS_CHUCK = 332,
117 MINUS_CHUCK = 333,
118 TIMES_CHUCK = 334,
119 DIVIDE_CHUCK = 335,
120 S_AND_CHUCK = 336,
121 S_OR_CHUCK = 337,
122 S_XOR_CHUCK = 338,
123 SHIFT_RIGHT_CHUCK = 339,
124 SHIFT_LEFT_CHUCK = 340,
125 PERCENT_CHUCK = 341,
126 SHIFT_RIGHT = 342,
127 SHIFT_LEFT = 343,
128 TILDA = 344,
129 CHUCK = 345,
130 COLONCOLON = 346,
131 S_CHUCK = 347,
132 AT_CHUCK = 348,
133 LEFT_S_CHUCK = 349,
134 UNCHUCK = 350,
135 UPCHUCK = 351,
136 DOWNCHUCK = 352,
137 CLASS = 353,
138 INTERFACE = 354,
139 EXTENDS = 355,
140 IMPLEMENTS = 356,
141 PUBLIC = 357,
142 PROTECTED = 358,
143 PRIVATE = 359,
144 STATIC = 360,
145 ABSTRACT = 361,
146 CONST = 362,
147 SPORK = 363,
148 ARROW_RIGHT = 364,
149 ARROW_LEFT = 365,
150 L_HACK = 366,
151 R_HACK = 367,
152 GRUCK_RIGHT = 368,
153 GRUCK_LEFT = 369,
154 UNGRUCK_RIGHT = 370,
155 UNGRUCK_LEFT = 371,
156 AT_OP = 372,
157 AT_CTOR = 373,
158 AT_DTOR = 374,
159 AT_IMPORT = 375,
160 AT_DOC = 376
161 };
162 #endif
163 /* Tokens. */
164 #define ID 258
165 #define STRING_LIT 259
166 #define CHAR_LIT 260
167 #define INT_VAL 261
168 #define FLOAT_VAL 262
169 #define POUND 263
170 #define COMMA 264
171 #define COLON 265
172 #define SEMICOLON 266
173 #define LPAREN 267
174 #define RPAREN 268
175 #define LBRACK 269
176 #define RBRACK 270
177 #define LBRACE 271
178 #define RBRACE 272
179 #define DOT 273
180 #define PLUS 274
181 #define MINUS 275
182 #define TIMES 276
183 #define DIVIDE 277
184 #define PERCENT 278
185 #define EQ 279
186 #define NEQ 280
187 #define LT 281
188 #define LE 282
189 #define GT 283
190 #define GE 284
191 #define AND 285
192 #define OR 286
193 #define ASSIGN 287
194 #define IF 288
195 #define THEN 289
196 #define ELSE 290
197 #define WHILE 291
198 #define FOR 292
199 #define DO 293
200 #define LOOP 294
201 #define BREAK 295
202 #define CONTINUE 296
203 #define NULL_TOK 297
204 #define FUNCTION 298
205 #define RETURN 299
206 #define QUESTION 300
207 #define EXCLAMATION 301
208 #define S_OR 302
209 #define S_AND 303
210 #define S_XOR 304
211 #define PLUSPLUS 305
212 #define MINUSMINUS 306
213 #define DOLLAR 307
214 #define POUNDPAREN 308
215 #define PERCENTPAREN 309
216 #define ATPAREN 310
217 #define SIMULT 311
218 #define PATTERN 312
219 #define CODE 313
220 #define TRANSPORT 314
221 #define HOST 315
222 #define TIME 316
223 #define WHENEVER 317
224 #define NEXT 318
225 #define UNTIL 319
226 #define EXTERNAL 320
227 #define GLOBAL 321
228 #define EVERY 322
229 #define BEFORE 323
230 #define AFTER 324
231 #define AT 325
232 #define AT_SYM 326
233 #define ATAT_SYM 327
234 #define NEW 328
235 #define SIZEOF 329
236 #define TYPEOF 330
237 #define SAME 331
238 #define PLUS_CHUCK 332
239 #define MINUS_CHUCK 333
240 #define TIMES_CHUCK 334
241 #define DIVIDE_CHUCK 335
242 #define S_AND_CHUCK 336
243 #define S_OR_CHUCK 337
244 #define S_XOR_CHUCK 338
245 #define SHIFT_RIGHT_CHUCK 339
246 #define SHIFT_LEFT_CHUCK 340
247 #define PERCENT_CHUCK 341
248 #define SHIFT_RIGHT 342
249 #define SHIFT_LEFT 343
250 #define TILDA 344
251 #define CHUCK 345
252 #define COLONCOLON 346
253 #define S_CHUCK 347
254 #define AT_CHUCK 348
255 #define LEFT_S_CHUCK 349
256 #define UNCHUCK 350
257 #define UPCHUCK 351
258 #define DOWNCHUCK 352
259 #define CLASS 353
260 #define INTERFACE 354
261 #define EXTENDS 355
262 #define IMPLEMENTS 356
263 #define PUBLIC 357
264 #define PROTECTED 358
265 #define PRIVATE 359
266 #define STATIC 360
267 #define ABSTRACT 361
268 #define CONST 362
269 #define SPORK 363
270 #define ARROW_RIGHT 364
271 #define ARROW_LEFT 365
272 #define L_HACK 366
273 #define R_HACK 367
274 #define GRUCK_RIGHT 368
275 #define GRUCK_LEFT 369
276 #define UNGRUCK_RIGHT 370
277 #define UNGRUCK_LEFT 371
278 #define AT_OP 372
279 #define AT_CTOR 373
280 #define AT_DTOR 374
281 #define AT_IMPORT 375
282 #define AT_DOC 376
283
284
285
286
287 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
288 typedef union YYSTYPE
289 #line 77 "chuck.y"
290 {
291 int pos;
292 int ival;
293 double fval;
294 c_str sval;
295
296 a_Program program;
297 a_Section program_section;
298 a_Stmt_List stmt_list;
299 a_Class_Def class_def;
300 a_Class_Ext class_ext;
301 a_Class_Body class_body;
302 a_Stmt stmt;
303 a_Exp exp;
304 a_Func_Def func_def;
305 a_Var_Decl_List var_decl_list;
306 a_Var_Decl var_decl;
307 a_Type_Decl type_decl;
308 a_Arg_List arg_list;
309 a_Id_List id_list;
310 a_Array_Sub array_sub;
311 a_Complex complex_exp;
312 a_Polar polar_exp;
313 a_Vec vec_exp; // ge: added 1.3.5.3
314 a_Import import; // 1.5.4.0 (ge) added
315 a_Doc doc; // 1.5.4.4 (ge) added
316 }
317 /* Line 1529 of yacc.c. */
318 #line 319 "chuck.tab.h"
319 YYSTYPE;
320 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
321 # define YYSTYPE_IS_DECLARED 1
322 # define YYSTYPE_IS_TRIVIAL 1
323 #endif
324
325 extern YYSTYPE yylval;
326
327 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
328 typedef struct YYLTYPE
329 {
330 int first_line;
331 int first_column;
332 int last_line;
333 int last_column;
334 } YYLTYPE;
335 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
336 # define YYLTYPE_IS_DECLARED 1
337 # define YYLTYPE_IS_TRIVIAL 1
338 #endif
339
340 extern YYLTYPE yylloc;