49 #define YYBISON_VERSION "2.4.1"
52 #define YYSKELETON_NAME "yacc.c"
64 #define YYLSP_NEEDED 0
109 #include <tqstring.h>
111 #define AMP_ENTITY "&"
112 #define YYERROR_VERBOSE
117 extern int idl_line_no;
118 extern int function_mode;
120 static int dcop_area = 0;
121 static int dcop_signal_area = 0;
123 static TQString in_namespace(
"" );
125 void dcopidlInitFlex(
const char *_code );
127 void yyerror(
const char *s )
129 tqDebug(
"In line %i : %s", idl_line_no, s );
145 #ifdef YYERROR_VERBOSE
146 # undef YYERROR_VERBOSE
147 # define YYERROR_VERBOSE 1
149 # define YYERROR_VERBOSE 0
153 #ifndef YYTOKEN_TABLE
154 # define YYTOKEN_TABLE 0
165 T_CHARACTER_LITERAL = 259,
166 T_DOUBLE_LITERAL = 260,
168 T_INTEGER_LITERAL = 262,
169 T_STRING_LITERAL = 263,
173 T_LEFT_CURLY_BRACKET = 267,
174 T_LEFT_PARANTHESIS = 268,
175 T_RIGHT_CURLY_BRACKET = 269,
176 T_RIGHT_PARANTHESIS = 270,
220 T_DCOP_SIGNAL_AREA = 314,
226 T_MISCOPERATOR = 320,
233 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
234 typedef union YYSTYPE
242 unsigned short _char;
250 # define YYSTYPE_IS_TRIVIAL 1
251 # define yystype YYSTYPE
252 # define YYSTYPE_IS_DECLARED 1
267 typedef YYTYPE_UINT8 yytype_uint8;
269 typedef unsigned char yytype_uint8;
273 typedef YYTYPE_INT8 yytype_int8;
274 #elif (defined __STDC__ || defined __C99__FUNC__ \
275 || defined __cplusplus || defined _MSC_VER)
276 typedef signed char yytype_int8;
278 typedef short int yytype_int8;
282 typedef YYTYPE_UINT16 yytype_uint16;
284 typedef unsigned short int yytype_uint16;
288 typedef YYTYPE_INT16 yytype_int16;
290 typedef short int yytype_int16;
294 # ifdef __SIZE_TYPE__
295 # define YYSIZE_T __SIZE_TYPE__
296 # elif defined size_t
297 # define YYSIZE_T size_t
298 # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
299 || defined __cplusplus || defined _MSC_VER)
301 # define YYSIZE_T size_t
303 # define YYSIZE_T unsigned int
307 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
312 # include <libintl.h>
313 # define YY_(msgid) dgettext ("bison-runtime", msgid)
317 # define YY_(msgid) msgid
322 #if ! defined lint || defined __GNUC__
323 # define YYUSE(e) ((void) (e))
332 #if (defined __STDC__ || defined __C99__FUNC__ \
333 || defined __cplusplus || defined _MSC_VER)
346 #if ! defined yyoverflow || YYERROR_VERBOSE
350 # ifdef YYSTACK_USE_ALLOCA
351 # if YYSTACK_USE_ALLOCA
353 # define YYSTACK_ALLOC __builtin_alloca
354 # elif defined __BUILTIN_VA_ARG_INCR
357 # define YYSTACK_ALLOC __alloca
358 # elif defined _MSC_VER
360 # define alloca _alloca
362 # define YYSTACK_ALLOC alloca
363 # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
364 || defined __cplusplus || defined _MSC_VER)
374 # ifdef YYSTACK_ALLOC
376 # define YYSTACK_FREE(Ptr) do { ; } while (YYID (0))
377 # ifndef YYSTACK_ALLOC_MAXIMUM
382 # define YYSTACK_ALLOC_MAXIMUM 4032
385 # define YYSTACK_ALLOC YYMALLOC
386 # define YYSTACK_FREE YYFREE
387 # ifndef YYSTACK_ALLOC_MAXIMUM
388 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
390 # if (defined __cplusplus && ! defined _STDLIB_H \
391 && ! ((defined YYMALLOC || defined malloc) \
392 && (defined YYFREE || defined free)))
399 # define YYMALLOC malloc
400 # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
401 || defined __cplusplus || defined _MSC_VER)
402 void *malloc (YYSIZE_T);
407 # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
408 || defined __cplusplus || defined _MSC_VER)
416 #if (! defined yyoverflow \
417 && (! defined __cplusplus \
418 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
423 yytype_int16 yyss_alloc;
428 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
432 # define YYSTACK_BYTES(N) \
433 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
434 + YYSTACK_GAP_MAXIMUM)
439 # if defined __GNUC__ && 1 < __GNUC__
440 # define YYCOPY(To, From, Count) \
441 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
443 # define YYCOPY(To, From, Count) \
447 for (yyi = 0; yyi < (Count); yyi++) \
448 (To)[yyi] = (From)[yyi]; \
459 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
462 YYSIZE_T yynewbytes; \
463 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
464 Stack = &yyptr->Stack_alloc; \
465 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
466 yyptr += yynewbytes / sizeof (*yyptr); \
484 #define YYNSTATES 374
488 #define YYMAXUTOK 321
490 #define YYTRANSLATE(YYX) \
491 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
494 static const yytype_uint8 yytranslate[] =
496 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
497 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
498 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
499 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
500 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
501 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
502 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
503 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
504 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
505 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
506 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
507 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
508 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
509 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
510 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
511 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
512 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
513 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
514 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
515 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
516 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
517 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
518 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
519 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
520 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
521 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
522 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
523 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
524 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
525 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
526 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
527 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
534 static const yytype_uint16 yyprhs[] =
536 0, 0, 3, 7, 8, 11, 16, 17, 19, 20,
537 27, 35, 39, 43, 49, 50, 58, 63, 69, 72,
538 77, 85, 94, 97, 99, 101, 103, 106, 107, 109,
539 111, 113, 115, 117, 119, 121, 122, 126, 129, 132,
540 135, 137, 141, 143, 148, 152, 154, 157, 161, 164,
541 166, 167, 169, 171, 174, 178, 181, 184, 187, 190,
542 193, 196, 202, 207, 212, 217, 224, 229, 236, 243,
543 251, 258, 265, 271, 275, 277, 281, 283, 285, 287,
544 290, 292, 294, 296, 300, 304, 312, 322, 323, 325,
545 327, 330, 332, 335, 338, 342, 345, 349, 352, 356,
546 359, 363, 365, 367, 370, 372, 375, 377, 380, 383,
547 386, 388, 389, 391, 395, 397, 399, 402, 405, 410,
548 417, 421, 423, 426, 428, 432, 436, 439, 442, 446,
549 449, 451, 454, 458, 460, 464, 467, 469, 470, 473,
550 479, 481, 483, 485, 487, 492, 493, 495, 497, 499,
551 501, 503, 505, 512, 520, 522, 526, 527, 532, 534,
552 538, 541, 547, 551, 557, 565, 572, 576, 578, 580,
553 584, 589, 592, 593, 595, 598, 599, 601, 605, 608,
554 611, 615, 621, 627, 633, 640
558 static const yytype_int8 yyrhs[] =
560 68, 0, -1, 69, 71, 68, -1, -1, 69, 9,
561 -1, 39, 12, 68, 14, -1, -1, 57, -1, -1,
562 10, 80, 84, 70, 86, 17, -1, 10, 6, 80,
563 84, 70, 86, 17, -1, 10, 80, 17, -1, 11,
564 80, 17, -1, 11, 80, 84, 86, 17, -1, -1,
565 42, 6, 12, 72, 68, 14, 85, -1, 43, 42,
566 6, 17, -1, 43, 6, 51, 6, 17, -1, 38,
567 17, -1, 29, 100, 80, 17, -1, 29, 11, 12,
568 73, 14, 80, 17, -1, 29, 11, 80, 12, 73,
569 14, 80, 17, -1, 24, 111, -1, 111, -1, 119,
570 -1, 87, -1, 119, 73, -1, -1, 46, -1, 47,
571 -1, 21, -1, 19, -1, 18, -1, 27, -1, 28,
572 -1, -1, 75, 76, 16, -1, 76, 16, -1, 58,
573 16, -1, 59, 16, -1, 6, -1, 6, 51, 80,
574 -1, 80, -1, 80, 35, 101, 36, -1, 105, 18,
575 81, -1, 81, -1, 82, 12, -1, 82, 32, 83,
576 -1, 16, 83, -1, 12, -1, -1, 17, -1, 14,
577 -1, 92, 86, -1, 24, 111, 86, -1, 111, 86,
578 -1, 79, 86, -1, 87, 86, -1, 78, 86, -1,
579 77, 86, -1, 119, 86, -1, 25, 10, 80, 17,
580 86, -1, 25, 80, 17, 86, -1, 25, 107, 17,
581 86, -1, 10, 80, 17, 86, -1, 10, 80, 84,
582 86, 17, 86, -1, 11, 80, 17, 86, -1, 11,
583 80, 84, 86, 17, 86, -1, 43, 6, 51, 6,
584 17, 86, -1, 41, 6, 12, 88, 14, 6, 17,
585 -1, 41, 6, 12, 88, 14, 17, -1, 41, 12,
586 88, 14, 6, 17, -1, 41, 12, 88, 14, 17,
587 -1, 89, 32, 88, -1, 89, -1, 6, 50, 91,
588 -1, 6, -1, 4, -1, 7, -1, 31, 7, -1,
589 52, -1, 80, -1, 90, -1, 90, 30, 90, -1,
590 90, 66, 90, -1, 29, 80, 35, 101, 36, 80,
591 17, -1, 29, 80, 35, 101, 36, 51, 6, 80,
592 17, -1, -1, 23, -1, 60, -1, 60, 53, -1,
593 61, -1, 61, 53, -1, 60, 63, -1, 60, 63,
594 53, -1, 60, 62, -1, 60, 62, 53, -1, 61,
595 63, -1, 61, 63, 53, -1, 61, 62, -1, 61,
596 62, 53, -1, 53, -1, 62, -1, 62, 53, -1,
597 63, -1, 63, 53, -1, 56, -1, 60, 56, -1,
598 61, 56, -1, 33, 95, -1, 33, -1, -1, 102,
599 -1, 96, 32, 102, -1, 94, -1, 80, -1, 11,
600 80, -1, 10, 80, -1, 80, 35, 98, 36, -1,
601 80, 35, 98, 36, 51, 80, -1, 99, 32, 98,
602 -1, 99, -1, 97, 95, -1, 97, -1, 23, 97,
603 95, -1, 23, 97, 37, -1, 23, 97, -1, 97,
604 23, -1, 97, 23, 37, -1, 97, 37, -1, 97,
605 -1, 97, 95, -1, 100, 32, 101, -1, 100, -1,
606 100, 80, 103, -1, 100, 103, -1, 45, -1, -1,
607 50, 104, -1, 50, 13, 100, 15, 104, -1, 8,
608 -1, 91, -1, 5, -1, 74, -1, 80, 13, 96,
609 15, -1, -1, 22, -1, 65, -1, 66, -1, 36,
610 -1, 35, -1, 50, -1, 100, 80, 13, 96, 15,
611 93, -1, 100, 64, 106, 13, 96, 15, 93, -1,
612 104, -1, 104, 32, 108, -1, -1, 6, 13, 108,
613 15, -1, 109, -1, 109, 32, 110, -1, 107, 113,
614 -1, 22, 107, 50, 52, 113, -1, 22, 107, 113,
615 -1, 80, 13, 96, 15, 113, -1, 80, 13, 96,
616 15, 16, 110, 113, -1, 105, 34, 80, 13, 15,
617 113, -1, 48, 107, 113, -1, 12, -1, 17, -1,
618 112, 114, 14, -1, 112, 114, 14, 17, -1, 115,
619 114, -1, -1, 17, -1, 32, 118, -1, -1, 6,
620 -1, 6, 50, 104, -1, 95, 6, -1, 117, 116,
621 -1, 100, 118, 17, -1, 100, 80, 16, 7, 17,
622 -1, 48, 100, 6, 103, 17, -1, 49, 100, 6,
623 103, 17, -1, 100, 6, 54, 91, 55, 17, -1,
624 48, 100, 6, 54, 91, 55, 17, -1
628 static const yytype_uint16 yyrline[] =
630 0, 164, 164, 167, 171, 175, 179, 184, 185, 189,
631 198, 207, 210, 213, 217, 216, 228, 231, 234, 237,
632 240, 243, 246, 249, 252, 255, 261, 262, 265, 265,
633 267, 267, 267, 269, 269, 269, 272, 277, 285, 293,
634 305, 308, 316, 322, 331, 335, 342, 346, 354, 358,
635 366, 368, 372, 376, 380, 384, 388, 392, 396, 400,
636 404, 408, 412, 416, 420, 424, 428, 432, 436, 443,
637 444, 445, 446, 450, 451, 455, 456, 460, 461, 462,
638 463, 464, 468, 469, 470, 474, 484, 493, 496, 503,
639 504, 505, 506, 507, 508, 509, 510, 511, 512, 513,
640 514, 515, 516, 517, 518, 519, 520, 521, 522, 526,
641 527, 532, 535, 536, 544, 545, 546, 547, 548, 554,
642 565, 569, 577, 582, 591, 596, 603, 608, 613, 620,
643 625, 630, 638, 642, 649, 658, 666, 676, 678, 681,
644 688, 691, 694, 697, 700, 706, 707, 711, 711, 711,
645 711, 711, 715, 737, 748, 749, 750, 755, 760, 761,
646 765, 769, 773, 777, 783, 789, 795, 808, 815, 816,
647 817, 821, 822, 826, 830, 831, 834, 835, 836, 839,
648 843, 844, 845, 846, 847, 848
652 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
655 static const char *
const yytname[] =
657 "$end",
"error",
"$undefined",
"T_UNIMPORTANT",
"T_CHARACTER_LITERAL",
658 "T_DOUBLE_LITERAL",
"T_IDENTIFIER",
"T_INTEGER_LITERAL",
659 "T_STRING_LITERAL",
"T_INCLUDE",
"T_CLASS",
"T_STRUCT",
660 "T_LEFT_CURLY_BRACKET",
"T_LEFT_PARANTHESIS",
"T_RIGHT_CURLY_BRACKET",
661 "T_RIGHT_PARANTHESIS",
"T_COLON",
"T_SEMICOLON",
"T_PUBLIC",
662 "T_PROTECTED",
"T_TRIPE_DOT",
"T_PRIVATE",
"T_VIRTUAL",
"T_CONST",
663 "T_INLINE",
"T_FRIEND",
"T_RETURN",
"T_SIGNAL",
"T_SLOT",
"T_TYPEDEF",
664 "T_PLUS",
"T_MINUS",
"T_COMMA",
"T_ASTERISK",
"T_TILDE",
"T_LESS",
665 "T_GREATER",
"T_AMPERSAND",
"T_EXTERN",
"T_EXTERN_C",
"T_ACCESS",
666 "T_ENUM",
"T_NAMESPACE",
"T_USING",
"T_UNKNOWN",
"T_TRIPLE_DOT",
667 "T_TRUE",
"T_FALSE",
"T_STATIC",
"T_MUTABLE",
"T_EQUAL",
"T_SCOPE",
668 "T_NULL",
"T_INT",
"T_ARRAY_OPEN",
"T_ARRAY_CLOSE",
"T_CHAR",
"T_DCOP",
669 "T_DCOP_AREA",
"T_DCOP_SIGNAL_AREA",
"T_SIGNED",
"T_UNSIGNED",
"T_LONG",
670 "T_SHORT",
"T_FUNOPERATOR",
"T_MISCOPERATOR",
"T_SHIFT",
"$accept",
671 "main",
"includes",
"dcoptag",
"declaration",
"$@1",
"member_list",
672 "bool_value",
"nodcop_area",
"sigslot",
"nodcop_area_begin",
673 "dcop_area_begin",
"dcop_signal_area_begin",
"Identifier",
674 "super_class_name",
"super_class",
"super_classes",
"class_header",
675 "opt_semicolon",
"body",
"enum",
"enum_list",
"enum_item",
"number",
676 "int_expression",
"typedef",
"const_qualifier",
"int_type",
"asterisks",
677 "params",
"type_name",
"templ_type_list",
"templ_type",
"type",
678 "type_list",
"param",
"default",
"value",
"virtual_qualifier",
679 "operator",
"function_header",
"values",
"init_item",
"init_list",
680 "function",
"function_begin",
"function_body",
"function_lines",
681 "function_line",
"Identifier_list_rest",
"Identifier_list_entry",
682 "Identifier_list",
"member", 0
689 static const yytype_uint16 yytoknum[] =
691 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
692 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
693 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
694 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
695 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
696 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
697 315, 316, 317, 318, 319, 320, 321
702 static const yytype_uint8 yyr1[] =
704 0, 67, 68, 68, 69, 69, 69, 70, 70, 71,
705 71, 71, 71, 71, 72, 71, 71, 71, 71, 71,
706 71, 71, 71, 71, 71, 71, 73, 73, 74, 74,
707 75, 75, 75, 76, 76, 76, 77, 77, 78, 79,
708 80, 80, 81, 81, 82, 82, 83, 83, 84, 84,
709 85, 85, 86, 86, 86, 86, 86, 86, 86, 86,
710 86, 86, 86, 86, 86, 86, 86, 86, 86, 87,
711 87, 87, 87, 88, 88, 89, 89, 90, 90, 90,
712 90, 90, 91, 91, 91, 92, 92, 93, 93, 94,
713 94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
714 94, 94, 94, 94, 94, 94, 94, 94, 94, 95,
715 95, 96, 96, 96, 97, 97, 97, 97, 97, 97,
716 98, 98, 99, 99, 100, 100, 100, 100, 100, 100,
717 100, 100, 101, 101, 102, 102, 102, 103, 103, 103,
718 104, 104, 104, 104, 104, 105, 105, 106, 106, 106,
719 106, 106, 107, 107, 108, 108, 108, 109, 110, 110,
720 111, 111, 111, 111, 111, 111, 111, 112, 113, 113,
721 113, 114, 114, 115, 116, 116, 117, 117, 117, 118,
722 119, 119, 119, 119, 119, 119
726 static const yytype_uint8 yyr2[] =
728 0, 2, 3, 0, 2, 4, 0, 1, 0, 6,
729 7, 3, 3, 5, 0, 7, 4, 5, 2, 4,
730 7, 8, 2, 1, 1, 1, 2, 0, 1, 1,
731 1, 1, 1, 1, 1, 0, 3, 2, 2, 2,
732 1, 3, 1, 4, 3, 1, 2, 3, 2, 1,
733 0, 1, 1, 2, 3, 2, 2, 2, 2, 2,
734 2, 5, 4, 4, 4, 6, 4, 6, 6, 7,
735 6, 6, 5, 3, 1, 3, 1, 1, 1, 2,
736 1, 1, 1, 3, 3, 7, 9, 0, 1, 1,
737 2, 1, 2, 2, 3, 2, 3, 2, 3, 2,
738 3, 1, 1, 2, 1, 2, 1, 2, 2, 2,
739 1, 0, 1, 3, 1, 1, 2, 2, 4, 6,
740 3, 1, 2, 1, 3, 3, 2, 2, 3, 2,
741 1, 2, 3, 1, 3, 2, 1, 0, 2, 5,
742 1, 1, 1, 1, 4, 0, 1, 1, 1, 1,
743 1, 1, 6, 7, 1, 3, 0, 4, 1, 3,
744 2, 5, 3, 5, 7, 6, 3, 1, 1, 3,
745 4, 2, 0, 1, 2, 0, 1, 3, 2, 2,
752 static const yytype_uint8 yydefact[] =
754 6, 0, 0, 145, 6, 1, 40, 4, 0, 0,
755 146, 0, 145, 0, 0, 0, 0, 0, 0, 0,
756 101, 106, 89, 91, 102, 104, 6, 115, 25, 114,
757 130, 0, 0, 0, 23, 24, 0, 0, 40, 117,
758 116, 0, 0, 115, 0, 0, 126, 0, 22, 0,
759 0, 18, 0, 0, 0, 0, 0, 0, 0, 0,
760 90, 107, 95, 93, 92, 108, 99, 97, 103, 105,
761 2, 111, 0, 127, 110, 129, 131, 40, 0, 0,
762 0, 175, 0, 0, 167, 168, 172, 160, 5, 41,
763 0, 49, 145, 11, 8, 12, 35, 117, 116, 0,
764 0, 162, 125, 124, 27, 116, 0, 0, 76, 0,
765 74, 14, 0, 0, 40, 166, 137, 96, 94, 100,
766 98, 136, 0, 137, 112, 123, 0, 121, 128, 109,
767 0, 0, 150, 149, 151, 147, 148, 0, 111, 0,
768 178, 0, 179, 180, 0, 173, 0, 172, 8, 146,
769 42, 45, 0, 48, 0, 7, 35, 0, 0, 52,
770 32, 31, 30, 145, 0, 33, 34, 0, 0, 0,
771 0, 35, 0, 35, 35, 35, 0, 35, 35, 35,
772 35, 0, 0, 0, 0, 27, 27, 19, 0, 0,
773 0, 0, 6, 0, 16, 0, 0, 0, 0, 0,
774 0, 137, 135, 122, 118, 0, 77, 142, 78, 140,
775 0, 28, 29, 80, 143, 81, 82, 141, 177, 81,
776 0, 111, 0, 0, 176, 174, 0, 169, 171, 35,
777 0, 46, 145, 0, 0, 117, 116, 35, 0, 115,
778 0, 0, 0, 38, 39, 0, 37, 59, 58, 56,
779 13, 57, 53, 55, 60, 161, 0, 0, 0, 26,
780 0, 0, 75, 0, 72, 73, 0, 17, 0, 138,
781 0, 182, 183, 0, 163, 113, 134, 0, 120, 79,
782 111, 0, 0, 0, 0, 87, 181, 0, 170, 0,
783 133, 0, 47, 44, 9, 35, 35, 35, 35, 54,
784 117, 35, 35, 0, 0, 36, 137, 0, 0, 0,
785 70, 71, 50, 0, 0, 0, 158, 0, 119, 0,
786 83, 84, 184, 87, 88, 152, 165, 10, 0, 43,
787 64, 0, 66, 0, 35, 62, 63, 0, 0, 20,
788 0, 69, 51, 15, 0, 185, 156, 0, 164, 144,
789 153, 132, 35, 35, 61, 0, 35, 21, 139, 154,
790 0, 159, 65, 67, 0, 0, 68, 156, 157, 0,
795 static const yytype_int16 yydefgoto[] =
797 -1, 2, 3, 156, 26, 192, 183, 214, 171, 172,
798 173, 174, 175, 27, 151, 152, 153, 94, 343, 176,
799 177, 109, 110, 216, 217, 178, 325, 29, 80, 122,
800 30, 126, 127, 31, 291, 124, 197, 359, 32, 137,
801 33, 360, 316, 317, 179, 86, 87, 146, 147, 142,
807 #define YYPACT_NINF -191
808 static const yytype_int16 yypact[] =
810 28, 78, 99, 342, 80, -191, 67, -191, 115, 159,
811 205, 81, 386, 463, 153, 44, 190, 32, 205, 205,
812 -191, -191, 181, 287, 154, 161, 47, 66, -191, -191,
813 138, 19, 185, 143, -191, -191, 207, 159, 21, 183,
814 219, 159, 159, 194, 16, 31, 152, 205, -191, 91,
815 159, -191, 228, 236, 233, 202, 264, 18, 143, 272,
816 -191, -191, 231, 232, -191, -191, 246, 248, -191, -191,
817 -191, 445, 81, 249, 256, -191, -191, 85, 182, 42,
818 296, 273, 290, 159, -191, -191, 291, -191, -191, -191,
819 196, -191, 146, -191, 262, -191, 269, -191, -191, 300,
820 252, -191, -191, -191, 404, 311, 307, 236, 276, 319,
821 302, -191, 329, 320, 60, -191, 289, -191, -191, -191,
822 -191, -191, 114, 39, -191, 256, 305, 310, -191, -191,
823 507, 101, -191, -191, -191, -191, -191, 332, 445, 339,
824 -191, 62, -191, -191, 341, -191, 343, 291, 262, -191,
825 321, -191, 34, -191, 337, -191, 269, 159, 159, -191,
826 -191, -191, -191, 386, 474, -191, -191, 159, 352, 344,
827 346, 211, 347, 269, 269, 269, 350, 269, 269, 269,
828 269, 143, 205, 354, 87, 404, 404, -191, 356, 101,
829 156, 236, 80, 359, -191, 120, 101, 360, 364, 247,
830 445, 289, -191, -191, 331, 81, -191, -191, -191, -191,
831 379, -191, -191, -191, -191, 374, 40, -191, -191, -191,
832 333, 445, 116, 372, 349, -191, 378, 377, -191, 269,
833 205, -191, 146, 159, 383, 265, 299, 269, 159, 27,
834 384, 371, 361, -191, -191, 391, -191, -191, -191, -191,
835 -191, -191, -191, -191, -191, -191, 407, 159, 400, -191,
836 403, 176, -191, 401, -191, -191, 405, -191, 205, -191,
837 365, -191, -191, 415, -191, -191, -191, 159, -191, -191,
838 445, 101, 101, 406, 132, 399, -191, 143, -191, 408,
839 392, 390, -191, -191, -191, 269, 269, 269, 269, -191,
840 411, 269, 269, 205, 425, -191, 144, 418, 159, 419,
841 -191, -191, 420, 417, 421, 427, 409, 143, -191, 148,
842 -191, -191, -191, 399, -191, -191, -191, -191, 205, -191,
843 -191, 426, -191, 428, 269, -191, -191, 414, 437, -191,
844 441, -191, -191, -191, 507, -191, 507, 415, -191, -191,
845 -191, -191, 269, 269, -191, 25, 269, -191, -191, 412,
846 444, -191, -191, -191, 455, 446, -191, 507, -191, 159,
847 -191, -191, 453, -191
851 static const yytype_int16 yypgoto[] =
853 -191, 9, -191, 314, -191, -191, -2, -191, -191, 301,
854 -191, -191, -191, -8, 238, -191, 243, -33, -191, 77,
855 473, -91, -191, -72, -111, -191, 155, -191, -9, -123,
856 1, 274, -191, 41, -190, 277, -97, -124, -78, -191,
857 22, 121, -191, 134, 6, -191, -41, 335, -191, -191,
865 #define YYTABLE_NINF -177
866 static const yytype_int16 yytable[] =
868 39, 40, 43, 43, 101, 43, 218, 96, 35, 34,
869 43, 43, 46, 36, 154, 222, 188, 115, 48, 198,
870 220, 76, 6, 79, 114, 77, 202, 6, -3, 89,
871 90, 6, 45, 97, 98, 70, 99, 103, 55, 43,
872 58, 105, 106, 84, 301, 6, 231, -3, 85, 99,
873 52, 44, 74, 44, 50, 138, 53, 148, 139, 57,
874 59, -3, 72, 43, 43, 129, 232, 1, 224, 58,
875 281, 269, 37, 125, 56, 144, 364, -137, 262, 71,
876 78, 100, 78, 78, 150, 270, 1, 6, 44, 195,
877 4, 41, 42, 77, -3, 74, 43, 6, 284, 5,
878 265, 72, -176, 104, 276, 206, 282, 6, 208, 185,
879 195, 37, 123, 337, 196, 201, 203, -176, 37, 1,
880 74, 38, 215, 219, 206, 207, 6, 208, 209, 199,
881 43, 285, 210, 268, 20, 130, 37, 21, 351, 131,
882 255, 22, 23, 24, 25, 184, 200, 323, 200, 235,
883 236, 210, 6, 213, 154, 84, 239, 319, 274, 241,
884 85, 73, 263, 349, 200, 6, 211, 212, 149, 237,
885 51, 74, 213, 264, 43, 75, 258, 43, 43, 123,
886 200, 219, 309, 259, 260, 74, 240, 215, 219, 102,
887 185, 185, 43, 310, 195, 91, 54, 43, 196, 92,
888 93, 266, 296, 298, 44, 44, 125, 68, 91, 320,
889 321, 6, 92, 43, 69, 41, 42, 132, 133, 83,
890 358, 88, 43, 256, 150, 150, 184, 184, 11, 72,
891 300, 91, 134, 234, 60, 92, 95, 61, 165, 166,
892 107, 123, 108, 62, 63, 111, 326, 135, 136, 307,
893 247, 248, 249, 112, 251, 252, 253, 254, 20, 84,
894 43, 21, 123, 273, 85, 22, 23, 24, 25, 318,
895 113, 290, 43, 219, 219, 6, 348, 91, 116, 157,
896 158, 92, 295, 159, 117, 118, 128, 160, 161, 74,
897 162, 10, 11, 163, 164, 43, 165, 166, 167, 119,
898 340, 120, 140, -145, 181, 141, 289, 143, 145, 313,
899 15, 91, 168, 138, 299, 92, 297, 18, 19, 155,
900 43, 123, 20, 186, 187, 21, 189, 169, 170, 22,
901 23, 24, 25, 190, 191, 193, 215, 194, 215, 195,
902 64, 204, 205, 65, 290, 221, 223, 365, 6, 66,
903 67, 7, 8, 9, 226, 233, 230, 227, 242, 215,
904 243, 372, 244, 246, 10, 11, 12, 250, 257, 290,
905 261, 13, 330, 331, 332, 333, 267, 271, 335, 336,
906 14, 272, 277, 15, 16, 17, 279, 280, 283, 286,
907 18, 19, 6, 287, 288, 20, 41, 42, 21, 130,
908 294, 302, 22, 23, 24, 25, 303, 305, 10, 11,
909 6, 354, 304, 306, 41, 42, 139, 308, 311, 312,
910 314, 315, 324, 322, 328, 327, 329, 11, 334, 362,
911 363, 338, 344, 366, 47, 339, 341, 342, 345, 20,
912 346, 347, 21, 352, 367, 353, 22, 23, 24, 25,
913 355, 6, 182, 19, 356, 41, 42, 20, 357, 368,
914 21, 369, 229, 370, 22, 23, 24, 25, 11, 6,
915 373, 293, 245, 41, 49, 292, 28, 275, 350, 278,
916 6, 361, 228, 0, 238, 42, 11, 0, 371, 225,
917 121, 0, 0, 0, 0, 0, 0, 11, 20, 0,
918 0, 21, 0, 0, 0, 22, 23, 24, 25, 0,
919 0, 206, 207, 6, 208, 209, 20, 0, 0, 21,
920 0, 0, 0, 22, 23, 24, 25, 20, 0, 0,
921 21, 0, 0, 0, 22, 23, 24, 25, 210, 0,
922 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
923 0, 0, 0, 211, 212, 0, 0, 0, 0, 213
926 static const yytype_int16 yycheck[] =
928 8, 9, 10, 11, 45, 13, 130, 40, 3, 3,
929 18, 19, 11, 4, 92, 138, 107, 58, 12, 116,
930 131, 30, 6, 31, 6, 6, 123, 6, 0, 37,
931 38, 6, 10, 41, 42, 26, 44, 46, 6, 47,
932 18, 49, 50, 12, 17, 6, 12, 0, 17, 57,
933 6, 10, 33, 12, 13, 13, 12, 90, 16, 18,
934 19, 14, 35, 71, 72, 74, 32, 39, 6, 47,
935 30, 195, 51, 72, 42, 83, 51, 17, 189, 13,
936 64, 50, 64, 64, 92, 196, 39, 6, 47, 50,
937 12, 10, 11, 6, 14, 33, 104, 6, 221, 0,
938 191, 35, 17, 12, 201, 4, 66, 6, 7, 104,
939 50, 51, 71, 303, 54, 123, 125, 32, 51, 39,
940 33, 6, 130, 131, 4, 5, 6, 7, 8, 15,
941 138, 15, 31, 13, 53, 50, 51, 56, 328, 54,
942 181, 60, 61, 62, 63, 104, 32, 15, 32, 157,
943 158, 31, 6, 52, 232, 12, 164, 280, 199, 167,
944 17, 23, 6, 15, 32, 6, 46, 47, 22, 163,
945 17, 33, 52, 17, 182, 37, 184, 185, 186, 138,
946 32, 189, 6, 185, 186, 33, 164, 195, 196, 37,
947 185, 186, 200, 17, 50, 12, 6, 205, 54, 16,
948 17, 192, 235, 236, 163, 164, 205, 53, 12, 281,
949 282, 6, 16, 221, 53, 10, 11, 35, 36, 34,
950 344, 14, 230, 182, 232, 233, 185, 186, 23, 35,
951 238, 12, 50, 156, 53, 16, 17, 56, 27, 28,
952 12, 200, 6, 62, 63, 12, 287, 65, 66, 257,
953 173, 174, 175, 51, 177, 178, 179, 180, 53, 12,
954 268, 56, 221, 16, 17, 60, 61, 62, 63, 277,
955 6, 230, 280, 281, 282, 6, 317, 12, 6, 10,
956 11, 16, 17, 14, 53, 53, 37, 18, 19, 33,
957 21, 22, 23, 24, 25, 303, 27, 28, 29, 53,
958 308, 53, 6, 34, 52, 32, 229, 17, 17, 268,
959 41, 12, 43, 13, 237, 16, 17, 48, 49, 57,
960 328, 280, 53, 12, 17, 56, 50, 58, 59, 60,
961 61, 62, 63, 14, 32, 6, 344, 17, 346, 50,
962 53, 36, 32, 56, 303, 13, 7, 355, 6, 62,
963 63, 9, 10, 11, 13, 18, 35, 14, 6, 367,
964 16, 369, 16, 16, 22, 23, 24, 17, 14, 328,
965 14, 29, 295, 296, 297, 298, 17, 17, 301, 302,
966 38, 17, 51, 41, 42, 43, 7, 13, 55, 17,
967 48, 49, 6, 15, 17, 53, 10, 11, 56, 50,
968 17, 17, 60, 61, 62, 63, 35, 16, 22, 23,
969 6, 334, 51, 6, 10, 11, 16, 14, 17, 14,
970 55, 6, 23, 17, 32, 17, 36, 23, 17, 352,
971 353, 6, 15, 356, 48, 17, 17, 17, 17, 53,
972 13, 32, 56, 17, 32, 17, 60, 61, 62, 63,
973 36, 6, 48, 49, 17, 10, 11, 53, 17, 15,
974 56, 6, 148, 17, 60, 61, 62, 63, 23, 6,
975 17, 233, 171, 10, 11, 232, 3, 200, 323, 205,
976 6, 347, 147, -1, 10, 11, 23, -1, 367, 141,
977 45, -1, -1, -1, -1, -1, -1, 23, 53, -1,
978 -1, 56, -1, -1, -1, 60, 61, 62, 63, -1,
979 -1, 4, 5, 6, 7, 8, 53, -1, -1, 56,
980 -1, -1, -1, 60, 61, 62, 63, 53, -1, -1,
981 56, -1, -1, -1, 60, 61, 62, 63, 31, -1,
982 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
983 -1, -1, -1, 46, 47, -1, -1, -1, -1, 52
988 static const yytype_uint8 yystos[] =
990 0, 39, 68, 69, 12, 0, 6, 9, 10, 11,
991 22, 23, 24, 29, 38, 41, 42, 43, 48, 49,
992 53, 56, 60, 61, 62, 63, 71, 80, 87, 94,
993 97, 100, 105, 107, 111, 119, 68, 51, 6, 80,
994 80, 10, 11, 80, 100, 107, 97, 48, 111, 11,
995 100, 17, 6, 12, 6, 6, 42, 100, 107, 100,
996 53, 56, 62, 63, 53, 56, 62, 63, 53, 53,
997 68, 13, 35, 23, 33, 37, 95, 6, 64, 80,
998 95, 117, 118, 34, 12, 17, 112, 113, 14, 80,
999 80, 12, 16, 17, 84, 17, 84, 80, 80, 80,
1000 50, 113, 37, 95, 12, 80, 80, 12, 6, 88,
1001 89, 12, 51, 6, 6, 113, 6, 53, 53, 53,
1002 53, 45, 96, 100, 102, 97, 98, 99, 37, 95,
1003 50, 54, 35, 36, 50, 65, 66, 106, 13, 16,
1004 6, 32, 116, 17, 80, 17, 114, 115, 84, 22,
1005 80, 81, 82, 83, 105, 57, 70, 10, 11, 14,
1006 18, 19, 21, 24, 25, 27, 28, 29, 43, 58,
1007 59, 75, 76, 77, 78, 79, 86, 87, 92, 111,
1008 119, 52, 48, 73, 100, 119, 12, 17, 88, 50,
1009 14, 32, 72, 6, 17, 50, 54, 103, 103, 15,
1010 32, 80, 103, 95, 36, 32, 4, 5, 7, 8,
1011 31, 46, 47, 52, 74, 80, 90, 91, 104, 80,
1012 91, 13, 96, 7, 6, 118, 13, 14, 114, 70,
1013 35, 12, 32, 18, 86, 80, 80, 111, 10, 80,
1014 107, 80, 6, 16, 16, 76, 16, 86, 86, 86,
1015 17, 86, 86, 86, 86, 113, 100, 14, 80, 73,
1016 73, 14, 91, 6, 17, 88, 68, 17, 13, 104,
1017 91, 17, 17, 16, 113, 102, 103, 51, 98, 7,
1018 13, 30, 66, 55, 96, 15, 17, 15, 17, 86,
1019 100, 101, 83, 81, 17, 17, 84, 17, 84, 86,
1020 80, 17, 17, 35, 51, 16, 6, 80, 14, 6,
1021 17, 17, 14, 100, 55, 6, 109, 110, 80, 96,
1022 90, 90, 17, 15, 23, 93, 113, 17, 32, 36,
1023 86, 86, 86, 86, 17, 86, 86, 101, 6, 17,
1024 80, 17, 17, 85, 15, 17, 13, 32, 113, 15,
1025 93, 101, 17, 17, 86, 36, 17, 17, 104, 104,
1026 108, 110, 86, 86, 51, 80, 86, 32, 15, 6,
1030 #define yyerrok (yyerrstatus = 0)
1031 #define yyclearin (yychar = YYEMPTY)
1032 #define YYEMPTY (-2)
1035 #define YYACCEPT goto yyacceptlab
1036 #define YYABORT goto yyabortlab
1037 #define YYERROR goto yyerrorlab
1044 #define YYFAIL goto yyerrlab
1046 #define YYRECOVERING() (!!yyerrstatus)
1048 #define YYBACKUP(Token, Value) \
1050 if (yychar == YYEMPTY && yylen == 1) \
1054 yytoken = YYTRANSLATE (yychar); \
1060 yyerror (YY_("syntax error: cannot back up")); \
1067 #define YYERRCODE 256
1074 #define YYRHSLOC(Rhs, K) ((Rhs)[K])
1075 #ifndef YYLLOC_DEFAULT
1076 # define YYLLOC_DEFAULT(Current, Rhs, N) \
1080 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
1081 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
1082 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
1083 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
1087 (Current).first_line = (Current).last_line = \
1088 YYRHSLOC (Rhs, 0).last_line; \
1089 (Current).first_column = (Current).last_column = \
1090 YYRHSLOC (Rhs, 0).last_column; \
1100 #ifndef YY_LOCATION_PRINT
1101 # if YYLTYPE_IS_TRIVIAL
1102 # define YY_LOCATION_PRINT(File, Loc) \
1103 fprintf (File, "%d.%d-%d.%d", \
1104 (Loc).first_line, (Loc).first_column, \
1105 (Loc).last_line, (Loc).last_column)
1107 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
1115 # define YYLEX yylex (YYLEX_PARAM)
1117 # define YYLEX yylex ()
1125 # define YYFPRINTF fprintf
1128 # define YYDPRINTF(Args) \
1136 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
1140 YYFPRINTF (stderr, "%s ", Title); \
1141 yy_symbol_print (stderr, \
1143 YYFPRINTF (stderr, "\n"); \
1153 #if (defined __STDC__ || defined __C99__FUNC__ \
1154 || defined __cplusplus || defined _MSC_VER)
1156 yy_symbol_value_print (FILE *yyoutput,
int yytype, YYSTYPE
const *
const yyvaluep)
1159 yy_symbol_value_print (yyoutput, yytype, yyvaluep)
1162 YYSTYPE
const *
const yyvaluep;
1168 if (yytype < YYNTOKENS)
1169 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
1185 #if (defined __STDC__ || defined __C99__FUNC__ \
1186 || defined __cplusplus || defined _MSC_VER)
1188 yy_symbol_print (FILE *yyoutput,
int yytype, YYSTYPE
const *
const yyvaluep)
1191 yy_symbol_print (yyoutput, yytype, yyvaluep)
1194 YYSTYPE
const *
const yyvaluep;
1197 if (yytype < YYNTOKENS)
1198 YYFPRINTF (yyoutput,
"token %s (", yytname[yytype]);
1200 YYFPRINTF (yyoutput,
"nterm %s (", yytname[yytype]);
1202 yy_symbol_value_print (yyoutput, yytype, yyvaluep);
1203 YYFPRINTF (yyoutput,
")");
1211 #if (defined __STDC__ || defined __C99__FUNC__ \
1212 || defined __cplusplus || defined _MSC_VER)
1214 yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
1217 yy_stack_print (yybottom, yytop)
1218 yytype_int16 *yybottom;
1219 yytype_int16 *yytop;
1222 YYFPRINTF (stderr,
"Stack now");
1223 for (; yybottom <= yytop; yybottom++)
1225 int yybot = *yybottom;
1226 YYFPRINTF (stderr,
" %d", yybot);
1228 YYFPRINTF (stderr,
"\n");
1231 # define YY_STACK_PRINT(Bottom, Top) \
1234 yy_stack_print ((Bottom), (Top)); \
1242 #if (defined __STDC__ || defined __C99__FUNC__ \
1243 || defined __cplusplus || defined _MSC_VER)
1245 yy_reduce_print (YYSTYPE *yyvsp,
int yyrule)
1248 yy_reduce_print (yyvsp, yyrule)
1253 int yynrhs = yyr2[yyrule];
1255 unsigned long int yylno = yyrline[yyrule];
1256 YYFPRINTF (stderr,
"Reducing stack by rule %d (line %lu):\n",
1259 for (yyi = 0; yyi < yynrhs; yyi++)
1261 YYFPRINTF (stderr,
" $%d = ", yyi + 1);
1262 yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
1263 &(yyvsp[(yyi + 1) - (yynrhs)])
1265 YYFPRINTF (stderr,
"\n");
1269 # define YY_REDUCE_PRINT(Rule) \
1272 yy_reduce_print (yyvsp, Rule); \
1279 # define YYDPRINTF(Args)
1280 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
1281 # define YY_STACK_PRINT(Bottom, Top)
1282 # define YY_REDUCE_PRINT(Rule)
1288 # define YYINITDEPTH 200
1299 # define YYMAXDEPTH 10000
1307 # if defined __GLIBC__ && defined _STRING_H
1308 # define yystrlen strlen
1311 #if (defined __STDC__ || defined __C99__FUNC__ \
1312 || defined __cplusplus || defined _MSC_VER)
1314 yystrlen (
const char *yystr)
1322 for (yylen = 0; yystr[yylen]; yylen++)
1330 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1331 # define yystpcpy stpcpy
1335 #if (defined __STDC__ || defined __C99__FUNC__ \
1336 || defined __cplusplus || defined _MSC_VER)
1338 yystpcpy (
char *yydest,
const char *yysrc)
1341 yystpcpy (yydest, yysrc)
1347 const char *yys = yysrc;
1349 while ((*yyd++ = *yys++) !=
'\0')
1366 yytnamerr (
char *yyres,
const char *yystr)
1371 char const *yyp = yystr;
1378 goto do_not_strip_quotes;
1382 goto do_not_strip_quotes;
1395 do_not_strip_quotes: ;
1399 return yystrlen (yystr);
1401 return yystpcpy (yyres, yystr) - yyres;
1413 yysyntax_error (
char *yyresult,
int yystate,
int yychar)
1415 int yyn = yypact[yystate];
1417 if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
1421 int yytype = YYTRANSLATE (yychar);
1422 YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
1423 YYSIZE_T yysize = yysize0;
1425 int yysize_overflow = 0;
1426 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1427 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1433 YY_(
"syntax error, unexpected %s");
1434 YY_(
"syntax error, unexpected %s, expecting %s");
1435 YY_(
"syntax error, unexpected %s, expecting %s or %s");
1436 YY_(
"syntax error, unexpected %s, expecting %s or %s or %s");
1437 YY_(
"syntax error, unexpected %s, expecting %s or %s or %s or %s");
1441 static char const yyunexpected[] =
"syntax error, unexpected %s";
1442 static char const yyexpecting[] =
", expecting %s";
1443 static char const yyor[] =
" or %s";
1444 char yyformat[
sizeof yyunexpected
1445 +
sizeof yyexpecting - 1
1446 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
1447 * (
sizeof yyor - 1))];
1448 char const *yyprefix = yyexpecting;
1452 int yyxbegin = yyn < 0 ? -yyn : 0;
1455 int yychecklim = YYLAST - yyn + 1;
1456 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
1459 yyarg[0] = yytname[yytype];
1460 yyfmt = yystpcpy (yyformat, yyunexpected);
1462 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1463 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
1465 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1469 yyformat[
sizeof yyunexpected - 1] =
'\0';
1472 yyarg[yycount++] = yytname[yyx];
1473 yysize1 = yysize + yytnamerr (0, yytname[yyx]);
1474 yysize_overflow |= (yysize1 < yysize);
1476 yyfmt = yystpcpy (yyfmt, yyprefix);
1480 yyf = YY_(yyformat);
1481 yysize1 = yysize + yystrlen (yyf);
1482 yysize_overflow |= (yysize1 < yysize);
1485 if (yysize_overflow)
1486 return YYSIZE_MAXIMUM;
1493 char *yyp = yyresult;
1495 while ((*yyp = *yyf) !=
'\0')
1497 if (*yyp ==
'%' && yyf[1] ==
's' && yyi < yycount)
1499 yyp += yytnamerr (yyp, yyarg[yyi++]);
1520 #if (defined __STDC__ || defined __C99__FUNC__ \
1521 || defined __cplusplus || defined _MSC_VER)
1523 yydestruct (
const char *yymsg,
int yytype, YYSTYPE *yyvaluep)
1526 yydestruct (yymsg, yytype, yyvaluep)
1536 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1547 #ifdef YYPARSE_PARAM
1548 #if defined __STDC__ || defined __cplusplus
1549 int yyparse (
void *YYPARSE_PARAM);
1554 #if defined __STDC__ || defined __cplusplus
1577 #ifdef YYPARSE_PARAM
1578 #if (defined __STDC__ || defined __C99__FUNC__ \
1579 || defined __cplusplus || defined _MSC_VER)
1581 yyparse (
void *YYPARSE_PARAM)
1584 yyparse (YYPARSE_PARAM)
1585 void *YYPARSE_PARAM;
1588 #if (defined __STDC__ || defined __C99__FUNC__ \
1589 || defined __cplusplus || defined _MSC_VER)
1613 yytype_int16 yyssa[YYINITDEPTH];
1615 yytype_int16 *yyssp;
1618 YYSTYPE yyvsa[YYINITDEPTH];
1622 YYSIZE_T yystacksize;
1635 char *yymsg = yymsgbuf;
1636 YYSIZE_T yymsg_alloc =
sizeof yymsgbuf;
1639 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1648 yystacksize = YYINITDEPTH;
1650 YYDPRINTF ((stderr,
"Starting parse\n"));
1677 if (yyss + yystacksize - 1 <= yyssp)
1680 YYSIZE_T yysize = yyssp - yyss + 1;
1687 YYSTYPE *yyvs1 = yyvs;
1688 yytype_int16 *yyss1 = yyss;
1694 yyoverflow (YY_(
"memory exhausted"),
1695 &yyss1, yysize *
sizeof (*yyssp),
1696 &yyvs1, yysize *
sizeof (*yyvsp),
1703 # ifndef YYSTACK_RELOCATE
1704 goto yyexhaustedlab;
1707 if (YYMAXDEPTH <= yystacksize)
1708 goto yyexhaustedlab;
1710 if (YYMAXDEPTH < yystacksize)
1711 yystacksize = YYMAXDEPTH;
1714 yytype_int16 *yyss1 = yyss;
1715 union yyalloc *yyptr =
1716 (
union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
1718 goto yyexhaustedlab;
1719 YYSTACK_RELOCATE (yyss_alloc, yyss);
1720 YYSTACK_RELOCATE (yyvs_alloc, yyvs);
1721 # undef YYSTACK_RELOCATE
1723 YYSTACK_FREE (yyss1);
1728 yyssp = yyss + yysize - 1;
1729 yyvsp = yyvs + yysize - 1;
1731 YYDPRINTF ((stderr,
"Stack size increased to %lu\n",
1732 (
unsigned long int) yystacksize));
1734 if (yyss + yystacksize - 1 <= yyssp)
1738 YYDPRINTF ((stderr,
"Entering state %d\n", yystate));
1740 if (yystate == YYFINAL)
1754 yyn = yypact[yystate];
1755 if (yyn == YYPACT_NINF)
1761 if (yychar == YYEMPTY)
1763 YYDPRINTF ((stderr,
"Reading a token: "));
1767 if (yychar <= YYEOF)
1769 yychar = yytoken = YYEOF;
1770 YYDPRINTF ((stderr,
"Now at end of input.\n"));
1774 yytoken = YYTRANSLATE (yychar);
1775 YY_SYMBOL_PRINT (
"Next token is", yytoken, &yylval, &yylloc);
1781 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
1786 if (yyn == 0 || yyn == YYTABLE_NINF)
1798 YY_SYMBOL_PRINT (
"Shifting", yytoken, &yylval, &yylloc);
1813 yyn = yydefact[yystate];
1834 yyval = yyvsp[1-yylen];
1837 YY_REDUCE_PRINT (yyn);
1853 printf(
"<INCLUDE>%s</INCLUDE>\n", (yyvsp[(2) - (2)]._str)->latin1() );
1877 { (yyval._int) = 1; ;}
1884 { (yyval._int) = 0; ;}
1892 if ((yyvsp[(4) - (6)]._int))
1893 printf(
"<CLASS>\n <NAME>%s</NAME>\n%s%s</CLASS>\n", ( in_namespace + *(yyvsp[(2) - (6)]._str) ).latin1(), (yyvsp[(3) - (6)]._str)->latin1(), (yyvsp[(5) - (6)]._str)->latin1() );
1896 dcop_signal_area = 0;
1906 if ((yyvsp[(5) - (7)]._int))
1907 printf(
"<CLASS>\n <NAME>%s</NAME>\n <LINK_SCOPE>%s</LINK_SCOPE>\n%s%s</CLASS>\n", ( in_namespace + *(yyvsp[(3) - (7)]._str) ).latin1(),(yyvsp[(2) - (7)]._str)->latin1(), (yyvsp[(4) - (7)]._str)->latin1(), (yyvsp[(6) - (7)]._str)->latin1() );
1910 dcop_signal_area = 0;
1944 in_namespace += *(yyvsp[(2) - (3)]._str); in_namespace +=
"::";
1953 int pos = in_namespace.findRev(
"::", -3 );
1955 in_namespace = in_namespace.left( pos + 2 );
2047 dcop_signal_area = 0;
2057 dcop_signal_area = 0;
2067 dcop_signal_area = 0;
2081 dcop_signal_area = 1;
2090 (yyval._str) = (yyvsp[(1) - (1)]._str);
2099 TQString* tmp =
new TQString(
"%1::%2" );
2100 *tmp = tmp->arg(*((yyvsp[(1) - (3)]._str))).arg(*((yyvsp[(3) - (3)]._str)));
2110 TQString* tmp =
new TQString(
" <SUPER>%1</SUPER>\n" );
2111 *tmp = tmp->arg( *((yyvsp[(1) - (1)]._str)) );
2121 TQString* tmp =
new TQString(
" <SUPER>%1</SUPER>\n" );
2122 *tmp = tmp->arg( *((yyvsp[(1) - (4)]._str)) +
"<" + *((yyvsp[(3) - (4)]._str)) +
">" );
2132 (yyval._str) = (yyvsp[(3) - (3)]._str);
2141 (yyval._str) = (yyvsp[(1) - (1)]._str);
2150 (yyval._str) = (yyvsp[(1) - (2)]._str);
2160 (yyval._str) =
new TQString( *((yyvsp[(1) - (3)]._str)) + *((yyvsp[(3) - (3)]._str)) );
2169 (yyval._str) = (yyvsp[(2) - (2)]._str);
2178 (yyval._str) =
new TQString(
"" );
2195 (yyval._str) =
new TQString(
"" );
2204 (yyval._str) =
new TQString( *((yyvsp[(1) - (2)]._str)) + *((yyvsp[(2) - (2)]._str)) );
2213 (yyval._str) =
new TQString( *((yyvsp[(2) - (3)]._str)) + *((yyvsp[(3) - (3)]._str)) );
2222 (yyval._str) =
new TQString( *((yyvsp[(1) - (2)]._str)) + *((yyvsp[(2) - (2)]._str)) );
2231 (yyval._str) = (yyvsp[(2) - (2)]._str);
2240 (yyval._str) = (yyvsp[(2) - (2)]._str);
2249 (yyval._str) = (yyvsp[(2) - (2)]._str);
2258 (yyval._str) = (yyvsp[(2) - (2)]._str);
2267 (yyval._str) = (yyvsp[(2) - (2)]._str);
2276 (yyval._str) = (yyvsp[(5) - (5)]._str);
2285 (yyval._str) = (yyvsp[(4) - (4)]._str);
2294 (yyval._str) = (yyvsp[(4) - (4)]._str);
2303 (yyval._str) = (yyvsp[(4) - (4)]._str);
2312 (yyval._str) = (yyvsp[(6) - (6)]._str);
2321 (yyval._str) = (yyvsp[(4) - (4)]._str);
2330 (yyval._str) = (yyvsp[(6) - (6)]._str);
2339 (yyval._str) = (yyvsp[(6) - (6)]._str);
2419 TQString* tmp =
new TQString(
"<TYPEDEF name=\"%1\" template=\"%2\"><PARAM %3</TYPEDEF>\n");
2420 *tmp = tmp->arg( *((yyvsp[(6) - (7)]._str)) ).arg( *((yyvsp[(2) - (7)]._str)) ).arg( *((yyvsp[(4) - (7)]._str)) );
2423 (yyval._str) =
new TQString(
"");
2434 yyerror(
"scoped template typedefs are not supported in dcop areas!");
2460 { (yyval._str) =
new TQString(
"signed int"); ;}
2467 { (yyval._str) =
new TQString(
"signed int"); ;}
2474 { (yyval._str) =
new TQString(
"unsigned int"); ;}
2481 { (yyval._str) =
new TQString(
"unsigned int"); ;}
2488 { (yyval._str) =
new TQString(
"signed short int"); ;}
2495 { (yyval._str) =
new TQString(
"signed short int"); ;}
2502 { (yyval._str) =
new TQString(
"signed long int"); ;}
2509 { (yyval._str) =
new TQString(
"signed long int"); ;}
2516 { (yyval._str) =
new TQString(
"unsigned short int"); ;}
2523 { (yyval._str) =
new TQString(
"unsigned short int"); ;}
2530 { (yyval._str) =
new TQString(
"unsigned long int"); ;}
2537 { (yyval._str) =
new TQString(
"unsigned long int"); ;}
2544 { (yyval._str) =
new TQString(
"int"); ;}
2551 { (yyval._str) =
new TQString(
"long int"); ;}
2558 { (yyval._str) =
new TQString(
"long int"); ;}
2565 { (yyval._str) =
new TQString(
"short int"); ;}
2572 { (yyval._str) =
new TQString(
"short int"); ;}
2579 { (yyval._str) =
new TQString(
"char"); ;}
2586 { (yyval._str) =
new TQString(
"signed char"); ;}
2593 { (yyval._str) =
new TQString(
"unsigned char"); ;}
2601 (yyval._str) =
new TQString(
"" );
2610 (yyval._str) =
new TQString( *((yyvsp[(1) - (3)]._str)) + *((yyvsp[(3) - (3)]._str)) );
2618 { (yyval._str) = (yyvsp[(1) - (1)]._str); ;}
2625 { (yyval._str) = (yyvsp[(2) - (2)]._str); ;}
2632 { (yyval._str) = (yyvsp[(2) - (2)]._str); ;}
2640 TQString *tmp =
new TQString(
"%1<%2>");
2641 *tmp = tmp->arg(*((yyvsp[(1) - (4)]._str)));
2642 *tmp = tmp->arg(*((yyvsp[(3) - (4)]._str)));
2652 TQString *tmp =
new TQString(
"%1<%2>::%3");
2653 *tmp = tmp->arg(*((yyvsp[(1) - (6)]._str)));
2654 *tmp = tmp->arg(*((yyvsp[(3) - (6)]._str)));
2655 *tmp = tmp->arg(*((yyvsp[(6) - (6)]._str)));
2665 (yyval._str) =
new TQString(*((yyvsp[(1) - (3)]._str)) +
"," + *((yyvsp[(3) - (3)]._str)));
2674 (yyval._str) = (yyvsp[(1) - (1)]._str);
2684 yyerror(
"in dcop areas are no pointers allowed");
2693 (yyval._str) = (yyvsp[(1) - (1)]._str);
2703 yyerror(
"in dcop areas are no pointers allowed");
2713 TQString* tmp =
new TQString(
"<TYPE qleft=\"const\" qright=\"" AMP_ENTITY
"\">%1</TYPE>");
2714 *tmp = tmp->arg( *((yyvsp[(2) - (3)]._str)) );
2725 TQString* tmp =
new TQString(
"<TYPE>%1</TYPE>");
2726 *tmp = tmp->arg( *((yyvsp[(2) - (2)]._str)) );
2736 TQString* tmp =
new TQString(
"<TYPE>%1</TYPE>");
2737 *tmp = tmp->arg( *((yyvsp[(1) - (2)]._str)) );
2748 TQString* tmp =
new TQString(
"<TYPE qleft=\"const\" qright=\"" AMP_ENTITY
"\">%1</TYPE>");
2749 *tmp = tmp->arg( *((yyvsp[(1) - (3)]._str)) );
2761 yyerror(
"in dcop areas are only const references allowed!");
2770 TQString* tmp =
new TQString(
"<TYPE>%1</TYPE>");
2771 *tmp = tmp->arg( *((yyvsp[(1) - (1)]._str)) );
2782 yyerror(
"in dcop areas are no pointers allowed");
2791 (yyval._str) =
new TQString(*((yyvsp[(1) - (3)]._str)) +
"," + *((yyvsp[(3) - (3)]._str)));
2800 (yyval._str) = (yyvsp[(1) - (1)]._str);
2810 TQString* tmp =
new TQString(
"\n <ARG>%1<NAME>%2</NAME></ARG>");
2811 *tmp = tmp->arg( *((yyvsp[(1) - (3)]._str)) );
2812 *tmp = tmp->arg( *((yyvsp[(2) - (3)]._str)) );
2814 }
else (yyval._str) =
new TQString();
2824 TQString* tmp =
new TQString(
"\n <ARG>%1</ARG>");
2825 *tmp = tmp->arg( *((yyvsp[(1) - (2)]._str)) );
2827 }
else (yyval._str) =
new TQString();
2837 yyerror(
"variable arguments not supported in dcop area.");
2838 (yyval._str) =
new TQString(
"");
2910 { (yyval._int) = 0; ;}
2917 { (yyval._int) = 1; ;}
2925 if (dcop_area || dcop_signal_area) {
2933 *tmp = tmp->arg( *((yyvsp[(2) - (6)]._str)) );
2934 *tmp = tmp->arg( *((yyvsp[(1) - (6)]._str)) );
2935 *tmp = tmp->arg( *((yyvsp[(4) - (6)]._str)) );
2937 TQString tagname = (dcop_signal_area) ?
"SIGNAL" :
"FUNC";
2938 TQString attr = ((yyvsp[(6) - (6)]._int)) ?
" qual=\"const\"" :
"";
2939 *tmp = tmp->arg( TQString(
"%1%2").arg(tagname).arg(attr) );
2940 *tmp = tmp->arg( TQString(
"%1").arg(tagname) );
2943 (yyval._str) =
new TQString(
"");
2953 yyerror(
"operators aren't allowed in dcop areas!");
2954 (yyval._str) =
new TQString(
"");
3005 (yyval._str) = (yyvsp[(1) - (2)]._str);
3014 (yyval._str) = (yyvsp[(2) - (5)]._str);
3023 (yyval._str) = (yyvsp[(2) - (3)]._str);
3034 (yyval._str) =
new TQString(
"");
3045 (yyval._str) =
new TQString(
"");
3056 (yyval._str) =
new TQString(
"");
3066 if (dcop_signal_area)
3067 yyerror(
"DCOP signals cannot be static");
3069 yyerror(
"DCOP functions cannot be static");
3071 (yyval._str) =
new TQString();
3172 #line 3171 "yacc.cpp"
3175 YY_SYMBOL_PRINT (
"-> $$ =", yyr1[yyn], &yyval, &yyloc);
3179 YY_STACK_PRINT (yyss, yyssp);
3189 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
3190 if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
3191 yystate = yytable[yystate];
3193 yystate = yydefgoto[yyn - YYNTOKENS];
3206 #if ! YYERROR_VERBOSE
3207 yyerror (YY_(
"syntax error"));
3210 YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
3211 if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
3213 YYSIZE_T yyalloc = 2 * yysize;
3214 if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
3215 yyalloc = YYSTACK_ALLOC_MAXIMUM;
3216 if (yymsg != yymsgbuf)
3217 YYSTACK_FREE (yymsg);
3218 yymsg = (
char *) YYSTACK_ALLOC (yyalloc);
3220 yymsg_alloc = yyalloc;
3224 yymsg_alloc =
sizeof yymsgbuf;
3228 if (0 < yysize && yysize <= yymsg_alloc)
3230 (void) yysyntax_error (yymsg, yystate, yychar);
3235 yyerror (YY_(
"syntax error"));
3237 goto yyexhaustedlab;
3245 if (yyerrstatus == 3)
3250 if (yychar <= YYEOF)
3253 if (yychar == YYEOF)
3258 yydestruct (
"Error: discarding",
3284 YY_STACK_PRINT (yyss, yyssp);
3297 yyn = yypact[yystate];
3298 if (yyn != YYPACT_NINF)
3301 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
3314 yydestruct (
"Error: popping",
3315 yystos[yystate], yyvsp);
3318 YY_STACK_PRINT (yyss, yyssp);
3325 YY_SYMBOL_PRINT (
"Shifting", yystos[yyn], yyvsp, yylsp);
3345 #if !defined(yyoverflow) || YYERROR_VERBOSE
3350 yyerror (YY_(
"memory exhausted"));
3356 if (yychar != YYEMPTY)
3357 yydestruct (
"Cleanup: discarding lookahead",
3362 YY_STACK_PRINT (yyss, yyssp);
3363 while (yyssp != yyss)
3365 yydestruct (
"Cleanup: popping",
3366 yystos[*yyssp], yyvsp);
3371 YYSTACK_FREE (yyss);
3374 if (yymsg != yymsgbuf)
3375 YYSTACK_FREE (yymsg);
3378 return YYID (yyresult);
3387 void dcopidlParse(
const char *_code )
3389 dcopidlInitFlex( _code );