/* A Bison parser, made from kimwy.y by GNU bison 1.35. */ #define YYBISON 1 /* Identify Bison output. */ # define T_ID 257 # define T_OPNAME 258 # define T_INT 259 # define T_CNEWLINES 260 # define T_CLINE 261 # define T_CEXPRESSION 262 # define T_DOLLARVAR 263 # define T_INCLUDEEND 264 # define T_INCLUDESTART 265 # define T_ENDOFINCLUDESTART 266 # define T_LIST 267 # define T_ARROW 268 # define T_PROVIDED 269 # define T_STATIC 270 # define T_WITH 271 # define T_FOREACH 272 # define T_FOREACH_AFTER 273 # define T_DEFAULT 274 # define T_UNPBLOCKSTART 275 # define T_UNPBLOCKEND 276 # define T_PERCENTRVIEW 277 # define T_PERCENTRVIEWVAR 278 # define T_PERCENTUVIEW 279 # define T_PERCENTUVIEWVAR 280 # define T_PERCENTSTORAGECLASS 281 # define T_PERCENTLANGUAGE 282 # define T_AUTO 283 # define T_REGISTER 284 # define T_EXTERN 285 # define T_TYPEDEF 286 # define T_CONST 287 # define T_VOLATILE 288 # define T_UNSIGNED 289 # define T_VIRTUAL 290 # define T_DOTDOTDOT 291 # define T_COLONCOLON 292 # define T_OPERATOR 293 # define T_CONSTRUCTOR 294 # define T_DESTRUCTOR 295 # define T_MEMBER 296 # define T_ATTR 297 # define T_BASECLASS 298 #line 1 "kimwy.y" // // The Termprocessor Kimwitu++ // // Copyright (C) 1991 University of Twente, Dept TIOS. // Copyright (C) 1998-2003 Humboldt-University at Berlin, Institute of Informatics // All rights reserved. // // Kimwitu++ is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // Kimwitu++ is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Kimwitu++; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // // kimwy.y // static char kimwy_yAccesSid[] = "@(#)$Id: kimwy.y,v 1.49 2003/10/15 12:48:56 piefel Exp $"; void yyerror_1(const char *s, int state_no); #define yyerror(s) yyerror_1(s, yystate) #ifdef BISON_RECOVER /* Note that setting YYDEBUG is required even if you do not want to * set the yydebug variable because we use the symbol strings in * 'yytname' for initialising costs and also for error messages. */ #define YYDEBUG 1 #define yyinsertcost(token) (token[0]=='\''?1:strlen(token)) #define yydeletecost(token) (token[0]=='\''?1:strlen(token)) #endif /* BISON_RECOVER */ ///////////////////////////////////////////////////////////////////////////// // // Name conventions: tokens are in CAPITALS // nonterminals are in lowercase // operators are capitalized // // For windows (NT at least) we need to redefine alloca #if defined(_WIN32) && ! defined (__GNUC__) # define alloca _alloca # include #endif #include "k.h" #include "parse.h" #include "occur.h" #include "util.h" // for the v_add_to routines #include "rk.h" // for the patternchains::rewrite routine #include "yystype.h" // for YYSTYPE #include "error.h" #include #include #include namespace { // local kimwy.y vars static ID pl_phylum; static withexpressions pl_withvariables; static std::stack pl_withvariablesstack; static std::stack pl_idCexpressionsstack; static std::stack pl_filelinestack; static std::stack pl_nooperatorsstack; static int non_default_outmostpattern = 0; } #define dollar_mark_set() (!pl_withvariables->eq(Nilwithexpressions())) #define do_MainC() do { if ( dollar_mark_set() ) do_NORMAL(); else do_C(); } while(0) extern void do_NORMAL(); extern void do_CEXPR(); extern void do_CEXPRDQ(); extern void do_CEXPRSQ(); extern void do_C(); extern int yylex(); #define pf_setfileline(x) do { (x)->file = pg_filename; \ (x)->line = pg_lineno; \ } while(0) #define pf_pushfileline() pl_filelinestack.push(FileLine(pg_filename, pg_lineno)) #define pf_setstacktopfileline(x) do { (x)->file = pl_filelinestack.top()->file; \ (x)->line = pl_filelinestack.top()->line; \ } while(0) #define pf_topfileline() pl_filelinestack.top() #define pf_popfileline() pl_filelinestack.pop() #define pf_setwithvariable(x) pl_withvariables = Conswithexpressions(WEVariable(x), pl_withvariables) #define pf_resetwithvariable() pl_withvariables = Nilwithexpressions() #define pf_push_no_operators() pl_nooperatorsstack.push(non_default_outmostpattern) #define pf_pop_no_operators() do{non_default_outmostpattern = pl_nooperatorsstack.top();pl_nooperatorsstack.pop();}while(0) /* XXX - why is there no need to restore pl_withvariables on pop? MvL */ #define pf_pushwithvariable() pl_withvariablesstack.push(pl_withvariables) #define pf_topwithvariable() pl_withvariablesstack.top() #define pf_popwithvariable() pl_withvariablesstack.pop() #define pf_pushidCexpressions(x) pl_idCexpressionsstack.push(x) #define pf_topidCexpressions() pl_idCexpressionsstack.top() #define pf_popidCexpressions() pl_idCexpressionsstack.pop() #ifndef YYDEBUG # define YYDEBUG 0 #endif #define YYFINAL 611 #define YYFLAG -32768 #define YYNTBASE 66 /* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */ #define YYTRANSLATE(x) ((unsigned)(x) <= 298 ? yytranslate[x] : 223) /* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */ static const char yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 55, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 50, 56, 2, 63, 2, 62, 57, 52, 53, 64, 2, 47, 2, 65, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 45, 46, 60, 54, 61, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 58, 2, 59, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 48, 51, 49, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44 }; #if YYDEBUG static const short yyprhs[] = { 0, 0, 2, 4, 6, 7, 10, 11, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 40, 42, 46, 47, 55, 56, 60, 65, 68, 72, 73, 76, 78, 80, 84, 86, 90, 94, 95, 96, 103, 107, 108, 111, 116, 117, 122, 125, 126, 129, 134, 135, 136, 140, 141, 144, 146, 148, 150, 154, 158, 162, 166, 169, 172, 175, 178, 179, 182, 184, 186, 188, 190, 191, 194, 196, 198, 199, 202, 204, 206, 208, 212, 213, 214, 219, 221, 223, 224, 229, 230, 231, 237, 238, 239, 245, 247, 249, 251, 252, 253, 259, 260, 261, 265, 267, 269, 271, 273, 274, 279, 280, 285, 287, 288, 292, 293, 294, 295, 306, 307, 308, 318, 319, 320, 321, 329, 330, 332, 333, 339, 343, 344, 346, 348, 351, 352, 358, 360, 363, 369, 371, 373, 375, 379, 381, 385, 386, 389, 391, 395, 398, 400, 404, 406, 409, 413, 417, 420, 426, 430, 433, 436, 437, 438, 439, 446, 448, 453, 455, 457, 461, 462, 467, 469, 470, 472, 474, 478, 480, 483, 487, 491, 493, 498, 505, 512, 516, 520, 521, 526, 527, 532, 534, 535, 537, 539, 543, 545, 548, 552, 556, 558, 561, 565, 566, 572, 577, 579, 582, 588, 593, 599, 604, 607, 608, 611, 612, 615, 616, 617, 625, 629, 632, 637, 638, 639, 647, 649, 651, 654, 657, 662, 664, 667, 670, 673, 674, 677, 680, 684, 688, 690, 694, 697, 702, 706, 712, 715, 719, 723, 727, 729, 733, 736, 741, 745, 751, 754, 758, 762, 766, 768, 771, 775, 778, 782, 786, 795, 803, 810, 816, 822, 823, 826, 828, 832, 837, 838, 841, 842, 845, 849, 851, 854, 857, 861, 863, 866, 869, 873, 875, 877, 879, 881, 883, 885, 887, 888, 890, 892, 894, 896, 898, 900, 903, 906, 910, 912, 915, 918, 922, 924, 927, 930, 934, 937, 941, 943, 947, 952, 957, 962, 963, 968, 974, 980, 982, 986, 988, 991, 992, 994, 996, 999, 1002, 1006, 1008, 1011, 1012, 1014, 1016, 1019, 1023, 1025, 1029, 1033, 1037, 1039, 1041, 1044, 1048, 1053, 1057, 1062, 1066, 1068, 1069, 1072, 1074, 1077, 1079, 1080, 1085, 1090, 1091, 1093, 1097, 1099, 1102, 1106, 1110, 1114, 1118, 1120, 1123, 1127, 1130 }; static const short yyrhs[] = { 9, 0, 3, 0, 5, 0, 0, 70, 71, 0, 0, 71, 72, 0, 75, 0, 135, 0, 182, 0, 131, 0, 161, 0, 176, 0, 178, 0, 180, 0, 221, 0, 73, 0, 44, 67, 45, 74, 46, 0, 67, 0, 74, 47, 67, 0, 0, 67, 77, 45, 76, 78, 84, 46, 0, 0, 48, 67, 49, 0, 48, 50, 67, 49, 0, 48, 1, 0, 48, 50, 1, 0, 0, 13, 67, 0, 79, 0, 80, 0, 79, 51, 80, 0, 1, 0, 79, 51, 1, 0, 79, 1, 80, 0, 0, 0, 67, 52, 81, 83, 82, 53, 0, 67, 52, 1, 0, 0, 83, 67, 0, 83, 3, 45, 67, 0, 0, 48, 85, 130, 49, 0, 48, 1, 0, 0, 85, 86, 0, 67, 67, 87, 46, 0, 0, 0, 54, 88, 89, 0, 0, 89, 90, 0, 8, 0, 66, 0, 55, 0, 56, 94, 56, 0, 57, 96, 57, 0, 52, 91, 53, 0, 58, 91, 59, 0, 56, 1, 0, 57, 1, 0, 52, 1, 0, 58, 1, 0, 0, 91, 92, 0, 90, 0, 47, 0, 56, 0, 1, 0, 0, 94, 95, 0, 8, 0, 55, 0, 0, 96, 97, 0, 8, 0, 55, 0, 99, 0, 98, 47, 99, 0, 0, 0, 67, 100, 89, 101, 0, 89, 0, 102, 0, 0, 103, 47, 104, 102, 0, 0, 0, 48, 106, 111, 107, 49, 0, 0, 0, 48, 109, 111, 110, 49, 0, 115, 0, 159, 0, 1, 0, 0, 0, 48, 113, 115, 114, 49, 0, 0, 0, 115, 116, 117, 0, 7, 0, 66, 0, 55, 0, 6, 0, 0, 56, 118, 94, 56, 0, 0, 57, 119, 96, 57, 0, 112, 0, 0, 18, 120, 124, 0, 0, 0, 0, 17, 121, 52, 122, 103, 123, 53, 48, 159, 49, 0, 0, 0, 52, 141, 46, 125, 98, 53, 108, 126, 127, 0, 0, 0, 0, 19, 128, 52, 141, 129, 53, 108, 0, 0, 112, 0, 0, 11, 133, 132, 12, 10, 0, 11, 1, 10, 0, 0, 134, 0, 3, 0, 134, 3, 0, 0, 145, 14, 136, 137, 139, 0, 138, 0, 137, 138, 0, 60, 165, 45, 154, 61, 0, 46, 0, 1, 0, 141, 0, 140, 47, 141, 0, 142, 0, 141, 62, 142, 0, 0, 143, 144, 0, 146, 0, 52, 140, 53, 0, 63, 67, 0, 146, 0, 145, 47, 146, 0, 1, 0, 145, 1, 0, 145, 47, 1, 0, 145, 1, 146, 0, 67, 147, 0, 67, 52, 152, 53, 147, 0, 67, 54, 146, 0, 64, 147, 0, 20, 147, 0, 0, 0, 0, 15, 52, 148, 89, 149, 53, 0, 67, 0, 67, 52, 152, 53, 0, 64, 0, 20, 0, 67, 54, 150, 0, 0, 56, 151, 94, 56, 0, 68, 0, 0, 153, 0, 150, 0, 153, 47, 150, 0, 1, 0, 153, 1, 0, 153, 47, 1, 0, 153, 1, 150, 0, 67, 0, 67, 52, 157, 53, 0, 154, 14, 67, 52, 157, 53, 0, 154, 65, 67, 52, 157, 53, 0, 154, 14, 67, 0, 154, 65, 67, 0, 0, 57, 155, 96, 57, 0, 0, 56, 156, 94, 56, 0, 68, 0, 0, 158, 0, 154, 0, 158, 47, 154, 0, 1, 0, 158, 1, 0, 158, 47, 1, 0, 158, 1, 154, 0, 160, 0, 159, 160, 0, 140, 45, 112, 0, 0, 145, 14, 162, 163, 46, 0, 145, 14, 1, 46, 0, 164, 0, 163, 164, 0, 58, 165, 45, 166, 59, 0, 58, 165, 45, 1, 0, 58, 1, 45, 166, 59, 0, 58, 1, 45, 1, 0, 58, 1, 0, 0, 165, 67, 0, 0, 166, 167, 0, 0, 0, 219, 56, 168, 94, 93, 169, 175, 0, 219, 172, 175, 0, 219, 112, 0, 219, 21, 166, 22, 0, 0, 0, 26, 67, 67, 170, 89, 171, 46, 0, 67, 0, 66, 0, 67, 173, 0, 66, 173, 0, 52, 67, 53, 67, 0, 174, 0, 173, 174, 0, 14, 67, 0, 14, 1, 0, 0, 45, 67, 0, 45, 1, 0, 25, 177, 46, 0, 25, 1, 46, 0, 67, 0, 52, 67, 53, 0, 177, 67, 0, 177, 52, 67, 53, 0, 177, 47, 67, 0, 177, 47, 52, 67, 53, 0, 177, 1, 0, 177, 47, 1, 0, 23, 179, 46, 0, 23, 1, 46, 0, 67, 0, 52, 67, 53, 0, 179, 67, 0, 179, 52, 67, 53, 0, 179, 47, 67, 0, 179, 47, 52, 67, 53, 0, 179, 1, 0, 179, 47, 1, 0, 27, 181, 46, 0, 27, 1, 46, 0, 67, 0, 181, 67, 0, 181, 47, 67, 0, 181, 1, 0, 181, 47, 1, 0, 188, 195, 217, 0, 67, 38, 39, 67, 52, 53, 205, 217, 0, 40, 67, 52, 208, 53, 183, 217, 0, 41, 192, 67, 52, 53, 217, 0, 42, 189, 197, 187, 46, 0, 43, 189, 197, 187, 46, 0, 0, 45, 184, 0, 185, 0, 184, 47, 185, 0, 67, 52, 214, 53, 0, 0, 54, 214, 0, 0, 54, 214, 0, 52, 214, 53, 0, 193, 0, 190, 193, 0, 194, 193, 0, 190, 194, 193, 0, 193, 0, 191, 193, 0, 194, 193, 0, 191, 194, 193, 0, 29, 0, 30, 0, 16, 0, 31, 0, 32, 0, 36, 0, 16, 0, 0, 36, 0, 67, 0, 33, 0, 34, 0, 35, 0, 202, 0, 206, 202, 0, 62, 202, 0, 206, 62, 202, 0, 199, 0, 206, 199, 0, 62, 199, 0, 206, 62, 199, 0, 200, 0, 206, 200, 0, 62, 200, 0, 206, 62, 200, 0, 206, 199, 0, 206, 62, 199, 0, 216, 0, 52, 198, 53, 0, 199, 58, 213, 59, 0, 199, 52, 208, 53, 0, 67, 38, 67, 201, 0, 0, 201, 58, 214, 59, 0, 203, 52, 208, 53, 205, 0, 203, 52, 1, 53, 205, 0, 204, 0, 203, 38, 204, 0, 67, 0, 39, 4, 0, 0, 33, 0, 64, 0, 64, 207, 0, 64, 206, 0, 64, 207, 206, 0, 194, 0, 207, 194, 0, 0, 37, 0, 209, 0, 209, 37, 0, 209, 47, 37, 0, 210, 0, 209, 47, 210, 0, 188, 196, 186, 0, 188, 211, 186, 0, 206, 0, 212, 0, 206, 212, 0, 52, 211, 53, 0, 212, 58, 213, 59, 0, 58, 213, 59, 0, 212, 52, 208, 53, 0, 52, 208, 53, 0, 214, 0, 0, 215, 89, 0, 67, 0, 63, 67, 0, 105, 0, 0, 1, 46, 218, 217, 0, 60, 220, 61, 45, 0, 0, 67, 0, 220, 47, 67, 0, 1, 0, 220, 1, 0, 220, 47, 1, 0, 220, 1, 67, 0, 28, 222, 46, 0, 28, 1, 46, 0, 67, 0, 222, 67, 0, 222, 47, 67, 0, 222, 1, 0, 222, 47, 1, 0 }; #endif #if YYDEBUG /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const short yyrline[] = { 0, 285, 290, 295, 307, 307, 316, 318, 321, 324, 330, 332, 334, 336, 338, 340, 342, 344, 348, 353, 356, 360, 360, 367, 370, 372, 374, 376, 380, 383, 388, 392, 395, 397, 399, 401, 405, 405, 405, 409, 413, 416, 418, 423, 426, 428, 432, 435, 439, 444, 447, 447, 458, 461, 465, 468, 470, 472, 474, 476, 478, 480, 482, 484, 486, 490, 493, 497, 500, 504, 506, 509, 512, 516, 519, 523, 526, 530, 533, 537, 540, 544, 544, 544, 552, 557, 560, 560, 570, 570, 570, 579, 579, 579, 588, 591, 598, 602, 602, 602, 611, 614, 614, 620, 623, 625, 627, 629, 629, 634, 634, 640, 643, 643, 648, 648, 648, 648, 661, 661, 661, 694, 697, 697, 697, 728, 731, 735, 735, 742, 746, 751, 755, 765, 776, 776, 784, 787, 791, 803, 805, 808, 811, 815, 818, 822, 822, 828, 831, 833, 837, 840, 842, 844, 846, 848, 852, 856, 859, 862, 865, 870, 873, 873, 873, 877, 880, 882, 884, 886, 888, 888, 893, 897, 900, 904, 907, 909, 911, 913, 915, 919, 923, 927, 930, 933, 936, 939, 939, 945, 945, 951, 956, 959, 963, 966, 968, 970, 972, 974, 978, 981, 985, 990, 990, 996, 1000, 1003, 1007, 1018, 1020, 1022, 1024, 1028, 1031, 1035, 1038, 1042, 1042, 1042, 1053, 1055, 1057, 1059, 1059, 1059, 1065, 1068, 1070, 1072, 1077, 1081, 1084, 1088, 1091, 1095, 1098, 1100, 1104, 1107, 1111, 1116, 1120, 1124, 1128, 1132, 1136, 1138, 1142, 1145, 1149, 1154, 1158, 1162, 1166, 1170, 1174, 1176, 1180, 1183, 1187, 1192, 1196, 1200, 1202, 1206, 1216, 1237, 1257, 1277, 1284, 1293, 1296, 1300, 1303, 1307, 1312, 1315, 1320, 1323, 1326, 1337, 1342, 1348, 1354, 1365, 1370, 1376, 1382, 1393, 1396, 1398, 1400, 1402, 1404, 1408, 1413, 1416, 1424, 1429, 1432, 1434, 1438, 1441, 1443, 1445, 1449, 1452, 1454, 1456, 1460, 1463, 1465, 1467, 1471, 1474, 1478, 1481, 1483, 1485, 1489, 1494, 1497, 1501, 1508, 1517, 1520, 1524, 1527, 1535, 1538, 1542, 1545, 1547, 1549, 1553, 1556, 1560, 1563, 1565, 1567, 1569, 1573, 1576, 1580, 1583, 1587, 1590, 1592, 1596, 1599, 1601, 1603, 1605, 1612, 1616, 1616, 1623, 1626, 1630, 1633, 1633, 1636, 1639, 1643, 1646, 1648, 1650, 1652, 1654, 1658, 1661, 1665, 1668, 1670, 1672, 1674 }; #endif #if (YYDEBUG) || defined YYERROR_VERBOSE /* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */ static const char *const yytname[] = { "$", "error", "$undefined.", "T_ID", "T_OPNAME", "T_INT", "T_CNEWLINES", "T_CLINE", "T_CEXPRESSION", "T_DOLLARVAR", "T_INCLUDEEND", "T_INCLUDESTART", "T_ENDOFINCLUDESTART", "T_LIST", "T_ARROW", "T_PROVIDED", "T_STATIC", "T_WITH", "T_FOREACH", "T_FOREACH_AFTER", "T_DEFAULT", "T_UNPBLOCKSTART", "T_UNPBLOCKEND", "T_PERCENTRVIEW", "T_PERCENTRVIEWVAR", "T_PERCENTUVIEW", "T_PERCENTUVIEWVAR", "T_PERCENTSTORAGECLASS", "T_PERCENTLANGUAGE", "T_AUTO", "T_REGISTER", "T_EXTERN", "T_TYPEDEF", "T_CONST", "T_VOLATILE", "T_UNSIGNED", "T_VIRTUAL", "T_DOTDOTDOT", "T_COLONCOLON", "T_OPERATOR", "T_CONSTRUCTOR", "T_DESTRUCTOR", "T_MEMBER", "T_ATTR", "T_BASECLASS", "':'", "';'", "','", "'{'", "'}'", "'!'", "'|'", "'('", "')'", "'='", "'\\n'", "'\\\"'", "'\\''", "'['", "']'", "'<'", "'>'", "'&'", "'$'", "'*'", "'.'", "dollarvar", "id", "integer", "specification", "@1", "declarations", "declaration", "baseclassdeclaration", "baseclass_list", "phylumdeclaration", "@2", "storageoption", "productionblock", "alternatives", "alternative", "@3", "@4", "arguments", "Ccode_option", "attributes_option", "attribute", "attribute_init_option", "@5", "Cexpression", "Cexpression_elem", "Cexpression_inner", "Cexpression_elem_inner", "quote_or_error", "CexpressionDQ", "CexpressionDQ_elem", "CexpressionSQ", "CexpressionSQ_elem", "idCexpressions", "idCexpression", "@6", "@7", "withCexpression", "withCexpressions", "@8", "MainCbody", "@9", "@10", "MainCbodyinC", "@11", "@12", "MainCBodycontinuation", "Cbody", "@13", "@14", "Ctext", "@15", "Ctext_elem", "@16", "@17", "@18", "@19", "@20", "@21", "foreach_continuation", "@22", "@23", "foreach_end_continuation", "@24", "@25", "init_option", "includedeclaration", "@26", "includefiles_option", "includefiles", "rwdeclaration", "@27", "rwclauses", "rwclause", "semi_or_error", "patternchains", "patternchain", "patternchainitem_lineinfo", "@28", "patternchainitem", "outmostpatterns", "outmostpattern", "provideds", "@29", "@30", "pattern", "@31", "patternsoption", "patterns", "term", "@32", "@33", "termsoption", "terms", "withcases", "withcase", "unparsedeclaration", "@34", "unparseclauses", "unparseclause", "useviewnames", "unparseitems", "unparseitem", "@35", "@36", "@37", "@38", "unpsubterm", "unpattributes", "unpattribute", "viewnameoption", "uviewdeclaration", "defuviewnames", "rviewdeclaration", "defrviewnames", "storageclassdeclaration", "defstorageclasses", "ac_function_definition", "ac_opt_base_init_list", "ac_base_init_list", "ac_base_init", "ac_default_arg_init", "ac_opt_member_init", "ac_declaration_specifiers", "ac_member_declaration_specifiers", "ac_storage_class_specifier", "ac_member_storage_class_specifier", "opt_virtual", "ac_type_specifier", "ac_type_qualifier", "ac_fn_declarator", "ac_declarator", "ac_member_declarator", "ac_pointer_declarator", "ac_direct_declarator", "ac_direct_member_declarator", "ac_constant_expression_list", "ac_direct_fn_declarator", "ac_qualifier", "ac_fn_declarator_id", "ac_opt_const", "ac_pointer", "ac_type_qualifier_list", "ac_parameter_type_list", "ac_parameter_list", "ac_parameter_declaration", "ac_abstract_declarator", "ac_direct_abstract_declarator", "ac_constant_expression_option", "ac_constant_expression", "@39", "ac_identifier", "ac_compound_statement", "@40", "languageoption", "languageoptions", "languagedeclaration", "deflanguagenames", 0 }; #endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const short yyr1[] = { 0, 66, 67, 68, 70, 69, 71, 71, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 74, 74, 76, 75, 77, 77, 77, 77, 77, 78, 78, 78, 79, 79, 79, 79, 79, 81, 82, 80, 80, 83, 83, 83, 84, 84, 84, 85, 85, 86, 87, 88, 87, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 92, 92, 93, 93, 94, 94, 95, 95, 96, 96, 97, 97, 98, 98, 100, 101, 99, 102, 103, 104, 103, 106, 107, 105, 109, 110, 108, 111, 111, 111, 113, 114, 112, 115, 116, 115, 117, 117, 117, 117, 118, 117, 119, 117, 117, 120, 117, 121, 122, 123, 117, 125, 126, 124, 127, 128, 129, 127, 130, 130, 132, 131, 131, 133, 133, 134, 134, 136, 135, 137, 137, 138, 139, 139, 140, 140, 141, 141, 143, 142, 144, 144, 144, 145, 145, 145, 145, 145, 145, 146, 146, 146, 146, 146, 147, 148, 149, 147, 150, 150, 150, 150, 150, 151, 150, 150, 152, 152, 153, 153, 153, 153, 153, 153, 154, 154, 154, 154, 154, 154, 155, 154, 156, 154, 154, 157, 157, 158, 158, 158, 158, 158, 158, 159, 159, 160, 162, 161, 161, 163, 163, 164, 164, 164, 164, 164, 165, 165, 166, 166, 168, 169, 167, 167, 167, 167, 170, 171, 167, 172, 172, 172, 172, 172, 173, 173, 174, 174, 175, 175, 175, 176, 176, 177, 177, 177, 177, 177, 177, 177, 177, 178, 178, 179, 179, 179, 179, 179, 179, 179, 179, 180, 180, 181, 181, 181, 181, 181, 182, 182, 182, 182, 182, 182, 183, 183, 184, 184, 185, 186, 186, 187, 187, 187, 188, 188, 188, 188, 189, 189, 189, 189, 190, 190, 190, 190, 190, 190, 191, 192, 192, 193, 194, 194, 194, 195, 195, 195, 195, 196, 196, 196, 196, 197, 197, 197, 197, 198, 198, 199, 199, 199, 199, 200, 201, 201, 202, 202, 203, 203, 204, 204, 205, 205, 206, 206, 206, 206, 207, 207, 208, 208, 208, 208, 208, 209, 209, 210, 210, 211, 211, 211, 212, 212, 212, 212, 212, 213, 215, 214, 216, 216, 217, 218, 217, 219, 219, 220, 220, 220, 220, 220, 220, 221, 221, 222, 222, 222, 222, 222 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const short yyr2[] = { 0, 1, 1, 1, 0, 2, 0, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 3, 0, 7, 0, 3, 4, 2, 3, 0, 2, 1, 1, 3, 1, 3, 3, 0, 0, 6, 3, 0, 2, 4, 0, 4, 2, 0, 2, 4, 0, 0, 3, 0, 2, 1, 1, 1, 3, 3, 3, 3, 2, 2, 2, 2, 0, 2, 1, 1, 1, 1, 0, 2, 1, 1, 0, 2, 1, 1, 1, 3, 0, 0, 4, 1, 1, 0, 4, 0, 0, 5, 0, 0, 5, 1, 1, 1, 0, 0, 5, 0, 0, 3, 1, 1, 1, 1, 0, 4, 0, 4, 1, 0, 3, 0, 0, 0, 10, 0, 0, 9, 0, 0, 0, 7, 0, 1, 0, 5, 3, 0, 1, 1, 2, 0, 5, 1, 2, 5, 1, 1, 1, 3, 1, 3, 0, 2, 1, 3, 2, 1, 3, 1, 2, 3, 3, 2, 5, 3, 2, 2, 0, 0, 0, 6, 1, 4, 1, 1, 3, 0, 4, 1, 0, 1, 1, 3, 1, 2, 3, 3, 1, 4, 6, 6, 3, 3, 0, 4, 0, 4, 1, 0, 1, 1, 3, 1, 2, 3, 3, 1, 2, 3, 0, 5, 4, 1, 2, 5, 4, 5, 4, 2, 0, 2, 0, 2, 0, 0, 7, 3, 2, 4, 0, 0, 7, 1, 1, 2, 2, 4, 1, 2, 2, 2, 0, 2, 2, 3, 3, 1, 3, 2, 4, 3, 5, 2, 3, 3, 3, 1, 3, 2, 4, 3, 5, 2, 3, 3, 3, 1, 2, 3, 2, 3, 3, 8, 7, 6, 5, 5, 0, 2, 1, 3, 4, 0, 2, 0, 2, 3, 1, 2, 2, 3, 1, 2, 2, 3, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 2, 2, 3, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 1, 3, 4, 4, 4, 0, 4, 5, 5, 1, 3, 1, 2, 0, 1, 1, 2, 2, 3, 1, 2, 0, 1, 1, 2, 3, 1, 3, 3, 3, 1, 1, 2, 3, 4, 3, 4, 3, 1, 0, 2, 1, 2, 1, 0, 4, 4, 0, 1, 3, 1, 2, 3, 3, 3, 3, 1, 2, 3, 2, 3 }; /* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ static const short yydefact[] = { 4, 6, 0, 152, 2, 0, 291, 161, 0, 0, 0, 0, 289, 290, 292, 293, 299, 300, 301, 294, 0, 296, 0, 0, 0, 161, 298, 7, 17, 8, 11, 9, 0, 150, 12, 13, 14, 15, 10, 0, 0, 281, 0, 16, 0, 132, 127, 131, 0, 160, 0, 0, 250, 0, 0, 0, 240, 0, 0, 260, 0, 0, 372, 0, 0, 297, 0, 295, 298, 0, 0, 285, 0, 0, 0, 159, 0, 0, 0, 0, 0, 156, 153, 0, 0, 0, 0, 331, 327, 0, 302, 0, 325, 0, 282, 0, 283, 129, 0, 133, 162, 249, 0, 256, 248, 0, 0, 252, 239, 0, 246, 238, 0, 0, 242, 259, 263, 258, 0, 261, 371, 375, 370, 0, 373, 337, 0, 0, 0, 278, 310, 0, 286, 0, 287, 278, 0, 0, 26, 0, 0, 177, 3, 168, 170, 167, 165, 172, 175, 0, 0, 161, 158, 21, 155, 0, 0, 0, 154, 151, 328, 304, 335, 333, 332, 0, 88, 359, 265, 0, 0, 0, 303, 284, 0, 52, 251, 257, 0, 254, 0, 241, 247, 0, 244, 0, 264, 262, 376, 374, 338, 0, 0, 339, 342, 0, 312, 0, 355, 355, 0, 0, 311, 288, 0, 19, 0, 0, 27, 0, 24, 71, 0, 0, 161, 178, 0, 0, 205, 213, 0, 136, 0, 0, 206, 336, 334, 360, 0, 326, 0, 0, 305, 128, 163, 0, 253, 0, 243, 337, 355, 0, 0, 357, 276, 306, 346, 276, 347, 316, 271, 340, 0, 0, 321, 0, 52, 279, 269, 313, 270, 18, 0, 0, 25, 0, 0, 169, 157, 180, 179, 176, 33, 0, 0, 43, 0, 31, 0, 140, 139, 137, 135, 212, 0, 204, 207, 0, 96, 89, 101, 0, 141, 143, 0, 145, 200, 329, 329, 54, 1, 0, 56, 0, 0, 0, 55, 53, 0, 255, 245, 337, 0, 346, 0, 0, 0, 354, 0, 308, 358, 355, 344, 337, 355, 0, 307, 348, 345, 337, 355, 0, 0, 341, 343, 268, 320, 280, 356, 20, 329, 73, 74, 171, 72, 166, 29, 0, 0, 0, 0, 0, 0, 214, 0, 0, 361, 0, 0, 0, 145, 145, 145, 0, 146, 147, 201, 330, 324, 323, 63, 0, 61, 0, 62, 0, 64, 0, 164, 346, 317, 0, 314, 353, 349, 351, 0, 277, 0, 0, 309, 0, 0, 0, 272, 273, 267, 355, 0, 39, 40, 45, 125, 22, 35, 34, 32, 189, 187, 181, 191, 0, 211, 363, 209, 363, 90, 106, 103, 114, 112, 97, 105, 107, 109, 104, 111, 102, 202, 142, 144, 0, 149, 68, 59, 67, 66, 57, 77, 78, 58, 76, 60, 315, 319, 318, 352, 350, 355, 0, 0, 266, 37, 0, 47, 126, 0, 71, 75, 0, 0, 138, 0, 0, 210, 0, 216, 0, 208, 0, 0, 100, 71, 75, 148, 0, 274, 322, 2, 41, 0, 49, 44, 0, 0, 196, 194, 0, 0, 185, 186, 0, 366, 364, 0, 215, 0, 217, 227, 226, 221, 235, 115, 145, 113, 101, 0, 0, 275, 0, 38, 50, 0, 190, 188, 182, 197, 0, 0, 0, 223, 367, 0, 0, 363, 0, 71, 0, 229, 231, 228, 0, 220, 52, 0, 0, 108, 110, 42, 52, 48, 199, 198, 195, 0, 0, 52, 369, 368, 365, 362, 222, 0, 0, 234, 233, 232, 237, 236, 84, 85, 116, 118, 99, 51, 183, 184, 224, 230, 70, 69, 218, 86, 0, 0, 0, 235, 52, 0, 81, 0, 79, 225, 219, 87, 145, 52, 0, 0, 145, 82, 80, 91, 119, 117, 83, 0, 121, 92, 122, 120, 0, 0, 93, 145, 123, 0, 0, 124, 0, 0, 0 }; static const short yydefgoto[] = { 306, 68, 410, 609, 1, 2, 27, 28, 206, 29, 217, 80, 275, 276, 277, 400, 480, 452, 349, 402, 454, 512, 539, 559, 307, 371, 436, 571, 265, 344, 375, 441, 580, 581, 586, 595, 560, 561, 577, 167, 228, 357, 593, 596, 601, 289, 426, 471, 535, 290, 358, 427, 472, 473, 470, 469, 533, 573, 504, 574, 597, 600, 602, 606, 456, 30, 98, 46, 47, 31, 156, 220, 221, 282, 291, 292, 293, 294, 364, 32, 33, 81, 175, 308, 148, 211, 149, 150, 486, 458, 457, 487, 488, 295, 296, 34, 157, 223, 224, 278, 413, 466, 526, 576, 546, 575, 501, 528, 529, 532, 35, 57, 36, 53, 37, 60, 38, 332, 394, 395, 322, 200, 191, 69, 40, 70, 66, 41, 42, 89, 244, 129, 312, 382, 130, 336, 90, 91, 92, 368, 131, 164, 314, 193, 194, 315, 248, 316, 317, 256, 249, 168, 287, 467, 494, 43, 63 }; static const short yypact[] = { -32768,-32768, 274,-32768,-32768, 642,-32768, 35, 234, 329, 261, 343,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 121, 125, 566, 566, 121, 35, 452,-32768,-32768,-32768, -32768,-32768, 494,-32768,-32768,-32768,-32768,-32768,-32768, 76, 572,-32768, 121,-32768, 191,-32768,-32768, 205, 189,-32768, 213, 121,-32768, 226, 220, 121,-32768, 318, 242,-32768, 548, 310,-32768, 595, 202,-32768, 121,-32768,-32768, 45, 572,-32768, 121, 45, 296,-32768, 321, 295, 42, 124, 359,-32768, 124, 27, 32, 373, 245, 533,-32768, 80, -32768, 8,-32768, 193,-32768, 121,-32768,-32768, 403,-32768, -32768,-32768, 366,-32768,-32768, 350, 121,-32768,-32768, 389, -32768,-32768, 351, 121,-32768,-32768,-32768,-32768, 607,-32768, -32768,-32768,-32768, 646,-32768, 600, 397, 121, 421, 483, -32768, 56,-32768, 121,-32768, 483, 121, 121,-32768, 647, 428,-32768,-32768,-32768,-32768,-32768, 601,-32768,-32768, 417, 98, 476,-32768,-32768,-32768, 450, 432, 445,-32768,-32768, -32768,-32768,-32768,-32768, 533, 472,-32768,-32768,-32768, 245, 523, 245,-32768,-32768, 503,-32768,-32768,-32768, 121,-32768, 481,-32768,-32768, 121,-32768, 493,-32768,-32768,-32768,-32768, -32768, 128, 508, 7,-32768, 511,-32768, 121,-32768,-32768, 537, 121,-32768,-32768, 538,-32768, 391, 550,-32768, 573, -32768,-32768, 42, 36, 35, 36, 85, 485,-32768,-32768, 96,-32768, 162, 382,-32768,-32768,-32768,-32768, 319,-32768, 570, 575,-32768,-32768, 569, 586,-32768, 591,-32768, 356, -32768, 168, 121,-32768, 598, 211, 154, 598, 275,-32768, 633,-32768, 635, 80,-32768, 627,-32768,-32768,-32768,-32768, -32768,-32768, 121, 628,-32768, 446, 629,-32768,-32768,-32768, -32768,-32768,-32768, 121, 631, 636, 423,-32768, 222,-32768, -32768,-32768,-32768, 640, 225,-32768,-32768, 80,-32768,-32768, 637, 611, 625,-32768, 130, 639,-32768, 657, 657,-32768, -32768, 354,-32768, 257, 65, 426,-32768,-32768, 638,-32768, -32768, 356, 641, 184, 643, 644, 630,-32768, 634, 211, -32768,-32768,-32768, 600,-32768, 168, 211, 275,-32768, 600, -32768, 121, 80,-32768,-32768,-32768, 645,-32768, 569,-32768, 657,-32768,-32768,-32768,-32768,-32768,-32768, 169, 377, 649, 121, 656, 195,-32768, 396, 420,-32768, 650, 556, 652, -32768,-32768,-32768, 121,-32768,-32768,-32768,-32768,-32768,-32768, -32768, 562,-32768, 454,-32768, 62,-32768, 534,-32768, 378, -32768, 168, 211,-32768,-32768,-32768, 91,-32768, 648, 651, 211, 653, 654, 655, 658,-32768,-32768,-32768, 80,-32768, -32768,-32768, 75,-32768,-32768,-32768,-32768,-32768,-32768, 662, -32768, 144,-32768, 298,-32768, 372,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 625, -32768, 386,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768, 211,-32768,-32768,-32768,-32768,-32768, 121, 661,-32768, 689, 121,-32768,-32768, 663,-32768,-32768, 278, 121,-32768, 121, 121,-32768, 659,-32768, 484,-32768, 664, 665,-32768,-32768,-32768,-32768, 666,-32768,-32768, 670,-32768, 668, 669,-32768, 456, 361,-32768, 87, 671, 203, 674, 675, 121,-32768,-32768, 196,-32768, 121,-32768, 679, 679, -32768, 677,-32768,-32768,-32768, 676, 467, 388,-32768, 121, -32768,-32768, 682,-32768,-32768,-32768, 195, 286, 278, 278, -32768, 121, 660, 684, 208, 678,-32768, 672, 679,-32768, 679, 673,-32768,-32768, 199, 681,-32768,-32768,-32768,-32768, -32768, 87,-32768, 87, 680, 683,-32768,-32768,-32768,-32768, -32768,-32768, 121, 339,-32768,-32768,-32768,-32768,-32768, 569, -32768, 685,-32768,-32768, 569,-32768,-32768, 569,-32768,-32768, -32768,-32768,-32768, 686, 121, 688, 677,-32768, 687,-32768, 474,-32768,-32768,-32768,-32768,-32768,-32768, 121, 690, 691, 569,-32768,-32768,-32768,-32768,-32768, 319, 692,-32768,-32768, -32768, 693, 694,-32768,-32768, 625, 695, 690,-32768, 702, 704,-32768 }; static const short yypgoto[] = { -331, -2, -38,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768, 229,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768, -173, 167, 404,-32768,-32768, -293,-32768, -441,-32768,-32768, 131,-32768,-32768, 160,-32768,-32768,-32768, -32768,-32768, 101,-32768,-32768, 145, -328,-32768,-32768, 272, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768, 524,-32768, 383, -355, 390,-32768,-32768,-32768, -68, 5,-32768,-32768, 332,-32768, 535,-32768, -333,-32768, -32768, 69,-32768, 164, -294,-32768,-32768,-32768, 527, 530, -340,-32768,-32768,-32768,-32768,-32768,-32768, 254, 149, 178, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 306, 509, 622, 756, 736,-32768,-32768,-32768, 90, 2,-32768, -32768, 696,-32768, -178, -93,-32768, -57,-32768, 592, -60, -18,-32768, -105,-32768, 510, 574, -220, 316, -195,-32768, -32768, -230,-32768,-32768,-32768,-32768,-32768 }; #define YYLAST 769 static const short yytable[] = { 26, 366, 234, 255, 257, 429, 52, 56, 59, 62, 373, 152, 49, 245, 154, 415, 159, 484, 64, 411, 192, 93, 74, 335, 72, 72, 327, 425, 155, 161, 75, 428, 507, 158, 196, 4, 172, 88, 202, 4, 147, 142, 95, 141, 251, 4, 169, 142, 4, 102, 48, 107, 7, 109, 252, 114, 143, 356, 119, 4, 170, 124, 143, 319, 126, 231, 374, 128, 326, 163, 438, 128, 133, -75, 455, 140, 146, 151, 4, 4, 151, 165, 151, 338, 88, -203, 270, -134, 4, 162, 142, 88, 144, 327, 4, -173, 25, 279, 144, 215, 145, 460, 396, 179, 180, 143, 145, 127, 259, 87, 184, 185, 71, 71, 232, 85, 187, 439, 201, 440, -75, 189, -75, 421, 4, 128, 387, 4, 166, 128, 94, 4, 96, 4, 205, 207, 498, 209, 86, 500, 87, 144, 280, 318, 7, 216, 226, 390, 534, 145, 7, -174, 462, 381, 242, 524, 219, 4, 460, 327, 132, 65, 134, 283, 483, -213, 225, 88, 451, 88, 399, 4, -36, 246, 147, 147, 235, 147, 147, 506, 239, 237, 362, 541, 543, 173, 240, 4, 25, 243, 241, 242, 87, 363, 25, 254, 4, 521, 4, 128, 142, 97, 450, 443, 516, 461, 239, -213, 99, 462, 146, 146, 240, 146, 146, 274, 325, 242, 388, 268, 318, 313, -36, 203, 391, 4, 365, 103, 4, 4, 551, 242, 85, 553, 463, 50, 239, 4, 369, 243, 320, 100, 240, 522, 243, 562, 381, 242, 4, 605, 517, 407, 408, 475, 125, 171, -193, 523, 372, 101, 339, 361, 58, 323, 4, -71, 108, 352, 465, 324, 355, 346, 104, 105, -5, 3, 353, 4, 106, 485, 398, 4, 353, 142, 85, 5, 51, 542, 115, 4, 6, 142, 151, 379, 7, 366, 138, 8, 4, 9, 386, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 243, -71, -71, 20, 21, 22, 23, 24, 110, 288, 4, -145, 243, 463, -100, -100, 329, -100, 393, 54, -192, 4, 330, 407, 408, -100, -100, 25, -145, 569, 136, 407, 408, 61, 139, 4, 341, 274, 274, 409, 177, 182, 4, 4, 370, 120, 464, 465, 4, 137, 432, -65, -65, 111, 112, 564, -100, -100, 438, 113, -145, 6, 567, -100, -100, -100, 160, 401, 243, -46, 55, -145, -145, 243, 12, 13, 14, 15, 16, 17, 18, 19, 190, 342, 570, 438, 412, 463, -215, 453, -65, 178, 183, 153, -215, -65, -65, 311, -65, -65, -65, -65, 590, 240, 174, 439, -215, 514, 176, 87, 414, -215, -215, 350, -46, -46, 376, 285, -215, 311, 468, 465, 360, -65, -65, 240, 261, 262, 474, 222, -215, 181, 439, -215, 537, -215, 393, -215, 195, 479, 481, -215, -161, 341, -215, -215, 409, 489, 197, 490, 491, 341, 493, 341, 499, -161, 48, -215, -30, 214, -30, -215, -65, 351, 341, -215, 210, -65, -215, -215, -65, -65, -65, -65, -65, 272, 4, 4, 520, 76, 48, 219, 300, 525, 82, 218, -23, 273, -161, 77, 342, 343, 222, 78, 495, 79, 538, 83, 342, 437, 342, 513, 233, 409, 409, 409, 409, 227, 547, 549, 587, 342, 536, 230, 555, 4, 588, 78, 558, 79, -28, 421, -28, 236, 198, 496, 199, 435, 6, 497, 84, 299, 300, 435, 267, 238, 269, 271, 116, 568, 4, 12, 13, 14, 15, 16, 17, 18, 19, 190, 250, 417, 418, 253, 300, 16, 17, 18, 4, 299, 300, 579, 419, 420, 4, -337, 299, 300, 404, 406, 433, 67, 258, 260, 579, 301, 544, 545, 302, 303, 304, 305, 442, 117, 118, 121, 87, 4, 16, 17, 18, 263, 4, 421, 16, 17, 18, 186, 433, 4, 422, 423, 424, 301, 434, 6, 302, 303, 304, 305, 301, 264, 297, 302, 303, 304, 305, 298, 12, 13, 14, 15, 16, 17, 18, 19, 190, 4, 309, 389, 122, 123, 44, 310, 45, 392, 188, 208, 4, 4, 6, 321, 212, -130, 213, 359, 405, 360, 4, 492, 548, 4, 4, 12, 13, 14, 15, 16, 17, 18, 19, 333, 554, 557, 4, 4, 556, 331, 556, 337, 340, 345, 347, 348, 354, -94, 361, -95, 385, 367, 378, 478, 527, 380, 403, 383, 384, 87, 416, 421, 444, 610, 397, 611, 449, 446, 448, 608, 377, 445, 599, 482, 447, 459, 509, 502, 503, 591, 508, 477, 510, 531, 511, 515, -98, 518, 519, 540, 550, 563, 552, 572, 565, 582, 585, 566, 584, 592, 578, 594, 598, 603, 505, 281, 431, 604, 266, 607, 589, 286, 430, 284, 530, 583, 476, 328, 204, 39, 73, 0, 229, 334, 0, 0, 247, 0, 0, 0, 135 }; static const short yycheck[] = { 2, 295, 175, 198, 199, 360, 8, 9, 10, 11, 303, 79, 7, 191, 82, 355, 84, 458, 20, 352, 125, 39, 24, 253, 22, 23, 246, 358, 1, 86, 25, 359, 473, 1, 127, 3, 93, 39, 131, 3, 78, 5, 40, 1, 37, 3, 38, 5, 3, 51, 15, 53, 20, 55, 47, 57, 20, 287, 60, 3, 52, 63, 20, 241, 66, 170, 1, 69, 246, 87, 8, 73, 70, 8, 402, 77, 78, 79, 3, 3, 82, 1, 84, 256, 86, 58, 1, 60, 3, 87, 5, 93, 56, 313, 3, 53, 64, 1, 56, 1, 64, 14, 332, 105, 106, 20, 64, 62, 201, 64, 112, 113, 22, 23, 171, 39, 118, 55, 62, 57, 55, 123, 57, 48, 3, 127, 321, 3, 48, 131, 40, 3, 42, 3, 136, 137, 467, 139, 62, 467, 64, 56, 46, 52, 20, 47, 164, 325, 503, 64, 20, 53, 65, 62, 63, 495, 60, 3, 14, 379, 70, 36, 72, 1, 457, 3, 164, 169, 398, 171, 1, 3, 3, 191, 212, 213, 178, 215, 216, 472, 52, 183, 52, 516, 517, 95, 58, 3, 64, 191, 62, 63, 64, 63, 64, 197, 3, 1, 3, 201, 5, 10, 397, 381, 1, 61, 52, 45, 3, 65, 212, 213, 58, 215, 216, 217, 62, 63, 323, 214, 52, 239, 53, 133, 329, 3, 294, 1, 3, 3, 22, 63, 39, 526, 26, 1, 52, 3, 298, 241, 242, 52, 58, 47, 246, 46, 62, 63, 3, 604, 47, 56, 57, 448, 52, 62, 53, 61, 1, 46, 262, 62, 1, 52, 3, 8, 46, 45, 60, 58, 45, 273, 46, 47, 0, 1, 278, 3, 52, 1, 340, 3, 284, 5, 39, 11, 52, 1, 46, 3, 16, 5, 294, 311, 20, 589, 1, 23, 3, 25, 318, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 313, 55, 56, 40, 41, 42, 43, 44, 1, 1, 3, 3, 325, 26, 6, 7, 52, 9, 331, 1, 53, 3, 58, 56, 57, 17, 18, 64, 20, 1, 45, 56, 57, 1, 50, 3, 8, 350, 351, 352, 1, 1, 3, 3, 1, 46, 59, 60, 3, 39, 363, 8, 9, 46, 47, 539, 48, 49, 8, 52, 52, 16, 546, 55, 56, 57, 4, 1, 381, 3, 52, 63, 64, 386, 29, 30, 31, 32, 33, 34, 35, 36, 37, 55, 56, 8, 1, 26, 3, 402, 47, 52, 52, 45, 9, 52, 53, 52, 55, 56, 57, 58, 586, 58, 12, 55, 21, 57, 53, 64, 1, 26, 3, 1, 48, 49, 1, 46, 9, 52, 59, 60, 47, 8, 9, 58, 46, 47, 53, 58, 21, 53, 55, 48, 57, 26, 449, 52, 52, 452, 453, 56, 1, 8, 59, 60, 459, 460, 38, 462, 463, 8, 465, 8, 467, 14, 15, 48, 46, 53, 48, 52, 47, 51, 8, 56, 49, 52, 59, 60, 55, 56, 57, 58, 59, 1, 3, 3, 491, 38, 15, 60, 9, 496, 1, 46, 45, 13, 47, 48, 55, 56, 58, 52, 21, 54, 509, 14, 55, 56, 55, 56, 10, 516, 517, 518, 519, 46, 521, 522, 47, 55, 56, 1, 527, 3, 53, 52, 531, 54, 46, 48, 48, 53, 52, 52, 54, 371, 16, 56, 47, 8, 9, 377, 213, 53, 215, 216, 1, 552, 3, 29, 30, 31, 32, 33, 34, 35, 36, 37, 53, 6, 7, 53, 9, 33, 34, 35, 3, 8, 9, 574, 17, 18, 3, 53, 8, 9, 350, 351, 47, 16, 46, 46, 587, 52, 518, 519, 55, 56, 57, 58, 59, 46, 47, 1, 64, 3, 33, 34, 35, 52, 3, 48, 33, 34, 35, 1, 47, 3, 55, 56, 57, 52, 53, 16, 55, 56, 57, 58, 52, 49, 53, 55, 56, 57, 58, 53, 29, 30, 31, 32, 33, 34, 35, 36, 37, 3, 53, 324, 46, 47, 1, 53, 3, 330, 1, 1, 3, 3, 16, 54, 52, 12, 54, 45, 1, 47, 3, 1, 1, 3, 3, 29, 30, 31, 32, 33, 34, 35, 36, 37, 1, 1, 3, 3, 528, 45, 530, 53, 53, 53, 52, 48, 45, 49, 62, 49, 59, 33, 53, 3, 14, 53, 46, 53, 53, 64, 49, 48, 53, 0, 58, 0, 47, 53, 52, 607, 305, 59, 19, 49, 59, 52, 45, 52, 52, 587, 53, 59, 53, 45, 54, 53, 49, 52, 52, 46, 45, 49, 53, 47, 53, 46, 48, 53, 577, 48, 53, 49, 596, 49, 471, 220, 362, 52, 212, 53, 585, 223, 361, 222, 499, 576, 449, 247, 135, 2, 23, -1, 169, 252, -1, -1, 191, -1, -1, -1, 73 }; /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ #line 3 "/usr/local/share/bison/bison.simple" /* Skeleton output parser for bison, Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* As a special exception, when this file is copied by Bison into a Bison output file, you may use that output file without restriction. This special exception was added by the Free Software Foundation in version 1.24 of Bison. */ /* This is the parser code that is written into each bison parser when the %semantic_parser declaration is not specified in the grammar. It was written by Richard Stallman by simplifying the hairy parser used when %semantic_parser is specified. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ #if ! defined (yyoverflow) || defined (YYERROR_VERBOSE) /* The parser invokes alloca or malloc; define the necessary symbols. */ # if YYSTACK_USE_ALLOCA # define YYSTACK_ALLOC alloca # else # ifndef YYSTACK_USE_ALLOCA # if defined (alloca) || defined (_ALLOCA_H) # define YYSTACK_ALLOC alloca # else # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) # else # if defined (__STDC__) || defined (__cplusplus) # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # endif # define YYSTACK_ALLOC malloc # define YYSTACK_FREE free # endif #endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */ #if (! defined (yyoverflow) \ && (! defined (__cplusplus) \ || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { short yyss; YYSTYPE yyvs; # if YYLSP_NEEDED YYLTYPE yyls; # endif }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # if YYLSP_NEEDED # define YYSTACK_BYTES(N) \ ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ + 2 * YYSTACK_GAP_MAX) # else # define YYSTACK_BYTES(N) \ ((N) * (sizeof (short) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAX) # endif /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY # if 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ register YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (0) # endif # endif /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack, Stack, yysize); \ Stack = &yyptr->Stack; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (0) #endif #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) # define YYSIZE_T __SIZE_TYPE__ #endif #if ! defined (YYSIZE_T) && defined (size_t) # define YYSIZE_T size_t #endif #if ! defined (YYSIZE_T) # if defined (__STDC__) || defined (__cplusplus) # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # endif #endif #if ! defined (YYSIZE_T) # define YYSIZE_T unsigned int #endif #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY -2 #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrlab1 /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */ #define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yychar1 = YYTRANSLATE (yychar); \ YYPOPSTACK; \ goto yybackup; \ } \ else \ { \ yyerror ("syntax error: cannot back up"); \ YYERROR; \ } \ while (0) #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Compute the default location (before the actions are run). When YYLLOC_DEFAULT is run, CURRENT is set the location of the first token. By default, to implement support for ranges, extend its range to the last symbol. */ #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ Current.last_line = Rhs[N].last_line; \ Current.last_column = Rhs[N].last_column; #endif /* YYLEX -- calling `yylex' with the right arguments. */ #if YYPURE # if YYLSP_NEEDED # ifdef YYLEX_PARAM # define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM) # else # define YYLEX yylex (&yylval, &yylloc) # endif # else /* !YYLSP_NEEDED */ # ifdef YYLEX_PARAM # define YYLEX yylex (&yylval, YYLEX_PARAM) # else # define YYLEX yylex (&yylval) # endif # endif /* !YYLSP_NEEDED */ #else /* !YYPURE */ # define YYLEX yylex () #endif /* !YYPURE */ /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (0) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) #endif /* !YYDEBUG */ /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #if YYMAXDEPTH == 0 # undef YYMAXDEPTH #endif #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif #ifdef YYERROR_VERBOSE # ifndef yystrlen # if defined (__GLIBC__) && defined (_STRING_H) # define yystrlen strlen # else /* Return the length of YYSTR. */ static YYSIZE_T # if defined (__STDC__) || defined (__cplusplus) yystrlen (const char *yystr) # else yystrlen (yystr) const char *yystr; # endif { register const char *yys = yystr; while (*yys++ != '\0') continue; return yys - yystr - 1; } # endif # endif # ifndef yystpcpy # if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE) # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ static char * # if defined (__STDC__) || defined (__cplusplus) yystpcpy (char *yydest, const char *yysrc) # else yystpcpy (yydest, yysrc) char *yydest; const char *yysrc; # endif { register char *yyd = yydest; register const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1; } # endif # endif #endif #line 315 "/usr/local/share/bison/bison.simple" /* The user can define YYPARSE_PARAM as the name of an argument to be passed into yyparse. The argument should have type void *. It should actually point to an object. Grammar actions can access the variable by casting it to the proper pointer type. */ #ifdef YYPARSE_PARAM # if defined (__STDC__) || defined (__cplusplus) # define YYPARSE_PARAM_ARG void *YYPARSE_PARAM # define YYPARSE_PARAM_DECL # else # define YYPARSE_PARAM_ARG YYPARSE_PARAM # define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; # endif #else /* !YYPARSE_PARAM */ # define YYPARSE_PARAM_ARG # define YYPARSE_PARAM_DECL #endif /* !YYPARSE_PARAM */ /* Prevent warning if -Wstrict-prototypes. */ #ifdef __GNUC__ # ifdef YYPARSE_PARAM int yyparse (void *); # else int yyparse (void); # endif #endif /* YY_DECL_VARIABLES -- depending whether we use a pure parser, variables are global, or local to YYPARSE. */ #define YY_DECL_NON_LSP_VARIABLES \ /* The lookahead symbol. */ \ int yychar; \ \ /* The semantic value of the lookahead symbol. */ \ YYSTYPE yylval; \ \ /* Number of parse errors so far. */ \ int yynerrs; #if YYLSP_NEEDED # define YY_DECL_VARIABLES \ YY_DECL_NON_LSP_VARIABLES \ \ /* Location data for the lookahead symbol. */ \ YYLTYPE yylloc; #else # define YY_DECL_VARIABLES \ YY_DECL_NON_LSP_VARIABLES #endif /* If nonreentrant, generate the variables here. */ #if !YYPURE YY_DECL_VARIABLES #endif /* !YYPURE */ int yyparse (YYPARSE_PARAM_ARG) YYPARSE_PARAM_DECL { /* If reentrant, generate the variables here. */ #if YYPURE YY_DECL_VARIABLES #endif /* !YYPURE */ register int yystate; register int yyn; int yyresult; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* Lookahead token as an internal (translated) token number. */ int yychar1 = 0; /* Three stacks and their tools: `yyss': related to states, `yyvs': related to semantic values, `yyls': related to locations. Refer to the stacks thru separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ short yyssa[YYINITDEPTH]; short *yyss = yyssa; register short *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs = yyvsa; register YYSTYPE *yyvsp; #if YYLSP_NEEDED /* The location stack. */ YYLTYPE yylsa[YYINITDEPTH]; YYLTYPE *yyls = yylsa; YYLTYPE *yylsp; #endif #if YYLSP_NEEDED # define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) #else # define YYPOPSTACK (yyvsp--, yyssp--) #endif YYSIZE_T yystacksize = YYINITDEPTH; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; #if YYLSP_NEEDED YYLTYPE yyloc; #endif /* When reducing, the number of symbols on the RHS of the reduced rule. */ int yylen; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss; yyvsp = yyvs; #if YYLSP_NEEDED yylsp = yyls; #endif goto yysetstate; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. so pushing a state here evens the stacks. */ yyssp++; yysetstate: *yyssp = yystate; if (yyssp >= yyss + yystacksize - 1) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; short *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. */ # if YYLSP_NEEDED YYLTYPE *yyls1 = yyls; /* This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow ("parser stack overflow", &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yyls1, yysize * sizeof (*yylsp), &yystacksize); yyls = yyls1; # else yyoverflow ("parser stack overflow", &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yystacksize); # endif yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyoverflowlab; # else /* Extend the stack our own way. */ if (yystacksize >= YYMAXDEPTH) goto yyoverflowlab; yystacksize *= 2; if (yystacksize > YYMAXDEPTH) yystacksize = YYMAXDEPTH; { short *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyoverflowlab; YYSTACK_RELOCATE (yyss); YYSTACK_RELOCATE (yyvs); # if YYLSP_NEEDED YYSTACK_RELOCATE (yyls); # endif # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; #if YYLSP_NEEDED yylsp = yyls + yysize - 1; #endif YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyssp >= yyss + yystacksize - 1) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. */ /* Read a lookahead token if we need one and don't already have one. */ /* yyresume: */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yyn == YYFLAG) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* yychar is either YYEMPTY or YYEOF or a valid token in external form. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } /* Convert token to internal form (in yychar1) for indexing tables with */ if (yychar <= 0) /* This means end of input. */ { yychar1 = 0; yychar = YYEOF; /* Don't call YYLEX any more */ YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yychar1 = YYTRANSLATE (yychar); #if YYDEBUG /* We have to keep this `#if YYDEBUG', since we use variables which are defined only if `YYDEBUG' is set. */ if (yydebug) { YYFPRINTF (stderr, "Next token is %d (%s", yychar, yytname[yychar1]); /* Give the individual parser a way to print the precise meaning of a token, for further debugging info. */ # ifdef YYPRINT YYPRINT (stderr, yychar, yylval); # endif YYFPRINTF (stderr, ")\n"); } #endif } yyn += yychar1; if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1) goto yydefault; yyn = yytable[yyn]; /* yyn is what to do for this token type in this state. Negative => reduce, -yyn is rule number. Positive => shift, yyn is new state. New state is final state => don't bother to shift, just return success. 0, or most negative number => error. */ if (yyn < 0) { if (yyn == YYFLAG) goto yyerrlab; yyn = -yyn; goto yyreduce; } else if (yyn == 0) goto yyerrlab; if (yyn == YYFINAL) YYACCEPT; /* Shift the lookahead token. */ YYDPRINTF ((stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1])); /* Discard the token being shifted unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; *++yyvsp = yylval; #if YYLSP_NEEDED *++yylsp = yylloc; #endif /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; yystate = yyn; goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- Do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: `$$ = $1'. Otherwise, the following line sets YYVAL to the semantic value of the lookahead token. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; #if YYLSP_NEEDED /* Similarly for the default location. Let the user run additional commands if for instance locations are ranges. */ yyloc = yylsp[1-yylen]; YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen); #endif #if YYDEBUG /* We have to keep this `#if YYDEBUG', since we use variables which are defined only if `YYDEBUG' is set. */ if (yydebug) { int yyi; YYFPRINTF (stderr, "Reducing via rule %d (line %d), ", yyn, yyrline[yyn]); /* Print the symbols being reduced, and their result. */ for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++) YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]); YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]); } #endif switch (yyn) { case 1: #line 287 "kimwy.y" { yyval.yt_INT = Int( yyvsp[0].yt_integer ); pf_setfileline( yyval.yt_INT ); ; break;} case 2: #line 292 "kimwy.y" { yyval.yt_ID = Id( Str( yyvsp[0].yt_casestring )); pf_setfileline( yyval.yt_ID ); ; break;} case 3: #line 297 "kimwy.y" { yyval.yt_INT = Int( yyvsp[0].yt_integer ); pf_setfileline( yyval.yt_INT ); ; break;} case 4: #line 308 "kimwy.y" { /* initialize variables and scanner state */ pl_phylum = 0; pl_withvariables = Nilwithexpressions(); do_NORMAL(); ; break;} case 8: #line 323 "kimwy.y" { Thephylumdeclarations = mergephylumdeclarations( yyvsp[0].yt_phylumdeclaration, Thephylumdeclarations ); ; break;} case 9: #line 325 "kimwy.y" { Therwdeclarations = Consrwdeclarations( yyvsp[0].yt_rwdeclaration, Therwdeclarations ); ; break;} case 10: #line 331 "kimwy.y" { Thefndeclarations = Consfndeclarations( yyvsp[0].yt_fndeclaration, Thefndeclarations ); ; break;} case 11: #line 333 "kimwy.y" { ; break;} case 12: #line 335 "kimwy.y" { Theunparsedeclarations = Consunparsedeclarations( yyvsp[0].yt_unparsedeclaration, Theunparsedeclarations ); ; break;} case 13: #line 337 "kimwy.y" { ; break;} case 14: #line 339 "kimwy.y" { ; break;} case 15: #line 341 "kimwy.y" { ; break;} case 16: #line 343 "kimwy.y" { Thelanguages = merge_languagenames( yyvsp[0].yt_languagenames, Thelanguages ); ; break;} case 17: #line 345 "kimwy.y" { Thebaseclasses = Consbaseclass_declarations( yyvsp[0].yt_baseclass_decl, Thebaseclasses ); ; break;} case 18: #line 350 "kimwy.y" { yyval.yt_baseclass_decl=BaseClassDecl( yyvsp[-3].yt_ID, yyvsp[-1].yt_baseclass_list ); ; break;} case 19: #line 355 "kimwy.y" { yyval.yt_baseclass_list=Consbaseclass_list(yyvsp[0].yt_ID,Nilbaseclass_list()); ; break;} case 20: #line 357 "kimwy.y" { yyval.yt_baseclass_list=Consbaseclass_list(yyvsp[0].yt_ID,yyvsp[-2].yt_baseclass_list); ; break;} case 21: #line 362 "kimwy.y" { pl_phylum = yyvsp[-2].yt_ID; ; break;} case 22: #line 364 "kimwy.y" { yyval.yt_phylumdeclaration = PhylumDeclaration( yyvsp[-6].yt_ID, yyvsp[-5].yt_storageoption, yyvsp[-2].yt_productionblock, yyvsp[-1].yt_Ccode_option ); v_extendoccur( pl_phylum, ITUserPhylum( yyval.yt_phylumdeclaration ) ); ; break;} case 23: #line 369 "kimwy.y" { yyval.yt_storageoption = NoStorageOption(); ; break;} case 24: #line 371 "kimwy.y" { yyval.yt_storageoption = PositiveStorageOption( yyvsp[-1].yt_ID ); v_extendoccur( yyvsp[-1].yt_ID, ITStorageClass() ); ; break;} case 25: #line 373 "kimwy.y" { yyval.yt_storageoption = NegativeStorageOption( yyvsp[-1].yt_ID ); v_extendoccur( yyvsp[-1].yt_ID, ITStorageClass() ); ; break;} case 26: #line 375 "kimwy.y" { yyval.yt_storageoption = NoStorageOption(); ; break;} case 27: #line 377 "kimwy.y" { yyval.yt_storageoption = NoStorageOption(); ; break;} case 28: #line 382 "kimwy.y" { yyval.yt_productionblock = Emptyproductionblock(); ; break;} case 29: #line 384 "kimwy.y" { yyval.yt_productionblock = ListAlternatives( makeListAlternatives( pl_phylum, yyvsp[0].yt_ID ), yyvsp[0].yt_ID ); Theargsnumbers = insert_in_argsnumbers(0, Theargsnumbers); Theargsnumbers = insert_in_argsnumbers(2, Theargsnumbers); ; break;} case 30: #line 389 "kimwy.y" { yyval.yt_productionblock = NonlistAlternatives( yyvsp[0].yt_alternatives ); ; break;} case 31: #line 394 "kimwy.y" { yyval.yt_alternatives = Consalternatives( yyvsp[0].yt_alternative, Nilalternatives() ); ; break;} case 32: #line 396 "kimwy.y" { yyerrok; yyval.yt_alternatives = Consalternatives( yyvsp[0].yt_alternative, yyvsp[-2].yt_alternatives ); ; break;} case 33: #line 398 "kimwy.y" { yyval.yt_alternatives = Nilalternatives(); ; break;} case 34: #line 400 "kimwy.y" { yyval.yt_alternatives = yyvsp[-2].yt_alternatives; ; break;} case 35: #line 402 "kimwy.y" { yyerrok; yyval.yt_alternatives=Consalternatives( yyvsp[0].yt_alternative, yyvsp[-2].yt_alternatives ); ; break;} case 36: #line 406 "kimwy.y" { pg_no_of_arguments = 0; ; break;} case 37: #line 406 "kimwy.y" { Theargsnumbers = insert_in_argsnumbers(pg_no_of_arguments, Theargsnumbers); ; break;} case 38: #line 407 "kimwy.y" { yyval.yt_alternative = Alternative( yyvsp[-5].yt_ID, yyvsp[-2].yt_arguments ); v_extendoccur( yyvsp[-5].yt_ID, ITUserOperator( yyval.yt_alternative, pl_phylum ) ); ; break;} case 39: #line 410 "kimwy.y" { yyval.yt_alternative = Alternative( yyvsp[-2].yt_ID, Nilarguments()); ; break;} case 40: #line 415 "kimwy.y" { yyval.yt_arguments = Nilarguments(); ; break;} case 41: #line 417 "kimwy.y" { yyval.yt_arguments = Consarguments( yyvsp[0].yt_ID, yyvsp[-1].yt_arguments ); pg_no_of_arguments++; ; break;} case 42: #line 419 "kimwy.y" { yyvsp[0].yt_ID->named_subphylum = yyvsp[-2].yt_casestring; yyval.yt_arguments = Consarguments( yyvsp[0].yt_ID, yyvsp[-3].yt_arguments ); pg_no_of_arguments++; ; break;} case 43: #line 425 "kimwy.y" { yyval.yt_Ccode_option = CcodeOption( Nilattributes(), NilCtexts() ); ; break;} case 44: #line 427 "kimwy.y" { yyval.yt_Ccode_option = CcodeOption( yyvsp[-2].yt_attributes, yyvsp[-1].yt_Ctexts ); ; break;} case 45: #line 429 "kimwy.y" { yyval.yt_Ccode_option = CcodeOption( Nilattributes(), NilCtexts() ); ; break;} case 46: #line 434 "kimwy.y" { yyval.yt_attributes = Nilattributes(); ; break;} case 47: #line 436 "kimwy.y" { yyval.yt_attributes = Consattributes( yyvsp[0].yt_attribute, yyvsp[-1].yt_attributes ); ; break;} case 48: #line 441 "kimwy.y" { yyval.yt_attribute = Attribute( yyvsp[-3].yt_ID, yyvsp[-2].yt_ID, yyvsp[-1].yt_attribute_initialisation_option ); ; break;} case 49: #line 446 "kimwy.y" { yyval.yt_attribute_initialisation_option = Noattribute_initialisation(); ; break;} case 50: #line 448 "kimwy.y" { do_CEXPR(); ; break;} case 51: #line 450 "kimwy.y" { do_NORMAL(); yyval.yt_attribute_initialisation_option = Yesattribute_initialisation( yyvsp[0].yt_Cexpression ); ; break;} case 52: #line 460 "kimwy.y" { yyval.yt_Cexpression = NilCexpression(); pf_setfileline( yyval.yt_Cexpression ); ; break;} case 53: #line 462 "kimwy.y" { yyval.yt_Cexpression = ConsCexpression( yyvsp[0].yt_Cexpression_elem, yyvsp[-1].yt_Cexpression ); yyval.yt_Cexpression->file = yyvsp[-1].yt_Cexpression->file; yyval.yt_Cexpression->line = yyvsp[-1].yt_Cexpression->line; ; break;} case 54: #line 467 "kimwy.y" { yyval.yt_Cexpression_elem = CExpressionPart( yyvsp[0].yt_casestring ); ; break;} case 55: #line 469 "kimwy.y" { yyval.yt_Cexpression_elem = CExpressionDollarvar( yyvsp[0].yt_INT ); ; break;} case 56: #line 471 "kimwy.y" { yyval.yt_Cexpression_elem = CExpressionNl(); ; break;} case 57: #line 473 "kimwy.y" { yyval.yt_Cexpression_elem = CExpressionDQ( yyvsp[-1].yt_CexpressionDQ ); ; break;} case 58: #line 475 "kimwy.y" { yyval.yt_Cexpression_elem = CExpressionSQ( yyvsp[-1].yt_CexpressionSQ ); ; break;} case 59: #line 477 "kimwy.y" { yyval.yt_Cexpression_elem = CExpressionPack( yyvsp[-1].yt_Cexpression ); ; break;} case 60: #line 479 "kimwy.y" { yyval.yt_Cexpression_elem = CExpressionArray( yyvsp[-1].yt_Cexpression ); ; break;} case 61: #line 481 "kimwy.y" { yyval.yt_Cexpression_elem = CExpressionPart(mkcasestring("")); ; break;} case 62: #line 483 "kimwy.y" { yyval.yt_Cexpression_elem = CExpressionPart(mkcasestring("")); ; break;} case 63: #line 485 "kimwy.y" { yyval.yt_Cexpression_elem = CExpressionPart(mkcasestring("")); ; break;} case 64: #line 487 "kimwy.y" { yyval.yt_Cexpression_elem = CExpressionArray( ConsCexpression( CExpressionPart(mkcasestring("")), NilCexpression())); ; break;} case 65: #line 492 "kimwy.y" { yyval.yt_Cexpression = NilCexpression(); pf_setfileline( yyval.yt_Cexpression ); ; break;} case 66: #line 494 "kimwy.y" { yyval.yt_Cexpression = ConsCexpression( yyvsp[0].yt_Cexpression_elem, yyvsp[-1].yt_Cexpression ); yyval.yt_Cexpression->file = yyvsp[-1].yt_Cexpression->file; yyval.yt_Cexpression->line = yyvsp[-1].yt_Cexpression->line; ; break;} case 67: #line 499 "kimwy.y" { yyval.yt_Cexpression_elem = yyvsp[0].yt_Cexpression_elem; ; break;} case 68: #line 501 "kimwy.y" { yyval.yt_Cexpression_elem = CExpressionPart( mkcasestring(",") ); ; break;} case 71: #line 511 "kimwy.y" { yyval.yt_CexpressionDQ = NilCexpressionDQ(); ; break;} case 72: #line 513 "kimwy.y" { yyval.yt_CexpressionDQ = ConsCexpressionDQ( yyvsp[0].yt_CexpressionDQ_elem, yyvsp[-1].yt_CexpressionDQ ); ; break;} case 73: #line 518 "kimwy.y" { yyval.yt_CexpressionDQ_elem = CExpressionDQPart( yyvsp[0].yt_casestring ); ; break;} case 74: #line 520 "kimwy.y" { yyval.yt_CexpressionDQ_elem = CExpressionDQNl(); ; break;} case 75: #line 525 "kimwy.y" { yyval.yt_CexpressionSQ = NilCexpressionSQ(); ; break;} case 76: #line 527 "kimwy.y" { yyval.yt_CexpressionSQ = ConsCexpressionSQ( yyvsp[0].yt_CexpressionSQ_elem, yyvsp[-1].yt_CexpressionSQ ); ; break;} case 77: #line 532 "kimwy.y" { yyval.yt_CexpressionSQ_elem = CExpressionSQPart( yyvsp[0].yt_casestring ); ; break;} case 78: #line 534 "kimwy.y" { yyval.yt_CexpressionSQ_elem = CExpressionSQNl(); ; break;} case 79: #line 539 "kimwy.y" { yyval.yt_idCexpressions = ConsidCexpressions( yyvsp[0].yt_idCexpression, NilidCexpressions() ); ; break;} case 80: #line 541 "kimwy.y" { yyval.yt_idCexpressions = ConsidCexpressions( yyvsp[0].yt_idCexpression, yyvsp[-2].yt_idCexpressions ); ; break;} case 81: #line 546 "kimwy.y" { do_CEXPR(); ; break;} case 82: #line 548 "kimwy.y" { do_NORMAL(); ; break;} case 83: #line 549 "kimwy.y" { yyval.yt_idCexpression = IdCexpression( yyvsp[-3].yt_ID, yyvsp[-1].yt_Cexpression ); ; break;} case 84: #line 554 "kimwy.y" { yyval.yt_withexpression = WECexpression( yyvsp[0].yt_Cexpression ); pf_setstacktopfileline( yyval.yt_withexpression ); ; break;} case 85: #line 559 "kimwy.y" { yyval.yt_withexpressions = Conswithexpressions( yyvsp[0].yt_withexpression, Nilwithexpressions() ); ; break;} case 86: #line 560 "kimwy.y" { pf_pushfileline(); ; break;} case 87: #line 561 "kimwy.y" { yyval.yt_withexpressions = Conswithexpressions( yyvsp[0].yt_withexpression, yyvsp[-3].yt_withexpressions ); pf_popfileline(); ; break;} case 88: #line 572 "kimwy.y" { do_MainC(); pf_pushfileline(); pf_pushwithvariable(); pf_resetwithvariable(); ; break;} case 89: #line 574 "kimwy.y" { do_NORMAL(); ; break;} case 90: #line 576 "kimwy.y" { yyerrok; yyval.yt_Ctext = yyvsp[-2].yt_Ctext; pf_setstacktopfileline( yyval.yt_Ctext ); pf_popfileline(); pf_popwithvariable(); ; break;} case 91: #line 581 "kimwy.y" { do_MainC(); pf_pushfileline(); pf_pushwithvariable(); pf_resetwithvariable(); ; break;} case 92: #line 583 "kimwy.y" { do_C(); ; break;} case 93: #line 585 "kimwy.y" { yyerrok; yyval.yt_Ctext = yyvsp[-2].yt_Ctext; pf_setstacktopfileline( yyval.yt_Ctext ); pf_popfileline(); pf_popwithvariable(); ; break;} case 94: #line 590 "kimwy.y" { yyval.yt_Ctext = yyvsp[0].yt_Ctext; pf_setstacktopfileline( yyval.yt_Ctext ); ; break;} case 95: #line 592 "kimwy.y" { Ctext_elem tmp = CTextWithexpression( pf_topwithvariable(), yyvsp[0].yt_withcases, NotInForeachContext() ); pf_setstacktopfileline( tmp ); yyval.yt_Ctext = ConsCtext( tmp, NilCtext() ); pf_setstacktopfileline( yyval.yt_Ctext ); if (! non_default_outmostpattern ) v_report(NonFatal( NoFileLine(), Problem1S( "can not infer type from 'default' pattern(s)" ))); non_default_outmostpattern = 0; ; break;} case 96: #line 599 "kimwy.y" { yyval.yt_Ctext = NilCtext(); ; break;} case 97: #line 604 "kimwy.y" { do_C(); pf_pushfileline(); pf_push_no_operators(); ; break;} case 98: #line 606 "kimwy.y" { do_NORMAL(); ; break;} case 99: #line 608 "kimwy.y" { yyval.yt_Ctext = yyvsp[-2].yt_Ctext; pf_setstacktopfileline( yyval.yt_Ctext ); pf_popfileline(); pf_pop_no_operators(); ; break;} case 100: #line 613 "kimwy.y" { yyval.yt_Ctext = NilCtext(); pf_setfileline( yyval.yt_Ctext ); ; break;} case 101: #line 615 "kimwy.y" { pf_pushfileline(); ; break;} case 102: #line 617 "kimwy.y" { yyval.yt_Ctext = ConsCtext( yyvsp[0].yt_Ctext_elem, yyvsp[-2].yt_Ctext ); pf_setstacktopfileline( yyvsp[0].yt_Ctext_elem ); pf_popfileline(); yyval.yt_Ctext->file = yyvsp[-2].yt_Ctext->file; yyval.yt_Ctext->line = yyvsp[-2].yt_Ctext->line; ; break;} case 103: #line 622 "kimwy.y" { yyval.yt_Ctext_elem = CTextLine( yyvsp[0].yt_casestring ); ; break;} case 104: #line 624 "kimwy.y" { yyval.yt_Ctext_elem = CTextDollarVar( yyvsp[0].yt_INT ); ; break;} case 105: #line 626 "kimwy.y" { yyval.yt_Ctext_elem = CTextNl( mkinteger(1) ); ; break;} case 106: #line 628 "kimwy.y" { yyval.yt_Ctext_elem = CTextNl( yyvsp[0].yt_integer ); ; break;} case 107: #line 630 "kimwy.y" { do_CEXPRDQ(); ; break;} case 108: #line 632 "kimwy.y" { do_C(); yyval.yt_Ctext_elem = CTextCexpressionDQ( yyvsp[-1].yt_CexpressionDQ ); ; break;} case 109: #line 635 "kimwy.y" { do_CEXPRSQ(); ; break;} case 110: #line 637 "kimwy.y" { do_C(); yyval.yt_Ctext_elem = CTextCexpressionSQ( yyvsp[-1].yt_CexpressionSQ ); ; break;} case 111: #line 641 "kimwy.y" { do_C(); yyval.yt_Ctext_elem = CTextCbody( yyvsp[0].yt_Ctext ); ; break;} case 112: #line 644 "kimwy.y" { do_NORMAL(); ; break;} case 113: #line 646 "kimwy.y" { do_C(); yyval.yt_Ctext_elem = yyvsp[0].yt_Ctext_elem; ; break;} case 114: #line 649 "kimwy.y" { do_NORMAL(); ; break;} case 115: #line 651 "kimwy.y" { do_CEXPR(); pf_pushfileline(); ; break;} case 116: #line 653 "kimwy.y" { do_NORMAL(); pf_popfileline(); ; break;} case 117: #line 655 "kimwy.y" { do_C(); yyval.yt_Ctext_elem = CTextWithexpression( yyvsp[-5].yt_withexpressions, yyvsp[-1].yt_withcases, NotInForeachContext() ); if (! non_default_outmostpattern ) v_report(NonFatal( NoFileLine(), Problem1S( "can not infer type from 'default' pattern(s)" ))); non_default_outmostpattern = 0; ; break;} case 118: #line 662 "kimwy.y" { non_default_outmostpattern = 0; ; break;} case 119: #line 664 "kimwy.y" { pf_pushidCexpressions(yyvsp[-2].yt_idCexpressions); ; break;} case 120: #line 668 "kimwy.y" { patternchains pc_list = Conspatternchains(yyvsp[-7].yt_patternchain, Nilpatternchains()); patternchains rewritten = pc_list->rewrite(base_rview); withexpressions wexpr = pf_gen_foreachwith_vars( yyvsp[-4].yt_idCexpressions ); Ctext_elem ctwe = CTextWithexpression( wexpr, Conswithcases( Withcase( syn_patternchains_fileline( rewritten, pg_filename, pg_lineno ), yyvsp[-2].yt_Ctext ), Nilwithcases() ), InForeachContext(yyvsp[-7].yt_patternchain) ); Ctext ctxts0 = NilCtext(); Ctext ctxts1 = ConsCtext( ctwe, ctxts0 ); pf_setstacktopfileline( ctwe ); pf_setstacktopfileline( ctxts0 ); pf_setstacktopfileline( ctxts1 ); check_no_patternchaingroup_in_patternchain( yyvsp[-7].yt_patternchain->file, yyvsp[-7].yt_patternchain->line, yyvsp[-7].yt_patternchain, "'foreach variable/pattern'" ); yyval.yt_Ctext_elem = CTextForeachexpression( yyvsp[-7].yt_patternchain, yyvsp[-4].yt_idCexpressions, wexpr, ctxts1, yyvsp[0].yt_foreach_after); pf_popidCexpressions(); ; break;} case 121: #line 696 "kimwy.y" { yyval.yt_foreach_after = NoForeachAfter(); ; break;} case 122: #line 698 "kimwy.y" { do_NORMAL(); pf_pushfileline(); ; break;} case 123: #line 699 "kimwy.y" { non_default_outmostpattern = 0; ; break;} case 124: #line 701 "kimwy.y" { patternchains pc_list = Conspatternchains(yyvsp[-3].yt_patternchain, Nilpatternchains()); patternchains rewritten = pc_list->rewrite(base_rview); withexpressions wexpr = pf_gen_foreachwith_listvars( pf_topidCexpressions() ); Ctext_elem ctwe = CTextWithexpression( wexpr, Conswithcases( Withcase( syn_patternchains_fileline( rewritten, pg_filename, pg_lineno ), yyvsp[0].yt_Ctext ), Nilwithcases() ), InForeachContext(yyvsp[-3].yt_patternchain) ); Ctext ctxts0 = NilCtext(); Ctext ctxts1 = ConsCtext( ctwe, ctxts0 ); pf_setstacktopfileline( ctwe ); pf_setstacktopfileline( ctxts0 ); pf_setstacktopfileline( ctxts1 ); check_no_patternchaingroup_or_pattern_in_patternchain( yyvsp[-3].yt_patternchain->file, yyvsp[-3].yt_patternchain->line, yyvsp[-3].yt_patternchain, "'foreach variable/pattern'" ); yyval.yt_foreach_after = ForeachAfter( yyvsp[-3].yt_patternchain, pf_topidCexpressions(), wexpr, ctxts1 ); pf_setstacktopfileline( yyval.yt_foreach_after ); pf_popfileline(); ; break;} case 125: #line 730 "kimwy.y" { yyval.yt_Ctexts = NilCtexts(); ; break;} case 126: #line 732 "kimwy.y" { yyval.yt_Ctexts = ConsCtexts( yyvsp[0].yt_Ctext, NilCtexts() ); ; break;} case 127: #line 736 "kimwy.y" { pf_pushfileline(); ; break;} case 128: #line 737 "kimwy.y" {{includedeclaration pl_includedeclaration = IncludeDeclaration( yyvsp[0].yt_casestring ); set_includefiles( yyvsp[-3].yt_includefiles, pl_includedeclaration ); pf_setstacktopfileline( pl_includedeclaration ); pf_popfileline(); }; break;} case 129: #line 743 "kimwy.y" { yyval.yt_includedeclaration =IncludeDeclaration(mkcasestring("")); ; break;} case 130: #line 748 "kimwy.y" {{ includefile pl_includefile = IncludeFile( mkcasestring(INC_CODE) ); yyval.yt_includefiles = Consincludefiles( pl_includefile, Nilincludefiles() ); }; break;} case 131: #line 752 "kimwy.y" { yyval.yt_includefiles = yyvsp[0].yt_includefiles; ; break;} case 132: #line 757 "kimwy.y" {{ includefile pl_includefile = IncludeFile( yyvsp[0].yt_casestring ); if ((pl_includefile->inc_type == include_file) || (pl_includefile->inc_type == include_header)) { yyval.yt_includefiles = Consincludefiles( pl_includefile, Nilincludefiles() ); } else { v_report(NonFatal( NoFileLine(), ProblemSC( "unknown include redirection keyword:", yyvsp[0].yt_casestring ))); yyval.yt_includefiles = Nilincludefiles(); } }; break;} case 133: #line 766 "kimwy.y" {{ includefile pl_includefile = IncludeFile( yyvsp[0].yt_casestring ); if ((pl_includefile->inc_type == include_file) || (pl_includefile->inc_type == include_header)) { yyval.yt_includefiles = Consincludefiles( pl_includefile, yyvsp[-1].yt_includefiles ); } else { v_report(NonFatal( NoFileLine(), ProblemSC( "unknown include redirection keyword:", yyvsp[0].yt_casestring ))); yyval.yt_includefiles = yyvsp[-1].yt_includefiles; } }; break;} case 134: #line 778 "kimwy.y" { if (! non_default_outmostpattern ) v_report(NonFatal( NoFileLine(), Problem1S( "can not infer type from 'default' pattern(s)" ))); non_default_outmostpattern = 0; ; break;} case 135: #line 781 "kimwy.y" { yyerrok; yyval.yt_rwdeclaration = RwDeclaration( yyvsp[-4].yt_outmostpatterns, yyvsp[-1].yt_rewriteclauses ); ; break;} case 136: #line 786 "kimwy.y" { yyval.yt_rewriteclauses = Consrewriteclauses( yyvsp[0].yt_rewriteclause, Nilrewriteclauses() ); ; break;} case 137: #line 788 "kimwy.y" { yyval.yt_rewriteclauses = Consrewriteclauses( yyvsp[0].yt_rewriteclause, yyvsp[-1].yt_rewriteclauses ); ; break;} case 138: #line 796 "kimwy.y" { if (yyvsp[-3].yt_viewnames->eq(Nilviewnames())) { yyval.yt_rewriteclause = RewriteClause( Consviewnames( Id( Str( mkcasestring( "base_rview" ))), yyvsp[-3].yt_viewnames ), yyvsp[-1].yt_term ); } else { yyval.yt_rewriteclause = RewriteClause( yyvsp[-3].yt_viewnames, yyvsp[-1].yt_term ); } ; break;} case 141: #line 810 "kimwy.y" { yyval.yt_patternchains = Conspatternchains( yyvsp[0].yt_patternchain, Nilpatternchains() ); ; break;} case 142: #line 812 "kimwy.y" { yyval.yt_patternchains = Conspatternchains( yyvsp[0].yt_patternchain, yyvsp[-2].yt_patternchains ); ; break;} case 143: #line 817 "kimwy.y" { yyval.yt_patternchain = Conspatternchain( yyvsp[0].yt_patternchainitem, Nilpatternchain() ); ; break;} case 144: #line 819 "kimwy.y" { yyval.yt_patternchain = Conspatternchain( yyvsp[0].yt_patternchainitem, yyvsp[-2].yt_patternchain ); ; break;} case 145: #line 823 "kimwy.y" { pf_pushfileline(); ; break;} case 146: #line 825 "kimwy.y" { yyval.yt_patternchainitem = yyvsp[0].yt_patternchainitem; pf_setstacktopfileline(yyval.yt_patternchainitem); pf_popfileline(); ; break;} case 147: #line 830 "kimwy.y" { yyval.yt_patternchainitem = PatternchainitemOutmost( yyvsp[0].yt_outmostpattern ); ; break;} case 148: #line 832 "kimwy.y" { yyval.yt_patternchainitem = PatternchainitemGroup( yyvsp[-1].yt_patternchains ); ; break;} case 149: #line 834 "kimwy.y" { yyval.yt_patternchainitem = PatternchainitemDollarid( yyvsp[0].yt_ID ); pf_setwithvariable( yyvsp[0].yt_ID ); ; break;} case 150: #line 839 "kimwy.y" { yyval.yt_outmostpatterns = Consoutmostpatterns( yyvsp[0].yt_outmostpattern, Niloutmostpatterns() ); ; break;} case 151: #line 841 "kimwy.y" { yyerrok; yyval.yt_outmostpatterns = Consoutmostpatterns( yyvsp[0].yt_outmostpattern, yyvsp[-2].yt_outmostpatterns ); ; break;} case 152: #line 843 "kimwy.y" { yyval.yt_outmostpatterns = Niloutmostpatterns(); ; break;} case 153: #line 845 "kimwy.y" { yyval.yt_outmostpatterns=yyvsp[-1].yt_outmostpatterns; ; break;} case 154: #line 847 "kimwy.y" { yyval.yt_outmostpatterns=yyvsp[-2].yt_outmostpatterns; ; break;} case 155: #line 849 "kimwy.y" { yyerrok; yyval.yt_outmostpatterns = Consoutmostpatterns( yyvsp[0].yt_outmostpattern, yyvsp[-2].yt_outmostpatterns ); ; break;} case 156: #line 854 "kimwy.y" { yyval.yt_outmostpattern = OPOperatorWildcard( yyvsp[-1].yt_ID, yyvsp[0].yt_Cexpression ); non_default_outmostpattern = 1; yyval.yt_outmostpattern->file = pg_filename; yyval.yt_outmostpattern->line = pg_lineno; ; break;} case 157: #line 857 "kimwy.y" { yyval.yt_outmostpattern = OPOperator( yyvsp[-4].yt_ID, yyvsp[-2].yt_patterns, yyvsp[0].yt_Cexpression ); non_default_outmostpattern = 1; yyval.yt_outmostpattern->file = pg_filename; yyval.yt_outmostpattern->line = pg_lineno; ; break;} case 158: #line 860 "kimwy.y" { yyval.yt_outmostpattern = OPNonLeafVariable( yyvsp[-2].yt_ID, yyvsp[0].yt_outmostpattern ); non_default_outmostpattern = 1; yyval.yt_outmostpattern->file = pg_filename; yyval.yt_outmostpattern->line = pg_lineno; ; break;} case 159: #line 863 "kimwy.y" { yyval.yt_outmostpattern = OPWildcard( yyvsp[0].yt_Cexpression ); yyval.yt_outmostpattern->file = pg_filename; yyval.yt_outmostpattern->line = pg_lineno; ; break;} case 160: #line 866 "kimwy.y" { yyval.yt_outmostpattern = OPDefault( yyvsp[0].yt_Cexpression ); yyval.yt_outmostpattern->file = pg_filename; yyval.yt_outmostpattern->line = pg_lineno;; break;} case 161: #line 872 "kimwy.y" { yyval.yt_Cexpression = NilCexpression(); ; break;} case 162: #line 873 "kimwy.y" { do_CEXPR(); ; break;} case 163: #line 873 "kimwy.y" { do_NORMAL(); ; break;} case 164: #line 874 "kimwy.y" { yyval.yt_Cexpression = yyvsp[-2].yt_Cexpression; ; break;} case 165: #line 879 "kimwy.y" { yyval.yt_pattern = PVariable( yyvsp[0].yt_ID ); ; break;} case 166: #line 881 "kimwy.y" { yyval.yt_pattern = POperator( yyvsp[-3].yt_ID, yyvsp[-1].yt_patterns ); ; break;} case 167: #line 883 "kimwy.y" { yyval.yt_pattern = PWildcard(); ; break;} case 168: #line 885 "kimwy.y" { yyval.yt_pattern = PWildcard(); ; break;} case 169: #line 887 "kimwy.y" { yyval.yt_pattern = PNonLeafVariable( yyvsp[-2].yt_ID, yyvsp[0].yt_pattern ); ; break;} case 170: #line 889 "kimwy.y" { do_CEXPRDQ(); ; break;} case 171: #line 891 "kimwy.y" { do_NORMAL(); yyval.yt_pattern = PStringLiteral( yyvsp[-1].yt_CexpressionDQ ); ; break;} case 172: #line 894 "kimwy.y" { yyval.yt_pattern = PIntLiteral( yyvsp[0].yt_INT ); ; break;} case 173: #line 899 "kimwy.y" { yyval.yt_patterns = Nilpatterns(); ; break;} case 174: #line 901 "kimwy.y" { yyval.yt_patterns = yyvsp[0].yt_patterns; ; break;} case 175: #line 906 "kimwy.y" { yyval.yt_patterns = Conspatterns( yyvsp[0].yt_pattern, Nilpatterns() ); ; break;} case 176: #line 908 "kimwy.y" { yyerrok; yyval.yt_patterns = Conspatterns( yyvsp[0].yt_pattern, yyvsp[-2].yt_patterns ); ; break;} case 177: #line 910 "kimwy.y" { yyval.yt_patterns = Nilpatterns(); ; break;} case 178: #line 912 "kimwy.y" { yyval.yt_patterns = yyvsp[-1].yt_patterns; ; break;} case 179: #line 914 "kimwy.y" { yyval.yt_patterns = yyvsp[-2].yt_patterns; ; break;} case 180: #line 916 "kimwy.y" { yyerrok; yyval.yt_patterns = Conspatterns( yyvsp[0].yt_pattern, yyvsp[-2].yt_patterns ); ; break;} case 181: #line 921 "kimwy.y" { yyval.yt_term = TVariable( yyvsp[0].yt_ID ); yyval.yt_term->file = pg_filename; yyval.yt_term->line = pg_lineno; ; break;} case 182: #line 924 "kimwy.y" { yyval.yt_term = TOperator( yyvsp[-3].yt_ID, yyvsp[-1].yt_terms ); yyval.yt_term->file = pg_filename; yyval.yt_term->line = pg_lineno; ; break;} case 183: #line 928 "kimwy.y" { yyval.yt_term = TMethod( yyvsp[-5].yt_term, yyvsp[-3].yt_ID, yyvsp[-1].yt_terms ); yyval.yt_term->file = pg_filename; yyval.yt_term->line = pg_lineno; ; break;} case 184: #line 931 "kimwy.y" { yyval.yt_term = TMethodDot( yyvsp[-5].yt_term, yyvsp[-3].yt_ID, yyvsp[-1].yt_terms ); yyval.yt_term->file = pg_filename; yyval.yt_term->line = pg_lineno; ; break;} case 185: #line 934 "kimwy.y" { yyval.yt_term = TMemberVar( yyvsp[-2].yt_term, yyvsp[0].yt_ID ); yyval.yt_term->file = pg_filename; yyval.yt_term->line = pg_lineno; ; break;} case 186: #line 937 "kimwy.y" { yyval.yt_term = TMemberVarDot( yyvsp[-2].yt_term, yyvsp[0].yt_ID ); yyval.yt_term->file = pg_filename; yyval.yt_term->line = pg_lineno; ; break;} case 187: #line 940 "kimwy.y" { do_CEXPRSQ(); ; break;} case 188: #line 942 "kimwy.y" { do_NORMAL(); yyval.yt_term = TCTerm( yyvsp[-1].yt_CexpressionSQ ); yyval.yt_term->file = pg_filename; yyval.yt_term->line = pg_lineno; ; break;} case 189: #line 946 "kimwy.y" { do_CEXPRDQ(); ; break;} case 190: #line 948 "kimwy.y" { do_NORMAL(); yyval.yt_term = TStringLiteral( yyvsp[-1].yt_CexpressionDQ ); yyval.yt_term->file = pg_filename; yyval.yt_term->line = pg_lineno; ; break;} case 191: #line 952 "kimwy.y" { yyval.yt_term = TIntLiteral( yyvsp[0].yt_INT ); yyval.yt_term->file = pg_filename; yyval.yt_term->line = pg_lineno; ; break;} case 192: #line 958 "kimwy.y" { yyval.yt_terms = Nilterms(); ; break;} case 193: #line 960 "kimwy.y" { yyval.yt_terms = yyvsp[0].yt_terms; ; break;} case 194: #line 965 "kimwy.y" { yyval.yt_terms = Consterms( yyvsp[0].yt_term, Nilterms() ); ; break;} case 195: #line 967 "kimwy.y" { yyerrok; yyval.yt_terms = Consterms( yyvsp[0].yt_term, yyvsp[-2].yt_terms ); ; break;} case 196: #line 969 "kimwy.y" { yyval.yt_terms = Nilterms(); ; break;} case 197: #line 971 "kimwy.y" { yyval.yt_terms = yyvsp[-1].yt_terms; ; break;} case 198: #line 973 "kimwy.y" { yyval.yt_terms = yyvsp[-2].yt_terms; ; break;} case 199: #line 975 "kimwy.y" { yyerrok; yyval.yt_terms = Consterms( yyvsp[0].yt_term, yyvsp[-2].yt_terms ); ; break;} case 200: #line 980 "kimwy.y" { yyval.yt_withcases = Conswithcases( yyvsp[0].yt_withcase, Nilwithcases() ); ; break;} case 201: #line 982 "kimwy.y" { yyval.yt_withcases = Conswithcases( yyvsp[0].yt_withcase, yyvsp[-1].yt_withcases ); ; break;} case 202: #line 987 "kimwy.y" { yyval.yt_withcase = Withcase( syn_patternchains_fileline(yyvsp[-2].yt_patternchains->rewrite(base_rview), pg_filename, pg_lineno ), yyvsp[0].yt_Ctext ); ; break;} case 203: #line 992 "kimwy.y" { if (! non_default_outmostpattern ) v_report(NonFatal( NoFileLine(), Problem1S( "can not infer type from 'default' pattern(s)" ))); non_default_outmostpattern = 0; ; break;} case 204: #line 995 "kimwy.y" { yyval.yt_unparsedeclaration = UnparseDeclaration( yyvsp[-4].yt_outmostpatterns, yyvsp[-1].yt_unparseclauses ); ; break;} case 205: #line 997 "kimwy.y" { yyval.yt_unparsedeclaration = UnparseDeclaration( yyvsp[-3].yt_outmostpatterns, Nilunparseclauses()); ; break;} case 206: #line 1002 "kimwy.y" { yyval.yt_unparseclauses = Consunparseclauses( yyvsp[0].yt_unparseclause, Nilunparseclauses() ); ; break;} case 207: #line 1004 "kimwy.y" { yyval.yt_unparseclauses = Consunparseclauses( yyvsp[0].yt_unparseclause, yyvsp[-1].yt_unparseclauses ); ; break;} case 208: #line 1012 "kimwy.y" { if (yyvsp[-3].yt_viewnames->eq( Nilviewnames())) { yyval.yt_unparseclause = UnparseClause( Consviewnames( Id( Str( mkcasestring( "base_uview" ))), yyvsp[-3].yt_viewnames ), yyvsp[-1].yt_unparseitems ); } else { yyval.yt_unparseclause = UnparseClause( yyvsp[-3].yt_viewnames, yyvsp[-1].yt_unparseitems ); } inc_text_nr(); yyerrok; ; break;} case 209: #line 1019 "kimwy.y" { yyval.yt_unparseclause = UnparseClause( yyvsp[-2].yt_viewnames, Nilunparseitems()); ; break;} case 210: #line 1021 "kimwy.y" { yyerrok; yyval.yt_unparseclause = UnparseClause( Nilviewnames(), yyvsp[-1].yt_unparseitems); ; break;} case 211: #line 1023 "kimwy.y" { yyval.yt_unparseclause = UnparseClause( Nilviewnames(), Nilunparseitems()); ; break;} case 212: #line 1025 "kimwy.y" { yyval.yt_unparseclause = UnparseClause( Nilviewnames(), Nilunparseitems()); ; break;} case 213: #line 1030 "kimwy.y" { yyval.yt_viewnames = Nilviewnames(); ; break;} case 214: #line 1032 "kimwy.y" { yyval.yt_viewnames = Consviewnames( yyvsp[0].yt_ID, yyvsp[-1].yt_viewnames ); ; break;} case 215: #line 1037 "kimwy.y" { yyval.yt_unparseitems = Nilunparseitems(); ; break;} case 216: #line 1039 "kimwy.y" { yyval.yt_unparseitems = Consunparseitems( yyvsp[0].yt_unparseitem, yyvsp[-1].yt_unparseitems ); ; break;} case 217: #line 1044 "kimwy.y" { do_CEXPRDQ(); ; break;} case 218: #line 1046 "kimwy.y" { do_NORMAL(); ; break;} case 219: #line 1048 "kimwy.y" { yyval.yt_unparseitem = UnpStr( yyvsp[-6].yt_languageoption, yyvsp[-3].yt_CexpressionDQ, yyvsp[0].yt_viewnameoption ); yyval.yt_unparseitem->text_nr=get_text_nr(); if(!yyvsp[0].yt_viewnameoption->eq(NoViewname())) inc_text_nr(); ; break;} case 220: #line 1054 "kimwy.y" { yyval.yt_unparseitem = UnpSubexpr( yyvsp[-2].yt_languageoption, yyvsp[-1].yt_unpsubterm, yyvsp[0].yt_viewnameoption ); inc_text_nr(); ; break;} case 221: #line 1056 "kimwy.y" { yyval.yt_unparseitem = UnpCtext( yyvsp[-1].yt_languageoption, yyvsp[0].yt_Ctext ); inc_text_nr(); ; break;} case 222: #line 1058 "kimwy.y" { yyval.yt_unparseitem = UnpBody( yyvsp[-3].yt_languageoption, yyvsp[-1].yt_unparseitems ); inc_text_nr(); ; break;} case 223: #line 1060 "kimwy.y" { do_CEXPR(); ; break;} case 224: #line 1060 "kimwy.y" { do_NORMAL(); ; break;} case 225: #line 1062 "kimwy.y" { yyval.yt_unparseitem = UViewVarDecl( yyvsp[-5].yt_ID, yyvsp[-4].yt_ID, yyvsp[-2].yt_Cexpression ); ; break;} case 226: #line 1067 "kimwy.y" { yyval.yt_unpsubterm = UnpSubTerm( yyvsp[0].yt_ID ); ; break;} case 227: #line 1069 "kimwy.y" { yyval.yt_unpsubterm = UnpDollarvarTerm( yyvsp[0].yt_INT ); ; break;} case 228: #line 1071 "kimwy.y" { yyval.yt_unpsubterm = UnpSubAttr( yyvsp[-1].yt_ID, yyvsp[0].yt_unpattributes ); ; break;} case 229: #line 1073 "kimwy.y" { yyval.yt_unpsubterm = UnpDollarvarAttr( yyvsp[-1].yt_INT, yyvsp[0].yt_unpattributes ); ; break;} case 230: #line 1078 "kimwy.y" { yyval.yt_unpsubterm = UnpCastedVariable( yyvsp[-2].yt_ID, yyvsp[0].yt_ID ); ; break;} case 231: #line 1083 "kimwy.y" { yyval.yt_unpattributes = Consunpattributes( yyvsp[0].yt_ID, Nilunpattributes() ); ; break;} case 232: #line 1085 "kimwy.y" { yyval.yt_unpattributes = Consunpattributes( yyvsp[0].yt_ID, yyvsp[-1].yt_unpattributes ); ; break;} case 233: #line 1090 "kimwy.y" { yyval.yt_ID = yyvsp[0].yt_ID; ; break;} case 234: #line 1092 "kimwy.y" { yyval.yt_ID = Id(Str(mkcasestring("error"))); ; break;} case 235: #line 1097 "kimwy.y" { yyval.yt_viewnameoption = NoViewname(); ; break;} case 236: #line 1099 "kimwy.y" { yyval.yt_viewnameoption = YesViewname( yyvsp[0].yt_ID ); ; break;} case 237: #line 1101 "kimwy.y" { yyval.yt_viewnameoption = NoViewname(); ; break;} case 238: #line 1106 "kimwy.y" { yyerrok; yyval.yt_viewnames = yyvsp[-1].yt_viewnames; pg_uviewshavebeendefined = true; ; break;} case 239: #line 1108 "kimwy.y" { yyerrok; yyval.yt_viewnames = Nilviewnames(); ; break;} case 240: #line 1113 "kimwy.y" { yyval.yt_viewnames = Consviewnames( yyvsp[0].yt_ID, Nilviewnames()); v_add_to_uviewnames( yyvsp[0].yt_ID ); v_extendoccur( yyvsp[0].yt_ID, ITUserUView() ); ; break;} case 241: #line 1117 "kimwy.y" { yyval.yt_viewnames = Consviewnames( yyvsp[-1].yt_ID, Nilviewnames()); v_add_to_uviewnames_ext( yyvsp[-1].yt_ID ); v_extendoccur( yyvsp[-1].yt_ID, ITUserUView() ); ; break;} case 242: #line 1121 "kimwy.y" { yyval.yt_viewnames = Consviewnames( yyvsp[0].yt_ID, yyvsp[-1].yt_viewnames ); v_add_to_uviewnames( yyvsp[0].yt_ID ); v_extendoccur( yyvsp[0].yt_ID, ITUserUView() ); ; break;} case 243: #line 1125 "kimwy.y" { yyval.yt_viewnames = Consviewnames( yyvsp[-1].yt_ID, yyvsp[-3].yt_viewnames ); v_add_to_uviewnames_ext( yyvsp[-1].yt_ID ); v_extendoccur( yyvsp[-1].yt_ID, ITUserUView() ); ; break;} case 244: #line 1129 "kimwy.y" { yyval.yt_viewnames = Consviewnames( yyvsp[0].yt_ID, yyvsp[-2].yt_viewnames ); v_add_to_uviewnames( yyvsp[0].yt_ID ); v_extendoccur( yyvsp[0].yt_ID, ITUserUView() ); ; break;} case 245: #line 1133 "kimwy.y" { yyval.yt_viewnames = Consviewnames( yyvsp[-1].yt_ID, yyvsp[-4].yt_viewnames ); v_add_to_uviewnames_ext( yyvsp[-1].yt_ID ); v_extendoccur( yyvsp[-1].yt_ID, ITUserUView() ); ; break;} case 246: #line 1137 "kimwy.y" { yyval.yt_viewnames = yyvsp[-1].yt_viewnames; ; break;} case 247: #line 1139 "kimwy.y" { yyval.yt_viewnames = yyvsp[-2].yt_viewnames; ; break;} case 248: #line 1144 "kimwy.y" { yyerrok; yyval.yt_viewnames = yyvsp[-1].yt_viewnames; pg_rviewshavebeendefined = true; ; break;} case 249: #line 1146 "kimwy.y" { yyerrok; yyval.yt_viewnames = Nilviewnames(); ; break;} case 250: #line 1151 "kimwy.y" { yyval.yt_viewnames = Consviewnames( yyvsp[0].yt_ID, Nilviewnames()); v_add_to_rviewnames( yyvsp[0].yt_ID ); v_extendoccur( yyvsp[0].yt_ID, ITUserRView() ); ; break;} case 251: #line 1155 "kimwy.y" { yyval.yt_viewnames = Consviewnames( yyvsp[-1].yt_ID, Nilviewnames()); v_add_to_rviewnames_ext( yyvsp[-1].yt_ID ); v_extendoccur( yyvsp[-1].yt_ID, ITUserRView() ); ; break;} case 252: #line 1159 "kimwy.y" { yyval.yt_viewnames = Consviewnames( yyvsp[0].yt_ID, yyvsp[-1].yt_viewnames ); v_add_to_rviewnames( yyvsp[0].yt_ID ); v_extendoccur( yyvsp[0].yt_ID, ITUserRView() ); ; break;} case 253: #line 1163 "kimwy.y" { yyval.yt_viewnames = Consviewnames( yyvsp[-1].yt_ID, yyvsp[-3].yt_viewnames ); v_add_to_rviewnames_ext( yyvsp[-1].yt_ID ); v_extendoccur( yyvsp[-1].yt_ID, ITUserRView() ); ; break;} case 254: #line 1167 "kimwy.y" { yyval.yt_viewnames = Consviewnames( yyvsp[0].yt_ID, yyvsp[-2].yt_viewnames ); v_add_to_rviewnames( yyvsp[0].yt_ID ); v_extendoccur( yyvsp[0].yt_ID, ITUserRView() ); ; break;} case 255: #line 1171 "kimwy.y" { yyval.yt_viewnames = Consviewnames( yyvsp[-1].yt_ID, yyvsp[-4].yt_viewnames ); v_add_to_rviewnames_ext( yyvsp[-1].yt_ID ); v_extendoccur( yyvsp[-1].yt_ID, ITUserRView() ); ; break;} case 256: #line 1175 "kimwy.y" { yyval.yt_viewnames = yyvsp[-1].yt_viewnames; ; break;} case 257: #line 1177 "kimwy.y" { yyval.yt_viewnames = yyvsp[-2].yt_viewnames; ; break;} case 258: #line 1182 "kimwy.y" { yyerrok; yyval.yt_storageclasses = yyvsp[-1].yt_storageclasses; pg_storageclasseshavebeendefined = true; ; break;} case 259: #line 1184 "kimwy.y" { yyerrok; yyval.yt_storageclasses = Nilstorageclasses(); ; break;} case 260: #line 1189 "kimwy.y" { yyval.yt_storageclasses = Consstorageclasses( yyvsp[0].yt_ID, Nilstorageclasses()); v_add_to_storageclasses( yyvsp[0].yt_ID, f_emptyId() ); v_extendoccur( yyvsp[0].yt_ID, ITStorageClass() ); ; break;} case 261: #line 1193 "kimwy.y" { yyval.yt_storageclasses = Consstorageclasses( yyvsp[0].yt_ID, yyvsp[-1].yt_storageclasses ); v_add_to_storageclasses( yyvsp[0].yt_ID, f_emptyId() ); v_extendoccur( yyvsp[0].yt_ID, ITStorageClass() ); ; break;} case 262: #line 1197 "kimwy.y" { yyval.yt_storageclasses = Consstorageclasses( yyvsp[0].yt_ID, yyvsp[-2].yt_storageclasses ); v_add_to_storageclasses( yyvsp[0].yt_ID, f_emptyId() ); v_extendoccur( yyvsp[0].yt_ID, ITStorageClass() ); ; break;} case 263: #line 1201 "kimwy.y" { yyval.yt_storageclasses = yyvsp[-1].yt_storageclasses; ; break;} case 264: #line 1203 "kimwy.y" { yyval.yt_storageclasses = yyvsp[-2].yt_storageclasses; ; break;} case 265: #line 1208 "kimwy.y" { fnclass tmp_type = f_fnclass_info(yyvsp[-2].yt_ac_declaration_specifiers, pg_filename, yyvsp[-1].yt_ac_declarator ); ID tmp_id = f_ID_of_fn_declarator(yyvsp[-1].yt_ac_declarator, tmp_type); yyval.yt_fndeclaration = FnAcDeclaration( yyvsp[-2].yt_ac_declaration_specifiers, yyvsp[-1].yt_ac_declarator, Nilac_declaration_list(), AcNoBaseInit(), yyvsp[0].yt_Ctext, tmp_id, tmp_type ); pf_resetwithvariable(); v_defoccur( tmp_id, ITUserFunction( tmp_type ) ); yyval.yt_fndeclaration->file = pg_filename; yyval.yt_fndeclaration->last_line = pg_lineno; ; break;} case 266: #line 1218 "kimwy.y" { fnclass tmp_type=ConvOperatorFn(); ac_declarator decl= AcDeclarator(Nopointer(),AcNoRef(), AcQualifiedDeclProto( Nilac_class_qualifier_list(), AcConvOperatorDecl(yyvsp[-7].yt_ID, yyvsp[-4].yt_ID), AcParList(Nilac_parameter_list()), yyvsp[-1].yt_ac_type_qualifier ) ); ID tmp_id = yyvsp[-4].yt_ID; yyval.yt_fndeclaration = FnAcDeclaration( Nilac_declaration_specifiers(), decl, Nilac_declaration_list(), AcNoBaseInit(), yyvsp[0].yt_Ctext, tmp_id, tmp_type ); pf_resetwithvariable(); v_defoccur( tmp_id, ITUserFunction( tmp_type ) ); yyval.yt_fndeclaration->file = pg_filename; yyval.yt_fndeclaration->last_line = pg_lineno; ; break;} case 267: #line 1238 "kimwy.y" { fnclass tmp_type=ConstructorFn(); ac_declarator decl= AcDeclarator(Nopointer(),AcNoRef(), AcQualifiedDeclProto( Nilac_class_qualifier_list(), AcDirectDeclId(yyvsp[-5].yt_ID), yyvsp[-3].yt_ac_parameter_type_list, AcNoQualifier() ) ); ID tmp_id = f_ID_of_fn_declarator(decl, tmp_type); yyval.yt_fndeclaration = FnAcDeclaration( Nilac_declaration_specifiers(), decl, Nilac_declaration_list(), yyvsp[-1].yt_ac_opt_base_init_list, yyvsp[0].yt_Ctext, tmp_id, tmp_type ); pf_resetwithvariable(); v_defoccur( tmp_id, ITUserFunction( tmp_type ) ); yyval.yt_fndeclaration->file = pg_filename; yyval.yt_fndeclaration->last_line = pg_lineno; ; break;} case 268: #line 1258 "kimwy.y" { fnclass tmp_type=DestructorFn(); ac_declarator decl= AcDeclarator(Nopointer(),AcNoRef(), AcQualifiedDeclProto( Nilac_class_qualifier_list(), AcDirectDeclId(yyvsp[-3].yt_ID), AcParList( Nilac_parameter_list() ), AcNoQualifier() ) ); ID tmp_id = f_ID_of_fn_declarator(decl, tmp_type); yyval.yt_fndeclaration = FnAcDeclaration( yyvsp[-4].yt_ac_declaration_specifiers, decl, Nilac_declaration_list(), AcNoBaseInit(), yyvsp[0].yt_Ctext, tmp_id, tmp_type ); pf_resetwithvariable(); v_defoccur( tmp_id, ITUserFunction( tmp_type ) ); yyval.yt_fndeclaration->file = pg_filename; yyval.yt_fndeclaration->last_line = pg_lineno; ; break;} case 269: #line 1278 "kimwy.y" { fnclass tmp_type = f_member_class_info(yyvsp[-3].yt_ac_declaration_specifiers, pg_filename); yyval.yt_fndeclaration=AcMemberDeclaration(yyvsp[-3].yt_ac_declaration_specifiers,yyvsp[-2].yt_ac_declarator,yyvsp[-1].yt_ac_constant_expression_option,tmp_type); yyval.yt_fndeclaration->is_attr=false; yyval.yt_fndeclaration->file = pg_filename; yyval.yt_fndeclaration->last_line = pg_lineno; ; break;} case 270: #line 1285 "kimwy.y" { fnclass tmp_type = f_member_class_info(yyvsp[-3].yt_ac_declaration_specifiers, pg_filename); yyval.yt_fndeclaration=AcMemberDeclaration(yyvsp[-3].yt_ac_declaration_specifiers,yyvsp[-2].yt_ac_declarator,yyvsp[-1].yt_ac_constant_expression_option,tmp_type); yyval.yt_fndeclaration->is_attr=true; yyval.yt_fndeclaration->file = pg_filename; yyval.yt_fndeclaration->last_line = pg_lineno; ; break;} case 271: #line 1295 "kimwy.y" { yyval.yt_ac_opt_base_init_list = AcNoBaseInit(); ; break;} case 272: #line 1297 "kimwy.y" { yyval.yt_ac_opt_base_init_list = AcYesBaseInit( yyvsp[0].yt_ac_base_init_list ); ; break;} case 273: #line 1302 "kimwy.y" { yyval.yt_ac_base_init_list = Consac_base_init_list( yyvsp[0].yt_ac_base_init, Nilac_base_init_list() ); ; break;} case 274: #line 1304 "kimwy.y" { yyval.yt_ac_base_init_list = Consac_base_init_list( yyvsp[0].yt_ac_base_init, yyvsp[-2].yt_ac_base_init_list ); ; break;} case 275: #line 1309 "kimwy.y" { yyval.yt_ac_base_init= AcBaseInit( yyvsp[-3].yt_ID, yyvsp[-1].yt_ac_constant_expression ); ; break;} case 276: #line 1314 "kimwy.y" { yyval.yt_ac_constant_expression_option=Noac_constant_expression(); ; break;} case 277: #line 1317 "kimwy.y" { yyval.yt_ac_constant_expression_option=Yesac_constant_expression(yyvsp[0].yt_ac_constant_expression); ; break;} case 278: #line 1322 "kimwy.y" { yyval.yt_ac_constant_expression_option=Noac_constant_expression(); ; break;} case 279: #line 1325 "kimwy.y" { yyval.yt_ac_constant_expression_option=Yesac_constant_expression(yyvsp[0].yt_ac_constant_expression); ; break;} case 280: #line 1328 "kimwy.y" { yyval.yt_ac_constant_expression_option=Yesac_constant_expression(yyvsp[-1].yt_ac_constant_expression); ; break;} case 281: #line 1339 "kimwy.y" { yyval.yt_ac_declaration_specifiers = Consac_declaration_specifiers( AcDeclSpecTypeSpec( yyvsp[0].yt_ac_type_specifier ), Nilac_declaration_specifiers() ); ; break;} case 282: #line 1343 "kimwy.y" { yyval.yt_ac_declaration_specifiers = Consac_declaration_specifiers( AcDeclSpecTypeSpec( yyvsp[0].yt_ac_type_specifier ), Consac_declaration_specifiers( AcDeclSpecStorageSpec( yyvsp[-1].yt_ac_storage_class_specifier ), Nilac_declaration_specifiers() )); ; break;} case 283: #line 1349 "kimwy.y" { yyval.yt_ac_declaration_specifiers = Consac_declaration_specifiers( AcDeclSpecTypeSpec( yyvsp[0].yt_ac_type_specifier ), Consac_declaration_specifiers( AcDeclSpecTypeQual( yyvsp[-1].yt_ac_type_qualifier ), Nilac_declaration_specifiers() )); ; break;} case 284: #line 1355 "kimwy.y" { yyval.yt_ac_declaration_specifiers = Consac_declaration_specifiers( AcDeclSpecTypeSpec( yyvsp[0].yt_ac_type_specifier ), Consac_declaration_specifiers( AcDeclSpecTypeQual( yyvsp[-1].yt_ac_type_qualifier ), Consac_declaration_specifiers( AcDeclSpecStorageSpec( yyvsp[-2].yt_ac_storage_class_specifier ), Nilac_declaration_specifiers() ))); ; break;} case 285: #line 1367 "kimwy.y" { yyval.yt_ac_declaration_specifiers = Consac_declaration_specifiers( AcDeclSpecTypeSpec( yyvsp[0].yt_ac_type_specifier ), Nilac_declaration_specifiers() ); ; break;} case 286: #line 1371 "kimwy.y" { yyval.yt_ac_declaration_specifiers = Consac_declaration_specifiers( AcDeclSpecTypeSpec( yyvsp[0].yt_ac_type_specifier ), Consac_declaration_specifiers( AcDeclSpecStorageSpec( yyvsp[-1].yt_ac_storage_class_specifier ), Nilac_declaration_specifiers() )); ; break;} case 287: #line 1377 "kimwy.y" { yyval.yt_ac_declaration_specifiers = Consac_declaration_specifiers( AcDeclSpecTypeSpec( yyvsp[0].yt_ac_type_specifier ), Consac_declaration_specifiers( AcDeclSpecTypeQual( yyvsp[-1].yt_ac_type_qualifier ), Nilac_declaration_specifiers() )); ; break;} case 288: #line 1383 "kimwy.y" { yyval.yt_ac_declaration_specifiers = Consac_declaration_specifiers( AcDeclSpecTypeSpec( yyvsp[0].yt_ac_type_specifier ), Consac_declaration_specifiers( AcDeclSpecTypeQual( yyvsp[-1].yt_ac_type_qualifier ), Consac_declaration_specifiers( AcDeclSpecStorageSpec( yyvsp[-2].yt_ac_storage_class_specifier ), Nilac_declaration_specifiers() ))); ; break;} case 289: #line 1395 "kimwy.y" { yyval.yt_ac_storage_class_specifier = AcAuto(); ; break;} case 290: #line 1397 "kimwy.y" { yyval.yt_ac_storage_class_specifier = AcRegister(); ; break;} case 291: #line 1399 "kimwy.y" { yyval.yt_ac_storage_class_specifier = AcStatic(); ; break;} case 292: #line 1401 "kimwy.y" { yyval.yt_ac_storage_class_specifier = AcExtern(); ; break;} case 293: #line 1403 "kimwy.y" { yyval.yt_ac_storage_class_specifier = AcTypedef(); ; break;} case 294: #line 1405 "kimwy.y" { yyval.yt_ac_storage_class_specifier = AcVirtual(); ; break;} case 295: #line 1410 "kimwy.y" { yyval.yt_ac_storage_class_specifier = AcStatic(); ; break;} case 296: #line 1415 "kimwy.y" { yyval.yt_ac_declaration_specifiers = Nilac_declaration_specifiers(); ; break;} case 297: #line 1417 "kimwy.y" { yyval.yt_ac_declaration_specifiers = Consac_declaration_specifiers( AcDeclSpecStorageSpec( AcVirtual() ), Nilac_declaration_specifiers() ); ; break;} case 298: #line 1426 "kimwy.y" { yyval.yt_ac_type_specifier = AcTypeSpec( yyvsp[0].yt_ID ); ; break;} case 299: #line 1431 "kimwy.y" { yyval.yt_ac_type_qualifier = AcConst(); ; break;} case 300: #line 1433 "kimwy.y" { yyval.yt_ac_type_qualifier = AcVolatile(); ; break;} case 301: #line 1435 "kimwy.y" { yyval.yt_ac_type_qualifier = AcUnsigned(); ; break;} case 302: #line 1440 "kimwy.y" { yyval.yt_ac_declarator = AcDeclarator( Nopointer(), AcNoRef(), yyvsp[0].yt_ac_direct_declarator ); ; break;} case 303: #line 1442 "kimwy.y" { yyval.yt_ac_declarator = AcDeclarator( Yespointer( yyvsp[-1].yt_ac_pointer ), AcNoRef(), yyvsp[0].yt_ac_direct_declarator ); ; break;} case 304: #line 1444 "kimwy.y" { yyval.yt_ac_declarator = AcDeclarator( Nopointer(), AcRef(), yyvsp[0].yt_ac_direct_declarator ); ; break;} case 305: #line 1446 "kimwy.y" { yyval.yt_ac_declarator = AcDeclarator( Yespointer( yyvsp[-2].yt_ac_pointer ), AcRef(), yyvsp[0].yt_ac_direct_declarator ); ; break;} case 306: #line 1451 "kimwy.y" { yyval.yt_ac_declarator = AcDeclarator(Nopointer(), AcNoRef(), yyvsp[0].yt_ac_direct_declarator ); ; break;} case 307: #line 1453 "kimwy.y" { yyval.yt_ac_declarator = AcDeclarator( Yespointer( yyvsp[-1].yt_ac_pointer ), AcNoRef(), yyvsp[0].yt_ac_direct_declarator ); ; break;} case 308: #line 1455 "kimwy.y" { yyval.yt_ac_declarator = AcDeclarator(Nopointer(), AcRef(), yyvsp[0].yt_ac_direct_declarator ); ; break;} case 309: #line 1457 "kimwy.y" { yyval.yt_ac_declarator = AcDeclarator( Yespointer( yyvsp[-2].yt_ac_pointer ), AcRef(), yyvsp[0].yt_ac_direct_declarator ); ; break;} case 310: #line 1462 "kimwy.y" { yyval.yt_ac_declarator = AcDeclarator( Nopointer(), AcNoRef(), yyvsp[0].yt_ac_direct_declarator ); ; break;} case 311: #line 1464 "kimwy.y" { yyval.yt_ac_declarator = AcDeclarator( Yespointer( yyvsp[-1].yt_ac_pointer ), AcNoRef(), yyvsp[0].yt_ac_direct_declarator ); ; break;} case 312: #line 1466 "kimwy.y" { yyval.yt_ac_declarator = AcDeclarator( Nopointer(), AcRef(), yyvsp[0].yt_ac_direct_declarator ); ; break;} case 313: #line 1468 "kimwy.y" { yyval.yt_ac_declarator = AcDeclarator( Yespointer( yyvsp[-2].yt_ac_pointer ), AcRef(), yyvsp[0].yt_ac_direct_declarator ); ; break;} case 314: #line 1473 "kimwy.y" { yyval.yt_ac_declarator = AcDeclarator( Yespointer( yyvsp[-1].yt_ac_pointer ), AcNoRef(), yyvsp[0].yt_ac_direct_declarator ); ; break;} case 315: #line 1475 "kimwy.y" { yyval.yt_ac_declarator = AcDeclarator( Yespointer( yyvsp[-2].yt_ac_pointer ), AcRef(), yyvsp[0].yt_ac_direct_declarator ); ; break;} case 316: #line 1480 "kimwy.y" { yyval.yt_ac_direct_declarator = AcDirectDeclId( yyvsp[0].yt_ID ); ; break;} case 317: #line 1482 "kimwy.y" { yyval.yt_ac_direct_declarator = AcDirectDeclPack( yyvsp[-1].yt_ac_declarator ); ; break;} case 318: #line 1484 "kimwy.y" { yyval.yt_ac_direct_declarator = AcDirectDeclArray( yyvsp[-3].yt_ac_direct_declarator, yyvsp[-1].yt_ac_constant_expression_option ); ; break;} case 319: #line 1486 "kimwy.y" { yyval.yt_ac_direct_declarator = AcDirectDeclProto( yyvsp[-3].yt_ac_direct_declarator, yyvsp[-1].yt_ac_parameter_type_list ); ; break;} case 320: #line 1491 "kimwy.y" { yyval.yt_ac_direct_declarator = AcMemberDecl( yyvsp[-3].yt_ID, yyvsp[-1].yt_ID, yyvsp[0].yt_ac_constant_expression_list ); ; break;} case 321: #line 1496 "kimwy.y" { yyval.yt_ac_constant_expression_list=Nilac_constant_expression_list(); ; break;} case 322: #line 1498 "kimwy.y" { yyval.yt_ac_constant_expression_list=Consac_constant_expression_list(yyvsp[-1].yt_ac_constant_expression,yyvsp[-3].yt_ac_constant_expression_list); ; break;} case 323: #line 1503 "kimwy.y" { ac_direct_declarator decl=NULL; ac_class_qualifier_list q=f_check_build_qualifier(yyvsp[-4].yt_ac_class_qualifier_help_list,decl); yyval.yt_ac_direct_declarator = AcQualifiedDeclProto( q, decl, yyvsp[-2].yt_ac_parameter_type_list ,yyvsp[0].yt_ac_type_qualifier ); ; break;} case 324: #line 1509 "kimwy.y" { ac_direct_declarator decl=NULL; ac_class_qualifier_list q=f_check_build_qualifier(yyvsp[-4].yt_ac_class_qualifier_help_list,decl); yyval.yt_ac_direct_declarator = AcQualifiedDeclProto( q, decl, AcParList( Nilac_parameter_list() ),yyvsp[0].yt_ac_type_qualifier ); yyerrok; ; break;} case 325: #line 1519 "kimwy.y" { yyval.yt_ac_class_qualifier_help_list=Consac_class_qualifier_help_list(yyvsp[0].yt_ac_direct_declarator,Nilac_class_qualifier_help_list()); ; break;} case 326: #line 1521 "kimwy.y" { yyval.yt_ac_class_qualifier_help_list=Consac_class_qualifier_help_list(yyvsp[0].yt_ac_direct_declarator,yyvsp[-2].yt_ac_class_qualifier_help_list); ; break;} case 327: #line 1526 "kimwy.y" { yyval.yt_ac_direct_declarator=AcDirectDeclId(yyvsp[0].yt_ID); ; break;} case 328: #line 1528 "kimwy.y" { ac_operator_name op_name=AcOperatorName(yyvsp[0].yt_casestring); pf_setfileline( op_name ); yyval.yt_ac_direct_declarator=AcOperatorDeclId(op_name); ; break;} case 329: #line 1537 "kimwy.y" { yyval.yt_ac_type_qualifier=AcNoQualifier(); ; break;} case 330: #line 1539 "kimwy.y" { yyval.yt_ac_type_qualifier=AcConst(); ; break;} case 331: #line 1544 "kimwy.y" { yyval.yt_ac_pointer = AcPointerNil( Nilac_type_qualifier_list() ); ; break;} case 332: #line 1546 "kimwy.y" { yyval.yt_ac_pointer = AcPointerNil( yyvsp[0].yt_ac_type_qualifier_list ); ; break;} case 333: #line 1548 "kimwy.y" { yyval.yt_ac_pointer = AcPointerCons( Nilac_type_qualifier_list(), yyvsp[0].yt_ac_pointer ); ; break;} case 334: #line 1550 "kimwy.y" { yyval.yt_ac_pointer = AcPointerCons( yyvsp[-1].yt_ac_type_qualifier_list, yyvsp[0].yt_ac_pointer ); ; break;} case 335: #line 1555 "kimwy.y" { yyval.yt_ac_type_qualifier_list = Consac_type_qualifier_list( yyvsp[0].yt_ac_type_qualifier, Nilac_type_qualifier_list() ); ; break;} case 336: #line 1557 "kimwy.y" { yyval.yt_ac_type_qualifier_list = Consac_type_qualifier_list( yyvsp[0].yt_ac_type_qualifier, yyvsp[-1].yt_ac_type_qualifier_list ); ; break;} case 337: #line 1562 "kimwy.y" { yyval.yt_ac_parameter_type_list = AcParList( Nilac_parameter_list() ); ; break;} case 338: #line 1564 "kimwy.y" { yyval.yt_ac_parameter_type_list = AcParList3Dot( Nilac_parameter_list() ); ; break;} case 339: #line 1566 "kimwy.y" { yyval.yt_ac_parameter_type_list = AcParList( yyvsp[0].yt_ac_parameter_list ); ; break;} case 340: #line 1568 "kimwy.y" { yyval.yt_ac_parameter_type_list = AcParList3Dot( yyvsp[-1].yt_ac_parameter_list ); ; break;} case 341: #line 1570 "kimwy.y" { yyval.yt_ac_parameter_type_list = AcParList3Dot( yyvsp[-2].yt_ac_parameter_list ); ; break;} case 342: #line 1575 "kimwy.y" { yyval.yt_ac_parameter_list = Consac_parameter_list( yyvsp[0].yt_ac_parameter_declaration, Nilac_parameter_list() ); ; break;} case 343: #line 1577 "kimwy.y" { yyval.yt_ac_parameter_list = Consac_parameter_list( yyvsp[0].yt_ac_parameter_declaration, yyvsp[-2].yt_ac_parameter_list ); ; break;} case 344: #line 1582 "kimwy.y" { yyval.yt_ac_parameter_declaration = AcParDeclDecl( yyvsp[-2].yt_ac_declaration_specifiers, yyvsp[-1].yt_ac_declarator, yyvsp[0].yt_ac_constant_expression_option ); ; break;} case 345: #line 1584 "kimwy.y" { yyval.yt_ac_parameter_declaration = AcParDeclAbsdecl( yyvsp[-2].yt_ac_declaration_specifiers, yyvsp[-1].yt_ac_abstract_declarator, yyvsp[0].yt_ac_constant_expression_option ); ; break;} case 346: #line 1589 "kimwy.y" { yyval.yt_ac_abstract_declarator = AcAbsdeclPointer( yyvsp[0].yt_ac_pointer ); ; break;} case 347: #line 1591 "kimwy.y" { yyval.yt_ac_abstract_declarator = AcAbsdeclDirdecl( Nopointer(), yyvsp[0].yt_ac_direct_abstract_declarator ); ; break;} case 348: #line 1593 "kimwy.y" { yyval.yt_ac_abstract_declarator = AcAbsdeclDirdecl( Yespointer( yyvsp[-1].yt_ac_pointer ), yyvsp[0].yt_ac_direct_abstract_declarator ); ; break;} case 349: #line 1598 "kimwy.y" { yyval.yt_ac_direct_abstract_declarator = AcDirAbsdeclPack( yyvsp[-1].yt_ac_abstract_declarator ); ; break;} case 350: #line 1600 "kimwy.y" { yyval.yt_ac_direct_abstract_declarator = AcDirAbsdeclArray( Yesac_direct_abstract_declarator( yyvsp[-3].yt_ac_direct_abstract_declarator ), yyvsp[-1].yt_ac_constant_expression_option ); ; break;} case 351: #line 1602 "kimwy.y" { yyval.yt_ac_direct_abstract_declarator = AcDirAbsdeclArray( Noac_direct_abstract_declarator(), yyvsp[-1].yt_ac_constant_expression_option ); ; break;} case 352: #line 1604 "kimwy.y" { yyval.yt_ac_direct_abstract_declarator = AcDirAbsdeclFn( Yesac_direct_abstract_declarator( yyvsp[-3].yt_ac_direct_abstract_declarator ), yyvsp[-1].yt_ac_parameter_type_list ); ; break;} case 353: #line 1606 "kimwy.y" { yyval.yt_ac_direct_abstract_declarator = AcDirAbsdeclFn( Noac_direct_abstract_declarator(), yyvsp[-1].yt_ac_parameter_type_list ); ; break;} case 354: #line 1614 "kimwy.y" { yyval.yt_ac_constant_expression_option = Yesac_constant_expression( yyvsp[0].yt_ac_constant_expression ); ; break;} case 355: #line 1617 "kimwy.y" { do_CEXPR(); ; break;} case 356: #line 1619 "kimwy.y" { do_NORMAL(); yyval.yt_ac_constant_expression = AcConstExpr( yyvsp[0].yt_Cexpression ); ; break;} case 357: #line 1625 "kimwy.y" { yyval.yt_ID = yyvsp[0].yt_ID; ; break;} case 358: #line 1627 "kimwy.y" { yyval.yt_ID = yyvsp[0].yt_ID; pf_setwithvariable( yyvsp[0].yt_ID ); ; break;} case 359: #line 1632 "kimwy.y" { yyval.yt_Ctext = yyvsp[0].yt_Ctext; ; break;} case 360: #line 1633 "kimwy.y" { yyerrok; ; break;} case 361: #line 1633 "kimwy.y" { yyval.yt_Ctext = yyvsp[0].yt_Ctext; ; break;} case 362: #line 1638 "kimwy.y" { yyerrok; yyval.yt_languageoption = LanguageList(yyvsp[-2].yt_languagenames); ; break;} case 363: #line 1640 "kimwy.y" { yyerrok; yyval.yt_languageoption = NoLanguagename(); ; break;} case 364: #line 1645 "kimwy.y" { yyval.yt_languagenames = Conslanguagenames( yyvsp[0].yt_ID, Nillanguagenames()); ; break;} case 365: #line 1647 "kimwy.y" { yyerrok; yyval.yt_languagenames = Conslanguagenames( yyvsp[0].yt_ID, yyvsp[-2].yt_languagenames ); ; break;} case 366: #line 1649 "kimwy.y" { yyval.yt_languagenames = Nillanguagenames(); ; break;} case 367: #line 1651 "kimwy.y" { yyval.yt_languagenames = yyvsp[-1].yt_languagenames; ; break;} case 368: #line 1653 "kimwy.y" { yyval.yt_languagenames = yyvsp[-2].yt_languagenames; ; break;} case 369: #line 1655 "kimwy.y" { yyerrok; yyval.yt_languagenames = Conslanguagenames( yyvsp[0].yt_ID, yyvsp[-2].yt_languagenames ); ; break;} case 370: #line 1660 "kimwy.y" { yyerrok; yyval.yt_languagenames = yyvsp[-1].yt_languagenames; pg_languageshavebeendefined = true; ; break;} case 371: #line 1662 "kimwy.y" { yyerrok; yyval.yt_languagenames = Nillanguagenames(); ; break;} case 372: #line 1667 "kimwy.y" { yyval.yt_languagenames = Conslanguagenames( yyvsp[0].yt_ID, Nillanguagenames()); ; break;} case 373: #line 1669 "kimwy.y" { yyval.yt_languagenames = Conslanguagenames( yyvsp[0].yt_ID, yyvsp[-1].yt_languagenames ); ; break;} case 374: #line 1671 "kimwy.y" { yyval.yt_languagenames = Conslanguagenames( yyvsp[0].yt_ID, yyvsp[-2].yt_languagenames ); ; break;} case 375: #line 1673 "kimwy.y" { yyval.yt_languagenames = yyvsp[-1].yt_languagenames; ; break;} case 376: #line 1675 "kimwy.y" { yyval.yt_languagenames = yyvsp[-2].yt_languagenames; ; break;} } #line 705 "/usr/local/share/bison/bison.simple" yyvsp -= yylen; yyssp -= yylen; #if YYLSP_NEEDED yylsp -= yylen; #endif #if YYDEBUG if (yydebug) { short *yyssp1 = yyss - 1; YYFPRINTF (stderr, "state stack now"); while (yyssp1 != yyssp) YYFPRINTF (stderr, " %d", *++yyssp1); YYFPRINTF (stderr, "\n"); } #endif *++yyvsp = yyval; #if YYLSP_NEEDED *++yylsp = yyloc; #endif /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTBASE] + *yyssp; if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTBASE]; goto yynewstate; /*------------------------------------. | yyerrlab -- here on detecting error | `------------------------------------*/ yyerrlab: /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #ifdef YYERROR_VERBOSE yyn = yypact[yystate]; if (yyn > YYFLAG && yyn < YYLAST) { YYSIZE_T yysize = 0; char *yymsg; int yyx, yycount; yycount = 0; /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. */ for (yyx = yyn < 0 ? -yyn : 0; yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++) if (yycheck[yyx + yyn] == yyx) yysize += yystrlen (yytname[yyx]) + 15, yycount++; yysize += yystrlen ("parse error, unexpected ") + 1; yysize += yystrlen (yytname[YYTRANSLATE (yychar)]); yymsg = (char *) YYSTACK_ALLOC (yysize); if (yymsg != 0) { char *yyp = yystpcpy (yymsg, "parse error, unexpected "); yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]); if (yycount < 5) { yycount = 0; for (yyx = yyn < 0 ? -yyn : 0; yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++) if (yycheck[yyx + yyn] == yyx) { const char *yyq = ! yycount ? ", expecting " : " or "; yyp = yystpcpy (yyp, yyq); yyp = yystpcpy (yyp, yytname[yyx]); yycount++; } } yyerror (yymsg); YYSTACK_FREE (yymsg); } else yyerror ("parse error; also virtual memory exhausted"); } else #endif /* defined (YYERROR_VERBOSE) */ yyerror ("parse error"); } goto yyerrlab1; /*--------------------------------------------------. | yyerrlab1 -- error raised explicitly by an action | `--------------------------------------------------*/ yyerrlab1: if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ /* return failure if at end of input */ if (yychar == YYEOF) YYABORT; YYDPRINTF ((stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1])); yychar = YYEMPTY; } /* Else will try to reuse lookahead token after shifting the error token. */ yyerrstatus = 3; /* Each real token shifted decrements this */ goto yyerrhandle; /*-------------------------------------------------------------------. | yyerrdefault -- current state does not do anything special for the | | error token. | `-------------------------------------------------------------------*/ yyerrdefault: #if 0 /* This is wrong; only states that explicitly want error tokens should shift them. */ /* If its default is to accept any token, ok. Otherwise pop it. */ yyn = yydefact[yystate]; if (yyn) goto yydefault; #endif /*---------------------------------------------------------------. | yyerrpop -- pop the current state because it cannot handle the | | error token | `---------------------------------------------------------------*/ yyerrpop: if (yyssp == yyss) YYABORT; yyvsp--; yystate = *--yyssp; #if YYLSP_NEEDED yylsp--; #endif #if YYDEBUG if (yydebug) { short *yyssp1 = yyss - 1; YYFPRINTF (stderr, "Error: state stack now"); while (yyssp1 != yyssp) YYFPRINTF (stderr, " %d", *++yyssp1); YYFPRINTF (stderr, "\n"); } #endif /*--------------. | yyerrhandle. | `--------------*/ yyerrhandle: yyn = yypact[yystate]; if (yyn == YYFLAG) goto yyerrdefault; yyn += YYTERROR; if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR) goto yyerrdefault; yyn = yytable[yyn]; if (yyn < 0) { if (yyn == YYFLAG) goto yyerrpop; yyn = -yyn; goto yyreduce; } else if (yyn == 0) goto yyerrpop; if (yyn == YYFINAL) YYACCEPT; YYDPRINTF ((stderr, "Shifting error token, ")); *++yyvsp = yylval; #if YYLSP_NEEDED *++yylsp = yylloc; #endif yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; /*---------------------------------------------. | yyoverflowab -- parser overflow comes here. | `---------------------------------------------*/ yyoverflowlab: yyerror ("parser stack overflow"); yyresult = 2; /* Fall through. */ yyreturn: #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif return yyresult; } #line 1678 "kimwy.y" #include "errmsg.inc" void yyerror_1(const char *s, int state_no) { extern int yychar; extern char yytext[]; int rule_pos, i; v_report( NonFatal( PosNoFileLine(), Problem1S( s ))); for (rule_pos = error_state[state_no]; error_rules[rule_pos][0] != 0; rule_pos++) { int rule = error_rules[rule_pos][0]; int rhs = yyprhs[rule+1]; int pos = error_rules[rule_pos][1]; fprintf(stderr, "\t%s ->", yytname[yyr1[rule+1]]); for (i = 0; yyrhs[rhs+i] != -1; i++) { if (i == pos) fprintf(stderr, " ."); fprintf(stderr, " %s", yytname[yyrhs[rhs+i]]); } if (i == pos) fprintf(stderr, " ."); fprintf(stderr, "\n"); } if (strlen(yytext) > 0) fprintf(stderr, "\ttoken last read was: '%s'\n", yytext); throw 22; } // vim:sts=4:ts=8:cino=g0,t0,\:0