Rev 5221 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5221 | Rev 6324 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* A Bison parser, made by GNU Bison 2.3. */ |
1 | /* A Bison parser, made by GNU Bison 3.0. */ |
Line 2... | Line 2... | ||
2 | 2 | ||
Line 3... | Line 3... | ||
3 | /* Skeleton implementation for Bison's Yacc-like parsers in C |
3 | /* Bison implementation for Yacc-like parsers in C |
4 | - | ||
Line 5... | Line 4... | ||
5 | Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 |
4 | |
6 | Free Software Foundation, Inc. |
5 | Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. |
7 | 6 | ||
8 | This program is free software; you can redistribute it and/or modify |
7 | This program is free software: you can redistribute it and/or modify |
Line 9... | Line 8... | ||
9 | it under the terms of the GNU General Public License as published by |
8 | 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) |
9 | the Free Software Foundation, either version 3 of the License, or |
11 | any later version. |
10 | (at your option) any later version. |
12 | 11 | ||
Line 13... | Line 12... | ||
13 | This program is distributed in the hope that it will be useful, |
12 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | 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. |
- | |
Line 17... | Line 14... | ||
17 | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 | You should have received a copy of the GNU General Public License |
15 | GNU General Public License for more details. |
19 | along with this program; if not, write to the Free Software |
16 | |
20 | Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 | You should have received a copy of the GNU General Public License |
Line 45... | Line 42... | ||
45 | 42 | ||
46 | /* Identify Bison output. */ |
43 | /* Identify Bison output. */ |
Line 47... | Line 44... | ||
47 | #define YYBISON 1 |
44 | #define YYBISON 1 |
48 | 45 | ||
Line 49... | Line 46... | ||
49 | /* Bison version. */ |
46 | /* Bison version. */ |
50 | #define YYBISON_VERSION "2.3" |
47 | #define YYBISON_VERSION "3.0" |
Line 51... | Line 48... | ||
51 | 48 | ||
52 | /* Skeleton name. */ |
49 | /* Skeleton name. */ |
Line 53... | Line 50... | ||
53 | #define YYSKELETON_NAME "yacc.c" |
50 | #define YYSKELETON_NAME "yacc.c" |
54 | 51 | ||
55 | /* Pure parsers. */ |
- | |
Line 56... | Line -... | ||
56 | #define YYPURE 0 |
- | |
57 | - | ||
58 | /* Using locations. */ |
- | |
59 | #define YYLSP_NEEDED 0 |
- | |
60 | - | ||
61 | - | ||
62 | - | ||
63 | /* Tokens. */ |
- | |
64 | #ifndef YYTOKENTYPE |
- | |
65 | # define YYTOKENTYPE |
- | |
66 | /* Put the tokens into the symbol table, so that GDB and other debuggers |
- | |
67 | know about them. */ |
- | |
68 | enum yytokentype { |
- | |
69 | NAME = 258, |
- | |
70 | LIBRARY = 259, |
- | |
71 | DESCRIPTION = 260, |
- | |
72 | STACKSIZE_K = 261, |
- | |
73 | HEAPSIZE = 262, |
- | |
74 | CODE = 263, |
- | |
75 | DATAU = 264, |
- | |
76 | DATAL = 265, |
- | |
77 | SECTIONS = 266, |
- | |
78 | EXPORTS = 267, |
- | |
79 | IMPORTS = 268, |
- | |
80 | VERSIONK = 269, |
- | |
81 | BASE = 270, |
- | |
82 | CONSTANTU = 271, |
- | |
83 | CONSTANTL = 272, |
- | |
84 | PRIVATEU = 273, |
- | |
85 | PRIVATEL = 274, |
- | |
86 | ALIGNCOMM = 275, |
- | |
87 | READ = 276, |
- | |
88 | WRITE = 277, |
- | |
89 | EXECUTE = 278, |
- | |
90 | SHARED = 279, |
- | |
91 | NONAMEU = 280, |
- | |
92 | NONAMEL = 281, |
- | |
93 | DIRECTIVE = 282, |
52 | /* Pure parsers. */ |
94 | EQUAL = 283, |
- | |
95 | ID = 284, |
- | |
96 | DIGITS = 285 |
- | |
97 | }; |
- | |
98 | #endif |
- | |
99 | /* Tokens. */ |
- | |
100 | #define NAME 258 |
- | |
101 | #define LIBRARY 259 |
- | |
102 | #define DESCRIPTION 260 |
- | |
103 | #define STACKSIZE_K 261 |
- | |
104 | #define HEAPSIZE 262 |
- | |
105 | #define CODE 263 |
- | |
106 | #define DATAU 264 |
- | |
107 | #define DATAL 265 |
- | |
108 | #define SECTIONS 266 |
- | |
109 | #define EXPORTS 267 |
- | |
110 | #define IMPORTS 268 |
- | |
111 | #define VERSIONK 269 |
- | |
112 | #define BASE 270 |
- | |
113 | #define CONSTANTU 271 |
- | |
114 | #define CONSTANTL 272 |
- | |
115 | #define PRIVATEU 273 |
- | |
116 | #define PRIVATEL 274 |
- | |
117 | #define ALIGNCOMM 275 |
- | |
118 | #define READ 276 |
- | |
119 | #define WRITE 277 |
53 | #define YYPURE 0 |
120 | #define EXECUTE 278 |
- | |
121 | #define SHARED 279 |
- | |
Line 122... | Line 54... | ||
122 | #define NONAMEU 280 |
54 | |
123 | #define NONAMEL 281 |
55 | /* Push parsers. */ |
124 | #define DIRECTIVE 282 |
56 | #define YYPUSH 0 |
Line 125... | Line -... | ||
125 | #define EQUAL 283 |
- | |
126 | #define ID 284 |
57 | |
Line 127... | Line 58... | ||
127 | #define DIGITS 285 |
58 | /* Pull parsers. */ |
Line 128... | Line 59... | ||
128 | 59 | #define YYPULL 1 |
|
129 | 60 | ||
Line 241... | Line 172... | ||
241 | static int lex_forced_token = 0; |
172 | static int lex_forced_token = 0; |
242 | static const char *lex_parse_string = 0; |
173 | static const char *lex_parse_string = 0; |
243 | static const char *lex_parse_string_end = 0; |
174 | static const char *lex_parse_string_end = 0; |
Line -... | Line 175... | ||
- | 175 | ||
Line 244... | Line 176... | ||
244 | 176 | ||
- | 177 | #line 178 "deffilep.c" /* yacc.c:339 */ |
|
245 | 178 | ||
- | 179 | # ifndef YY_NULL |
|
246 | 180 | # if defined __cplusplus && 201103L <= __cplusplus |
|
- | 181 | # define YY_NULL nullptr |
|
247 | /* Enabling traces. */ |
182 | # else |
Line 248... | Line 183... | ||
248 | #ifndef YYDEBUG |
183 | # define YY_NULL 0 |
249 | # define YYDEBUG 0 |
184 | # endif |
250 | #endif |
185 | # endif |
251 | 186 | ||
252 | /* Enabling verbose error messages. */ |
187 | /* Enabling verbose error messages. */ |
253 | #ifdef YYERROR_VERBOSE |
188 | #ifdef YYERROR_VERBOSE |
254 | # undef YYERROR_VERBOSE |
189 | # undef YYERROR_VERBOSE |
Line -... | Line 190... | ||
- | 190 | # define YYERROR_VERBOSE 1 |
|
255 | # define YYERROR_VERBOSE 1 |
191 | #else |
- | 192 | # define YYERROR_VERBOSE 0 |
|
- | 193 | #endif |
|
- | 194 | ||
256 | #else |
195 | /* In a future release of Bison, this section will be replaced |
257 | # define YYERROR_VERBOSE 0 |
196 | by #include "y.tab.h". */ |
- | 197 | #ifndef YY_YY_DEFFILEP_H_INCLUDED |
|
- | 198 | # define YY_YY_DEFFILEP_H_INCLUDED |
|
- | 199 | /* Debug traces. */ |
|
258 | #endif |
200 | #ifndef YYDEBUG |
Line -... | Line 201... | ||
- | 201 | # define YYDEBUG 0 |
|
- | 202 | #endif |
|
- | 203 | #if YYDEBUG |
|
- | 204 | extern int yydebug; |
|
- | 205 | #endif |
|
- | 206 | ||
- | 207 | /* Token type. */ |
|
- | 208 | #ifndef YYTOKENTYPE |
|
- | 209 | # define YYTOKENTYPE |
|
- | 210 | enum yytokentype |
|
- | 211 | { |
|
- | 212 | NAME = 258, |
|
- | 213 | LIBRARY = 259, |
|
- | 214 | DESCRIPTION = 260, |
|
- | 215 | STACKSIZE_K = 261, |
|
- | 216 | HEAPSIZE = 262, |
|
- | 217 | CODE = 263, |
|
- | 218 | DATAU = 264, |
|
- | 219 | DATAL = 265, |
|
- | 220 | SECTIONS = 266, |
|
- | 221 | EXPORTS = 267, |
|
- | 222 | IMPORTS = 268, |
|
- | 223 | VERSIONK = 269, |
|
- | 224 | BASE = 270, |
|
- | 225 | CONSTANTU = 271, |
|
- | 226 | CONSTANTL = 272, |
|
- | 227 | PRIVATEU = 273, |
|
- | 228 | PRIVATEL = 274, |
|
- | 229 | ALIGNCOMM = 275, |
|
- | 230 | READ = 276, |
|
- | 231 | WRITE = 277, |
|
- | 232 | EXECUTE = 278, |
|
- | 233 | SHARED = 279, |
|
- | 234 | NONAMEU = 280, |
|
- | 235 | NONAMEL = 281, |
|
- | 236 | DIRECTIVE = 282, |
|
- | 237 | EQUAL = 283, |
|
- | 238 | ID = 284, |
|
- | 239 | DIGITS = 285 |
|
- | 240 | }; |
|
- | 241 | #endif |
|
- | 242 | /* Tokens. */ |
|
- | 243 | #define NAME 258 |
|
- | 244 | #define LIBRARY 259 |
|
- | 245 | #define DESCRIPTION 260 |
|
- | 246 | #define STACKSIZE_K 261 |
|
- | 247 | #define HEAPSIZE 262 |
|
- | 248 | #define CODE 263 |
|
- | 249 | #define DATAU 264 |
|
- | 250 | #define DATAL 265 |
|
- | 251 | #define SECTIONS 266 |
|
- | 252 | #define EXPORTS 267 |
|
- | 253 | #define IMPORTS 268 |
|
- | 254 | #define VERSIONK 269 |
|
- | 255 | #define BASE 270 |
|
- | 256 | #define CONSTANTU 271 |
|
- | 257 | #define CONSTANTL 272 |
|
- | 258 | #define PRIVATEU 273 |
|
- | 259 | #define PRIVATEL 274 |
|
- | 260 | #define ALIGNCOMM 275 |
|
- | 261 | #define READ 276 |
|
- | 262 | #define WRITE 277 |
|
- | 263 | #define EXECUTE 278 |
|
- | 264 | #define SHARED 279 |
|
- | 265 | #define NONAMEU 280 |
|
- | 266 | #define NONAMEL 281 |
|
259 | 267 | #define DIRECTIVE 282 |
|
260 | /* Enabling the token table. */ |
268 | #define EQUAL 283 |
261 | #ifndef YYTOKEN_TABLE |
269 | #define ID 284 |
262 | # define YYTOKEN_TABLE 0 |
270 | #define DIGITS 285 |
- | 271 | ||
- | 272 | /* Value type. */ |
|
263 | #endif |
273 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
264 | 274 | typedef union YYSTYPE YYSTYPE; |
|
265 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
275 | union YYSTYPE |
266 | typedef union YYSTYPE |
276 | { |
267 | #line 114 "deffilep.y" |
277 | #line 113 "deffilep.y" /* yacc.c:355 */ |
268 | { |
278 | |
269 | char *id; |
- | |
270 | const char *id_const; |
279 | char *id; |
271 | int number; |
280 | const char *id_const; |
272 | bfd_vma vma; |
- | |
273 | char *digits; |
- | |
274 | } |
281 | int number; |
- | 282 | bfd_vma vma; |
|
275 | /* Line 193 of yacc.c. */ |
283 | char *digits; |
Line -... | Line 284... | ||
- | 284 | ||
Line 276... | Line 285... | ||
276 | #line 277 "deffilep.c" |
285 | #line 286 "deffilep.c" /* yacc.c:355 */ |
Line -... | Line 286... | ||
- | 286 | }; |
|
Line 277... | Line 287... | ||
277 | YYSTYPE; |
287 | # define YYSTYPE_IS_TRIVIAL 1 |
- | 288 | # define YYSTYPE_IS_DECLARED 1 |
|
278 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
289 | #endif |
Line 279... | Line 290... | ||
279 | # define YYSTYPE_IS_DECLARED 1 |
290 | |
280 | # define YYSTYPE_IS_TRIVIAL 1 |
291 | |
281 | #endif |
292 | extern YYSTYPE yylval; |
Line 298... | Line 309... | ||
298 | typedef unsigned char yytype_uint8; |
309 | typedef unsigned char yytype_uint8; |
299 | #endif |
310 | #endif |
Line 300... | Line 311... | ||
300 | 311 | ||
301 | #ifdef YYTYPE_INT8 |
312 | #ifdef YYTYPE_INT8 |
302 | typedef YYTYPE_INT8 yytype_int8; |
- | |
303 | #elif (defined __STDC__ || defined __C99__FUNC__ \ |
- | |
304 | || defined __cplusplus || defined _MSC_VER) |
- | |
305 | typedef signed char yytype_int8; |
313 | typedef YYTYPE_INT8 yytype_int8; |
306 | #else |
314 | #else |
307 | typedef short int yytype_int8; |
315 | typedef signed char yytype_int8; |
Line 308... | Line 316... | ||
308 | #endif |
316 | #endif |
309 | 317 | ||
310 | #ifdef YYTYPE_UINT16 |
318 | #ifdef YYTYPE_UINT16 |
Line 322... | Line 330... | ||
322 | #ifndef YYSIZE_T |
330 | #ifndef YYSIZE_T |
323 | # ifdef __SIZE_TYPE__ |
331 | # ifdef __SIZE_TYPE__ |
324 | # define YYSIZE_T __SIZE_TYPE__ |
332 | # define YYSIZE_T __SIZE_TYPE__ |
325 | # elif defined size_t |
333 | # elif defined size_t |
326 | # define YYSIZE_T size_t |
334 | # define YYSIZE_T size_t |
327 | # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ |
- | |
328 | || defined __cplusplus || defined _MSC_VER) |
335 | # elif ! defined YYSIZE_T |
329 | # include |
336 | # include |
330 | # define YYSIZE_T size_t |
337 | # define YYSIZE_T size_t |
331 | # else |
338 | # else |
332 | # define YYSIZE_T unsigned int |
339 | # define YYSIZE_T unsigned int |
333 | # endif |
340 | # endif |
Line 337... | Line 344... | ||
337 | 344 | ||
338 | #ifndef YY_ |
345 | #ifndef YY_ |
339 | # if defined YYENABLE_NLS && YYENABLE_NLS |
346 | # if defined YYENABLE_NLS && YYENABLE_NLS |
340 | # if ENABLE_NLS |
347 | # if ENABLE_NLS |
341 | # include |
348 | # include |
342 | # define YY_(msgid) dgettext ("bison-runtime", msgid) |
349 | # define YY_(Msgid) dgettext ("bison-runtime", Msgid) |
343 | # endif |
350 | # endif |
344 | # endif |
351 | # endif |
345 | # ifndef YY_ |
352 | # ifndef YY_ |
- | 353 | # define YY_(Msgid) Msgid |
|
- | 354 | # endif |
|
- | 355 | #endif |
|
- | 356 | ||
- | 357 | #ifndef __attribute__ |
|
- | 358 | /* This feature is available in gcc versions 2.5 and later. */ |
|
- | 359 | # if (! defined __GNUC__ || __GNUC__ < 2 \ |
|
- | 360 | || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)) |
|
346 | # define YY_(msgid) msgid |
361 | # define __attribute__(Spec) /* empty */ |
347 | # endif |
362 | # endif |
Line 348... | Line 363... | ||
348 | #endif |
363 | #endif |
349 | 364 | ||
350 | /* Suppress unused-variable warnings by "using" E. */ |
365 | /* Suppress unused-variable warnings by "using" E. */ |
351 | #if ! defined lint || defined __GNUC__ |
366 | #if ! defined lint || defined __GNUC__ |
352 | # define YYUSE(e) ((void) (e)) |
367 | # define YYUSE(E) ((void) (E)) |
353 | #else |
368 | #else |
Line -... | Line 369... | ||
- | 369 | # define YYUSE(E) /* empty */ |
|
354 | # define YYUSE(e) /* empty */ |
370 | #endif |
- | 371 | ||
355 | #endif |
372 | #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ |
- | 373 | /* Suppress an incorrect diagnostic about yylval being uninitialized. */ |
|
- | 374 | # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ |
|
356 | 375 | _Pragma ("GCC diagnostic push") \ |
|
- | 376 | _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ |
|
357 | /* Identity function, used to suppress warnings about constant conditions. */ |
377 | _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") |
358 | #ifndef lint |
- | |
359 | # define YYID(n) (n) |
378 | # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ |
360 | #else |
- | |
361 | #if (defined __STDC__ || defined __C99__FUNC__ \ |
- | |
362 | || defined __cplusplus || defined _MSC_VER) |
- | |
363 | static int |
- | |
364 | YYID (int i) |
- | |
365 | #else |
- | |
366 | static int |
379 | _Pragma ("GCC diagnostic pop") |
- | 380 | #else |
|
- | 381 | # define YY_INITIAL_VALUE(Value) Value |
|
- | 382 | #endif |
|
367 | YYID (i) |
383 | #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
368 | int i; |
384 | # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
369 | #endif |
- | |
- | 385 | # define YY_IGNORE_MAYBE_UNINITIALIZED_END |
|
370 | { |
386 | #endif |
Line -... | Line 387... | ||
- | 387 | #ifndef YY_INITIAL_VALUE |
|
371 | return i; |
388 | # define YY_INITIAL_VALUE(Value) /* Nothing. */ |
Line 372... | Line 389... | ||
372 | } |
389 | #endif |
Line 373... | Line 390... | ||
373 | #endif |
390 | |
Line 387... | Line 404... | ||
387 | # elif defined _MSC_VER |
404 | # elif defined _MSC_VER |
388 | # include |
405 | # include |
389 | # define alloca _alloca |
406 | # define alloca _alloca |
390 | # else |
407 | # else |
391 | # define YYSTACK_ALLOC alloca |
408 | # define YYSTACK_ALLOC alloca |
392 | # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ |
- | |
393 | || defined __cplusplus || defined _MSC_VER) |
409 | # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS |
394 | # include |
410 | # include |
- | 411 | /* Use EXIT_SUCCESS as a witness for stdlib.h. */ |
|
395 | # ifndef _STDLIB_H |
412 | # ifndef EXIT_SUCCESS |
396 | # define _STDLIB_H 1 |
413 | # define EXIT_SUCCESS 0 |
397 | # endif |
414 | # endif |
398 | # endif |
415 | # endif |
399 | # endif |
416 | # endif |
400 | # endif |
417 | # endif |
401 | # endif |
418 | # endif |
Line 402... | Line 419... | ||
402 | 419 | ||
403 | # ifdef YYSTACK_ALLOC |
420 | # ifdef YYSTACK_ALLOC |
404 | /* Pacify GCC's `empty if-body' warning. */ |
421 | /* Pacify GCC's 'empty if-body' warning. */ |
405 | # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) |
422 | # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) |
406 | # ifndef YYSTACK_ALLOC_MAXIMUM |
423 | # ifndef YYSTACK_ALLOC_MAXIMUM |
407 | /* The OS might guarantee only one guard page at the bottom of the stack, |
424 | /* The OS might guarantee only one guard page at the bottom of the stack, |
408 | and a page size can be as small as 4096 bytes. So we cannot safely |
425 | and a page size can be as small as 4096 bytes. So we cannot safely |
409 | invoke alloca (N) if N exceeds 4096. Use a slightly smaller number |
426 | invoke alloca (N) if N exceeds 4096. Use a slightly smaller number |
Line 414... | Line 431... | ||
414 | # define YYSTACK_ALLOC YYMALLOC |
431 | # define YYSTACK_ALLOC YYMALLOC |
415 | # define YYSTACK_FREE YYFREE |
432 | # define YYSTACK_FREE YYFREE |
416 | # ifndef YYSTACK_ALLOC_MAXIMUM |
433 | # ifndef YYSTACK_ALLOC_MAXIMUM |
417 | # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
434 | # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
418 | # endif |
435 | # endif |
419 | # if (defined __cplusplus && ! defined _STDLIB_H \ |
436 | # if (defined __cplusplus && ! defined EXIT_SUCCESS \ |
420 | && ! ((defined YYMALLOC || defined malloc) \ |
437 | && ! ((defined YYMALLOC || defined malloc) \ |
421 | && (defined YYFREE || defined free))) |
438 | && (defined YYFREE || defined free))) |
422 | # include |
439 | # include |
423 | # ifndef _STDLIB_H |
440 | # ifndef EXIT_SUCCESS |
424 | # define _STDLIB_H 1 |
441 | # define EXIT_SUCCESS 0 |
425 | # endif |
442 | # endif |
426 | # endif |
443 | # endif |
427 | # ifndef YYMALLOC |
444 | # ifndef YYMALLOC |
428 | # define YYMALLOC malloc |
445 | # define YYMALLOC malloc |
429 | # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ |
- | |
430 | || defined __cplusplus || defined _MSC_VER) |
446 | # if ! defined malloc && ! defined EXIT_SUCCESS |
431 | void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ |
447 | void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ |
432 | # endif |
448 | # endif |
433 | # endif |
449 | # endif |
434 | # ifndef YYFREE |
450 | # ifndef YYFREE |
435 | # define YYFREE free |
451 | # define YYFREE free |
436 | # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ |
- | |
437 | || defined __cplusplus || defined _MSC_VER) |
452 | # if ! defined free && ! defined EXIT_SUCCESS |
438 | void free (void *); /* INFRINGES ON USER NAME SPACE */ |
453 | void free (void *); /* INFRINGES ON USER NAME SPACE */ |
439 | # endif |
454 | # endif |
440 | # endif |
455 | # endif |
441 | # endif |
456 | # endif |
442 | #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ |
457 | #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ |
Line 447... | Line 462... | ||
447 | || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) |
462 | || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) |
Line 448... | Line 463... | ||
448 | 463 | ||
449 | /* A type that is properly aligned for any stack member. */ |
464 | /* A type that is properly aligned for any stack member. */ |
450 | union yyalloc |
465 | union yyalloc |
451 | { |
466 | { |
452 | yytype_int16 yyss; |
467 | yytype_int16 yyss_alloc; |
453 | YYSTYPE yyvs; |
468 | YYSTYPE yyvs_alloc; |
Line 454... | Line 469... | ||
454 | }; |
469 | }; |
455 | 470 | ||
Line 460... | Line 475... | ||
460 | N elements. */ |
475 | N elements. */ |
461 | # define YYSTACK_BYTES(N) \ |
476 | # define YYSTACK_BYTES(N) \ |
462 | ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ |
477 | ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ |
463 | + YYSTACK_GAP_MAXIMUM) |
478 | + YYSTACK_GAP_MAXIMUM) |
Line 464... | Line -... | ||
464 | - | ||
465 | /* Copy COUNT objects from FROM to TO. The source and destination do |
- | |
466 | not overlap. */ |
- | |
467 | # ifndef YYCOPY |
- | |
468 | # if defined __GNUC__ && 1 < __GNUC__ |
479 | |
469 | # define YYCOPY(To, From, Count) \ |
- | |
470 | __builtin_memcpy (To, From, (Count) * sizeof (*(From))) |
- | |
471 | # else |
- | |
472 | # define YYCOPY(To, From, Count) \ |
- | |
473 | do \ |
- | |
474 | { \ |
- | |
475 | YYSIZE_T yyi; \ |
- | |
476 | for (yyi = 0; yyi < (Count); yyi++) \ |
- | |
477 | (To)[yyi] = (From)[yyi]; \ |
- | |
478 | } \ |
- | |
479 | while (YYID (0)) |
- | |
480 | # endif |
- | |
Line 481... | Line 480... | ||
481 | # endif |
480 | # define YYCOPY_NEEDED 1 |
482 | 481 | ||
483 | /* Relocate STACK from its old location to the new one. The |
482 | /* Relocate STACK from its old location to the new one. The |
484 | local variables YYSIZE and YYSTACKSIZE give the old and new number of |
483 | local variables YYSIZE and YYSTACKSIZE give the old and new number of |
485 | elements in the stack, and YYPTR gives the new location of the |
484 | elements in the stack, and YYPTR gives the new location of the |
486 | stack. Advance YYPTR to a properly aligned location for the next |
485 | stack. Advance YYPTR to a properly aligned location for the next |
487 | stack. */ |
486 | stack. */ |
488 | # define YYSTACK_RELOCATE(Stack) \ |
487 | # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ |
489 | do \ |
488 | do \ |
490 | { \ |
489 | { \ |
491 | YYSIZE_T yynewbytes; \ |
490 | YYSIZE_T yynewbytes; \ |
492 | YYCOPY (&yyptr->Stack, Stack, yysize); \ |
491 | YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ |
493 | Stack = &yyptr->Stack; \ |
492 | Stack = &yyptr->Stack_alloc; \ |
494 | yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ |
493 | yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ |
495 | yyptr += yynewbytes / sizeof (*yyptr); \ |
494 | yyptr += yynewbytes / sizeof (*yyptr); \ |
Line 496... | Line 495... | ||
496 | } \ |
495 | } \ |
Line -... | Line 496... | ||
- | 496 | while (0) |
|
- | 497 | ||
- | 498 | #endif |
|
- | 499 | ||
- | 500 | #if defined YYCOPY_NEEDED && YYCOPY_NEEDED |
|
- | 501 | /* Copy COUNT objects from SRC to DST. The source and destination do |
|
- | 502 | not overlap. */ |
|
- | 503 | # ifndef YYCOPY |
|
- | 504 | # if defined __GNUC__ && 1 < __GNUC__ |
|
- | 505 | # define YYCOPY(Dst, Src, Count) \ |
|
- | 506 | __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) |
|
- | 507 | # else |
|
- | 508 | # define YYCOPY(Dst, Src, Count) \ |
|
- | 509 | do \ |
|
- | 510 | { \ |
|
- | 511 | YYSIZE_T yyi; \ |
|
- | 512 | for (yyi = 0; yyi < (Count); yyi++) \ |
|
- | 513 | (Dst)[yyi] = (Src)[yyi]; \ |
|
- | 514 | } \ |
|
- | 515 | while (0) |
|
497 | while (YYID (0)) |
516 | # endif |
498 | 517 | # endif |
|
499 | #endif |
518 | #endif /* !YYCOPY_NEEDED */ |
500 | 519 | ||
Line 507... | Line 526... | ||
507 | #define YYNTOKENS 35 |
526 | #define YYNTOKENS 35 |
508 | /* YYNNTS -- Number of nonterminals. */ |
527 | /* YYNNTS -- Number of nonterminals. */ |
509 | #define YYNNTS 27 |
528 | #define YYNNTS 27 |
510 | /* YYNRULES -- Number of rules. */ |
529 | /* YYNRULES -- Number of rules. */ |
511 | #define YYNRULES 99 |
530 | #define YYNRULES 99 |
512 | /* YYNRULES -- Number of states. */ |
531 | /* YYNSTATES -- Number of states. */ |
513 | #define YYNSTATES 146 |
532 | #define YYNSTATES 146 |
Line 514... | Line 533... | ||
514 | 533 | ||
- | 534 | /* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned |
|
515 | /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ |
535 | by yylex, with out-of-bounds checking. */ |
516 | #define YYUNDEFTOK 2 |
536 | #define YYUNDEFTOK 2 |
Line 517... | Line 537... | ||
517 | #define YYMAXUTOK 285 |
537 | #define YYMAXUTOK 285 |
518 | 538 | ||
Line 519... | Line 539... | ||
519 | #define YYTRANSLATE(YYX) \ |
539 | #define YYTRANSLATE(YYX) \ |
- | 540 | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
|
520 | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
541 | |
521 | 542 | /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM |
|
522 | /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ |
543 | as returned by yylex, without out-of-bounds checking. */ |
523 | static const yytype_uint8 yytranslate[] = |
544 | static const yytype_uint8 yytranslate[] = |
524 | { |
545 | { |
Line 552... | Line 573... | ||
552 | 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, |
573 | 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, |
553 | 25, 26, 27, 28, 29, 30 |
574 | 25, 26, 27, 28, 29, 30 |
554 | }; |
575 | }; |
Line 555... | Line 576... | ||
555 | 576 | ||
556 | #if YYDEBUG |
- | |
557 | /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in |
- | |
558 | YYRHS. */ |
- | |
559 | static const yytype_uint16 yyprhs[] = |
- | |
560 | { |
- | |
561 | 0, 0, 3, 6, 8, 12, 16, 19, 23, 27, |
- | |
562 | 30, 33, 36, 39, 42, 45, 50, 53, 58, 59, |
- | |
563 | 61, 64, 72, 76, 77, 79, 81, 83, 85, 87, |
- | |
564 | 89, 91, 93, 96, 98, 107, 116, 123, 130, 137, |
- | |
565 | 142, 145, 147, 150, 153, 157, 159, 161, 162, 165, |
- | |
566 | 166, 168, 170, 172, 174, 176, 178, 180, 182, 184, |
- | |
567 | 186, 188, 190, 192, 194, 196, 198, 200, 202, 204, |
- | |
568 | 206, 208, 210, 212, 214, 216, 218, 220, 223, 226, |
- | |
569 | 230, 234, 236, 237, 240, 241, 244, 245, 248, 249, |
- | |
570 | 253, 254, 256, 259, 264, 266, 267, 269, 270, 272 |
- | |
571 | }; |
- | |
572 | - | ||
573 | /* YYRHS -- A `-1'-separated list of the rules' RHS. */ |
- | |
574 | static const yytype_int8 yyrhs[] = |
- | |
575 | { |
- | |
576 | 36, 0, -1, 36, 37, -1, 37, -1, 3, 52, |
- | |
577 | 56, -1, 4, 52, 56, -1, 5, 29, -1, 6, |
- | |
578 | 60, 48, -1, 7, 60, 48, -1, 8, 46, -1, |
- | |
579 | 9, 46, -1, 11, 44, -1, 12, 38, -1, 13, |
- | |
580 | 42, -1, 14, 60, -1, 14, 60, 31, 60, -1, |
- | |
581 | 27, 29, -1, 20, 57, 32, 60, -1, -1, 39, |
- | |
582 | -1, 38, 39, -1, 51, 55, 54, 47, 40, 47, |
- | |
583 | 53, -1, 41, 47, 40, -1, -1, 25, -1, 26, |
- | |
584 | -1, 16, -1, 17, -1, 9, -1, 10, -1, 18, |
- | |
585 | -1, 19, -1, 42, 43, -1, 43, -1, 29, 33, |
- | |
586 | 29, 31, 29, 31, 29, 53, -1, 29, 33, 29, |
- | |
587 | 31, 29, 31, 60, 53, -1, 29, 33, 29, 31, |
- | |
588 | 29, 53, -1, 29, 33, 29, 31, 60, 53, -1, |
- | |
589 | 29, 31, 29, 31, 29, 53, -1, 29, 31, 29, |
- | |
590 | 53, -1, 44, 45, -1, 45, -1, 29, 46, -1, |
- | |
591 | 29, 29, -1, 46, 47, 49, -1, 49, -1, 32, |
- | |
592 | -1, -1, 32, 60, -1, -1, 21, -1, 22, -1, |
- | |
593 | 23, -1, 24, -1, 15, -1, 8, -1, 16, -1, |
- | |
594 | 17, -1, 9, -1, 10, -1, 5, -1, 27, -1, |
- | |
595 | 23, -1, 12, -1, 7, -1, 13, -1, 3, -1, |
- | |
596 | 25, -1, 26, -1, 18, -1, 19, -1, 21, -1, |
- | |
597 | 24, -1, 6, -1, 14, -1, 22, -1, 29, -1, |
- | |
598 | 31, 50, -1, 31, 51, -1, 50, 31, 51, -1, |
- | |
599 | 29, 31, 51, -1, 51, -1, -1, 28, 29, -1, |
- | |
600 | -1, 34, 60, -1, -1, 33, 51, -1, -1, 15, |
- | |
601 | 33, 61, -1, -1, 29, -1, 31, 29, -1, 57, |
- | |
602 | 31, 58, 59, -1, 30, -1, -1, 29, -1, -1, |
- | |
603 | 30, -1, 30, -1 |
- | |
604 | }; |
- | |
605 | 577 | #if YYDEBUG |
|
606 | /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ |
578 | /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ |
607 | static const yytype_uint16 yyrline[] = |
579 | static const yytype_uint16 yyrline[] = |
608 | { |
580 | { |
609 | 0, 139, 139, 140, 144, 145, 146, 147, 148, 149, |
581 | 0, 138, 138, 139, 143, 144, 145, 146, 147, 148, |
610 | 150, 151, 152, 153, 154, 155, 156, 157, 161, 163, |
582 | 149, 150, 151, 152, 153, 154, 155, 156, 160, 162, |
611 | 164, 171, 178, 179, 182, 183, 184, 185, 186, 187, |
583 | 163, 170, 177, 178, 181, 182, 183, 184, 185, 186, |
612 | 188, 189, 192, 193, 197, 199, 201, 203, 205, 207, |
584 | 187, 188, 191, 192, 196, 198, 200, 202, 204, 206, |
613 | 212, 213, 217, 218, 222, 223, 227, 228, 230, 231, |
585 | 211, 212, 216, 217, 221, 222, 226, 227, 229, 230, |
614 | 235, 236, 237, 238, 242, 243, 244, 245, 246, 247, |
586 | 234, 235, 236, 237, 241, 242, 243, 244, 245, 246, |
615 | 248, 249, 250, 251, 252, 253, 260, 261, 262, 263, |
587 | 247, 248, 249, 250, 251, 252, 259, 260, 261, 262, |
616 | 264, 265, 266, 267, 268, 269, 272, 273, 279, 285, |
588 | 263, 264, 265, 266, 267, 268, 271, 272, 278, 284, |
617 | 291, 299, 300, 303, 304, 308, 309, 313, 314, 317, |
589 | 290, 298, 299, 302, 303, 307, 308, 312, 313, 316, |
618 | 318, 321, 322, 328, 336, 337, 340, 341, 344, 346 |
590 | 317, 320, 321, 327, 335, 336, 339, 340, 343, 345 |
619 | }; |
591 | }; |
Line 620... | Line 592... | ||
620 | #endif |
592 | #endif |
621 | 593 | ||
622 | #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE |
594 | #if YYDEBUG || YYERROR_VERBOSE || 0 |
623 | /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
595 | /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
624 | First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
596 | First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
625 | static const char *const yytname[] = |
597 | static const char *const yytname[] = |
Line 632... | Line 604... | ||
632 | "'.'", "','", "'='", "'@'", "$accept", "start", "command", "explist", |
604 | "'.'", "','", "'='", "'@'", "$accept", "start", "command", "explist", |
633 | "expline", "exp_opt_list", "exp_opt", "implist", "impline", "seclist", |
605 | "expline", "exp_opt_list", "exp_opt", "implist", "impline", "seclist", |
634 | "secline", "attr_list", "opt_comma", "opt_number", "attr", |
606 | "secline", "attr_list", "opt_comma", "opt_number", "attr", |
635 | "keyword_as_name", "opt_name2", "opt_name", "opt_equalequal_name", |
607 | "keyword_as_name", "opt_name2", "opt_name", "opt_equalequal_name", |
636 | "opt_ordinal", "opt_equal_name", "opt_base", "anylang_id", "opt_digits", |
608 | "opt_ordinal", "opt_equal_name", "opt_base", "anylang_id", "opt_digits", |
637 | "opt_id", "NUMBER", "VMA", 0 |
609 | "opt_id", "NUMBER", "VMA", YY_NULL |
638 | }; |
610 | }; |
639 | #endif |
611 | #endif |
Line 640... | Line 612... | ||
640 | 612 | ||
641 | # ifdef YYPRINT |
613 | # ifdef YYPRINT |
642 | /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to |
614 | /* YYTOKNUM[NUM] -- (External) token number corresponding to the |
643 | token YYLEX-NUM. */ |
615 | (internal) symbol number NUM (which must be that of a token). */ |
644 | static const yytype_uint16 yytoknum[] = |
616 | static const yytype_uint16 yytoknum[] = |
645 | { |
617 | { |
646 | 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, |
618 | 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, |
647 | 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, |
619 | 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, |
648 | 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, |
620 | 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, |
649 | 285, 46, 44, 61, 64 |
621 | 285, 46, 44, 61, 64 |
650 | }; |
622 | }; |
Line 651... | Line -... | ||
651 | # endif |
- | |
652 | 623 | # endif |
|
653 | /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ |
- | |
654 | static const yytype_uint8 yyr1[] = |
- | |
655 | { |
- | |
656 | 0, 35, 36, 36, 37, 37, 37, 37, 37, 37, |
- | |
657 | 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, |
- | |
658 | 38, 39, 40, 40, 41, 41, 41, 41, 41, 41, |
- | |
659 | 41, 41, 42, 42, 43, 43, 43, 43, 43, 43, |
- | |
660 | 44, 44, 45, 45, 46, 46, 47, 47, 48, 48, |
- | |
661 | 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, |
- | |
662 | 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, |
- | |
663 | 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, |
- | |
664 | 51, 52, 52, 53, 53, 54, 54, 55, 55, 56, |
- | |
Line 665... | Line 624... | ||
665 | 56, 57, 57, 57, 58, 58, 59, 59, 60, 61 |
624 | |
666 | }; |
625 | #define YYPACT_NINF -82 |
667 | - | ||
668 | /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ |
- | |
669 | static const yytype_uint8 yyr2[] = |
- | |
670 | { |
- | |
671 | 0, 2, 2, 1, 3, 3, 2, 3, 3, 2, |
- | |
672 | 2, 2, 2, 2, 2, 4, 2, 4, 0, 1, |
- | |
673 | 2, 7, 3, 0, 1, 1, 1, 1, 1, 1, |
- | |
674 | 1, 1, 2, 1, 8, 8, 6, 6, 6, 4, |
- | |
675 | 2, 1, 2, 2, 3, 1, 1, 0, 2, 0, |
- | |
676 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
- | |
677 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
- | |
678 | 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, |
- | |
Line 679... | Line -... | ||
679 | 3, 1, 0, 2, 0, 2, 0, 2, 0, 3, |
- | |
680 | 0, 1, 2, 4, 1, 0, 1, 0, 1, 1 |
- | |
681 | }; |
626 | |
682 | - | ||
683 | /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state |
- | |
684 | STATE-NUM when YYTABLE doesn't specify something else to do. Zero |
- | |
685 | means the default is an error. */ |
- | |
686 | static const yytype_uint8 yydefact[] = |
- | |
687 | { |
- | |
688 | 0, 82, 82, 0, 0, 0, 0, 0, 0, 18, |
- | |
689 | 0, 0, 0, 0, 0, 3, 66, 60, 73, 64, |
- | |
690 | 55, 58, 59, 63, 65, 74, 54, 56, 57, 69, |
- | |
691 | 70, 71, 75, 62, 72, 67, 68, 61, 76, 0, |
- | |
692 | 0, 81, 90, 90, 6, 98, 49, 49, 50, 51, |
- | |
693 | 52, 53, 9, 45, 10, 0, 11, 41, 12, 19, |
- | |
694 | 88, 0, 13, 33, 14, 91, 0, 0, 16, 1, |
- | |
695 | 2, 0, 77, 78, 0, 0, 4, 5, 0, 7, |
- | |
696 | 8, 46, 0, 43, 42, 40, 20, 0, 86, 0, |
- | |
697 | 0, 32, 0, 92, 95, 0, 80, 79, 0, 48, |
- | |
698 | 44, 87, 0, 47, 84, 0, 15, 94, 97, 17, |
- | |
699 | 99, 89, 85, 23, 0, 0, 39, 0, 96, 93, |
- | |
Line 700... | Line -... | ||
700 | 28, 29, 26, 27, 30, 31, 24, 25, 47, 47, |
- | |
701 | 83, 84, 84, 84, 84, 23, 38, 0, 36, 37, |
627 | #define yypact_value_is_default(Yystate) \ |
702 | 21, 22, 84, 84, 34, 35 |
- | |
703 | }; |
- | |
704 | - | ||
705 | /* YYDEFGOTO[NTERM-NUM]. */ |
- | |
706 | static const yytype_int16 yydefgoto[] = |
628 | (!!((Yystate) == (-82))) |
Line 707... | Line 629... | ||
707 | { |
629 | |
708 | -1, 14, 15, 58, 59, 128, 129, 62, 63, 56, |
630 | #define YYTABLE_NINF -48 |
709 | 57, 52, 82, 79, 53, 40, 41, 42, 116, 103, |
- | |
710 | 88, 76, 67, 108, 119, 46, 111 |
631 | |
711 | }; |
632 | #define yytable_value_is_error(Yytable_value) \ |
712 | 633 | 0 |
|
713 | /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing |
634 | |
714 | STATE-NUM. */ |
635 | /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing |
Line 730... | Line 651... | ||
730 | -82, -82, -82, -82, -82, -82, -82, -82, 79, 79, |
651 | -82, -82, -82, -82, -82, -82, -82, -82, 79, 79, |
731 | -82, 92, 13, 92, 92, 36, -82, 59, -82, -82, |
652 | -82, 92, 13, 92, 92, 36, -82, 59, -82, -82, |
732 | -82, -82, 92, 92, -82, -82 |
653 | -82, -82, 92, 92, -82, -82 |
733 | }; |
654 | }; |
Line -... | Line 655... | ||
- | 655 | ||
- | 656 | /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. |
|
- | 657 | Performed when YYTABLE does not specify something else to do. Zero |
|
- | 658 | means the default is an error. */ |
|
- | 659 | static const yytype_uint8 yydefact[] = |
|
- | 660 | { |
|
- | 661 | 0, 82, 82, 0, 0, 0, 0, 0, 0, 18, |
|
- | 662 | 0, 0, 0, 0, 0, 3, 66, 60, 73, 64, |
|
- | 663 | 55, 58, 59, 63, 65, 74, 54, 56, 57, 69, |
|
- | 664 | 70, 71, 75, 62, 72, 67, 68, 61, 76, 0, |
|
- | 665 | 0, 81, 90, 90, 6, 98, 49, 49, 50, 51, |
|
- | 666 | 52, 53, 9, 45, 10, 0, 11, 41, 12, 19, |
|
- | 667 | 88, 0, 13, 33, 14, 91, 0, 0, 16, 1, |
|
- | 668 | 2, 0, 77, 78, 0, 0, 4, 5, 0, 7, |
|
- | 669 | 8, 46, 0, 43, 42, 40, 20, 0, 86, 0, |
|
- | 670 | 0, 32, 0, 92, 95, 0, 80, 79, 0, 48, |
|
- | 671 | 44, 87, 0, 47, 84, 0, 15, 94, 97, 17, |
|
- | 672 | 99, 89, 85, 23, 0, 0, 39, 0, 96, 93, |
|
- | 673 | 28, 29, 26, 27, 30, 31, 24, 25, 47, 47, |
|
- | 674 | 83, 84, 84, 84, 84, 23, 38, 0, 36, 37, |
|
- | 675 | 21, 22, 84, 84, 34, 35 |
|
- | 676 | }; |
|
734 | 677 | ||
735 | /* YYPGOTO[NTERM-NUM]. */ |
678 | /* YYPGOTO[NTERM-NUM]. */ |
736 | static const yytype_int16 yypgoto[] = |
679 | static const yytype_int16 yypgoto[] = |
737 | { |
680 | { |
738 | -82, -82, 107, -82, 65, -11, -82, -82, 75, -82, |
681 | -82, -82, 107, -82, 65, -11, -82, -82, 75, -82, |
739 | 82, -4, -81, 93, 57, 102, -8, 141, -75, -82, |
682 | 82, -4, -81, 93, 57, 102, -8, 141, -75, -82, |
740 | -82, 101, -82, -82, -82, -5, -82 |
683 | -82, 101, -82, -82, -82, -5, -82 |
Line -... | Line 684... | ||
- | 684 | }; |
|
- | 685 | ||
- | 686 | /* YYDEFGOTO[NTERM-NUM]. */ |
|
- | 687 | static const yytype_int16 yydefgoto[] = |
|
- | 688 | { |
|
- | 689 | -1, 14, 15, 58, 59, 128, 129, 62, 63, 56, |
|
- | 690 | 57, 52, 82, 79, 53, 40, 41, 42, 116, 103, |
|
- | 691 | 88, 76, 67, 108, 119, 46, 111 |
|
741 | }; |
692 | }; |
742 | 693 | ||
743 | /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If |
694 | /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If |
744 | positive, shift that token. If negative, reduce the rule which |
- | |
745 | number is the opposite. If zero, do what YYDEFACT says. |
- | |
746 | If YYTABLE_NINF, syntax error. */ |
695 | positive, shift that token. If negative, reduce the rule whose |
747 | #define YYTABLE_NINF -48 |
696 | number is the opposite. If YYTABLE_NINF, syntax error. */ |
748 | static const yytype_int16 yytable[] = |
697 | static const yytype_int16 yytable[] = |
749 | { |
698 | { |
750 | 47, 60, 114, 54, 44, 115, 64, 48, 49, 50, |
699 | 47, 60, 114, 54, 44, 115, 64, 48, 49, 50, |
Line 802... | Line 751... | ||
802 | 9, 10, 16, 17, 18, 19, 25, 26, 40, 41, |
751 | 9, 10, 16, 17, 18, 19, 25, 26, 40, 41, |
803 | 29, 29, 29, 60, 47, 47, 53, 31, 53, 53, |
752 | 29, 29, 29, 60, 47, 47, 53, 31, 53, 53, |
804 | 53, 40, 29, 60, 53, 53 |
753 | 53, 40, 29, 60, 53, 53 |
805 | }; |
754 | }; |
Line -... | Line 755... | ||
- | 755 | ||
- | 756 | /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ |
|
- | 757 | static const yytype_uint8 yyr1[] = |
|
- | 758 | { |
|
- | 759 | 0, 35, 36, 36, 37, 37, 37, 37, 37, 37, |
|
- | 760 | 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, |
|
- | 761 | 38, 39, 40, 40, 41, 41, 41, 41, 41, 41, |
|
- | 762 | 41, 41, 42, 42, 43, 43, 43, 43, 43, 43, |
|
- | 763 | 44, 44, 45, 45, 46, 46, 47, 47, 48, 48, |
|
- | 764 | 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, |
|
- | 765 | 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, |
|
- | 766 | 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, |
|
- | 767 | 51, 52, 52, 53, 53, 54, 54, 55, 55, 56, |
|
- | 768 | 56, 57, 57, 57, 58, 58, 59, 59, 60, 61 |
|
- | 769 | }; |
|
- | 770 | ||
- | 771 | /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ |
|
- | 772 | static const yytype_uint8 yyr2[] = |
|
- | 773 | { |
|
- | 774 | 0, 2, 2, 1, 3, 3, 2, 3, 3, 2, |
|
- | 775 | 2, 2, 2, 2, 2, 4, 2, 4, 0, 1, |
|
- | 776 | 2, 7, 3, 0, 1, 1, 1, 1, 1, 1, |
|
- | 777 | 1, 1, 2, 1, 8, 8, 6, 6, 6, 4, |
|
- | 778 | 2, 1, 2, 2, 3, 1, 1, 0, 2, 0, |
|
- | 779 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
|
- | 780 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
|
- | 781 | 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, |
|
- | 782 | 3, 1, 0, 2, 0, 2, 0, 2, 0, 3, |
|
- | 783 | 0, 1, 2, 4, 1, 0, 1, 0, 1, 1 |
|
- | 784 | }; |
|
- | 785 | ||
806 | 786 | ||
807 | #define yyerrok (yyerrstatus = 0) |
787 | #define yyerrok (yyerrstatus = 0) |
808 | #define yyclearin (yychar = YYEMPTY) |
788 | #define yyclearin (yychar = YYEMPTY) |
809 | #define YYEMPTY (-2) |
789 | #define YYEMPTY (-2) |
Line 810... | Line 790... | ||
810 | #define YYEOF 0 |
790 | #define YYEOF 0 |
811 | 791 | ||
812 | #define YYACCEPT goto yyacceptlab |
792 | #define YYACCEPT goto yyacceptlab |
Line 813... | Line -... | ||
813 | #define YYABORT goto yyabortlab |
- | |
814 | #define YYERROR goto yyerrorlab |
- | |
815 | - | ||
816 | - | ||
817 | /* Like YYERROR except do call yyerror. This remains here temporarily |
- | |
818 | to ease the transition to the new meaning of YYERROR, for GCC. |
- | |
819 | Once GCC version 2 has supplanted version 1, this can go. */ |
793 | #define YYABORT goto yyabortlab |
Line 820... | Line 794... | ||
820 | 794 | #define YYERROR goto yyerrorlab |
|
821 | #define YYFAIL goto yyerrlab |
795 | |
822 | 796 | ||
823 | #define YYRECOVERING() (!!yyerrstatus) |
797 | #define YYRECOVERING() (!!yyerrstatus) |
824 | 798 | ||
825 | #define YYBACKUP(Token, Value) \ |
799 | #define YYBACKUP(Token, Value) \ |
826 | do \ |
800 | do \ |
827 | if (yychar == YYEMPTY && yylen == 1) \ |
801 | if (yychar == YYEMPTY) \ |
828 | { \ |
802 | { \ |
829 | yychar = (Token); \ |
803 | yychar = (Token); \ |
830 | yylval = (Value); \ |
804 | yylval = (Value); \ |
831 | yytoken = YYTRANSLATE (yychar); \ |
805 | YYPOPSTACK (yylen); \ |
832 | YYPOPSTACK (1); \ |
806 | yystate = *yyssp; \ |
833 | goto yybackup; \ |
807 | goto yybackup; \ |
834 | } \ |
808 | } \ |
835 | else \ |
809 | else \ |
836 | { \ |
- | |
Line -... | Line 810... | ||
- | 810 | { \ |
|
837 | yyerror (YY_("syntax error: cannot back up")); \ |
811 | yyerror (YY_("syntax error: cannot back up")); \ |
838 | YYERROR; \ |
812 | YYERROR; \ |
Line 839... | Line -... | ||
839 | } \ |
- | |
840 | while (YYID (0)) |
- | |
841 | - | ||
842 | - | ||
843 | #define YYTERROR 1 |
- | |
844 | #define YYERRCODE 256 |
- | |
845 | - | ||
846 | - | ||
847 | /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. |
- | |
848 | If N is 0, then set CURRENT to the empty location which ends |
- | |
849 | the previous symbol: RHS[0] (always defined). */ |
- | |
850 | - | ||
851 | #define YYRHSLOC(Rhs, K) ((Rhs)[K]) |
- | |
852 | #ifndef YYLLOC_DEFAULT |
- | |
853 | # define YYLLOC_DEFAULT(Current, Rhs, N) \ |
- | |
854 | do \ |
- | |
855 | if (YYID (N)) \ |
- | |
856 | { \ |
- | |
857 | (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ |
- | |
858 | (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ |
- | |
859 | (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ |
- | |
860 | (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ |
- | |
861 | } \ |
- | |
862 | else \ |
- | |
863 | { \ |
- | |
864 | (Current).first_line = (Current).last_line = \ |
- | |
865 | YYRHSLOC (Rhs, 0).last_line; \ |
- | |
866 | (Current).first_column = (Current).last_column = \ |
- | |
867 | YYRHSLOC (Rhs, 0).last_column; \ |
- | |
868 | } \ |
- | |
869 | while (YYID (0)) |
- | |
870 | #endif |
- | |
871 | - | ||
872 | - | ||
873 | /* YY_LOCATION_PRINT -- Print the location on the stream. |
- | |
874 | This macro was not mandated originally: define only if we know |
- | |
875 | we won't break user code: when these are the locations we know. */ |
- | |
876 | - | ||
877 | #ifndef YY_LOCATION_PRINT |
- | |
878 | # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL |
- | |
879 | # define YY_LOCATION_PRINT(File, Loc) \ |
- | |
880 | fprintf (File, "%d.%d-%d.%d", \ |
- | |
881 | (Loc).first_line, (Loc).first_column, \ |
- | |
882 | (Loc).last_line, (Loc).last_column) |
- | |
883 | # else |
- | |
884 | # define YY_LOCATION_PRINT(File, Loc) ((void) 0) |
- | |
885 | # endif |
- | |
886 | #endif |
- | |
887 | - | ||
Line 888... | Line 813... | ||
888 | 813 | } \ |
|
889 | /* YYLEX -- calling `yylex' with the right arguments. */ |
814 | while (0) |
Line 890... | Line 815... | ||
890 | 815 | ||
Line 904... | Line 829... | ||
904 | 829 | ||
905 | # define YYDPRINTF(Args) \ |
830 | # define YYDPRINTF(Args) \ |
906 | do { \ |
831 | do { \ |
907 | if (yydebug) \ |
832 | if (yydebug) \ |
908 | YYFPRINTF Args; \ |
833 | YYFPRINTF Args; \ |
- | 834 | } while (0) |
|
- | 835 | ||
- | 836 | /* This macro is provided for backward compatibility. */ |
|
- | 837 | #ifndef YY_LOCATION_PRINT |
|
- | 838 | # define YY_LOCATION_PRINT(File, Loc) ((void) 0) |
|
- | 839 | #endif |
|
Line 909... | Line 840... | ||
909 | } while (YYID (0)) |
840 | |
910 | 841 | ||
911 | # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ |
842 | # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ |
912 | do { \ |
843 | do { \ |
913 | if (yydebug) \ |
844 | if (yydebug) \ |
914 | { \ |
845 | { \ |
915 | YYFPRINTF (stderr, "%s ", Title); \ |
846 | YYFPRINTF (stderr, "%s ", Title); \ |
916 | yy_symbol_print (stderr, \ |
847 | yy_symbol_print (stderr, \ |
917 | Type, Value); \ |
848 | Type, Value); \ |
918 | YYFPRINTF (stderr, "\n"); \ |
849 | YYFPRINTF (stderr, "\n"); \ |
Line 919... | Line 850... | ||
919 | } \ |
850 | } \ |
920 | } while (YYID (0)) |
851 | } while (0) |
921 | 852 | ||
Line 922... | Line -... | ||
922 | - | ||
923 | /*--------------------------------. |
- | |
924 | | Print this symbol on YYOUTPUT. | |
- | |
925 | `--------------------------------*/ |
853 | |
926 | 854 | /*----------------------------------------. |
|
927 | /*ARGSUSED*/ |
- | |
928 | #if (defined __STDC__ || defined __C99__FUNC__ \ |
- | |
929 | || defined __cplusplus || defined _MSC_VER) |
- | |
930 | static void |
- | |
931 | yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) |
- | |
932 | #else |
- | |
933 | static void |
- | |
934 | yy_symbol_value_print (yyoutput, yytype, yyvaluep) |
855 | | Print this symbol's value on YYOUTPUT. | |
- | 856 | `----------------------------------------*/ |
|
- | 857 | ||
935 | FILE *yyoutput; |
858 | static void |
936 | int yytype; |
859 | yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) |
937 | YYSTYPE const * const yyvaluep; |
860 | { |
938 | #endif |
861 | FILE *yyo = yyoutput; |
939 | { |
862 | YYUSE (yyo); |
940 | if (!yyvaluep) |
- | |
941 | return; |
- | |
942 | # ifdef YYPRINT |
863 | if (!yyvaluep) |
943 | if (yytype < YYNTOKENS) |
864 | return; |
944 | YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); |
- | |
945 | # else |
- | |
946 | YYUSE (yyoutput); |
- | |
947 | # endif |
- | |
948 | switch (yytype) |
865 | # ifdef YYPRINT |
Line 949... | Line 866... | ||
949 | { |
866 | if (yytype < YYNTOKENS) |
950 | default: |
867 | YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); |
951 | break; |
868 | # endif |
Line 952... | Line -... | ||
952 | } |
- | |
953 | } |
- | |
954 | 869 | YYUSE (yytype); |
|
955 | 870 | } |
|
956 | /*--------------------------------. |
- | |
957 | | Print this symbol on YYOUTPUT. | |
- | |
958 | `--------------------------------*/ |
- | |
959 | - | ||
960 | #if (defined __STDC__ || defined __C99__FUNC__ \ |
- | |
961 | || defined __cplusplus || defined _MSC_VER) |
- | |
962 | static void |
- | |
963 | yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) |
871 | |
964 | #else |
- | |
965 | static void |
872 | |
966 | yy_symbol_print (yyoutput, yytype, yyvaluep) |
- | |
967 | FILE *yyoutput; |
873 | /*--------------------------------. |
Line 968... | Line 874... | ||
968 | int yytype; |
874 | | Print this symbol on YYOUTPUT. | |
969 | YYSTYPE const * const yyvaluep; |
875 | `--------------------------------*/ |
970 | #endif |
876 | |
Line 971... | Line 877... | ||
971 | { |
877 | static void |
972 | if (yytype < YYNTOKENS) |
878 | yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) |
973 | YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); |
879 | { |
974 | else |
880 | YYFPRINTF (yyoutput, "%s %s (", |
Line 975... | Line -... | ||
975 | YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); |
- | |
976 | - | ||
977 | yy_symbol_value_print (yyoutput, yytype, yyvaluep); |
- | |
978 | YYFPRINTF (yyoutput, ")"); |
- | |
979 | } |
- | |
980 | 881 | yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); |
|
981 | /*------------------------------------------------------------------. |
882 | |
982 | | yy_stack_print -- Print the state stack from its BOTTOM up to its | |
- | |
983 | | TOP (included). | |
- | |
984 | `------------------------------------------------------------------*/ |
- | |
985 | 883 | yy_symbol_value_print (yyoutput, yytype, yyvaluep); |
|
986 | #if (defined __STDC__ || defined __C99__FUNC__ \ |
884 | YYFPRINTF (yyoutput, ")"); |
987 | || defined __cplusplus || defined _MSC_VER) |
885 | } |
- | 886 | ||
- | 887 | /*------------------------------------------------------------------. |
|
988 | static void |
888 | | yy_stack_print -- Print the state stack from its BOTTOM up to its | |
- | 889 | | TOP (included). | |
|
989 | yy_stack_print (yytype_int16 *bottom, yytype_int16 *top) |
890 | `------------------------------------------------------------------*/ |
990 | #else |
891 | |
Line 991... | Line 892... | ||
991 | static void |
892 | static void |
992 | yy_stack_print (bottom, top) |
893 | yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) |
993 | yytype_int16 *bottom; |
894 | { |
994 | yytype_int16 *top; |
895 | YYFPRINTF (stderr, "Stack now"); |
995 | #endif |
896 | for (; yybottom <= yytop; yybottom++) |
Line 996... | Line 897... | ||
996 | { |
897 | { |
997 | YYFPRINTF (stderr, "Stack now"); |
898 | int yybot = *yybottom; |
998 | for (; bottom <= top; ++bottom) |
899 | YYFPRINTF (stderr, " %d", yybot); |
Line 999... | Line -... | ||
999 | YYFPRINTF (stderr, " %d", *bottom); |
- | |
1000 | YYFPRINTF (stderr, "\n"); |
- | |
1001 | } |
900 | } |
1002 | 901 | YYFPRINTF (stderr, "\n"); |
|
1003 | # define YY_STACK_PRINT(Bottom, Top) \ |
- | |
1004 | do { \ |
- | |
1005 | if (yydebug) \ |
- | |
1006 | yy_stack_print ((Bottom), (Top)); \ |
- | |
1007 | } while (YYID (0)) |
- | |
1008 | - | ||
1009 | 902 | } |
|
- | 903 | ||
1010 | /*------------------------------------------------. |
904 | # define YY_STACK_PRINT(Bottom, Top) \ |
1011 | | Report that the YYRULE is going to be reduced. | |
905 | do { \ |
1012 | `------------------------------------------------*/ |
- | |
1013 | 906 | if (yydebug) \ |
|
1014 | #if (defined __STDC__ || defined __C99__FUNC__ \ |
907 | yy_stack_print ((Bottom), (Top)); \ |
1015 | || defined __cplusplus || defined _MSC_VER) |
908 | } while (0) |
1016 | static void |
909 | |
1017 | yy_reduce_print (YYSTYPE *yyvsp, int yyrule) |
910 | |
1018 | #else |
911 | /*------------------------------------------------. |
1019 | static void |
912 | | Report that the YYRULE is going to be reduced. | |
- | 913 | `------------------------------------------------*/ |
|
1020 | yy_reduce_print (yyvsp, yyrule) |
914 | |
1021 | YYSTYPE *yyvsp; |
915 | static void |
1022 | int yyrule; |
916 | yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule) |
1023 | #endif |
917 | { |
1024 | { |
918 | unsigned long int yylno = yyrline[yyrule]; |
Line 1025... | Line 919... | ||
1025 | int yynrhs = yyr2[yyrule]; |
919 | int yynrhs = yyr2[yyrule]; |
1026 | int yyi; |
920 | int yyi; |
1027 | unsigned long int yylno = yyrline[yyrule]; |
921 | YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", |
1028 | YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", |
922 | yyrule - 1, yylno); |
1029 | yyrule - 1, yylno); |
923 | /* The symbols being reduced. */ |
Line 1030... | Line 924... | ||
1030 | /* The symbols being reduced. */ |
924 | for (yyi = 0; yyi < yynrhs; yyi++) |
1031 | for (yyi = 0; yyi < yynrhs; yyi++) |
925 | { |
1032 | { |
926 | YYFPRINTF (stderr, " $%d = ", yyi + 1); |
1033 | fprintf (stderr, " $%d = ", yyi + 1); |
927 | yy_symbol_print (stderr, |
Line 1070... | Line 964... | ||
1070 | #ifndef YYMAXDEPTH |
964 | #ifndef YYMAXDEPTH |
1071 | # define YYMAXDEPTH 10000 |
965 | # define YYMAXDEPTH 10000 |
1072 | #endif |
966 | #endif |
Line 1073... | Line 967... | ||
1073 | 967 | ||
1074 | - | ||
1075 | 968 | ||
Line 1076... | Line 969... | ||
1076 | #if YYERROR_VERBOSE |
969 | #if YYERROR_VERBOSE |
1077 | 970 | ||
1078 | # ifndef yystrlen |
971 | # ifndef yystrlen |
1079 | # if defined __GLIBC__ && defined _STRING_H |
972 | # if defined __GLIBC__ && defined _STRING_H |
1080 | # define yystrlen strlen |
973 | # define yystrlen strlen |
1081 | # else |
- | |
1082 | /* Return the length of YYSTR. */ |
- | |
1083 | #if (defined __STDC__ || defined __C99__FUNC__ \ |
974 | # else |
1084 | || defined __cplusplus || defined _MSC_VER) |
975 | /* Return the length of YYSTR. */ |
1085 | static YYSIZE_T |
- | |
1086 | yystrlen (const char *yystr) |
- | |
1087 | #else |
- | |
1088 | static YYSIZE_T |
- | |
1089 | yystrlen (yystr) |
- | |
1090 | const char *yystr; |
976 | static YYSIZE_T |
1091 | #endif |
977 | yystrlen (const char *yystr) |
1092 | { |
978 | { |
1093 | YYSIZE_T yylen; |
979 | YYSIZE_T yylen; |
1094 | for (yylen = 0; yystr[yylen]; yylen++) |
980 | for (yylen = 0; yystr[yylen]; yylen++) |
Line 1102... | Line 988... | ||
1102 | # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE |
988 | # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE |
1103 | # define yystpcpy stpcpy |
989 | # define yystpcpy stpcpy |
1104 | # else |
990 | # else |
1105 | /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in |
991 | /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in |
1106 | YYDEST. */ |
992 | YYDEST. */ |
1107 | #if (defined __STDC__ || defined __C99__FUNC__ \ |
- | |
1108 | || defined __cplusplus || defined _MSC_VER) |
- | |
1109 | static char * |
993 | static char * |
1110 | yystpcpy (char *yydest, const char *yysrc) |
994 | yystpcpy (char *yydest, const char *yysrc) |
1111 | #else |
- | |
1112 | static char * |
- | |
1113 | yystpcpy (yydest, yysrc) |
- | |
1114 | char *yydest; |
- | |
1115 | const char *yysrc; |
- | |
1116 | #endif |
- | |
1117 | { |
995 | { |
1118 | char *yyd = yydest; |
996 | char *yyd = yydest; |
1119 | const char *yys = yysrc; |
997 | const char *yys = yysrc; |
Line 1120... | Line 998... | ||
1120 | 998 | ||
Line 1172... | Line 1050... | ||
1172 | 1050 | ||
1173 | return yystpcpy (yyres, yystr) - yyres; |
1051 | return yystpcpy (yyres, yystr) - yyres; |
1174 | } |
1052 | } |
Line 1175... | Line 1053... | ||
1175 | # endif |
1053 | # endif |
1176 | 1054 | ||
- | 1055 | /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message |
|
- | 1056 | about the unexpected token YYTOKEN for the state stack whose top is |
|
1177 | /* Copy into YYRESULT an error message about the unexpected token |
1057 | YYSSP. |
1178 | YYCHAR while in state YYSTATE. Return the number of bytes copied, |
1058 | |
1179 | including the terminating null byte. If YYRESULT is null, do not |
1059 | Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is |
1180 | copy anything; just return the number of bytes that would be |
1060 | not large enough to hold the message. In that case, also set |
1181 | copied. As a special case, return 0 if an ordinary "syntax error" |
- | |
1182 | message will do. Return YYSIZE_MAXIMUM if overflow occurs during |
1061 | *YYMSG_ALLOC to the required number of bytes. Return 2 if the |
1183 | size calculation. */ |
1062 | required number of bytes is too large to store. */ |
1184 | static YYSIZE_T |
- | |
1185 | yysyntax_error (char *yyresult, int yystate, int yychar) |
- | |
1186 | { |
- | |
1187 | int yyn = yypact[yystate]; |
1063 | static int |
1188 | - | ||
1189 | if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) |
- | |
1190 | return 0; |
1064 | yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, |
1191 | else |
- | |
1192 | { |
1065 | yytype_int16 *yyssp, int yytoken) |
1193 | int yytype = YYTRANSLATE (yychar); |
1066 | { |
1194 | YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); |
- | |
1195 | YYSIZE_T yysize = yysize0; |
- | |
1196 | YYSIZE_T yysize1; |
1067 | YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]); |
- | 1068 | YYSIZE_T yysize = yysize0; |
|
- | 1069 | enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; |
|
- | 1070 | /* Internationalized format string. */ |
|
1197 | int yysize_overflow = 0; |
1071 | const char *yyformat = YY_NULL; |
- | 1072 | /* Arguments of yyformat. */ |
|
- | 1073 | char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; |
|
1198 | enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; |
1074 | /* Number of reported tokens (one for the "unexpected", one per |
1199 | char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; |
1075 | "expected"). */ |
1200 | int yyx; |
1076 | int yycount = 0; |
1201 | 1077 | ||
1202 | # if 0 |
1078 | /* There are many possibilities here to consider: |
- | 1079 | - If this state is a consistent state with a default action, then |
|
1203 | /* This is so xgettext sees the translatable formats that are |
1080 | the only way this function was invoked is if the default action |
1204 | constructed on the fly. */ |
1081 | is an error action. In that case, don't check for expected |
1205 | YY_("syntax error, unexpected %s"); |
1082 | tokens because there are none. |
1206 | YY_("syntax error, unexpected %s, expecting %s"); |
1083 | - The only way there can be no lookahead present (in yychar) is if |
1207 | YY_("syntax error, unexpected %s, expecting %s or %s"); |
1084 | this state is a consistent state with a default action. Thus, |
1208 | YY_("syntax error, unexpected %s, expecting %s or %s or %s"); |
- | |
1209 | YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); |
1085 | detecting the absence of a lookahead is sufficient to determine |
- | 1086 | that there is no unexpected or expected token to report. In that |
|
- | 1087 | case, just report a simple "syntax error". |
|
- | 1088 | - Don't assume there isn't a lookahead just because this state is a |
|
1210 | # endif |
1089 | consistent state with a default action. There might have been a |
1211 | char *yyfmt; |
1090 | previous inconsistent state, consistent state with a non-default |
- | 1091 | action, or user semantic action that manipulated yychar. |
|
1212 | char const *yyf; |
1092 | - Of course, the expected token list depends on states to have |
1213 | static char const yyunexpected[] = "syntax error, unexpected %s"; |
1093 | correct lookahead information, and it depends on the parser not |
1214 | static char const yyexpecting[] = ", expecting %s"; |
1094 | to perform extra reductions after fetching a lookahead from the |
- | 1095 | scanner and before detecting a syntax error. Thus, state merging |
|
- | 1096 | (from LALR or IELR) and default reductions corrupt the expected |
|
1215 | static char const yyor[] = " or %s"; |
1097 | token list. However, the list is correct for canonical LR with |
- | 1098 | one exception: it will still contain any token that will not be |
|
1216 | char yyformat[sizeof yyunexpected |
1099 | accepted due to an error action in a later state. |
- | 1100 | */ |
|
1217 | + sizeof yyexpecting - 1 |
1101 | if (yytoken != YYEMPTY) |
1218 | + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) |
1102 | { |
- | 1103 | int yyn = yypact[*yyssp]; |
|
1219 | * (sizeof yyor - 1))]; |
1104 | yyarg[yycount++] = yytname[yytoken]; |
1220 | char const *yyprefix = yyexpecting; |
1105 | if (!yypact_value_is_default (yyn)) |
1221 | 1106 | { |
|
- | 1107 | /* Start YYX at -YYN if negative to avoid negative indexes in |
|
1222 | /* Start YYX at -YYN if negative to avoid negative indexes in |
1108 | YYCHECK. In other words, skip the first -YYN actions for |
1223 | YYCHECK. */ |
- | |
1224 | int yyxbegin = yyn < 0 ? -yyn : 0; |
1109 | this state because they are default actions. */ |
1225 | 1110 | int yyxbegin = yyn < 0 ? -yyn : 0; |
|
1226 | /* Stay within bounds of both yycheck and yytname. */ |
1111 | /* Stay within bounds of both yycheck and yytname. */ |
1227 | int yychecklim = YYLAST - yyn + 1; |
1112 | int yychecklim = YYLAST - yyn + 1; |
1228 | int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; |
- | |
1229 | int yycount = 1; |
- | |
1230 | - | ||
Line 1231... | Line 1113... | ||
1231 | yyarg[0] = yytname[yytype]; |
1113 | int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; |
1232 | yyfmt = yystpcpy (yyformat, yyunexpected); |
1114 | int yyx; |
- | 1115 | ||
1233 | 1116 | for (yyx = yyxbegin; yyx < yyxend; ++yyx) |
|
1234 | for (yyx = yyxbegin; yyx < yyxend; ++yyx) |
1117 | if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR |
1235 | if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) |
1118 | && !yytable_value_is_error (yytable[yyx + yyn])) |
1236 | { |
1119 | { |
1237 | if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) |
1120 | if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) |
1238 | { |
- | |
1239 | yycount = 1; |
1121 | { |
1240 | yysize = yysize0; |
1122 | yycount = 1; |
1241 | yyformat[sizeof yyunexpected - 1] = '\0'; |
1123 | yysize = yysize0; |
- | 1124 | break; |
|
1242 | break; |
1125 | } |
1243 | } |
1126 | yyarg[yycount++] = yytname[yyx]; |
- | 1127 | { |
|
- | 1128 | YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]); |
|
1244 | yyarg[yycount++] = yytname[yyx]; |
1129 | if (! (yysize <= yysize1 |
1245 | yysize1 = yysize + yytnamerr (0, yytname[yyx]); |
1130 | && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
1246 | yysize_overflow |= (yysize1 < yysize); |
1131 | return 2; |
- | 1132 | yysize = yysize1; |
|
1247 | yysize = yysize1; |
1133 | } |
Line 1248... | Line 1134... | ||
1248 | yyfmt = yystpcpy (yyfmt, yyprefix); |
1134 | } |
- | 1135 | } |
|
- | 1136 | } |
|
1249 | yyprefix = yyor; |
1137 | |
1250 | } |
1138 | switch (yycount) |
1251 | 1139 | { |
|
- | 1140 | # define YYCASE_(N, S) \ |
|
- | 1141 | case N: \ |
|
- | 1142 | yyformat = S; \ |
|
- | 1143 | break |
|
- | 1144 | YYCASE_(0, YY_("syntax error")); |
|
- | 1145 | YYCASE_(1, YY_("syntax error, unexpected %s")); |
|
- | 1146 | YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); |
|
- | 1147 | YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); |
|
Line -... | Line 1148... | ||
- | 1148 | YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); |
|
- | 1149 | YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); |
|
- | 1150 | # undef YYCASE_ |
|
1252 | yyf = YY_(yyformat); |
1151 | } |
1253 | yysize1 = yysize + yystrlen (yyf); |
1152 | |
- | 1153 | { |
|
Line 1254... | Line 1154... | ||
1254 | yysize_overflow |= (yysize1 < yysize); |
1154 | YYSIZE_T yysize1 = yysize + yystrlen (yyformat); |
1255 | yysize = yysize1; |
1155 | if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
- | 1156 | return 2; |
|
- | 1157 | yysize = yysize1; |
|
- | 1158 | } |
|
- | 1159 | ||
- | 1160 | if (*yymsg_alloc < yysize) |
|
- | 1161 | { |
|
- | 1162 | *yymsg_alloc = 2 * yysize; |
|
1256 | 1163 | if (! (yysize <= *yymsg_alloc |
|
1257 | if (yysize_overflow) |
1164 | && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) |
1258 | return YYSIZE_MAXIMUM; |
1165 | *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; |
1259 | - | ||
1260 | if (yyresult) |
- | |
1261 | { |
- | |
1262 | /* Avoid sprintf, as that infringes on the user's name space. |
1166 | return 1; |
- | 1167 | } |
|
- | 1168 | ||
- | 1169 | /* Avoid sprintf, as that infringes on the user's name space. |
|
1263 | Don't have undefined behavior even if the translation |
1170 | Don't have undefined behavior even if the translation |
1264 | produced a string with the wrong number of "%s"s. */ |
1171 | produced a string with the wrong number of "%s"s. */ |
1265 | char *yyp = yyresult; |
1172 | { |
1266 | int yyi = 0; |
1173 | char *yyp = *yymsg; |
1267 | while ((*yyp = *yyf) != '\0') |
1174 | int yyi = 0; |
1268 | { |
1175 | while ((*yyp = *yyformat) != '\0') |
1269 | if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) |
1176 | if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) |
1270 | { |
1177 | { |
1271 | yyp += yytnamerr (yyp, yyarg[yyi++]); |
1178 | yyp += yytnamerr (yyp, yyarg[yyi++]); |
1272 | yyf += 2; |
1179 | yyformat += 2; |
1273 | } |
1180 | } |
1274 | else |
- | |
1275 | { |
1181 | else |
1276 | yyp++; |
- | |
1277 | yyf++; |
1182 | { |
1278 | } |
1183 | yyp++; |
1279 | } |
1184 | yyformat++; |
1280 | } |
- | |
1281 | return yysize; |
1185 | } |
1282 | } |
1186 | } |
1283 | } |
1187 | return 0; |
Line 1284... | Line -... | ||
1284 | #endif /* YYERROR_VERBOSE */ |
- | |
1285 | - | ||
1286 | - | ||
1287 | /*-----------------------------------------------. |
1188 | } |
1288 | | Release the memory associated to this symbol. | |
1189 | #endif /* YYERROR_VERBOSE */ |
1289 | `-----------------------------------------------*/ |
- | |
1290 | - | ||
1291 | /*ARGSUSED*/ |
- | |
1292 | #if (defined __STDC__ || defined __C99__FUNC__ \ |
- | |
1293 | || defined __cplusplus || defined _MSC_VER) |
- | |
1294 | static void |
- | |
1295 | yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) |
- | |
1296 | #else |
1190 | |
1297 | static void |
1191 | /*-----------------------------------------------. |
1298 | yydestruct (yymsg, yytype, yyvaluep) |
- | |
1299 | const char *yymsg; |
1192 | | Release the memory associated to this symbol. | |
1300 | int yytype; |
1193 | `-----------------------------------------------*/ |
1301 | YYSTYPE *yyvaluep; |
1194 | |
Line -... | Line 1195... | ||
- | 1195 | static void |
|
1302 | #endif |
1196 | yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) |
1303 | { |
- | |
1304 | YYUSE (yyvaluep); |
- | |
1305 | 1197 | { |
|
1306 | if (!yymsg) |
- | |
1307 | yymsg = "Deleting"; |
1198 | YYUSE (yyvaluep); |
1308 | YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); |
- | |
1309 | - | ||
1310 | switch (yytype) |
- | |
1311 | { |
- | |
Line 1312... | Line -... | ||
1312 | - | ||
1313 | default: |
- | |
1314 | break; |
- | |
1315 | } |
- | |
1316 | } |
- | |
1317 | - | ||
1318 | - | ||
1319 | /* Prevent warnings from -Wmissing-prototypes. */ |
- | |
1320 | - | ||
1321 | #ifdef YYPARSE_PARAM |
- | |
1322 | #if defined __STDC__ || defined __cplusplus |
- | |
1323 | int yyparse (void *YYPARSE_PARAM); |
- | |
1324 | #else |
- | |
Line 1325... | Line 1199... | ||
1325 | int yyparse (); |
1199 | if (!yymsg) |
1326 | #endif |
1200 | yymsg = "Deleting"; |
Line 1327... | Line 1201... | ||
1327 | #else /* ! YYPARSE_PARAM */ |
1201 | YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); |
1328 | #if defined __STDC__ || defined __cplusplus |
1202 | |
1329 | int yyparse (void); |
- | |
1330 | #else |
1203 | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
1331 | int yyparse (); |
1204 | YYUSE (yytype); |
Line 1332... | Line -... | ||
1332 | #endif |
- | |
1333 | #endif /* ! YYPARSE_PARAM */ |
1205 | YY_IGNORE_MAYBE_UNINITIALIZED_END |
1334 | 1206 | } |
|
1335 | 1207 | ||
Line 1336... | Line -... | ||
1336 | - | ||
1337 | /* The look-ahead symbol. */ |
- | |
1338 | int yychar; |
- | |
1339 | - | ||
1340 | /* The semantic value of the look-ahead symbol. */ |
- | |
1341 | YYSTYPE yylval; |
- | |
1342 | - | ||
1343 | /* Number of syntax errors so far. */ |
- | |
1344 | int yynerrs; |
- | |
1345 | - | ||
1346 | - | ||
1347 | - | ||
1348 | /*----------. |
- | |
1349 | | yyparse. | |
1208 | |
1350 | `----------*/ |
1209 | |
1351 | - | ||
1352 | #ifdef YYPARSE_PARAM |
- | |
1353 | #if (defined __STDC__ || defined __C99__FUNC__ \ |
- | |
1354 | || defined __cplusplus || defined _MSC_VER) |
- | |
1355 | int |
- | |
1356 | yyparse (void *YYPARSE_PARAM) |
- | |
1357 | #else |
1210 | |
1358 | int |
- | |
1359 | yyparse (YYPARSE_PARAM) |
1211 | /* The lookahead symbol. */ |
1360 | void *YYPARSE_PARAM; |
- | |
1361 | #endif |
- | |
1362 | #else /* ! YYPARSE_PARAM */ |
1212 | int yychar; |
1363 | #if (defined __STDC__ || defined __C99__FUNC__ \ |
1213 | |
1364 | || defined __cplusplus || defined _MSC_VER) |
- | |
1365 | int |
- | |
1366 | yyparse (void) |
- | |
1367 | #else |
- | |
1368 | int |
- | |
1369 | yyparse () |
- | |
1370 | - | ||
1371 | #endif |
- | |
Line 1372... | Line 1214... | ||
1372 | #endif |
1214 | /* The semantic value of the lookahead symbol. */ |
1373 | { |
1215 | YYSTYPE yylval; |
1374 | 1216 | /* Number of syntax errors so far. */ |
|
1375 | int yystate; |
- | |
Line 1376... | Line 1217... | ||
1376 | int yyn; |
1217 | int yynerrs; |
1377 | int yyresult; |
1218 | |
Line 1378... | Line 1219... | ||
1378 | /* Number of tokens to shift before error messages enabled. */ |
1219 | |
1379 | int yyerrstatus; |
1220 | /*----------. |
1380 | /* Look-ahead token as an internal (translated) token number. */ |
1221 | | yyparse. | |
1381 | int yytoken = 0; |
1222 | `----------*/ |
Line 1382... | Line 1223... | ||
1382 | #if YYERROR_VERBOSE |
1223 | |
1383 | /* Buffer for error messages, and its allocated size. */ |
1224 | int |
1384 | char yymsgbuf[128]; |
1225 | yyparse (void) |
1385 | char *yymsg = yymsgbuf; |
1226 | { |
Line -... | Line 1227... | ||
- | 1227 | int yystate; |
|
Line 1386... | Line 1228... | ||
1386 | YYSIZE_T yymsg_alloc = sizeof yymsgbuf; |
1228 | /* Number of tokens to shift before error messages enabled. */ |
- | 1229 | int yyerrstatus; |
|
1387 | #endif |
1230 | |
1388 | - | ||
1389 | /* Three stacks and their tools: |
1231 | /* The stacks and their tools: |
1390 | `yyss': related to states, |
- | |
1391 | `yyvs': related to semantic values, |
1232 | 'yyss': related to states. |
1392 | `yyls': related to locations. |
1233 | 'yyvs': related to semantic values. |
1393 | 1234 | ||
Line -... | Line 1235... | ||
- | 1235 | Refer to the stacks through separate pointers, to allow yyoverflow |
|
- | 1236 | to reallocate them elsewhere. */ |
|
- | 1237 | ||
- | 1238 | /* The state stack. */ |
|
- | 1239 | yytype_int16 yyssa[YYINITDEPTH]; |
|
- | 1240 | yytype_int16 *yyss; |
|
- | 1241 | yytype_int16 *yyssp; |
|
- | 1242 | ||
Line 1394... | Line 1243... | ||
1394 | Refer to the stacks thru separate pointers, to allow yyoverflow |
1243 | /* The semantic value stack. */ |
1395 | to reallocate them elsewhere. */ |
1244 | YYSTYPE yyvsa[YYINITDEPTH]; |
1396 | 1245 | YYSTYPE *yyvs; |
|
Line -... | Line 1246... | ||
- | 1246 | YYSTYPE *yyvsp; |
|
- | 1247 | ||
- | 1248 | YYSIZE_T yystacksize; |
|
- | 1249 | ||
1397 | /* The state stack. */ |
1250 | int yyn; |
Line 1398... | Line 1251... | ||
1398 | yytype_int16 yyssa[YYINITDEPTH]; |
1251 | int yyresult; |
1399 | yytype_int16 *yyss = yyssa; |
1252 | /* Lookahead token as an internal (translated) token number. */ |
1400 | yytype_int16 *yyssp; |
1253 | int yytoken = 0; |
1401 | 1254 | /* The variables used to return semantic value and location from the |
|
1402 | /* The semantic value stack. */ |
- | |
1403 | YYSTYPE yyvsa[YYINITDEPTH]; |
- | |
1404 | YYSTYPE *yyvs = yyvsa; |
- | |
1405 | YYSTYPE *yyvsp; |
- | |
1406 | - | ||
1407 | - | ||
1408 | - | ||
1409 | #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
- | |
1410 | - | ||
1411 | YYSIZE_T yystacksize = YYINITDEPTH; |
1255 | action routines. */ |
Line 1412... | Line 1256... | ||
1412 | 1256 | YYSTYPE yyval; |
|
1413 | /* The variables used to return semantic value and location from the |
1257 | |
1414 | action routines. */ |
1258 | #if YYERROR_VERBOSE |
Line 1458... | Line 1302... | ||
1458 | these so that the &'s don't force the real ones into |
1302 | these so that the &'s don't force the real ones into |
1459 | memory. */ |
1303 | memory. */ |
1460 | YYSTYPE *yyvs1 = yyvs; |
1304 | YYSTYPE *yyvs1 = yyvs; |
1461 | yytype_int16 *yyss1 = yyss; |
1305 | yytype_int16 *yyss1 = yyss; |
Line 1462... | Line -... | ||
1462 | - | ||
1463 | 1306 | ||
1464 | /* Each stack pointer address is followed by the size of the |
1307 | /* Each stack pointer address is followed by the size of the |
1465 | data in use in that stack, in bytes. This used to be a |
1308 | data in use in that stack, in bytes. This used to be a |
1466 | conditional around just the two extra args, but that might |
1309 | conditional around just the two extra args, but that might |
1467 | be undefined if yyoverflow is a macro. */ |
1310 | be undefined if yyoverflow is a macro. */ |
1468 | yyoverflow (YY_("memory exhausted"), |
1311 | yyoverflow (YY_("memory exhausted"), |
1469 | &yyss1, yysize * sizeof (*yyssp), |
1312 | &yyss1, yysize * sizeof (*yyssp), |
1470 | &yyvs1, yysize * sizeof (*yyvsp), |
- | |
1471 | 1313 | &yyvs1, yysize * sizeof (*yyvsp), |
|
Line 1472... | Line 1314... | ||
1472 | &yystacksize); |
1314 | &yystacksize); |
1473 | 1315 | ||
1474 | yyss = yyss1; |
1316 | yyss = yyss1; |
Line 1489... | Line 1331... | ||
1489 | yytype_int16 *yyss1 = yyss; |
1331 | yytype_int16 *yyss1 = yyss; |
1490 | union yyalloc *yyptr = |
1332 | union yyalloc *yyptr = |
1491 | (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); |
1333 | (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); |
1492 | if (! yyptr) |
1334 | if (! yyptr) |
1493 | goto yyexhaustedlab; |
1335 | goto yyexhaustedlab; |
1494 | YYSTACK_RELOCATE (yyss); |
1336 | YYSTACK_RELOCATE (yyss_alloc, yyss); |
1495 | YYSTACK_RELOCATE (yyvs); |
1337 | YYSTACK_RELOCATE (yyvs_alloc, yyvs); |
1496 | - | ||
1497 | # undef YYSTACK_RELOCATE |
1338 | # undef YYSTACK_RELOCATE |
1498 | if (yyss1 != yyssa) |
1339 | if (yyss1 != yyssa) |
1499 | YYSTACK_FREE (yyss1); |
1340 | YYSTACK_FREE (yyss1); |
1500 | } |
1341 | } |
1501 | # endif |
1342 | # endif |
1502 | #endif /* no yyoverflow */ |
1343 | #endif /* no yyoverflow */ |
Line 1503... | Line 1344... | ||
1503 | 1344 | ||
1504 | yyssp = yyss + yysize - 1; |
1345 | yyssp = yyss + yysize - 1; |
Line 1505... | Line -... | ||
1505 | yyvsp = yyvs + yysize - 1; |
- | |
1506 | 1346 | yyvsp = yyvs + yysize - 1; |
|
1507 | 1347 | ||
Line 1508... | Line 1348... | ||
1508 | YYDPRINTF ((stderr, "Stack size increased to %lu\n", |
1348 | YYDPRINTF ((stderr, "Stack size increased to %lu\n", |
1509 | (unsigned long int) yystacksize)); |
1349 | (unsigned long int) yystacksize)); |
1510 | 1350 | ||
Line 1511... | Line 1351... | ||
1511 | if (yyss + yystacksize - 1 <= yyssp) |
1351 | if (yyss + yystacksize - 1 <= yyssp) |
Line -... | Line 1352... | ||
- | 1352 | YYABORT; |
|
- | 1353 | } |
|
- | 1354 | ||
1512 | YYABORT; |
1355 | YYDPRINTF ((stderr, "Entering state %d\n", yystate)); |
Line 1513... | Line 1356... | ||
1513 | } |
1356 | |
1514 | 1357 | if (yystate == YYFINAL) |
|
1515 | YYDPRINTF ((stderr, "Entering state %d\n", yystate)); |
1358 | YYACCEPT; |
1516 | 1359 | ||
Line 1517... | Line 1360... | ||
1517 | goto yybackup; |
1360 | goto yybackup; |
1518 | 1361 | ||
Line 1519... | Line 1362... | ||
1519 | /*-----------. |
1362 | /*-----------. |
1520 | | yybackup. | |
1363 | | yybackup. | |
1521 | `-----------*/ |
1364 | `-----------*/ |
1522 | yybackup: |
1365 | yybackup: |
Line 1523... | Line 1366... | ||
1523 | 1366 | ||
Line 1524... | Line 1367... | ||
1524 | /* Do appropriate processing given the current state. Read a |
1367 | /* Do appropriate processing given the current state. Read a |
1525 | look-ahead token if we need one and don't already have one. */ |
1368 | lookahead token if we need one and don't already have one. */ |
1526 | 1369 | ||
1527 | /* First try to decide what to do without reference to look-ahead token. */ |
1370 | /* First try to decide what to do without reference to lookahead token. */ |
1528 | yyn = yypact[yystate]; |
1371 | yyn = yypact[yystate]; |
1529 | if (yyn == YYPACT_NINF) |
1372 | if (yypact_value_is_default (yyn)) |
Line 1530... | Line 1373... | ||
1530 | goto yydefault; |
1373 | goto yydefault; |
1531 | 1374 | ||
1532 | /* Not known => get a look-ahead token if don't already have one. */ |
1375 | /* Not known => get a lookahead token if don't already have one. */ |
Line 1555... | Line 1398... | ||
1555 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) |
1398 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) |
1556 | goto yydefault; |
1399 | goto yydefault; |
1557 | yyn = yytable[yyn]; |
1400 | yyn = yytable[yyn]; |
1558 | if (yyn <= 0) |
1401 | if (yyn <= 0) |
1559 | { |
1402 | { |
1560 | if (yyn == 0 || yyn == YYTABLE_NINF) |
1403 | if (yytable_value_is_error (yyn)) |
1561 | goto yyerrlab; |
1404 | goto yyerrlab; |
1562 | yyn = -yyn; |
1405 | yyn = -yyn; |
1563 | goto yyreduce; |
1406 | goto yyreduce; |
1564 | } |
1407 | } |
Line 1565... | Line -... | ||
1565 | - | ||
1566 | if (yyn == YYFINAL) |
- | |
1567 | YYACCEPT; |
- | |
1568 | 1408 | ||
1569 | /* Count tokens shifted since error; after three, turn off error |
1409 | /* Count tokens shifted since error; after three, turn off error |
1570 | status. */ |
1410 | status. */ |
1571 | if (yyerrstatus) |
1411 | if (yyerrstatus) |
Line 1572... | Line 1412... | ||
1572 | yyerrstatus--; |
1412 | yyerrstatus--; |
1573 | 1413 | ||
Line 1574... | Line 1414... | ||
1574 | /* Shift the look-ahead token. */ |
1414 | /* Shift the lookahead token. */ |
1575 | YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); |
- | |
1576 | 1415 | YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); |
|
Line 1577... | Line 1416... | ||
1577 | /* Discard the shifted token unless it is eof. */ |
1416 | |
- | 1417 | /* Discard the shifted token. */ |
|
1578 | if (yychar != YYEOF) |
1418 | yychar = YYEMPTY; |
- | 1419 | ||
Line 1579... | Line 1420... | ||
1579 | yychar = YYEMPTY; |
1420 | yystate = yyn; |
Line 1580... | Line 1421... | ||
1580 | 1421 | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
|
Line 1600... | Line 1441... | ||
1600 | yyreduce: |
1441 | yyreduce: |
1601 | /* yyn is the number of a rule to reduce with. */ |
1442 | /* yyn is the number of a rule to reduce with. */ |
1602 | yylen = yyr2[yyn]; |
1443 | yylen = yyr2[yyn]; |
Line 1603... | Line 1444... | ||
1603 | 1444 | ||
1604 | /* If YYLEN is nonzero, implement the default value of the action: |
1445 | /* If YYLEN is nonzero, implement the default value of the action: |
Line 1605... | Line 1446... | ||
1605 | `$$ = $1'. |
1446 | '$$ = $1'. |
1606 | 1447 | ||
1607 | Otherwise, the following line sets YYVAL to garbage. |
1448 | Otherwise, the following line sets YYVAL to garbage. |
1608 | This behavior is undocumented and Bison |
1449 | This behavior is undocumented and Bison |
Line 1614... | Line 1455... | ||
1614 | 1455 | ||
1615 | YY_REDUCE_PRINT (yyn); |
1456 | YY_REDUCE_PRINT (yyn); |
1616 | switch (yyn) |
1457 | switch (yyn) |
1617 | { |
1458 | { |
1618 | case 4: |
1459 | case 4: |
1619 | #line 144 "deffilep.y" |
1460 | #line 143 "deffilep.y" /* yacc.c:1661 */ |
- | 1461 | { def_image_name ((yyvsp[-1].id), (yyvsp[0].vma), 0); } |
|
1620 | { def_image_name ((yyvsp[(2) - (3)].id), (yyvsp[(3) - (3)].vma), 0); } |
1462 | #line 1463 "deffilep.c" /* yacc.c:1661 */ |
Line 1621... | Line 1463... | ||
1621 | break; |
1463 | break; |
1622 | 1464 | ||
1623 | case 5: |
1465 | case 5: |
- | 1466 | #line 144 "deffilep.y" /* yacc.c:1661 */ |
|
1624 | #line 145 "deffilep.y" |
1467 | { def_image_name ((yyvsp[-1].id), (yyvsp[0].vma), 1); } |
Line 1625... | Line 1468... | ||
1625 | { def_image_name ((yyvsp[(2) - (3)].id), (yyvsp[(3) - (3)].vma), 1); } |
1468 | #line 1469 "deffilep.c" /* yacc.c:1661 */ |
1626 | break; |
1469 | break; |
1627 | 1470 | ||
- | 1471 | case 6: |
|
1628 | case 6: |
1472 | #line 145 "deffilep.y" /* yacc.c:1661 */ |
Line 1629... | Line 1473... | ||
1629 | #line 146 "deffilep.y" |
1473 | { def_description ((yyvsp[0].id));} |
1630 | { def_description ((yyvsp[(2) - (2)].id));} |
1474 | #line 1475 "deffilep.c" /* yacc.c:1661 */ |
1631 | break; |
1475 | break; |
- | 1476 | ||
1632 | 1477 | case 7: |
|
Line 1633... | Line 1478... | ||
1633 | case 7: |
1478 | #line 146 "deffilep.y" /* yacc.c:1661 */ |
1634 | #line 147 "deffilep.y" |
1479 | { def_stacksize ((yyvsp[-1].number), (yyvsp[0].number));} |
1635 | { def_stacksize ((yyvsp[(2) - (3)].number), (yyvsp[(3) - (3)].number));} |
1480 | #line 1481 "deffilep.c" /* yacc.c:1661 */ |
- | 1481 | break; |
|
1636 | break; |
1482 | |
Line 1637... | Line 1483... | ||
1637 | 1483 | case 8: |
|
1638 | case 8: |
1484 | #line 147 "deffilep.y" /* yacc.c:1661 */ |
1639 | #line 148 "deffilep.y" |
1485 | { def_heapsize ((yyvsp[-1].number), (yyvsp[0].number));} |
- | 1486 | #line 1487 "deffilep.c" /* yacc.c:1661 */ |
|
1640 | { def_heapsize ((yyvsp[(2) - (3)].number), (yyvsp[(3) - (3)].number));} |
1487 | break; |
Line 1641... | Line 1488... | ||
1641 | break; |
1488 | |
1642 | 1489 | case 9: |
|
1643 | case 9: |
1490 | #line 148 "deffilep.y" /* yacc.c:1661 */ |
- | 1491 | { def_section ("CODE", (yyvsp[0].number));} |
|
1644 | #line 149 "deffilep.y" |
1492 | #line 1493 "deffilep.c" /* yacc.c:1661 */ |
Line 1645... | Line 1493... | ||
1645 | { def_section ("CODE", (yyvsp[(2) - (2)].number));} |
1493 | break; |
1646 | break; |
1494 | |
1647 | 1495 | case 10: |
|
- | 1496 | #line 149 "deffilep.y" /* yacc.c:1661 */ |
|
1648 | case 10: |
1497 | { def_section ("DATA", (yyvsp[0].number));} |
Line 1649... | Line 1498... | ||
1649 | #line 150 "deffilep.y" |
1498 | #line 1499 "deffilep.c" /* yacc.c:1661 */ |
1650 | { def_section ("DATA", (yyvsp[(2) - (2)].number));} |
1499 | break; |
1651 | break; |
1500 | |
- | 1501 | case 14: |
|
1652 | 1502 | #line 153 "deffilep.y" /* yacc.c:1661 */ |
|
Line 1653... | Line 1503... | ||
1653 | case 14: |
1503 | { def_version ((yyvsp[0].number), 0);} |
1654 | #line 154 "deffilep.y" |
1504 | #line 1505 "deffilep.c" /* yacc.c:1661 */ |
1655 | { def_version ((yyvsp[(2) - (2)].number), 0);} |
1505 | break; |
- | 1506 | ||
1656 | break; |
1507 | case 15: |
Line 1657... | Line 1508... | ||
1657 | 1508 | #line 154 "deffilep.y" /* yacc.c:1661 */ |
|
1658 | case 15: |
1509 | { def_version ((yyvsp[-2].number), (yyvsp[0].number));} |
1659 | #line 155 "deffilep.y" |
1510 | #line 1511 "deffilep.c" /* yacc.c:1661 */ |
- | 1511 | break; |
|
1660 | { def_version ((yyvsp[(2) - (4)].number), (yyvsp[(4) - (4)].number));} |
1512 | |
Line 1661... | Line 1513... | ||
1661 | break; |
1513 | case 16: |
1662 | 1514 | #line 155 "deffilep.y" /* yacc.c:1661 */ |
|
1663 | case 16: |
1515 | { def_directive ((yyvsp[0].id));} |
- | 1516 | #line 1517 "deffilep.c" /* yacc.c:1661 */ |
|
1664 | #line 156 "deffilep.y" |
1517 | break; |
Line 1665... | Line 1518... | ||
1665 | { def_directive ((yyvsp[(2) - (2)].id));} |
1518 | |
1666 | break; |
1519 | case 17: |
1667 | 1520 | #line 156 "deffilep.y" /* yacc.c:1661 */ |
|
- | 1521 | { def_aligncomm ((yyvsp[-2].id), (yyvsp[0].number));} |
|
1668 | case 17: |
1522 | #line 1523 "deffilep.c" /* yacc.c:1661 */ |
Line 1669... | Line 1523... | ||
1669 | #line 157 "deffilep.y" |
1523 | break; |
1670 | { def_aligncomm ((yyvsp[(2) - (4)].id), (yyvsp[(4) - (4)].number));} |
1524 | |
1671 | break; |
1525 | case 21: |
- | 1526 | #line 171 "deffilep.y" /* yacc.c:1661 */ |
|
1672 | 1527 | { def_exports ((yyvsp[-6].id), (yyvsp[-5].id), (yyvsp[-4].number), (yyvsp[-2].number), (yyvsp[0].id)); } |
|
Line 1673... | Line 1528... | ||
1673 | case 21: |
1528 | #line 1529 "deffilep.c" /* yacc.c:1661 */ |
1674 | #line 172 "deffilep.y" |
1529 | break; |
1675 | { def_exports ((yyvsp[(1) - (7)].id), (yyvsp[(2) - (7)].id), (yyvsp[(3) - (7)].number), (yyvsp[(5) - (7)].number), (yyvsp[(7) - (7)].id)); } |
1530 | |
- | 1531 | case 22: |
|
1676 | break; |
1532 | #line 177 "deffilep.y" /* yacc.c:1661 */ |
Line 1677... | Line 1533... | ||
1677 | 1533 | { (yyval.number) = (yyvsp[-2].number) | (yyvsp[0].number); } |
|
1678 | case 22: |
1534 | #line 1535 "deffilep.c" /* yacc.c:1661 */ |
1679 | #line 178 "deffilep.y" |
1535 | break; |
- | 1536 | ||
1680 | { (yyval.number) = (yyvsp[(1) - (3)].number) | (yyvsp[(3) - (3)].number); } |
1537 | case 23: |
Line 1681... | Line 1538... | ||
1681 | break; |
1538 | #line 178 "deffilep.y" /* yacc.c:1661 */ |
1682 | 1539 | { (yyval.number) = 0; } |
|
1683 | case 23: |
1540 | #line 1541 "deffilep.c" /* yacc.c:1661 */ |
- | 1541 | break; |
|
1684 | #line 179 "deffilep.y" |
1542 | |
Line 1685... | Line 1543... | ||
1685 | { (yyval.number) = 0; } |
1543 | case 24: |
1686 | break; |
1544 | #line 181 "deffilep.y" /* yacc.c:1661 */ |
1687 | 1545 | { (yyval.number) = 1; } |
|
- | 1546 | #line 1547 "deffilep.c" /* yacc.c:1661 */ |
|
1688 | case 24: |
1547 | break; |
Line 1689... | Line 1548... | ||
1689 | #line 182 "deffilep.y" |
1548 | |
1690 | { (yyval.number) = 1; } |
1549 | case 25: |
1691 | break; |
1550 | #line 182 "deffilep.y" /* yacc.c:1661 */ |
- | 1551 | { (yyval.number) = 1; } |
|
1692 | 1552 | #line 1553 "deffilep.c" /* yacc.c:1661 */ |
|
Line 1693... | Line 1553... | ||
1693 | case 25: |
1553 | break; |
1694 | #line 183 "deffilep.y" |
1554 | |
1695 | { (yyval.number) = 1; } |
1555 | case 26: |
- | 1556 | #line 183 "deffilep.y" /* yacc.c:1661 */ |
|
1696 | break; |
1557 | { (yyval.number) = 2; } |
Line 1697... | Line 1558... | ||
1697 | 1558 | #line 1559 "deffilep.c" /* yacc.c:1661 */ |
|
1698 | case 26: |
1559 | break; |
1699 | #line 184 "deffilep.y" |
1560 | |
- | 1561 | case 27: |
|
1700 | { (yyval.number) = 2; } |
1562 | #line 184 "deffilep.y" /* yacc.c:1661 */ |
Line 1701... | Line 1563... | ||
1701 | break; |
1563 | { (yyval.number) = 2; } |
1702 | 1564 | #line 1565 "deffilep.c" /* yacc.c:1661 */ |
|
1703 | case 27: |
1565 | break; |
- | 1566 | ||
1704 | #line 185 "deffilep.y" |
1567 | case 28: |
Line 1705... | Line 1568... | ||
1705 | { (yyval.number) = 2; } |
1568 | #line 185 "deffilep.y" /* yacc.c:1661 */ |
1706 | break; |
1569 | { (yyval.number) = 4; } |
1707 | 1570 | #line 1571 "deffilep.c" /* yacc.c:1661 */ |
|
- | 1571 | break; |
|
1708 | case 28: |
1572 | |
Line 1709... | Line 1573... | ||
1709 | #line 186 "deffilep.y" |
1573 | case 29: |
1710 | { (yyval.number) = 4; } |
1574 | #line 186 "deffilep.y" /* yacc.c:1661 */ |
1711 | break; |
1575 | { (yyval.number) = 4; } |
- | 1576 | #line 1577 "deffilep.c" /* yacc.c:1661 */ |
|
1712 | 1577 | break; |
|
Line 1713... | Line 1578... | ||
1713 | case 29: |
1578 | |
1714 | #line 187 "deffilep.y" |
1579 | case 30: |
1715 | { (yyval.number) = 4; } |
1580 | #line 187 "deffilep.y" /* yacc.c:1661 */ |
- | 1581 | { (yyval.number) = 8; } |
|
1716 | break; |
1582 | #line 1583 "deffilep.c" /* yacc.c:1661 */ |
Line 1717... | Line 1583... | ||
1717 | 1583 | break; |
|
1718 | case 30: |
1584 | |
1719 | #line 188 "deffilep.y" |
1585 | case 31: |
- | 1586 | #line 188 "deffilep.y" /* yacc.c:1661 */ |
|
1720 | { (yyval.number) = 8; } |
1587 | { (yyval.number) = 8; } |
Line 1721... | Line 1588... | ||
1721 | break; |
1588 | #line 1589 "deffilep.c" /* yacc.c:1661 */ |
1722 | 1589 | break; |
|
1723 | case 31: |
1590 | |
- | 1591 | case 34: |
|
1724 | #line 189 "deffilep.y" |
1592 | #line 197 "deffilep.y" /* yacc.c:1661 */ |
Line 1725... | Line 1593... | ||
1725 | { (yyval.number) = 8; } |
1593 | { def_import ((yyvsp[-7].id), (yyvsp[-5].id), (yyvsp[-3].id), (yyvsp[-1].id), -1, (yyvsp[0].id)); } |
1726 | break; |
1594 | #line 1595 "deffilep.c" /* yacc.c:1661 */ |
1727 | 1595 | break; |
|
- | 1596 | ||
1728 | case 34: |
1597 | case 35: |
Line 1729... | Line 1598... | ||
1729 | #line 198 "deffilep.y" |
1598 | #line 199 "deffilep.y" /* yacc.c:1661 */ |
1730 | { def_import ((yyvsp[(1) - (8)].id), (yyvsp[(3) - (8)].id), (yyvsp[(5) - (8)].id), (yyvsp[(7) - (8)].id), -1, (yyvsp[(8) - (8)].id)); } |
1599 | { def_import ((yyvsp[-7].id), (yyvsp[-5].id), (yyvsp[-3].id), 0, (yyvsp[-1].number), (yyvsp[0].id)); } |
1731 | break; |
1600 | #line 1601 "deffilep.c" /* yacc.c:1661 */ |
- | 1601 | break; |
|
1732 | 1602 | ||
Line 1733... | Line 1603... | ||
1733 | case 35: |
1603 | case 36: |
1734 | #line 200 "deffilep.y" |
1604 | #line 201 "deffilep.y" /* yacc.c:1661 */ |
1735 | { def_import ((yyvsp[(1) - (8)].id), (yyvsp[(3) - (8)].id), (yyvsp[(5) - (8)].id), 0, (yyvsp[(7) - (8)].number), (yyvsp[(8) - (8)].id)); } |
1605 | { def_import ((yyvsp[-5].id), (yyvsp[-3].id), 0, (yyvsp[-1].id), -1, (yyvsp[0].id)); } |
- | 1606 | #line 1607 "deffilep.c" /* yacc.c:1661 */ |
|
1736 | break; |
1607 | break; |
Line 1737... | Line 1608... | ||
1737 | 1608 | ||
1738 | case 36: |
1609 | case 37: |
1739 | #line 202 "deffilep.y" |
1610 | #line 203 "deffilep.y" /* yacc.c:1661 */ |
- | 1611 | { def_import ((yyvsp[-5].id), (yyvsp[-3].id), 0, 0, (yyvsp[-1].number), (yyvsp[0].id)); } |
|
1740 | { def_import ((yyvsp[(1) - (6)].id), (yyvsp[(3) - (6)].id), 0, (yyvsp[(5) - (6)].id), -1, (yyvsp[(6) - (6)].id)); } |
1612 | #line 1613 "deffilep.c" /* yacc.c:1661 */ |
Line 1741... | Line 1613... | ||
1741 | break; |
1613 | break; |
1742 | 1614 | ||
1743 | case 37: |
1615 | case 38: |
- | 1616 | #line 205 "deffilep.y" /* yacc.c:1661 */ |
|
1744 | #line 204 "deffilep.y" |
1617 | { def_import( 0, (yyvsp[-5].id), (yyvsp[-3].id), (yyvsp[-1].id), -1, (yyvsp[0].id)); } |
Line 1745... | Line 1618... | ||
1745 | { def_import ((yyvsp[(1) - (6)].id), (yyvsp[(3) - (6)].id), 0, 0, (yyvsp[(5) - (6)].number), (yyvsp[(6) - (6)].id)); } |
1618 | #line 1619 "deffilep.c" /* yacc.c:1661 */ |
1746 | break; |
1619 | break; |
1747 | 1620 | ||
- | 1621 | case 39: |
|
1748 | case 38: |
1622 | #line 207 "deffilep.y" /* yacc.c:1661 */ |
Line 1749... | Line 1623... | ||
1749 | #line 206 "deffilep.y" |
1623 | { def_import ( 0, (yyvsp[-3].id), 0, (yyvsp[-1].id), -1, (yyvsp[0].id)); } |
1750 | { def_import( 0, (yyvsp[(1) - (6)].id), (yyvsp[(3) - (6)].id), (yyvsp[(5) - (6)].id), -1, (yyvsp[(6) - (6)].id)); } |
1624 | #line 1625 "deffilep.c" /* yacc.c:1661 */ |
1751 | break; |
1625 | break; |
- | 1626 | ||
1752 | 1627 | case 42: |
|
Line 1753... | Line 1628... | ||
1753 | case 39: |
1628 | #line 216 "deffilep.y" /* yacc.c:1661 */ |
1754 | #line 208 "deffilep.y" |
1629 | { def_section ((yyvsp[-1].id), (yyvsp[0].number));} |
1755 | { def_import ( 0, (yyvsp[(1) - (4)].id), 0, (yyvsp[(3) - (4)].id), -1, (yyvsp[(4) - (4)].id)); } |
1630 | #line 1631 "deffilep.c" /* yacc.c:1661 */ |
- | 1631 | break; |
|
1756 | break; |
1632 | |
Line 1757... | Line 1633... | ||
1757 | 1633 | case 43: |
|
1758 | case 42: |
1634 | #line 217 "deffilep.y" /* yacc.c:1661 */ |
1759 | #line 217 "deffilep.y" |
1635 | { def_section_alt ((yyvsp[-1].id), (yyvsp[0].id));} |
- | 1636 | #line 1637 "deffilep.c" /* yacc.c:1661 */ |
|
1760 | { def_section ((yyvsp[(1) - (2)].id), (yyvsp[(2) - (2)].number));} |
1637 | break; |
Line 1761... | Line 1638... | ||
1761 | break; |
1638 | |
1762 | 1639 | case 44: |
|
1763 | case 43: |
1640 | #line 221 "deffilep.y" /* yacc.c:1661 */ |
- | 1641 | { (yyval.number) = (yyvsp[-2].number) | (yyvsp[0].number); } |
|
1764 | #line 218 "deffilep.y" |
1642 | #line 1643 "deffilep.c" /* yacc.c:1661 */ |
Line 1765... | Line 1643... | ||
1765 | { def_section_alt ((yyvsp[(1) - (2)].id), (yyvsp[(2) - (2)].id));} |
1643 | break; |
1766 | break; |
1644 | |
1767 | 1645 | case 45: |
|
- | 1646 | #line 222 "deffilep.y" /* yacc.c:1661 */ |
|
1768 | case 44: |
1647 | { (yyval.number) = (yyvsp[0].number); } |
Line 1769... | Line 1648... | ||
1769 | #line 222 "deffilep.y" |
1648 | #line 1649 "deffilep.c" /* yacc.c:1661 */ |
1770 | { (yyval.number) = (yyvsp[(1) - (3)].number) | (yyvsp[(3) - (3)].number); } |
1649 | break; |
1771 | break; |
1650 | |
- | 1651 | case 48: |
|
1772 | 1652 | #line 229 "deffilep.y" /* yacc.c:1661 */ |
|
Line 1773... | Line 1653... | ||
1773 | case 45: |
1653 | { (yyval.number)=(yyvsp[0].number);} |
1774 | #line 223 "deffilep.y" |
1654 | #line 1655 "deffilep.c" /* yacc.c:1661 */ |
1775 | { (yyval.number) = (yyvsp[(1) - (1)].number); } |
1655 | break; |
- | 1656 | ||
1776 | break; |
1657 | case 49: |
Line 1777... | Line 1658... | ||
1777 | 1658 | #line 230 "deffilep.y" /* yacc.c:1661 */ |
|
1778 | case 48: |
1659 | { (yyval.number)=-1;} |
1779 | #line 230 "deffilep.y" |
1660 | #line 1661 "deffilep.c" /* yacc.c:1661 */ |
- | 1661 | break; |
|
1780 | { (yyval.number)=(yyvsp[(2) - (2)].number);} |
1662 | |
Line 1781... | Line 1663... | ||
1781 | break; |
1663 | case 50: |
1782 | 1664 | #line 234 "deffilep.y" /* yacc.c:1661 */ |
|
1783 | case 49: |
1665 | { (yyval.number) = 1;} |
- | 1666 | #line 1667 "deffilep.c" /* yacc.c:1661 */ |
|
1784 | #line 231 "deffilep.y" |
1667 | break; |
Line 1785... | Line 1668... | ||
1785 | { (yyval.number)=-1;} |
1668 | |
1786 | break; |
1669 | case 51: |
1787 | 1670 | #line 235 "deffilep.y" /* yacc.c:1661 */ |
|
- | 1671 | { (yyval.number) = 2;} |
|
1788 | case 50: |
1672 | #line 1673 "deffilep.c" /* yacc.c:1661 */ |
Line 1789... | Line 1673... | ||
1789 | #line 235 "deffilep.y" |
1673 | break; |
1790 | { (yyval.number) = 1;} |
1674 | |
1791 | break; |
1675 | case 52: |
- | 1676 | #line 236 "deffilep.y" /* yacc.c:1661 */ |
|
1792 | 1677 | { (yyval.number)=4;} |
|
Line 1793... | Line 1678... | ||
1793 | case 51: |
1678 | #line 1679 "deffilep.c" /* yacc.c:1661 */ |
1794 | #line 236 "deffilep.y" |
1679 | break; |
1795 | { (yyval.number) = 2;} |
1680 | |
- | 1681 | case 53: |
|
1796 | break; |
1682 | #line 237 "deffilep.y" /* yacc.c:1661 */ |
Line 1797... | Line 1683... | ||
1797 | 1683 | { (yyval.number)=8;} |
|
1798 | case 52: |
1684 | #line 1685 "deffilep.c" /* yacc.c:1661 */ |
1799 | #line 237 "deffilep.y" |
1685 | break; |
- | 1686 | ||
1800 | { (yyval.number)=4;} |
1687 | case 54: |
Line 1801... | Line 1688... | ||
1801 | break; |
1688 | #line 241 "deffilep.y" /* yacc.c:1661 */ |
1802 | 1689 | { (yyval.id_const) = "BASE"; } |
|
1803 | case 53: |
1690 | #line 1691 "deffilep.c" /* yacc.c:1661 */ |
- | 1691 | break; |
|
1804 | #line 238 "deffilep.y" |
1692 | |
Line 1805... | Line 1693... | ||
1805 | { (yyval.number)=8;} |
1693 | case 55: |
1806 | break; |
1694 | #line 242 "deffilep.y" /* yacc.c:1661 */ |
1807 | 1695 | { (yyval.id_const) = "CODE"; } |
|
- | 1696 | #line 1697 "deffilep.c" /* yacc.c:1661 */ |
|
1808 | case 54: |
1697 | break; |
Line 1809... | Line 1698... | ||
1809 | #line 242 "deffilep.y" |
1698 | |
1810 | { (yyval.id_const) = "BASE"; } |
1699 | case 56: |
1811 | break; |
1700 | #line 243 "deffilep.y" /* yacc.c:1661 */ |
- | 1701 | { (yyval.id_const) = "CONSTANT"; } |
|
1812 | 1702 | #line 1703 "deffilep.c" /* yacc.c:1661 */ |
|
Line 1813... | Line 1703... | ||
1813 | case 55: |
1703 | break; |
1814 | #line 243 "deffilep.y" |
1704 | |
1815 | { (yyval.id_const) = "CODE"; } |
1705 | case 57: |
- | 1706 | #line 244 "deffilep.y" /* yacc.c:1661 */ |
|
1816 | break; |
1707 | { (yyval.id_const) = "constant"; } |
Line 1817... | Line 1708... | ||
1817 | 1708 | #line 1709 "deffilep.c" /* yacc.c:1661 */ |
|
1818 | case 56: |
1709 | break; |
1819 | #line 244 "deffilep.y" |
1710 | |
- | 1711 | case 58: |
|
1820 | { (yyval.id_const) = "CONSTANT"; } |
1712 | #line 245 "deffilep.y" /* yacc.c:1661 */ |
Line 1821... | Line 1713... | ||
1821 | break; |
1713 | { (yyval.id_const) = "DATA"; } |
1822 | 1714 | #line 1715 "deffilep.c" /* yacc.c:1661 */ |
|
1823 | case 57: |
1715 | break; |
- | 1716 | ||
1824 | #line 245 "deffilep.y" |
1717 | case 59: |
Line 1825... | Line 1718... | ||
1825 | { (yyval.id_const) = "constant"; } |
1718 | #line 246 "deffilep.y" /* yacc.c:1661 */ |
1826 | break; |
1719 | { (yyval.id_const) = "data"; } |
1827 | 1720 | #line 1721 "deffilep.c" /* yacc.c:1661 */ |
|
- | 1721 | break; |
|
1828 | case 58: |
1722 | |
Line 1829... | Line 1723... | ||
1829 | #line 246 "deffilep.y" |
1723 | case 60: |
1830 | { (yyval.id_const) = "DATA"; } |
1724 | #line 247 "deffilep.y" /* yacc.c:1661 */ |
1831 | break; |
1725 | { (yyval.id_const) = "DESCRIPTION"; } |
- | 1726 | #line 1727 "deffilep.c" /* yacc.c:1661 */ |
|
1832 | 1727 | break; |
|
Line 1833... | Line 1728... | ||
1833 | case 59: |
1728 | |
1834 | #line 247 "deffilep.y" |
1729 | case 61: |
1835 | { (yyval.id_const) = "data"; } |
1730 | #line 248 "deffilep.y" /* yacc.c:1661 */ |
- | 1731 | { (yyval.id_const) = "DIRECTIVE"; } |
|
1836 | break; |
1732 | #line 1733 "deffilep.c" /* yacc.c:1661 */ |
Line 1837... | Line 1733... | ||
1837 | 1733 | break; |
|
1838 | case 60: |
1734 | |
1839 | #line 248 "deffilep.y" |
1735 | case 62: |
- | 1736 | #line 249 "deffilep.y" /* yacc.c:1661 */ |
|
1840 | { (yyval.id_const) = "DESCRIPTION"; } |
1737 | { (yyval.id_const) = "EXECUTE"; } |
Line 1841... | Line 1738... | ||
1841 | break; |
1738 | #line 1739 "deffilep.c" /* yacc.c:1661 */ |
1842 | 1739 | break; |
|
1843 | case 61: |
1740 | |
- | 1741 | case 63: |
|
1844 | #line 249 "deffilep.y" |
1742 | #line 250 "deffilep.y" /* yacc.c:1661 */ |
Line 1845... | Line 1743... | ||
1845 | { (yyval.id_const) = "DIRECTIVE"; } |
1743 | { (yyval.id_const) = "EXPORTS"; } |
1846 | break; |
1744 | #line 1745 "deffilep.c" /* yacc.c:1661 */ |
1847 | 1745 | break; |
|
- | 1746 | ||
1848 | case 62: |
1747 | case 64: |
Line 1849... | Line 1748... | ||
1849 | #line 250 "deffilep.y" |
1748 | #line 251 "deffilep.y" /* yacc.c:1661 */ |
1850 | { (yyval.id_const) = "EXECUTE"; } |
1749 | { (yyval.id_const) = "HEAPSIZE"; } |
1851 | break; |
1750 | #line 1751 "deffilep.c" /* yacc.c:1661 */ |
- | 1751 | break; |
|
1852 | 1752 | ||
Line 1853... | Line 1753... | ||
1853 | case 63: |
1753 | case 65: |
1854 | #line 251 "deffilep.y" |
1754 | #line 252 "deffilep.y" /* yacc.c:1661 */ |
1855 | { (yyval.id_const) = "EXPORTS"; } |
1755 | { (yyval.id_const) = "IMPORTS"; } |
- | 1756 | #line 1757 "deffilep.c" /* yacc.c:1661 */ |
|
1856 | break; |
1757 | break; |
Line 1857... | Line 1758... | ||
1857 | 1758 | ||
1858 | case 64: |
1759 | case 66: |
1859 | #line 252 "deffilep.y" |
1760 | #line 259 "deffilep.y" /* yacc.c:1661 */ |
- | 1761 | { (yyval.id_const) = "NAME"; } |
|
1860 | { (yyval.id_const) = "HEAPSIZE"; } |
1762 | #line 1763 "deffilep.c" /* yacc.c:1661 */ |
Line 1861... | Line 1763... | ||
1861 | break; |
1763 | break; |
1862 | 1764 | ||
1863 | case 65: |
1765 | case 67: |
1864 | #line 253 "deffilep.y" |
1766 | #line 260 "deffilep.y" /* yacc.c:1661 */ |
1865 | { (yyval.id_const) = "IMPORTS"; } |
1767 | { (yyval.id_const) = "NONAME"; } |
1866 | break; |
1768 | #line 1769 "deffilep.c" /* yacc.c:1661 */ |
1867 | 1769 | break; |
|
- | 1770 | ||
1868 | case 66: |
1771 | case 68: |
Line 1869... | Line 1772... | ||
1869 | #line 260 "deffilep.y" |
1772 | #line 261 "deffilep.y" /* yacc.c:1661 */ |
1870 | { (yyval.id_const) = "NAME"; } |
1773 | { (yyval.id_const) = "noname"; } |
1871 | break; |
1774 | #line 1775 "deffilep.c" /* yacc.c:1661 */ |
1872 | 1775 | break; |
|
1873 | case 67: |
1776 | |
1874 | #line 261 "deffilep.y" |
1777 | case 69: |
1875 | { (yyval.id_const) = "NONAME"; } |
1778 | #line 262 "deffilep.y" /* yacc.c:1661 */ |
- | 1779 | { (yyval.id_const) = "PRIVATE"; } |
|
1876 | break; |
1780 | #line 1781 "deffilep.c" /* yacc.c:1661 */ |
Line 1877... | Line 1781... | ||
1877 | 1781 | break; |
|
1878 | case 68: |
1782 | |
1879 | #line 262 "deffilep.y" |
1783 | case 70: |
1880 | { (yyval.id_const) = "noname"; } |
1784 | #line 263 "deffilep.y" /* yacc.c:1661 */ |
1881 | break; |
1785 | { (yyval.id_const) = "private"; } |
1882 | 1786 | #line 1787 "deffilep.c" /* yacc.c:1661 */ |
|
1883 | case 69: |
1787 | break; |
- | 1788 | ||
1884 | #line 263 "deffilep.y" |
1789 | case 71: |
Line 1885... | Line 1790... | ||
1885 | { (yyval.id_const) = "PRIVATE"; } |
1790 | #line 264 "deffilep.y" /* yacc.c:1661 */ |
1886 | break; |
1791 | { (yyval.id_const) = "READ"; } |
1887 | 1792 | #line 1793 "deffilep.c" /* yacc.c:1661 */ |
|
1888 | case 70: |
1793 | break; |
1889 | #line 264 "deffilep.y" |
1794 | |
1890 | { (yyval.id_const) = "private"; } |
1795 | case 72: |
1891 | break; |
1796 | #line 265 "deffilep.y" /* yacc.c:1661 */ |
- | 1797 | { (yyval.id_const) = "SHARED"; } |
|
1892 | 1798 | #line 1799 "deffilep.c" /* yacc.c:1661 */ |
|
Line 1893... | Line 1799... | ||
1893 | case 71: |
1799 | break; |
1894 | #line 265 "deffilep.y" |
1800 | |
1895 | { (yyval.id_const) = "READ"; } |
1801 | case 73: |
- | 1802 | #line 266 "deffilep.y" /* yacc.c:1661 */ |
|
1896 | break; |
1803 | { (yyval.id_const) = "STACKSIZE"; } |
Line 1897... | Line 1804... | ||
1897 | 1804 | #line 1805 "deffilep.c" /* yacc.c:1661 */ |
|
1898 | case 72: |
1805 | break; |
1899 | #line 266 "deffilep.y" |
1806 | |
- | 1807 | case 74: |
|
1900 | { (yyval.id_const) = "SHARED"; } |
1808 | #line 267 "deffilep.y" /* yacc.c:1661 */ |
Line 1901... | Line 1809... | ||
1901 | break; |
1809 | { (yyval.id_const) = "VERSION"; } |
1902 | 1810 | #line 1811 "deffilep.c" /* yacc.c:1661 */ |
|
1903 | case 73: |
1811 | break; |
- | 1812 | ||
1904 | #line 267 "deffilep.y" |
1813 | case 75: |
Line 1905... | Line 1814... | ||
1905 | { (yyval.id_const) = "STACKSIZE"; } |
1814 | #line 268 "deffilep.y" /* yacc.c:1661 */ |
1906 | break; |
1815 | { (yyval.id_const) = "WRITE"; } |
1907 | 1816 | #line 1817 "deffilep.c" /* yacc.c:1661 */ |
|
- | 1817 | break; |
|
1908 | case 74: |
1818 | |
Line 1909... | Line 1819... | ||
1909 | #line 268 "deffilep.y" |
1819 | case 76: |
1910 | { (yyval.id_const) = "VERSION"; } |
1820 | #line 271 "deffilep.y" /* yacc.c:1661 */ |
1911 | break; |
1821 | { (yyval.id) = (yyvsp[0].id); } |
- | 1822 | #line 1823 "deffilep.c" /* yacc.c:1661 */ |
|
1912 | 1823 | break; |
|
Line 1913... | Line 1824... | ||
1913 | case 75: |
1824 | |
1914 | #line 269 "deffilep.y" |
1825 | case 77: |
1915 | { (yyval.id_const) = "WRITE"; } |
1826 | #line 273 "deffilep.y" /* yacc.c:1661 */ |
- | 1827 | { |
|
1916 | break; |
1828 | char *name = xmalloc (strlen ((yyvsp[0].id_const)) + 2); |
Line 1917... | Line 1829... | ||
1917 | 1829 | sprintf (name, ".%s", (yyvsp[0].id_const)); |
|
1918 | case 76: |
1830 | (yyval.id) = name; |
1919 | #line 272 "deffilep.y" |
1831 | } |
- | 1832 | #line 1833 "deffilep.c" /* yacc.c:1661 */ |
|
1920 | { (yyval.id) = (yyvsp[(1) - (1)].id); } |
1833 | break; |
Line 1921... | Line 1834... | ||
1921 | break; |
1834 | |
1922 | 1835 | case 78: |
|
1923 | case 77: |
1836 | #line 279 "deffilep.y" /* yacc.c:1661 */ |
- | 1837 | { |
|
1924 | #line 274 "deffilep.y" |
1838 | char *name = def_pool_alloc (strlen ((yyvsp[0].id)) + 2); |
Line 1925... | Line 1839... | ||
1925 | { |
1839 | sprintf (name, ".%s", (yyvsp[0].id)); |
1926 | char *name = xmalloc (strlen ((yyvsp[(2) - (2)].id_const)) + 2); |
1840 | (yyval.id) = name; |
1927 | sprintf (name, ".%s", (yyvsp[(2) - (2)].id_const)); |
1841 | } |
- | 1842 | #line 1843 "deffilep.c" /* yacc.c:1661 */ |
|
1928 | (yyval.id) = name; |
1843 | break; |
Line 1929... | Line 1844... | ||
1929 | } |
1844 | |
1930 | break; |
1845 | case 79: |
1931 | 1846 | #line 285 "deffilep.y" /* yacc.c:1661 */ |
|
- | 1847 | { |
|
1932 | case 78: |
1848 | char *name = def_pool_alloc (strlen ((yyvsp[-2].id_const)) + 1 + strlen ((yyvsp[0].id)) + 1); |
Line 1933... | Line 1849... | ||
1933 | #line 280 "deffilep.y" |
1849 | sprintf (name, "%s.%s", (yyvsp[-2].id_const), (yyvsp[0].id)); |
1934 | { |
1850 | (yyval.id) = name; |
1935 | char *name = def_pool_alloc (strlen ((yyvsp[(2) - (2)].id)) + 2); |
1851 | } |
- | 1852 | #line 1853 "deffilep.c" /* yacc.c:1661 */ |
|
1936 | sprintf (name, ".%s", (yyvsp[(2) - (2)].id)); |
1853 | break; |
Line 1937... | Line 1854... | ||
1937 | (yyval.id) = name; |
1854 | |
1938 | } |
1855 | case 80: |
1939 | break; |
1856 | #line 291 "deffilep.y" /* yacc.c:1661 */ |
1940 | 1857 | { |
|
1941 | case 79: |
1858 | char *name = def_pool_alloc (strlen ((yyvsp[-2].id)) + 1 + strlen ((yyvsp[0].id)) + 1); |
1942 | #line 286 "deffilep.y" |
1859 | sprintf (name, "%s.%s", (yyvsp[-2].id), (yyvsp[0].id)); |
1943 | { |
1860 | (yyval.id) = name; |
- | 1861 | } |
|
1944 | char *name = def_pool_alloc (strlen ((yyvsp[(1) - (3)].id_const)) + 1 + strlen ((yyvsp[(3) - (3)].id)) + 1); |
1862 | #line 1863 "deffilep.c" /* yacc.c:1661 */ |
Line 1945... | Line 1863... | ||
1945 | sprintf (name, "%s.%s", (yyvsp[(1) - (3)].id_const), (yyvsp[(3) - (3)].id)); |
1863 | break; |
1946 | (yyval.id) = name; |
1864 | |
1947 | } |
1865 | case 81: |
1948 | break; |
1866 | #line 298 "deffilep.y" /* yacc.c:1661 */ |
1949 | 1867 | { (yyval.id) = (yyvsp[0].id); } |
|
1950 | case 80: |
1868 | #line 1869 "deffilep.c" /* yacc.c:1661 */ |
1951 | #line 292 "deffilep.y" |
1869 | break; |
- | 1870 | ||
1952 | { |
1871 | case 82: |
Line 1953... | Line 1872... | ||
1953 | char *name = def_pool_alloc (strlen ((yyvsp[(1) - (3)].id)) + 1 + strlen ((yyvsp[(3) - (3)].id)) + 1); |
1872 | #line 299 "deffilep.y" /* yacc.c:1661 */ |
1954 | sprintf (name, "%s.%s", (yyvsp[(1) - (3)].id), (yyvsp[(3) - (3)].id)); |
1873 | { (yyval.id) = ""; } |
1955 | (yyval.id) = name; |
1874 | #line 1875 "deffilep.c" /* yacc.c:1661 */ |
- | 1875 | break; |
|
1956 | } |
1876 | |
Line 1957... | Line 1877... | ||
1957 | break; |
1877 | case 83: |
1958 | 1878 | #line 302 "deffilep.y" /* yacc.c:1661 */ |
|
1959 | case 81: |
1879 | { (yyval.id) = (yyvsp[0].id); } |
- | 1880 | #line 1881 "deffilep.c" /* yacc.c:1661 */ |
|
1960 | #line 299 "deffilep.y" |
1881 | break; |
Line 1961... | Line 1882... | ||
1961 | { (yyval.id) = (yyvsp[(1) - (1)].id); } |
1882 | |
1962 | break; |
1883 | case 84: |
1963 | 1884 | #line 303 "deffilep.y" /* yacc.c:1661 */ |
|
- | 1885 | { (yyval.id) = 0; } |
|
1964 | case 82: |
1886 | #line 1887 "deffilep.c" /* yacc.c:1661 */ |
Line 1965... | Line 1887... | ||
1965 | #line 300 "deffilep.y" |
1887 | break; |
1966 | { (yyval.id) = ""; } |
1888 | |
1967 | break; |
1889 | case 85: |
- | 1890 | #line 307 "deffilep.y" /* yacc.c:1661 */ |
|
1968 | 1891 | { (yyval.number) = (yyvsp[0].number);} |
|
Line 1969... | Line 1892... | ||
1969 | case 83: |
1892 | #line 1893 "deffilep.c" /* yacc.c:1661 */ |
1970 | #line 303 "deffilep.y" |
1893 | break; |
1971 | { (yyval.id) = (yyvsp[(2) - (2)].id); } |
1894 | |
- | 1895 | case 86: |
|
1972 | break; |
1896 | #line 308 "deffilep.y" /* yacc.c:1661 */ |
Line 1973... | Line 1897... | ||
1973 | 1897 | { (yyval.number) = -1;} |
|
1974 | case 84: |
1898 | #line 1899 "deffilep.c" /* yacc.c:1661 */ |
1975 | #line 304 "deffilep.y" |
1899 | break; |
- | 1900 | ||
1976 | { (yyval.id) = 0; } |
1901 | case 87: |
Line 1977... | Line -... | ||
1977 | break; |
- | |
1978 | 1902 | #line 312 "deffilep.y" /* yacc.c:1661 */ |
|
1979 | case 85: |
1903 | { (yyval.id) = (yyvsp[0].id); } |
1980 | #line 308 "deffilep.y" |
1904 | #line 1905 "deffilep.c" /* yacc.c:1661 */ |
- | 1905 | break; |
|
- | 1906 | ||
- | 1907 | case 88: |
|
- | 1908 | #line 313 "deffilep.y" /* yacc.c:1661 */ |
|
- | 1909 | { (yyval.id) = 0; } |
|
- | 1910 | #line 1911 "deffilep.c" /* yacc.c:1661 */ |
|
- | 1911 | break; |
|
- | 1912 | ||
- | 1913 | case 89: |
|
- | 1914 | #line 316 "deffilep.y" /* yacc.c:1661 */ |
|
- | 1915 | { (yyval.vma) = (yyvsp[0].vma);} |
|
1981 | { (yyval.number) = (yyvsp[(2) - (2)].number);} |
1916 | #line 1917 "deffilep.c" /* yacc.c:1661 */ |
Line 1982... | Line 1917... | ||
1982 | break; |
1917 | break; |
1983 | 1918 | ||
1984 | case 86: |
1919 | case 90: |
Line 1985... | Line 1920... | ||
1985 | #line 309 "deffilep.y" |
1920 | #line 317 "deffilep.y" /* yacc.c:1661 */ |
Line 1986... | Line -... | ||
1986 | { (yyval.number) = -1;} |
- | |
1987 | break; |
1921 | { (yyval.vma) = (bfd_vma) -1;} |
1988 | 1922 | #line 1923 "deffilep.c" /* yacc.c:1661 */ |
|
1989 | case 87: |
1923 | break; |
Line 1990... | Line 1924... | ||
1990 | #line 313 "deffilep.y" |
1924 | |
Line 2086... | Line 2020... | ||
2086 | yystate = yydefgoto[yyn - YYNTOKENS]; |
2020 | yystate = yydefgoto[yyn - YYNTOKENS]; |
Line 2087... | Line 2021... | ||
2087 | 2021 | ||
Line 2088... | Line 2022... | ||
2088 | goto yynewstate; |
2022 | goto yynewstate; |
2089 | 2023 | ||
2090 | 2024 | ||
2091 | /*------------------------------------. |
2025 | /*--------------------------------------. |
- | 2026 | | yyerrlab -- here on detecting error. | |
|
- | 2027 | `--------------------------------------*/ |
|
- | 2028 | yyerrlab: |
|
- | 2029 | /* Make sure we have latest lookahead translation. See comments at |
|
2092 | | yyerrlab -- here on detecting error | |
2030 | user semantic actions for why this is necessary. */ |
2093 | `------------------------------------*/ |
2031 | yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); |
2094 | yyerrlab: |
2032 | |
2095 | /* If not already recovering from an error, report this error. */ |
2033 | /* If not already recovering from an error, report this error. */ |
2096 | if (!yyerrstatus) |
2034 | if (!yyerrstatus) |
2097 | { |
2035 | { |
2098 | ++yynerrs; |
2036 | ++yynerrs; |
- | 2037 | #if ! YYERROR_VERBOSE |
|
- | 2038 | yyerror (YY_("syntax error")); |
|
2099 | #if ! YYERROR_VERBOSE |
2039 | #else |
- | 2040 | # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ |
|
2100 | yyerror (YY_("syntax error")); |
2041 | yyssp, yytoken) |
2101 | #else |
2042 | { |
- | 2043 | char const *yymsgp = YY_("syntax error"); |
|
- | 2044 | int yysyntax_error_status; |
|
- | 2045 | yysyntax_error_status = YYSYNTAX_ERROR; |
|
2102 | { |
2046 | if (yysyntax_error_status == 0) |
2103 | YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); |
- | |
2104 | if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) |
- | |
2105 | { |
- | |
2106 | YYSIZE_T yyalloc = 2 * yysize; |
2047 | yymsgp = yymsg; |
2107 | if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) |
2048 | else if (yysyntax_error_status == 1) |
2108 | yyalloc = YYSTACK_ALLOC_MAXIMUM; |
2049 | { |
2109 | if (yymsg != yymsgbuf) |
2050 | if (yymsg != yymsgbuf) |
2110 | YYSTACK_FREE (yymsg); |
- | |
2111 | yymsg = (char *) YYSTACK_ALLOC (yyalloc); |
- | |
2112 | if (yymsg) |
2051 | YYSTACK_FREE (yymsg); |
2113 | yymsg_alloc = yyalloc; |
2052 | yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); |
2114 | else |
2053 | if (!yymsg) |
2115 | { |
- | |
2116 | yymsg = yymsgbuf; |
- | |
2117 | yymsg_alloc = sizeof yymsgbuf; |
- | |
2118 | } |
- | |
2119 | } |
- | |
2120 | 2054 | { |
|
2121 | if (0 < yysize && yysize <= yymsg_alloc) |
- | |
2122 | { |
2055 | yymsg = yymsgbuf; |
2123 | (void) yysyntax_error (yymsg, yystate, yychar); |
2056 | yymsg_alloc = sizeof yymsgbuf; |
2124 | yyerror (yymsg); |
2057 | yysyntax_error_status = 2; |
2125 | } |
2058 | } |
2126 | else |
2059 | else |
2127 | { |
2060 | { |
2128 | yyerror (YY_("syntax error")); |
2061 | yysyntax_error_status = YYSYNTAX_ERROR; |
- | 2062 | yymsgp = yymsg; |
|
- | 2063 | } |
|
- | 2064 | } |
|
2129 | if (yysize != 0) |
2065 | yyerror (yymsgp); |
- | 2066 | if (yysyntax_error_status == 2) |
|
2130 | goto yyexhaustedlab; |
2067 | goto yyexhaustedlab; |
2131 | } |
2068 | } |
Line 2132... | Line 2069... | ||
2132 | } |
2069 | # undef YYSYNTAX_ERROR |
2133 | #endif |
2070 | #endif |
2134 | } |
2071 | } |
2135 | 2072 | ||
Line 2136... | Line 2073... | ||
2136 | 2073 | ||
2137 | 2074 | ||
2138 | if (yyerrstatus == 3) |
2075 | if (yyerrstatus == 3) |
Line 2152... | Line 2089... | ||
2152 | yytoken, &yylval); |
2089 | yytoken, &yylval); |
2153 | yychar = YYEMPTY; |
2090 | yychar = YYEMPTY; |
2154 | } |
2091 | } |
2155 | } |
2092 | } |
Line 2156... | Line 2093... | ||
2156 | 2093 | ||
2157 | /* Else will try to reuse look-ahead token after shifting the error |
2094 | /* Else will try to reuse lookahead token after shifting the error |
2158 | token. */ |
2095 | token. */ |
Line 2159... | Line 2096... | ||
2159 | goto yyerrlab1; |
2096 | goto yyerrlab1; |
Line 2168... | Line 2105... | ||
2168 | YYERROR and the label yyerrorlab therefore never appears in user |
2105 | YYERROR and the label yyerrorlab therefore never appears in user |
2169 | code. */ |
2106 | code. */ |
2170 | if (/*CONSTCOND*/ 0) |
2107 | if (/*CONSTCOND*/ 0) |
2171 | goto yyerrorlab; |
2108 | goto yyerrorlab; |
Line 2172... | Line 2109... | ||
2172 | 2109 | ||
2173 | /* Do not reclaim the symbols of the rule which action triggered |
2110 | /* Do not reclaim the symbols of the rule whose action triggered |
2174 | this YYERROR. */ |
2111 | this YYERROR. */ |
2175 | YYPOPSTACK (yylen); |
2112 | YYPOPSTACK (yylen); |
2176 | yylen = 0; |
2113 | yylen = 0; |
2177 | YY_STACK_PRINT (yyss, yyssp); |
2114 | YY_STACK_PRINT (yyss, yyssp); |
Line 2186... | Line 2123... | ||
2186 | yyerrstatus = 3; /* Each real token shifted decrements this. */ |
2123 | yyerrstatus = 3; /* Each real token shifted decrements this. */ |
Line 2187... | Line 2124... | ||
2187 | 2124 | ||
2188 | for (;;) |
2125 | for (;;) |
2189 | { |
2126 | { |
2190 | yyn = yypact[yystate]; |
2127 | yyn = yypact[yystate]; |
2191 | if (yyn != YYPACT_NINF) |
2128 | if (!yypact_value_is_default (yyn)) |
2192 | { |
2129 | { |
2193 | yyn += YYTERROR; |
2130 | yyn += YYTERROR; |
2194 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) |
2131 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) |
2195 | { |
2132 | { |
Line 2209... | Line 2146... | ||
2209 | YYPOPSTACK (1); |
2146 | YYPOPSTACK (1); |
2210 | yystate = *yyssp; |
2147 | yystate = *yyssp; |
2211 | YY_STACK_PRINT (yyss, yyssp); |
2148 | YY_STACK_PRINT (yyss, yyssp); |
2212 | } |
2149 | } |
Line 2213... | Line 2150... | ||
2213 | 2150 | ||
2214 | if (yyn == YYFINAL) |
- | |
2215 | YYACCEPT; |
- | |
2216 | 2151 | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
|
- | 2152 | *++yyvsp = yylval; |
|
Line 2217... | Line 2153... | ||
2217 | *++yyvsp = yylval; |
2153 | YY_IGNORE_MAYBE_UNINITIALIZED_END |
2218 | 2154 | ||
Line 2236... | Line 2172... | ||
2236 | `-----------------------------------*/ |
2172 | `-----------------------------------*/ |
2237 | yyabortlab: |
2173 | yyabortlab: |
2238 | yyresult = 1; |
2174 | yyresult = 1; |
2239 | goto yyreturn; |
2175 | goto yyreturn; |
Line 2240... | Line 2176... | ||
2240 | 2176 | ||
2241 | #ifndef yyoverflow |
2177 | #if !defined yyoverflow || YYERROR_VERBOSE |
2242 | /*-------------------------------------------------. |
2178 | /*-------------------------------------------------. |
2243 | | yyexhaustedlab -- memory exhaustion comes here. | |
2179 | | yyexhaustedlab -- memory exhaustion comes here. | |
2244 | `-------------------------------------------------*/ |
2180 | `-------------------------------------------------*/ |
2245 | yyexhaustedlab: |
2181 | yyexhaustedlab: |
2246 | yyerror (YY_("memory exhausted")); |
2182 | yyerror (YY_("memory exhausted")); |
2247 | yyresult = 2; |
2183 | yyresult = 2; |
2248 | /* Fall through. */ |
2184 | /* Fall through. */ |
Line 2249... | Line 2185... | ||
2249 | #endif |
2185 | #endif |
2250 | 2186 | ||
- | 2187 | yyreturn: |
|
- | 2188 | if (yychar != YYEMPTY) |
|
- | 2189 | { |
|
- | 2190 | /* Make sure we have latest lookahead translation. See comments at |
|
2251 | yyreturn: |
2191 | user semantic actions for why this is necessary. */ |
2252 | if (yychar != YYEOF && yychar != YYEMPTY) |
2192 | yytoken = YYTRANSLATE (yychar); |
- | 2193 | yydestruct ("Cleanup: discarding lookahead", |
|
2253 | yydestruct ("Cleanup: discarding lookahead", |
2194 | yytoken, &yylval); |
2254 | yytoken, &yylval); |
2195 | } |
2255 | /* Do not reclaim the symbols of the rule which action triggered |
2196 | /* Do not reclaim the symbols of the rule whose action triggered |
2256 | this YYABORT or YYACCEPT. */ |
2197 | this YYABORT or YYACCEPT. */ |
2257 | YYPOPSTACK (yylen); |
2198 | YYPOPSTACK (yylen); |
2258 | YY_STACK_PRINT (yyss, yyssp); |
2199 | YY_STACK_PRINT (yyss, yyssp); |
Line 2268... | Line 2209... | ||
2268 | #endif |
2209 | #endif |
2269 | #if YYERROR_VERBOSE |
2210 | #if YYERROR_VERBOSE |
2270 | if (yymsg != yymsgbuf) |
2211 | if (yymsg != yymsgbuf) |
2271 | YYSTACK_FREE (yymsg); |
2212 | YYSTACK_FREE (yymsg); |
2272 | #endif |
2213 | #endif |
2273 | /* Make sure YYID is used. */ |
- | |
2274 | return YYID (yyresult); |
2214 | return yyresult; |
2275 | } |
2215 | } |
2276 | - | ||
2277 | - | ||
2278 | #line 348 "deffilep.y" |
2216 | #line 347 "deffilep.y" /* yacc.c:1906 */ |
Line 2279... | Line 2217... | ||
2279 | 2217 | ||
2280 | 2218 | ||
2281 | /***************************************************************************** |
2219 | /***************************************************************************** |
Line 3420... | Line 3358... | ||
3420 | { |
3358 | { |
3421 | pool_strs = p->next; |
3359 | pool_strs = p->next; |
3422 | free (p); |
3360 | free (p); |
3423 | } |
3361 | } |
3424 | }>>>>>>>=>>>>=>><><<><<<>>>>>>>>=>=>=>=>>=>=>>>=>=>=>>>=>=>>=>=>>>>>>>=>>>>=>>>=>>> |
3362 | }>>>>>>>=>>>>=>><><<><<<>>>>>>>>=>=>=>=>=>=>>>=>=>>=>=>>=>=>>=>=>=>=>>>>>>=>>>=>>>=>>>=> |
3425 | - |