/* A Bison parser, made from parser.bison by GNU Bison version 1.28 */ #define YYBISON 1 /* Identify Bison output. */ #define tFLOAT 257 #define tSTRING 258 #define tFILENAME 259 #define tAPERTURE 260 #define tAPPLYSURF 261 #define tBACKGROUND 262 #define tBLOB 263 #define tBLOTCH 264 #define tBOX 265 #define tBUMP 266 #define tCONE 267 #define tCYL 268 #define tDIRECTIONAL 269 #define tCURSURF 270 #define tEXTENDED 271 #define tEYEP 272 #define tFBM 273 #define tFBMBUMP 274 #define tFOCALDIST 275 #define tFOG 276 #define tFOGDECK 277 #define tFOV 278 #define tGLOSS 279 #define tGRID 280 #define tHEIGHTFIELD 281 #define tLIGHT 282 #define tLIST 283 #define tLOOKP 284 #define tMARBLE 285 #define tMAXDEPTH 286 #define tMIST 287 #define tJITTER 288 #define tNOJITTER 289 #define tDEFINE 290 #define tOBJECT 291 #define tOUTFILE 292 #define tSKY 293 #define tDISC 294 #define tDIFFERENCE 295 #define tUNION 296 #define tINTERSECT 297 #define tPLANE 298 #define tPOINT 299 #define tPOLY 300 #define tROTATE 301 #define tSPOT 302 #define tPRINT 303 #define tSCALE 304 #define tSCREEN 305 #define tSPHERE 306 #define tSURFACE 307 #define tTHRESH 308 #define tTRANSLATE 309 #define tTRANSFORM 310 #define tTRIANGLE 311 #define tTRIANGLEUV 312 #define tUP 313 #define tEND 314 #define tTEXTURE 315 #define tCHECKER 316 #define tWOOD 317 #define tCONTRAST 318 #define tCUTOFF 319 #define tCLOUD 320 #define tAMBIENT 321 #define tDIFFUSE 322 #define tREFLECT 323 #define tTRANSP 324 #define tSPECULAR 325 #define tSPECPOW 326 #define tINDEX 327 #define tATMOSPHERE 328 #define tNOSHADOW 329 #define tAREA 330 #define tTRANSLU 331 #define tTORUS 332 #define tEYESEP 333 #define tSHADOWTRANSP 334 #define tREPORT 335 #define tVERBOSE 336 #define tQUIET 337 #define tWINDOW 338 #define tCROP 339 #define tSTRIPE 340 #define tMAP 341 #define tUV 342 #define tSPHERICAL 343 #define tCYLINDRICAL 344 #define tPLANAR 345 #define tIMAGE 346 #define tSMOOTH 347 #define tCOMPONENT 348 #define tTEXTSURF 349 #define tRANGE 350 #define tTILE 351 #define tSTARTTIME 352 #define tFRAMELENGTH 353 #define tNAME 354 #define tFILTER 355 #define tGAUSS 356 #define tBODY 357 #define tSAMPLE 358 #define tEXTINCT 359 #define tWINDY 360 #define tMOUNT 361 #define tSHUTTER 362 #define tFRAMES 363 #define UMINUS 364 #line 17 "parser.bison" #include #include #include #define _RAYSHADE_PARSER_SOURCE_ #include "parser.H" #define yyparse rayshade_parser::yyparse #define yylex rayshade_parser::yylex #define yyerror rayshade_parser::yyerror #define yylval rayshade_parser::yylval #define yychar rayshade_parser::yychar #define yydebug rayshade_parser::yydebug #define yynerrs rayshade_parser::yynerrs #define YYSTYPE DUPLICATE_YYSTYPE #define YY_OMIT_DECLS #line 38 "parser.bison" typedef union { char *s; int i; float f; Vector v; Vec2d uv; Color c; class SFNode* sfnode; class MFNode* mfnode; class MFVec3f* mfvec3f; } YYSTYPE; #include #ifndef __cplusplus #ifndef __STDC__ #define const #endif #endif #define YYFINAL 531 #define YYFLAG -32768 #define YYNTBASE 120 #define YYTRANSLATE(x) ((unsigned)(x) <= 364 ? yytranslate[x] : 237) static const char yytranslate[] = { 0, 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, 114, 2, 2, 117, 118, 112, 110, 119, 111, 2, 113, 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, 116, 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, 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, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 115 }; #if YYDEBUG != 0 static const short yyprhs[] = { 0, 0, 1, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 72, 76, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 108, 111, 112, 114, 116, 118, 120, 123, 124, 128, 131, 135, 138, 140, 143, 151, 160, 167, 169, 172, 181, 189, 191, 197, 207, 212, 215, 218, 221, 222, 225, 229, 232, 236, 238, 240, 244, 247, 250, 251, 253, 258, 263, 269, 280, 294, 298, 301, 304, 308, 311, 315, 319, 322, 326, 329, 333, 336, 339, 342, 345, 348, 353, 356, 360, 366, 372, 378, 383, 388, 392, 394, 395, 397, 398, 401, 404, 407, 410, 413, 415, 417, 420, 424, 432, 441, 445, 449, 454, 460, 468, 471, 474, 476, 477, 479, 481, 483, 485, 487, 491, 495, 497, 499, 502, 506, 509, 512, 513, 515, 517, 519, 521, 523, 525, 527, 529, 531, 533, 535, 538, 541, 544, 547, 550, 553, 556, 559, 562, 567, 569, 573, 576, 580, 581, 584, 586, 588, 592, 594, 596, 598, 600, 602, 607, 609, 611, 613, 615, 622, 628, 633, 639, 644, 650, 659, 671, 676, 683, 688, 689, 692, 698, 701, 704, 708, 711, 712, 714, 720, 724, 733, 737, 741, 744, 746, 747, 750, 752, 754, 759, 761, 766, 768, 773, 775, 777, 779, 781, 783, 785, 787, 789, 791, 793, 795, 798, 802, 804, 806, 808, 810, 812, 816, 818, 820, 825, 832, 841, 852, 865, 869, 873, 877, 881, 885, 889, 892, 895, 899, 901, 902, 906, 907, 911, 913, 915 }; static const short yyrhs[] = { -1, 120, 121, 0, 140, 0, 141, 0, 142, 0, 143, 0, 152, 0, 153, 0, 154, 0, 155, 0, 158, 0, 159, 0, 160, 0, 161, 0, 144, 0, 145, 0, 150, 0, 151, 0, 162, 0, 163, 0, 164, 0, 175, 0, 167, 0, 212, 0, 122, 0, 126, 0, 213, 0, 226, 0, 147, 0, 146, 0, 149, 0, 148, 0, 225, 0, 123, 0, 136, 137, 129, 0, 124, 137, 129, 0, 193, 137, 129, 0, 125, 0, 207, 0, 203, 0, 205, 0, 206, 0, 202, 0, 201, 0, 190, 0, 189, 0, 204, 0, 208, 0, 209, 0, 100, 4, 123, 0, 127, 128, 0, 0, 122, 0, 175, 0, 167, 0, 126, 0, 129, 130, 0, 0, 61, 131, 137, 0, 62, 169, 0, 10, 228, 169, 0, 12, 228, 0, 31, 0, 31, 235, 0, 19, 228, 228, 228, 228, 227, 228, 0, 19, 228, 228, 228, 228, 227, 228, 235, 0, 20, 228, 228, 228, 228, 227, 0, 63, 0, 25, 228, 0, 66, 228, 228, 228, 227, 228, 228, 228, 0, 39, 228, 228, 228, 227, 228, 228, 0, 132, 0, 86, 169, 228, 228, 220, 0, 106, 228, 228, 228, 228, 227, 228, 228, 228, 0, 107, 235, 228, 228, 0, 133, 134, 0, 92, 235, 0, 134, 135, 0, 0, 94, 223, 0, 97, 228, 228, 0, 95, 169, 0, 96, 228, 228, 0, 93, 0, 221, 0, 37, 169, 4, 0, 37, 4, 0, 137, 138, 0, 0, 139, 0, 50, 229, 229, 229, 0, 55, 229, 229, 229, 0, 47, 229, 229, 229, 229, 0, 56, 229, 229, 229, 229, 229, 229, 229, 229, 229, 0, 56, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 0, 18, 218, 137, 0, 30, 218, 0, 59, 218, 0, 24, 228, 228, 0, 24, 228, 0, 104, 227, 34, 0, 104, 227, 35, 0, 104, 227, 0, 101, 11, 228, 0, 101, 11, 0, 101, 102, 228, 0, 101, 102, 0, 98, 228, 0, 109, 227, 0, 99, 228, 0, 108, 228, 0, 64, 228, 228, 228, 0, 65, 224, 0, 51, 227, 227, 0, 84, 227, 227, 227, 227, 0, 85, 228, 228, 228, 228, 0, 81, 156, 157, 227, 235, 0, 81, 156, 157, 227, 0, 81, 156, 157, 235, 0, 81, 156, 157, 0, 82, 0, 0, 83, 0, 0, 6, 228, 0, 21, 228, 0, 79, 228, 0, 32, 227, 0, 8, 217, 0, 80, 0, 165, 0, 165, 75, 0, 28, 224, 67, 0, 166, 76, 218, 218, 227, 218, 227, 0, 166, 76, 218, 218, 227, 218, 227, 75, 0, 166, 45, 218, 0, 166, 15, 218, 0, 166, 17, 228, 218, 0, 166, 48, 218, 218, 228, 0, 166, 48, 218, 218, 228, 228, 228, 0, 28, 224, 0, 7, 169, 0, 169, 0, 0, 170, 0, 171, 0, 174, 0, 4, 0, 16, 0, 172, 177, 176, 0, 173, 177, 176, 0, 4, 0, 16, 0, 177, 176, 0, 53, 4, 169, 0, 53, 4, 0, 176, 177, 0, 0, 178, 0, 179, 0, 180, 0, 183, 0, 181, 0, 184, 0, 185, 0, 182, 0, 186, 0, 187, 0, 188, 0, 67, 217, 0, 68, 217, 0, 71, 217, 0, 103, 217, 0, 105, 228, 0, 72, 228, 0, 69, 228, 0, 70, 228, 0, 73, 228, 0, 77, 228, 217, 228, 0, 75, 0, 27, 169, 235, 0, 27, 235, 0, 46, 168, 191, 0, 0, 191, 192, 0, 218, 0, 194, 0, 195, 127, 60, 0, 196, 0, 197, 0, 198, 0, 199, 0, 29, 0, 26, 227, 227, 227, 0, 200, 0, 42, 0, 43, 0, 41, 0, 13, 168, 228, 218, 228, 218, 0, 14, 168, 228, 218, 218, 0, 52, 168, 228, 218, 0, 40, 168, 228, 218, 218, 0, 11, 168, 218, 218, 0, 57, 168, 218, 218, 218, 0, 57, 168, 218, 218, 218, 218, 218, 218, 0, 58, 168, 218, 218, 219, 218, 218, 219, 218, 218, 219, 0, 44, 168, 218, 218, 0, 78, 168, 228, 228, 218, 218, 0, 9, 168, 228, 210, 0, 0, 210, 211, 0, 228, 228, 228, 228, 228, 0, 38, 235, 0, 74, 214, 0, 74, 227, 214, 0, 214, 215, 0, 0, 216, 0, 33, 217, 217, 228, 228, 0, 22, 217, 217, 0, 23, 228, 228, 218, 228, 227, 217, 217, 0, 228, 228, 228, 0, 228, 228, 228, 0, 228, 228, 0, 221, 0, 0, 87, 222, 0, 88, 0, 89, 0, 89, 218, 218, 218, 0, 90, 0, 90, 218, 218, 218, 0, 91, 0, 91, 218, 218, 218, 0, 67, 0, 68, 0, 103, 0, 71, 0, 69, 0, 70, 0, 72, 0, 12, 0, 73, 0, 228, 0, 217, 0, 49, 228, 0, 36, 4, 229, 0, 228, 0, 232, 0, 230, 0, 232, 0, 230, 0, 117, 231, 118, 0, 3, 0, 4, 0, 236, 117, 231, 118, 0, 236, 117, 231, 119, 231, 118, 0, 236, 117, 231, 119, 231, 119, 231, 118, 0, 236, 117, 231, 119, 231, 119, 231, 119, 231, 118, 0, 236, 117, 231, 119, 231, 119, 231, 119, 231, 119, 231, 118, 0, 117, 231, 118, 0, 231, 110, 231, 0, 231, 111, 231, 0, 231, 112, 231, 0, 231, 113, 231, 0, 231, 114, 231, 0, 111, 231, 0, 110, 231, 0, 231, 116, 231, 0, 3, 0, 0, 111, 3, 233, 0, 0, 110, 3, 234, 0, 4, 0, 5, 0, 4, 0 }; #endif #if YYDEBUG != 0 static const short yyrline[] = { 0, 84, 85, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 119, 124, 128, 132, 137, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 151, 156, 157, 159, 160, 161, 162, 164, 165, 167, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 189, 191, 193, 194, 196, 197, 198, 199, 200, 201, 203, 207, 212, 213, 215, 217, 221, 225, 229, 235, 243, 248, 253, 258, 262, 267, 269, 271, 274, 278, 282, 286, 291, 296, 301, 306, 311, 314, 317, 320, 323, 326, 328, 330, 332, 335, 337, 339, 341, 343, 348, 353, 358, 361, 366, 369, 370, 371, 375, 376, 378, 379, 380, 381, 382, 384, 389, 394, 395, 397, 398, 399, 401, 405, 410, 411, 413, 418, 423, 425, 429, 434, 435, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 449, 451, 453, 455, 457, 459, 461, 463, 465, 467, 469, 472, 476, 481, 486, 490, 496, 501, 503, 508, 510, 511, 512, 514, 519, 524, 526, 530, 534, 539, 544, 549, 554, 559, 564, 568, 574, 581, 586, 591, 596, 597, 599, 602, 605, 609, 614, 615, 617, 619, 620, 621, 623, 628, 633, 638, 639, 641, 643, 644, 645, 646, 647, 648, 649, 651, 652, 653, 654, 655, 656, 657, 658, 659, 661, 662, 664, 667, 672, 677, 678, 680, 681, 683, 688, 689, 693, 697, 701, 705, 709, 714, 718, 722, 726, 730, 734, 738, 742, 746, 751, 755, 756, 759, 760, 764, 765, 767 }; #endif #if YYDEBUG != 0 || defined (YYERROR_VERBOSE) static const char * const yytname[] = { "$","error","$undefined.","tFLOAT", "tSTRING","tFILENAME","tAPERTURE","tAPPLYSURF","tBACKGROUND","tBLOB","tBLOTCH", "tBOX","tBUMP","tCONE","tCYL","tDIRECTIONAL","tCURSURF","tEXTENDED","tEYEP", "tFBM","tFBMBUMP","tFOCALDIST","tFOG","tFOGDECK","tFOV","tGLOSS","tGRID","tHEIGHTFIELD", "tLIGHT","tLIST","tLOOKP","tMARBLE","tMAXDEPTH","tMIST","tJITTER","tNOJITTER", "tDEFINE","tOBJECT","tOUTFILE","tSKY","tDISC","tDIFFERENCE","tUNION","tINTERSECT", "tPLANE","tPOINT","tPOLY","tROTATE","tSPOT","tPRINT","tSCALE","tSCREEN","tSPHERE", "tSURFACE","tTHRESH","tTRANSLATE","tTRANSFORM","tTRIANGLE","tTRIANGLEUV","tUP", "tEND","tTEXTURE","tCHECKER","tWOOD","tCONTRAST","tCUTOFF","tCLOUD","tAMBIENT", "tDIFFUSE","tREFLECT","tTRANSP","tSPECULAR","tSPECPOW","tINDEX","tATMOSPHERE", "tNOSHADOW","tAREA","tTRANSLU","tTORUS","tEYESEP","tSHADOWTRANSP","tREPORT", "tVERBOSE","tQUIET","tWINDOW","tCROP","tSTRIPE","tMAP","tUV","tSPHERICAL","tCYLINDRICAL", "tPLANAR","tIMAGE","tSMOOTH","tCOMPONENT","tTEXTSURF","tRANGE","tTILE","tSTARTTIME", "tFRAMELENGTH","tNAME","tFILTER","tGAUSS","tBODY","tSAMPLE","tEXTINCT","tWINDY", "tMOUNT","tSHUTTER","tFRAMES","'+'","'-'","'*'","'/'","'%'","UMINUS","'^'","'('", "')'","','","Items","Item","Instance","TransTextObj","Primitive","PrimType", "NameObject","Aggdefs","Aggdef","Textures","Texture","Texturetype","ImageText", "ImageTextType","ImageTextOptions","ImageTextOption","NamedObject","Transforms", "PostTransform","TransformType","Eyep","Lookp","Up","Fov","Sample","Filter", "Starttime","Frames","Framelength","Shutter","Contrast","Cutoff","Screen","Window", "Crop","Report","Verbose","Quiet","Aperture","Focaldist","Eyesep","Maxdepth", "Background","Shadowtransp","Light","LightType","Lightdef","CurSurf","OptSurface", "Surface","NamedSurf","ModifyNamedSurf","CopyNamedSurf","CopyCurSurf","SurfSpec", "SurfDef","SurfComponents","SurfComponent","Ambient","Diffuse","Specular","Body", "Extinct","Specpow","Reflect","Transp","Index","Translu","Noshadow","HeightField", "Poly","Polypoints","Polypoint","Aggregate","AggregateDef","AggregateCreate", "AggregateType","List","Grid","Csg","CombineOp","Cone","Cylinder","Sphere","Disc", "Box","Triangle","Plane","Torus","Blob","MetaPoints","MetaPoint","Outfile","GlobalEffects", "Effects","Effect","EffectType","Color","Vector","Vec2d","OptMapping","Mapping", "MapMethod","SurfCompName","Intensity","Print","Define","IExpr","Expr","AnimExpr", "ParenExpr","MExpr","Float","@1","@2","Filename","Symtabent", NULL }; #endif static const short yyr1[] = { 0, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 122, 123, 123, 123, 124, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 126, 127, 127, 128, 128, 128, 128, 129, 129, 130, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 132, 133, 134, 134, 135, 135, 135, 135, 135, 135, 136, 136, 137, 137, 138, 139, 139, 139, 139, 139, 140, 141, 142, 143, 143, 144, 144, 144, 145, 145, 145, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 155, 155, 155, 156, 156, 157, 157, 158, 159, 160, 161, 162, 163, 164, 164, 164, 164, 164, 165, 165, 165, 165, 165, 166, 167, 168, 168, 169, 169, 169, 170, 170, 171, 171, 172, 173, 174, 175, 175, 176, 176, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 189, 190, 191, 191, 192, 193, 194, 195, 196, 196, 196, 197, 198, 199, 200, 200, 200, 201, 202, 203, 204, 205, 206, 206, 206, 207, 208, 209, 210, 210, 211, 212, 213, 213, 214, 214, 215, 216, 216, 216, 217, 218, 219, 220, 220, 221, 222, 222, 222, 222, 222, 222, 222, 223, 223, 223, 223, 223, 223, 223, 223, 223, 224, 224, 225, 226, 227, 228, 228, 229, 229, 230, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 232, 233, 232, 234, 232, 235, 235, 236 }; static const short yyr2[] = { 0, 0, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 0, 1, 1, 1, 1, 2, 0, 3, 2, 3, 2, 1, 2, 7, 8, 6, 1, 2, 8, 7, 1, 5, 9, 4, 2, 2, 2, 0, 2, 3, 2, 3, 1, 1, 3, 2, 2, 0, 1, 4, 4, 5, 10, 13, 3, 2, 2, 3, 2, 3, 3, 2, 3, 2, 3, 2, 2, 2, 2, 2, 4, 2, 3, 5, 5, 5, 4, 4, 3, 1, 0, 1, 0, 2, 2, 2, 2, 2, 1, 1, 2, 3, 7, 8, 3, 3, 4, 5, 7, 2, 2, 1, 0, 1, 1, 1, 1, 1, 3, 3, 1, 1, 2, 3, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 1, 3, 2, 3, 0, 2, 1, 1, 3, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 6, 5, 4, 5, 4, 5, 8, 11, 4, 6, 4, 0, 2, 5, 2, 2, 3, 2, 0, 1, 5, 3, 8, 3, 3, 2, 1, 0, 2, 1, 1, 4, 1, 4, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 3, 1, 1, 4, 6, 8, 10, 12, 3, 3, 3, 3, 3, 3, 2, 2, 3, 1, 0, 3, 0, 3, 1, 1, 1 }; static const short yydefact[] = { 1, 0, 0, 0, 0, 144, 144, 144, 144, 0, 0, 0, 0, 0, 0, 193, 0, 0, 0, 0, 0, 144, 198, 196, 197, 144, 144, 0, 0, 144, 0, 144, 144, 0, 0, 0, 217, 144, 0, 130, 122, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 25, 34, 89, 38, 26, 89, 3, 4, 5, 6, 15, 16, 30, 29, 32, 31, 17, 18, 7, 8, 9, 10, 11, 12, 13, 14, 19, 20, 21, 131, 0, 23, 22, 46, 45, 89, 187, 52, 189, 190, 191, 192, 195, 44, 43, 40, 47, 41, 42, 39, 48, 49, 24, 27, 33, 28, 270, 0, 0, 0, 125, 250, 249, 148, 149, 0, 0, 0, 0, 0, 0, 0, 180, 0, 0, 0, 142, 145, 146, 0, 0, 147, 158, 159, 160, 161, 163, 166, 162, 164, 165, 167, 168, 169, 129, 0, 0, 143, 0, 0, 0, 89, 0, 126, 100, 0, 248, 275, 276, 0, 182, 245, 141, 244, 97, 128, 0, 87, 0, 275, 213, 0, 0, 184, 246, 0, 0, 156, 0, 0, 98, 0, 113, 214, 217, 0, 127, 121, 124, 0, 0, 108, 110, 0, 105, 107, 103, 111, 109, 58, 58, 132, 0, 0, 0, 0, 0, 58, 0, 273, 271, 254, 255, 0, 0, 0, 0, 0, 170, 171, 176, 177, 172, 175, 178, 0, 173, 174, 158, 158, 154, 0, 210, 0, 0, 0, 96, 0, 99, 0, 181, 133, 247, 252, 251, 86, 0, 0, 183, 114, 0, 155, 0, 0, 0, 0, 0, 0, 216, 218, 215, 0, 123, 120, 0, 0, 50, 104, 106, 101, 102, 0, 0, 0, 0, 36, 88, 90, 35, 137, 0, 136, 0, 0, 37, 188, 53, 56, 51, 55, 54, 274, 272, 268, 267, 0, 0, 0, 0, 0, 0, 0, 253, 0, 0, 150, 151, 157, 222, 209, 203, 0, 0, 223, 194, 0, 207, 185, 186, 201, 0, 0, 112, 0, 0, 0, 0, 118, 119, 0, 0, 0, 0, 0, 0, 0, 57, 138, 0, 0, 261, 262, 263, 264, 265, 266, 269, 0, 179, 211, 0, 0, 200, 202, 204, 0, 0, 220, 0, 0, 0, 117, 115, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 68, 0, 0, 0, 0, 0, 89, 72, 79, 139, 0, 256, 0, 0, 199, 0, 0, 224, 0, 0, 208, 0, 91, 92, 0, 0, 62, 0, 0, 69, 64, 0, 60, 0, 0, 77, 0, 0, 59, 76, 0, 0, 0, 0, 0, 0, 0, 219, 93, 0, 61, 0, 0, 0, 0, 0, 0, 0, 0, 84, 0, 0, 0, 0, 78, 85, 140, 134, 257, 0, 0, 205, 0, 0, 0, 0, 0, 0, 0, 226, 0, 75, 228, 229, 231, 233, 227, 242, 235, 236, 239, 240, 238, 241, 243, 237, 80, 82, 0, 0, 135, 0, 212, 0, 0, 0, 0, 0, 0, 0, 73, 225, 0, 0, 0, 0, 83, 81, 258, 0, 0, 221, 0, 0, 67, 0, 0, 0, 0, 0, 0, 0, 206, 0, 65, 71, 0, 0, 230, 232, 234, 259, 0, 94, 66, 70, 0, 0, 0, 74, 260, 0, 95, 0, 0 }; static const short yydefgoto[] = { 1, 50, 51, 52, 53, 54, 55, 209, 289, 276, 337, 383, 384, 385, 416, 441, 56, 200, 277, 278, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 189, 264, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 147, 148, 128, 129, 130, 131, 132, 83, 231, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 84, 85, 249, 318, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 310, 350, 103, 104, 184, 259, 260, 162, 152, 356, 487, 442, 463, 473, 163, 105, 106, 156, 153, 243, 112, 217, 113, 293, 292, 161, 218 }; static const short yypact[] = {-32768, 837, 20, 581, 20, 581, 581, 581, 581, 20, 20, 20, 20, 201, 20,-32768, 20, 20, 7, 723, 25, 581,-32768,-32768,-32768, 581, 581, 20, 20, 581, 12, 581, 581, 20, 20, 20, 20, 581, 20,-32768, -45, 20, 20, 20, 20, 44, -10, 20, 20, 20,-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -22, 123,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768, 51, 53, 15, -32768,-32768,-32768, 987, 1002, 20, 20, 20, 20, 20, 20, 20,-32768, 20, 20, 20,-32768,-32768,-32768, 1014, 1014,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768,-32768, 20, 20,-32768, 20, 20, 20,-32768, 20,-32768, 20, 20,-32768, 880,-32768, 25, -32768,-32768, -8, 20,-32768,-32768, 20, 893, 57,-32768, -32768, 20, 20,-32768,-32768, 20, 20, 581, 20, 20, -32768, 20,-32768, -16,-32768, 20,-32768,-32768, -14, 20, 20,-32768,-32768, 775, 20, 20, -21,-32768,-32768, 8, 8,-32768, 20, 20, 20, 20, 20, 8, 988,-32768, -32768,-32768, -46, 15, 15, 15, 432, -40,-32768,-32768, -32768,-32768,-32768,-32768,-32768, 20,-32768,-32768,-32768,-32768, 1014, 20,-32768, 20, 20, 20, 8, 20,-32768, 20, -32768,-32768,-32768,-32768,-32768,-32768, 20, 20, 20,-32768, 20,-32768, 20, 20, 20, 20, 20, 20,-32768,-32768, -16, 20,-32768, 47, 20, 20,-32768,-32768,-32768,-32768, -32768, 20, 20, 20, 20, 11,-32768,-32768, 11,-32768, 20,-32768, 20, 20, 11,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768, -35, -35, 470, 15, 15, 15, 15, 15, 15,-32768, 15, 20, 1014, 1014,-32768,-32768, 20, -32768, 20, 20,-32768,-32768, 20,-32768,-32768,-32768,-32768, 20, 20,-32768, 20, 20, 20, 20, 25,-32768, 20, 20, 20, 20, 20, 20, 961,-32768,-32768, 20, 20, -32768, -38, -38, -35, -35, -35, -35, 115,-32768,-32768, 20, 20,-32768,-32768, 20, 20, 20,-32768, 20, 20, 20,-32768,-32768,-32768, 20, 20, 20, 20, 20, 20, 20, 20, 20, 25, 20, 581,-32768, 20, 581, 25, 20, 25,-32768,-32768,-32768, 20, 20,-32768, 15, 20, -32768, 20, 20,-32768, 20, 20,-32768, 20,-32768,-32768, 20, 581,-32768, 20, 20,-32768,-32768, 20,-32768, 20, 20,-32768, 20, 20, 8, 125, 20, 20, 229, 20, 20, 20, 20,-32768,-32768, 20,-32768, 20, 20, 20, 20, 20, 20, 20, 9,-32768, 223, 581, 20, 20, -32768,-32768,-32768, 18,-32768, 15, 20,-32768, 20, 20, 20, 20, 20, 20, 20, -5, 20,-32768,-32768, 20, 20, 20,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768, 20, 20,-32768, 346,-32768, 20, 20, 20, 20, 20, 20, 20,-32768,-32768, 20, 20, 20, 20,-32768,-32768,-32768, 15, 20,-32768, 20, 20, -32768, 20, 20, 20, 20, 20, 20, 422,-32768, 20, 25,-32768, 20, 20,-32768,-32768,-32768,-32768, 15, 20, -32768,-32768, 20, 504, 20,-32768,-32768, 20,-32768, 86, -32768 }; static const short yypgoto[] = {-32768, -32768, -122, -100,-32768,-32768, -114,-32768,-32768, -177,-32768, -32768,-32768,-32768,-32768,-32768,-32768, -51,-32768,-32768,-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768,-32768,-32768, -107, 59, 70,-32768, -32768,-32768,-32768,-32768, -98, -186, -103,-32768,-32768,-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768, -76,-32768,-32768, 56, 317, -418,-32768, -344,-32768,-32768, 78,-32768,-32768, 21, -2, 244, 195, -194, 332,-32768,-32768, -17,-32768 }; #define YYLAST 1119 static const short yytable[] = { 111, 195, 146, 171, 449, 201, 256, 257, 154, 155, 157, 167, 164, 270, 271, 157, 178, 258, 212, 213, 294, 295, 296, 107, 279, 175, 157, 229, 230, 170, 159, 285, 182, 164, 157, 208, 187, 188, 166, 157, 191, 192, 193, 306, 307, 157, 198, 157, 194, 176, 107, 170, 159, 202, 210, 272, 211, 185, 273, 242, 145, 246, 190, 274, 275, 149, 150, 151, 197, 263, 199, -277, 336, 127, 299, 300, 301, 304, 302, 509, 172, 302, 435, 160, 173, 174, 531, 287, 177, 169, 179, 180, 196, 477, 267, 288, 186, 459, 460, 461, 462, 237, 290, 342, 343, 344, 345, 346, 347, 261, 348, 291, 488, 183, 146, 146, 221, 222, 146, 224, 225, 0, 226, 146, 228, 214, 215, 0, 308, 0, 108, 109, 216, 0, 0, 0, 0, 110, 203, 0, 204, 0, 0, 241, 232, 233, 0, 0, 235, 236, 0, 238, 0, 239, 157, 0, 0, 108, 109, 0, 0, 0, 232, 0, 110, 0, 0, 0, 205, 0, 247, 206, 219, 220, 157, 251, 223, 240, 0, 0, 255, 227, 0, 0, 262, 0, 0, 0, 157, 266, 0, 0, 0, 268, 269, 419, 0, 250, 0, 207, 0, 0, 281, 308, 308, 158, 159, 0, 0, 0, 0, 265, 435, 0, 0, 0, 0, 115, 436, 437, 438, 439, 440, 0, 146, 297, 298, 299, 300, 301, 309, 302, 0, 388, 389, 464, 314, 0, 157, 0, 0, 0, 0, 0, 0, 0, 0, 329, 252, 0, 0, 0, 478, 323, 146, 325, 146, 0, 0, 0, 327, 315, 157, 157, 331, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 0, 123, 0, 124, 0, 0, 0, 305, 0, 0, 328, 330, 0, 0, 0, 465, 466, 467, 468, 469, 470, 471, 0, 0, 0, 0, 0, 508, 349, 125, 0, 126, 0, 351, 0, 352, 362, 324, 0, 326, 0, 0, 0, 0, 0, 357, 0, 146, 359, 146, 524, 472, 0, 157, 364, 0, 0, 415, 165, 0, 0, 0, 386, 157, 297, 298, 299, 300, 301, 0, 302, 0, 445, 446, 390, 181, 363, 0, 0, 0, 394, 0, 407, 396, 0, 0, 387, 244, 412, 0, 414, 0, 402, 403, 404, 405, 406, 0, 408, 0, 0, 410, 0, 0, 413, 358, 0, 360, 0, 417, 0, 0, 0, 420, 0, 0, 0, 0, 423, 424, 0, 0, 0, 0, 0, 0, 0, 428, 429, 0, 0, 430, 0, 431, 432, 0, 433, 434, 0, 0, 443, 157, 0, 447, 0, 357, 157, 0, 0, 0, 0, 452, 453, 454, 455, 456, 457, 458, 0, 0, 0, 0, 475, 476, 444, 0, 0, 0, 0, 450, 479, 409, 0, 146, 411, 483, 484, 157, 157, 0, 489, 297, 298, 299, 300, 301, 0, 302, 0, 495, 496, 234, 244, 244, 244, 244, 0, 427, 493, 494, 485, 486, 0, 0, 146, 0, 157, 157, 502, 503, 0, 0, 157, 0, 0, 248, 0, 0, 0, 521, 357, 253, 254, 511, 245, 512, 513, 514, 0, 500, 501, 481, 0, 474, 0, 504, 522, 523, 0, 0, 0, 332, 333, 334, 335, 280, 526, 282, 283, 284, 0, 0, 244, 244, 244, 244, 0, 297, 298, 299, 300, 301, 498, 302, 0, 518, 519, 297, 298, 299, 300, 301, 0, 302, 0, 303, 311, 312, 313, 0, 0, 0, 0, 0, 0, 244, 244, 244, 244, 316, 317, 319, 0, 320, 0, 321, 322, 0, 0, 0, 0, 365, 366, 367, 368, 297, 298, 299, 300, 301, 114, 302, 0, 341, 0, 0, 0, 0, 244, 0, 0, 244, 115, 338, 0, 339, 340, 0, 0, 245, 245, 245, 245, 0, 398, 399, 400, 401, 0, 297, 298, 299, 300, 301, 0, 302, 244, 527, 0, 0, 0, 0, 0, 0, 0, 353, 0, 0, 354, 0, 0, 0, 0, 355, 0, 0, 0, 425, 0, 361, 426, 244, 0, 116, 117, 118, 119, 120, 121, 122, 0, 123, 0, 124, 0, 0, 0, 0, 0, 245, 245, 245, 245, 0, 391, 451, 0, 392, 393, 0, 0, 395, 244, 397, 0, 0, 0, 0, 0, 125, 0, 126, 0, 0, 0, 0, 0, 0, 0, 244, 482, 0, 245, 245, 245, 245, 0, 0, 0, 418, 244, 0, 0, 0, 421, 422, 0, 0, 0, 0, 244, 0, 0, 0, 0, 244, 0, 0, 244, 0, 0, 499, 168, 0, 0, 245, 0, 0, 245, 0, 0, 0, 0, 448, 115, 0, 0, 0, 510, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 520, 0, 0, 0, 245, 0, 0, 0, 0, 0, 525, 0, 480, 0, 0, 528, 0, 0, 529, 0, 0, 0, 0, 490, 491, 492, 0, 0, 0, 245, 5, 0, 6, 0, 7, 8, 116, 117, 118, 119, 120, 121, 122, 497, 123, 0, 124, 12, 13, 0, 15, 0, 0, 505, 506, 507, 0, 0, 19, 0, 245, 21, 22, 23, 24, 25, 0, 26, 515, 516, 517, 0, 125, 29, 126, 0, 0, 245, 31, 32, 0, 0, 0, 530, 0, 0, 0, 0, 245, 2, 3, 4, 5, 0, 6, 0, 7, 8, 245, 37, 0, 9, 0, 245, 10, 0, 245, 11, 0, 12, 13, 14, 15, 16, 0, 17, 0, 0, 0, 18, 19, 20, 0, 21, 22, 23, 24, 25, 0, 26, -148, -148, 27, 0, 28, 29, 30, 0, 0, 0, 31, 32, 33, -148, 0, 0, 0, 34, 35, 0, 0, 0, 0, 0, 0, 0, 0, 36, 0, 0, 0, 37, 38, 39, 40, 0, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 43, 44, 45, 46, 0, 0, 47, 0, 0, 0, 48, 49, -152, -152, -152, -152, -152, -152, -152, 0, -152, 0, -152, 0, 0, -152, -152, -152, -152, -152, -152, -152, 0, -152, 0, -152, 369, 0, 370, 0, 0, 0, 0, 0, 0, 371, 372, 0, -152, 0, -152, 373, 0, 0, 0, 0, 0, 374, 0, 0, 3, -152, 5, -152, 6, 375, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 13, 0, 15, 0, 0, 0, 0, 0, 376, 377, 19, 0, 378, 21, 22, 23, 24, 25, 0, 26, 0, 0, 0, 0, 0, 29, 30, 0, 0, 0, 31, 32, 379, 286, 0, 0, 0, 0, 380, -152, -152, -152, -152, -152, -152, -152, 0, -152, 0, -152, 0, 37, 381, 382, -153, -153, -153, -153, -153, -153, -153, 0, -153, 0, -153, 0, 116, 117, 118, 119, 120, 121, 122, 45, 123, -152, 124, -152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -153, 0, -153, 0, 0, 0, 0, 0, 0, 0, 0, 0, 125, 0, 126 }; static const short yycheck[] = { 2, 11, 4, 20, 422, 56, 22, 23, 10, 11, 12, 4, 14, 34, 35, 17, 4, 33, 3, 4, 214, 215, 216, 3, 201, 27, 28, 130, 131, 4, 5, 208, 34, 35, 36, 86, 38, 82, 17, 41, 42, 43, 44, 229, 230, 47, 48, 49, 4, 28, 3, 4, 5, 75, 3, 47, 3, 36, 50, 67, 4, 4, 41, 55, 56, 6, 7, 8, 47, 83, 49, 117, 61, 3, 112, 113, 114, 117, 116, 497, 21, 116, 87, 13, 25, 26, 0, 209, 29, 19, 31, 32, 102, 75, 194, 209, 37, 88, 89, 90, 91, 152, 209, 297, 298, 299, 300, 301, 302, 185, 304, 209, 456, 35, 116, 117, 118, 119, 120, 121, 122, -1, 124, 125, 126, 110, 111, -1, 231, -1, 110, 111, 117, -1, -1, -1, -1, 117, 15, -1, 17, -1, -1, 160, 146, 147, -1, -1, 150, 151, -1, 153, -1, 155, 156, -1, -1, 110, 111, -1, -1, -1, 164, -1, 117, -1, -1, -1, 45, -1, 172, 48, 116, 117, 176, 177, 120, 156, -1, -1, 182, 125, -1, -1, 186, -1, -1, -1, 190, 191, -1, -1, -1, 195, 196, 389, -1, 176, -1, 76, -1, -1, 204, 306, 307, 4, 5, -1, -1, -1, -1, 190, 87, -1, -1, -1, -1, 16, 93, 94, 95, 96, 97, -1, 226, 110, 111, 112, 113, 114, 232, 116, -1, 118, 119, 12, 238, -1, 240, -1, -1, -1, -1, -1, -1, -1, -1, 264, 178, -1, -1, -1, 446, 255, 256, 257, 258, -1, -1, -1, 262, 240, 264, 265, 266, -1, -1, -1, 67, 68, 69, 70, 71, 72, 73, -1, 75, -1, 77, -1, -1, -1, 226, -1, -1, 264, 265, -1, -1, -1, 67, 68, 69, 70, 71, 72, 73, -1, -1, -1, -1, -1, 496, 305, 103, -1, 105, -1, 310, -1, 312, 328, 256, -1, 258, -1, -1, -1, -1, -1, 322, -1, 324, 325, 326, 519, 103, -1, 330, 331, -1, -1, 383, 16, -1, -1, -1, 339, 340, 110, 111, 112, 113, 114, -1, 116, -1, 118, 119, 351, 33, 330, -1, -1, -1, 357, -1, 374, 360, -1, -1, 340, 167, 380, -1, 382, -1, 369, 370, 371, 372, 373, -1, 375, -1, -1, 378, -1, -1, 381, 324, -1, 326, -1, 386, -1, -1, -1, 390, -1, -1, -1, -1, 395, 396, -1, -1, -1, -1, -1, -1, -1, 404, 405, -1, -1, 408, -1, 410, 411, -1, 413, 414, -1, -1, 417, 418, -1, 420, -1, 422, 423, -1, -1, -1, -1, 428, 429, 430, 431, 432, 433, 434, -1, -1, -1, -1, 439, 440, 418, -1, -1, -1, -1, 423, 447, 376, -1, 450, 379, 452, 453, 454, 455, -1, 457, 110, 111, 112, 113, 114, -1, 116, -1, 118, 119, 149, 272, 273, 274, 275, -1, 402, 475, 476, 454, 455, -1, -1, 481, -1, 483, 484, 485, 486, -1, -1, 489, -1, -1, 173, -1, -1, -1, 511, 497, 179, 180, 500, 167, 502, 503, 504, -1, 483, 484, 450, -1, 438, -1, 489, 513, 514, -1, -1, -1, 272, 273, 274, 275, 203, 523, 205, 206, 207, -1, -1, 332, 333, 334, 335, -1, 110, 111, 112, 113, 114, 481, 116, -1, 118, 119, 110, 111, 112, 113, 114, -1, 116, -1, 118, 234, 235, 236, -1, -1, -1, -1, -1, -1, 365, 366, 367, 368, 247, 248, 249, -1, 251, -1, 253, 254, -1, -1, -1, -1, 332, 333, 334, 335, 110, 111, 112, 113, 114, 4, 116, -1, 118, -1, -1, -1, -1, 398, -1, -1, 401, 16, 281, -1, 283, 284, -1, -1, 272, 273, 274, 275, -1, 365, 366, 367, 368, -1, 110, 111, 112, 113, 114, -1, 116, 426, 118, -1, -1, -1, -1, -1, -1, -1, 313, -1, -1, 316, -1, -1, -1, -1, 321, -1, -1, -1, 398, -1, 327, 401, 451, -1, 67, 68, 69, 70, 71, 72, 73, -1, 75, -1, 77, -1, -1, -1, -1, -1, 332, 333, 334, 335, -1, 352, 426, -1, 355, 356, -1, -1, 359, 482, 361, -1, -1, -1, -1, -1, 103, -1, 105, -1, -1, -1, -1, -1, -1, -1, 499, 451, -1, 365, 366, 367, 368, -1, -1, -1, 387, 510, -1, -1, -1, 392, 393, -1, -1, -1, -1, 520, -1, -1, -1, -1, 525, -1, -1, 528, -1, -1, 482, 4, -1, -1, 398, -1, -1, 401, -1, -1, -1, -1, 421, 16, -1, -1, -1, 499, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 510, -1, -1, -1, 426, -1, -1, -1, -1, -1, 520, -1, 449, -1, -1, 525, -1, -1, 528, -1, -1, -1, -1, 460, 461, 462, -1, -1, -1, 451, 9, -1, 11, -1, 13, 14, 67, 68, 69, 70, 71, 72, 73, 480, 75, -1, 77, 26, 27, -1, 29, -1, -1, 490, 491, 492, -1, -1, 37, -1, 482, 40, 41, 42, 43, 44, -1, 46, 505, 506, 507, -1, 103, 52, 105, -1, -1, 499, 57, 58, -1, -1, -1, 0, -1, -1, -1, -1, 510, 6, 7, 8, 9, -1, 11, -1, 13, 14, 520, 78, -1, 18, -1, 525, 21, -1, 528, 24, -1, 26, 27, 28, 29, 30, -1, 32, -1, -1, -1, 36, 37, 38, -1, 40, 41, 42, 43, 44, -1, 46, 4, 5, 49, -1, 51, 52, 53, -1, -1, -1, 57, 58, 59, 4, -1, -1, -1, 64, 65, -1, -1, -1, -1, -1, -1, -1, -1, 74, -1, -1, -1, 78, 79, 80, 81, -1, -1, 84, 85, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 98, 99, 100, 101, -1, -1, 104, -1, -1, -1, 108, 109, 67, 68, 69, 70, 71, 72, 73, -1, 75, -1, 77, -1, -1, 67, 68, 69, 70, 71, 72, 73, -1, 75, -1, 77, 10, -1, 12, -1, -1, -1, -1, -1, -1, 19, 20, -1, 103, -1, 105, 25, -1, -1, -1, -1, -1, 31, -1, -1, 7, 103, 9, 105, 11, 39, 13, 14, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 26, 27, -1, 29, -1, -1, -1, -1, -1, 62, 63, 37, -1, 66, 40, 41, 42, 43, 44, -1, 46, -1, -1, -1, -1, -1, 52, 53, -1, -1, -1, 57, 58, 86, 60, -1, -1, -1, -1, 92, 67, 68, 69, 70, 71, 72, 73, -1, 75, -1, 77, -1, 78, 106, 107, 67, 68, 69, 70, 71, 72, 73, -1, 75, -1, 77, -1, 67, 68, 69, 70, 71, 72, 73, 100, 75, 103, 77, 105, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 103, -1, 105, -1, -1, -1, -1, -1, -1, -1, -1, -1, 103, -1, 105 }; /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ #line 3 "/home/philippe/linux/share/bison.simple" /* This file comes from bison-1.28. */ /* Skeleton output parser for bison, Copyright (C) 1984, 1989, 1990 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. */ /* Changes by Philippe Bekaert (philippe@bekaert.org), Feb 19, 2001: - if YYSTYPE has been redefined to something else in the C(++) code on top of the bison grammer input script, undefine it here. By redefining YYSTYPE, you can now work around duplicate declaration of the YYSTYPE union in case you already include y.tab.h (the duplicate declaration in the bison generated parser code simply gets another name). - if YY_OMIT_DECLS is defined, omit global declaration of yychar, yylval, yylloc and yynerrs and the forward declaration of yyparse(). These variables and yyparse() can then safely be declared as C++ class members e.g. These two changes facilitate inbedding a bison generated parser in a C++ class. */ #ifdef YYSTYPE #undef YYSTYPE #endif /*YYSTYPE*/ #ifndef YYSTACK_USE_ALLOCA #ifdef alloca #define YYSTACK_USE_ALLOCA #else /* alloca not defined */ #ifdef __GNUC__ #define YYSTACK_USE_ALLOCA #define alloca __builtin_alloca #else /* not GNU C. */ #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386)) #define YYSTACK_USE_ALLOCA #include #else /* not sparc */ /* We think this test detects Watcom and Microsoft C. */ /* This used to test MSDOS, but that is a bad idea since that symbol is in the user namespace. */ #if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__) #if 0 /* No need for malloc.h, which pollutes the namespace; instead, just don't use alloca. */ #include #endif #else /* not MSDOS, or __TURBOC__ */ #if defined(_AIX) /* I don't know what this was needed for, but it pollutes the namespace. So I turned it off. rms, 2 May 1997. */ /* #include */ #pragma alloca #define YYSTACK_USE_ALLOCA #else /* not MSDOS, or __TURBOC__, or _AIX */ #if 0 #ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up, and on HPUX 10. Eventually we can turn this on. */ #define YYSTACK_USE_ALLOCA #define alloca __builtin_alloca #endif /* __hpux */ #endif #endif /* not _AIX */ #endif /* not MSDOS, or __TURBOC__ */ #endif /* not sparc */ #endif /* not GNU C */ #endif /* alloca not defined */ #endif /* YYSTACK_USE_ALLOCA not defined */ #ifdef YYSTACK_USE_ALLOCA #define YYSTACK_ALLOC alloca #else #define YYSTACK_ALLOC malloc #endif /* Note: there must be only one dollar sign in this file. It is replaced by the list of actions, each action as one case of the switch. */ #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 #ifndef YYPURE #define YYLEX yylex() #endif #ifdef YYPURE #ifdef YYLSP_NEEDED #ifdef YYLEX_PARAM #define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM) #else #define YYLEX yylex(&yylval, &yylloc) #endif #else /* not YYLSP_NEEDED */ #ifdef YYLEX_PARAM #define YYLEX yylex(&yylval, YYLEX_PARAM) #else #define YYLEX yylex(&yylval) #endif #endif /* not YYLSP_NEEDED */ #endif /* If nonreentrant, generate the variables here */ #ifndef YYPURE #ifndef YY_OMIT_DECLS int yychar; /* the lookahead symbol */ YYSTYPE yylval; /* the semantic value of the */ /* lookahead symbol */ #ifdef YYLSP_NEEDED YYLTYPE yylloc; /* location data for the lookahead */ /* symbol */ #endif int yynerrs; /* number of parse errors so far */ #endif /* not YY_OMIT_DECLS */ #endif /* not YYPURE */ #if YYDEBUG != 0 int yydebug; /* nonzero means print parse trace */ /* Since this is uninitialized, it does not stop multiple parsers from coexisting. */ #endif /* YYINITDEPTH indicates the initial size of the parser's stacks */ #ifndef YYINITDEPTH #define YYINITDEPTH 200 #endif /* YYMAXDEPTH is the maximum size the stacks can grow to (effective only if the built-in stack extension method is used). */ #if YYMAXDEPTH == 0 #undef YYMAXDEPTH #endif #ifndef YYMAXDEPTH #define YYMAXDEPTH 10000 #endif /* Define __yy_memcpy. Note that the size argument should be passed with type unsigned int, because that is what the non-GCC definitions require. With GCC, __builtin_memcpy takes an arg of type size_t, but it can handle unsigned int. */ #if __GNUC__ > 1 /* GNU C and GNU C++ define this. */ #define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT) #else /* not GNU C or C++ */ #ifndef __cplusplus /* This is the most reliable way to avoid incompatibilities in available built-in functions on various systems. */ static void __yy_memcpy (to, from, count) char *to; char *from; unsigned int count; { register char *f = from; register char *t = to; register int i = count; while (i-- > 0) *t++ = *f++; } #else /* __cplusplus */ /* This is the most reliable way to avoid incompatibilities in available built-in functions on various systems. */ static void __yy_memcpy (char *to, char *from, unsigned int count) { register char *t = to; register char *f = from; register int i = count; while (i-- > 0) *t++ = *f++; } #endif #endif #line 217 "/home/philippe/linux/share/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 #ifdef __cplusplus #define YYPARSE_PARAM_ARG void *YYPARSE_PARAM #define YYPARSE_PARAM_DECL #else /* not __cplusplus */ #define YYPARSE_PARAM_ARG YYPARSE_PARAM #define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; #endif /* not __cplusplus */ #else /* not YYPARSE_PARAM */ #define YYPARSE_PARAM_ARG #define YYPARSE_PARAM_DECL #endif /* not YYPARSE_PARAM */ /* Prevent warning if -Wstrict-prototypes. */ #ifndef YY_OMIT_DECLS #ifdef __GNUC__ #ifdef YYPARSE_PARAM int yyparse (void *); #else int yyparse (void); #endif #endif #endif /* not YY_OMIT_DECLS */ int yyparse(YYPARSE_PARAM_ARG) YYPARSE_PARAM_DECL { register int yystate; register int yyn; register short *yyssp; register YYSTYPE *yyvsp; int yyerrstatus; /* number of tokens to shift before error messages enabled */ int yychar1 = 0; /* lookahead token as an internal (translated) token number */ short yyssa[YYINITDEPTH]; /* the state stack */ YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ short *yyss = yyssa; /* refer to the stacks thru separate pointers */ YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */ #ifdef YYLSP_NEEDED YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */ YYLTYPE *yyls = yylsa; YYLTYPE *yylsp; #define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) #else #define YYPOPSTACK (yyvsp--, yyssp--) #endif int yystacksize = YYINITDEPTH; int yyfree_stacks = 0; #ifdef YYPURE int yychar; YYSTYPE yylval; int yynerrs; #ifdef YYLSP_NEEDED YYLTYPE yylloc; #endif #endif YYSTYPE yyval; /* the variable used to return */ /* semantic values from the action */ /* routines */ int yylen; #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Starting parse\n"); #endif 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 - 1; yyvsp = yyvs; #ifdef YYLSP_NEEDED yylsp = yyls; #endif /* Push a new state, which is found in yystate . */ /* In all cases, when you get here, the value and location stacks have just been pushed. so pushing a state here evens the stacks. */ yynewstate: *++yyssp = yystate; if (yyssp >= yyss + yystacksize - 1) { /* 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; #ifdef YYLSP_NEEDED YYLTYPE *yyls1 = yyls; #endif /* Get the current used size of the three stacks, in elements. */ int size = yyssp - yyss + 1; #ifdef yyoverflow /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. */ #ifdef YYLSP_NEEDED /* 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, size * sizeof (*yyssp), &yyvs1, size * sizeof (*yyvsp), &yyls1, size * sizeof (*yylsp), &yystacksize); #else yyoverflow("parser stack overflow", &yyss1, size * sizeof (*yyssp), &yyvs1, size * sizeof (*yyvsp), &yystacksize); #endif yyss = yyss1; yyvs = yyvs1; #ifdef YYLSP_NEEDED yyls = yyls1; #endif #else /* no yyoverflow */ /* Extend the stack our own way. */ if (yystacksize >= YYMAXDEPTH) { yyerror("parser stack overflow"); if (yyfree_stacks) { free (yyss); free (yyvs); #ifdef YYLSP_NEEDED free (yyls); #endif } return 2; } yystacksize *= 2; if (yystacksize > YYMAXDEPTH) yystacksize = YYMAXDEPTH; #ifndef YYSTACK_USE_ALLOCA yyfree_stacks = 1; #endif yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp)); __yy_memcpy ((char *)yyss, (char *)yyss1, size * (unsigned int) sizeof (*yyssp)); yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp)); __yy_memcpy ((char *)yyvs, (char *)yyvs1, size * (unsigned int) sizeof (*yyvsp)); #ifdef YYLSP_NEEDED yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp)); __yy_memcpy ((char *)yyls, (char *)yyls1, size * (unsigned int) sizeof (*yylsp)); #endif #endif /* no yyoverflow */ yyssp = yyss + size - 1; yyvsp = yyvs + size - 1; #ifdef YYLSP_NEEDED yylsp = yyls + size - 1; #endif #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Stack size increased to %d\n", yystacksize); #endif if (yyssp >= yyss + yystacksize - 1) YYABORT; } #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Entering state %d\n", yystate); #endif goto 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) { #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Reading a token: "); #endif 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 */ #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Now at end of input.\n"); #endif } else { yychar1 = YYTRANSLATE(yychar); #if YYDEBUG != 0 if (yydebug) { fprintf (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 fprintf (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. */ #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]); #endif /* Discard the token being shifted unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; *++yyvsp = yylval; #ifdef YYLSP_NEEDED *++yylsp = yylloc; #endif /* count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; yystate = yyn; goto yynewstate; /* Do the default action for the current state. */ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; /* Do a reduction. yyn is the number of a rule to reduce with. */ yyreduce: yylen = yyr2[yyn]; if (yylen > 0) yyval = yyvsp[1-yylen]; /* implement default value of the action */ #if YYDEBUG != 0 if (yydebug) { int i; fprintf (stderr, "Reducing via rule %d (line %d), ", yyn, yyrline[yyn]); /* Print the symbols being reduced, and their result. */ for (i = yyprhs[yyn]; yyrhs[i] > 0; i++) fprintf (stderr, "%s ", yytname[yyrhs[i]]); fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]); } #endif switch (yyn) { case 34: #line 120 "parser.bison" { AddInstance(yyvsp[0].sfnode); ; break;} case 35: #line 125 "parser.bison" { yyval.sfnode = NewNamedObject(yyvsp[-2].sfnode); ; break;} case 36: #line 129 "parser.bison" { yyval.sfnode = NewPrimitiveObject(yyvsp[-2].sfnode); ; break;} case 37: #line 133 "parser.bison" { yyval.sfnode = NewAggregateObject(yyvsp[-2].sfnode); ; break;} case 50: #line 152 "parser.bison" { DefineNamedObject(yyvsp[-1].s, yyvsp[0].sfnode); ; break;} case 59: #line 168 "parser.bison" { NotConverted("texture"); ; break;} case 86: #line 204 "parser.bison" { yyval.sfnode = LookupNamedObject(yyvsp[0].s); ; break;} case 87: #line 208 "parser.bison" { yyval.sfnode = LookupNamedObject(yyvsp[0].s); ; break;} case 91: #line 218 "parser.bison" { NotConverted("scale"); ; break;} case 92: #line 222 "parser.bison" { NotConverted("translate"); ; break;} case 93: #line 226 "parser.bison" { NotConverted("rotate"); ; break;} case 94: #line 232 "parser.bison" { NotConverted("transform"); ; break;} case 95: #line 239 "parser.bison" { NotConverted("transform"); ; break;} case 96: #line 244 "parser.bison" { NotConverted("eyep"); ; break;} case 97: #line 249 "parser.bison" { NotConverted("lookp"); ; break;} case 98: #line 254 "parser.bison" { NotConverted("up"); ; break;} case 99: #line 259 "parser.bison" { NotConverted("fov"); ; break;} case 100: #line 263 "parser.bison" { NotConverted("fov"); ; break;} case 101: #line 268 "parser.bison" { /* not meaningful */ ; break;} case 102: #line 270 "parser.bison" { /* not meaningful */ ; break;} case 103: #line 272 "parser.bison" { /* not meaningful */ ; break;} case 104: #line 275 "parser.bison" { NotConverted("filter"); ; break;} case 105: #line 279 "parser.bison" { NotConverted("filter"); ; break;} case 106: #line 283 "parser.bison" { NotConverted("filter"); ; break;} case 107: #line 287 "parser.bison" { NotConverted("filter"); ; break;} case 108: #line 292 "parser.bison" { NotConverted("starttime"); ; break;} case 109: #line 297 "parser.bison" { NotConverted("frames"); ; break;} case 110: #line 302 "parser.bison" { NotConverted("framelength"); ; break;} case 111: #line 307 "parser.bison" { NotConverted("shutter"); ; break;} case 112: #line 312 "parser.bison" { /* not meaningful */ ; break;} case 113: #line 315 "parser.bison" { /* not meaningful */ ; break;} case 114: #line 318 "parser.bison" { /* not meaningful */ ; break;} case 115: #line 321 "parser.bison" { /* not meaningful */ ; break;} case 116: #line 324 "parser.bison" { /* not meaningful */ ; break;} case 117: #line 327 "parser.bison" { /* not meaningful */ ; break;} case 118: #line 329 "parser.bison" { /* not meaningful */ ; break;} case 119: #line 331 "parser.bison" { /* not meaningful */ ; break;} case 120: #line 333 "parser.bison" { /* not meaningful */ ; break;} case 121: #line 336 "parser.bison" { /* not meaningful */ ; break;} case 123: #line 340 "parser.bison" { /* not meaningful */ ; break;} case 125: #line 344 "parser.bison" { NotConverted("aperture"); ; break;} case 126: #line 349 "parser.bison" { NotConverted("focasdist"); ; break;} case 127: #line 354 "parser.bison" { NotConverted("eyesep"); ; break;} case 128: #line 359 "parser.bison" { /* not meaningful */ ; break;} case 129: #line 362 "parser.bison" { NotConverted("background"); ; break;} case 130: #line 367 "parser.bison" { /* not meaningful */ ; break;} case 133: #line 372 "parser.bison" { NotConverted("light"); ; break;} case 141: #line 385 "parser.bison" { NotConverted("light"); ; break;} case 142: #line 390 "parser.bison" { NotConverted("applysurf"); ; break;} case 148: #line 402 "parser.bison" { NotConverted("named surface"); ; break;} case 149: #line 406 "parser.bison" { NotConverted("named surface"); ; break;} case 152: #line 414 "parser.bison" { NotConverted("modify named surface"); ; break;} case 153: #line 419 "parser.bison" { NotConverted("modify current surface"); ; break;} case 155: #line 426 "parser.bison" { NotConverted("surface"); ; break;} case 156: #line 430 "parser.bison" { NotConverted("surface"); ; break;} case 180: #line 470 "parser.bison" { /* not meaningful */ ; break;} case 181: #line 473 "parser.bison" { yyval.sfnode = NewHeightField(yyvsp[0].s); ; break;} case 182: #line 477 "parser.bison" { yyval.sfnode = NewHeightField(yyvsp[0].s); ; break;} case 183: #line 482 "parser.bison" { yyval.sfnode = NewPoly(yyvsp[0].mfvec3f); ; break;} case 184: #line 487 "parser.bison" { yyval.mfvec3f = new MFVec3f; ; break;} case 185: #line 491 "parser.bison" { SFVec3f v(yyvsp[0].v.x,yyvsp[0].v.y,yyvsp[0].v.z); yyvsp[-1].mfvec3f->append(v); yyval.mfvec3f = yyvsp[-1].mfvec3f; ; break;} case 186: #line 497 "parser.bison" { yyval.v = yyvsp[0].v; ; break;} case 188: #line 504 "parser.bison" { yyval.sfnode = EndAggregate(); ; break;} case 193: #line 515 "parser.bison" { NewList(); ; break;} case 194: #line 520 "parser.bison" { NewList(); ; break;} case 196: #line 527 "parser.bison" { NewCSGUnion() ; break;} case 197: #line 531 "parser.bison" { NewCSGIntersect(); ; break;} case 198: #line 535 "parser.bison" { NewCSGDifference(); ; break;} case 199: #line 540 "parser.bison" { yyval.sfnode = NewCone(yyvsp[-3].f, yyvsp[-2].v, yyvsp[-1].f, yyvsp[0].v); ; break;} case 200: #line 545 "parser.bison" { yyval.sfnode = NewCylinder(yyvsp[-2].f, yyvsp[-1].v, yyvsp[0].v); ; break;} case 201: #line 550 "parser.bison" { yyval.sfnode = NewSphere(yyvsp[-1].f, yyvsp[0].v); ; break;} case 202: #line 555 "parser.bison" { yyval.sfnode = NewDisc(yyvsp[-2].f, yyvsp[-1].v, yyvsp[0].v); ; break;} case 203: #line 560 "parser.bison" { yyval.sfnode = NewBox(yyvsp[-1].v, yyvsp[0].v); ; break;} case 204: #line 565 "parser.bison" { yyval.sfnode = NewFlatTriangle(yyvsp[-2].v, yyvsp[-1].v, yyvsp[0].v); ; break;} case 205: #line 571 "parser.bison" { yyval.sfnode = NewSmoothTriangle(yyvsp[-5].v, yyvsp[-4].v, yyvsp[-3].v, yyvsp[-2].v, yyvsp[-1].v, yyvsp[0].v); ; break;} case 206: #line 577 "parser.bison" { yyval.sfnode = NewTexturedTriangle(yyvsp[-8].v, yyvsp[-7].v, yyvsp[-6].uv, yyvsp[-5].v, yyvsp[-4].v, yyvsp[-3].uv, yyvsp[-2].v, yyvsp[-1].v, yyvsp[0].uv); ; break;} case 207: #line 582 "parser.bison" { yyval.sfnode = NewPlane(yyvsp[-1].v, yyvsp[0].v); ; break;} case 208: #line 587 "parser.bison" { yyval.sfnode = NewTorus(yyvsp[-3].f, yyvsp[-2].f, yyvsp[-1].v, yyvsp[0].v); ; break;} case 209: #line 592 "parser.bison" { yyval.sfnode = NewBlob(); ; break;} case 212: #line 600 "parser.bison" {; break;} case 213: #line 603 "parser.bison" { /* not meaningful */ ; break;} case 214: #line 606 "parser.bison" { NotConverted("atmosphere"); ; break;} case 215: #line 610 "parser.bison" { NotConverted("atmosphere"); ; break;} case 222: #line 624 "parser.bison" { yyval.c.r = yyvsp[-2].f; yyval.c.g = yyvsp[-1].f; yyval.c.b = yyvsp[0].f; ; break;} case 223: #line 629 "parser.bison" { yyval.v.x = yyvsp[-2].f; yyval.v.y = yyvsp[-1].f; yyval.v.z = yyvsp[0].f; ; break;} case 224: #line 634 "parser.bison" { yyval.uv.u = yyvsp[-1].f; yyval.uv.v = yyvsp[0].f; ; break;} case 244: #line 661 "parser.bison" {; break;} case 245: #line 662 "parser.bison" {; break;} case 246: #line 665 "parser.bison" { /* not meaningful */ ; break;} case 247: #line 668 "parser.bison" { NotConverted("variables and functions"); ; break;} case 248: #line 673 "parser.bison" { yyval.i = (int)yyvsp[0].f; ; break;} case 253: #line 684 "parser.bison" { yyval.f = yyvsp[-1].f; ; break;} case 254: #line 688 "parser.bison" { yyval.f = yyvsp[0].f ; break;} case 255: #line 690 "parser.bison" { NotConverted("variables and functions"); yyval.f = 0.; ; break;} case 256: #line 694 "parser.bison" { NotConverted("variables and functions"); yyval.f = 0.; ; break;} case 257: #line 698 "parser.bison" { NotConverted("variables and functions"); yyval.f = 0.; ; break;} case 258: #line 702 "parser.bison" { NotConverted("variables and functions"); yyval.f = 0.; ; break;} case 259: #line 706 "parser.bison" { NotConverted("variables and functions"); yyval.f = 0.; ; break;} case 260: #line 711 "parser.bison" { NotConverted("variables and functions"); yyval.f = 0.; ; break;} case 261: #line 715 "parser.bison" { yyval.f = yyvsp[-1].f; ; break;} case 262: #line 719 "parser.bison" { yyval.f = yyvsp[-2].f + yyvsp[0].f; ; break;} case 263: #line 723 "parser.bison" { yyval.f = yyvsp[-2].f - yyvsp[0].f; ; break;} case 264: #line 727 "parser.bison" { yyval.f = yyvsp[-2].f * yyvsp[0].f; ; break;} case 265: #line 731 "parser.bison" { yyval.f = yyvsp[-2].f / yyvsp[0].f; ; break;} case 266: #line 735 "parser.bison" { yyval.f = (int)yyvsp[-2].f % (int)yyvsp[0].f; ; break;} case 267: #line 739 "parser.bison" { yyval.f = -yyvsp[0].f; ; break;} case 268: #line 743 "parser.bison" { yyval.f =-yyvsp[0].f; ; break;} case 269: #line 747 "parser.bison" { yyval.f = pow(yyvsp[-2].f, yyvsp[0].f); ; break;} case 270: #line 752 "parser.bison" { yyval.f = yyvsp[0].f; ; break;} case 271: #line 755 "parser.bison" {; break;} case 272: #line 756 "parser.bison" { yyval.f = -yyvsp[-1].f; ; break;} case 273: #line 759 "parser.bison" {; break;} case 274: #line 760 "parser.bison" { yyval.f = yyvsp[-1].f; ; break;} } /* the action file gets copied in in place of this dollarsign */ #line 543 "/home/philippe/linux/share/bison.simple" yyvsp -= yylen; yyssp -= yylen; #ifdef YYLSP_NEEDED yylsp -= yylen; #endif #if YYDEBUG != 0 if (yydebug) { short *ssp1 = yyss - 1; fprintf (stderr, "state stack now"); while (ssp1 != yyssp) fprintf (stderr, " %d", *++ssp1); fprintf (stderr, "\n"); } #endif *++yyvsp = yyval; #ifdef YYLSP_NEEDED yylsp++; if (yylen == 0) { yylsp->first_line = yylloc.first_line; yylsp->first_column = yylloc.first_column; yylsp->last_line = (yylsp-1)->last_line; yylsp->last_column = (yylsp-1)->last_column; yylsp->text = 0; } else { yylsp->last_line = (yylsp+yylen-1)->last_line; yylsp->last_column = (yylsp+yylen-1)->last_column; } #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 */ if (! yyerrstatus) /* If not already recovering from an error, report this error. */ { ++yynerrs; #ifdef YYERROR_VERBOSE yyn = yypact[yystate]; if (yyn > YYFLAG && yyn < YYLAST) { int size = 0; char *msg; int x, count; count = 0; /* Start X at -yyn if nec to avoid negative indexes in yycheck. */ for (x = (yyn < 0 ? -yyn : 0); x < (sizeof(yytname) / sizeof(char *)); x++) if (yycheck[x + yyn] == x) size += strlen(yytname[x]) + 15, count++; msg = (char *) malloc(size + 15); if (msg != 0) { strcpy(msg, "parse error"); if (count < 5) { count = 0; for (x = (yyn < 0 ? -yyn : 0); x < (sizeof(yytname) / sizeof(char *)); x++) if (yycheck[x + yyn] == x) { strcat(msg, count == 0 ? ", expecting `" : " or `"); strcat(msg, yytname[x]); strcat(msg, "'"); count++; } } yyerror(msg); free(msg); } else yyerror ("parse error; also virtual memory exceeded"); } else #endif /* YYERROR_VERBOSE */ yyerror("parse error"); } goto yyerrlab1; yyerrlab1: /* here on error raised explicitly by an action */ 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; #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]); #endif 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. */ #if 0 /* This is wrong; only states that explicitly want error tokens should shift them. */ yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/ if (yyn) goto yydefault; #endif yyerrpop: /* pop the current state because it cannot handle the error token */ if (yyssp == yyss) YYABORT; yyvsp--; yystate = *--yyssp; #ifdef YYLSP_NEEDED yylsp--; #endif #if YYDEBUG != 0 if (yydebug) { short *ssp1 = yyss - 1; fprintf (stderr, "Error: state stack now"); while (ssp1 != yyssp) fprintf (stderr, " %d", *++ssp1); fprintf (stderr, "\n"); } #endif 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; #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Shifting error token, "); #endif *++yyvsp = yylval; #ifdef YYLSP_NEEDED *++yylsp = yylloc; #endif yystate = yyn; goto yynewstate; yyacceptlab: /* YYACCEPT comes here. */ if (yyfree_stacks) { free (yyss); free (yyvs); #ifdef YYLSP_NEEDED free (yyls); #endif } return 0; yyabortlab: /* YYABORT comes here. */ if (yyfree_stacks) { free (yyss); free (yyvs); #ifdef YYLSP_NEEDED free (yyls); #endif } return 1; } #line 769 "parser.bison"