/* A Bison parser, made from /mnt/gmirror/ports/devel/engrave/work/engrave-20070223/src/lib/engrave.y by GNU bison 1.35. */ #define YYBISON 1 /* Identify Bison output. */ # define BASE 257 # define STRING 258 # define FLOAT 259 # define ACTION 260 # define AFTER 261 # define ALIGN 262 # define ASPECT 263 # define ASPECT_PREFERENCE 264 # define BORDER 265 # define MIDDLE 266 # define CLIP_TO 267 # define COLLECTIONS 268 # define COLOR 269 # define COLOR2 270 # define COLOR3 271 # define COLOR_CLASS 272 # define CONFINE 273 # define DATA 274 # define DESCRIPTION 275 # define DRAGABLE 276 # define EFFECT 277 # define FILL 278 # define FIT 279 # define FONT 280 # define FONTS 281 # define GROUP 282 # define GROUPS 283 # define IMAGE 284 # define TEXTBLOCK 285 # define IMAGES 286 # define IN 287 # define ITEM 288 # define MAX 289 # define MIN 290 # define FIXED 291 # define MOUSE_EVENTS 292 # define NAME 293 # define NORMAL 294 # define OFFSET 295 # define ORIGIN 296 # define PART 297 # define PARTS 298 # define PROGRAM 299 # define PROGRAMS 300 # define ALIAS 301 # define REL1 302 # define REL2 303 # define RELATIVE 304 # define REPEAT_EVENTS 305 # define SCRIPT 306 # define SIGNAL 307 # define SIZE 308 # define GRADREL1 309 # define GRADREL2 310 # define SMOOTH 311 # define SOURCE 312 # define STATE 313 # define STEP 314 # define TARGET 315 # define TEXT 316 # define TEXT_CLASS 317 # define TEXT_SOURCE 318 # define TO 319 # define TO_X 320 # define TO_Y 321 # define TRANSITION 322 # define TWEEN 323 # define TYPE 324 # define VISIBLE 325 # define X 326 # define Y 327 # define OPEN_BRACE 328 # define CLOSE_BRACE 329 # define RAW 330 # define COMP 331 # define LOSSY 332 # define STYLES 333 # define STYLE 334 # define SBASE 335 # define TAG 336 # define ELIPSIS 337 # define COLON 338 # define QUOTE 339 # define SEMICOLON 340 # define STATE_SET 341 # define ACTION_STOP 342 # define SIGNAL_EMIT 343 # define DRAG_VAL_SET 344 # define DRAG_VAL_STEP 345 # define DRAG_VAL_PAGE 346 # define LINEAR 347 # define SINUSOIDAL 348 # define ACCELERATE 349 # define DECELERATE 350 # define RECT 351 # define SWALLOW 352 # define GRADIENT 353 # define NONE 354 # define PLAIN 355 # define OUTLINE 356 # define SOFT_OUTLINE 357 # define SHADOW 358 # define SOFT_SHADOW 359 # define OUTLINE_SHADOW 360 # define OUTLINE_SOFT_SHADOW 361 # define VERTICAL 362 # define HORIZONTAL 363 # define BOTH 364 # define SPECTRA 365 # define SPECTRUM 366 # define GRAD 367 # define MINUS 368 # define PLUS 369 # define TIMES 370 # define DIVIDE 371 # define NEG 372 # define OPEN_PAREN 373 # define CLOSE_PAREN 374 # define DOT 375 # define INHERIT 376 # define ON 377 # define OFF 378 # define TRUE 379 # define FALSE 380 # define PERCENT 381 #line 1 "engrave.y" #include #include #include #include "Engrave.h" #include "engrave_parse.h" #define YYDEBUG 1 int yylex(void); void yyerror(const char *s); void parse_error(void); extern char *engrave_cur_file; extern int engrave_lnum; extern int engrave_col; static int section; #line 21 "engrave.y" #ifndef YYSTYPE typedef union { char *string; float val; Engrave_Action prog_actions; Engrave_Transition transition_type; Engrave_Part_Type part_type; Engrave_Image_Type image_type; Engrave_Text_Effect text_effect; Engrave_Aspect_Preference aspect_pref; } yystype; # define YYSTYPE yystype # define YYSTYPE_IS_TRIVIAL 1 #endif #ifndef YYDEBUG # define YYDEBUG 0 #endif #define YYFINAL 690 #define YYFLAG -32768 #define YYNTBASE 128 /* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */ #define YYTRANSLATE(x) ((unsigned)(x) <= 381 ? yytranslate[x] : 299) /* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */ static const short 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127 }; #if YYDEBUG static const short yyprhs[] = { 0, 0, 1, 4, 5, 8, 11, 14, 17, 20, 22, 23, 30, 31, 38, 39, 42, 43, 50, 51, 54, 57, 62, 71, 72, 79, 80, 82, 85, 91, 92, 99, 100, 102, 105, 106, 113, 114, 116, 119, 121, 123, 125, 130, 131, 138, 139, 141, 144, 150, 157, 165, 167, 169, 171, 177, 178, 180, 183, 189, 195, 196, 203, 204, 206, 209, 210, 217, 218, 220, 223, 226, 228, 230, 232, 234, 236, 238, 240, 242, 244, 249, 254, 260, 265, 270, 276, 283, 290, 297, 302, 304, 306, 308, 310, 312, 314, 320, 322, 324, 326, 328, 333, 338, 339, 341, 344, 346, 349, 351, 354, 355, 362, 363, 366, 369, 371, 373, 375, 377, 379, 381, 384, 386, 388, 390, 392, 397, 403, 409, 415, 416, 423, 424, 426, 429, 432, 435, 436, 443, 444, 447, 450, 452, 455, 457, 459, 461, 463, 465, 467, 469, 471, 476, 478, 480, 482, 484, 486, 488, 490, 495, 497, 499, 501, 503, 505, 507, 509, 511, 513, 515, 517, 519, 524, 529, 534, 536, 539, 541, 543, 544, 551, 552, 554, 557, 559, 561, 563, 570, 577, 582, 583, 590, 591, 594, 597, 599, 602, 604, 606, 608, 610, 612, 614, 616, 618, 620, 622, 628, 633, 639, 645, 651, 657, 662, 664, 666, 668, 670, 672, 675, 677, 679, 681, 683, 685, 687, 689, 691, 693, 695, 696, 703, 704, 707, 710, 713, 716, 721, 726, 727, 734, 735, 740, 741, 748, 749, 754, 755, 762, 763, 768, 769, 776, 777, 782, 783, 785, 788, 790, 792, 794, 796, 798, 804, 810, 815, 820, 825, 826, 833, 834, 839, 840, 842, 845, 847, 849, 851, 853, 858, 863, 868, 876, 877, 884, 885, 890, 891, 893, 896, 898, 900, 902, 907, 908, 915, 916, 921, 922, 924, 927, 929, 931, 932, 939, 940, 945, 950, 958, 966, 974, 975, 982, 983, 988, 989, 991, 992, 994, 997, 999, 1001, 1003, 1005, 1007, 1009, 1011, 1013, 1015, 1017, 1019, 1021, 1026, 1031, 1036, 1041, 1042, 1044, 1047, 1052, 1057, 1062, 1067, 1073, 1075, 1079, 1083, 1087, 1091, 1094 }; static const short yyrhs[] = { -1, 129, 130, 0, 0, 153, 130, 0, 141, 130, 0, 133, 130, 0, 131, 130, 0, 158, 130, 0, 1, 0, 0, 14, 74, 132, 179, 75, 285, 0, 0, 111, 74, 134, 135, 75, 285, 0, 0, 135, 136, 0, 0, 112, 74, 137, 138, 75, 285, 0, 0, 139, 138, 0, 140, 138, 0, 39, 84, 4, 86, 0, 15, 84, 298, 298, 298, 298, 298, 86, 0, 0, 27, 74, 142, 143, 75, 285, 0, 0, 144, 0, 143, 144, 0, 26, 84, 4, 4, 86, 0, 0, 79, 74, 146, 147, 75, 285, 0, 0, 148, 0, 147, 148, 0, 0, 80, 74, 149, 150, 75, 285, 0, 0, 151, 0, 150, 151, 0, 168, 0, 152, 0, 169, 0, 3, 84, 4, 86, 0, 0, 32, 74, 154, 155, 75, 285, 0, 0, 156, 0, 155, 156, 0, 30, 84, 4, 157, 86, 0, 30, 84, 4, 157, 298, 86, 0, 30, 84, 4, 157, 298, 127, 86, 0, 76, 0, 77, 0, 78, 0, 20, 74, 159, 75, 285, 0, 0, 160, 0, 159, 160, 0, 34, 84, 4, 4, 86, 0, 34, 84, 4, 298, 86, 0, 0, 46, 74, 162, 163, 75, 285, 0, 0, 164, 0, 163, 164, 0, 0, 45, 74, 165, 166, 75, 285, 0, 0, 167, 0, 166, 167, 0, 166, 86, 0, 168, 0, 170, 0, 171, 0, 172, 0, 173, 0, 175, 0, 177, 0, 178, 0, 184, 0, 39, 84, 4, 86, 0, 81, 84, 4, 86, 0, 82, 84, 4, 4, 86, 0, 53, 84, 4, 86, 0, 58, 84, 4, 86, 0, 33, 84, 298, 298, 86, 0, 6, 84, 174, 4, 298, 86, 0, 6, 84, 174, 4, 4, 86, 0, 6, 84, 174, 298, 298, 86, 0, 6, 84, 174, 86, 0, 89, 0, 87, 0, 88, 0, 90, 0, 91, 0, 92, 0, 68, 84, 176, 298, 86, 0, 93, 0, 94, 0, 95, 0, 96, 0, 61, 84, 4, 86, 0, 7, 84, 4, 86, 0, 0, 145, 0, 179, 145, 0, 153, 0, 179, 153, 0, 180, 0, 179, 180, 0, 0, 28, 74, 181, 182, 75, 285, 0, 0, 185, 182, 0, 183, 182, 0, 158, 0, 184, 0, 191, 0, 161, 0, 52, 0, 186, 0, 186, 185, 0, 168, 0, 187, 0, 188, 0, 190, 0, 47, 84, 4, 86, 0, 36, 84, 298, 298, 86, 0, 37, 84, 298, 298, 86, 0, 35, 84, 298, 298, 86, 0, 0, 44, 74, 192, 193, 75, 285, 0, 0, 194, 0, 193, 194, 0, 193, 163, 0, 193, 161, 0, 0, 43, 74, 195, 196, 75, 285, 0, 0, 197, 196, 0, 207, 196, 0, 198, 0, 198, 197, 0, 168, 0, 199, 0, 201, 0, 204, 0, 205, 0, 206, 0, 278, 0, 294, 0, 70, 84, 200, 86, 0, 30, 0, 97, 0, 62, 0, 31, 0, 98, 0, 99, 0, 4, 0, 23, 84, 202, 86, 0, 100, 0, 101, 0, 102, 0, 103, 0, 104, 0, 105, 0, 107, 0, 123, 0, 124, 0, 125, 0, 126, 0, 298, 0, 38, 84, 203, 86, 0, 51, 84, 203, 86, 0, 13, 84, 4, 86, 0, 208, 0, 208, 207, 0, 209, 0, 216, 0, 0, 22, 74, 210, 211, 75, 285, 0, 0, 212, 0, 211, 212, 0, 213, 0, 214, 0, 215, 0, 72, 84, 298, 298, 298, 86, 0, 73, 84, 298, 298, 298, 86, 0, 19, 84, 4, 86, 0, 0, 21, 74, 217, 218, 75, 285, 0, 0, 219, 218, 0, 229, 218, 0, 220, 0, 220, 219, 0, 221, 0, 222, 0, 223, 0, 224, 0, 188, 0, 190, 0, 189, 0, 225, 0, 226, 0, 227, 0, 59, 84, 4, 298, 86, 0, 71, 84, 203, 86, 0, 122, 84, 4, 298, 86, 0, 8, 84, 298, 298, 86, 0, 60, 84, 298, 298, 86, 0, 9, 84, 298, 298, 86, 0, 10, 84, 228, 86, 0, 100, 0, 108, 0, 109, 0, 110, 0, 230, 0, 230, 229, 0, 242, 0, 245, 0, 255, 0, 264, 0, 278, 0, 279, 0, 280, 0, 281, 0, 282, 0, 231, 0, 0, 113, 74, 232, 233, 75, 285, 0, 0, 234, 233, 0, 235, 233, 0, 236, 233, 0, 239, 233, 0, 112, 84, 4, 86, 0, 70, 84, 4, 86, 0, 0, 48, 74, 237, 248, 75, 285, 0, 0, 48, 121, 238, 249, 0, 0, 49, 74, 240, 248, 75, 285, 0, 0, 49, 121, 241, 249, 0, 0, 48, 74, 243, 248, 75, 285, 0, 0, 48, 121, 244, 249, 0, 0, 49, 74, 246, 248, 75, 285, 0, 0, 49, 121, 247, 249, 0, 0, 249, 0, 248, 249, 0, 250, 0, 251, 0, 252, 0, 253, 0, 254, 0, 50, 84, 298, 298, 86, 0, 41, 84, 298, 298, 86, 0, 65, 84, 4, 86, 0, 66, 84, 4, 86, 0, 67, 84, 4, 86, 0, 0, 30, 74, 256, 258, 75, 285, 0, 0, 30, 121, 257, 259, 0, 0, 259, 0, 258, 259, 0, 261, 0, 262, 0, 263, 0, 260, 0, 12, 84, 298, 86, 0, 40, 84, 4, 86, 0, 69, 84, 4, 86, 0, 11, 84, 298, 298, 298, 298, 86, 0, 0, 24, 74, 265, 267, 75, 285, 0, 0, 24, 121, 266, 268, 0, 0, 268, 0, 267, 268, 0, 269, 0, 270, 0, 275, 0, 57, 84, 203, 86, 0, 0, 42, 74, 271, 273, 75, 285, 0, 0, 42, 121, 272, 274, 0, 0, 274, 0, 273, 274, 0, 250, 0, 251, 0, 0, 54, 74, 276, 273, 75, 285, 0, 0, 54, 121, 277, 274, 0, 18, 84, 4, 86, 0, 15, 84, 298, 298, 298, 298, 86, 0, 16, 84, 298, 298, 298, 298, 86, 0, 17, 84, 298, 298, 298, 298, 86, 0, 0, 62, 74, 283, 286, 75, 285, 0, 0, 62, 121, 284, 287, 0, 0, 86, 0, 0, 287, 0, 286, 287, 0, 291, 0, 294, 0, 293, 0, 289, 0, 295, 0, 296, 0, 297, 0, 288, 0, 188, 0, 190, 0, 224, 0, 290, 0, 83, 84, 298, 86, 0, 80, 84, 4, 86, 0, 58, 84, 4, 86, 0, 62, 84, 292, 86, 0, 0, 4, 0, 292, 4, 0, 64, 84, 4, 86, 0, 63, 84, 4, 86, 0, 26, 84, 4, 86, 0, 54, 84, 298, 86, 0, 25, 84, 203, 203, 86, 0, 5, 0, 298, 115, 298, 0, 298, 114, 298, 0, 298, 116, 298, 0, 298, 117, 298, 0, 114, 298, 0, 119, 298, 120, 0 }; #endif #if YYDEBUG /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const short yyrline[] = { 0, 68, 68, 71, 72, 73, 74, 75, 76, 77, 84, 84, 87, 87, 90, 91, 94, 94, 100, 101, 102, 105, 110, 115, 115, 118, 119, 120, 123, 128, 128, 131, 132, 133, 136, 136, 139, 140, 141, 144, 145, 146, 149, 154, 154, 157, 158, 159, 162, 165, 168, 173, 174, 175, 179, 182, 183, 184, 187, 200, 215, 215, 218, 219, 220, 223, 223, 226, 227, 228, 229, 232, 233, 234, 235, 236, 237, 238, 239, 240, 243, 263, 268, 273, 278, 283, 288, 291, 294, 297, 302, 303, 304, 305, 306, 307, 310, 315, 316, 317, 318, 321, 326, 331, 332, 333, 334, 335, 336, 337, 340, 340, 343, 344, 345, 348, 349, 350, 351, 354, 371, 372, 375, 376, 377, 378, 381, 386, 404, 411, 429, 429, 432, 433, 434, 435, 436, 439, 439, 442, 443, 444, 447, 448, 451, 452, 453, 454, 455, 456, 457, 458, 461, 466, 467, 468, 469, 470, 471, 472, 488, 493, 494, 495, 496, 497, 498, 499, 502, 503, 504, 505, 506, 516, 521, 526, 531, 532, 535, 536, 539, 539, 542, 543, 544, 547, 548, 549, 552, 557, 562, 567, 567, 570, 571, 572, 575, 576, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 591, 596, 601, 607, 622, 627, 632, 637, 638, 639, 640, 643, 644, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 659, 659, 662, 663, 664, 665, 666, 669, 674, 679, 679, 680, 680, 683, 683, 684, 684, 687, 687, 688, 688, 691, 691, 692, 692, 695, 696, 697, 700, 701, 702, 703, 704, 707, 734, 761, 777, 792, 807, 807, 808, 808, 811, 812, 813, 816, 817, 818, 819, 822, 827, 832, 837, 842, 842, 843, 843, 846, 847, 848, 851, 852, 853, 856, 861, 861, 862, 862, 865, 866, 867, 870, 871, 874, 874, 875, 875, 878, 883, 888, 893, 898, 898, 899, 899, 902, 903, 906, 907, 908, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 925, 930, 935, 940, 943, 944, 947, 952, 957, 962, 967, 972, 977, 978, 979, 980, 981, 982, 983 }; #endif #if (YYDEBUG) || defined YYERROR_VERBOSE /* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */ static const char *const yytname[] = { "$", "error", "$undefined.", "BASE", "STRING", "FLOAT", "ACTION", "AFTER", "ALIGN", "ASPECT", "ASPECT_PREFERENCE", "BORDER", "MIDDLE", "CLIP_TO", "COLLECTIONS", "COLOR", "COLOR2", "COLOR3", "COLOR_CLASS", "CONFINE", "DATA", "DESCRIPTION", "DRAGABLE", "EFFECT", "FILL", "FIT", "FONT", "FONTS", "GROUP", "GROUPS", "IMAGE", "TEXTBLOCK", "IMAGES", "IN", "ITEM", "MAX", "MIN", "FIXED", "MOUSE_EVENTS", "NAME", "NORMAL", "OFFSET", "ORIGIN", "PART", "PARTS", "PROGRAM", "PROGRAMS", "ALIAS", "REL1", "REL2", "RELATIVE", "REPEAT_EVENTS", "SCRIPT", "SIGNAL", "SIZE", "GRADREL1", "GRADREL2", "SMOOTH", "SOURCE", "STATE", "STEP", "TARGET", "TEXT", "TEXT_CLASS", "TEXT_SOURCE", "TO", "TO_X", "TO_Y", "TRANSITION", "TWEEN", "TYPE", "VISIBLE", "X", "Y", "OPEN_BRACE", "CLOSE_BRACE", "RAW", "COMP", "LOSSY", "STYLES", "STYLE", "SBASE", "TAG", "ELIPSIS", "COLON", "QUOTE", "SEMICOLON", "STATE_SET", "ACTION_STOP", "SIGNAL_EMIT", "DRAG_VAL_SET", "DRAG_VAL_STEP", "DRAG_VAL_PAGE", "LINEAR", "SINUSOIDAL", "ACCELERATE", "DECELERATE", "RECT", "SWALLOW", "GRADIENT", "NONE", "PLAIN", "OUTLINE", "SOFT_OUTLINE", "SHADOW", "SOFT_SHADOW", "OUTLINE_SHADOW", "OUTLINE_SOFT_SHADOW", "VERTICAL", "HORIZONTAL", "BOTH", "SPECTRA", "SPECTRUM", "GRAD", "MINUS", "PLUS", "TIMES", "DIVIDE", "NEG", "OPEN_PAREN", "CLOSE_PAREN", "DOT", "INHERIT", "ON", "OFF", "TRUE", "FALSE", "PERCENT", "start", "@1", "edjes", "collections", "@2", "spectra", "@3", "spectra_statement", "spectrum", "@4", "spectrum_statement", "spectrum_name", "spectrum_color", "fonts", "@5", "font_statement", "font", "styles", "@6", "styles_statement", "style", "@7", "style_statement", "style_entry", "base", "images", "@8", "image_statement", "image", "image_type", "data", "data_statement", "item", "programs", "@9", "program_statement", "program", "@10", "program_body", "program_cmd", "name", "tag", "program_signal", "program_source", "program_in", "program_action", "action_type", "program_transition", "transition_type", "program_target", "program_after", "collection_statement", "group", "@11", "group_foo", "group_body", "script", "group_preamble", "group_preamble_entry", "alias", "min", "fixed", "max", "parts", "@12", "parts_statement", "part", "@13", "part_foo", "part_preamble", "part_preamble_entry", "type", "part_type", "effect", "effect_type", "boolean", "mouse_events", "repeat_events", "clip_to", "part_body", "part_body_entry", "dragable", "@14", "dragable_statement", "dragable_body", "x", "y", "confine", "description", "@15", "desc_foo", "desc_preamble", "desc_preamble_entry", "state", "visible", "inherit", "align", "step", "aspect", "aspect_preference", "aspect_pref_type", "desc_body", "desc_body_entry", "gradient", "@16", "grad_statement", "grad_spectrum", "grad_type", "grad_rel1", "@17", "@18", "grad_rel2", "@19", "@20", "rel1", "@21", "@22", "rel2", "@23", "@24", "rel_statement", "rel_body", "relative", "offset", "to", "to_x", "to_y", "desc_image", "@25", "@26", "image_state_statement", "image_body", "middle", "normal", "tween", "border", "fill", "@27", "@28", "fill_statement", "fill_body", "smooth", "origin", "@29", "@30", "origin_statement", "origin_body", "size", "@31", "@32", "color_class", "color", "color2", "color3", "text", "@33", "@34", "semicolon_maybe", "text_statement", "text_body", "elipsis", "text_style", "source", "text_entry", "text_string", "text_source", "text_class", "font_entry", "size_entry", "fit", "exp", 0 }; #endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const short yyr1[] = { 0, 129, 128, 130, 130, 130, 130, 130, 130, 130, 132, 131, 134, 133, 135, 135, 137, 136, 138, 138, 138, 139, 140, 142, 141, 143, 143, 143, 144, 146, 145, 147, 147, 147, 149, 148, 150, 150, 150, 151, 151, 151, 152, 154, 153, 155, 155, 155, 156, 156, 156, 157, 157, 157, 158, 159, 159, 159, 160, 160, 162, 161, 163, 163, 163, 165, 164, 166, 166, 166, 166, 167, 167, 167, 167, 167, 167, 167, 167, 167, 168, 152, 169, 170, 171, 172, 173, 173, 173, 173, 174, 174, 174, 174, 174, 174, 175, 176, 176, 176, 176, 177, 178, 179, 179, 179, 179, 179, 179, 179, 181, 180, 182, 182, 182, 183, 183, 183, 183, 184, 185, 185, 186, 186, 186, 186, 187, 188, 189, 190, 192, 191, 193, 193, 193, 193, 193, 195, 194, 196, 196, 196, 197, 197, 198, 198, 198, 198, 198, 198, 198, 198, 199, 200, 200, 200, 200, 200, 200, 200, 201, 202, 202, 202, 202, 202, 202, 202, 203, 203, 203, 203, 203, 204, 205, 206, 207, 207, 208, 208, 210, 209, 211, 211, 211, 212, 212, 212, 213, 214, 215, 217, 216, 218, 218, 218, 219, 219, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 221, 222, 223, 224, 225, 226, 227, 228, 228, 228, 228, 229, 229, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 232, 231, 233, 233, 233, 233, 233, 234, 235, 237, 236, 238, 236, 240, 239, 241, 239, 243, 242, 244, 242, 246, 245, 247, 245, 248, 248, 248, 249, 249, 249, 249, 249, 250, 251, 252, 253, 254, 256, 255, 257, 255, 258, 258, 258, 259, 259, 259, 259, 260, 261, 262, 263, 265, 264, 266, 264, 267, 267, 267, 268, 268, 268, 269, 271, 270, 272, 270, 273, 273, 273, 274, 274, 276, 275, 277, 275, 278, 279, 280, 281, 283, 282, 284, 282, 285, 285, 286, 286, 286, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 288, 289, 290, 291, 292, 292, 292, 293, 294, 295, 296, 297, 298, 298, 298, 298, 298, 298, 298 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const short yyr2[] = { 0, 0, 2, 0, 2, 2, 2, 2, 2, 1, 0, 6, 0, 6, 0, 2, 0, 6, 0, 2, 2, 4, 8, 0, 6, 0, 1, 2, 5, 0, 6, 0, 1, 2, 0, 6, 0, 1, 2, 1, 1, 1, 4, 0, 6, 0, 1, 2, 5, 6, 7, 1, 1, 1, 5, 0, 1, 2, 5, 5, 0, 6, 0, 1, 2, 0, 6, 0, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 4, 5, 4, 4, 5, 6, 6, 6, 4, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 4, 4, 0, 1, 2, 1, 2, 1, 2, 0, 6, 0, 2, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 4, 5, 5, 5, 0, 6, 0, 1, 2, 2, 2, 0, 6, 0, 2, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 4, 4, 1, 2, 1, 1, 0, 6, 0, 1, 2, 1, 1, 1, 6, 6, 4, 0, 6, 0, 2, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 4, 5, 5, 5, 5, 4, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 6, 0, 2, 2, 2, 2, 4, 4, 0, 6, 0, 4, 0, 6, 0, 4, 0, 6, 0, 4, 0, 6, 0, 4, 0, 1, 2, 1, 1, 1, 1, 1, 5, 5, 4, 4, 4, 0, 6, 0, 4, 0, 1, 2, 1, 1, 1, 1, 4, 4, 4, 7, 0, 6, 0, 4, 0, 1, 2, 1, 1, 1, 4, 0, 6, 0, 4, 0, 1, 2, 1, 1, 0, 6, 0, 4, 4, 7, 7, 7, 0, 6, 0, 4, 0, 1, 0, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 4, 4, 4, 0, 1, 2, 4, 4, 4, 4, 5, 1, 3, 3, 3, 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[] = { 1, 0, 9, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 10, 55, 23, 43, 12, 7, 6, 5, 4, 8, 103, 0, 0, 56, 25, 45, 14, 0, 0, 104, 106, 0, 108, 0, 316, 57, 0, 0, 26, 0, 0, 46, 0, 110, 29, 316, 105, 107, 109, 0, 317, 54, 0, 316, 27, 0, 316, 47, 316, 0, 15, 112, 31, 11, 0, 345, 0, 0, 0, 0, 24, 0, 44, 13, 16, 0, 0, 0, 0, 0, 0, 119, 115, 118, 122, 0, 112, 116, 112, 120, 123, 124, 125, 117, 0, 0, 32, 58, 350, 0, 59, 0, 0, 0, 0, 0, 51, 52, 53, 0, 18, 0, 0, 0, 130, 60, 0, 316, 114, 113, 121, 34, 316, 33, 351, 347, 346, 348, 349, 28, 48, 0, 0, 0, 0, 18, 18, 0, 0, 0, 132, 62, 0, 111, 36, 30, 49, 0, 0, 0, 316, 19, 20, 0, 0, 0, 80, 0, 0, 133, 0, 0, 63, 126, 0, 0, 0, 0, 37, 40, 39, 41, 50, 0, 0, 17, 347, 129, 127, 137, 316, 136, 135, 134, 65, 316, 64, 0, 0, 0, 316, 38, 0, 21, 139, 131, 67, 61, 0, 0, 0, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 144, 0, 139, 142, 145, 146, 147, 148, 149, 139, 176, 178, 179, 150, 151, 0, 0, 0, 0, 0, 0, 0, 0, 68, 71, 72, 73, 74, 75, 76, 77, 78, 79, 42, 81, 0, 0, 0, 0, 191, 180, 0, 0, 0, 0, 0, 316, 140, 143, 141, 177, 0, 0, 0, 0, 0, 0, 0, 316, 70, 69, 82, 0, 0, 0, 193, 182, 161, 162, 163, 164, 165, 166, 167, 0, 168, 169, 170, 171, 0, 172, 0, 0, 159, 153, 156, 155, 154, 157, 158, 0, 138, 91, 92, 90, 93, 94, 95, 0, 0, 0, 0, 0, 0, 97, 98, 99, 100, 0, 66, 22, 175, 308, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 202, 204, 203, 0, 193, 196, 198, 199, 200, 201, 205, 206, 207, 193, 219, 230, 221, 222, 223, 224, 225, 226, 227, 228, 229, 0, 0, 0, 0, 183, 185, 186, 187, 160, 173, 174, 341, 152, 0, 89, 0, 102, 0, 83, 84, 101, 0, 0, 0, 0, 0, 0, 0, 284, 286, 269, 271, 0, 248, 250, 252, 254, 0, 0, 312, 314, 0, 231, 0, 316, 194, 197, 195, 220, 0, 0, 0, 316, 184, 0, 0, 0, 85, 96, 0, 0, 215, 216, 217, 218, 0, 0, 0, 0, 288, 0, 273, 0, 0, 256, 0, 256, 0, 0, 0, 318, 0, 0, 233, 0, 192, 0, 0, 0, 181, 87, 86, 88, 0, 0, 214, 0, 0, 0, 0, 0, 0, 0, 289, 291, 292, 293, 287, 0, 0, 0, 0, 0, 274, 279, 276, 277, 278, 272, 0, 0, 0, 0, 0, 0, 0, 257, 259, 260, 261, 262, 263, 251, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 329, 330, 331, 0, 319, 328, 324, 332, 321, 323, 322, 325, 326, 327, 315, 209, 0, 0, 0, 0, 0, 233, 233, 233, 233, 0, 190, 0, 0, 211, 213, 0, 0, 0, 295, 297, 304, 306, 0, 316, 290, 0, 0, 0, 0, 316, 275, 128, 0, 0, 0, 0, 0, 316, 258, 316, 208, 212, 0, 0, 0, 0, 337, 0, 0, 0, 316, 320, 240, 242, 244, 246, 0, 0, 316, 234, 235, 236, 237, 210, 0, 0, 0, 0, 0, 299, 0, 299, 0, 0, 285, 0, 0, 0, 0, 270, 0, 0, 0, 0, 0, 249, 253, 0, 0, 0, 0, 338, 0, 0, 0, 0, 313, 256, 0, 256, 0, 0, 0, 232, 188, 189, 309, 310, 311, 302, 303, 0, 300, 298, 0, 307, 294, 0, 280, 281, 282, 0, 0, 266, 267, 268, 0, 342, 343, 335, 339, 336, 340, 334, 333, 0, 243, 0, 247, 239, 238, 316, 301, 316, 0, 265, 264, 344, 316, 316, 296, 305, 0, 241, 245, 283, 0, 0, 0 }; static const short yydefgoto[] = { 688, 1, 8, 9, 24, 10, 30, 46, 64, 114, 138, 139, 140, 11, 28, 41, 42, 33, 66, 99, 100, 148, 171, 172, 173, 12, 29, 44, 45, 113, 13, 26, 27, 87, 145, 165, 166, 200, 238, 239, 88, 175, 241, 242, 243, 244, 314, 245, 324, 246, 247, 35, 36, 65, 89, 90, 91, 92, 93, 94, 95, 347, 96, 97, 144, 162, 163, 198, 217, 218, 219, 220, 306, 221, 290, 295, 222, 223, 224, 225, 226, 227, 282, 374, 375, 376, 377, 378, 228, 281, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 436, 359, 360, 361, 454, 536, 537, 538, 539, 629, 630, 540, 631, 632, 362, 445, 446, 363, 447, 448, 496, 497, 498, 499, 500, 501, 502, 364, 442, 443, 483, 484, 485, 486, 487, 488, 365, 440, 441, 473, 474, 475, 476, 601, 602, 643, 644, 477, 603, 604, 229, 367, 368, 369, 370, 451, 452, 55, 519, 520, 521, 522, 523, 524, 624, 525, 230, 527, 528, 529, 296 }; static const short yypact[] = { -32768, 51,-32768, -28, -7, 92, 108, 125,-32768, 51, 51, 51, 51, 51,-32768, 67,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768, 135, 121, 166,-32768, 221, 239, -32768, 179, 200,-32768,-32768, -9,-32768, 298, 207,-32768, 211, 59,-32768, 226, 4,-32768, 175,-32768,-32768, 207, -32768,-32768,-32768, 22,-32768,-32768, 323, 207,-32768, 327, 207,-32768, 207, 268,-32768, 518, 271,-32768, 272,-32768, 42, 42, 286, 353,-32768, -34,-32768,-32768,-32768, 281, 284, 308, 295, 296, 311,-32768,-32768,-32768,-32768, 322, 518,-32768, 518, 305,-32768,-32768,-32768,-32768, 331, 117, -32768,-32768,-32768, 313,-32768, 42, 42, 42, 42, 320, -32768,-32768,-32768, 28, 16, 42, 42, 412,-32768,-32768, 415, 207,-32768,-32768,-32768,-32768, 207,-32768,-32768, 218, 218,-32768,-32768,-32768,-32768, 190, 338, 350, 357, 16, 16, 36, 36, 349, 395, 396, 354,-32768, 29,-32768, -32768, 358, 42, 446, 207,-32768,-32768, 42, 365, 410, -32768, 379, 234,-32768, 384, 215,-32768,-32768, 375, 380, 383, 15,-32768,-32768,-32768,-32768,-32768, 36, 387,-32768, 165,-32768,-32768,-32768, 207,-32768, 396,-32768,-32768, 207, -32768, 465, 466, 471, 207,-32768, 36,-32768, 439,-32768, 285,-32768, 398, 399, 482,-32768, 36, 409, 411, 420, 427, 419, 421, 423, 426, 429,-32768, 436, 439, 453, -32768,-32768,-32768,-32768,-32768, 439, 299,-32768,-32768,-32768, -32768, 430, 431, 435, 437, 444, 445, 448, 261,-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768, 451, 36, 513, 535,-32768,-32768, 618, 7, 7, 536, 18, 207,-32768,-32768,-32768,-32768, 639, 538, 42, 552, 554, 556, 590, 207,-32768,-32768,-32768, 432, 475, 480, 186, 85,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 483,-32768,-32768,-32768,-32768, 490, 623, 491, 506,-32768, -32768,-32768,-32768,-32768,-32768,-32768, 507,-32768,-32768,-32768, -32768,-32768,-32768,-32768, 5, 515, 36, 516, 521, 522, -32768,-32768,-32768,-32768, 42,-32768,-32768,-32768,-32768, 531, 533, 544, 545, 546, 549, -14, 38, 550, 39, 44, 551, 576, 94, 577, 542, 581,-32768,-32768,-32768, 592, 186, 27,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 186, 213,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768, 625, 630, 640, 50,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768, 24,-32768, 36,-32768, 457,-32768, -32768,-32768, 464, 42, 42, 267, 42, 42, 42,-32768, -32768,-32768,-32768, 42,-32768,-32768,-32768,-32768, 621, 42, -32768,-32768, 7,-32768, 658, 207,-32768,-32768,-32768,-32768, 662, 42, 42, 207,-32768, 588, 469, 473,-32768,-32768, 36, 36,-32768,-32768,-32768,-32768, 589, 36, 36, 36, 291, 291, 167, 167, 36, 650, 650, 650, 650, 42, 36, 385, 385, 659, 142, 42,-32768, 660, 36, 36, -32768,-32768,-32768,-32768, 481, 489,-32768, 36, 36, 36, 97, 98, 663, 337,-32768,-32768,-32768,-32768,-32768, 664, 665, 666, 667, 158,-32768,-32768,-32768,-32768,-32768,-32768, 496, 668, 669, 670, 671, 672, 289,-32768,-32768,-32768, -32768,-32768,-32768,-32768, 348,-32768, 505, 523, 673, 674, 675, 676, 677, 678, 679, 680,-32768,-32768,-32768, 324, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768, 99, 111, 681, 682, 601, 142, 142, 142, 142, 528,-32768, 36, 36,-32768,-32768, 36, 36, 36, -32768,-32768,-32768,-32768, 7, 207,-32768, 42, 42, 763, 764, 207,-32768,-32768, 42, 42, 765, 766, 767, 207, -32768, 207,-32768,-32768, 7, 768, 42, 769, 770, 771, 772, 42, 207,-32768,-32768,-32768,-32768,-32768, 773, 774, 207,-32768,-32768,-32768,-32768,-32768, 532, 537, 541, 555, 564, 96, 96, 96, 96, 693,-32768, 36, 573, 694, 695,-32768, 36, 36, 696, 697, 698,-32768,-32768, 7, 699, 578, 700,-32768, 3, 701, 702, 582,-32768, 650, 650, 650, 650, 703, 704,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768, -25,-32768,-32768, 248,-32768,-32768, 36, -32768,-32768,-32768, 587, 591,-32768,-32768,-32768, 705,-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768, 422,-32768, 433, -32768,-32768,-32768, 207,-32768, 207, 36,-32768,-32768,-32768, 207, 207,-32768,-32768, 596,-32768,-32768,-32768, 792, 793, -32768 }; static const short yypgoto[] = { -32768,-32768, 723,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 223,-32768,-32768,-32768,-32768,-32768, 753, 760,-32768,-32768, 706,-32768,-32768, 626,-32768, 228,-32768,-32768, 752,-32768, 116,-32768, 775, 636,-32768, 637, -141,-32768,-32768, 562, 40,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768, 776,-32768, 174,-32768, 17, 709,-32768,-32768, -277,-32768, -275,-32768,-32768,-32768, 641,-32768, -98, 585, -32768,-32768,-32768,-32768,-32768, -258,-32768,-32768,-32768, 580, -32768,-32768,-32768,-32768, 434,-32768,-32768,-32768,-32768,-32768, -62, 456,-32768,-32768,-32768,-32768, -431,-32768,-32768,-32768, -32768, 449,-32768,-32768,-32768, 204,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -445, -443, -331, -318,-32768,-32768,-32768,-32768,-32768,-32768, -32768, -234,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -293,-32768,-32768,-32768,-32768, 209, -587,-32768,-32768,-32768, -251,-32768,-32768,-32768,-32768,-32768,-32768, -49,-32768, -438, -32768,-32768,-32768,-32768,-32768,-32768, -413,-32768,-32768,-32768, -13 }; #define YYLAST 812 static const short yytable[] = { 67, 297, 504, 503, 346, 505, 348, 662, 74, 384, 69, 76, 69, 77, 530, 645, 491, 647, 168, 31, 518, 518, 299, 6, 190, 492, 68, 69, 425, 69, 366, 136, 168, 69, 43, 329, 330, 331, 526, 526, 72, 69, 110, 111, 112, 190, 14, 69, 300, 301, 673, -3, 2, 570, 81, 137, 674, 102, 103, 674, 399, 570, 79, 80, 337, 3, 49, 15, 81, 371, 32, 4, 147, 346, 346, 348, 348, 149, 5, 60, 302, 583, 346, 6, 348, 40, 340, 341, 518, 663, 194, 385, 129, 130, 131, 132, 169, 170, 343, 366, 135, 25, 141, 142, 371, 179, 526, 400, 366, 366, 169, 170, 401, 404, 134, 303, 304, 305, 406, 70, 263, 70, 372, 373, 71, 423, 71, 265, 158, 159, 291, 292, 293, 294, 57, 199, 70, 491, 70, 177, 201, 71, 70, 71, 180, 205, 492, 71, 478, 345, 157, 106, 107, 108, 453, 71, 70, 372, 373, 402, 405, 71, 7, 31, 196, 407, 16, 6, 410, 479, 480, 550, 552, 584, 516, 516, 517, 517, 479, 480, 556, 86, 17, 206, 667, 586, 669, 668, 174, 670, 532, 533, 126, 252, 329, 330, 331, 98, 481, 18, 25, 332, 333, 334, 208, 37, 86, 481, 86, 489, 335, 174, 534, 307, 32, 411, 336, 248, 551, 553, 585, 79, 80, 337, 570, 325, 570, 482, 332, 333, 334, 208, 587, 561, 338, 339, 482, 335, 216, 278, 240, 38, 516, 336, 517, 340, 341, 40, 342, 562, 62, -350, 34, 47, 535, 248, 316, 343, 216, 216, 164, 338, 339, 51, 122, 216, 123, 231, 232, 43, 641, 641, 641, 641, 48, 342, 150, 161, 240, 164, 83, -350, -350, 642, 642, 642, 642, 63, 416, 491, 189, 231, 232, 54, 233, 56, 605, 418, 492, 344, 81, 386, 53, 388, 105, 106, 107, 108, 345, 184, 59, 392, 641, 85, 234, 641, 619, 151, 233, 235, 209, 210, 236, 675, 81, 642, 344, 73, 642, 237, 491, 75, 329, 470, 107, 108, 274, 85, 234, 492, 79, 80, 78, 235, 81, 471, 236, 275, 472, 508, 509, 98, 84, 237, 493, 494, 495, 109, 101, 79, 80, 658, 155, 156, 569, 115, 456, 432, 116, 118, 119, 426, 104, 427, 460, 433, 434, 435, 510, 470, 430, 431, 511, 437, 438, 439, 512, 214, 513, 491, 444, 471, 117, 329, 472, 120, 450, 121, 492, 582, 105, 106, 107, 108, 514, 125, 133, 515, 458, 459, 508, 509, 555, 493, 494, 495, 143, 464, 465, 146, 79, 80, 152, 571, 467, 468, 469, 105, 106, 107, 108, 490, 154, 128, 153, 160, 506, 507, 161, 510, 167, 164, 541, 511, 176, 543, 544, 512, 214, 513, 178, 181, 207, 183, 547, 548, 549, 208, 188, 191, 209, 210, 211, 491, 192, 514, 207, 193, 515, 202, 203, 208, 492, 197, 491, 204, 211, 212, 81, 105, 106, 107, 108, 492, 249, 250, 251, 493, 494, 495, 213, 212, 81, 253, 255, 254, 182, 680, 493, 494, 495, 256, 214, 257, 213, 258, 606, 259, 681, 215, 260, 262, 611, 261, 267, 268, 214, 279, 326, 269, 617, 270, 618, 215, 105, 106, 107, 108, 271, 272, 596, 597, 273, 628, 598, 599, 600, 277, 4, 280, 298, 635, 315, 428, 607, 608, 105, 106, 107, 108, 429, 612, 613, 79, 80, 462, 317, 81, 318, 463, 319, 327, 82, 621, 83, 84, 328, 545, 627, 379, 85, 105, 106, 107, 108, 546, 380, 381, 105, 106, 107, 108, 563, 105, 106, 107, 108, 105, 106, 107, 108, 572, 382, 383, 649, 105, 106, 107, 108, 653, 654, 387, 389, 105, 106, 107, 108, 390, 391, 573, 105, 106, 107, 108, 595, 393, 413, 394, 636, 105, 106, 107, 108, 637, 682, 449, 683, 638, 395, 396, 397, 685, 686, 398, 403, 408, 676, 105, 106, 107, 108, 639, 105, 106, 107, 108, 105, 106, 107, 108, 640, 105, 106, 107, 108, 105, 106, 107, 108, 650, 409, 412, 455, 684, 660, 414, 457, 415, 666, 105, 106, 107, 108, 677, 461, 466, 590, 678, 105, 106, 107, 108, 687, 320, 321, 322, 323, 105, 106, 107, 108, 491, 105, 106, 107, 108, 105, 106, 107, 108, 492, 105, 106, 107, 108, 105, 106, 107, 108, 420, 105, 106, 107, 108, 421, 493, 494, 495, 283, 284, 285, 286, 287, 288, 422, 289, 308, 309, 310, 311, 312, 313, 19, 20, 21, 22, 23, 105, 106, 107, 108, 591, 592, 593, 594, 531, 542, 554, 557, 558, 559, 560, 564, 565, 566, 567, 568, 574, 575, 576, 577, 578, 579, 580, 581, 588, 589, 609, 610, 614, 615, 616, 620, 622, 623, 625, 626, 633, 634, 648, 651, 652, 655, 656, 657, 659, 661, 664, 665, 671, 672, 679, 689, 690, 58, 50, 61, 195, 185, 186, 276, 39, 124, 187, 264, 127, 266, 417, 424, 419, 0, 52, 646 }; static const short yycheck[] = { 49, 259, 447, 446, 281, 448, 281, 4, 57, 4, 5, 60, 5, 62, 452, 602, 41, 604, 3, 28, 451, 452, 4, 32, 165, 50, 4, 5, 4, 5, 281, 15, 3, 5, 30, 8, 9, 10, 451, 452, 53, 5, 76, 77, 78, 186, 74, 5, 30, 31, 75, 0, 1, 496, 39, 39, 643, 70, 71, 646, 74, 504, 35, 36, 37, 14, 75, 74, 39, 19, 79, 20, 121, 350, 351, 350, 351, 126, 27, 75, 62, 519, 359, 32, 359, 26, 59, 60, 519, 86, 75, 86, 105, 106, 107, 108, 81, 82, 71, 350, 113, 34, 115, 116, 19, 154, 519, 121, 359, 360, 81, 82, 74, 74, 86, 97, 98, 99, 74, 114, 218, 114, 72, 73, 119, 75, 119, 225, 141, 142, 123, 124, 125, 126, 75, 184, 114, 41, 114, 152, 189, 119, 114, 119, 157, 194, 50, 119, 441, 122, 114, 115, 116, 117, 412, 119, 114, 72, 73, 121, 121, 119, 111, 28, 177, 121, 74, 32, 74, 11, 12, 74, 74, 74, 451, 452, 451, 452, 11, 12, 473, 65, 74, 196, 629, 74, 631, 630, 148, 632, 48, 49, 75, 206, 8, 9, 10, 80, 40, 74, 34, 15, 16, 17, 18, 84, 90, 40, 92, 443, 24, 171, 70, 262, 79, 121, 30, 200, 121, 121, 121, 35, 36, 37, 667, 274, 669, 69, 15, 16, 17, 18, 121, 75, 48, 49, 69, 24, 198, 252, 200, 75, 519, 30, 519, 59, 60, 26, 62, 483, 75, 86, 24, 74, 112, 238, 269, 71, 218, 219, 45, 48, 49, 35, 90, 225, 92, 6, 7, 30, 601, 602, 603, 604, 74, 62, 86, 43, 238, 45, 46, 116, 117, 601, 602, 603, 604, 112, 350, 41, 75, 6, 7, 86, 33, 84, 554, 359, 50, 113, 39, 314, 4, 316, 114, 115, 116, 117, 122, 75, 84, 324, 643, 52, 53, 646, 574, 127, 33, 58, 21, 22, 61, 75, 39, 643, 113, 4, 646, 68, 41, 4, 8, 42, 116, 117, 75, 52, 53, 50, 35, 36, 74, 58, 39, 54, 61, 86, 57, 25, 26, 80, 47, 68, 65, 66, 67, 4, 86, 35, 36, 619, 139, 140, 75, 84, 415, 100, 84, 74, 74, 384, 86, 386, 423, 108, 109, 110, 54, 42, 393, 394, 58, 396, 397, 398, 62, 63, 64, 41, 403, 54, 84, 8, 57, 84, 409, 75, 50, 75, 114, 115, 116, 117, 80, 74, 86, 83, 421, 422, 25, 26, 75, 65, 66, 67, 4, 430, 431, 4, 35, 36, 84, 75, 437, 438, 439, 114, 115, 116, 117, 444, 75, 120, 84, 86, 449, 450, 43, 54, 86, 45, 455, 58, 86, 458, 459, 62, 63, 64, 4, 86, 13, 74, 467, 468, 469, 18, 74, 84, 21, 22, 23, 41, 84, 80, 13, 84, 83, 4, 4, 18, 50, 86, 41, 4, 23, 38, 39, 114, 115, 116, 117, 50, 86, 86, 4, 65, 66, 67, 51, 38, 39, 84, 74, 84, 86, 75, 65, 66, 67, 74, 63, 84, 51, 84, 555, 84, 75, 70, 84, 75, 561, 84, 84, 84, 63, 4, 86, 84, 569, 84, 571, 70, 114, 115, 116, 117, 84, 84, 543, 544, 84, 582, 547, 548, 549, 86, 20, 4, 4, 590, 4, 86, 557, 558, 114, 115, 116, 117, 86, 564, 565, 35, 36, 86, 4, 39, 4, 86, 4, 86, 44, 576, 46, 47, 86, 86, 581, 86, 52, 114, 115, 116, 117, 86, 86, 86, 114, 115, 116, 117, 86, 114, 115, 116, 117, 114, 115, 116, 117, 86, 86, 86, 607, 114, 115, 116, 117, 612, 613, 86, 86, 114, 115, 116, 117, 86, 86, 86, 114, 115, 116, 117, 86, 84, 74, 84, 86, 114, 115, 116, 117, 86, 673, 4, 675, 86, 84, 84, 84, 680, 681, 84, 84, 84, 649, 114, 115, 116, 117, 86, 114, 115, 116, 117, 114, 115, 116, 117, 86, 114, 115, 116, 117, 114, 115, 116, 117, 86, 84, 84, 4, 676, 86, 84, 4, 75, 86, 114, 115, 116, 117, 86, 86, 86, 75, 86, 114, 115, 116, 117, 86, 93, 94, 95, 96, 114, 115, 116, 117, 41, 114, 115, 116, 117, 114, 115, 116, 117, 50, 114, 115, 116, 117, 114, 115, 116, 117, 84, 114, 115, 116, 117, 84, 65, 66, 67, 100, 101, 102, 103, 104, 105, 84, 107, 87, 88, 89, 90, 91, 92, 9, 10, 11, 12, 13, 114, 115, 116, 117, 537, 538, 539, 540, 86, 86, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 0, 0, 41, 35, 44, 171, 162, 162, 238, 26, 93, 162, 219, 99, 226, 351, 374, 360, -1, 35, 603 }; /* -*-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 68 "engrave.y" { section = BASE; } break; case 9: #line 77 "engrave.y" { parse_error(); yyerrok; yyclearin; } break; case 10: #line 84 "engrave.y" {section = GROUPS; } break; case 11: #line 84 "engrave.y" { section = BASE; } break; case 12: #line 87 "engrave.y" { section = SPECTRA; } break; case 13: #line 87 "engrave.y" { section = BASE; } break; case 16: #line 94 "engrave.y" { section = SPECTRUM; engrave_parse_spectrum(); } break; case 17: #line 97 "engrave.y" { section = SPECTRA; } break; case 21: #line 105 "engrave.y" { engrave_parse_spectrum_name(yyvsp[-1].string); } break; case 22: #line 110 "engrave.y" { engrave_parse_spectrum_color((int)yyvsp[-5].val, (int)yyvsp[-4].val, (int)yyvsp[-3].val, (int)yyvsp[-2].val, (int)yyvsp[-1].val); } break; case 23: #line 115 "engrave.y" { section = FONTS; } break; case 24: #line 115 "engrave.y" { section = BASE; } break; case 28: #line 123 "engrave.y" { engrave_parse_font(yyvsp[-2].string, yyvsp[-1].string); } break; case 29: #line 128 "engrave.y" { section = STYLES; } break; case 30: #line 128 "engrave.y" { section = BASE; } break; case 34: #line 136 "engrave.y" { engrave_parse_style(); section = STYLE; } break; case 35: #line 136 "engrave.y" { section = STYLES; } break; case 42: #line 149 "engrave.y" { engrave_parse_base(yyvsp[-1].string); } break; case 43: #line 154 "engrave.y" { section = IMAGES; } break; case 44: #line 154 "engrave.y" { section = BASE; } break; case 48: #line 162 "engrave.y" { engrave_parse_image(yyvsp[-2].string, yyvsp[-1].image_type, 0); } break; case 49: #line 165 "engrave.y" { engrave_parse_image(yyvsp[-3].string, yyvsp[-2].image_type, yyvsp[-1].val); } break; case 50: #line 168 "engrave.y" { engrave_parse_image(yyvsp[-4].string, yyvsp[-3].image_type, yyvsp[-2].val); } break; case 51: #line 173 "engrave.y" { yyval.image_type = ENGRAVE_IMAGE_TYPE_RAW; } break; case 52: #line 174 "engrave.y" { yyval.image_type = ENGRAVE_IMAGE_TYPE_COMP; } break; case 53: #line 175 "engrave.y" { yyval.image_type = ENGRAVE_IMAGE_TYPE_LOSSY; } break; case 58: #line 187 "engrave.y" { switch (section) { case BASE: engrave_parse_data(yyvsp[-2].string, yyvsp[-1].string, 0); break; case GROUP: engrave_parse_group_data(yyvsp[-2].string, yyvsp[-1].string, 0); break; default: break; } } break; case 59: #line 200 "engrave.y" { switch (section) { case BASE: engrave_parse_data(yyvsp[-2].string, NULL, (int)yyvsp[-1].val); break; case GROUP: engrave_parse_group_data(yyvsp[-2].string, NULL, (int)yyvsp[-1].val); break; default: break; } } break; case 60: #line 215 "engrave.y" { section = PROGRAMS; } break; case 61: #line 215 "engrave.y" { section = BASE; } break; case 65: #line 223 "engrave.y" { engrave_parse_program(); section = PROGRAM; } break; case 66: #line 223 "engrave.y" { section = PROGRAMS; } break; case 80: #line 243 "engrave.y" { switch(section) { case GROUP: engrave_parse_group_name(yyvsp[-1].string); break; case PART: engrave_parse_part_name(yyvsp[-1].string); break; case PROGRAM: engrave_parse_program_name(yyvsp[-1].string); break; case STYLE: engrave_parse_style_name(yyvsp[-1].string); default: break; } } break; case 81: #line 263 "engrave.y" { engrave_parse_style_base(yyvsp[-1].string); } break; case 82: #line 268 "engrave.y" { engrave_parse_style_tag(yyvsp[-2].string, yyvsp[-1].string); } break; case 83: #line 273 "engrave.y" { engrave_parse_program_signal(yyvsp[-1].string); } break; case 84: #line 278 "engrave.y" { engrave_parse_program_source(yyvsp[-1].string); } break; case 85: #line 283 "engrave.y" { engrave_parse_program_in(yyvsp[-2].val, yyvsp[-1].val); } break; case 86: #line 288 "engrave.y" { engrave_parse_program_action(yyvsp[-3].prog_actions, yyvsp[-2].string, NULL, yyvsp[-1].val, 0); } break; case 87: #line 291 "engrave.y" { engrave_parse_program_action(yyvsp[-3].prog_actions, yyvsp[-2].string, yyvsp[-1].string, 0, 0); } break; case 88: #line 294 "engrave.y" { engrave_parse_program_action(yyvsp[-3].prog_actions, NULL, NULL, yyvsp[-2].val, yyvsp[-1].val); } break; case 89: #line 297 "engrave.y" { engrave_parse_program_action(yyvsp[-1].prog_actions, NULL, NULL, 0, 0); } break; case 90: #line 302 "engrave.y" { yyval.prog_actions = ENGRAVE_ACTION_SIGNAL_EMIT; } break; case 91: #line 303 "engrave.y" { yyval.prog_actions = ENGRAVE_ACTION_STATE_SET; } break; case 92: #line 304 "engrave.y" { yyval.prog_actions = ENGRAVE_ACTION_STOP; } break; case 93: #line 305 "engrave.y" { yyval.prog_actions = ENGRAVE_ACTION_DRAG_VAL_SET; } break; case 94: #line 306 "engrave.y" { yyval.prog_actions = ENGRAVE_ACTION_DRAG_VAL_STEP; } break; case 95: #line 307 "engrave.y" { yyval.prog_actions = ENGRAVE_ACTION_DRAG_VAL_PAGE; } break; case 96: #line 310 "engrave.y" { engrave_parse_program_transition(yyvsp[-2].transition_type, yyvsp[-1].val); } break; case 97: #line 315 "engrave.y" { yyval.transition_type = ENGRAVE_TRANSITION_LINEAR; } break; case 98: #line 316 "engrave.y" { yyval.transition_type = ENGRAVE_TRANSITION_SINUSOIDAL; } break; case 99: #line 317 "engrave.y" { yyval.transition_type = ENGRAVE_TRANSITION_ACCELERATE; } break; case 100: #line 318 "engrave.y" { yyval.transition_type = ENGRAVE_TRANSITION_DECELERATE; } break; case 101: #line 321 "engrave.y" { engrave_parse_program_target(yyvsp[-1].string); } break; case 102: #line 326 "engrave.y" { engrave_parse_program_after(yyvsp[-1].string); } break; case 110: #line 340 "engrave.y" { engrave_parse_group(); section = GROUP; } break; case 111: #line 340 "engrave.y" { section = GROUPS; } break; case 119: #line 354 "engrave.y" { switch (section) { case GROUP: engrave_parse_group_script(yylval.string); break; case PROGRAM: engrave_parse_program_script(yylval.string); break; default: break; } free(yylval.string); yylval.string = NULL; } break; case 126: #line 381 "engrave.y" { engrave_parse_group_alias(yyvsp[-1].string); } break; case 127: #line 386 "engrave.y" { switch(section) { case GROUP: engrave_parse_group_min((int)yyvsp[-2].val, (int)yyvsp[-1].val); break; case STATE: engrave_parse_state_min((int)yyvsp[-2].val, (int)yyvsp[-1].val); break; case TEXT: engrave_parse_state_text_min((int)yyvsp[-2].val, (int)yyvsp[-1].val); break; default: break; } } break; case 128: #line 404 "engrave.y" { engrave_parse_state_fixed((int)yyvsp[-2].val, (int)yyvsp[-1].val); } break; case 129: #line 411 "engrave.y" { switch(section) { case GROUP: engrave_parse_group_max((int)yyvsp[-2].val, (int)yyvsp[-1].val); break; case STATE: engrave_parse_state_max((int)yyvsp[-2].val, (int)yyvsp[-1].val); break; case TEXT: engrave_parse_state_text_max((int)yyvsp[-2].val, (int)yyvsp[-1].val); break; default: break; } } break; case 130: #line 429 "engrave.y" { section = PARTS; } break; case 131: #line 429 "engrave.y" { section = BASE; } break; case 137: #line 439 "engrave.y" { engrave_parse_part(); section = PART; } break; case 138: #line 439 "engrave.y" { section = PARTS; } break; case 152: #line 461 "engrave.y" { engrave_parse_part_type(yyvsp[-1].part_type); } break; case 153: #line 466 "engrave.y" { yyval.part_type = ENGRAVE_PART_TYPE_IMAGE; } break; case 154: #line 467 "engrave.y" { yyval.part_type = ENGRAVE_PART_TYPE_RECT; } break; case 155: #line 468 "engrave.y" { yyval.part_type = ENGRAVE_PART_TYPE_TEXT; } break; case 156: #line 469 "engrave.y" { yyval.part_type = ENGRAVE_PART_TYPE_TEXTBLOCK; } break; case 157: #line 470 "engrave.y" { yyval.part_type = ENGRAVE_PART_TYPE_SWALLOW; } break; case 158: #line 471 "engrave.y" { yyval.part_type = ENGRAVE_PART_TYPE_GRADIENT; } break; case 159: #line 472 "engrave.y" { /* edje accepts quoted part types. */ if (!strcmp(yyvsp[0].string, "RECT")) yyval.part_type = ENGRAVE_PART_TYPE_RECT; else if (!strcmp(yyvsp[0].string, "IMAGE")) yyval.part_type = ENGRAVE_PART_TYPE_IMAGE; else if (!strcmp(yyvsp[0].string, "TEXT")) yyval.part_type = ENGRAVE_PART_TYPE_TEXT; else if (!strcmp(yyvsp[0].string, "TEXTBLOCK")) yyval.part_type = ENGRAVE_PART_TYPE_TEXTBLOCK; else if (!strcmp(yyvsp[0].string, "SWALLOW")) yyval.part_type = ENGRAVE_PART_TYPE_SWALLOW; else if (!strcmp(yyvsp[0].string, "GRADIENT")) yyval.part_type = ENGRAVE_PART_TYPE_GRADIENT; } break; case 160: #line 488 "engrave.y" { engrave_parse_part_effect(yyvsp[-1].text_effect); } break; case 161: #line 493 "engrave.y" { yyval.text_effect = ENGRAVE_TEXT_EFFECT_NONE; } break; case 162: #line 494 "engrave.y" { yyval.text_effect = ENGRAVE_TEXT_EFFECT_PLAIN; } break; case 163: #line 495 "engrave.y" { yyval.text_effect = ENGRAVE_TEXT_EFFECT_OUTLINE; } break; case 164: #line 496 "engrave.y" { yyval.text_effect = ENGRAVE_TEXT_EFFECT_SOFT_OUTLINE; } break; case 165: #line 497 "engrave.y" { yyval.text_effect = ENGRAVE_TEXT_EFFECT_SHADOW; } break; case 166: #line 498 "engrave.y" { yyval.text_effect = ENGRAVE_TEXT_EFFECT_SOFT_SHADOW; } break; case 167: #line 499 "engrave.y" { yyval.text_effect = ENGRAVE_TEXT_EFFECT_OUTLINE_SOFT_SHADOW; } break; case 168: #line 502 "engrave.y" { yyval.val = 1; } break; case 169: #line 503 "engrave.y" { yyval.val = 0; } break; case 170: #line 504 "engrave.y" { yyval.val = 1; } break; case 171: #line 505 "engrave.y" { yyval.val = 0; } break; case 172: #line 506 "engrave.y" { int i = yyvsp[0].val; if ((i != 0) && (i != 1)) { printf("Invalid boolean %d at line %d\n", i, engrave_lnum); i = 0; } yyval.val = i; } break; case 173: #line 516 "engrave.y" { engrave_parse_part_mouse_events((int)yyvsp[-1].val); } break; case 174: #line 521 "engrave.y" { engrave_parse_part_repeat_events((int)yyvsp[-1].val); } break; case 175: #line 526 "engrave.y" { engrave_parse_part_clip_to(yyvsp[-1].string); } break; case 180: #line 539 "engrave.y" { section = DRAGABLE; } break; case 181: #line 539 "engrave.y" { section = PART; } break; case 188: #line 552 "engrave.y" { engrave_parse_part_dragable_x((int)yyvsp[-3].val, (int)yyvsp[-2].val, (int)yyvsp[-1].val); } break; case 189: #line 557 "engrave.y" { engrave_parse_part_dragable_y((int)yyvsp[-3].val, (int)yyvsp[-2].val, (int)yyvsp[-1].val); } break; case 190: #line 562 "engrave.y" { engrave_parse_part_dragable_confine(yyvsp[-1].string); } break; case 191: #line 567 "engrave.y" { engrave_parse_state(); section = STATE; } break; case 192: #line 567 "engrave.y" { section = PART; } break; case 208: #line 591 "engrave.y" { engrave_parse_state_name(yyvsp[-2].string, yyvsp[-1].val); } break; case 209: #line 596 "engrave.y" { engrave_parse_state_visible((int)yyvsp[-1].val); } break; case 210: #line 601 "engrave.y" { engrave_parse_state_inherit(yyvsp[-2].string, yyvsp[-1].val); } break; case 211: #line 607 "engrave.y" { switch(section) { case STATE: engrave_parse_state_align(yyvsp[-2].val, yyvsp[-1].val); break; case TEXT: engrave_parse_state_text_align(yyvsp[-2].val, yyvsp[-1].val); break; default: break; } } break; case 212: #line 622 "engrave.y" { engrave_parse_state_step(yyvsp[-2].val, yyvsp[-1].val); } break; case 213: #line 627 "engrave.y" { engrave_parse_state_aspect(yyvsp[-2].val, yyvsp[-1].val); } break; case 214: #line 632 "engrave.y" { engrave_parse_state_aspect_preference(yyvsp[-1].aspect_pref); } break; case 215: #line 637 "engrave.y" { yyval.aspect_pref = ENGRAVE_ASPECT_PREFERENCE_NONE; } break; case 216: #line 638 "engrave.y" { yyval.aspect_pref = ENGRAVE_ASPECT_PREFERENCE_VERTICAL; } break; case 217: #line 639 "engrave.y" { yyval.aspect_pref = ENGRAVE_ASPECT_PREFERENCE_HORIZONTAL; } break; case 218: #line 640 "engrave.y" { yyval.aspect_pref = ENGRAVE_ASPECT_PREFERENCE_BOTH; } break; case 231: #line 659 "engrave.y" {section = GRAD;} break; case 232: #line 659 "engrave.y" { section = STATE;} break; case 238: #line 669 "engrave.y" { engrave_parse_state_gradient_spectrum(yyvsp[-1].string); } break; case 239: #line 674 "engrave.y" { engrave_parse_state_gradient_type(yyvsp[-1].string); } break; case 240: #line 679 "engrave.y" {section = GRADREL1;} break; case 241: #line 679 "engrave.y" {section = GRAD;} break; case 242: #line 680 "engrave.y" {section = GRADREL1;} break; case 243: #line 680 "engrave.y" {section = GRAD;} break; case 244: #line 683 "engrave.y" {section = GRADREL2;} break; case 245: #line 683 "engrave.y" {section = GRAD;} break; case 246: #line 684 "engrave.y" {section = GRADREL2;} break; case 247: #line 684 "engrave.y" {section = GRAD;} break; case 248: #line 687 "engrave.y" {section = REL1;} break; case 249: #line 687 "engrave.y" {section = STATE;} break; case 250: #line 688 "engrave.y" {section = REL1;} break; case 251: #line 688 "engrave.y" {section = STATE;} break; case 252: #line 691 "engrave.y" {section = REL2;} break; case 253: #line 691 "engrave.y" {section = STATE;} break; case 254: #line 692 "engrave.y" {section = REL2;} break; case 255: #line 692 "engrave.y" {section = STATE;} break; case 264: #line 707 "engrave.y" { switch(section) { case REL1: engrave_parse_state_rel1_relative(yyvsp[-2].val, yyvsp[-1].val); break; case REL2: engrave_parse_state_rel2_relative(yyvsp[-2].val, yyvsp[-1].val); break; case ORIGIN: engrave_parse_state_fill_origin_relative(yyvsp[-2].val, yyvsp[-1].val); break; case SIZE: engrave_parse_state_fill_size_relative(yyvsp[-2].val, yyvsp[-1].val); break; case GRADREL1: engrave_parse_state_gradient_rel1_relative(yyvsp[-2].val, yyvsp[-1].val); break; case GRADREL2: engrave_parse_state_gradient_rel2_relative(yyvsp[-2].val, yyvsp[-1].val); break; default: break; } } break; case 265: #line 734 "engrave.y" { switch(section) { case REL1: engrave_parse_state_rel1_offset((int)yyvsp[-2].val, (int)yyvsp[-1].val); break; case REL2: engrave_parse_state_rel2_offset((int)yyvsp[-2].val, (int)yyvsp[-1].val); break; case ORIGIN: engrave_parse_state_fill_origin_offset((int)yyvsp[-2].val, (int)yyvsp[-1].val); break; case SIZE: engrave_parse_state_fill_size_offset((int)yyvsp[-2].val, (int)yyvsp[-1].val); break; case GRADREL1: engrave_parse_state_gradient_rel1_offset((int)yyvsp[-2].val, (int)yyvsp[-1].val); break; case GRADREL2: engrave_parse_state_gradient_rel2_offset((int)yyvsp[-2].val, (int)yyvsp[-1].val); break; default: break; } } break; case 266: #line 761 "engrave.y" { switch(section) { case REL1: engrave_parse_state_rel1_to(yyvsp[-1].string); break; case REL2: engrave_parse_state_rel2_to(yyvsp[-1].string); break; default: fprintf(stderr, "Error: \"to\" not allowed here %d, %d", engrave_lnum, engrave_col); } } break; case 267: #line 777 "engrave.y" { switch(section) { case REL1: engrave_parse_state_rel1_to_x(yyvsp[-1].string); break; case REL2: engrave_parse_state_rel2_to_x(yyvsp[-1].string); break; default: break; } } break; case 268: #line 792 "engrave.y" { switch(section) { case REL1: engrave_parse_state_rel1_to_y(yyvsp[-1].string); break; case REL2: engrave_parse_state_rel2_to_y(yyvsp[-1].string); break; default: break; } } break; case 269: #line 807 "engrave.y" { section = IMAGE; } break; case 270: #line 807 "engrave.y" { section = STATE; } break; case 271: #line 808 "engrave.y" { section = IMAGE; } break; case 272: #line 808 "engrave.y" { section = STATE; } break; case 280: #line 822 "engrave.y" { engrave_parse_state_image_middle((int)yyvsp[-1].val); } break; case 281: #line 827 "engrave.y" { engrave_parse_state_image_normal(yyvsp[-1].string); } break; case 282: #line 832 "engrave.y" { engrave_parse_state_image_tween(yyvsp[-1].string); } break; case 283: #line 837 "engrave.y" { engrave_parse_image_border((int)yyvsp[-4].val, (int)yyvsp[-3].val, (int)yyvsp[-2].val, (int)yyvsp[-1].val); } break; case 284: #line 842 "engrave.y" { section = FILL; } break; case 285: #line 842 "engrave.y" { section = STATE; } break; case 286: #line 843 "engrave.y" {section = FILL; } break; case 287: #line 843 "engrave.y" { section = STATE; } break; case 294: #line 856 "engrave.y" { engrave_parse_state_fill_smooth((int)yyvsp[-1].val); } break; case 295: #line 861 "engrave.y" { section = ORIGIN; } break; case 296: #line 861 "engrave.y" { section = FILL; } break; case 297: #line 862 "engrave.y" { section = ORIGIN; } break; case 298: #line 862 "engrave.y" { section = FILL; } break; case 304: #line 874 "engrave.y" { section = SIZE; } break; case 305: #line 874 "engrave.y" { section = FILL; } break; case 306: #line 875 "engrave.y" { section = SIZE; } break; case 307: #line 875 "engrave.y" { section = FILL; } break; case 308: #line 878 "engrave.y" { engrave_parse_state_color_class(yyvsp[-1].string); } break; case 309: #line 883 "engrave.y" { engrave_parse_state_color((int)yyvsp[-4].val, (int)yyvsp[-3].val, (int)yyvsp[-2].val, (int)yyvsp[-1].val); } break; case 310: #line 888 "engrave.y" { engrave_parse_state_color2((int)yyvsp[-4].val, (int)yyvsp[-3].val, (int)yyvsp[-2].val, (int)yyvsp[-1].val); } break; case 311: #line 893 "engrave.y" { engrave_parse_state_color3((int)yyvsp[-4].val, (int)yyvsp[-3].val, (int)yyvsp[-2].val, (int)yyvsp[-1].val); } break; case 312: #line 898 "engrave.y" { section = TEXT; } break; case 313: #line 898 "engrave.y" { section = STATE; } break; case 314: #line 899 "engrave.y" { section = TEXT; } break; case 315: #line 899 "engrave.y" { section = STATE; } break; case 333: #line 925 "engrave.y" { engrave_parse_state_text_elipsis((int)yyvsp[-1].val); } break; case 334: #line 930 "engrave.y" { engrave_parse_state_text_style(yyvsp[-1].string); } break; case 335: #line 935 "engrave.y" { engrave_parse_state_text_source(yyvsp[-1].string); } break; case 338: #line 944 "engrave.y" { engrave_parse_state_text_text_add(yyvsp[0].string); } break; case 339: #line 947 "engrave.y" { engrave_parse_state_text_text_add(yyvsp[0].string); } break; case 340: #line 952 "engrave.y" { engrave_parse_state_text_text_source(yyvsp[-1].string); } break; case 341: #line 957 "engrave.y" { engrave_parse_state_text_text_class(yyvsp[-1].string); } break; case 342: #line 962 "engrave.y" { engrave_parse_state_text_font(yyvsp[-1].string); } break; case 343: #line 967 "engrave.y" { engrave_parse_state_text_size((int)yyvsp[-1].val); } break; case 344: #line 972 "engrave.y" { engrave_parse_state_text_fit((int)yyvsp[-2].val, (int)yyvsp[-1].val); } break; case 345: #line 977 "engrave.y" { yyval.val = yyvsp[0].val; } break; case 346: #line 978 "engrave.y" { yyval.val = yyvsp[-2].val + yyvsp[0].val; } break; case 347: #line 979 "engrave.y" { yyval.val = yyvsp[-2].val - yyvsp[0].val; } break; case 348: #line 980 "engrave.y" { yyval.val = yyvsp[-2].val * yyvsp[0].val; } break; case 349: #line 981 "engrave.y" { yyval.val = yyvsp[-2].val / yyvsp[0].val; } break; case 350: #line 982 "engrave.y" { yyval.val = -yyvsp[0].val; } break; case 351: #line 983 "engrave.y" { yyval.val = yyvsp[-1].val; } 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 986 "engrave.y" void yyerror(const char *str) { fprintf(stderr, "yyerror: %s\n", str); } void parse_error(void) { fprintf(stderr, "file: %s, line: %d, column: %d\n\n", engrave_cur_file, engrave_lnum, engrave_col); exit(-1); }