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 extern void reset_parencount(yyscan_t yyscanner);
184 extern void reset_semicount(yyscan_t yyscanner);
185 extern void reset_argcount(yyscan_t yyscanner );
187 #define YYLEX_PARAM ((struct parse_io *)parseio)->scanner
188 #define YYERROR_VERBOSE 1
190 extern char *my_file;
192 int ael_is_funcname(char *name);
194 static char *ael_token_subst(char *mess);
195 extern char *prev_word;
199 /* Enabling traces. */
204 /* Enabling verbose error messages. */
205 #ifdef YYERROR_VERBOSE
206 # undef YYERROR_VERBOSE
207 # define YYERROR_VERBOSE 1
209 # define YYERROR_VERBOSE 1
212 /* Enabling the token table. */
213 #ifndef YYTOKEN_TABLE
214 # define YYTOKEN_TABLE 0
217 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
219 typedef union YYSTYPE {
223 /* Line 196 of yacc.c. */
224 #line 225 "ael.tab.c"
225 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
226 # define YYSTYPE_IS_DECLARED 1
227 # define YYSTYPE_IS_TRIVIAL 1
230 #if ! defined (YYLTYPE) && ! defined (YYLTYPE_IS_DECLARED)
231 typedef struct YYLTYPE
238 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
239 # define YYLTYPE_IS_DECLARED 1
240 # define YYLTYPE_IS_TRIVIAL 1
244 /* Copy the second part of user declarations. */
247 /* declaring these AFTER the union makes things a lot simpler! */
248 void yyerror(YYLTYPE *locp, struct parse_io *parseio, char const *s);
249 int ael_yylex (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , void * yyscanner);
253 /* Line 219 of yacc.c. */
254 #line 255 "ael.tab.c"
256 #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
257 # define YYSIZE_T __SIZE_TYPE__
259 #if ! defined (YYSIZE_T) && defined (size_t)
260 # define YYSIZE_T size_t
262 #if ! defined (YYSIZE_T) && (defined (__STDC__) || defined (__cplusplus))
263 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
264 # define YYSIZE_T size_t
266 #if ! defined (YYSIZE_T)
267 # define YYSIZE_T unsigned int
273 # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
274 # define YY_(msgid) dgettext ("bison-runtime", msgid)
278 # define YY_(msgid) msgid
282 #if ! defined (yyoverflow) || YYERROR_VERBOSE
284 /* The parser invokes alloca or malloc; define the necessary symbols. */
286 # ifdef YYSTACK_USE_ALLOCA
287 # if YYSTACK_USE_ALLOCA
289 # define YYSTACK_ALLOC __builtin_alloca
291 # define YYSTACK_ALLOC alloca
292 # if defined (__STDC__) || defined (__cplusplus)
293 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
294 # define YYINCLUDED_STDLIB_H
300 # ifdef YYSTACK_ALLOC
301 /* Pacify GCC's `empty if-body' warning. */
302 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
303 # ifndef YYSTACK_ALLOC_MAXIMUM
304 /* The OS might guarantee only one guard page at the bottom of the stack,
305 and a page size can be as small as 4096 bytes. So we cannot safely
306 invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
307 to allow for a few compiler-allocated temporary stack slots. */
308 # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2005 */
311 # define YYSTACK_ALLOC YYMALLOC
312 # define YYSTACK_FREE YYFREE
313 # ifndef YYSTACK_ALLOC_MAXIMUM
314 # define YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1)
320 # define YYMALLOC malloc
321 # if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H) \
322 && (defined (__STDC__) || defined (__cplusplus)))
323 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
328 # if (! defined (free) && ! defined (YYINCLUDED_STDLIB_H) \
329 && (defined (__STDC__) || defined (__cplusplus)))
330 void free (void *); /* INFRINGES ON USER NAME SPACE */
337 #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
340 #if (! defined (yyoverflow) \
341 && (! defined (__cplusplus) \
342 || (defined (YYLTYPE_IS_TRIVIAL) && YYLTYPE_IS_TRIVIAL \
343 && defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
345 /* A type that is properly aligned for any stack member. */
353 /* The size of the maximum gap between one aligned stack and the next. */
354 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
356 /* The size of an array large to enough to hold all stacks, each with
358 # define YYSTACK_BYTES(N) \
359 ((N) * (sizeof (short int) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
360 + 2 * YYSTACK_GAP_MAXIMUM)
362 /* Copy COUNT objects from FROM to TO. The source and destination do
365 # if defined (__GNUC__) && 1 < __GNUC__
366 # define YYCOPY(To, From, Count) \
367 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
369 # define YYCOPY(To, From, Count) \
373 for (yyi = 0; yyi < (Count); yyi++) \
374 (To)[yyi] = (From)[yyi]; \
380 /* Relocate STACK from its old location to the new one. The
381 local variables YYSIZE and YYSTACKSIZE give the old and new number of
382 elements in the stack, and YYPTR gives the new location of the
383 stack. Advance YYPTR to a properly aligned location for the next
385 # define YYSTACK_RELOCATE(Stack) \
388 YYSIZE_T yynewbytes; \
389 YYCOPY (&yyptr->Stack, Stack, yysize); \
390 Stack = &yyptr->Stack; \
391 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
392 yyptr += yynewbytes / sizeof (*yyptr); \
398 #if defined (__STDC__) || defined (__cplusplus)
399 typedef signed char yysigned_char;
401 typedef short int yysigned_char;
404 /* YYFINAL -- State number of the termination state. */
406 /* YYLAST -- Last index in YYTABLE. */
409 /* YYNTOKENS -- Number of terminals. */
411 /* YYNNTS -- Number of nonterminals. */
413 /* YYNRULES -- Number of rules. */
415 /* YYNRULES -- Number of states. */
416 #define YYNSTATES 354
418 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
420 #define YYMAXUTOK 296
422 #define YYTRANSLATE(YYX) \
423 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
425 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
426 static const unsigned char yytranslate[] =
428 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
429 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
430 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
431 2, 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, 1, 2, 3, 4,
454 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
455 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
456 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
457 35, 36, 37, 38, 39, 40, 41
461 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
463 static const unsigned short int yyprhs[] =
465 0, 0, 3, 5, 7, 10, 13, 15, 17, 19,
466 21, 27, 32, 38, 43, 50, 56, 63, 69, 78,
467 86, 94, 101, 106, 110, 112, 115, 118, 119, 125,
468 127, 131, 134, 136, 138, 141, 144, 146, 148, 150,
469 152, 154, 155, 161, 164, 166, 171, 175, 180, 188,
470 197, 199, 202, 205, 206, 212, 213, 219, 234, 245,
471 247, 250, 252, 255, 259, 261, 264, 268, 269, 276,
472 280, 281, 287, 291, 295, 298, 299, 300, 301, 314,
473 315, 322, 325, 329, 333, 336, 339, 340, 346, 349,
474 352, 355, 358, 363, 366, 371, 374, 379, 381, 383,
475 387, 391, 397, 403, 409, 415, 417, 421, 427, 431,
476 437, 441, 442, 448, 452, 453, 457, 461, 464, 466,
477 467, 471, 474, 476, 479, 484, 488, 493, 497, 500,
478 504, 506, 509, 511, 517, 522, 526, 531, 535, 538,
479 542, 545, 548, 563, 574, 578, 594, 606, 609, 611,
483 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
484 static const yysigned_char yyrhs[] =
486 43, 0, -1, 44, -1, 45, -1, 44, 45, -1,
487 44, 1, -1, 46, -1, 47, -1, 48, -1, 8,
488 -1, 3, 41, 4, 53, 5, -1, 3, 41, 4,
489 5, -1, 3, 36, 4, 53, 5, -1, 3, 36,
490 4, 5, -1, 23, 3, 41, 4, 53, 5, -1,
491 23, 3, 41, 4, 5, -1, 23, 3, 36, 4,
492 53, 5, -1, 23, 3, 36, 4, 5, -1, 15,
493 41, 6, 52, 7, 4, 86, 5, -1, 15, 41,
494 6, 52, 7, 4, 5, -1, 15, 41, 6, 7,
495 4, 86, 5, -1, 15, 41, 6, 7, 4, 5,
496 -1, 16, 4, 49, 5, -1, 16, 4, 5, -1,
497 50, -1, 49, 50, -1, 49, 1, -1, -1, 41,
498 9, 51, 41, 8, -1, 41, -1, 52, 10, 41,
499 -1, 52, 1, -1, 54, -1, 1, -1, 53, 54,
500 -1, 53, 1, -1, 57, -1, 93, -1, 88, -1,
501 89, -1, 56, -1, -1, 41, 9, 55, 41, 8,
502 -1, 41, 1, -1, 8, -1, 17, 24, 41, 8,
503 -1, 41, 24, 69, -1, 30, 41, 24, 69, -1,
504 31, 6, 65, 7, 41, 24, 69, -1, 30, 31,
505 6, 65, 7, 41, 24, 69, -1, 69, -1, 58,
506 69, -1, 58, 1, -1, -1, 19, 6, 60, 64,
507 7, -1, -1, 22, 6, 62, 64, 7, -1, 20,
508 6, 65, 11, 65, 11, 65, 13, 65, 13, 65,
509 13, 65, 7, -1, 20, 6, 41, 13, 65, 13,
510 65, 13, 65, 7, -1, 41, -1, 41, 41, -1,
511 41, -1, 41, 41, -1, 41, 41, 41, -1, 41,
512 -1, 41, 41, -1, 41, 11, 41, -1, -1, 18,
513 6, 68, 41, 7, 4, -1, 4, 58, 5, -1,
514 -1, 41, 9, 70, 41, 8, -1, 25, 76, 8,
515 -1, 26, 77, 8, -1, 41, 11, -1, -1, -1,
516 -1, 32, 6, 71, 41, 8, 72, 41, 8, 73,
517 41, 7, 69, -1, -1, 33, 6, 74, 41, 7,
518 69, -1, 67, 5, -1, 67, 84, 5, -1, 12,
519 78, 8, -1, 82, 8, -1, 41, 8, -1, -1,
520 82, 9, 75, 41, 8, -1, 28, 8, -1, 27,
521 8, -1, 29, 8, -1, 61, 69, -1, 61, 69,
522 21, 69, -1, 59, 69, -1, 59, 69, 21, 69,
523 -1, 63, 69, -1, 63, 69, 21, 69, -1, 8,
524 -1, 66, -1, 66, 13, 66, -1, 66, 10, 66,
525 -1, 66, 13, 66, 13, 66, -1, 66, 10, 66,
526 10, 66, -1, 36, 13, 66, 13, 66, -1, 36,
527 10, 66, 10, 66, -1, 66, -1, 66, 10, 66,
528 -1, 66, 10, 41, 14, 41, -1, 66, 14, 66,
529 -1, 66, 10, 41, 14, 36, -1, 66, 14, 36,
530 -1, -1, 41, 6, 79, 83, 7, -1, 41, 6,
531 7, -1, -1, 41, 81, 6, -1, 80, 83, 7,
532 -1, 80, 7, -1, 64, -1, -1, 83, 10, 41,
533 -1, 83, 10, -1, 85, -1, 84, 85, -1, 34,
534 41, 11, 58, -1, 36, 11, 58, -1, 35, 41,
535 11, 58, -1, 34, 41, 11, -1, 36, 11, -1,
536 35, 41, 11, -1, 87, -1, 86, 87, -1, 69,
537 -1, 37, 41, 4, 58, 5, -1, 38, 4, 90,
538 5, -1, 38, 4, 5, -1, 39, 4, 90, 5,
539 -1, 39, 4, 5, -1, 41, 8, -1, 90, 41,
540 8, -1, 90, 1, -1, 92, 8, -1, 92, 13,
541 65, 11, 65, 11, 65, 13, 65, 13, 65, 13,
542 65, 8, -1, 92, 13, 41, 13, 65, 13, 65,
543 13, 65, 8, -1, 91, 92, 8, -1, 91, 92,
544 13, 65, 11, 65, 11, 65, 13, 65, 13, 65,
545 13, 65, 8, -1, 91, 92, 13, 41, 13, 65,
546 13, 65, 13, 65, 8, -1, 91, 1, -1, 41,
547 -1, 36, -1, 40, 4, 91, 5, -1, 40, 4,
551 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
552 static const unsigned short int yyrline[] =
554 0, 126, 126, 129, 130, 133, 136, 137, 138, 139,
555 142, 143, 144, 145, 146, 147, 148, 149, 152, 154,
556 155, 156, 159, 160, 163, 164, 165, 168, 168, 171,
557 172, 173, 176, 177, 178, 181, 184, 185, 186, 187,
558 188, 189, 189, 190, 191, 194, 197, 198, 199, 200,
559 204, 205, 208, 211, 211, 214, 214, 217, 236, 255,
560 256, 258, 259, 260, 263, 264, 265, 268, 268, 273,
561 274, 274, 277, 278, 279, 280, 281, 282, 280, 285,
562 285, 288, 289, 290, 291, 292, 294, 294, 327, 328,
563 329, 330, 331, 332, 333, 334, 335, 336, 339, 340,
564 343, 346, 351, 356, 361, 368, 371, 374, 379, 384,
565 389, 396, 396, 399, 402, 402, 411, 417, 420, 421,
566 422, 423, 426, 427, 432, 433, 434, 435, 436, 437,
567 440, 441, 446, 447, 450, 451, 454, 455, 458, 459,
568 460, 463, 464, 485, 498, 499, 519, 532, 535, 536,
573 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
574 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
575 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
576 static const char *const yytname[] =
578 "$end", "error", "$undefined", "KW_CONTEXT", "LC", "RC", "LP", "RP",
579 "SEMI", "EQ", "COMMA", "COLON", "AMPER", "BAR", "AT", "KW_MACRO",
580 "KW_GLOBALS", "KW_IGNOREPAT", "KW_SWITCH", "KW_IF", "KW_IFTIME",
581 "KW_ELSE", "KW_RANDOM", "KW_ABSTRACT", "EXTENMARK", "KW_GOTO", "KW_JUMP",
582 "KW_RETURN", "KW_BREAK", "KW_CONTINUE", "KW_REGEXTEN", "KW_HINT",
583 "KW_FOR", "KW_WHILE", "KW_CASE", "KW_PATTERN", "KW_DEFAULT", "KW_CATCH",
584 "KW_SWITCHES", "KW_ESWITCHES", "KW_INCLUDES", "word", "$accept", "file",
585 "objects", "object", "context", "macro", "globals", "global_statements",
586 "global_statement", "@1", "arglist", "elements", "element", "@2",
587 "ignorepat", "extension", "statements", "if_head", "@3", "random_head",
588 "@4", "iftime_head", "word_list", "word3_list", "goto_word",
589 "switch_head", "@5", "statement", "@6", "@7", "@8", "@9", "@10", "@11",
590 "target", "jumptarget", "macro_call", "@12", "application_call_head",
591 "@13", "application_call", "eval_arglist", "case_statements",
592 "case_statement", "macro_statements", "macro_statement", "switches",
593 "eswitches", "switchlist", "includeslist", "includedname", "includes", 0
598 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
600 static const unsigned short int yytoknum[] =
602 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
603 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
604 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
605 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
610 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
611 static const unsigned char yyr1[] =
613 0, 42, 43, 44, 44, 44, 45, 45, 45, 45,
614 46, 46, 46, 46, 46, 46, 46, 46, 47, 47,
615 47, 47, 48, 48, 49, 49, 49, 51, 50, 52,
616 52, 52, 53, 53, 53, 53, 54, 54, 54, 54,
617 54, 55, 54, 54, 54, 56, 57, 57, 57, 57,
618 58, 58, 58, 60, 59, 62, 61, 63, 63, 64,
619 64, 65, 65, 65, 66, 66, 66, 68, 67, 69,
620 70, 69, 69, 69, 69, 71, 72, 73, 69, 74,
621 69, 69, 69, 69, 69, 69, 75, 69, 69, 69,
622 69, 69, 69, 69, 69, 69, 69, 69, 76, 76,
623 76, 76, 76, 76, 76, 77, 77, 77, 77, 77,
624 77, 79, 78, 78, 81, 80, 82, 82, 83, 83,
625 83, 83, 84, 84, 85, 85, 85, 85, 85, 85,
626 86, 86, 87, 87, 88, 88, 89, 89, 90, 90,
627 90, 91, 91, 91, 91, 91, 91, 91, 92, 92,
631 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
632 static const unsigned char yyr2[] =
634 0, 2, 1, 1, 2, 2, 1, 1, 1, 1,
635 5, 4, 5, 4, 6, 5, 6, 5, 8, 7,
636 7, 6, 4, 3, 1, 2, 2, 0, 5, 1,
637 3, 2, 1, 1, 2, 2, 1, 1, 1, 1,
638 1, 0, 5, 2, 1, 4, 3, 4, 7, 8,
639 1, 2, 2, 0, 5, 0, 5, 14, 10, 1,
640 2, 1, 2, 3, 1, 2, 3, 0, 6, 3,
641 0, 5, 3, 3, 2, 0, 0, 0, 12, 0,
642 6, 2, 3, 3, 2, 2, 0, 5, 2, 2,
643 2, 2, 4, 2, 4, 2, 4, 1, 1, 3,
644 3, 5, 5, 5, 5, 1, 3, 5, 3, 5,
645 3, 0, 5, 3, 0, 3, 3, 2, 1, 0,
646 3, 2, 1, 2, 4, 3, 4, 3, 2, 3,
647 1, 2, 1, 5, 4, 3, 4, 3, 2, 3,
648 2, 2, 14, 10, 3, 15, 11, 2, 1, 1,
652 /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
653 STATE-NUM when YYTABLE doesn't specify something else to do. Zero
654 means the default is an error. */
655 static const unsigned char yydefact[] =
657 0, 0, 9, 0, 0, 0, 0, 0, 3, 6,
658 7, 8, 0, 0, 0, 0, 0, 1, 5, 4,
659 0, 0, 0, 23, 0, 0, 24, 0, 0, 33,
660 13, 44, 0, 0, 0, 0, 0, 0, 0, 0,
661 32, 40, 36, 38, 39, 37, 11, 0, 0, 29,
662 0, 27, 26, 22, 25, 0, 0, 0, 0, 0,
663 0, 0, 0, 0, 43, 41, 0, 35, 12, 34,
664 10, 0, 31, 0, 0, 0, 17, 0, 15, 0,
665 0, 0, 0, 61, 0, 135, 0, 0, 137, 0,
666 151, 149, 148, 0, 0, 0, 0, 97, 0, 0,
667 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
668 114, 0, 0, 0, 0, 46, 119, 0, 21, 0,
669 132, 0, 130, 0, 30, 0, 16, 14, 45, 0,
670 47, 62, 0, 138, 140, 134, 0, 136, 147, 150,
671 0, 141, 0, 0, 0, 50, 0, 0, 67, 53,
672 0, 55, 0, 64, 98, 0, 105, 0, 89, 88,
673 90, 75, 79, 85, 70, 74, 0, 93, 91, 95,
674 81, 0, 0, 0, 0, 122, 117, 59, 118, 0,
675 84, 86, 0, 20, 131, 19, 0, 28, 0, 63,
676 0, 139, 144, 0, 61, 0, 42, 52, 69, 51,
677 111, 83, 0, 0, 61, 0, 0, 0, 0, 0,
678 65, 0, 0, 72, 0, 0, 73, 0, 0, 0,
679 115, 0, 0, 0, 0, 0, 128, 82, 123, 60,
680 116, 121, 0, 0, 18, 0, 0, 61, 0, 0,
681 0, 113, 119, 0, 0, 0, 0, 0, 0, 0,
682 66, 100, 99, 64, 106, 110, 108, 0, 0, 0,
683 94, 92, 96, 127, 129, 0, 120, 0, 0, 0,
684 48, 0, 0, 0, 0, 0, 0, 54, 0, 0,
685 56, 0, 0, 0, 0, 0, 76, 0, 71, 0,
686 0, 87, 133, 49, 0, 0, 0, 0, 112, 68,
687 0, 0, 104, 103, 102, 101, 109, 107, 0, 80,
688 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
689 0, 0, 0, 77, 0, 0, 0, 0, 0, 0,
690 0, 0, 0, 143, 0, 58, 0, 0, 146, 0,
691 0, 0, 0, 0, 0, 0, 78, 0, 0, 0,
695 /* YYDEFGOTO[NTERM-NUM]. */
696 static const short int yydefgoto[] =
698 -1, 6, 7, 8, 9, 10, 11, 25, 26, 75,
699 50, 39, 40, 95, 41, 42, 144, 111, 203, 112,
700 206, 113, 178, 84, 154, 114, 202, 145, 219, 217,
701 308, 330, 218, 232, 155, 157, 147, 242, 116, 166,
702 117, 179, 174, 175, 121, 122, 43, 44, 87, 93,
706 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
708 #define YYPACT_NINF -215
709 static const short int yypact[] =
711 212, 127, -215, -35, 55, 23, 85, 561, -215, -215,
712 -215, -215, 64, 118, 112, 13, 128, -215, -215, -215,
713 157, 208, 2, -215, 123, 19, -215, 130, 137, -215,
714 -215, -215, 143, 43, 169, 181, 182, 189, 126, 284,
715 -215, -215, -215, -215, -215, -215, -215, 337, 196, -215,
716 141, -215, -215, -215, -215, 342, 357, 135, 188, 177,
717 170, 22, 36, 29, -215, -215, 527, -215, -215, -215,
718 -215, 423, -215, 206, 191, 195, -215, 384, -215, 399,
719 210, 170, 527, 200, 215, -215, 242, 51, -215, 57,
720 -215, -215, -215, 12, 158, 220, 527, -215, 223, 245,
721 250, 259, 262, 148, 229, 263, 265, 266, 269, 275,
722 251, 527, 527, 527, 156, -215, 26, 145, -215, 243,
723 -215, 449, -215, 475, -215, 279, -215, -215, -215, 281,
724 -215, 252, 253, -215, -215, -215, 283, -215, -215, -215,
725 204, -215, 254, 291, 278, -215, 296, 300, -215, -215,
726 276, -215, 69, 40, 95, 310, 114, 313, -215, -215,
727 -215, -215, -215, -215, -215, -215, 323, 311, 318, 325,
728 -215, 290, 303, 340, 172, -215, -215, 307, -215, 230,
729 -215, -215, 348, -215, -215, -215, 501, -215, 312, -215,
730 331, -215, -215, 315, 58, 346, -215, -215, -215, -215,
731 353, -215, 320, 322, 76, 355, 322, 229, 229, 328,
732 -215, 229, 229, -215, 329, 178, -215, 330, 338, 343,
733 -215, 527, 527, 527, 375, 379, 527, -215, -215, -215,
734 -215, 350, 352, 527, -215, 370, 527, 108, 388, 170,
735 170, -215, 322, 395, 396, 170, 170, 398, 354, 393,
736 -215, 400, 404, 50, -215, -215, -215, 401, 405, 403,
737 -215, -215, -215, 527, 527, 3, -215, 410, 308, 527,
738 -215, 170, 170, 406, 397, 235, 409, -215, 407, 415,
739 -215, 229, 229, 229, 229, 190, -215, 527, -215, 68,
740 111, -215, -215, -215, 408, 421, 170, 170, -215, -215,
741 170, 170, -215, -215, -215, -215, -215, -215, 392, -215,
742 170, 170, 431, 433, 434, 445, 426, 446, 450, 170,
743 170, 170, 170, -215, 170, 170, 428, 452, 455, 453,
744 429, 464, 460, -215, 170, -215, 170, 477, -215, 170,
745 472, 476, 527, 478, 170, 170, -215, 170, 480, 485,
746 488, -215, -215, -215
749 /* YYPGOTO[NTERM-NUM]. */
750 static const short int yypgoto[] =
752 -215, -215, -215, 491, -215, -215, -215, -215, 474, -215,
753 -215, 104, -37, -215, -215, -215, -214, -215, -215, -215,
754 -215, -215, 60, -67, -101, -215, -215, -66, -215, -215,
755 -215, -215, -215, -215, -215, -215, -215, -215, -215, -215,
756 -215, 268, -215, 341, 391, -120, -215, -215, 456, -215,
760 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
761 positive, shift that token. If negative, reduce the rule which
762 number is the opposite. If zero, do what YYDEFACT says.
763 If YYTABLE_NINF, syntax error. */
764 #define YYTABLE_NINF -127
765 static const short int yytable[] =
767 115, 184, 69, 156, 197, 120, 14, 96, -125, 48,
768 69, 97, 265, 138, 129, 98, 130, 139, 23, 268,
769 52, 99, 100, 101, 53, 102, 16, 85, 103, 104,
770 105, 106, 107, 176, 90, 108, 109, -125, -125, -125,
771 69, 88, 69, 49, 110, 167, 168, 169, 91, 289,
772 290, 209, 134, 92, 24, 120, 135, 120, 134, 15,
773 24, 209, 137, 86, 285, 91, 184, 177, 20, 197,
774 92, 239, 96, -124, 58, 195, 97, 86, 199, 207,
775 98, 210, 208, 205, 59, 17, 99, 100, 101, 245,
776 102, 210, 136, 103, 104, 105, 106, 107, 136, 131,
777 108, 109, -124, -124, -124, 211, 248, 249, 212, 110,
778 251, 252, 197, 254, 256, 96, -126, 131, 22, 97,
779 120, 271, 21, 98, 214, 47, 238, 64, 215, 99,
780 100, 101, 51, 102, 55, 65, 103, 104, 105, 106,
781 107, 56, 72, 108, 109, -126, -126, -126, 73, 131,
782 66, 74, 110, 180, 181, 260, 261, 262, 29, 77,
783 79, 170, 30, 12, 27, 31, 141, 57, 13, 28,
784 270, 142, 273, 274, 32, 60, 80, 227, 278, 279,
785 302, 303, 304, 305, 152, 61, 62, 33, 34, 153,
786 171, 172, 173, 63, 81, 35, 36, 37, 38, 199,
787 71, 82, 199, 293, 294, 295, 171, 172, 173, 29,
788 123, 83, 192, 46, 255, 1, 31, 193, 128, 153,
789 2, 309, 132, 199, 199, 32, 306, 3, 4, 312,
790 313, 307, 124, 314, 315, 5, 125, 230, 33, 34,
791 231, 131, 298, 317, 318, 231, 35, 36, 37, 38,
792 133, 148, 326, 327, 328, 329, 149, 331, 332, 163,
793 164, 143, 165, 244, 146, 150, 247, 340, 151, 341,
794 153, 158, 343, 159, 160, 161, 346, 348, 349, 197,
795 350, 162, 96, 198, 182, 67, 97, 187, 188, 68,
796 98, 191, 31, 189, 190, 194, 99, 100, 101, 196,
797 102, 32, 200, 103, 104, 105, 106, 107, 201, 197,
798 108, 109, 96, 292, 33, 34, 97, 204, 213, 110,
799 98, 216, 35, 36, 37, 38, 99, 100, 101, 220,
800 102, 224, 221, 103, 104, 105, 106, 107, 67, 222,
801 108, 109, 70, 29, 225, 31, 223, 76, 229, 110,
802 31, 226, 233, 235, 32, 236, 237, 240, 29, 32,
803 241, 243, 78, 177, 281, 31, 246, 33, 34, 250,
804 253, 257, 33, 34, 32, 35, 36, 37, 38, 258,
805 35, 36, 37, 38, 259, 67, 263, 33, 34, 126,
806 264, 266, 31, 267, 269, 35, 36, 37, 38, 272,
807 67, 32, 276, 277, 127, 280, 282, 31, 297, 286,
808 283, 288, 287, 299, 33, 34, 32, 284, 291, 296,
809 300, 310, 35, 36, 37, 38, 301, 96, 118, 33,
810 34, 97, 311, 316, 323, 98, 333, 35, 36, 37,
811 38, 99, 100, 101, 319, 102, 320, 321, 103, 104,
812 105, 106, 107, 96, 183, 108, 109, 97, 322, 324,
813 119, 98, 335, 325, 110, 334, 336, 99, 100, 101,
814 337, 102, 338, 339, 103, 104, 105, 106, 107, 96,
815 185, 108, 109, 97, 342, 344, 119, 98, 351, 345,
816 110, 347, 352, 99, 100, 101, 353, 102, 19, 54,
817 103, 104, 105, 106, 107, 96, 234, 108, 109, 97,
818 275, 140, 119, 98, 186, 228, 110, 0, 89, 99,
819 100, 101, 0, 102, 0, 0, 103, 104, 105, 106,
820 107, 96, 0, 108, 109, 97, 0, 0, 119, 98,
821 0, 0, 110, 0, 0, 99, 100, 101, 0, 102,
822 0, 0, 103, 104, 105, 106, 107, 0, 0, 108,
823 109, -2, 18, 0, 1, 0, 0, 0, 110, 2,
824 0, 0, 0, 0, 0, 0, 3, 4, 0, 0,
828 static const short int yycheck[] =
830 66, 121, 39, 104, 1, 71, 41, 4, 5, 7,
831 47, 8, 226, 1, 81, 12, 82, 5, 5, 233,
832 1, 18, 19, 20, 5, 22, 3, 5, 25, 26,
833 27, 28, 29, 7, 5, 32, 33, 34, 35, 36,
834 77, 5, 79, 41, 41, 111, 112, 113, 36, 263,
835 264, 11, 1, 41, 41, 121, 5, 123, 1, 4,
836 41, 11, 5, 41, 14, 36, 186, 41, 4, 1,
837 41, 13, 4, 5, 31, 142, 8, 41, 144, 10,
838 12, 41, 13, 150, 41, 0, 18, 19, 20, 13,
839 22, 41, 41, 25, 26, 27, 28, 29, 41, 41,
840 32, 33, 34, 35, 36, 10, 207, 208, 13, 41,
841 211, 212, 1, 214, 215, 4, 5, 41, 6, 8,
842 186, 13, 4, 12, 10, 21, 193, 1, 14, 18,
843 19, 20, 9, 22, 4, 9, 25, 26, 27, 28,
844 29, 4, 1, 32, 33, 34, 35, 36, 7, 41,
845 24, 10, 41, 8, 9, 221, 222, 223, 1, 55,
846 56, 5, 5, 36, 36, 8, 8, 24, 41, 41,
847 236, 13, 239, 240, 17, 6, 41, 5, 245, 246,
848 281, 282, 283, 284, 36, 4, 4, 30, 31, 41,
849 34, 35, 36, 4, 6, 38, 39, 40, 41, 265,
850 4, 24, 268, 269, 271, 272, 34, 35, 36, 1,
851 4, 41, 8, 5, 36, 3, 8, 13, 8, 41,
852 8, 287, 7, 289, 290, 17, 36, 15, 16, 296,
853 297, 41, 41, 300, 301, 23, 41, 7, 30, 31,
854 10, 41, 7, 310, 311, 10, 38, 39, 40, 41,
855 8, 6, 319, 320, 321, 322, 6, 324, 325, 8,
856 9, 41, 11, 203, 41, 6, 206, 334, 6, 336,
857 41, 8, 339, 8, 8, 6, 342, 344, 345, 1,
858 347, 6, 4, 5, 41, 1, 8, 8, 7, 5,
859 12, 8, 8, 41, 41, 41, 18, 19, 20, 8,
860 22, 17, 6, 25, 26, 27, 28, 29, 8, 1,
861 32, 33, 4, 5, 30, 31, 8, 41, 8, 41,
862 12, 8, 38, 39, 40, 41, 18, 19, 20, 6,
863 22, 41, 21, 25, 26, 27, 28, 29, 1, 21,
864 32, 33, 5, 1, 41, 8, 21, 5, 41, 41,
865 8, 11, 4, 41, 17, 24, 41, 11, 1, 17,
866 7, 41, 5, 41, 10, 8, 11, 30, 31, 41,
867 41, 41, 30, 31, 17, 38, 39, 40, 41, 41,
868 38, 39, 40, 41, 41, 1, 11, 30, 31, 5,
869 11, 41, 8, 41, 24, 38, 39, 40, 41, 11,
870 1, 17, 7, 7, 5, 7, 13, 8, 11, 8,
871 10, 8, 7, 4, 30, 31, 17, 13, 8, 13,
872 13, 13, 38, 39, 40, 41, 11, 4, 5, 30,
873 31, 8, 11, 41, 8, 12, 8, 38, 39, 40,
874 41, 18, 19, 20, 13, 22, 13, 13, 25, 26,
875 27, 28, 29, 4, 5, 32, 33, 8, 13, 13,
876 37, 12, 7, 13, 41, 13, 13, 18, 19, 20,
877 41, 22, 8, 13, 25, 26, 27, 28, 29, 4,
878 5, 32, 33, 8, 7, 13, 37, 12, 8, 13,
879 41, 13, 7, 18, 19, 20, 8, 22, 7, 25,
880 25, 26, 27, 28, 29, 4, 5, 32, 33, 8,
881 242, 93, 37, 12, 123, 174, 41, -1, 62, 18,
882 19, 20, -1, 22, -1, -1, 25, 26, 27, 28,
883 29, 4, -1, 32, 33, 8, -1, -1, 37, 12,
884 -1, -1, 41, -1, -1, 18, 19, 20, -1, 22,
885 -1, -1, 25, 26, 27, 28, 29, -1, -1, 32,
886 33, 0, 1, -1, 3, -1, -1, -1, 41, 8,
887 -1, -1, -1, -1, -1, -1, 15, 16, -1, -1,
891 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
892 symbol of state STATE-NUM. */
893 static const unsigned char yystos[] =
895 0, 3, 8, 15, 16, 23, 43, 44, 45, 46,
896 47, 48, 36, 41, 41, 4, 3, 0, 1, 45,
897 4, 4, 6, 5, 41, 49, 50, 36, 41, 1,
898 5, 8, 17, 30, 31, 38, 39, 40, 41, 53,
899 54, 56, 57, 88, 89, 93, 5, 53, 7, 41,
900 52, 9, 1, 5, 50, 4, 4, 24, 31, 41,
901 6, 4, 4, 4, 1, 9, 24, 1, 5, 54,
902 5, 4, 1, 7, 10, 51, 5, 53, 5, 53,
903 41, 6, 24, 41, 65, 5, 41, 90, 5, 90,
904 5, 36, 41, 91, 92, 55, 4, 8, 12, 18,
905 19, 20, 22, 25, 26, 27, 28, 29, 32, 33,
906 41, 59, 61, 63, 67, 69, 80, 82, 5, 37,
907 69, 86, 87, 4, 41, 41, 5, 5, 8, 65,
908 69, 41, 7, 8, 1, 5, 41, 5, 1, 5,
909 92, 8, 13, 41, 58, 69, 41, 78, 6, 6,
910 6, 6, 36, 41, 66, 76, 66, 77, 8, 8,
911 8, 6, 6, 8, 9, 11, 81, 69, 69, 69,
912 5, 34, 35, 36, 84, 85, 7, 41, 64, 83,
913 8, 9, 41, 5, 87, 5, 86, 8, 7, 41,
914 41, 8, 8, 13, 41, 65, 8, 1, 5, 69,
915 6, 8, 68, 60, 41, 65, 62, 10, 13, 11,
916 41, 10, 13, 8, 10, 14, 8, 71, 74, 70,
917 6, 21, 21, 21, 41, 41, 11, 5, 85, 41,
918 7, 10, 75, 4, 5, 41, 24, 41, 65, 13,
919 11, 7, 79, 41, 64, 13, 11, 64, 66, 66,
920 41, 66, 66, 41, 66, 36, 66, 41, 41, 41,
921 69, 69, 69, 11, 11, 58, 41, 41, 58, 24,
922 69, 13, 11, 65, 65, 83, 7, 7, 65, 65,
923 7, 10, 13, 10, 13, 14, 8, 7, 8, 58,
924 58, 8, 5, 69, 65, 65, 13, 11, 7, 4,
925 13, 11, 66, 66, 66, 66, 36, 41, 72, 69,
926 13, 11, 65, 65, 65, 65, 41, 65, 65, 13,
927 13, 13, 13, 8, 13, 13, 65, 65, 65, 65,
928 73, 65, 65, 8, 13, 7, 13, 41, 8, 13,
929 65, 65, 7, 65, 13, 13, 69, 13, 65, 65,
933 #define yyerrok (yyerrstatus = 0)
934 #define yyclearin (yychar = YYEMPTY)
938 #define YYACCEPT goto yyacceptlab
939 #define YYABORT goto yyabortlab
940 #define YYERROR goto yyerrorlab
943 /* Like YYERROR except do call yyerror. This remains here temporarily
944 to ease the transition to the new meaning of YYERROR, for GCC.
945 Once GCC version 2 has supplanted version 1, this can go. */
947 #define YYFAIL goto yyerrlab
949 #define YYRECOVERING() (!!yyerrstatus)
951 #define YYBACKUP(Token, Value) \
953 if (yychar == YYEMPTY && yylen == 1) \
957 yytoken = YYTRANSLATE (yychar); \
963 yyerror (&yylloc, parseio, YY_("syntax error: cannot back up")); \
970 #define YYERRCODE 256
973 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
974 If N is 0, then set CURRENT to the empty location which ends
975 the previous symbol: RHS[0] (always defined). */
977 #define YYRHSLOC(Rhs, K) ((Rhs)[K])
978 #ifndef YYLLOC_DEFAULT
979 # define YYLLOC_DEFAULT(Current, Rhs, N) \
983 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
984 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
985 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
986 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
990 (Current).first_line = (Current).last_line = \
991 YYRHSLOC (Rhs, 0).last_line; \
992 (Current).first_column = (Current).last_column = \
993 YYRHSLOC (Rhs, 0).last_column; \
999 /* YY_LOCATION_PRINT -- Print the location on the stream.
1000 This macro was not mandated originally: define only if we know
1001 we won't break user code: when these are the locations we know. */
1003 #ifndef YY_LOCATION_PRINT
1004 # if YYLTYPE_IS_TRIVIAL
1005 # define YY_LOCATION_PRINT(File, Loc) \
1006 fprintf (File, "%d.%d-%d.%d", \
1007 (Loc).first_line, (Loc).first_column, \
1008 (Loc).last_line, (Loc).last_column)
1010 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
1015 /* YYLEX -- calling `yylex' with the right arguments. */
1018 # define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
1020 # define YYLEX yylex (&yylval, &yylloc)
1023 /* Enable debugging if requested. */
1027 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
1028 # define YYFPRINTF fprintf
1031 # define YYDPRINTF(Args) \
1037 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
1041 YYFPRINTF (stderr, "%s ", Title); \
1042 yysymprint (stderr, \
1043 Type, Value, Location); \
1044 YYFPRINTF (stderr, "\n"); \
1048 /*------------------------------------------------------------------.
1049 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
1051 `------------------------------------------------------------------*/
1053 #if defined (__STDC__) || defined (__cplusplus)
1055 yy_stack_print (short int *bottom, short int *top)
1058 yy_stack_print (bottom, top)
1063 YYFPRINTF (stderr, "Stack now");
1064 for (/* Nothing. */; bottom <= top; ++bottom)
1065 YYFPRINTF (stderr, " %d", *bottom);
1066 YYFPRINTF (stderr, "\n");
1069 # define YY_STACK_PRINT(Bottom, Top) \
1072 yy_stack_print ((Bottom), (Top)); \
1076 /*------------------------------------------------.
1077 | Report that the YYRULE is going to be reduced. |
1078 `------------------------------------------------*/
1080 #if defined (__STDC__) || defined (__cplusplus)
1082 yy_reduce_print (int yyrule)
1085 yy_reduce_print (yyrule)
1090 unsigned long int yylno = yyrline[yyrule];
1091 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu), ",
1093 /* Print the symbols being reduced, and their result. */
1094 for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
1095 YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]);
1096 YYFPRINTF (stderr, "-> %s\n", yytname[yyr1[yyrule]]);
1099 # define YY_REDUCE_PRINT(Rule) \
1102 yy_reduce_print (Rule); \
1105 /* Nonzero means print parse trace. It is left uninitialized so that
1106 multiple parsers can coexist. */
1108 #else /* !YYDEBUG */
1109 # define YYDPRINTF(Args)
1110 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
1111 # define YY_STACK_PRINT(Bottom, Top)
1112 # define YY_REDUCE_PRINT(Rule)
1113 #endif /* !YYDEBUG */
1116 /* YYINITDEPTH -- initial size of the parser's stacks. */
1118 # define YYINITDEPTH 200
1121 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
1122 if the built-in stack extension method is used).
1124 Do not make this value too large; the results are undefined if
1125 YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
1126 evaluated with infinite-precision integer arithmetic. */
1129 # define YYMAXDEPTH 10000
1137 # if defined (__GLIBC__) && defined (_STRING_H)
1138 # define yystrlen strlen
1140 /* Return the length of YYSTR. */
1142 # if defined (__STDC__) || defined (__cplusplus)
1143 yystrlen (const char *yystr)
1149 const char *yys = yystr;
1151 while (*yys++ != '\0')
1154 return yys - yystr - 1;
1160 # if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
1161 # define yystpcpy stpcpy
1163 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1166 # if defined (__STDC__) || defined (__cplusplus)
1167 yystpcpy (char *yydest, const char *yysrc)
1169 yystpcpy (yydest, yysrc)
1175 const char *yys = yysrc;
1177 while ((*yyd++ = *yys++) != '\0')
1186 /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
1187 quotes and backslashes, so that it's suitable for yyerror. The
1188 heuristic is that double-quoting is unnecessary unless the string
1189 contains an apostrophe, a comma, or backslash (other than
1190 backslash-backslash). YYSTR is taken from yytname. If YYRES is
1191 null, do not copy; instead, return the length of what the result
1194 yytnamerr (char *yyres, const char *yystr)
1199 char const *yyp = yystr;
1206 goto do_not_strip_quotes;
1210 goto do_not_strip_quotes;
1223 do_not_strip_quotes: ;
1227 return yystrlen (yystr);
1229 return yystpcpy (yyres, yystr) - yyres;
1233 #endif /* YYERROR_VERBOSE */
1238 /*--------------------------------.
1239 | Print this symbol on YYOUTPUT. |
1240 `--------------------------------*/
1242 #if defined (__STDC__) || defined (__cplusplus)
1244 yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp)
1247 yysymprint (yyoutput, yytype, yyvaluep, yylocationp)
1251 YYLTYPE *yylocationp;
1254 /* Pacify ``unused variable'' warnings. */
1258 if (yytype < YYNTOKENS)
1259 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
1261 YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
1263 YY_LOCATION_PRINT (yyoutput, *yylocationp);
1264 YYFPRINTF (yyoutput, ": ");
1267 if (yytype < YYNTOKENS)
1268 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
1275 YYFPRINTF (yyoutput, ")");
1278 #endif /* ! YYDEBUG */
1279 /*-----------------------------------------------.
1280 | Release the memory associated to this symbol. |
1281 `-----------------------------------------------*/
1283 #if defined (__STDC__) || defined (__cplusplus)
1285 yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp)
1288 yydestruct (yymsg, yytype, yyvaluep, yylocationp)
1292 YYLTYPE *yylocationp;
1295 /* Pacify ``unused variable'' warnings. */
1301 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1305 case 41: /* "word" */
1307 { free((yyvaluep->str));};
1308 #line 1309 "ael.tab.c"
1310 case 44: /* "objects" */
1312 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1313 #line 1314 "ael.tab.c"
1315 case 45: /* "object" */
1317 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1318 #line 1319 "ael.tab.c"
1320 case 46: /* "context" */
1322 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1323 #line 1324 "ael.tab.c"
1325 case 47: /* "macro" */
1327 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1328 #line 1329 "ael.tab.c"
1330 case 48: /* "globals" */
1332 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1333 #line 1334 "ael.tab.c"
1335 case 49: /* "global_statements" */
1337 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1338 #line 1339 "ael.tab.c"
1340 case 50: /* "global_statement" */
1342 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1343 #line 1344 "ael.tab.c"
1345 case 52: /* "arglist" */
1347 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1348 #line 1349 "ael.tab.c"
1350 case 53: /* "elements" */
1352 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1353 #line 1354 "ael.tab.c"
1355 case 54: /* "element" */
1357 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1358 #line 1359 "ael.tab.c"
1360 case 56: /* "ignorepat" */
1362 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1363 #line 1364 "ael.tab.c"
1365 case 57: /* "extension" */
1367 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1368 #line 1369 "ael.tab.c"
1370 case 58: /* "statements" */
1372 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1373 #line 1374 "ael.tab.c"
1375 case 59: /* "if_head" */
1377 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1378 #line 1379 "ael.tab.c"
1380 case 61: /* "random_head" */
1382 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1383 #line 1384 "ael.tab.c"
1385 case 63: /* "iftime_head" */
1387 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1388 #line 1389 "ael.tab.c"
1390 case 64: /* "word_list" */
1392 { free((yyvaluep->str));};
1393 #line 1394 "ael.tab.c"
1395 case 65: /* "word3_list" */
1397 { free((yyvaluep->str));};
1398 #line 1399 "ael.tab.c"
1400 case 66: /* "goto_word" */
1402 { free((yyvaluep->str));};
1403 #line 1404 "ael.tab.c"
1405 case 67: /* "switch_head" */
1407 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1408 #line 1409 "ael.tab.c"
1410 case 69: /* "statement" */
1412 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1413 #line 1414 "ael.tab.c"
1415 case 76: /* "target" */
1417 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1418 #line 1419 "ael.tab.c"
1420 case 77: /* "jumptarget" */
1422 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1423 #line 1424 "ael.tab.c"
1425 case 78: /* "macro_call" */
1427 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1428 #line 1429 "ael.tab.c"
1430 case 80: /* "application_call_head" */
1432 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1433 #line 1434 "ael.tab.c"
1435 case 82: /* "application_call" */
1437 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1438 #line 1439 "ael.tab.c"
1440 case 83: /* "eval_arglist" */
1442 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1443 #line 1444 "ael.tab.c"
1445 case 84: /* "case_statements" */
1447 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1448 #line 1449 "ael.tab.c"
1450 case 85: /* "case_statement" */
1452 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1453 #line 1454 "ael.tab.c"
1455 case 86: /* "macro_statements" */
1457 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1458 #line 1459 "ael.tab.c"
1460 case 87: /* "macro_statement" */
1462 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1463 #line 1464 "ael.tab.c"
1465 case 88: /* "switches" */
1467 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1468 #line 1469 "ael.tab.c"
1470 case 89: /* "eswitches" */
1472 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1473 #line 1474 "ael.tab.c"
1475 case 90: /* "switchlist" */
1477 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1478 #line 1479 "ael.tab.c"
1480 case 91: /* "includeslist" */
1482 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1483 #line 1484 "ael.tab.c"
1485 case 92: /* "includedname" */
1487 { free((yyvaluep->str));};
1488 #line 1489 "ael.tab.c"
1490 case 93: /* "includes" */
1492 { if (yymsg[0] != 'C') {destroy_pval((yyvaluep->pval)); prev_word=0;} else {printf("Cleanup destructor called for pvals\n");} };
1493 #line 1494 "ael.tab.c"
1502 /* Prevent warnings from -Wmissing-prototypes. */
1504 #ifdef YYPARSE_PARAM
1505 # if defined (__STDC__) || defined (__cplusplus)
1506 int yyparse (void *YYPARSE_PARAM);
1510 #else /* ! YYPARSE_PARAM */
1511 #if defined (__STDC__) || defined (__cplusplus)
1512 int yyparse (struct parse_io *parseio);
1516 #endif /* ! YYPARSE_PARAM */
1527 #ifdef YYPARSE_PARAM
1528 # if defined (__STDC__) || defined (__cplusplus)
1529 int yyparse (void *YYPARSE_PARAM)
1531 int yyparse (YYPARSE_PARAM)
1532 void *YYPARSE_PARAM;
1534 #else /* ! YYPARSE_PARAM */
1535 #if defined (__STDC__) || defined (__cplusplus)
1537 yyparse (struct parse_io *parseio)
1541 struct parse_io *parseio;
1545 /* The look-ahead symbol. */
1548 /* The semantic value of the look-ahead symbol. */
1551 /* Number of syntax errors so far. */
1553 /* Location data for the look-ahead symbol. */
1559 /* Number of tokens to shift before error messages enabled. */
1561 /* Look-ahead token as an internal (translated) token number. */
1564 /* Three stacks and their tools:
1565 `yyss': related to states,
1566 `yyvs': related to semantic values,
1567 `yyls': related to locations.
1569 Refer to the stacks thru separate pointers, to allow yyoverflow
1570 to reallocate them elsewhere. */
1572 /* The state stack. */
1573 short int yyssa[YYINITDEPTH];
1574 short int *yyss = yyssa;
1577 /* The semantic value stack. */
1578 YYSTYPE yyvsa[YYINITDEPTH];
1579 YYSTYPE *yyvs = yyvsa;
1582 /* The location stack. */
1583 YYLTYPE yylsa[YYINITDEPTH];
1584 YYLTYPE *yyls = yylsa;
1586 /* The locations where the error started and ended. */
1587 YYLTYPE yyerror_range[2];
1589 #define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
1591 YYSIZE_T yystacksize = YYINITDEPTH;
1593 /* The variables used to return semantic value and location from the
1598 /* When reducing, the number of symbols on the RHS of the reduced
1602 YYDPRINTF ((stderr, "Starting parse\n"));
1607 yychar = YYEMPTY; /* Cause a token to be read. */
1609 /* Initialize stack pointers.
1610 Waste one element of value and location stack
1611 so that they stay on the same level as the state stack.
1612 The wasted elements are never initialized. */
1617 #if YYLTYPE_IS_TRIVIAL
1618 /* Initialize the default location before parsing starts. */
1619 yylloc.first_line = yylloc.last_line = 1;
1620 yylloc.first_column = yylloc.last_column = 0;
1625 /*------------------------------------------------------------.
1626 | yynewstate -- Push a new state, which is found in yystate. |
1627 `------------------------------------------------------------*/
1629 /* In all cases, when you get here, the value and location stacks
1630 have just been pushed. so pushing a state here evens the stacks.
1637 if (yyss + yystacksize - 1 <= yyssp)
1639 /* Get the current used size of the three stacks, in elements. */
1640 YYSIZE_T yysize = yyssp - yyss + 1;
1644 /* Give user a chance to reallocate the stack. Use copies of
1645 these so that the &'s don't force the real ones into
1647 YYSTYPE *yyvs1 = yyvs;
1648 short int *yyss1 = yyss;
1649 YYLTYPE *yyls1 = yyls;
1651 /* Each stack pointer address is followed by the size of the
1652 data in use in that stack, in bytes. This used to be a
1653 conditional around just the two extra args, but that might
1654 be undefined if yyoverflow is a macro. */
1655 yyoverflow (YY_("memory exhausted"),
1656 &yyss1, yysize * sizeof (*yyssp),
1657 &yyvs1, yysize * sizeof (*yyvsp),
1658 &yyls1, yysize * sizeof (*yylsp),
1664 #else /* no yyoverflow */
1665 # ifndef YYSTACK_RELOCATE
1666 goto yyexhaustedlab;
1668 /* Extend the stack our own way. */
1669 if (YYMAXDEPTH <= yystacksize)
1670 goto yyexhaustedlab;
1672 if (YYMAXDEPTH < yystacksize)
1673 yystacksize = YYMAXDEPTH;
1676 short int *yyss1 = yyss;
1677 union yyalloc *yyptr =
1678 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
1680 goto yyexhaustedlab;
1681 YYSTACK_RELOCATE (yyss);
1682 YYSTACK_RELOCATE (yyvs);
1683 YYSTACK_RELOCATE (yyls);
1684 # undef YYSTACK_RELOCATE
1686 YYSTACK_FREE (yyss1);
1689 #endif /* no yyoverflow */
1691 yyssp = yyss + yysize - 1;
1692 yyvsp = yyvs + yysize - 1;
1693 yylsp = yyls + yysize - 1;
1695 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
1696 (unsigned long int) yystacksize));
1698 if (yyss + yystacksize - 1 <= yyssp)
1702 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1711 /* Do appropriate processing given the current state. */
1712 /* Read a look-ahead token if we need one and don't already have one. */
1715 /* First try to decide what to do without reference to look-ahead token. */
1717 yyn = yypact[yystate];
1718 if (yyn == YYPACT_NINF)
1721 /* Not known => get a look-ahead token if don't already have one. */
1723 /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
1724 if (yychar == YYEMPTY)
1726 YYDPRINTF ((stderr, "Reading a token: "));
1730 if (yychar <= YYEOF)
1732 yychar = yytoken = YYEOF;
1733 YYDPRINTF ((stderr, "Now at end of input.\n"));
1737 yytoken = YYTRANSLATE (yychar);
1738 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
1741 /* If the proper action on seeing token YYTOKEN is to reduce or to
1742 detect an error, take that action. */
1744 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
1749 if (yyn == 0 || yyn == YYTABLE_NINF)
1758 /* Shift the look-ahead token. */
1759 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
1761 /* Discard the token being shifted unless it is eof. */
1762 if (yychar != YYEOF)
1768 /* Count tokens shifted since error; after three, turn off error
1777 /*-----------------------------------------------------------.
1778 | yydefault -- do the default action for the current state. |
1779 `-----------------------------------------------------------*/
1781 yyn = yydefact[yystate];
1787 /*-----------------------------.
1788 | yyreduce -- Do a reduction. |
1789 `-----------------------------*/
1791 /* yyn is the number of a rule to reduce with. */
1794 /* If YYLEN is nonzero, implement the default value of the action:
1797 Otherwise, the following line sets YYVAL to garbage.
1798 This behavior is undocumented and Bison
1799 users should not rely upon it. Assigning to YYVAL
1800 unconditionally makes the parser a bit smaller, and it avoids a
1801 GCC warning that YYVAL may be used uninitialized. */
1802 yyval = yyvsp[1-yylen];
1804 /* Default location. */
1805 YYLLOC_DEFAULT (yyloc, yylsp - yylen, yylen);
1806 YY_REDUCE_PRINT (yyn);
1811 { (yyval.pval) = parseio->pval = (yyvsp[0].pval); ;}
1816 {(yyval.pval)=(yyvsp[0].pval);;}
1821 {if ( (yyvsp[-1].pval) && (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[-1].pval); linku1((yyval.pval),(yyvsp[0].pval));}
1822 else if ( (yyvsp[-1].pval) ) {(yyval.pval)=(yyvsp[-1].pval);}
1823 else if ( (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[0].pval);} ;}
1828 {(yyval.pval)=(yyvsp[-1].pval);;}
1833 {(yyval.pval)=(yyvsp[0].pval);;}
1838 {(yyval.pval)=(yyvsp[0].pval);;}
1843 {(yyval.pval)=(yyvsp[0].pval);;}
1848 {(yyval.pval)=0;/* allow older docs to be read */;}
1853 {(yyval.pval)=npval(PV_CONTEXT,(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); ;}
1858 {(yyval.pval)=npval(PV_CONTEXT,(yylsp[-3]).first_line,(yylsp[0]).last_line, (yylsp[-3]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-2].str); ;}
1863 {(yyval.pval)=npval(PV_CONTEXT,(yylsp[-4]).first_line,(yylsp[0]).last_line, (yylsp[-4]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = strdup("default"); (yyval.pval)->u2.statements = (yyvsp[-1].pval); ;}
1868 {(yyval.pval)=npval(PV_CONTEXT,(yylsp[-3]).first_line,(yylsp[0]).last_line, (yylsp[-3]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = strdup("default"); ;}
1873 {(yyval.pval)=npval(PV_CONTEXT,(yylsp[-5]).first_line,(yylsp[0]).last_line, (yylsp[-5]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-3].str); (yyval.pval)->u2.statements = (yyvsp[-1].pval); (yyval.pval)->u3.abstract = 1;;}
1878 {(yyval.pval)=npval(PV_CONTEXT,(yylsp[-4]).first_line,(yylsp[0]).last_line, (yylsp[-4]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-2].str); (yyval.pval)->u3.abstract = 1; ;}
1883 {(yyval.pval)=npval(PV_CONTEXT,(yylsp[-5]).first_line,(yylsp[0]).last_line, (yylsp[-5]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = strdup("default"); (yyval.pval)->u2.statements = (yyvsp[-1].pval); (yyval.pval)->u3.abstract = 1; ;}
1888 {(yyval.pval)=npval(PV_CONTEXT,(yylsp[-4]).first_line,(yylsp[0]).last_line, (yylsp[-4]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = strdup("default"); (yyval.pval)->u3.abstract = 1; ;}
1893 {(yyval.pval)=npval(PV_MACRO,(yylsp[-7]).first_line,(yylsp[0]).last_line, (yylsp[-7]).first_column, (yylsp[0]).last_column);
1894 (yyval.pval)->u1.str = (yyvsp[-6].str); (yyval.pval)->u2.arglist = (yyvsp[-4].pval); (yyval.pval)->u3.macro_statements = (yyvsp[-1].pval); ;}
1899 {(yyval.pval)=npval(PV_MACRO,(yylsp[-6]).first_line,(yylsp[0]).last_line, (yylsp[-6]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-5].str); (yyval.pval)->u2.arglist = (yyvsp[-3].pval); ;}
1904 {(yyval.pval)=npval(PV_MACRO,(yylsp[-6]).first_line,(yylsp[0]).last_line, (yylsp[-6]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-5].str); (yyval.pval)->u3.macro_statements = (yyvsp[-1].pval); ;}
1909 {(yyval.pval)=npval(PV_MACRO,(yylsp[-5]).first_line,(yylsp[0]).last_line, (yylsp[-5]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-4].str); /* pretty empty! */ ;}
1914 {(yyval.pval)=npval(PV_GLOBALS,(yylsp[-3]).first_line,(yylsp[0]).last_line, (yylsp[-3]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.statements = (yyvsp[-1].pval);;}
1919 {(yyval.pval)=npval(PV_GLOBALS,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column); /* and that's all */ ;}
1924 {(yyval.pval)=(yyvsp[0].pval);;}
1929 {(yyval.pval)=(yyvsp[-1].pval); linku1((yyval.pval),(yyvsp[0].pval));;}
1934 {(yyval.pval)=(yyvsp[-1].pval);;}
1939 { reset_semicount(parseio->scanner); ;}
1944 {(yyval.pval)=npval(PV_VARDEC,(yylsp[-4]).first_line,(yylsp[0]).last_line, (yylsp[-4]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-4].str);(yyval.pval)->u2.val = (yyvsp[-1].str); ;}
1949 {(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); ;}
1954 {pval *z = npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column); z->u1.str = (yyvsp[0].str); (yyval.pval)=(yyvsp[-2].pval); linku1((yyval.pval),z); ;}
1959 {(yyval.pval)=(yyvsp[-1].pval);;}
1964 { (yyval.pval)=(yyvsp[0].pval);;}
1974 { if ( (yyvsp[-1].pval) && (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[-1].pval); linku1((yyval.pval),(yyvsp[0].pval));}
1975 else if ( (yyvsp[-1].pval) ) {(yyval.pval)=(yyvsp[-1].pval);}
1976 else if ( (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[0].pval);} ;}
1981 { (yyval.pval)=(yyvsp[-1].pval);;}
1986 {(yyval.pval)=(yyvsp[0].pval);;}
1991 {(yyval.pval)=(yyvsp[0].pval);;}
1996 {(yyval.pval)=(yyvsp[0].pval);;}
2001 {(yyval.pval)=(yyvsp[0].pval);;}
2006 {(yyval.pval)=(yyvsp[0].pval);;}
2011 { reset_semicount(parseio->scanner); ;}
2016 {(yyval.pval)=npval(PV_VARDEC,(yylsp[-4]).first_line,(yylsp[0]).last_line, (yylsp[-4]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-4].str);(yyval.pval)->u2.val = (yyvsp[-1].str); ;}
2021 {free((yyvsp[-1].str)); (yyval.pval)=0;;}
2026 {(yyval.pval)=0;/* allow older docs to be read */;}
2031 { (yyval.pval)=npval(PV_IGNOREPAT,(yylsp[-3]).first_line,(yylsp[0]).last_line, (yylsp[-3]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-1].str);;}
2036 {(yyval.pval) = npval(PV_EXTENSION,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-2].str); (yyval.pval)->u2.statements = (yyvsp[0].pval); ;}
2041 {(yyval.pval) = npval(PV_EXTENSION,(yylsp[-3]).first_line,(yylsp[-1]).last_line, (yylsp[-3]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-2].str); (yyval.pval)->u2.statements = (yyvsp[0].pval); (yyval.pval)->u4.regexten=1;;}
2046 {(yyval.pval) = npval(PV_EXTENSION,(yylsp[-6]).first_line,(yylsp[0]).last_line, (yylsp[-6]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-2].str); (yyval.pval)->u2.statements = (yyvsp[0].pval); (yyval.pval)->u3.hints = (yyvsp[-4].str);;}
2051 {(yyval.pval) = npval(PV_EXTENSION,(yylsp[-7]).first_line,(yylsp[-4]).last_line, (yylsp[-7]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-2].str); (yyval.pval)->u2.statements = (yyvsp[0].pval); (yyval.pval)->u4.regexten=1;(yyval.pval)->u3.hints = (yyvsp[-4].str);;}
2056 {(yyval.pval)=(yyvsp[0].pval);;}
2061 {if ( (yyvsp[-1].pval) && (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[-1].pval); linku1((yyval.pval),(yyvsp[0].pval));}
2062 else if ( (yyvsp[-1].pval) ) {(yyval.pval)=(yyvsp[-1].pval);}
2063 else if ( (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[0].pval);} ;}
2068 {(yyval.pval)=(yyvsp[-1].pval);;}
2073 { reset_parencount(parseio->scanner); ;}
2078 { (yyval.pval)= npval(PV_IF,(yylsp[-4]).first_line,(yylsp[0]).last_line, (yylsp[-4]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str = (yyvsp[-1].str); ;}
2083 { reset_parencount(parseio->scanner); ;}
2088 { (yyval.pval)= npval(PV_RANDOM,(yylsp[-4]).first_line,(yylsp[0]).last_line, (yylsp[-4]).first_column, (yylsp[0]).last_column); (yyval.pval)->u1.str=(yyvsp[-1].str);;}
2093 { (yyval.pval)= npval(PV_IFTIME,(yylsp[-13]).first_line,(yylsp[-9]).last_line, (yylsp[-13]).first_column, (yylsp[-9]).last_column);
2094 (yyval.pval)->u1.list = npval(PV_WORD,(yylsp[-11]).first_line,(yylsp[-11]).last_line, (yylsp[-11]).first_column, (yylsp[-11]).last_column);
2095 (yyval.pval)->u1.list->u1.str = (char*)malloc(strlen((yyvsp[-11].str))+strlen((yyvsp[-9].str))+strlen((yyvsp[-7].str))+4);
2096 strcpy((yyval.pval)->u1.list->u1.str,(yyvsp[-11].str));
2097 strcat((yyval.pval)->u1.list->u1.str,":");
2098 strcat((yyval.pval)->u1.list->u1.str,(yyvsp[-9].str));
2099 strcat((yyval.pval)->u1.list->u1.str,":");
2100 strcat((yyval.pval)->u1.list->u1.str,(yyvsp[-7].str));
2101 free((yyvsp[-11].str));
2102 free((yyvsp[-9].str));
2103 free((yyvsp[-7].str));
2104 (yyval.pval)->u1.list->next = npval(PV_WORD,(yylsp[-5]).first_line,(yylsp[-5]).last_line, (yylsp[-5]).first_column, (yylsp[-5]).last_column);
2105 (yyval.pval)->u1.list->next->u1.str = (yyvsp[-5].str);
2106 (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);
2107 (yyval.pval)->u1.list->next->next->u1.str = (yyvsp[-3].str);
2108 (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);
2109 (yyval.pval)->u1.list->next->next->next->u1.str = (yyvsp[-1].str);
2116 { (yyval.pval)= npval(PV_IFTIME,(yylsp[-9]).first_line,(yylsp[-5]).last_line, (yylsp[-9]).first_column, (yylsp[-5]).last_column);
2117 (yyval.pval)->u1.list = npval(PV_WORD,(yylsp[-7]).first_line,(yylsp[-7]).last_line, (yylsp[-7]).first_column, (yylsp[-7]).last_column);
2118 (yyval.pval)->u1.list->u1.str = (yyvsp[-7].str);
2119 (yyval.pval)->u1.list->next = npval(PV_WORD,(yylsp[-5]).first_line,(yylsp[-5]).last_line, (yylsp[-5]).first_column, (yylsp[-5]).last_column);
2120 (yyval.pval)->u1.list->next->u1.str = (yyvsp[-5].str);
2121 (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);
2122 (yyval.pval)->u1.list->next->next->u1.str = (yyvsp[-3].str);
2123 (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);
2124 (yyval.pval)->u1.list->next->next->next->u1.str = (yyvsp[-1].str);
2131 { (yyval.str) = (yyvsp[0].str);;}
2136 { (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);;}
2141 { (yyval.str) = (yyvsp[0].str);;}
2146 { (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);;}
2151 { (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);;}
2156 { (yyval.str) = (yyvsp[0].str);;}
2161 { (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));;}
2166 { (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));;}
2171 { reset_parencount(parseio->scanner); ;}
2176 {(yyval.pval)=npval(PV_SWITCH,(yylsp[-5]).first_line,(yylsp[0]).last_line, (yylsp[-5]).first_column, (yylsp[0]).last_column);
2177 (yyval.pval)->u1.str = (yyvsp[-2].str); ;}
2182 {(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); ;}
2187 {reset_semicount(parseio->scanner);;}
2192 {(yyval.pval)=npval(PV_VARDEC,(yylsp[-4]).first_line,(yylsp[0]).last_line, (yylsp[-4]).first_column, (yylsp[0]).last_column);
2193 (yyval.pval)->u1.str = (yyvsp[-4].str); (yyval.pval)->u2.val = (yyvsp[-1].str); ;}
2198 {(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);;}
2203 {(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);;}
2208 {(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); ;}
2213 {reset_semicount(parseio->scanner);;}
2218 {reset_semicount(parseio->scanner);;}
2223 {reset_parencount(parseio->scanner);;}
2228 { (yyval.pval)=npval(PV_FOR,(yylsp[-11]).first_line,(yylsp[0]).last_line, (yylsp[-11]).first_column, (yylsp[0]).last_column);
2229 (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);;}
2234 {reset_parencount(parseio->scanner);;}
2239 {(yyval.pval)=npval(PV_WHILE,(yylsp[-5]).first_line,(yylsp[0]).last_line, (yylsp[-5]).first_column, (yylsp[0]).last_column);
2240 (yyval.pval)->u1.str = (yyvsp[-2].str); (yyval.pval)->u2.statements = (yyvsp[0].pval); ;}
2245 {(yyval.pval)=(yyvsp[-1].pval);(yyval.pval)->endline = (yylsp[0]).last_line; (yyval.pval)->endcol = (yylsp[0]).last_column;;}
2250 {(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;;}
2255 {(yyval.pval) = (yyvsp[-1].pval);(yyval.pval)->endline = (yylsp[-1]).last_line; (yyval.pval)->endcol = (yylsp[-1]).last_column;;}
2260 { (yyval.pval) = (yyvsp[-1].pval);(yyval.pval)->endline = (yylsp[0]).last_line; (yyval.pval)->endcol = (yylsp[0]).last_column;;}
2265 { (yyval.pval)= npval(PV_APPLICATION_CALL,(yylsp[-1]).first_line,(yylsp[0]).last_line, (yylsp[-1]).first_column, (yylsp[0]).last_column);
2266 (yyval.pval)->u1.str = (yyvsp[-1].str);;}
2271 {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)->u2.val=(yyvsp[-1].str);
2283 /* rebuild the original string-- this is not an app call, it's an unwrapped vardec, with a func call on the LHS */
2284 /* string to big to fit in the buffer? */
2285 tot+=strlen((yyvsp[-4].pval)->u1.str);
2286 for(pptr=(yyvsp[-4].pval)->u2.arglist;pptr;pptr=pptr->next) {
2287 tot+=strlen(pptr->u1.str);
2288 tot++; /* for a sep like a comma */
2290 tot+=4; /* for safety */
2291 bufx = (char *)malloc(tot);
2292 strcpy(bufx,(yyvsp[-4].pval)->u1.str);
2294 for (pptr=(yyvsp[-4].pval)->u2.arglist;pptr;pptr=pptr->next) {
2295 if ( pptr != (yyvsp[-4].pval)->u2.arglist )
2297 strcat(bufx,pptr->u1.str);
2301 if ( !ael_is_funcname((yyvsp[-4].pval)->u1.str) )
2302 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",
2303 my_file, (yylsp[-4]).first_line, (yylsp[-4]).first_column, (yylsp[-4]).last_column, (yyvsp[-4].pval)->u1.str);
2305 (yyval.pval)->u1.str = bufx;
2306 destroy_pval((yyvsp[-4].pval)); /* the app call it is not, get rid of that chain */
2313 { (yyval.pval) = npval(PV_BREAK,(yylsp[-1]).first_line,(yylsp[0]).last_line, (yylsp[-1]).first_column, (yylsp[0]).last_column);;}
2318 {(yyval.pval) = npval(PV_RETURN,(yylsp[-1]).first_line,(yylsp[0]).last_line, (yylsp[-1]).first_column, (yylsp[0]).last_column);;}
2323 {(yyval.pval) = npval(PV_CONTINUE,(yylsp[-1]).first_line,(yylsp[0]).last_line, (yylsp[-1]).first_column, (yylsp[0]).last_column);;}
2328 {(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;;}
2333 {(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);;}
2338 {(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;;}
2343 {(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);;}
2348 {(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;;}
2353 {(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);;}
2358 { (yyval.pval)=0; ;}
2363 { (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);;}
2368 {(yyval.pval)=npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[-2]).last_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column);
2369 (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);
2370 (yyval.pval)->next->u1.str = (yyvsp[0].str);;}
2375 {(yyval.pval)=npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[-2]).last_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column);
2376 (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);
2377 (yyval.pval)->next->u1.str = (yyvsp[0].str);;}
2382 {(yyval.pval)=npval(PV_WORD,(yylsp[-4]).first_line,(yylsp[-4]).last_line, (yylsp[-4]).first_column, (yylsp[-4]).last_column);
2383 (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);
2384 (yyval.pval)->next->u1.str = (yyvsp[-2].str);
2385 (yyval.pval)->next->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2386 (yyval.pval)->next->next->u1.str = (yyvsp[0].str); ;}
2391 {(yyval.pval)=npval(PV_WORD,(yylsp[-4]).first_line,(yylsp[-4]).last_line, (yylsp[-4]).first_column, (yylsp[-4]).last_column);
2392 (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);
2393 (yyval.pval)->next->u1.str = (yyvsp[-2].str);
2394 (yyval.pval)->next->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2395 (yyval.pval)->next->next->u1.str = (yyvsp[0].str); ;}
2400 {(yyval.pval)=npval(PV_WORD,(yylsp[-4]).first_line,(yylsp[-4]).last_line, (yylsp[-4]).first_column, (yylsp[-4]).last_column);
2401 (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);
2402 (yyval.pval)->next->u1.str = (yyvsp[-2].str);
2403 (yyval.pval)->next->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2404 (yyval.pval)->next->next->u1.str = (yyvsp[0].str); ;}
2409 {(yyval.pval)=npval(PV_WORD,(yylsp[-4]).first_line,(yylsp[-4]).last_line, (yylsp[-4]).first_column, (yylsp[-4]).last_column);
2410 (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);
2411 (yyval.pval)->next->u1.str = (yyvsp[-2].str);
2412 (yyval.pval)->next->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2413 (yyval.pval)->next->next->u1.str = (yyvsp[0].str); ;}
2418 {(yyval.pval)=npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2419 (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);
2420 (yyval.pval)->next->u1.str = strdup("1");;}
2425 {(yyval.pval)=npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[-2]).last_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column);
2426 (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);
2427 (yyval.pval)->next->u1.str = (yyvsp[0].str);;}
2432 {(yyval.pval)=npval(PV_WORD,(yylsp[-4]).first_line,(yylsp[-4]).last_line, (yylsp[-4]).first_column, (yylsp[-4]).last_column);
2433 (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);
2434 (yyval.pval)->next->u1.str = (yyvsp[-4].str);
2435 (yyval.pval)->next->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2436 (yyval.pval)->next->next->u1.str = (yyvsp[-2].str); ;}
2441 {(yyval.pval)=npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[-2]).last_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column);
2442 (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);
2443 (yyval.pval)->next->u1.str = (yyvsp[-2].str);
2444 (yyval.pval)->next->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2445 (yyval.pval)->next->next->u1.str = strdup("1"); ;}
2450 {(yyval.pval)=npval(PV_WORD,(yylsp[-4]).first_line,(yylsp[-4]).last_line, (yylsp[-4]).first_column, (yylsp[-4]).last_column);
2451 (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);
2452 (yyval.pval)->next->u1.str = (yyvsp[-4].str);
2453 (yyval.pval)->next->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2454 (yyval.pval)->next->next->u1.str = (yyvsp[-2].str); ;}
2459 {(yyval.pval)=npval(PV_WORD,(yylsp[-2]).first_line,(yylsp[-2]).last_line, (yylsp[-2]).first_column, (yylsp[-2]).last_column);
2460 (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);
2461 (yyval.pval)->next->u1.str = (yyvsp[-2].str);
2462 (yyval.pval)->next->next = npval(PV_WORD,(yylsp[0]).first_line,(yylsp[0]).last_line, (yylsp[0]).first_column, (yylsp[0]).last_column);
2463 (yyval.pval)->next->next->u1.str = strdup("1"); ;}
2468 {reset_argcount(parseio->scanner);;}
2473 {(yyval.pval)= npval(PV_MACRO_CALL,(yylsp[-4]).first_line,(yylsp[-3]).last_line, (yylsp[-4]).first_column, (yylsp[-3]).last_column);
2474 (yyval.pval)->u1.str = (yyvsp[-4].str); (yyval.pval)->u2.arglist = (yyvsp[-1].pval);;}
2479 {(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); ;}
2484 {reset_argcount(parseio->scanner);;}
2489 {if (strcasecmp((yyvsp[-2].str),"goto") == 0) {
2490 (yyval.pval)= npval(PV_GOTO,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column);
2491 free((yyvsp[-2].str)); /* won't be using this */
2492 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 );
2494 (yyval.pval)= npval(PV_APPLICATION_CALL,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column);
2495 (yyval.pval)->u1.str = (yyvsp[-2].str); ;}
2500 {(yyval.pval) = (yyvsp[-2].pval);
2501 if( (yyval.pval)->type == PV_GOTO )
2502 (yyval.pval)->u1.list = (yyvsp[-1].pval);
2504 (yyval.pval)->u2.arglist = (yyvsp[-1].pval);
2505 (yyval.pval)->endline = (yylsp[0]).last_line; (yyval.pval)->endcol = (yylsp[0]).last_column;;}
2510 {(yyval.pval)=(yyvsp[-1].pval);(yyval.pval)->endline = (yylsp[0]).last_line; (yyval.pval)->endcol = (yylsp[0]).last_column;;}
2515 { (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);;}
2520 { (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(""); ;}
2525 { 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);;}
2530 { 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("");;}
2535 {(yyval.pval)=(yyvsp[0].pval);;}
2540 { if ( (yyvsp[-1].pval) && (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[-1].pval); linku1((yyval.pval),(yyvsp[0].pval));}
2541 else if ( (yyvsp[-1].pval) ) {(yyval.pval)=(yyvsp[-1].pval);}
2542 else if ( (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[0].pval);} ;}
2547 {(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);;}
2552 {(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);;}
2557 {(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);;}
2562 {(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);;}
2567 {(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;;}
2572 {(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);;}
2577 {(yyval.pval) = (yyvsp[0].pval);;}
2582 { if ( (yyvsp[-1].pval) && (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[-1].pval); linku1((yyval.pval),(yyvsp[0].pval));}
2583 else if ( (yyvsp[-1].pval) ) {(yyval.pval)=(yyvsp[-1].pval);}
2584 else if ( (yyvsp[0].pval) ) {(yyval.pval)=(yyvsp[0].pval);} ;}
2589 {(yyval.pval)=(yyvsp[0].pval);;}
2594 {(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);;}
2599 {(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); ;}
2604 {(yyval.pval)= npval(PV_SWITCHES,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column);;}
2609 {(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); ;}
2614 {(yyval.pval)= npval(PV_ESWITCHES,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column); ;}
2619 {(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);;}
2624 {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); ;}
2629 {(yyval.pval)=(yyvsp[-1].pval);;}
2634 {(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);;}
2640 (yyval.pval)=npval(PV_WORD,(yylsp[-13]).first_line,(yylsp[-12]).last_line, (yylsp[-13]).first_column, (yylsp[-12]).last_column);
2641 (yyval.pval)->u1.str = (yyvsp[-13].str);
2642 (yyval.pval)->u2.arglist = npval(PV_WORD,(yylsp[-11]).first_line,(yylsp[-7]).last_line, (yylsp[-11]).first_column, (yylsp[-7]).last_column);
2643 (yyval.pval)->u2.arglist->u1.str = (char*)malloc(strlen((yyvsp[-11].str))+strlen((yyvsp[-9].str))+strlen((yyvsp[-7].str))+4);
2644 strcpy((yyval.pval)->u2.arglist->u1.str,(yyvsp[-11].str));
2645 strcat((yyval.pval)->u2.arglist->u1.str,":");
2646 strcat((yyval.pval)->u2.arglist->u1.str,(yyvsp[-9].str));
2647 strcat((yyval.pval)->u2.arglist->u1.str,":");
2648 strcat((yyval.pval)->u2.arglist->u1.str,(yyvsp[-7].str));
2649 free((yyvsp[-11].str));
2650 free((yyvsp[-9].str));
2651 free((yyvsp[-7].str));
2652 (yyval.pval)->u2.arglist->next = npval(PV_WORD,(yylsp[-5]).first_line,(yylsp[-5]).last_line, (yylsp[-5]).first_column, (yylsp[-5]).last_column);
2653 (yyval.pval)->u2.arglist->next->u1.str = (yyvsp[-5].str);
2654 (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);
2655 (yyval.pval)->u2.arglist->next->next->u1.str = (yyvsp[-3].str);
2656 (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);
2657 (yyval.pval)->u2.arglist->next->next->next->u1.str = (yyvsp[-1].str);
2665 (yyval.pval)=npval(PV_WORD,(yylsp[-9]).first_line,(yylsp[-8]).last_line, (yylsp[-9]).first_column, (yylsp[-8]).last_column);
2666 (yyval.pval)->u1.str = (yyvsp[-9].str);
2667 (yyval.pval)->u2.arglist = npval(PV_WORD,(yylsp[-7]).first_line,(yylsp[-7]).last_line, (yylsp[-7]).first_column, (yylsp[-7]).last_column);
2668 (yyval.pval)->u2.arglist->u1.str = (yyvsp[-7].str);
2669 (yyval.pval)->u2.arglist->next = npval(PV_WORD,(yylsp[-5]).first_line,(yylsp[-5]).last_line, (yylsp[-5]).first_column, (yylsp[-5]).last_column);
2670 (yyval.pval)->u2.arglist->next->u1.str = (yyvsp[-5].str);
2671 (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);
2672 (yyval.pval)->u2.arglist->next->next->u1.str = (yyvsp[-3].str);
2673 (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);
2674 (yyval.pval)->u2.arglist->next->next->next->u1.str = (yyvsp[-1].str);
2681 {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); ;}
2686 {pval *z = npval(PV_WORD,(yylsp[-13]).first_line,(yylsp[-12]).last_line, (yylsp[-13]).first_column, (yylsp[-12]).last_column);
2687 (yyval.pval)=(yyvsp[-14].pval); z->u1.str = (yyvsp[-13].str); linku1((yyval.pval),z);
2688 z->u2.arglist = npval(PV_WORD,(yylsp[-11]).first_line,(yylsp[-11]).last_line, (yylsp[-11]).first_column, (yylsp[-11]).last_column);
2689 (yyval.pval)->u2.arglist->u1.str = (char*)malloc(strlen((yyvsp[-11].str))+strlen((yyvsp[-9].str))+strlen((yyvsp[-7].str))+4);
2690 strcpy((yyval.pval)->u2.arglist->u1.str,(yyvsp[-11].str));
2691 strcat((yyval.pval)->u2.arglist->u1.str,":");
2692 strcat((yyval.pval)->u2.arglist->u1.str,(yyvsp[-9].str));
2693 strcat((yyval.pval)->u2.arglist->u1.str,":");
2694 strcat((yyval.pval)->u2.arglist->u1.str,(yyvsp[-7].str));
2695 free((yyvsp[-11].str));
2696 free((yyvsp[-9].str));
2697 free((yyvsp[-7].str));
2698 z->u2.arglist->next = npval(PV_WORD,(yylsp[-5]).first_line,(yylsp[-5]).last_line, (yylsp[-5]).first_column, (yylsp[-5]).last_column);
2699 z->u2.arglist->next->u1.str = (yyvsp[-5].str);
2700 z->u2.arglist->next->next = npval(PV_WORD,(yylsp[-3]).first_line,(yylsp[-3]).last_line, (yylsp[-3]).first_column, (yylsp[-3]).last_column);
2701 z->u2.arglist->next->next->u1.str = (yyvsp[-3].str);
2702 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);
2703 z->u2.arglist->next->next->next->u1.str = (yyvsp[-1].str);
2710 {pval *z = npval(PV_WORD,(yylsp[-9]).first_line,(yylsp[-9]).last_line, (yylsp[-9]).first_column, (yylsp[-8]).last_column);
2711 (yyval.pval)=(yyvsp[-10].pval); z->u1.str = (yyvsp[-9].str); linku1((yyval.pval),z);
2712 z->u2.arglist = npval(PV_WORD,(yylsp[-7]).first_line,(yylsp[-7]).last_line, (yylsp[-7]).first_column, (yylsp[-7]).last_column);
2713 (yyval.pval)->u2.arglist->u1.str = (yyvsp[-7].str);
2714 z->u2.arglist->next = npval(PV_WORD,(yylsp[-5]).first_line,(yylsp[-5]).last_line, (yylsp[-5]).first_column, (yylsp[-5]).last_column);
2715 z->u2.arglist->next->u1.str = (yyvsp[-5].str);
2716 z->u2.arglist->next->next = npval(PV_WORD,(yylsp[-3]).first_line,(yylsp[-3]).last_line, (yylsp[-3]).first_column, (yylsp[-3]).last_column);
2717 z->u2.arglist->next->next->u1.str = (yyvsp[-3].str);
2718 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);
2719 z->u2.arglist->next->next->next->u1.str = (yyvsp[-1].str);
2726 {(yyval.pval)=(yyvsp[-1].pval);;}
2731 { (yyval.str) = (yyvsp[0].str);;}
2736 {(yyval.str)=strdup("default");;}
2741 {(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);;}
2746 {(yyval.pval)= npval(PV_INCLUDES,(yylsp[-2]).first_line,(yylsp[0]).last_line, (yylsp[-2]).first_column, (yylsp[0]).last_column);;}
2753 /* Line 1126 of yacc.c. */
2754 #line 2755 "ael.tab.c"
2760 YY_STACK_PRINT (yyss, yyssp);
2765 /* Now `shift' the result of the reduction. Determine what state
2766 that goes to, based on the state we popped back to and the rule
2767 number reduced by. */
2771 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
2772 if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
2773 yystate = yytable[yystate];
2775 yystate = yydefgoto[yyn - YYNTOKENS];
2780 /*------------------------------------.
2781 | yyerrlab -- here on detecting error |
2782 `------------------------------------*/
2784 /* If not already recovering from an error, report this error. */
2789 yyn = yypact[yystate];
2791 if (YYPACT_NINF < yyn && yyn < YYLAST)
2793 int yytype = YYTRANSLATE (yychar);
2794 YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
2795 YYSIZE_T yysize = yysize0;
2797 int yysize_overflow = 0;
2799 # define YYERROR_VERBOSE_ARGS_MAXIMUM 5
2800 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
2804 /* This is so xgettext sees the translatable formats that are
2805 constructed on the fly. */
2806 YY_("syntax error, unexpected %s");
2807 YY_("syntax error, unexpected %s, expecting %s");
2808 YY_("syntax error, unexpected %s, expecting %s or %s");
2809 YY_("syntax error, unexpected %s, expecting %s or %s or %s");
2810 YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
2814 static char const yyunexpected[] = "syntax error, unexpected %s";
2815 static char const yyexpecting[] = ", expecting %s";
2816 static char const yyor[] = " or %s";
2817 char yyformat[sizeof yyunexpected
2818 + sizeof yyexpecting - 1
2819 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
2820 * (sizeof yyor - 1))];
2821 char const *yyprefix = yyexpecting;
2823 /* Start YYX at -YYN if negative to avoid negative indexes in
2825 int yyxbegin = yyn < 0 ? -yyn : 0;
2827 /* Stay within bounds of both yycheck and yytname. */
2828 int yychecklim = YYLAST - yyn;
2829 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
2832 yyarg[0] = yytname[yytype];
2833 yyfmt = yystpcpy (yyformat, yyunexpected);
2835 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
2836 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
2838 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
2842 yyformat[sizeof yyunexpected - 1] = '\0';
2845 yyarg[yycount++] = yytname[yyx];
2846 yysize1 = yysize + yytnamerr (0, yytname[yyx]);
2847 yysize_overflow |= yysize1 < yysize;
2849 yyfmt = yystpcpy (yyfmt, yyprefix);
2853 yyf = YY_(yyformat);
2854 yysize1 = yysize + yystrlen (yyf);
2855 yysize_overflow |= yysize1 < yysize;
2858 if (!yysize_overflow && yysize <= YYSTACK_ALLOC_MAXIMUM)
2859 yymsg = (char *) YYSTACK_ALLOC (yysize);
2862 /* Avoid sprintf, as that infringes on the user's name space.
2863 Don't have undefined behavior even if the translation
2864 produced a string with the wrong number of "%s"s. */
2867 while ((*yyp = *yyf))
2869 if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
2871 yyp += yytnamerr (yyp, yyarg[yyi++]);
2880 yyerror (&yylloc, parseio, yymsg);
2881 YYSTACK_FREE (yymsg);
2885 yyerror (&yylloc, parseio, YY_("syntax error"));
2886 goto yyexhaustedlab;
2890 #endif /* YYERROR_VERBOSE */
2891 yyerror (&yylloc, parseio, YY_("syntax error"));
2894 yyerror_range[0] = yylloc;
2896 if (yyerrstatus == 3)
2898 /* If just tried and failed to reuse look-ahead token after an
2899 error, discard it. */
2901 if (yychar <= YYEOF)
2903 /* Return failure if at end of input. */
2904 if (yychar == YYEOF)
2909 yydestruct ("Error: discarding", yytoken, &yylval, &yylloc);
2914 /* Else will try to reuse look-ahead token after shifting the error
2919 /*---------------------------------------------------.
2920 | yyerrorlab -- error raised explicitly by YYERROR. |
2921 `---------------------------------------------------*/
2924 /* Pacify compilers like GCC when the user code never invokes
2925 YYERROR and the label yyerrorlab therefore never appears in user
2930 yyerror_range[0] = yylsp[1-yylen];
2938 /*-------------------------------------------------------------.
2939 | yyerrlab1 -- common code for both syntax error and YYERROR. |
2940 `-------------------------------------------------------------*/
2942 yyerrstatus = 3; /* Each real token shifted decrements this. */
2946 yyn = yypact[yystate];
2947 if (yyn != YYPACT_NINF)
2950 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
2958 /* Pop the current state because it cannot handle the error token. */
2962 yyerror_range[0] = *yylsp;
2963 yydestruct ("Error: popping", yystos[yystate], yyvsp, yylsp);
2966 YY_STACK_PRINT (yyss, yyssp);
2974 yyerror_range[1] = yylloc;
2975 /* Using YYLLOC is tempting, but would change the location of
2976 the look-ahead. YYLOC is available though. */
2977 YYLLOC_DEFAULT (yyloc, yyerror_range - 1, 2);
2980 /* Shift the error token. */
2981 YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
2987 /*-------------------------------------.
2988 | yyacceptlab -- YYACCEPT comes here. |
2989 `-------------------------------------*/
2994 /*-----------------------------------.
2995 | yyabortlab -- YYABORT comes here. |
2996 `-----------------------------------*/
3002 /*-------------------------------------------------.
3003 | yyexhaustedlab -- memory exhaustion comes here. |
3004 `-------------------------------------------------*/
3006 yyerror (&yylloc, parseio, YY_("memory exhausted"));
3012 if (yychar != YYEOF && yychar != YYEMPTY)
3013 yydestruct ("Cleanup: discarding lookahead",
3014 yytoken, &yylval, &yylloc);
3015 while (yyssp != yyss)
3017 yydestruct ("Cleanup: popping",
3018 yystos[*yyssp], yyvsp, yylsp);
3023 YYSTACK_FREE (yyss);
3032 static char *token_equivs1[] =
3072 static char *token_equivs2[] =
3113 static char *ael_token_subst(char *mess)
3115 /* calc a length, malloc, fill, and return; yyerror had better free it! */
3119 int token_equivs_entries = sizeof(token_equivs1)/sizeof(char*);
3121 for (p=mess; *p; p++) {
3122 for (i=0; i<token_equivs_entries; i++) {
3123 if ( strncmp(p,token_equivs1[i],strlen(token_equivs1[i])) == 0 )
3125 len+=strlen(token_equivs2[i])+2;
3126 p += strlen(token_equivs1[i])-1;
3132 res = (char*)malloc(len+1);
3137 for (i=0; i<token_equivs_entries; i++) {
3138 if ( strncmp(p,token_equivs1[i],strlen(token_equivs1[i])) == 0 ) {
3140 for (t=token_equivs2[i]; *t;) {
3144 p += strlen(token_equivs1[i]);
3156 void yyerror(YYLTYPE *locp, struct parse_io *parseio, char const *s)
3158 char *s2 = ael_token_subst((char *)s);
3159 if (locp->first_line == locp->last_line) {
3160 ast_log(LOG_ERROR, "==== File: %s, Line %d, Cols: %d-%d: Error: %s\n", my_file, locp->first_line, locp->first_column, locp->last_column, s2)