1 /* A Bison parser, made by GNU Bison 2.1. */
3 /* Skeleton parser for Yacc-like parsing with Bison,
4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA. */
21 /* As a special exception, when this file is copied by Bison into a
22 Bison output file, you may use that output file without restriction.
23 This special exception was added by the Free Software Foundation
24 in version 1.24 of Bison. */
26 /* Written by Richard Stallman by simplifying the original so called
27 ``semantic'' parser. */
29 /* All symbols defined below should begin with yy or YY, to avoid
30 infringing on user name space. This should be done even for local
31 variables, as they might otherwise be expanded by user macros.
32 There are some unavoidable exceptions within include files to
33 define necessary library symbols; they are noted "INFRINGES ON
34 USER NAME SPACE" below. */
36 /* Identify Bison output. */
40 #define YYBISON_VERSION "2.1"
43 #define YYSKELETON_NAME "yacc.c"
48 /* Using locations. */
49 #define YYLSP_NEEDED 1
51 /* Substitute the variable and function names. */
52 #define yyparse ael_yyparse
53 #define yylex ael_yylex
54 #define yyerror ael_yyerror
55 #define yylval ael_yylval
56 #define yychar ael_yychar
57 #define yydebug ael_yydebug
58 #define yynerrs ael_yynerrs
59 #define yylloc ael_yylloc
64 /* Put the tokens into the symbol table, so that GDB and other debuggers
109 #define KW_CONTEXT 258
122 #define KW_GLOBALS 271
123 #define KW_IGNOREPAT 272
124 #define KW_SWITCH 273
126 #define KW_IFTIME 275
128 #define KW_RANDOM 277
129 #define KW_ABSTRACT 278
130 #define EXTENMARK 279
133 #define KW_RETURN 282
135 #define KW_CONTINUE 284
136 #define KW_REGEXTEN 285
141 #define KW_PATTERN 290
142 #define KW_DEFAULT 291
144 #define KW_SWITCHES 293
145 #define KW_ESWITCHES 294
146 #define KW_INCLUDES 295
152 /* Copy the first part of user declarations. */
156 * Asterisk -- An open source telephony toolkit.
158 * Copyright (C) 2006, Digium, Inc.
160 * Steve Murphy <murf@parsetree.com>
162 * See http://www.asterisk.org for more information about
163 * the Asterisk project. Please do not directly contact
164 * any of the maintainers of this project for assistance;
165 * the project provides a web site, mailing lists and IRC
166 * channels for your use.
168 * This program is free software, distributed under the terms of
169 * the GNU General Public License Version 2. See the LICENSE file
170 * at the top of the source tree.
174 * \brief Bison Grammar description of AEL2.
180 #include "asterisk/logger.h"
181 #include "asterisk/ael_structs.h"
183 static pval *npval(pvaltype type, int first_line, int last_line,
184 int first_column, int last_column);
185 static void linku1(pval *head, pval *tail);
187 void reset_parencount(yyscan_t yyscanner);
188 void reset_semicount(yyscan_t yyscanner);
189 void reset_argcount(yyscan_t yyscanner );
191 #define YYLEX_PARAM ((struct parse_io *)parseio)->scanner
192 #define YYERROR_VERBOSE 1
194 extern char *my_file;
196 int ael_is_funcname(char *name);
198 static char *ael_token_subst(char *mess);
202 /* Enabling traces. */
207 /* Enabling verbose error messages. */
208 #ifdef YYERROR_VERBOSE
209 # undef YYERROR_VERBOSE
210 # define YYERROR_VERBOSE 1
212 # define YYERROR_VERBOSE 1
215 /* Enabling the token table. */
216 #ifndef YYTOKEN_TABLE
217 # define YYTOKEN_TABLE 0
220 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
222 typedef union YYSTYPE {
226 /* Line 196 of yacc.c. */
227 #line 228 "ael.tab.c"
228 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
229 # define YYSTYPE_IS_DECLARED 1
230 # define YYSTYPE_IS_TRIVIAL 1
233 #if ! defined (YYLTYPE) && ! defined (YYLTYPE_IS_DECLARED)
234 typedef struct YYLTYPE
241 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
242 # define YYLTYPE_IS_DECLARED 1
243 # define YYLTYPE_IS_TRIVIAL 1
247 /* Copy the second part of user declarations. */
250 /* declaring these AFTER the union makes things a lot simpler! */
251 void yyerror(YYLTYPE *locp, struct parse_io *parseio, char const *s);
252 int ael_yylex (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , void * yyscanner);
256 /* Line 219 of yacc.c. */
257 #line 258 "ael.tab.c"
259 #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
260 # define YYSIZE_T __SIZE_TYPE__
262 #if ! defined (YYSIZE_T) && defined (size_t)
263 # define YYSIZE_T size_t
265 #if ! defined (YYSIZE_T) && (defined (__STDC__) || defined (__cplusplus))
266 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
267 # define YYSIZE_T size_t
269 #if ! defined (YYSIZE_T)
270 # define YYSIZE_T unsigned int
276 # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
277 # define YY_(msgid) dgettext ("bison-runtime", msgid)
281 # define YY_(msgid) msgid
285 #if ! defined (yyoverflow) || YYERROR_VERBOSE
287 /* The parser invokes alloca or malloc; define the necessary symbols. */
289 # ifdef YYSTACK_USE_ALLOCA
290 # if YYSTACK_USE_ALLOCA
292 # define YYSTACK_ALLOC __builtin_alloca
294 # define YYSTACK_ALLOC alloca
295 # if defined (__STDC__) || defined (__cplusplus)
296 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
297 # define YYINCLUDED_STDLIB_H
303 # ifdef YYSTACK_ALLOC
304 /* Pacify GCC's `empty if-body' warning. */
305 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
306 # ifndef YYSTACK_ALLOC_MAXIMUM
307 /* The OS might guarantee only one guard page at the bottom of the stack,
308 and a page size can be as small as 4096 bytes. So we cannot safely
309 invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
310 to allow for a few compiler-allocated temporary stack slots. */
311 # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2005 */
314 # define YYSTACK_ALLOC YYMALLOC
315 # define YYSTACK_FREE YYFREE
316 # ifndef YYSTACK_ALLOC_MAXIMUM
317 # define YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1)
323 # define YYMALLOC malloc
324 # if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H) \
325 && (defined (__STDC__) || defined (__cplusplus)))
326 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
331 # if (! defined (free) && ! defined (YYINCLUDED_STDLIB_H) \
332 && (defined (__STDC__) || defined (__cplusplus)))
333 void free (void *); /* INFRINGES ON USER NAME SPACE */
340 #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
343 #if (! defined (yyoverflow) \
344 && (! defined (__cplusplus) \
345 || (defined (YYLTYPE_IS_TRIVIAL) && YYLTYPE_IS_TRIVIAL \
346 && defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
348 /* A type that is properly aligned for any stack member. */
356 /* The size of the maximum gap between one aligned stack and the next. */
357 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
359 /* The size of an array large to enough to hold all stacks, each with
361 # define YYSTACK_BYTES(N) \
362 ((N) * (sizeof (short int) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
363 + 2 * YYSTACK_GAP_MAXIMUM)
365 /* Copy COUNT objects from FROM to TO. The source and destination do
368 # if defined (__GNUC__) && 1 < __GNUC__
369 # define YYCOPY(To, From, Count) \
370 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
372 # define YYCOPY(To, From, Count) \
376 for (yyi = 0; yyi < (Count); yyi++) \
377 (To)[yyi] = (From)[yyi]; \
383 /* Relocate STACK from its old location to the new one. The
384 local variables YYSIZE and YYSTACKSIZE give the old and new number of
385 elements in the stack, and YYPTR gives the new location of the
386 stack. Advance YYPTR to a properly aligned location for the next
388 # define YYSTACK_RELOCATE(Stack) \
391 YYSIZE_T yynewbytes; \
392 YYCOPY (&yyptr->Stack, Stack, yysize); \
393 Stack = &yyptr->Stack; \
394 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
395 yyptr += yynewbytes / sizeof (*yyptr); \
401 #if defined (__STDC__) || defined (__cplusplus)
402 typedef signed char yysigned_char;
404 typedef short int yysigned_char;
407 /* YYFINAL -- State number of the termination state. */
409 /* YYLAST -- Last index in YYTABLE. */
412 /* YYNTOKENS -- Number of terminals. */
414 /* YYNNTS -- Number of nonterminals. */
416 /* YYNRULES -- Number of rules. */
418 /* YYNRULES -- Number of states. */
419 #define YYNSTATES 354
421 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
423 #define YYMAXUTOK 296
425 #define YYTRANSLATE(YYX) \
426 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
428 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
429 static const unsigned char yytranslate[] =
431 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
432 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
433 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
434 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
435 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
436 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
437 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
438 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
439 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
440 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
441 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
442 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
443 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
444 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
445 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
446 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
447 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
448 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
449 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
450 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
451 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
452 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
453 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
454 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
455 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
456 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
457 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
458 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
459 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
460 35, 36, 37, 38, 39, 40, 41
464 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
466 static const unsigned short int yyprhs[] =
468 0, 0, 3, 5, 7, 10, 13, 15, 17, 19,
469 21, 27, 32, 38, 43, 50, 56, 63, 69, 78,
470 86, 94, 101, 106, 110, 112, 115, 118, 119, 125,
471 127, 131, 134, 136, 138, 141, 144, 146, 148, 150,
472 152, 154, 155, 161, 164, 166, 171, 175, 180, 188,
473 197, 199, 202, 205, 206, 212, 213, 219, 234, 245,
474 247, 250, 252, 255, 259, 261, 264, 268, 269, 276,
475 280, 281, 287, 291, 295, 298, 299, 300, 301, 314,
476 315, 322, 325, 329, 333, 336, 339, 340, 346, 349,
477 352, 355, 358, 363, 366, 371, 374, 379, 381, 383,
478 387, 391, 397, 403, 409, 415, 417, 421, 427, 431,
479 437, 441, 442, 448, 452, 453, 457, 461, 464, 466,
480 467, 471, 474, 476, 479, 484, 488, 493, 497, 500,
481 504, 506, 509, 511, 517, 522, 526, 531, 535, 538,
482 542, 545, 548, 563, 574, 578, 594, 606, 609, 611,
486 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
487 static const yysigned_char yyrhs[] =
489 43, 0, -1, 44, -1, 45, -1, 44, 45, -1,
490 44, 1, -1, 46, -1, 47, -1, 48, -1, 8,
491 -1, 3, 41, 4, 53, 5, -1, 3, 41, 4,
492 5, -1, 3, 36, 4, 53, 5, -1, 3, 36,
493 4, 5, -1, 23, 3, 41, 4, 53, 5, -1,
494 23, 3, 41, 4, 5, -1, 23, 3, 36, 4,
495 53, 5, -1, 23, 3, 36, 4, 5, -1, 15,
496 41, 6, 52, 7, 4, 86, 5, -1, 15, 41,
497 6, 52, 7, 4, 5, -1, 15, 41, 6, 7,
498 4, 86, 5, -1, 15, 41, 6, 7, 4, 5,
499 -1, 16, 4, 49, 5, -1, 16, 4, 5, -1,
500 50, -1, 49, 50, -1, 49, 1, -1, -1, 41,
501 9, 51, 41, 8, -1, 41, -1, 52, 10, 41,
502 -1, 52, 1, -1, 54, -1, 1, -1, 53, 54,
503 -1, 53, 1, -1, 57, -1, 93, -1, 88, -1,
504 89, -1, 56, -1, -1, 41, 9, 55, 41, 8,
505 -1, 41, 1, -1, 8, -1, 17, 24, 41, 8,
506 -1, 41, 24, 69, -1, 30, 41, 24, 69, -1,
507 31, 6, 65, 7, 41, 24, 69, -1, 30, 31,
508 6, 65, 7, 41, 24, 69, -1, 69, -1, 58,
509 69, -1, 58, 1, -1, -1, 19, 6, 60, 64,
510 7, -1, -1, 22, 6, 62, 64, 7, -1, 20,
511 6, 65, 11, 65, 11, 65, 13, 65, 13, 65,
512 13, 65, 7, -1, 20, 6, 41, 13, 65, 13,
513 65, 13, 65, 7, -1, 41, -1, 41, 41, -1,
514 41, -1, 41, 41, -1, 41, 41, 41, -1, 41,
515 -1, 41, 41, -1, 41, 11, 41, -1, -1, 18,
516 6, 68, 41, 7, 4, -1, 4, 58, 5, -1,
517 -1, 41, 9, 70, 41, 8, -1, 25, 76, 8,
518 -1, 26, 77, 8, -1, 41, 11, -1, -1, -1,
519 -1, 32, 6, 71, 41, 8, 72, 41, 8, 73,
520 41, 7, 69, -1, -1, 33, 6, 74, 41, 7,
521 69, -1, 67, 5, -1, 67, 84, 5, -1, 12,
522 78, 8, -1, 82, 8, -1, 41, 8, -1, -1,
523 82, 9, 75, 41, 8, -1, 28, 8, -1, 27,
524 8, -1, 29, 8, -1, 61, 69, -1, 61, 69,
525 21, 69, -1, 59, 69, -1, 59, 69, 21, 69,
526 -1, 63, 69, -1, 63, 69, 21, 69, -1, 8,
527 -1, 66, -1, 66, 13, 66, -1, 66, 10, 66,
528 -1, 66, 13, 66, 13, 66, -1, 66, 10, 66,
529 10, 66, -1, 36, 13, 66, 13, 66, -1, 36,
530 10, 66, 10, 66, -1, 66, -1, 66, 10, 66,
531 -1, 66, 10, 41, 14, 41, -1, 66, 14, 66,
532 -1, 66, 10, 41, 14, 36, -1, 66, 14, 36,
533 -1, -1, 41, 6, 79, 83, 7, -1, 41, 6,
534 7, -1, -1, 41, 81, 6, -1, 80, 83, 7,
535 -1, 80, 7, -1, 64, -1, -1, 83, 10, 41,
536 -1, 83, 10, -1, 85, -1, 84, 85, -1, 34,
537 41, 11, 58, -1, 36, 11, 58, -1, 35, 41,
538 11, 58, -1, 34, 41, 11, -1, 36, 11, -1,
539 35, 41, 11, -1, 87, -1, 86, 87, -1, 69,
540 -1, 37, 41, 4, 58, 5, -1, 38, 4, 90,
541 5, -1, 38, 4, 5, -1, 39, 4, 90, 5,
542 -1, 39, 4, 5, -1, 41, 8, -1, 90, 41,
543 8, -1, 90, 1, -1, 92, 8, -1, 92, 13,
544 65, 11, 65, 11, 65, 13, 65, 13, 65, 13,
545 65, 8, -1, 92, 13, 41, 13, 65, 13, 65,
546 13, 65, 8, -1, 91, 92, 8, -1, 91, 92,
547 13, 65, 11, 65, 11, 65, 13, 65, 13, 65,
548 13, 65, 8, -1, 91, 92, 13, 41, 13, 65,
549 13, 65, 13, 65, 8, -1, 91, 1, -1, 41,
550 -1, 36, -1, 40, 4, 91, 5, -1, 40, 4,
554 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
555 static const unsigned short int yyrline[] =
557 0, 129, 129, 132, 133, 144, 147, 148, 149, 150,
558 153, 158, 162, 167, 171, 177, 182, 188, 195, 198,
559 201, 204, 209, 212, 217, 218, 219, 222, 222, 228,
560 231, 236, 239, 240, 241, 244, 247, 248, 249, 250,
561 251, 252, 252, 256, 257, 260, 265, 269, 274, 279,
562 288, 289, 292, 295, 295, 300, 300, 305, 326, 346,
563 347, 349, 350, 351, 354, 355, 356, 359, 359, 364,
564 365, 365, 368, 369, 370, 371, 372, 373, 371, 376,
565 376, 379, 380, 381, 382, 383, 385, 385, 418, 419,
566 420, 421, 422, 423, 424, 425, 426, 427, 430, 431,
567 434, 437, 442, 447, 452, 459, 462, 465, 470, 475,
568 480, 487, 487, 490, 493, 493, 502, 508, 511, 512,
569 513, 514, 517, 518, 523, 524, 525, 526, 527, 528,
570 531, 532, 537, 538, 541, 542, 545, 546, 549, 550,
571 551, 554, 555, 576, 589, 590, 610, 623, 626, 627,
576 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
577 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
578 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
579 static const char *const yytname[] =
581 "$end", "error", "$undefined", "KW_CONTEXT", "LC", "RC", "LP", "RP",
582 "SEMI", "EQ", "COMMA", "COLON", "AMPER", "BAR", "AT", "KW_MACRO",
583 "KW_GLOBALS", "KW_IGNOREPAT", "KW_SWITCH", "KW_IF", "KW_IFTIME",
584 "KW_ELSE", "KW_RANDOM", "KW_ABSTRACT", "EXTENMARK", "KW_GOTO", "KW_JUMP",
585 "KW_RETURN", "KW_BREAK", "KW_CONTINUE", "KW_REGEXTEN", "KW_HINT",
586 "KW_FOR", "KW_WHILE", "KW_CASE", "KW_PATTERN", "KW_DEFAULT", "KW_CATCH",
587 "KW_SWITCHES", "KW_ESWITCHES", "KW_INCLUDES", "word", "$accept", "file",
588 "objects", "object", "context", "macro", "globals", "global_statements",
589 "global_statement", "@1", "arglist", "elements", "element", "@2",
590 "ignorepat", "extension", "statements", "if_head", "@3", "random_head",
591 "@4", "iftime_head", "word_list", "word3_list", "goto_word",
592 "switch_head", "@5", "statement", "@6", "@7", "@8", "@9", "@10", "@11",
593 "target", "jumptarget", "macro_call", "@12", "application_call_head",
594 "@13", "application_call", "eval_arglist", "case_statements",
595 "case_statement", "macro_statements", "macro_statement", "switches",
596 "eswitches", "switchlist", "includeslist", "includedname", "includes", 0
601 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
603 static const unsigned short int yytoknum[] =
605 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
606 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
607 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
608 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
613 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
614 static const unsigned char yyr1[] =
616 0, 42, 43, 44, 44, 44, 45, 45, 45, 45,
617 46, 46, 46, 46, 46, 46, 46, 46, 47, 47,
618 47, 47, 48, 48, 49, 49, 49, 51, 50, 52,
619 52, 52, 53, 53, 53, 53, 54, 54, 54, 54,
620 54, 55, 54, 54, 54, 56, 57, 57, 57, 57,
621 58, 58, 58, 60, 59, 62, 61, 63, 63, 64,
622 64, 65, 65, 65, 66, 66, 66, 68, 67, 69,
623 70, 69, 69, 69, 69, 71, 72, 73, 69, 74,
624 69, 69, 69, 69, 69, 69, 75, 69, 69, 69,
625 69, 69, 69, 69, 69, 69, 69, 69, 76, 76,
626 76, 76, 76, 76, 76, 77, 77, 77, 77, 77,
627 77, 79, 78, 78, 81, 80, 82, 82, 83, 83,
628 83, 83, 84, 84, 85, 85, 85, 85, 85, 85,
629 86, 86, 87, 87, 88, 88, 89, 89, 90, 90,
630 90, 91, 91, 91, 91, 91, 91, 91, 92, 92,
634 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
635 static const unsigned char yyr2[] =
637 0, 2, 1, 1, 2, 2, 1, 1, 1, 1,
638 5, 4, 5, 4, 6, 5, 6, 5, 8, 7,
639 7, 6, 4, 3, 1, 2, 2, 0, 5, 1,
640 3, 2, 1, 1, 2, 2, 1, 1, 1, 1,
641 1, 0, 5, 2, 1, 4, 3, 4, 7, 8,
642 1, 2, 2, 0, 5, 0, 5, 14, 10, 1,
643 2, 1, 2, 3, 1, 2, 3, 0, 6, 3,
644 0, 5, 3, 3, 2, 0, 0, 0, 12, 0,
645 6, 2, 3, 3, 2, 2, 0, 5, 2, 2,
646 2, 2, 4, 2, 4, 2, 4, 1, 1, 3,
647 3, 5, 5, 5, 5, 1, 3, 5, 3, 5,
648 3, 0, 5, 3, 0, 3, 3, 2, 1, 0,
649 3, 2, 1, 2, 4, 3, 4, 3, 2, 3,
650 1, 2, 1, 5, 4, 3, 4, 3, 2, 3,
651 2, 2, 14, 10, 3, 15, 11, 2, 1, 1,
655 /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
656 STATE-NUM when YYTABLE doesn't specify something else to do. Zero
657 means the default is an error. */
658 static const unsigned char yydefact[] =
660 0, 0, 9, 0, 0, 0, 0, 0, 3, 6,
661 7, 8, 0, 0, 0, 0, 0, 1, 5, 4,
662 0, 0, 0, 23, 0, 0, 24, 0, 0, 33,
663 13, 44, 0, 0, 0, 0, 0, 0, 0, 0,
664 32, 40, 36, 38, 39, 37, 11, 0, 0, 29,
665 0, 27, 26, 22, 25, 0, 0, 0, 0, 0,
666 0, 0, 0, 0, 43, 41, 0, 35, 12, 34,
667 10, 0, 31, 0, 0, 0, 17, 0, 15, 0,
668 0, 0, 0, 61, 0, 135, 0, 0, 137, 0,
669 151, 149, 148, 0, 0, 0, 0, 97, 0, 0,
670 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
671 114, 0, 0, 0, 0, 46, 119, 0, 21, 0,
672 132, 0, 130, 0, 30, 0, 16, 14, 45, 0,
673 47, 62, 0, 138, 140, 134, 0, 136, 147, 150,
674 0, 141, 0, 0, 0, 50, 0, 0, 67, 53,
675 0, 55, 0, 64, 98, 0, 105, 0, 89, 88,
676 90, 75, 79, 85, 70, 74, 0, 93, 91, 95,
677 81, 0, 0, 0, 0, 122, 117, 59, 118, 0,
678 84, 86, 0, 20, 131, 19, 0, 28, 0, 63,
679 0, 139, 144, 0, 61, 0, 42, 52, 69, 51,
680 111, 83, 0, 0, 61, 0, 0, 0, 0, 0,
681 65, 0, 0, 72, 0, 0, 73, 0, 0, 0,
682 115, 0, 0, 0, 0, 0, 128, 82, 123, 60,
683 116, 121, 0, 0, 18, 0, 0, 61, 0, 0,
684 0, 113, 119, 0, 0, 0, 0, 0, 0, 0,
685 66, 100, 99, 64, 106, 110, 108, 0, 0, 0,
686 94, 92, 96, 127, 129, 0, 120, 0, 0, 0,
687 48, 0, 0, 0, 0, 0, 0, 54, 0, 0,
688 56, 0, 0, 0, 0, 0, 76, 0, 71, 0,
689 0, 87, 133, 49, 0, 0, 0, 0, 112, 68,
690 0, 0, 104, 103, 102, 101, 109, 107, 0, 80,
691 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
692 0, 0, 0, 77, 0, 0, 0, 0, 0, 0,
693 0, 0, 0, 143, 0, 58, 0, 0, 146, 0,
694 0, 0, 0, 0, 0, 0, 78, 0, 0, 0,
698 /* YYDEFGOTO[NTERM-NUM]. */
699 static const short int yydefgoto[] =
701 -1, 6, 7, 8, 9, 10, 11, 25, 26, 75,
702 50, 39, 40, 95, 41, 42, 144, 111, 203, 112,
703 206, 113, 178, 84, 154, 114, 202, 145, 219, 217,
704 308, 330, 218, 232, 155, 157, 147, 242, 116, 166,
705 117, 179, 174, 175, 121, 122, 43, 44, 87, 93,
709 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
711 #define YYPACT_NINF -215
712 static const short int yypact[] =
714 212, 127, -215, -35, 55, 23, 85, 561, -215, -215,
715 -215, -215, 64, 118, 112, 13, 128, -215, -215, -215,
716 157, 208, 2, -215, 123, 19, -215, 130, 137, -215,
717 -215, -215, 143, 43, 169, 181, 182, 189, 126, 284,
718 -215, -215, -215, -215, -215, -215, -215, 337, 196, -215,
719 141, -215, -215, -215, -215, 342, 357, 135, 188, 177,
720 170, 22, 36, 29, -215, -215, 527, -215, -215, -215,
721 -215, 423, -215, 206, 191, 195, -215, 384, -215, 399,
722 210, 170, 527, 200, 215, -215, 242, 51, -215, 57,
723 -215, -215, -215, 12, 158, 220, 527, -215, 223, 245,
724 250, 259, 262, 148, 229, 263, 265, 266, 269, 275,
725 251, 527, 527, 527, 156, -215, 26, 145, -215, 243,
726 -215, 449, -215, 475, -215, 279, -215, -215, -215, 281,
727 -215, 252, 253, -215, -215, -215, 283, -215, -215, -215,
728 204, -215, 254, 291, 278, -215, 296, 300, -215, -215,
729 276, -215, 69, 40, 95, 310, 114, 313, -215, -215,
730 -215, -215, -215, -215, -215, -215, 323, 311, 318, 325,
731 -215, 290, 303, 340, 172, -215, -215, 307, -215, 230,
732 -215, -215, 348, -215, -215, -215, 501, -215, 312, -215,
733 331, -215, -215, 315, 58, 346, -215, -215, -215, -215,
734 353, -215, 320, 322, 76, 355, 322, 229, 229, 328,
735 -215, 229, 229, -215, 329, 178, -215, 330, 338, 343,
736 -215, 527, 527, 527, 375, 379, 527, -215, -215, -215,
737 -215, 350, 352, 527, -215, 370, 527, 108, 388, 170,
738 170, -215, 322, 395, 396, 170, 170, 398, 354, 393,
739 -215, 400, 404, 50, -215, -215, -215, 401, 405, 403,
740 -215, -215, -215, 527, 527, 3, -215, 410, 308, 527,
741 -215, 170, 170, 406, 397, 235, 409, -215, 407, 415,
742 -215, 229, 229, 229, 229, 190, -215, 527, -215, 68,
743 111, -215, -215, -215, 408, 421, 170, 170, -215, -215,
744 170, 170, -215, -215, -215, -215, -215, -215, 392, -215,
745 170, 170, 431, 433, 434, 445, 426, 446, 450, 170,
746 170, 170, 170, -215, 170, 170, 428, 452, 455, 453,
747 429, 464, 460, -215, 170, -215, 170, 477, -215, 170,
748 472, 476, 527, 478, 170, 170, -215, 170, 480, 485,
749 488, -215, -215, -215
752 /* YYPGOTO[NTERM-NUM]. */
753 static const short int yypgoto[] =
755 -215, -215, -215, 491, -215, -215, -215, -215, 474, -215,
756 -215, 104, -37, -215, -215, -215, -214, -215, -215, -215,
757 -215, -215, 60, -67, -101, -215, -215, -66, -215, -215,
758 -215, -215, -215, -215, -215, -215, -215, -215, -215, -215,
759 -215, 268, -215, 341, 391, -120, -215, -215, 456, -215,
763 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
764 positive, shift that token. If negative, reduce the rule which
765 number is the opposite. If zero, do what YYDEFACT says.
766 If YYTABLE_NINF, syntax error. */
767 #define YYTABLE_NINF -127
768 static const short int yytable[] =
770 115, 184, 69, 156, 197, 120, 14, 96, -125, 48,
771 69, 97, 265, 138, 129, 98, 130, 139, 23, 268,
772 52, 99, 100, 101, 53, 102, 16, 85, 103, 104,
773 105, 106, 107, 176, 90, 108, 109, -125, -125, -125,
774 69, 88, 69, 49, 110, 167, 168, 169, 91, 289,
775 290, 209, 134, 92, 24, 120, 135, 120, 134, 15,
776 24, 209, 137, 86, 285, 91, 184, 177, 20, 197,
777 92, 239, 96, -124, 58, 195, 97, 86, 199, 207,
778 98, 210, 208, 205, 59, 17, 99, 100, 101, 245,
779 102, 210, 136, 103, 104, 105, 106, 107, 136, 131,
780 108, 109, -124, -124, -124, 211, 248, 249, 212, 110,
781 251, 252, 197, 254, 256, 96, -126, 131, 22, 97,
782 120, 271, 21, 98, 214, 47, 238, 64, 215, 99,
783 100, 101, 51, 102, 55, 65, 103, 104, 105, 106,
784 107, 56, 72, 108, 109, -126, -126, -126, 73, 131,
785 66, 74, 110, 180, 181, 260, 261, 262, 29, 77,
786 79, 170, 30, 12, 27, 31, 141, 57, 13, 28,
787 270, 142, 273, 274, 32, 60, 80, 227, 278, 279,
788 302, 303, 304, 305, 152, 61, 62, 33, 34, 153,
789 171, 172, 173, 63, 81, 35, 36, 37, 38, 199,
790 71, 82, 199, 293, 294, 295, 171, 172, 173, 29,
791 123, 83, 192, 46, 255, 1, 31, 193, 128, 153,
792 2, 309, 132, 199, 199, 32, 306, 3, 4, 312,
793 313, 307, 124, 314, 315, 5, 125, 230, 33, 34,
794 231, 131, 298, 317, 318, 231, 35, 36, 37, 38,
795 133, 148, 326, 327, 328, 329, 149, 331, 332, 163,
796 164, 143, 165, 244, 146, 150, 247, 340, 151, 341,
797 153, 158, 343, 159, 160, 161, 346, 348, 349, 197,
798 350, 162, 96, 198, 182, 67, 97, 187, 188, 68,
799 98, 191, 31, 189, 190, 194, 99, 100, 101, 196,
800 102, 32, 200, 103, 104, 105, 106, 107, 201, 197,
801 108, 109, 96, 292, 33, 34, 97, 204, 213, 110,
802 98, 216, 35, 36, 37, 38, 99, 100, 101, 220,
803 102, 224, 221, 103, 104, 105, 106, 107, 67, 222,
804 108, 109, 70, 29, 225, 31, 223, 76, 229, 110,
805 31, 226, 233, 235, 32, 236, 237, 240, 29, 32,
806 241, 243, 78, 177, 281, 31, 246, 33, 34, 250,
807 253, 257, 33, 34, 32, 35, 36, 37, 38, 258,
808 35, 36, 37, 38, 259, 67, 263, 33, 34, 126,
809 264, 266, 31, 267, 269, 35, 36, 37, 38, 272,
810 67, 32, 276, 277, 127, 280, 282, 31, 297, 286,
811 283, 288, 287, 299, 33, 34, 32, 284, 291, 296,
812 300, 310, 35, 36, 37, 38, 301, 96, 118, 33,
813 34, 97, 311, 316, 323, 98, 333, 35, 36, 37,
814 38, 99, 100, 101, 319, 102, 320, 321, 103, 104,
815 105, 106, 107, 96, 183, 108, 109, 97, 322, 324,
816 119, 98, 335, 325, 110, 334, 336, 99, 100, 101,
817 337, 102, 338, 339, 103, 104, 105, 106, 107, 96,
818 185, 108, 109, 97, 342, 344, 119, 98, 351, 345,
819 110, 347, 352, 99, 100, 101, 353, 102, 19, 54,
820 103, 104, 105, 106, 107, 96, 234, 108, 109, 97,
821 275, 140, 119, 98, 186, 228, 110, 0, 89, 99,
822 100, 101, 0, 102, 0, 0, 103, 104, 105, 106,
823 107, 96, 0, 108, 109, 97, 0, 0, 119, 98,
824 0, 0, 110, 0, 0, 99, 100, 101, 0, 102,
825 0, 0, 103, 104, 105, 106, 107, 0, 0, 108,
826 109, -2, 18, 0, 1, 0, 0, 0, 110, 2,
827 0, 0, 0, 0, 0, 0, 3, 4, 0, 0,
831 static const short int yycheck[] =
833 66, 121, 39, 104, 1, 71, 41, 4, 5, 7,
834 47, 8, 226, 1, 81, 12, 82, 5, 5, 233,
835 1, 18, 19, 20, 5, 22, 3, 5, 25, 26,
836 27, 28, 29, 7, 5, 32, 33, 34, 35, 36,
837 77, 5, 79, 41, 41, 111, 112, 113, 36, 263,
838 264, 11, 1, 41, 41, 121, 5, 123, 1, 4,
839 41, 11, 5, 41, 14, 36, 186, 41, 4, 1,
840 41, 13, 4, 5, 31, 142, 8, 41, 144, 10,
841 12, 41, 13, 150, 41, 0, 18, 19, 20, 13,
842 22, 41, 41, 25, 26, 27, 28, 29, 41, 41,
843 32, 33, 34, 35, 36, 10, 207, 208, 13, 41,
844 211, 212, 1, 214, 215, 4, 5, 41, 6, 8,
845 186, 13, 4, 12, 10, 21, 193, 1, 14, 18,
846 19, 20, 9, 22, 4, 9, 25, 26, 27, 28,
847 29, 4, 1, 32, 33, 34, 35, 36, 7, 41,
848 24, 10, 41, 8, 9, 221, 222, 223, 1, 55,
849 56, 5, 5, 36, 36, 8, 8, 24, 41, 41,
850 236, 13, 239, 240, 17, 6, 41, 5, 245, 246,
851 281, 282, 283, 284, 36, 4, 4, 30, 31, 41,
852 34, 35, 36, 4, 6, 38, 39, 40, 41, 265,
853 4, 24, 268, 269, 271, 272, 34, 35, 36, 1,
854 4, 41, 8, 5, 36, 3, 8, 13, 8, 41,
855 8, 287, 7, 289, 290, 17, 36, 15, 16, 296,
856 297, 41, 41, 300, 301, 23, 41, 7, 30, 31,
857 10, 41, 7, 310, 311, 10, 38, 39, 40, 41,
858 8, 6, 319, 320, 321, 322, 6, 324, 325, 8,
859 9, 41, 11, 203, 41, 6, 206, 334, 6, 336,
860 41, 8, 339, 8, 8, 6, 342, 344, 345, 1,
861 347, 6, 4, 5, 41, 1, 8, 8, 7, 5,
862 12, 8, 8, 41, 41, 41, 18, 19, 20, 8,
863 22, 17, 6, 25, 26, 27, 28, 29, 8, 1,
864 32, 33, 4, 5, 30, 31, 8, 41, 8, 41,
865 12, 8, 38, 39, 40, 41, 18, 19, 20, 6,
866 22, 41, 21, 25, 26, 27, 28, 29, 1, 21,
867 32, 33, 5, 1, 41, 8, 21, 5, 41, 41,
868 8, 11, 4, 41, 17, 24, 41, 11, 1, 17,
869 7, 41, 5, 41, 10, 8, 11, 30, 31, 41,
870 41, 41, 30, 31, 17, 38, 39, 40, 41, 41,
871 38, 39, 40, 41, 41, 1, 11, 30, 31, 5,
872 11, 41, 8, 41, 24, 38, 39, 40, 41, 11,
873 1, 17, 7, 7, 5, 7, 13, 8, 11, 8,
874 10, 8, 7, 4, 30, 31, 17, 13, 8, 13,
875 13, 13, 38, 39, 40, 41, 11, 4, 5, 30,
876 31, 8, 11, 41, 8, 12, 8, 38, 39, 40,
877 41, 18, 19, 20, 13, 22, 13, 13, 25, 26,
878 27, 28, 29, 4, 5, 32, 33, 8, 13, 13,
879 37, 12, 7, 13, 41, 13, 13, 18, 19, 20,
880 41, 22, 8, 13, 25, 26, 27, 28, 29, 4,
881 5, 32, 33, 8, 7, 13, 37, 12, 8, 13,
882 41, 13, 7, 18, 19, 20, 8, 22, 7, 25,
883 25, 26, 27, 28, 29, 4, 5, 32, 33, 8,
884 242, 93, 37, 12, 123, 174, 41, -1, 62, 18,
885 19, 20, -1, 22, -1, -1, 25, 26, 27, 28,
886 29, 4, -1, 32, 33, 8, -1, -1, 37, 12,
887 -1, -1, 41, -1, -1, 18, 19, 20, -1, 22,
888 -1, -1, 25, 26, 27, 28, 29, -1, -1, 32,
889 33, 0, 1, -1, 3, -1, -1, -1, 41, 8,
890 -1, -1, -1, -1, -1, -1, 15, 16, -1, -1,
894 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
895 symbol of state STATE-NUM. */
896 static const unsigned char yystos[] =
898 0, 3, 8, 15, 16, 23, 43, 44, 45, 46,
899 47, 48, 36, 41, 41, 4, 3, 0, 1, 45,
900 4, 4, 6, 5, 41, 49, 50, 36, 41, 1,
901 5, 8, 17, 30, 31, 38, 39, 40, 41, 53,
902 54, 56, 57, 88, 89, 93, 5, 53, 7, 41,
903 52, 9, 1, 5, 50, 4, 4, 24, 31, 41,
904 6, 4, 4, 4, 1, 9, 24, 1, 5, 54,
905 5, 4, 1, 7, 10, 51, 5, 53, 5, 53,
906 41, 6, 24, 41, 65, 5, 41, 90, 5, 90,
907 5, 36, 41, 91, 92, 55, 4, 8, 12, 18,
908 19, 20, 22, 25, 26, 27, 28, 29, 32, 33,
909 41, 59, 61, 63, 67, 69, 80, 82, 5, 37,
910 69, 86, 87, 4, 41, 41, 5, 5, 8, 65,
911 69, 41, 7, 8, 1, 5, 41, 5, 1, 5,
912 92, 8, 13, 41, 58, 69, 41, 78, 6, 6,
913 6, 6, 36, 41, 66, 76, 66, 77, 8, 8,
914 8, 6, 6, 8, 9, 11, 81, 69, 69, 69,
915 5, 34, 35, 36, 84, 85, 7, 41, 64, 83,
916 8, 9, 41, 5, 87, 5, 86, 8, 7, 41,
917 41, 8, 8, 13, 41, 65, 8, 1, 5, 69,
918 6, 8, 68, 60, 41, 65, 62, 10, 13, 11,
919 41, 10, 13, 8, 10, 14, 8, 71, 74, 70,
920 6, 21, 21, 21, 41, 41, 11, 5, 85, 41,
921 7, 10, 75, 4, 5, 41, 24, 41, 65, 13,
922 11, 7, 79, 41, 64, 13, 11, 64, 66, 66,
923 41, 66, 66, 41, 66, 36, 66, 41, 41, 41,
924 69, 69, 69, 11, 11, 58, 41, 41, 58, 24,
925 69, 13, 11, 65, 65, 83, 7, 7, 65, 65,
926 7, 10, 13, 10, 13, 14, 8, 7, 8, 58,
927 58, 8, 5, 69, 65, 65, 13, 11, 7, 4,
928 13, 11, 66, 66, 66, 66, 36, 41, 72, 69,
929 13, 11, 65, 65, 65, 65, 41, 65, 65, 13,
930 13, 13, 13, 8, 13, 13, 65, 65, 65, 65,
931 73, 65, 65, 8, 13, 7, 13, 41, 8, 13,
932 65, 65, 7, 65, 13, 13, 69, 13, 65, 65,
936 #define yyerrok (yyerrstatus = 0)
937 #define yyclearin (yychar = YYEMPTY)
941 #define YYACCEPT goto yyacceptlab
942 #define YYABORT goto yyabortlab
943 #define YYERROR goto yyerrorlab
946 /* Like YYERROR except do call yyerror. This remains here temporarily
947 to ease the transition to the new meaning of YYERROR, for GCC.
948 Once GCC version 2 has supplanted version 1, this can go. */
950 #define YYFAIL goto yyerrlab
952 #define YYRECOVERING() (!!yyerrstatus)
954 #define YYBACKUP(Token, Value) \
956 if (yychar == YYEMPTY && yylen == 1) \
960 yytoken = YYTRANSLATE (yychar); \
966 yyerror (&yylloc, parseio, YY_("syntax error: cannot back up")); \
973 #define YYERRCODE 256
976 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
977 If N is 0, then set CURRENT to the empty location which ends
978 the previous symbol: RHS[0] (always defined). */
980 #define YYRHSLOC(Rhs, K) ((Rhs)[K])
981 #ifndef YYLLOC_DEFAULT
982 # define YYLLOC_DEFAULT(Current, Rhs, N) \
986 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
987 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
988 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
989 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
993 (Current).first_line = (Current).last_line = \
994 YYRHSLOC (Rhs, 0).last_line; \
995 (Current).first_column = (Current).last_column = \
996 YYRHSLOC (Rhs, 0).last_column; \
1002 /* YY_LOCATION_PRINT -- Print the location on the stream.
1003 This macro was not mandated originally: define only if we know
1004 we won't break user code: when these are the locations we know. */
1006 #ifndef YY_LOCATION_PRINT
1007 # if YYLTYPE_IS_TRIVIAL
1008 # define YY_LOCATION_PRINT(File, Loc) \
1009 fprintf (File, "%d.%d-%d.%d", \
1010 (Loc).first_line, (Loc).first_column, \
1011 (Loc).last_line, (Loc).last_column)
1013 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
1018 /* YYLEX -- calling `yylex' with the right arguments. */
1021 # define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
1023 # define YYLEX yylex (&yylval, &yylloc)
1026 /* Enable debugging if requested. */
1030 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
1031 # define YYFPRINTF fprintf
1034 # define YYDPRINTF(Args) \
1040 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
1044 YYFPRINTF (stderr, "%s ", Title); \
1045 yysymprint (stderr, \
1046 Type, Value, Location); \
1047 YYFPRINTF (stderr, "\n"); \
1051 /*------------------------------------------------------------------.
1052 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
1054 `------------------------------------------------------------------*/
1056 #if defined (__STDC__) || defined (__cplusplus)
1058 yy_stack_print (short int *bottom, short int *top)
1061 yy_stack_print (bottom, top)
1066 YYFPRINTF (stderr, "Stack now");
1067 for (/* Nothing. */; bottom <= top; ++bottom)
1068 YYFPRINTF (stderr, " %d", *bottom);
1069 YYFPRINTF (stderr, "\n");
1072 # define YY_STACK_PRINT(Bottom, Top) \
1075 yy_stack_print ((Bottom), (Top)); \
1079 /*------------------------------------------------.
1080 | Report that the YYRULE is going to be reduced. |
1081 `------------------------------------------------*/
1083 #if defined (__STDC__) || defined (__cplusplus)
1085 yy_reduce_print (int yyrule)
1088 yy_reduce_print (yyrule)
1093 unsigned long int yylno = yyrline[yyrule];
1094 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu), ",
1096 /* Print the symbols being reduced, and their result. */
1097 for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
1098 YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]);
1099 YYFPRINTF (stderr, "-> %s\n", yytname[yyr1[yyrule]]);
1102 # define YY_REDUCE_PRINT(Rule) \
1105 yy_reduce_print (Rule); \
1108 /* Nonzero means print parse trace. It is left uninitialized so that
1109 multiple parsers can coexist. */
1111 #else /* !YYDEBUG */
1112 # define YYDPRINTF(Args)
1113 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
1114 # define YY_STACK_PRINT(Bottom, Top)
1115 # define YY_REDUCE_PRINT(Rule)
1116 #endif /* !YYDEBUG */
1119 /* YYINITDEPTH -- initial size of the parser's stacks. */
1121 # define YYINITDEPTH 200
1124 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
1125 if the built-in stack extension method is used).
1127 Do not make this value too large; the results are undefined if
1128 YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
1129 evaluated with infinite-precision integer arithmetic. */
1132 # define YYMAXDEPTH 10000
1140 # if defined (__GLIBC__) && defined (_STRING_H)
1141 # define yystrlen strlen
1143 /* Return the length of YYSTR. */
1145 # if defined (__STDC__) || defined (__cplusplus)
1146 yystrlen (const char *yystr)
1152 const char *yys = yystr;
1154 while (*yys++ != '\0')
1157 return yys - yystr - 1;
1163 # if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
1164 # define yystpcpy stpcpy
1166 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1169 # if defined (__STDC__) || defined (__cplusplus)
1170 yystpcpy (char *yydest, const char *yysrc)
1172 yystpcpy (yydest, yysrc)
1178 const char *yys = yysrc;
1180 while ((*yyd++ = *yys++) != '\0')
1189 /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
1190 quotes and backslashes, so that it's suitable for yyerror. The
1191 heuristic is that double-quoting is unnecessary unless the string
1192 contains an apostrophe, a comma, or backslash (other than
1193 backslash-backslash). YYSTR is taken from yytname. If YYRES is
1194 null, do not copy; instead, return the length of what the result
1197 yytnamerr (char *yyres, const char *yystr)
1202 char const *yyp = yystr;
1209 goto do_not_strip_quotes;
1213 goto do_not_strip_quotes;
1226 do_not_strip_quotes: ;
1230 return yystrlen (yystr);
1232 return yystpcpy (yyres, yystr) - yyres;
1236 #endif /* YYERROR_VERBOSE */
1241 /*--------------------------------.
1242 | Print this symbol on YYOUTPUT. |
1243 `--------------------------------*/
1245 #if defined (__STDC__) || defined (__cplusplus)
1247 yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp)
1250 yysymprint (yyoutput, yytype, yyvaluep, yylocationp)
1254 YYLTYPE *yylocationp;
1257 /* Pacify ``unused variable'' warnings. */
1261 if (yytype < YYNTOKENS)
1262 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
1264 YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
1266 YY_LOCATION_PRINT (yyoutput, *yylocationp);
1267 YYFPRINTF (yyoutput, ": ");
1270 if (yytype < YYNTOKENS)
1271 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
1278 YYFPRINTF (yyoutput, ")");
1281 #endif /* ! YYDEBUG */
1282 /*-----------------------------------------------.
1283 | Release the memory associated to this symbol. |
1284 `-----------------------------------------------*/
1286 #if defined (__STDC__) || defined (__cplusplus)
1288 yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp)
1291 yydestruct (yymsg, yytype, yyvaluep, yylocationp)
1295 YYLTYPE *yylocationp;
1298 /* Pacify ``unused variable'' warnings. */
1304 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1308 case 41: /* "word" */
1310 { free((yyvaluep->str));};
1311 #line 1312 "ael.tab.c"
1313 case 44: /* "objects" */
1315 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1316 #line 1317 "ael.tab.c"
1318 case 45: /* "object" */
1320 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1321 #line 1322 "ael.tab.c"
1323 case 46: /* "context" */
1325 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1326 #line 1327 "ael.tab.c"
1328 case 47: /* "macro" */
1330 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1331 #line 1332 "ael.tab.c"
1333 case 48: /* "globals" */
1335 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1336 #line 1337 "ael.tab.c"
1338 case 49: /* "global_statements" */
1340 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1341 #line 1342 "ael.tab.c"
1343 case 50: /* "global_statement" */
1345 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1346 #line 1347 "ael.tab.c"
1348 case 52: /* "arglist" */
1350 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1351 #line 1352 "ael.tab.c"
1353 case 53: /* "elements" */
1355 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1356 #line 1357 "ael.tab.c"
1358 case 54: /* "element" */
1360 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1361 #line 1362 "ael.tab.c"
1363 case 56: /* "ignorepat" */
1365 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1366 #line 1367 "ael.tab.c"
1368 case 57: /* "extension" */
1370 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1371 #line 1372 "ael.tab.c"
1373 case 58: /* "statements" */
1375 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1376 #line 1377 "ael.tab.c"
1378 case 59: /* "if_head" */
1380 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1381 #line 1382 "ael.tab.c"
1383 case 61: /* "random_head" */
1385 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1386 #line 1387 "ael.tab.c"
1388 case 63: /* "iftime_head" */
1390 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1391 #line 1392 "ael.tab.c"
1393 case 64: /* "word_list" */
1395 { free((yyvaluep->str));};
1396 #line 1397 "ael.tab.c"
1398 case 65: /* "word3_list" */
1400 { free((yyvaluep->str));};
1401 #line 1402 "ael.tab.c"
1403 case 66: /* "goto_word" */
1405 { free((yyvaluep->str));};
1406 #line 1407 "ael.tab.c"
1408 case 67: /* "switch_head" */
1410 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1411 #line 1412 "ael.tab.c"
1413 case 69: /* "statement" */
1415 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1416 #line 1417 "ael.tab.c"
1418 case 76: /* "target" */
1420 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1421 #line 1422 "ael.tab.c"
1423 case 77: /* "jumptarget" */
1425 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1426 #line 1427 "ael.tab.c"
1428 case 78: /* "macro_call" */
1430 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1431 #line 1432 "ael.tab.c"
1433 case 80: /* "application_call_head" */
1435 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1436 #line 1437 "ael.tab.c"
1438 case 82: /* "application_call" */
1440 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1441 #line 1442 "ael.tab.c"
1443 case 83: /* "eval_arglist" */
1445 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1446 #line 1447 "ael.tab.c"
1448 case 84: /* "case_statements" */
1450 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1451 #line 1452 "ael.tab.c"
1453 case 85: /* "case_statement" */
1455 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1456 #line 1457 "ael.tab.c"
1458 case 86: /* "macro_statements" */
1460 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1461 #line 1462 "ael.tab.c"
1463 case 87: /* "macro_statement" */
1465 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1466 #line 1467 "ael.tab.c"
1468 case 88: /* "switches" */
1470 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1471 #line 1472 "ael.tab.c"
1473 case 89: /* "eswitches" */
1475 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1476 #line 1477 "ael.tab.c"
1478 case 90: /* "switchlist" */
1480 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1481 #line 1482 "ael.tab.c"
1483 case 91: /* "includeslist" */
1485 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1486 #line 1487 "ael.tab.c"
1488 case 92: /* "includedname" */
1490 { free((yyvaluep->str));};
1491 #line 1492 "ael.tab.c"
1493 case 93: /* "includes" */
1495 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1496 #line 1497 "ael.tab.c"
1505 /* Prevent warnings from -Wmissing-prototypes. */
1507 #ifdef YYPARSE_PARAM
1508 # if defined (__STDC__) || defined (__cplusplus)
1509 int yyparse (void *YYPARSE_PARAM);
1513 #else /* ! YYPARSE_PARAM */
1514 #if defined (__STDC__) || defined (__cplusplus)
1515 int yyparse (struct parse_io *parseio);
1519 #endif /* ! YYPARSE_PARAM */
1530 #ifdef YYPARSE_PARAM
1531 # if defined (__STDC__) || defined (__cplusplus)
1532 int yyparse (void *YYPARSE_PARAM)
1534 int yyparse (YYPARSE_PARAM)
1535 void *YYPARSE_PARAM;
1537 #else /* ! YYPARSE_PARAM */
1538 #if defined (__STDC__) || defined (__cplusplus)
1540 yyparse (struct parse_io *parseio)
1544 struct parse_io *parseio;
1548 /* The look-ahead symbol. */
1551 /* The semantic value of the look-ahead symbol. */
1554 /* Number of syntax errors so far. */
1556 /* Location data for the look-ahead symbol. */
1562 /* Number of tokens to shift before error messages enabled. */
1564 /* Look-ahead token as an internal (translated) token number. */
1567 /* Three stacks and their tools:
1568 `yyss': related to states,
1569 `yyvs': related to semantic values,
1570 `yyls': related to locations.
1572 Refer to the stacks thru separate pointers, to allow yyoverflow
1573 to reallocate them elsewhere. */
1575 /* The state stack. */
1576 short int yyssa[YYINITDEPTH];
1577 short int *yyss = yyssa;
1580 /* The semantic value stack. */
1581 YYSTYPE yyvsa[YYINITDEPTH];
1582 YYSTYPE *yyvs = yyvsa;
1585 /* The location stack. */
1586 YYLTYPE yylsa[YYINITDEPTH];
1587 YYLTYPE *yyls = yylsa;
1589 /* The locations where the error started and ended. */
1590 YYLTYPE yyerror_range[2];
1592 #define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
1594 YYSIZE_T yystacksize = YYINITDEPTH;
1596 /* The variables used to return semantic value and location from the
1601 /* When reducing, the number of symbols on the RHS of the reduced
1605 YYDPRINTF ((stderr, "Starting parse\n"));
1610 yychar = YYEMPTY; /* Cause a token to be read. */
1612 /* Initialize stack pointers.
1613 Waste one element of value and location stack
1614 so that they stay on the same level as the state stack.
1615 The wasted elements are never initialized. */
1620 #if YYLTYPE_IS_TRIVIAL
1621 /* Initialize the default location before parsing starts. */
1622 yylloc.first_line = yylloc.last_line = 1;
1623 yylloc.first_column = yylloc.last_column = 0;
1628 /*------------------------------------------------------------.
1629 | yynewstate -- Push a new state, which is found in yystate. |
1630 `------------------------------------------------------------*/
1632 /* In all cases, when you get here, the value and location stacks
1633 have just been pushed. so pushing a state here evens the stacks.
1640 if (yyss + yystacksize - 1 <= yyssp)
1642 /* Get the current used size of the three stacks, in elements. */
1643 YYSIZE_T yysize = yyssp - yyss + 1;
1647 /* Give user a chance to reallocate the stack. Use copies of
1648 these so that the &'s don't force the real ones into
1650 YYSTYPE *yyvs1 = yyvs;
1651 short int *yyss1 = yyss;
1652 YYLTYPE *yyls1 = yyls;
1654 /* Each stack pointer address is followed by the size of the
1655 data in use in that stack, in bytes. This used to be a
1656 conditional around just the two extra args, but that might
1657 be undefined if yyoverflow is a macro. */
1658 yyoverflow (YY_("memory exhausted"),
1659 &yyss1, yysize * sizeof (*yyssp),
1660 &yyvs1, yysize * sizeof (*yyvsp),
1661 &yyls1, yysize * sizeof (*yylsp),
1667 #else /* no yyoverflow */
1668 # ifndef YYSTACK_RELOCATE
1669 goto yyexhaustedlab;
1671 /* Extend the stack our own way. */
1672 if (YYMAXDEPTH <= yystacksize)
1673 goto yyexhaustedlab;
1675 if (YYMAXDEPTH < yystacksize)
1676 yystacksize = YYMAXDEPTH;
1679 short int *yyss1 = yyss;
1680 union yyalloc *yyptr =
1681 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
1683 goto yyexhaustedlab;
1684 YYSTACK_RELOCATE (yyss);
1685 YYSTACK_RELOCATE (yyvs);
1686 YYSTACK_RELOCATE (yyls);
1687 # undef YYSTACK_RELOCATE
1689 YYSTACK_FREE (yyss1);
1692 #endif /* no yyoverflow */
1694 yyssp = yyss + yysize - 1;
1695 yyvsp = yyvs + yysize - 1;
1696 yylsp = yyls + yysize - 1;
1698 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
1699 (unsigned long int) yystacksize));
1701 if (yyss + yystacksize - 1 <= yyssp)
1705 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1714 /* Do appropriate processing given the current state. */
1715 /* Read a look-ahead token if we need one and don't already have one. */
1718 /* First try to decide what to do without reference to look-ahead token. */
1720 yyn = yypact[yystate];
1721 if (yyn == YYPACT_NINF)
1724 /* Not known => get a look-ahead token if don't already have one. */
1726 /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
1727 if (yychar == YYEMPTY)
1729 YYDPRINTF ((stderr, "Reading a token: "));
1733 if (yychar <= YYEOF)
1735 yychar = yytoken = YYEOF;
1736 YYDPRINTF ((stderr, "Now at end of input.\n"));
1740 yytoken = YYTRANSLATE (yychar);
1741 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
1744 /* If the proper action on seeing token YYTOKEN is to reduce or to
1745 detect an error, take that action. */
1747 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
1752 if (yyn == 0 || yyn == YYTABLE_NINF)
1761 /* Shift the look-ahead token. */
1762 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
1764 /* Discard the token being shifted unless it is eof. */
1765 if (yychar != YYEOF)
1771 /* Count tokens shifted since error; after three, turn off error
1780 /*-----------------------------------------------------------.
1781 | yydefault -- do the default action for the current state. |
1782 `-----------------------------------------------------------*/
1784 yyn = yydefact[yystate];
1790 /*-----------------------------.
1791 | yyreduce -- Do a reduction. |
1792 `-----------------------------*/
1794 /* yyn is the number of a rule to reduce with. */
1797 /* If YYLEN is nonzero, implement the default value of the action:
1800 Otherwise, the following line sets YYVAL to garbage.
1801 This behavior is undocumented and Bison
1802 users should not rely upon it. Assigning to YYVAL
1803 unconditionally makes the parser a bit smaller, and it avoids a
1804 GCC warning that YYVAL may be used uninitialized. */
1805 yyval = yyvsp[1-yylen];
1807 /* Default location. */
1808 YYLLOC_DEFAULT (yyloc, yylsp - yylen, yylen);
1809 YY_REDUCE_PRINT (yyn);
1814 { (yyval.pval) = parseio->pval = (yyvsp[0].pval); ;}
1819 {(yyval.pval)=(yyvsp[0].pval);;}
1825 if ( (yyvsp[-1].pval) && (yyvsp[0].pval) ) {
1826 (yyval.pval)=(yyvsp[-1].pval);
1827 linku1((yyval.pval),(yyvsp[0].pval));
1828 } else if ( (yyvsp[-1].pval) ) {
1829 (yyval.pval)=(yyvsp[-1].pval);
1830 } else if ( (yyvsp[0].pval) ) {
1831 (yyval.pval)=(yyvsp[0].pval);
1838 {(yyval.pval)=(yyvsp[-1].pval);;}
1843 {(yyval.pval)=(yyvsp[0].pval);;}
1848 {(yyval.pval)=(yyvsp[0].pval);;}
1853 {(yyval.pval)=(yyvsp[0].pval);;}
1858 {(yyval.pval)=0;/* allow older docs to be read */;}
1864 (yyval.pval) = npval(PV_CONTEXT, (yylsp[-4]).first_line, (yylsp[0]).last_line,
1865 (yylsp[-4]).first_column, (yylsp[0]).last_column);
1866 (yyval.pval)->u1.str = (yyvsp[-3].str);
1867 (yyval.pval)->u2.statements = (yyvsp[-1].pval); ;}
1873 (yyval.pval) = npval(PV_CONTEXT, (yylsp[-3]).first_line, (yylsp[0]).last_line,
1874 (yylsp[-3]).first_column, (yylsp[0]).last_column);
1875 (yyval.pval)->u1.str = (yyvsp[-2].str); ;}
1881 (yyval.pval) = npval(PV_CONTEXT, (yylsp[-4]).first_line, (yylsp[0]).last_line,
1882 (yylsp[-4]).first_column, (yylsp[0]).last_column);
1883 (yyval.pval)->u1.str = strdup("default");
1884 (yyval.pval)->u2.statements = (yyvsp[-1].pval); ;}
1890 (yyval.pval) = npval(PV_CONTEXT, (yylsp[-3]).first_line, (yylsp[0]).last_line,
1891 (yylsp[-3]).first_column, (yylsp[0]).last_column);
1892 (yyval.pval)->u1.str = strdup("default"); ;}
1898 (yyval.pval) = npval(PV_CONTEXT, (yylsp[-5]).first_line, (yylsp[0]).last_line,
1899 (yylsp[-5]).first_column, (yylsp[0]).last_column);
1900 (yyval.pval)->u1.str = (yyvsp[-3].str);
1901 (yyval.pval)->u2.statements = (yyvsp[-1].pval);
1902 (yyval.pval)->u3.abstract = 1; ;}
1908 (yyval.pval) = npval(PV_CONTEXT, (yylsp[-4]).first_line, (yylsp[0]).last_line,
1909 (yylsp[-4]).first_column, (yylsp[0]).last_column);
1910 (yyval.pval)->u1.str = (yyvsp[-2].str);
1911 (yyval.pval)->u3.abstract = 1; ;}
1917 (yyval.pval) = npval(PV_CONTEXT, (yylsp[-5]).first_line, (yylsp[0]).last_line,
1918 (yylsp[-5]).first_column, (yylsp[0]).last_column);
1919 (yyval.pval)->u1.str = strdup("default");
1920 (yyval.pval)->u2.statements = (yyvsp[-1].pval);
1921 (yyval.pval)->u3.abstract = 1; ;}
1927 (yyval.pval) = npval(PV_CONTEXT, (yylsp[-4]).first_line, (yylsp[0]).last_line,
1928 (yylsp[-4]).first_column, (yylsp[0]).last_column);
1929 (yyval.pval)->u1.str = strdup("default");
1930 (yyval.pval)->u3.abstract = 1; ;}
1936 (yyval.pval)=npval(PV_MACRO,(yylsp[-7]).first_line,(yylsp[0]).last_line, (yylsp[-7]).first_column, (yylsp[0]).last_column);
1937 (yyval.pval)->u1.str = (yyvsp[-6].str); (yyval.pval)->u2.arglist = (yyvsp[-4].pval); (yyval.pval)->u3.macro_statements = (yyvsp[-1].pval); ;}
1943 (yyval.pval)=npval(PV_MACRO,(yylsp[-6]).first_line,(yylsp[0]).last_line, (yylsp[-6]).first_column, (yylsp[0]).last_column);
1944 (yyval.pval)->u1.str = (yyvsp[-5].str); (yyval.pval)->u2.arglist = (yyvsp[-3].pval); ;}
1950 (yyval.pval)=npval(PV_MACRO,(yylsp[-6]).first_line,(yylsp[0]).last_line, (yylsp[-6]).first_column, (yylsp[0]).last_column);
1951 (yyval.pval)->u1.str = (yyvsp[-5].str); (yyval.pval)->u3.macro_statements = (yyvsp[-1].pval); ;}
1957 (yyval.pval)=npval(PV_MACRO,(yylsp[-5]).first_line,(yylsp[0]).last_line, (yylsp[-5]).first_column, (yylsp[0]).last_column);
1958 (yyval.pval)->u1.str = (yyvsp[-4].str); /* pretty empty! */ ;}
1964 (yyval.pval)=npval(PV_GLOBALS,(yylsp[-3]).first_line,(yylsp[0]).last_line, (yylsp[-3]).first_column, (yylsp[0]).last_column);
1965 (yyval.pval)->u1.statements = (yyvsp[-1].pval);;}
1971 (yyval.pval)=npval(PV_GLOBALS,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column);
1972 /* and that's all */ ;}
1977 {(yyval.pval)=(yyvsp[0].pval);;}
1982 {(yyval.pval)=(yyvsp[-1].pval); linku1((yyval.pval),(yyvsp[0].pval));;}
1987 {(yyval.pval)=(yyvsp[-1].pval);;}
1992 { reset_semicount(parseio->scanner); ;}
1998 (yyval.pval)=npval(PV_VARDEC,(yylsp[-4]).first_line,(yylsp[0]).last_line, (yylsp[-4]).first_column, (yylsp[0]).last_column);
1999 (yyval.pval)->u1.str = (yyvsp[-4].str);
2000 (yyval.pval)->u2.val = (yyvsp[-1].str); ;}
2006 (yyval.pval)= npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2007 (yyval.pval)->u1.str = (yyvsp[0].str); ;}
2013 pval *z = npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column);
2014 z->u1.str = (yyvsp[0].str);
2015 (yyval.pval)=(yyvsp[-2].pval);
2016 linku1((yyval.pval),z); ;}
2021 {(yyval.pval)=(yyvsp[-1].pval);;}
2026 { (yyval.pval)=(yyvsp[0].pval);;}
2036 { if ( (yyvsp[-1].pval) && (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[-1].pval); linku1((yyval.pval),(yyvsp[0].pval));}
2037 else if ( (yyvsp[-1].pval) ) {(yyval.pval)=(yyvsp[-1].pval);}
2038 else if ( (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[0].pval);} ;}
2043 { (yyval.pval)=(yyvsp[-1].pval);;}
2048 {(yyval.pval)=(yyvsp[0].pval);;}
2053 {(yyval.pval)=(yyvsp[0].pval);;}
2058 {(yyval.pval)=(yyvsp[0].pval);;}
2063 {(yyval.pval)=(yyvsp[0].pval);;}
2068 {(yyval.pval)=(yyvsp[0].pval);;}
2073 { reset_semicount(parseio->scanner); ;}
2079 (yyval.pval)=npval(PV_VARDEC,(yylsp[-4]).first_line,(yylsp[0]).last_line, (yylsp[-4]).first_column, (yylsp[0]).last_column);
2080 (yyval.pval)->u1.str = (yyvsp[-4].str);
2081 (yyval.pval)->u2.val = (yyvsp[-1].str); ;}
2086 {free((yyvsp[-1].str)); (yyval.pval)=0;;}
2091 {(yyval.pval)=0;/* allow older docs to be read */;}
2097 (yyval.pval)=npval(PV_IGNOREPAT,(yylsp[-3]).first_line,(yylsp[0]).last_line, (yylsp[-3]).first_column, (yylsp[0]).last_column);
2098 (yyval.pval)->u1.str = (yyvsp[-1].str);;}
2104 (yyval.pval) = npval(PV_EXTENSION,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column);
2105 (yyval.pval)->u1.str = (yyvsp[-2].str);
2106 (yyval.pval)->u2.statements = (yyvsp[0].pval); ;}
2112 (yyval.pval) = npval(PV_EXTENSION,(yylsp[-3]).first_line,(yylsp[-1]).last_line, (yylsp[-3]).first_column, (yylsp[0]).last_column);
2113 (yyval.pval)->u1.str = (yyvsp[-2].str);
2114 (yyval.pval)->u2.statements = (yyvsp[0].pval);
2115 (yyval.pval)->u4.regexten=1;;}
2121 (yyval.pval) = npval(PV_EXTENSION,(yylsp[-6]).first_line,(yylsp[0]).last_line, (yylsp[-6]).first_column, (yylsp[0]).last_column);
2122 (yyval.pval)->u1.str = (yyvsp[-2].str);
2123 (yyval.pval)->u2.statements = (yyvsp[0].pval);
2124 (yyval.pval)->u3.hints = (yyvsp[-4].str);;}
2130 (yyval.pval) = npval(PV_EXTENSION,(yylsp[-7]).first_line,(yylsp[-4]).last_line, (yylsp[-7]).first_column, (yylsp[0]).last_column);
2131 (yyval.pval)->u1.str = (yyvsp[-2].str);
2132 (yyval.pval)->u2.statements = (yyvsp[0].pval);
2133 (yyval.pval)->u4.regexten=1;
2134 (yyval.pval)->u3.hints = (yyvsp[-4].str);;}
2139 {(yyval.pval)=(yyvsp[0].pval);;}
2144 {if ( (yyvsp[-1].pval) && (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[-1].pval); linku1((yyval.pval),(yyvsp[0].pval));}
2145 else if ( (yyvsp[-1].pval) ) {(yyval.pval)=(yyvsp[-1].pval);}
2146 else if ( (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[0].pval);} ;}
2151 {(yyval.pval)=(yyvsp[-1].pval);;}
2156 { reset_parencount(parseio->scanner); ;}
2162 (yyval.pval)= npval(PV_IF,(yylsp[-4]).first_line,(yylsp[0]).last_line, (yylsp[-4]).first_column, (yylsp[0]).last_column);
2163 (yyval.pval)->u1.str = (yyvsp[-1].str); ;}
2168 { reset_parencount(parseio->scanner); ;}
2174 (yyval.pval)= npval(PV_RANDOM,(yylsp[-4]).first_line,(yylsp[0]).last_line, (yylsp[-4]).first_column, (yylsp[0]).last_column);
2175 (yyval.pval)->u1.str=(yyvsp[-1].str);;}
2181 (yyval.pval)= npval(PV_IFTIME,(yylsp[-13]).first_line,(yylsp[-9]).last_line, (yylsp[-13]).first_column, (yylsp[-9]).last_column);
2182 (yyval.pval)->u1.list = npval(PV_WORD,(yylsp[-11]).first_line,(yylsp[-11]).last_line, (yylsp[-11]).first_column, (yylsp[-11]).last_column);
2183 (yyval.pval)->u1.list->u1.str = (char*)malloc(strlen((yyvsp[-11].str))+strlen((yyvsp[-9].str))+strlen((yyvsp[-7].str))+4);
2184 strcpy((yyval.pval)->u1.list->u1.str,(yyvsp[-11].str));
2185 strcat((yyval.pval)->u1.list->u1.str,":");
2186 strcat((yyval.pval)->u1.list->u1.str,(yyvsp[-9].str));
2187 strcat((yyval.pval)->u1.list->u1.str,":");
2188 strcat((yyval.pval)->u1.list->u1.str,(yyvsp[-7].str));
2189 free((yyvsp[-11].str));
2190 free((yyvsp[-9].str));
2191 free((yyvsp[-7].str));
2192 (yyval.pval)->u1.list->next = npval(PV_WORD,(yylsp[-5]).first_line,(yylsp[-5]).last_line, (yylsp[-5]).first_column, (yylsp[-5]).last_column);
2193 (yyval.pval)->u1.list->next->u1.str = (yyvsp[-5].str);
2194 (yyval.pval)->u1.list->next->next = npval(PV_WORD,(yylsp[-3]).first_line,(yylsp[-3]).last_line, (yylsp[-3]).first_column, (yylsp[-3]).last_column);
2195 (yyval.pval)->u1.list->next->next->u1.str = (yyvsp[-3].str);
2196 (yyval.pval)->u1.list->next->next->next = npval(PV_WORD,(yylsp[-1]).first_line,(yylsp[-1]).last_line, (yylsp[-1]).first_column, (yylsp[-1]).last_column);
2197 (yyval.pval)->u1.list->next->next->next->u1.str = (yyvsp[-1].str);
2205 (yyval.pval)= npval(PV_IFTIME,(yylsp[-9]).first_line,(yylsp[-5]).last_line, (yylsp[-9]).first_column, (yylsp[-5]).last_column);
2206 (yyval.pval)->u1.list = npval(PV_WORD,(yylsp[-7]).first_line,(yylsp[-7]).last_line, (yylsp[-7]).first_column, (yylsp[-7]).last_column);
2207 (yyval.pval)->u1.list->u1.str = (yyvsp[-7].str);
2208 (yyval.pval)->u1.list->next = npval(PV_WORD,(yylsp[-5]).first_line,(yylsp[-5]).last_line, (yylsp[-5]).first_column, (yylsp[-5]).last_column);
2209 (yyval.pval)->u1.list->next->u1.str = (yyvsp[-5].str);
2210 (yyval.pval)->u1.list->next->next = npval(PV_WORD,(yylsp[-3]).first_line,(yylsp[-3]).last_line, (yylsp[-3]).first_column, (yylsp[-3]).last_column);
2211 (yyval.pval)->u1.list->next->next->u1.str = (yyvsp[-3].str);
2212 (yyval.pval)->u1.list->next->next->next = npval(PV_WORD,(yylsp[-1]).first_line,(yylsp[-1]).last_line, (yylsp[-1]).first_column, (yylsp[-1]).last_column);
2213 (yyval.pval)->u1.list->next->next->next->u1.str = (yyvsp[-1].str);
2220 { (yyval.str) = (yyvsp[0].str);;}
2225 { (yyval.str) = (char*)malloc(strlen((yyvsp[-1].str))+strlen((yyvsp[0].str))+1); strcpy((yyval.str), (yyvsp[-1].str)); strcat((yyval.str), (yyvsp[0].str)); free((yyvsp[-1].str)); free((yyvsp[0].str));prev_word = (yyval.str);;}
2230 { (yyval.str) = (yyvsp[0].str);;}
2235 { (yyval.str) = (char*)malloc(strlen((yyvsp[-1].str))+strlen((yyvsp[0].str))+1); strcpy((yyval.str), (yyvsp[-1].str)); strcat((yyval.str), (yyvsp[0].str)); free((yyvsp[-1].str)); free((yyvsp[0].str));prev_word = (yyval.str);;}
2240 { (yyval.str) = (char*)malloc(strlen((yyvsp[-2].str))+strlen((yyvsp[-1].str))+strlen((yyvsp[0].str))+1); strcpy((yyval.str), (yyvsp[-2].str)); strcat((yyval.str), (yyvsp[-1].str)); strcat((yyval.str), (yyvsp[0].str)); free((yyvsp[-2].str)); free((yyvsp[-1].str)); free((yyvsp[0].str));prev_word=(yyval.str);;}
2245 { (yyval.str) = (yyvsp[0].str);;}
2250 { (yyval.str) = (char*)malloc(strlen((yyvsp[-1].str))+strlen((yyvsp[0].str))+1); strcpy((yyval.str), (yyvsp[-1].str)); strcat((yyval.str), (yyvsp[0].str)); free((yyvsp[-1].str)); free((yyvsp[0].str));;}
2255 { (yyval.str) = (char*)malloc(strlen((yyvsp[-2].str))+strlen((yyvsp[0].str))+2); strcpy((yyval.str), (yyvsp[-2].str)); strcat((yyval.str),":"); strcat((yyval.str), (yyvsp[0].str)); free((yyvsp[-2].str)); free((yyvsp[0].str));;}
2260 { reset_parencount(parseio->scanner); ;}
2265 {(yyval.pval)=npval(PV_SWITCH,(yylsp[-5]).first_line,(yylsp[0]).last_line, (yylsp[-5]).first_column, (yylsp[0]).last_column);
2266 (yyval.pval)->u1.str = (yyvsp[-2].str); ;}
2271 {(yyval.pval)=npval(PV_STATEMENTBLOCK,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.list = (yyvsp[-1].pval); ;}
2276 {reset_semicount(parseio->scanner);;}
2281 {(yyval.pval)=npval(PV_VARDEC,(yylsp[-4]).first_line,(yylsp[0]).last_line, (yylsp[-4]).first_column, (yylsp[0]).last_column);
2282 (yyval.pval)->u1.str = (yyvsp[-4].str); (yyval.pval)->u2.val = (yyvsp[-1].str); ;}
2287 {(yyval.pval)=npval(PV_GOTO,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.list = (yyvsp[-1].pval);;}
2292 {(yyval.pval)=npval(PV_GOTO,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.list = (yyvsp[-1].pval);;}
2297 {(yyval.pval)=npval(PV_LABEL,(yylsp[-1]).first_line,(yylsp[0]).last_line, (yylsp[-1]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-1].str); ;}
2302 {reset_semicount(parseio->scanner);;}
2307 {reset_semicount(parseio->scanner);;}
2312 {reset_parencount(parseio->scanner);;}
2317 { (yyval.pval)=npval(PV_FOR,(yylsp[-11]).first_line,(yylsp[0]).last_line, (yylsp[-11]).first_column, (yylsp[0]).last_column);
2318 (yyval.pval)->u1.for_init = (yyvsp[-8].str); (yyval.pval)->u2.for_test=(yyvsp[-5].str); (yyval.pval)->u3.for_inc = (yyvsp[-2].str); (yyval.pval)->u4.for_statements = (yyvsp[0].pval);;}
2323 {reset_parencount(parseio->scanner);;}
2328 {(yyval.pval)=npval(PV_WHILE,(yylsp[-5]).first_line,(yylsp[0]).last_line, (yylsp[-5]).first_column, (yylsp[0]).last_column);
2329 (yyval.pval)->u1.str = (yyvsp[-2].str); (yyval.pval)->u2.statements = (yyvsp[0].pval); ;}
2334 {(yyval.pval)=(yyvsp[-1].pval);(yyval.pval)->endline = (yylsp[0]).last_line; (yyval.pval)->endcol = (yylsp[0]).last_column;;}
2339 {(yyval.pval)=(yyvsp[-2].pval); (yyval.pval)->u2.statements = (yyvsp[-1].pval);(yyval.pval)->endline = (yylsp[0]).last_line; (yyval.pval)->endcol = (yylsp[0]).last_column;;}
2344 {(yyval.pval) = (yyvsp[-1].pval);(yyval.pval)->endline = (yylsp[-1]).last_line; (yyval.pval)->endcol = (yylsp[-1]).last_column;;}
2349 { (yyval.pval) = (yyvsp[-1].pval);(yyval.pval)->endline = (yylsp[0]).last_line; (yyval.pval)->endcol = (yylsp[0]).last_column;;}
2354 { (yyval.pval)= npval(PV_APPLICATION_CALL,(yylsp[-1]).first_line,(yylsp[0]).last_line, (yylsp[-1]).first_column, (yylsp[0]).last_column);
2355 (yyval.pval)->u1.str = (yyvsp[-1].str);;}
2360 {reset_semicount(parseio->scanner);;}
2370 (yyval.pval) = npval(PV_VARDEC,(yylsp[-4]).first_line,(yylsp[0]).last_line, (yylsp[-4]).first_column, (yylsp[0]).last_column);
2371 (yyval.pval)->u2.val=(yyvsp[-1].str);
2372 /* rebuild the original string-- this is not an app call, it's an unwrapped vardec, with a func call on the LHS */
2373 /* string to big to fit in the buffer? */
2374 tot+=strlen((yyvsp[-4].pval)->u1.str);
2375 for(pptr=(yyvsp[-4].pval)->u2.arglist;pptr;pptr=pptr->next) {
2376 tot+=strlen(pptr->u1.str);
2377 tot++; /* for a sep like a comma */
2379 tot+=4; /* for safety */
2380 bufx = (char *)malloc(tot);
2381 strcpy(bufx,(yyvsp[-4].pval)->u1.str);
2383 for (pptr=(yyvsp[-4].pval)->u2.arglist;pptr;pptr=pptr->next) {
2384 if ( pptr != (yyvsp[-4].pval)->u2.arglist )
2386 strcat(bufx,pptr->u1.str);
2390 if ( !ael_is_funcname((yyvsp[-4].pval)->u1.str) )
2391 ast_log(LOG_WARNING, "==== File: %s, Line %d, Cols: %d-%d: Function call? The name %s is not in my internal list of function names\n",
2392 my_file, (yylsp[-4]).first_line, (yylsp[-4]).first_column, (yylsp[-4]).last_column, (yyvsp[-4].pval)->u1.str);
2394 (yyval.pval)->u1.str = bufx;
2395 destroy_pval((yyvsp[-4].pval)); /* the app call it is not, get rid of that chain */
2402 { (yyval.pval) = npval(PV_BREAK,(yylsp[-1]).first_line,(yylsp[0]).last_line, (yylsp[-1]).first_column, (yylsp[0]).last_column);;}
2407 {(yyval.pval) = npval(PV_RETURN,(yylsp[-1]).first_line,(yylsp[0]).last_line, (yylsp[-1]).first_column, (yylsp[0]).last_column);;}
2412 {(yyval.pval) = npval(PV_CONTINUE,(yylsp[-1]).first_line,(yylsp[0]).last_line, (yylsp[-1]).first_column, (yylsp[0]).last_column);;}
2417 {(yyval.pval)=(yyvsp[-1].pval); (yyval.pval)->u2.statements = (yyvsp[0].pval);(yyval.pval)->endline = (yylsp[0]).last_line; (yyval.pval)->endcol = (yylsp[0]).last_column;;}
2422 {(yyval.pval)=(yyvsp[-3].pval); (yyval.pval)->u2.statements = (yyvsp[-2].pval);(yyval.pval)->endline = (yylsp[-2]).last_line; (yyval.pval)->endcol = (yylsp[-2]).last_column; (yyval.pval)->u3.else_statements = (yyvsp[0].pval);;}
2427 {(yyval.pval)=(yyvsp[-1].pval); (yyval.pval)->u2.statements = (yyvsp[0].pval);(yyval.pval)->endline = (yylsp[0]).last_line; (yyval.pval)->endcol = (yylsp[0]).last_column;;}
2432 {(yyval.pval)=(yyvsp[-3].pval); (yyval.pval)->u2.statements = (yyvsp[-2].pval);(yyval.pval)->endline = (yylsp[-2]).last_line; (yyval.pval)->endcol = (yylsp[-2]).last_column; (yyval.pval)->u3.else_statements = (yyvsp[0].pval);;}
2437 {(yyval.pval)=(yyvsp[-1].pval); (yyval.pval)->u2.statements = (yyvsp[0].pval);(yyval.pval)->endline = (yylsp[0]).last_line; (yyval.pval)->endcol = (yylsp[0]).last_column;;}
2442 {(yyval.pval)=(yyvsp[-3].pval); (yyval.pval)->u2.statements = (yyvsp[-2].pval);(yyval.pval)->endline = (yylsp[-2]).last_line; (yyval.pval)->endcol = (yylsp[-2]).last_column; (yyval.pval)->u3.else_statements = (yyvsp[0].pval);;}
2447 { (yyval.pval)=0; ;}
2452 { (yyval.pval) = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[0].str);;}
2457 {(yyval.pval)=npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[-2]).last_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column);
2458 (yyval.pval)->u1.str = (yyvsp[-2].str); (yyval.pval)->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2459 (yyval.pval)->next->u1.str = (yyvsp[0].str);;}
2464 {(yyval.pval)=npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[-2]).last_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column);
2465 (yyval.pval)->u1.str = (yyvsp[-2].str); (yyval.pval)->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2466 (yyval.pval)->next->u1.str = (yyvsp[0].str);;}
2471 {(yyval.pval)=npval(PV_WORD,(yylsp[-4]).first_line,(yylsp[-4]).last_line, (yylsp[-4]).first_column, (yylsp[-4]).last_column);
2472 (yyval.pval)->u1.str = (yyvsp[-4].str); (yyval.pval)->next = npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[-2]).last_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column);
2473 (yyval.pval)->next->u1.str = (yyvsp[-2].str);
2474 (yyval.pval)->next->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2475 (yyval.pval)->next->next->u1.str = (yyvsp[0].str); ;}
2480 {(yyval.pval)=npval(PV_WORD,(yylsp[-4]).first_line,(yylsp[-4]).last_line, (yylsp[-4]).first_column, (yylsp[-4]).last_column);
2481 (yyval.pval)->u1.str = (yyvsp[-4].str); (yyval.pval)->next = npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[-2]).last_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column);
2482 (yyval.pval)->next->u1.str = (yyvsp[-2].str);
2483 (yyval.pval)->next->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2484 (yyval.pval)->next->next->u1.str = (yyvsp[0].str); ;}
2489 {(yyval.pval)=npval(PV_WORD,(yylsp[-4]).first_line,(yylsp[-4]).last_line, (yylsp[-4]).first_column, (yylsp[-4]).last_column);
2490 (yyval.pval)->u1.str = strdup("default"); (yyval.pval)->next = npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[-2]).last_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column);
2491 (yyval.pval)->next->u1.str = (yyvsp[-2].str);
2492 (yyval.pval)->next->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2493 (yyval.pval)->next->next->u1.str = (yyvsp[0].str); ;}
2498 {(yyval.pval)=npval(PV_WORD,(yylsp[-4]).first_line,(yylsp[-4]).last_line, (yylsp[-4]).first_column, (yylsp[-4]).last_column);
2499 (yyval.pval)->u1.str = strdup("default"); (yyval.pval)->next = npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[-2]).last_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column);
2500 (yyval.pval)->next->u1.str = (yyvsp[-2].str);
2501 (yyval.pval)->next->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2502 (yyval.pval)->next->next->u1.str = (yyvsp[0].str); ;}
2507 {(yyval.pval)=npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2508 (yyval.pval)->u1.str = (yyvsp[0].str); (yyval.pval)->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2509 (yyval.pval)->next->u1.str = strdup("1");;}
2514 {(yyval.pval)=npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[-2]).last_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column);
2515 (yyval.pval)->u1.str = (yyvsp[-2].str); (yyval.pval)->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2516 (yyval.pval)->next->u1.str = (yyvsp[0].str);;}
2521 {(yyval.pval)=npval(PV_WORD,(yylsp[-4]).first_line,(yylsp[-4]).last_line, (yylsp[-4]).first_column, (yylsp[-4]).last_column);
2522 (yyval.pval)->u1.str = (yyvsp[0].str); (yyval.pval)->next = npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[-2]).last_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column);
2523 (yyval.pval)->next->u1.str = (yyvsp[-4].str);
2524 (yyval.pval)->next->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2525 (yyval.pval)->next->next->u1.str = (yyvsp[-2].str); ;}
2530 {(yyval.pval)=npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[-2]).last_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column);
2531 (yyval.pval)->u1.str = (yyvsp[0].str); (yyval.pval)->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2532 (yyval.pval)->next->u1.str = (yyvsp[-2].str);
2533 (yyval.pval)->next->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2534 (yyval.pval)->next->next->u1.str = strdup("1"); ;}
2539 {(yyval.pval)=npval(PV_WORD,(yylsp[-4]).first_line,(yylsp[-4]).last_line, (yylsp[-4]).first_column, (yylsp[-4]).last_column);
2540 (yyval.pval)->u1.str = strdup("default"); (yyval.pval)->next = npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[-2]).last_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column);
2541 (yyval.pval)->next->u1.str = (yyvsp[-4].str);
2542 (yyval.pval)->next->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2543 (yyval.pval)->next->next->u1.str = (yyvsp[-2].str); ;}
2548 {(yyval.pval)=npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[-2]).last_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column);
2549 (yyval.pval)->u1.str = strdup("default"); (yyval.pval)->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2550 (yyval.pval)->next->u1.str = (yyvsp[-2].str);
2551 (yyval.pval)->next->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2552 (yyval.pval)->next->next->u1.str = strdup("1"); ;}
2557 {reset_argcount(parseio->scanner);;}
2562 {(yyval.pval)= npval(PV_MACRO_CALL,(yylsp[-4]).first_line,(yylsp[-3]).last_line, (yylsp[-4]).first_column, (yylsp[-3]).last_column);
2563 (yyval.pval)->u1.str = (yyvsp[-4].str); (yyval.pval)->u2.arglist = (yyvsp[-1].pval);;}
2568 {(yyval.pval)= npval(PV_MACRO_CALL,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-2].str); ;}
2573 {reset_argcount(parseio->scanner);;}
2578 {if (strcasecmp((yyvsp[-2].str),"goto") == 0) {
2579 (yyval.pval)= npval(PV_GOTO,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column);
2580 free((yyvsp[-2].str)); /* won't be using this */
2581 ast_log(LOG_WARNING, "==== File: %s, Line %d, Cols: %d-%d: Suggestion: Use the goto statement instead of the Goto() application call in AEL.\n", my_file, (yylsp[-2]).first_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column );
2583 (yyval.pval)= npval(PV_APPLICATION_CALL,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column);
2584 (yyval.pval)->u1.str = (yyvsp[-2].str); ;}
2589 {(yyval.pval) = (yyvsp[-2].pval);
2590 if( (yyval.pval)->type == PV_GOTO )
2591 (yyval.pval)->u1.list = (yyvsp[-1].pval);
2593 (yyval.pval)->u2.arglist = (yyvsp[-1].pval);
2594 (yyval.pval)->endline = (yylsp[0]).last_line; (yyval.pval)->endcol = (yylsp[0]).last_column;;}
2599 {(yyval.pval)=(yyvsp[-1].pval);(yyval.pval)->endline = (yylsp[0]).last_line; (yyval.pval)->endcol = (yylsp[0]).last_column;;}
2604 { (yyval.pval)= npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[0].str);;}
2609 { (yyval.pval)= npval(PV_WORD,0/*@1.first_line*/,0/*@1.last_line*/,0/* @1.first_column*/, 0/*@1.last_column*/); (yyval.pval)->u1.str = strdup(""); ;}
2614 { pval *z = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column); (yyval.pval) = (yyvsp[-2].pval); linku1((yyvsp[-2].pval),z); z->u1.str = (yyvsp[0].str);;}
2619 { pval *z = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column); (yyval.pval) = (yyvsp[-1].pval); linku1((yyvsp[-1].pval),z); z->u1.str = strdup("");;}
2624 {(yyval.pval)=(yyvsp[0].pval);;}
2629 { if ( (yyvsp[-1].pval) && (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[-1].pval); linku1((yyval.pval),(yyvsp[0].pval));}
2630 else if ( (yyvsp[-1].pval) ) {(yyval.pval)=(yyvsp[-1].pval);}
2631 else if ( (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[0].pval);} ;}
2636 {(yyval.pval) = npval(PV_CASE,(yylsp[-3]).first_line,(yylsp[-1]).last_line, (yylsp[-3]).first_column, (yylsp[-1]).last_column); (yyval.pval)->u1.str = (yyvsp[-2].str); (yyval.pval)->u2.statements = (yyvsp[0].pval);;}
2641 {(yyval.pval) = npval(PV_DEFAULT,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = 0; (yyval.pval)->u2.statements = (yyvsp[0].pval);;}
2646 {(yyval.pval) = npval(PV_PATTERN,(yylsp[-3]).first_line,(yylsp[-1]).last_line, (yylsp[-3]).first_column, (yylsp[-1]).last_column); (yyval.pval)->u1.str = (yyvsp[-2].str); (yyval.pval)->u2.statements = (yyvsp[0].pval);;}
2651 {(yyval.pval) = npval(PV_CASE,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-1].str);;}
2656 {(yyval.pval) = npval(PV_DEFAULT,(yylsp[-1]).first_line,(yylsp[0]).last_line, (yylsp[-1]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = 0;;}
2661 {(yyval.pval) = npval(PV_PATTERN,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-1].str);;}
2666 {(yyval.pval) = (yyvsp[0].pval);;}
2671 { if ( (yyvsp[-1].pval) && (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[-1].pval); linku1((yyval.pval),(yyvsp[0].pval));}
2672 else if ( (yyvsp[-1].pval) ) {(yyval.pval)=(yyvsp[-1].pval);}
2673 else if ( (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[0].pval);} ;}
2678 {(yyval.pval)=(yyvsp[0].pval);;}
2683 {(yyval.pval)=npval(PV_CATCH,(yylsp[-4]).first_line,(yylsp[0]).last_line, (yylsp[-4]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-3].str); (yyval.pval)->u2.statements = (yyvsp[-1].pval);;}
2688 {(yyval.pval)= npval(PV_SWITCHES,(yylsp[-3]).first_line,(yylsp[0]).last_line, (yylsp[-3]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.list = (yyvsp[-1].pval); ;}
2693 {(yyval.pval)= npval(PV_SWITCHES,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column);;}
2698 {(yyval.pval)= npval(PV_ESWITCHES,(yylsp[-3]).first_line,(yylsp[0]).last_line, (yylsp[-3]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.list = (yyvsp[-1].pval); ;}
2703 {(yyval.pval)= npval(PV_ESWITCHES,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column); ;}
2708 {(yyval.pval)=npval(PV_WORD,(yylsp[-1]).first_line,(yylsp[0]).last_line, (yylsp[-1]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-1].str);;}
2713 {pval *z = npval(PV_WORD,(yylsp[-1]).first_line,(yylsp[0]).last_line, (yylsp[-1]).first_column, (yylsp[0]).last_column); (yyval.pval)=(yyvsp[-2].pval); z->u1.str = (yyvsp[-1].str); linku1((yyval.pval),z); ;}
2718 {(yyval.pval)=(yyvsp[-1].pval);;}
2723 {(yyval.pval)=npval(PV_WORD,(yylsp[-1]).first_line,(yylsp[0]).last_line, (yylsp[-1]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-1].str);;}
2729 (yyval.pval)=npval(PV_WORD,(yylsp[-13]).first_line,(yylsp[-12]).last_line, (yylsp[-13]).first_column, (yylsp[-12]).last_column);
2730 (yyval.pval)->u1.str = (yyvsp[-13].str);
2731 (yyval.pval)->u2.arglist = npval(PV_WORD,(yylsp[-11]).first_line,(yylsp[-7]).last_line, (yylsp[-11]).first_column, (yylsp[-7]).last_column);
2732 (yyval.pval)->u2.arglist->u1.str = (char*)malloc(strlen((yyvsp[-11].str))+strlen((yyvsp[-9].str))+strlen((yyvsp[-7].str))+4);
2733 strcpy((yyval.pval)->u2.arglist->u1.str,(yyvsp[-11].str));
2734 strcat((yyval.pval)->u2.arglist->u1.str,":");
2735 strcat((yyval.pval)->u2.arglist->u1.str,(yyvsp[-9].str));
2736 strcat((yyval.pval)->u2.arglist->u1.str,":");
2737 strcat((yyval.pval)->u2.arglist->u1.str,(yyvsp[-7].str));
2738 free((yyvsp[-11].str));
2739 free((yyvsp[-9].str));
2740 free((yyvsp[-7].str));
2741 (yyval.pval)->u2.arglist->next = npval(PV_WORD,(yylsp[-5]).first_line,(yylsp[-5]).last_line, (yylsp[-5]).first_column, (yylsp[-5]).last_column);
2742 (yyval.pval)->u2.arglist->next->u1.str = (yyvsp[-5].str);
2743 (yyval.pval)->u2.arglist->next->next = npval(PV_WORD,(yylsp[-3]).first_line,(yylsp[-3]).last_line, (yylsp[-3]).first_column, (yylsp[-3]).last_column);
2744 (yyval.pval)->u2.arglist->next->next->u1.str = (yyvsp[-3].str);
2745 (yyval.pval)->u2.arglist->next->next->next = npval(PV_WORD,(yylsp[-1]).first_line,(yylsp[-1]).last_line, (yylsp[-1]).first_column, (yylsp[-1]).last_column);
2746 (yyval.pval)->u2.arglist->next->next->next->u1.str = (yyvsp[-1].str);
2754 (yyval.pval)=npval(PV_WORD,(yylsp[-9]).first_line,(yylsp[-8]).last_line, (yylsp[-9]).first_column, (yylsp[-8]).last_column);
2755 (yyval.pval)->u1.str = (yyvsp[-9].str);
2756 (yyval.pval)->u2.arglist = npval(PV_WORD,(yylsp[-7]).first_line,(yylsp[-7]).last_line, (yylsp[-7]).first_column, (yylsp[-7]).last_column);
2757 (yyval.pval)->u2.arglist->u1.str = (yyvsp[-7].str);
2758 (yyval.pval)->u2.arglist->next = npval(PV_WORD,(yylsp[-5]).first_line,(yylsp[-5]).last_line, (yylsp[-5]).first_column, (yylsp[-5]).last_column);
2759 (yyval.pval)->u2.arglist->next->u1.str = (yyvsp[-5].str);
2760 (yyval.pval)->u2.arglist->next->next = npval(PV_WORD,(yylsp[-3]).first_line,(yylsp[-3]).last_line, (yylsp[-3]).first_column, (yylsp[-3]).last_column);
2761 (yyval.pval)->u2.arglist->next->next->u1.str = (yyvsp[-3].str);
2762 (yyval.pval)->u2.arglist->next->next->next = npval(PV_WORD,(yylsp[-1]).first_line,(yylsp[-1]).last_line, (yylsp[-1]).first_column, (yylsp[-1]).last_column);
2763 (yyval.pval)->u2.arglist->next->next->next->u1.str = (yyvsp[-1].str);
2770 {pval *z = npval(PV_WORD,(yylsp[-1]).first_line,(yylsp[0]).last_line, (yylsp[-1]).first_column, (yylsp[0]).last_column); (yyval.pval)=(yyvsp[-2].pval); z->u1.str = (yyvsp[-1].str); linku1((yyval.pval),z); ;}
2775 {pval *z = npval(PV_WORD,(yylsp[-13]).first_line,(yylsp[-12]).last_line, (yylsp[-13]).first_column, (yylsp[-12]).last_column);
2776 (yyval.pval)=(yyvsp[-14].pval); z->u1.str = (yyvsp[-13].str); linku1((yyval.pval),z);
2777 z->u2.arglist = npval(PV_WORD,(yylsp[-11]).first_line,(yylsp[-11]).last_line, (yylsp[-11]).first_column, (yylsp[-11]).last_column);
2778 (yyval.pval)->u2.arglist->u1.str = (char*)malloc(strlen((yyvsp[-11].str))+strlen((yyvsp[-9].str))+strlen((yyvsp[-7].str))+4);
2779 strcpy((yyval.pval)->u2.arglist->u1.str,(yyvsp[-11].str));
2780 strcat((yyval.pval)->u2.arglist->u1.str,":");
2781 strcat((yyval.pval)->u2.arglist->u1.str,(yyvsp[-9].str));
2782 strcat((yyval.pval)->u2.arglist->u1.str,":");
2783 strcat((yyval.pval)->u2.arglist->u1.str,(yyvsp[-7].str));
2784 free((yyvsp[-11].str));
2785 free((yyvsp[-9].str));
2786 free((yyvsp[-7].str));
2787 z->u2.arglist->next = npval(PV_WORD,(yylsp[-5]).first_line,(yylsp[-5]).last_line, (yylsp[-5]).first_column, (yylsp[-5]).last_column);
2788 z->u2.arglist->next->u1.str = (yyvsp[-5].str);
2789 z->u2.arglist->next->next = npval(PV_WORD,(yylsp[-3]).first_line,(yylsp[-3]).last_line, (yylsp[-3]).first_column, (yylsp[-3]).last_column);
2790 z->u2.arglist->next->next->u1.str = (yyvsp[-3].str);
2791 z->u2.arglist->next->next->next = npval(PV_WORD,(yylsp[-1]).first_line,(yylsp[-1]).last_line, (yylsp[-1]).first_column, (yylsp[-1]).last_column);
2792 z->u2.arglist->next->next->next->u1.str = (yyvsp[-1].str);
2799 {pval *z = npval(PV_WORD,(yylsp[-9]).first_line,(yylsp[-9]).last_line, (yylsp[-9]).first_column, (yylsp[-8]).last_column);
2800 (yyval.pval)=(yyvsp[-10].pval); z->u1.str = (yyvsp[-9].str); linku1((yyval.pval),z);
2801 z->u2.arglist = npval(PV_WORD,(yylsp[-7]).first_line,(yylsp[-7]).last_line, (yylsp[-7]).first_column, (yylsp[-7]).last_column);
2802 (yyval.pval)->u2.arglist->u1.str = (yyvsp[-7].str);
2803 z->u2.arglist->next = npval(PV_WORD,(yylsp[-5]).first_line,(yylsp[-5]).last_line, (yylsp[-5]).first_column, (yylsp[-5]).last_column);
2804 z->u2.arglist->next->u1.str = (yyvsp[-5].str);
2805 z->u2.arglist->next->next = npval(PV_WORD,(yylsp[-3]).first_line,(yylsp[-3]).last_line, (yylsp[-3]).first_column, (yylsp[-3]).last_column);
2806 z->u2.arglist->next->next->u1.str = (yyvsp[-3].str);
2807 z->u2.arglist->next->next->next = npval(PV_WORD,(yylsp[-1]).first_line,(yylsp[-1]).last_line, (yylsp[-1]).first_column, (yylsp[-1]).last_column);
2808 z->u2.arglist->next->next->next->u1.str = (yyvsp[-1].str);
2815 {(yyval.pval)=(yyvsp[-1].pval);;}
2820 { (yyval.str) = (yyvsp[0].str);;}
2825 {(yyval.str)=strdup("default");;}
2830 {(yyval.pval)= npval(PV_INCLUDES,(yylsp[-3]).first_line,(yylsp[0]).last_line, (yylsp[-3]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.list = (yyvsp[-1].pval);;}
2835 {(yyval.pval)= npval(PV_INCLUDES,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column);;}
2842 /* Line 1126 of yacc.c. */
2843 #line 2844 "ael.tab.c"
2849 YY_STACK_PRINT (yyss, yyssp);
2854 /* Now `shift' the result of the reduction. Determine what state
2855 that goes to, based on the state we popped back to and the rule
2856 number reduced by. */
2860 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
2861 if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
2862 yystate = yytable[yystate];
2864 yystate = yydefgoto[yyn - YYNTOKENS];
2869 /*------------------------------------.
2870 | yyerrlab -- here on detecting error |
2871 `------------------------------------*/
2873 /* If not already recovering from an error, report this error. */
2878 yyn = yypact[yystate];
2880 if (YYPACT_NINF < yyn && yyn < YYLAST)
2882 int yytype = YYTRANSLATE (yychar);
2883 YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
2884 YYSIZE_T yysize = yysize0;
2886 int yysize_overflow = 0;
2888 # define YYERROR_VERBOSE_ARGS_MAXIMUM 5
2889 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
2893 /* This is so xgettext sees the translatable formats that are
2894 constructed on the fly. */
2895 YY_("syntax error, unexpected %s");
2896 YY_("syntax error, unexpected %s, expecting %s");
2897 YY_("syntax error, unexpected %s, expecting %s or %s");
2898 YY_("syntax error, unexpected %s, expecting %s or %s or %s");
2899 YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
2903 static char const yyunexpected[] = "syntax error, unexpected %s";
2904 static char const yyexpecting[] = ", expecting %s";
2905 static char const yyor[] = " or %s";
2906 char yyformat[sizeof yyunexpected
2907 + sizeof yyexpecting - 1
2908 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
2909 * (sizeof yyor - 1))];
2910 char const *yyprefix = yyexpecting;
2912 /* Start YYX at -YYN if negative to avoid negative indexes in
2914 int yyxbegin = yyn < 0 ? -yyn : 0;
2916 /* Stay within bounds of both yycheck and yytname. */
2917 int yychecklim = YYLAST - yyn;
2918 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
2921 yyarg[0] = yytname[yytype];
2922 yyfmt = yystpcpy (yyformat, yyunexpected);
2924 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
2925 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
2927 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
2931 yyformat[sizeof yyunexpected - 1] = '\0';
2934 yyarg[yycount++] = yytname[yyx];
2935 yysize1 = yysize + yytnamerr (0, yytname[yyx]);
2936 yysize_overflow |= yysize1 < yysize;
2938 yyfmt = yystpcpy (yyfmt, yyprefix);
2942 yyf = YY_(yyformat);
2943 yysize1 = yysize + yystrlen (yyf);
2944 yysize_overflow |= yysize1 < yysize;
2947 if (!yysize_overflow && yysize <= YYSTACK_ALLOC_MAXIMUM)
2948 yymsg = (char *) YYSTACK_ALLOC (yysize);
2951 /* Avoid sprintf, as that infringes on the user's name space.
2952 Don't have undefined behavior even if the translation
2953 produced a string with the wrong number of "%s"s. */
2956 while ((*yyp = *yyf))
2958 if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
2960 yyp += yytnamerr (yyp, yyarg[yyi++]);
2969 yyerror (&yylloc, parseio, yymsg);
2970 YYSTACK_FREE (yymsg);
2974 yyerror (&yylloc, parseio, YY_("syntax error"));
2975 goto yyexhaustedlab;
2979 #endif /* YYERROR_VERBOSE */
2980 yyerror (&yylloc, parseio, YY_("syntax error"));
2983 yyerror_range[0] = yylloc;
2985 if (yyerrstatus == 3)
2987 /* If just tried and failed to reuse look-ahead token after an
2988 error, discard it. */
2990 if (yychar <= YYEOF)
2992 /* Return failure if at end of input. */
2993 if (yychar == YYEOF)
2998 yydestruct ("Error: discarding", yytoken, &yylval, &yylloc);
3003 /* Else will try to reuse look-ahead token after shifting the error
3008 /*---------------------------------------------------.
3009 | yyerrorlab -- error raised explicitly by YYERROR. |
3010 `---------------------------------------------------*/
3013 /* Pacify compilers like GCC when the user code never invokes
3014 YYERROR and the label yyerrorlab therefore never appears in user
3019 yyerror_range[0] = yylsp[1-yylen];
3027 /*-------------------------------------------------------------.
3028 | yyerrlab1 -- common code for both syntax error and YYERROR. |
3029 `-------------------------------------------------------------*/
3031 yyerrstatus = 3; /* Each real token shifted decrements this. */
3035 yyn = yypact[yystate];
3036 if (yyn != YYPACT_NINF)
3039 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
3047 /* Pop the current state because it cannot handle the error token. */
3051 yyerror_range[0] = *yylsp;
3052 yydestruct ("Error: popping", yystos[yystate], yyvsp, yylsp);
3055 YY_STACK_PRINT (yyss, yyssp);
3063 yyerror_range[1] = yylloc;
3064 /* Using YYLLOC is tempting, but would change the location of
3065 the look-ahead. YYLOC is available though. */
3066 YYLLOC_DEFAULT (yyloc, yyerror_range - 1, 2);
3069 /* Shift the error token. */
3070 YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
3076 /*-------------------------------------.
3077 | yyacceptlab -- YYACCEPT comes here. |
3078 `-------------------------------------*/
3083 /*-----------------------------------.
3084 | yyabortlab -- YYABORT comes here. |
3085 `-----------------------------------*/
3091 /*-------------------------------------------------.
3092 | yyexhaustedlab -- memory exhaustion comes here. |
3093 `-------------------------------------------------*/
3095 yyerror (&yylloc, parseio, YY_("memory exhausted"));
3101 if (yychar != YYEOF && yychar != YYEMPTY)
3102 yydestruct ("Cleanup: discarding lookahead",
3103 yytoken, &yylval, &yylloc);
3104 while (yyssp != yyss)
3106 yydestruct ("Cleanup: popping",
3107 yystos[*yyssp], yyvsp, yylsp);
3112 YYSTACK_FREE (yyss);
3121 static char *token_equivs1[] =
3161 static char *token_equivs2[] =