X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=parser.c;h=455bb603f8ca7185d64470cfc078ce3146653dc2;hb=d0da14dee09f66a509dac5467e9f1af2cfc8f969;hp=88897d05ce2783973c5d82ac82610a2edfb23b65;hpb=59a4f18b662ddb7174efd46e4c76fff3e5caa796;p=xboard.git diff --git a/parser.c b/parser.c index 88897d0..455bb60 100644 --- a/parser.c +++ b/parser.c @@ -8,7 +8,7 @@ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 34 +#define YY_FLEX_SUBMINOR_VERSION 35 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif @@ -178,13 +178,6 @@ extern FILE *yyin, *yyout; #define unput(c) yyunput( c, (yytext_ptr) ) -/* The following is because we cannot portably get our hands on size_t - * (without autoconf's help, which isn't available because we want - * flex-generated scanners to compile on their own). - * Given that the standard has decreed that size_t exists since 1989, - * I guess we can afford to depend on it. Manoj. - */ - #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; @@ -366,8 +359,8 @@ static void yy_fatal_error (yyconst char msg[] ); *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; -#define YY_NUM_RULES 42 -#define YY_END_OF_BUFFER 43 +#define YY_NUM_RULES 43 +#define YY_END_OF_BUFFER 44 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info @@ -375,154 +368,160 @@ struct yy_trans_info flex_int32_t yy_verify; flex_int32_t yy_nxt; }; -static yyconst flex_int16_t yy_acclist[606] = +static yyconst flex_int16_t yy_acclist[644] = { 0, - 43, 41, 42, 41, 42, 41, 42, 40, 41, 42, - 41, 42, 25, 41, 42, 41, 42, 40, 41, 42, - 40, 41, 42,16410, 40, 41, 42,16410, 41, 42, - 40, 41, 42, 40, 41, 42, 40, 41, 42, 40, - 41, 42, 40, 41, 42, 40, 41, 42, 40, 41, - 42, 40, 41, 42, 40, 41, 42, 40, 41, 42, - 41, 42, 40, 41, 42, 40, 41, 42, 40, 41, - 42, 40, 41, 42, 40, 41, 42, 40, 41, 42, - 40, 41, 42, 40, 41, 42, 40, 41, 42, 40, - 41, 42, 40, 41, 42, 40, 41, 42, 40, 41, - - 42, 40, 41, 42, 40, 41, 42, 40, 41, 42, - 40, 41, 42, 41, 42, 41, 42, 40, 41, 42, - 40, 41, 42, 40, 41, 42,16410, 40, 41, 42, - 16410, 41, 42, 40, 41, 42, 40, 41, 42, 40, - 41, 42, 40, 41, 42, 40, 41, 42, 40, 41, - 42, 40, 41, 42, 40, 41, 42, 40, 41, 42, - 40, 41, 42, 40, 41, 42, 40, 41, 42, 40, - 41, 42, 40, 41, 42, 40, 41, 42, 40, 41, - 42, 40, 41, 42, 40, 41, 42, 40, 41, 42, - 40, 41, 42, 40, 41, 42, 40, 41, 42, 40, - - 41, 42, 40, 41, 42, 40, 41, 42, 40, 41, - 42, 40, 41, 42, 41, 42, 33, 40, 17, 40, - 9, 40, 40, 40,16410, 8218, 40, 35, 40, 40, - 40, 40, 40, 40, 40, 40, 40, 40, 9, 40, - 40, 40, 40, 36, 40, 3, 40, 40, 4, 40, - 40, 40, 40, 40, 40, 9, 40, 40, 40, 34, - 40, 40, 9, 40, 40, 40,16410, 8218, 40, 40, - 40, 40, 40, 40, 40, 40, 40, 40, 40, 9, - 40, 40, 40, 40, 40, 3, 40, 40, 4, 40, - 40, 40, 40, 40, 40, 9, 40, 40, 40, 15, - - 9, 40, 23, 40, 23, 8, 40, 8218, 22, 40, - 22, 24, 40, 40, 40, 6, 40, 40, 40, 40, - 40, 40, 9, 40, 40, 40, 40, 4, 40, 40, - 3, 3, 40, 3, 40, 3, 40, 4, 5, 40, - 4, 4, 40, 40, 40, 40, 9, 40, 40, 34, - 39, 9, 40, 23, 40, 8, 40, 22, 40, 35, - 40, 40, 40, 6, 40, 40, 40, 40, 40, 40, - 9, 40, 40, 40, 40, 4, 40, 40, 3, 40, - 3, 40, 3, 40, 5, 40, 4, 40, 40, 40, - 40, 9, 40, 40, 38, 38, 38, 37, 25, 25, - - 6, 40, 10, 6, 40, 7, 40, 6, 40, 6, - 40, 40, 40, 19, 40, 40, 16, 40, 40, 40, - 40, 40, 36, 3, 40, 3, 2, 40, 5, 4, - 5, 5, 40, 40, 4, 4, 40, 40, 25, 39, - 40, 6, 40, 7, 40, 40, 40, 40, 40, 19, - 40, 40, 16, 40, 40, 40, 40, 40, 40, 2, - 40, 5, 40, 40, 4, 40, 40, 38, 7, 7, - 1, 40, 20, 40, 40, 19, 40, 40, 40, 40, - 40, 40, 30, 36, 2, 2, 2, 40, 5, 5, - 5, 40, 39, 1, 40, 40, 40, 19, 40, 40, - - 40, 40, 40, 40, 2, 40, 5, 40, 27, 38, - 1, 23, 23, 22, 22, 24, 24, 1, 1, 40, - 21, 20, 40, 40, 40, 11, 40, 40, 28, 36, - 30, 2, 2, 27, 34, 39, 39, 1, 40, 40, - 40, 40, 11, 40, 40, 18, 1, 24, 1, 21, - 19, 40, 40, 40, 11, 40, 40, 40, 40, 40, - 11, 40, 40, 12, 40, 40, 40, 40, 12, 40, - 40, 14, 40, 40, 40, 14, 40, 40, 40, 39, - 40, 40, 40, 40, 39, 39, 40, 40, 31, 40, - 39, 39, 31, 40, 13, 31, 32, 32, 35, 39, - - 39, 31, 39, 34, 29 + 44, 42, 43, 42, 43, 42, 43, 41, 42, 43, + 38, 42, 43, 39, 42, 43, 26, 42, 43, 42, + 43, 41, 42, 43, 41, 42, 43,16411, 41, 42, + 43,16411, 42, 43, 41, 42, 43, 41, 42, 43, + 41, 42, 43, 41, 42, 43, 41, 42, 43, 41, + 42, 43, 41, 42, 43, 41, 42, 43, 41, 42, + 43, 41, 42, 43, 41, 42, 43, 42, 43, 41, + 42, 43, 41, 42, 43, 41, 42, 43, 41, 42, + 43, 41, 42, 43, 41, 42, 43, 41, 42, 43, + 41, 42, 43, 41, 42, 43, 41, 42, 43, 41, + + 42, 43, 41, 42, 43, 41, 42, 43, 41, 42, + 43, 41, 42, 43, 41, 42, 43, 41, 42, 43, + 41, 42, 43, 42, 43, 42, 43, 41, 42, 43, + 41, 42, 43, 41, 42, 43,16411, 41, 42, 43, + 16411, 42, 43, 41, 42, 43, 41, 42, 43, 41, + 42, 43, 41, 42, 43, 41, 42, 43, 41, 42, + 43, 41, 42, 43, 41, 42, 43, 41, 42, 43, + 41, 42, 43, 41, 42, 43, 41, 42, 43, 41, + 42, 43, 41, 42, 43, 41, 42, 43, 41, 42, + 43, 41, 42, 43, 41, 42, 43, 41, 42, 43, + + 41, 42, 43, 41, 42, 43, 41, 42, 43, 41, + 42, 43, 41, 42, 43, 41, 42, 43, 41, 42, + 43, 41, 42, 43, 41, 42, 43, 41, 42, 43, + 42, 43, 34, 41, 18, 41, 10, 41, 8219, 41, + 41,16411, 8219, 41, 36, 41, 41, 41, 41, 41, + 41, 41, 41, 41, 41, 41, 10, 41, 41, 41, + 41, 37, 41, 4, 41, 41, 5, 41, 41, 41, + 41, 41, 41, 10, 41, 41, 41, 35, 41, 41, + 10, 41, 41, 41,16411, 8219, 41, 41, 41, 41, + 41, 41, 41, 41, 41, 41, 41, 41, 10, 41, + + 41, 41, 41, 41, 4, 41, 41, 5, 41, 41, + 41, 41, 41, 41, 10, 41, 41, 41, 16, 10, + 41, 24, 41, 24, 9, 41, 23, 41, 23, 25, + 41, 41, 41, 41, 41, 7, 41, 41, 41, 41, + 41, 41, 10, 41, 41, 41, 41, 5, 41, 4, + 41, 4, 4, 41, 4, 41, 4, 41, 5, 6, + 41, 5, 5, 41, 41, 41, 41, 10, 41, 41, + 35, 40, 10, 41, 24, 41, 9, 41, 23, 41, + 36, 41, 41, 41, 41, 41, 7, 41, 41, 41, + 41, 41, 41, 10, 41, 41, 41, 41, 5, 41, + + 41, 4, 41, 4, 41, 4, 41, 6, 41, 5, + 41, 41, 41, 41, 10, 41, 41, 26, 26, 7, + 41, 11, 7, 41, 3, 41, 8, 41, 7, 7, + 41, 7, 7, 41, 7, 41, 41, 41, 41, 20, + 41, 41, 17, 41, 41, 41, 41, 41, 37, 4, + 41, 2, 41, 6, 5, 6, 6, 6, 41, 41, + 5, 5, 41, 41, 26, 40, 41, 7, 41, 3, + 41, 8, 41, 41, 7, 41, 7, 41, 41, 41, + 41, 20, 41, 41, 17, 41, 41, 41, 41, 41, + 41, 2, 41, 6, 41, 41, 5, 41, 41, 8, + + 7, 7, 3, 8, 8, 8, 41, 1, 41, 21, + 41, 41, 20, 41, 41, 41, 41, 41, 41, 31, + 37, 2, 2, 2, 2, 41, 6, 6, 41, 40, + 8, 41, 1, 41, 41, 41, 20, 41, 41, 41, + 41, 41, 41, 2, 41, 6, 41, 28, 8, 1, + 24, 24, 23, 23, 25, 25, 1, 1, 1, 41, + 22, 21, 41, 41, 41, 12, 41, 41, 29, 37, + 31, 2, 28, 35, 40, 40, 1, 41, 41, 41, + 41, 12, 41, 41, 19, 1, 25, 22, 20, 41, + 41, 41, 12, 41, 41, 41, 41, 41, 12, 41, + + 41, 13, 41, 41, 41, 41, 13, 41, 41, 15, + 41, 41, 41, 15, 41, 41, 41, 40, 41, 41, + 41, 41, 40, 40, 41, 41, 32, 41, 40, 40, + 32, 41, 14, 32, 33, 33, 36, 40, 40, 32, + 40, 35, 30 } ; -static yyconst flex_int16_t yy_accept[691] = +static yyconst flex_int16_t yy_accept[697] = { 0, - 1, 1, 1, 2, 4, 6, 8, 11, 13, 16, - 18, 21, 25, 29, 31, 34, 37, 40, 43, 46, - 49, 52, 55, 58, 61, 63, 66, 69, 72, 75, - 78, 81, 84, 87, 90, 93, 96, 99, 102, 105, - 108, 111, 114, 116, 118, 121, 124, 128, 132, 134, - 137, 140, 143, 146, 149, 152, 155, 158, 161, 164, - 167, 170, 173, 176, 179, 182, 185, 188, 191, 194, - 197, 200, 203, 206, 209, 212, 215, 217, 217, 218, - 219, 219, 219, 219, 219, 220, 220, 220, 220, 221, - 221, 223, 223, 223, 223, 224, 224, 224, 226, 226, - - 228, 228, 229, 229, 230, 230, 231, 231, 232, 232, - 233, 234, 235, 236, 237, 238, 239, 241, 242, 243, - 244, 244, 244, 244, 244, 245, 246, 248, 248, 249, - 251, 252, 253, 254, 255, 256, 258, 259, 260, 260, - 260, 260, 261, 261, 262, 262, 263, 265, 265, 266, - 268, 268, 270, 270, 271, 272, 272, 273, 274, 275, - 276, 277, 278, 279, 280, 282, 283, 284, 285, 286, - 288, 288, 289, 291, 292, 293, 294, 295, 296, 298, - 299, 300, 300, 300, 300, 300, 300, 300, 300, 300, - 300, 300, 300, 301, 301, 301, 301, 301, 301, 303, - - 305, 306, 308, 309, 309, 309, 309, 311, 312, 313, - 313, 314, 314, 315, 315, 316, 316, 318, 318, 318, - 318, 318, 318, 318, 319, 320, 321, 322, 323, 325, - 326, 327, 328, 328, 328, 328, 328, 330, 330, 331, - 331, 332, 334, 336, 338, 339, 339, 341, 342, 344, - 345, 346, 347, 349, 350, 351, 351, 351, 351, 351, - 352, 354, 356, 358, 360, 360, 361, 361, 362, 363, - 363, 364, 366, 367, 368, 369, 370, 371, 373, 374, - 375, 376, 378, 379, 379, 381, 383, 385, 387, 389, - 390, 391, 392, 394, 395, 395, 395, 396, 397, 397, - - 397, 398, 398, 398, 399, 399, 399, 400, 400, 401, - 401, 402, 402, 402, 402, 403, 403, 403, 403, 403, - 403, 403, 403, 404, 406, 406, 408, 409, 410, 410, - 411, 412, 412, 412, 412, 412, 412, 412, 413, 414, - 416, 416, 417, 419, 420, 421, 422, 423, 423, 423, - 423, 423, 424, 425, 426, 426, 427, 429, 430, 431, - 431, 431, 432, 434, 435, 436, 436, 438, 439, 439, - 440, 440, 440, 440, 440, 441, 441, 442, 442, 442, - 444, 446, 447, 447, 448, 449, 450, 452, 453, 455, - 456, 457, 458, 459, 460, 462, 464, 465, 467, 468, - - 468, 468, 468, 468, 469, 469, 469, 469, 469, 470, - 470, 470, 470, 470, 470, 470, 470, 470, 470, 471, - 473, 473, 473, 473, 473, 473, 474, 475, 476, 476, - 478, 478, 479, 480, 481, 482, 483, 483, 483, 485, - 485, 485, 486, 486, 487, 489, 490, 490, 491, 491, - 493, 493, 493, 493, 493, 493, 493, 493, 494, 494, - 494, 496, 497, 498, 500, 501, 502, 503, 504, 505, - 507, 509, 509, 509, 509, 509, 509, 509, 511, 511, - 512, 512, 513, 513, 514, 514, 515, 515, 516, 516, - 517, 517, 518, 518, 518, 518, 519, 521, 521, 521, - - 522, 522, 522, 523, 524, 524, 524, 524, 524, 524, - 525, 526, 528, 529, 531, 531, 532, 533, 534, 534, - 534, 536, 536, 536, 537, 538, 538, 538, 540, 541, - 542, 543, 545, 546, 546, 547, 547, 547, 547, 547, - 548, 548, 549, 550, 550, 550, 551, 551, 551, 552, - 552, 552, 552, 552, 553, 554, 555, 557, 558, 558, - 558, 558, 558, 558, 559, 560, 561, 563, 564, 564, - 564, 564, 564, 564, 564, 565, 565, 565, 565, 565, - 566, 567, 567, 567, 567, 567, 568, 569, 569, 569, - 569, 569, 570, 570, 570, 570, 571, 572, 574, 574, - - 574, 574, 574, 575, 575, 576, 578, 578, 578, 578, - 578, 579, 580, 580, 580, 580, 580, 581, 582, 583, - 583, 583, 583, 583, 583, 584, 585, 585, 585, 585, - 585, 586, 587, 588, 589, 589, 589, 589, 589, 589, - 591, 591, 591, 591, 591, 592, 593, 595, 595, 595, - 596, 596, 597, 597, 598, 598, 598, 600, 600, 601, - 602, 602, 602, 602, 602, 604, 604, 604, 604, 604, - 604, 604, 604, 604, 604, 604, 604, 604, 604, 604, - 604, 604, 604, 604, 604, 604, 604, 605, 606, 606 + 1, 1, 1, 2, 4, 6, 8, 11, 14, 17, + 20, 22, 25, 29, 33, 35, 38, 41, 44, 47, + 50, 53, 56, 59, 62, 65, 68, 70, 73, 76, + 79, 82, 85, 88, 91, 94, 97, 100, 103, 106, + 109, 112, 115, 118, 121, 124, 126, 128, 131, 134, + 138, 142, 144, 147, 150, 153, 156, 159, 162, 165, + 168, 171, 174, 177, 180, 183, 186, 189, 192, 195, + 198, 201, 204, 207, 210, 213, 216, 219, 222, 225, + 228, 231, 233, 233, 234, 235, 235, 235, 236, 236, + 236, 236, 237, 237, 239, 239, 239, 239, 240, 241, + + 241, 241, 243, 243, 245, 245, 246, 246, 247, 247, + 248, 248, 249, 249, 250, 251, 252, 253, 254, 255, + 256, 257, 259, 260, 261, 262, 262, 262, 262, 262, + 263, 264, 266, 266, 267, 269, 270, 271, 272, 273, + 274, 276, 277, 278, 278, 278, 278, 279, 279, 280, + 280, 281, 283, 283, 284, 286, 286, 288, 288, 289, + 290, 290, 291, 292, 293, 294, 295, 296, 297, 298, + 299, 301, 302, 303, 304, 305, 307, 307, 308, 310, + 311, 312, 313, 314, 315, 317, 318, 319, 319, 319, + 319, 319, 319, 320, 320, 320, 320, 320, 320, 322, + + 324, 325, 327, 327, 327, 327, 329, 330, 331, 331, + 332, 332, 333, 333, 334, 335, 335, 336, 338, 338, + 338, 338, 338, 338, 338, 338, 339, 340, 341, 342, + 343, 345, 346, 347, 348, 348, 348, 348, 348, 350, + 350, 351, 352, 352, 353, 355, 357, 359, 360, 360, + 362, 363, 365, 366, 367, 368, 370, 371, 372, 372, + 372, 372, 372, 373, 375, 377, 379, 381, 381, 382, + 382, 383, 384, 384, 385, 386, 387, 389, 389, 390, + 391, 392, 393, 394, 396, 397, 398, 399, 401, 402, + 402, 404, 406, 408, 410, 412, 413, 414, 415, 417, + + 418, 418, 418, 418, 418, 419, 419, 420, 420, 421, + 421, 421, 421, 422, 422, 422, 422, 422, 422, 422, + 422, 423, 425, 425, 425, 427, 429, 430, 430, 431, + 432, 432, 432, 433, 435, 437, 438, 438, 438, 438, + 438, 438, 438, 439, 440, 442, 442, 443, 445, 446, + 447, 448, 449, 449, 449, 449, 449, 450, 451, 452, + 452, 454, 455, 456, 456, 456, 457, 458, 460, 461, + 462, 462, 464, 465, 465, 466, 466, 466, 466, 466, + 467, 467, 468, 468, 468, 470, 472, 474, 475, 475, + 477, 479, 480, 481, 482, 484, 485, 487, 488, 489, + + 490, 491, 492, 494, 496, 497, 499, 500, 500, 500, + 500, 501, 502, 503, 503, 503, 503, 503, 503, 503, + 503, 503, 503, 504, 504, 505, 505, 506, 508, 510, + 510, 510, 510, 510, 510, 511, 512, 513, 513, 515, + 515, 516, 517, 518, 519, 520, 520, 520, 522, 522, + 522, 523, 523, 524, 524, 525, 527, 528, 528, 528, + 530, 530, 530, 530, 530, 530, 530, 530, 531, 531, + 531, 533, 535, 536, 537, 539, 540, 541, 542, 543, + 544, 546, 548, 548, 548, 549, 549, 550, 551, 551, + 552, 552, 553, 553, 554, 554, 555, 555, 556, 556, + + 557, 557, 557, 557, 558, 558, 559, 561, 561, 561, + 562, 562, 562, 563, 564, 564, 564, 564, 564, 564, + 565, 566, 568, 569, 571, 571, 572, 573, 573, 573, + 575, 575, 575, 576, 577, 577, 577, 579, 580, 581, + 582, 584, 585, 585, 586, 586, 586, 587, 587, 588, + 588, 588, 589, 589, 589, 590, 590, 590, 590, 590, + 591, 592, 593, 595, 596, 596, 596, 596, 596, 596, + 597, 598, 599, 601, 602, 602, 602, 602, 602, 602, + 602, 603, 603, 603, 603, 603, 604, 605, 605, 605, + 605, 605, 606, 607, 607, 607, 607, 607, 608, 608, + + 608, 608, 609, 610, 612, 612, 612, 612, 612, 613, + 613, 614, 616, 616, 616, 616, 616, 617, 618, 618, + 618, 618, 618, 619, 620, 621, 621, 621, 621, 621, + 621, 622, 623, 623, 623, 623, 623, 624, 625, 626, + 627, 627, 627, 627, 627, 627, 629, 629, 629, 629, + 629, 630, 631, 633, 633, 633, 634, 634, 635, 635, + 636, 636, 636, 638, 638, 639, 640, 640, 640, 640, + 640, 642, 642, 642, 642, 642, 642, 642, 642, 642, + 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, + 642, 642, 642, 643, 644, 644 + } ; static yyconst flex_int32_t yy_ec[256] = @@ -534,8 +533,8 @@ static yyconst flex_int32_t yy_ec[256] = 11, 12, 13, 1, 14, 15, 16, 17, 18, 19, 20, 20, 20, 20, 20, 20, 20, 21, 22, 1, 23, 1, 1, 24, 25, 26, 27, 28, 29, 30, - 31, 32, 33, 33, 34, 35, 36, 37, 38, 34, - 34, 39, 40, 33, 41, 33, 42, 43, 33, 33, + 31, 32, 33, 33, 33, 34, 35, 36, 37, 38, + 38, 39, 40, 38, 41, 38, 42, 43, 38, 38, 44, 1, 45, 1, 46, 1, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, @@ -560,626 +559,627 @@ static yyconst flex_int32_t yy_ec[256] = static yyconst flex_int32_t yy_meta[74] = { 0, 1, 2, 3, 2, 1, 1, 1, 1, 4, 5, - 6, 1, 7, 8, 1, 1, 9, 9, 9, 9, - 10, 1, 11, 1, 12, 12, 12, 12, 12, 12, - 12, 12, 13, 12, 13, 13, 12, 12, 12, 13, - 13, 12, 14, 1, 1, 1, 15, 15, 15, 15, - 16, 15, 15, 15, 15, 15, 15, 15, 17, 18, - 18, 18, 18, 18, 17, 17, 17, 17, 17, 19, - 17, 1, 1 + 1, 1, 6, 7, 8, 9, 10, 10, 10, 10, + 11, 1, 5, 1, 12, 12, 12, 12, 12, 12, + 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, + 12, 12, 13, 1, 1, 1, 14, 14, 14, 14, + 15, 14, 14, 14, 14, 14, 14, 14, 16, 17, + 17, 17, 17, 17, 16, 16, 16, 16, 16, 18, + 16, 1, 1 } ; -static yyconst flex_int16_t yy_base[769] = +static yyconst flex_int16_t yy_base[760] = { 0, - 0, 73, 3831, 3832, 122, 131, 0, 142, 3826, 140, - 151, 171, 162, 3826, 231, 159, 3774, 3763, 119, 3779, - 143, 3774, 3758, 190, 301, 361, 211, 207, 279, 215, - 224, 284, 243, 286, 301, 303, 305, 3776, 232, 3771, - 3755, 264, 351, 3816, 149, 379, 430, 351, 255, 493, - 212, 3765, 3754, 327, 3770, 157, 3765, 3749, 331, 555, - 372, 245, 378, 351, 468, 530, 475, 477, 505, 523, - 508, 576, 578, 385, 579, 610, 615, 3761, 372, 0, - 3803, 309, 630, 431, 3832, 3707, 675, 575, 405, 3683, - 3665, 3645, 450, 639, 3639, 472, 165, 640, 3638, 0, - - 3651, 3832, 0, 699, 0, 744, 0, 648, 787, 652, - 656, 3606, 3611, 3569, 693, 3565, 3564, 697, 3554, 664, - 3555, 856, 352, 929, 3832, 956, 1006, 0, 1031, 1080, - 660, 717, 721, 3533, 3463, 3444, 3421, 3412, 435, 3375, - 757, 3425, 3353, 497, 3352, 517, 607, 550, 681, 1130, - 160, 518, 554, 1193, 1238, 3310, 686, 762, 787, 764, - 617, 676, 750, 3271, 803, 816, 864, 835, 1262, 1312, - 3304, 1337, 1387, 874, 888, 895, 700, 823, 865, 762, - 866, 885, 3243, 583, 610, 626, 652, 676, 944, 949, - 3295, 3232, 3832, 882, 1190, 3290, 3287, 3286, 3196, 3205, - - 3201, 0, 3832, 3200, 3197, 3179, 3160, 2966, 799, 830, - 900, 958, 1412, 928, 962, 966, 1457, 2910, 2902, 2901, - 2914, 2823, 382, 970, 1075, 2804, 759, 2818, 2854, 2812, - 2807, 1108, 572, 1213, 739, 1527, 1591, 0, 1596, 0, - 2837, 2817, 2642, 1118, 1202, 1246, 1645, 2640, 2638, 238, - 2598, 2597, 2631, 2578, 3832, 1210, 979, 2639, 211, 2639, - 1132, 1253, 606, 1263, 697, 2637, 895, 1217, 1688, 2636, - 1259, 1733, 1467, 1472, 901, 1536, 1252, 1261, 1121, 1532, - 1541, 1795, 1800, 2601, 810, 2580, 1556, 1849, 1535, 1573, - 1473, 1474, 1570, 1543, 1566, 2536, 3832, 778, 832, 913, - - 982, 984, 989, 3832, 1585, 2575, 2574, 2450, 2449, 1281, - 1646, 2503, 2487, 2473, 2473, 585, 2470, 367, 2469, 636, - 1680, 1136, 3832, 2462, 1679, 2458, 2457, 1854, 1594, 3832, - 1287, 2414, 2414, 2412, 2410, 2410, 2414, 2416, 2415, 968, - 510, 598, 0, 2433, 2417, 2418, 2417, 1007, 1161, 1046, - 1354, 2462, 2455, 1455, 1479, 3832, 1694, 1560, 2454, 1081, - 1587, 1682, 2453, 1209, 3832, 2400, 0, 2400, 1789, 2456, - 1711, 1744, 2412, 2397, 2454, 403, 1572, 1430, 374, 1545, - 1697, 1866, 2449, 1750, 819, 1698, 1753, 1916, 1009, 1757, - 1789, 1742, 1790, 1921, 1935, 1791, 1942, 1315, 1689, 1584, - - 2401, 1091, 2440, 1221, 1244, 1317, 1392, 1509, 2427, 1711, - 2438, 2375, 2436, 2373, 2434, 2371, 2425, 1757, 3832, 1995, - 2393, 2388, 1452, 2388, 2383, 2372, 2432, 1266, 1921, 2431, - 688, 2401, 2378, 2368, 2368, 2420, 1386, 1891, 3832, 2408, - 1930, 933, 1388, 1711, 2397, 2396, 1417, 3832, 2344, 0, - 2390, 1944, 2386, 1642, 2386, 2343, 2336, 1841, 1603, 1575, - 2030, 1957, 1941, 1963, 1959, 1955, 1981, 1986, 1970, 1852, - 1962, 1979, 1810, 1491, 2389, 1515, 1602, 3832, 2064, 1754, - 2388, 2387, 2324, 2323, 2384, 2383, 2320, 2316, 2376, 2375, - 2307, 2306, 2362, 2358, 1791, 1963, 2365, 2314, 2323, 1943, - - 760, 2320, 3832, 2324, 2359, 2318, 2296, 2336, 2306, 2316, - 2290, 1482, 2307, 3832, 2009, 3832, 2340, 3832, 2331, 2073, - 2336, 2284, 2279, 2328, 1862, 1101, 1720, 1978, 2068, 2076, - 2077, 2078, 2079, 2091, 3832, 2279, 2317, 1655, 2091, 2316, - 2320, 2319, 3832, 2260, 2251, 3832, 2241, 2289, 2288, 2236, - 2293, 2250, 2218, 2227, 2193, 2201, 0, 2181, 2100, 2241, - 2177, 1793, 1633, 2104, 2086, 1994, 1989, 2103, 2118, 2179, - 2219, 1681, 2165, 2158, 1878, 2169, 1755, 2146, 2117, 2191, - 2112, 2052, 2041, 1589, 1812, 2264, 2114, 2127, 2014, 2027, - 1999, 3832, 1950, 1786, 1961, 2337, 1972, 0, 1910, 1874, - - 1993, 598, 2410, 2075, 2089, 2113, 2135, 1850, 1813, 2106, - 1804, 1713, 1668, 1635, 1721, 758, 2124, 1625, 1600, 2136, - 1520, 1489, 2109, 2117, 1380, 1283, 1272, 1235, 1895, 1867, - 2130, 2163, 1194, 1154, 2144, 2103, 1148, 2158, 2121, 0, - 1047, 970, 924, 1998, 2187, 2202, 0, 2153, 839, 3832, - 821, 2126, 787, 3832, 567, 501, 3832, 2172, 2225, 2231, - 2157, 380, 362, 1923, 2228, 2218, 288, 2178, 944, 2175, - 2177, 2238, 2239, 2243, 2246, 2289, 2290, 2291, 2293, 2299, - 2311, 2312, 2315, 2318, 2319, 2216, 190, 3832, 3832, 2480, - 2499, 2512, 2526, 2545, 2564, 2580, 2599, 2618, 2636, 1881, - - 1912, 2027, 2654, 2673, 2031, 2692, 2711, 2730, 2749, 2768, - 2787, 2806, 2825, 2844, 2856, 2875, 2894, 2913, 2932, 2940, - 2169, 2955, 2971, 2990, 3009, 3028, 3047, 3066, 3085, 3104, - 3123, 3142, 3161, 3180, 3192, 3211, 3230, 3249, 3268, 3284, - 3299, 3315, 3334, 3350, 3369, 3388, 3407, 3426, 3445, 3464, - 3483, 3502, 3521, 3540, 3559, 3578, 3593, 3612, 3631, 3646, - 3660, 3679, 3698, 3717, 3736, 3755, 3774, 3793 + 0, 73, 3028, 3867, 122, 131, 0, 135, 3867, 3008, + 143, 154, 174, 244, 2996, 304, 155, 2944, 2932, 124, + 162, 144, 182, 186, 203, 212, 374, 434, 168, 161, + 223, 204, 228, 241, 237, 180, 249, 279, 282, 295, + 161, 379, 174, 326, 390, 405, 2991, 203, 395, 503, + 573, 162, 636, 210, 2872, 2856, 242, 326, 314, 412, + 349, 442, 417, 693, 409, 416, 446, 391, 421, 478, + 317, 480, 492, 494, 496, 586, 587, 588, 607, 605, + 711, 648, 2866, 481, 0, 538, 228, 3867, 2905, 752, + 564, 232, 2899, 2890, 2887, 403, 772, 3867, 2887, 561, + + 398, 0, 2885, 0, 2898, 3867, 0, 776, 0, 826, + 0, 884, 927, 2850, 2845, 2848, 2853, 2826, 586, 2826, + 2854, 2853, 2824, 2841, 2832, 2841, 996, 253, 1069, 3867, + 1096, 1146, 0, 1171, 1220, 603, 617, 657, 2819, 2823, + 2822, 2817, 2826, 360, 2807, 679, 2874, 2873, 436, 2872, + 652, 494, 542, 707, 1270, 282, 455, 279, 1333, 1383, + 2871, 1441, 2827, 2822, 708, 606, 558, 684, 2803, 2831, + 524, 2802, 709, 2811, 1465, 1515, 2861, 1540, 1590, 890, + 897, 963, 713, 716, 717, 718, 891, 777, 2800, 740, + 2852, 2789, 3867, 768, 905, 2857, 2856, 2855, 2844, 2852, + + 2851, 0, 2850, 2849, 2848, 2847, 2842, 939, 795, 799, + 932, 1637, 1671, 970, 975, 1004, 1000, 1721, 1022, 2790, + 2783, 2782, 2793, 2778, 563, 1033, 1037, 2755, 793, 2772, + 2808, 2766, 2762, 1028, 303, 1056, 162, 1792, 1856, 0, + 3867, 1861, 0, 2809, 2807, 2806, 1078, 1089, 1106, 1910, + 2806, 2804, 413, 2765, 2764, 2798, 2745, 3867, 1085, 946, + 2806, 348, 2806, 827, 1106, 592, 1113, 476, 2804, 728, + 1277, 1953, 2803, 1283, 1290, 1287, 2003, 2801, 1313, 1346, + 947, 1347, 1110, 1255, 1028, 1112, 1340, 2066, 2109, 2800, + 828, 2792, 1454, 2158, 1109, 1796, 1256, 1257, 1261, 1066, + + 962, 2751, 1118, 2790, 2789, 2723, 2722, 1214, 2200, 2776, + 2775, 2774, 2774, 574, 2773, 564, 2771, 695, 1384, 677, + 3867, 2261, 1329, 1306, 0, 2295, 1454, 1796, 3867, 2292, + 2777, 1801, 2776, 2774, 2772, 1327, 2716, 2715, 2713, 2707, + 2707, 2711, 2713, 2705, 659, 735, 913, 0, 2719, 2698, + 2699, 2698, 719, 740, 925, 868, 2743, 2736, 1358, 1461, + 1811, 1822, 2735, 1000, 1829, 3867, 2735, 2733, 1049, 3867, + 2681, 0, 2680, 1830, 2736, 1839, 1847, 2692, 2677, 2733, + 676, 1853, 171, 917, 2341, 938, 2383, 2380, 2727, 1848, + 2711, 1946, 1448, 1789, 1967, 2101, 1259, 1817, 2116, 1947, + + 1948, 2122, 2430, 1913, 2111, 1272, 2114, 1600, 2669, 498, + 2067, 2707, 2706, 1483, 2705, 2642, 2703, 2640, 2695, 2632, + 2682, 1523, 3867, 2111, 3867, 2689, 2688, 2683, 2444, 2628, + 2622, 1417, 2620, 2608, 2591, 2645, 1004, 1668, 2639, 1012, + 2612, 2585, 2575, 2575, 2622, 747, 1557, 3867, 2598, 1632, + 2192, 2249, 3867, 2250, 2296, 2590, 2584, 1414, 2528, 0, + 2574, 1974, 2568, 1658, 2566, 2523, 2512, 1188, 1368, 1035, + 1949, 2478, 2107, 2513, 2203, 2376, 2127, 2255, 2161, 2382, + 2258, 1724, 1853, 737, 3867, 1489, 2558, 2342, 2557, 2522, + 2458, 2454, 2515, 2488, 2425, 2423, 2484, 2482, 2419, 2393, + + 2448, 2443, 2442, 3867, 2449, 2432, 2393, 2341, 2347, 2087, + 1856, 2341, 3867, 2340, 2352, 2310, 2289, 2330, 2305, 2313, + 2252, 1328, 2269, 3867, 1927, 3867, 2272, 2267, 2520, 2274, + 2224, 2191, 2242, 1483, 1714, 918, 2379, 2197, 2515, 2380, + 2481, 2520, 2011, 3867, 2168, 1695, 2206, 2200, 2199, 2120, + 2124, 3867, 2117, 2165, 2163, 2089, 2143, 2106, 2080, 2104, + 2049, 2063, 0, 2046, 2525, 2084, 2020, 925, 1609, 2526, + 2540, 2447, 2259, 2541, 2208, 2025, 2063, 1671, 2021, 2012, + 1908, 1944, 1203, 1952, 1925, 2607, 1853, 1684, 1653, 1820, + 1763, 2680, 2543, 2486, 1614, 1554, 1487, 3867, 1464, 1317, + + 1473, 2753, 1853, 0, 1455, 1405, 1872, 1706, 2826, 1901, + 1950, 2386, 2551, 1320, 1298, 2526, 1209, 1182, 1110, 1102, + 1349, 1988, 2522, 1104, 1069, 2560, 1001, 947, 2119, 2254, + 945, 920, 770, 794, 1874, 1232, 2527, 2553, 765, 702, + 2567, 2064, 617, 1965, 2410, 0, 656, 578, 563, 2258, + 2557, 2568, 0, 2573, 487, 3867, 468, 1962, 499, 3867, + 401, 424, 3867, 1873, 2613, 2594, 2582, 289, 283, 1370, + 2601, 2588, 257, 2311, 1528, 1603, 2046, 2634, 2636, 2654, + 2655, 2656, 2659, 2661, 2662, 2664, 2669, 2694, 2707, 2709, + 2716, 2076, 194, 3867, 3867, 2896, 2909, 2921, 2939, 2957, + + 2975, 2990, 3007, 3024, 1313, 1668, 1696, 3041, 3059, 1826, + 3077, 3095, 3112, 3130, 3148, 3166, 3178, 3196, 3214, 3232, + 3250, 3257, 1887, 3271, 3286, 3304, 3322, 3340, 3358, 3376, + 3388, 3402, 3415, 3433, 3451, 3469, 3484, 3498, 3513, 3531, + 3546, 3560, 3573, 3591, 3609, 3627, 3645, 3663, 3677, 3695, + 3709, 3722, 3740, 3758, 3776, 3794, 3812, 3830, 3848 } ; -static yyconst flex_int16_t yy_def[769] = +static yyconst flex_int16_t yy_def[760] = { 0, - 689, 689, 689, 689, 689, 689, 690, 691, 689, 692, - 690, 689, 12, 693, 690, 15, 15, 15, 15, 15, - 15, 15, 15, 15, 694, 690, 26, 26, 26, 26, - 26, 26, 26, 26, 26, 26, 26, 690, 690, 690, - 690, 690, 695, 689, 696, 696, 689, 47, 693, 696, - 50, 50, 50, 50, 50, 50, 50, 50, 50, 696, - 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, - 60, 696, 696, 696, 696, 696, 695, 689, 689, 690, - 697, 698, 697, 689, 689, 689, 689, 689, 690, 689, - 690, 689, 699, 699, 690, 699, 689, 12, 689, 690, - - 693, 689, 700, 690, 701, 690, 702, 106, 689, 106, - 106, 690, 690, 690, 106, 104, 690, 106, 690, 106, - 703, 694, 703, 704, 689, 690, 689, 705, 690, 690, - 690, 690, 690, 690, 690, 690, 690, 690, 695, 706, - 695, 689, 707, 696, 689, 696, 696, 689, 696, 689, - 689, 696, 708, 696, 154, 702, 155, 155, 155, 696, - 696, 696, 155, 154, 696, 155, 696, 155, 154, 689, - 705, 154, 689, 696, 696, 696, 696, 696, 696, 696, - 696, 695, 689, 709, 710, 710, 711, 712, 709, 709, - 713, 714, 689, 715, 715, 689, 689, 689, 690, 690, - - 689, 690, 689, 689, 689, 689, 690, 689, 689, 689, - 690, 689, 690, 715, 690, 689, 690, 689, 689, 689, - 689, 689, 689, 690, 690, 690, 690, 690, 690, 690, - 690, 690, 716, 717, 718, 719, 690, 720, 690, 721, - 720, 690, 239, 690, 722, 722, 690, 246, 690, 690, - 690, 690, 690, 690, 689, 695, 689, 723, 689, 724, - 696, 696, 696, 696, 725, 723, 726, 696, 696, 214, - 696, 269, 696, 696, 696, 696, 696, 696, 696, 696, - 696, 696, 269, 721, 696, 283, 696, 282, 696, 696, - 696, 696, 696, 696, 695, 689, 689, 727, 728, 729, - - 730, 727, 731, 689, 732, 733, 733, 734, 734, 689, - 735, 689, 689, 689, 690, 689, 689, 689, 689, 689, - 689, 689, 689, 690, 735, 690, 689, 690, 325, 689, - 690, 689, 689, 689, 689, 689, 689, 690, 690, 690, - 689, 690, 690, 690, 690, 690, 690, 736, 736, 737, - 738, 739, 689, 690, 689, 689, 740, 741, 689, 689, - 741, 741, 690, 690, 689, 689, 690, 690, 695, 689, - 689, 689, 689, 689, 742, 689, 696, 743, 743, 696, - 696, 283, 329, 696, 696, 696, 696, 696, 696, 696, - 696, 696, 696, 696, 744, 696, 696, 696, 696, 695, - - 689, 729, 745, 746, 730, 747, 731, 732, 689, 689, - 748, 749, 750, 751, 752, 753, 689, 689, 689, 690, - 689, 689, 689, 689, 689, 689, 690, 690, 689, 690, - 689, 690, 690, 690, 690, 690, 754, 755, 689, 756, - 689, 757, 757, 757, 690, 689, 689, 689, 689, 690, - 689, 695, 689, 689, 689, 689, 689, 758, 743, 743, - 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, - 696, 695, 689, 746, 759, 730, 747, 689, 732, 760, - 748, 748, 749, 749, 750, 750, 751, 751, 752, 752, - 753, 753, 689, 689, 760, 760, 690, 689, 689, 689, - - 689, 689, 689, 690, 761, 689, 689, 689, 689, 690, - 690, 690, 690, 689, 689, 689, 689, 689, 689, 695, - 689, 689, 689, 758, 758, 743, 743, 696, 696, 696, - 696, 696, 696, 695, 689, 689, 759, 746, 732, 689, - 689, 689, 689, 689, 689, 689, 689, 761, 761, 689, - 689, 689, 689, 690, 690, 690, 690, 690, 695, 689, - 689, 743, 743, 696, 696, 696, 696, 696, 695, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 762, - 690, 689, 689, 743, 743, 763, 696, 695, 689, 689, - 689, 689, 689, 764, 764, 762, 596, 690, 689, 689, - - 743, 743, 763, 764, 603, 696, 695, 689, 689, 764, - 596, 596, 689, 689, 743, 743, 765, 603, 603, 695, - 689, 689, 764, 764, 596, 596, 689, 689, 743, 743, - 765, 765, 603, 603, 695, 689, 689, 764, 764, 596, - 766, 689, 767, 743, 765, 765, 603, 695, 689, 689, - 689, 764, 766, 689, 689, 767, 689, 743, 765, 765, - 695, 689, 689, 743, 765, 695, 689, 743, 695, 768, - 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, - 768, 768, 768, 768, 768, 768, 689, 689, 0, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689 + 695, 695, 695, 695, 695, 695, 696, 695, 695, 695, + 697, 696, 698, 698, 699, 696, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 700, 16, 28, 28, + 28, 28, 28, 28, 28, 28, 28, 28, 28, 696, + 696, 696, 696, 696, 696, 701, 695, 702, 702, 703, + 703, 699, 702, 53, 53, 53, 53, 53, 53, 53, + 53, 53, 53, 53, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 702, 702, 702, 702, 702, + 702, 701, 695, 695, 696, 695, 695, 695, 695, 695, + 695, 696, 695, 696, 695, 704, 704, 695, 696, 704, + + 695, 14, 695, 696, 699, 695, 705, 696, 706, 695, + 707, 696, 695, 112, 112, 696, 696, 696, 112, 112, + 108, 696, 112, 696, 112, 708, 700, 708, 709, 695, + 696, 695, 710, 696, 696, 696, 696, 696, 696, 696, + 696, 696, 696, 701, 711, 701, 695, 712, 702, 695, + 702, 702, 695, 702, 713, 695, 702, 714, 702, 695, + 707, 159, 162, 162, 702, 702, 702, 162, 162, 159, + 702, 162, 702, 162, 159, 695, 710, 159, 695, 702, + 702, 702, 702, 702, 702, 702, 702, 701, 695, 695, + 715, 716, 695, 717, 717, 695, 695, 695, 696, 696, + + 695, 696, 695, 695, 695, 696, 695, 695, 695, 696, + 695, 696, 695, 696, 696, 695, 212, 695, 717, 695, + 695, 695, 695, 695, 695, 696, 696, 696, 696, 696, + 696, 696, 696, 696, 718, 719, 720, 721, 696, 722, + 695, 696, 723, 722, 696, 242, 696, 724, 724, 696, + 249, 696, 696, 696, 696, 696, 696, 695, 701, 695, + 725, 695, 726, 702, 702, 702, 702, 727, 725, 728, + 702, 702, 213, 702, 702, 272, 695, 219, 702, 702, + 702, 702, 702, 702, 702, 702, 702, 702, 702, 723, + 702, 289, 702, 288, 702, 702, 702, 702, 702, 702, + + 701, 695, 695, 729, 729, 730, 730, 695, 695, 695, + 695, 695, 696, 695, 695, 695, 695, 695, 695, 695, + 695, 696, 731, 695, 696, 696, 732, 732, 695, 696, + 328, 731, 328, 696, 330, 696, 695, 695, 695, 695, + 695, 695, 696, 696, 696, 695, 696, 696, 696, 696, + 696, 696, 733, 733, 734, 735, 736, 695, 696, 695, + 737, 738, 695, 695, 738, 695, 365, 696, 696, 695, + 695, 696, 696, 701, 695, 695, 695, 695, 695, 739, + 695, 702, 740, 740, 288, 702, 385, 289, 332, 702, + 388, 702, 702, 702, 702, 702, 702, 702, 702, 702, + + 702, 702, 741, 702, 702, 702, 702, 701, 695, 695, + 742, 695, 332, 695, 743, 744, 745, 746, 747, 748, + 695, 695, 695, 742, 695, 424, 424, 696, 696, 695, + 695, 695, 695, 695, 695, 696, 696, 695, 696, 695, + 696, 696, 696, 696, 696, 733, 735, 695, 736, 695, + 749, 749, 695, 749, 749, 696, 695, 695, 695, 696, + 695, 701, 695, 695, 695, 695, 695, 750, 740, 740, + 702, 385, 702, 702, 702, 702, 702, 702, 702, 702, + 702, 702, 701, 695, 695, 695, 695, 751, 743, 743, + 744, 744, 745, 745, 746, 746, 747, 747, 748, 748, + + 695, 695, 751, 695, 503, 503, 696, 695, 695, 695, + 695, 695, 695, 696, 752, 695, 695, 695, 695, 696, + 696, 696, 696, 695, 695, 695, 695, 695, 701, 695, + 695, 695, 750, 750, 740, 740, 702, 702, 702, 702, + 702, 702, 701, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 752, 752, 695, 695, 695, 695, 696, + 696, 696, 696, 696, 701, 695, 695, 740, 740, 702, + 702, 702, 702, 702, 701, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 753, 696, 695, 695, 740, + 740, 754, 702, 701, 695, 695, 695, 695, 695, 755, + + 755, 753, 602, 696, 695, 695, 740, 740, 754, 755, + 609, 702, 701, 695, 695, 755, 602, 602, 695, 695, + 740, 740, 756, 609, 609, 701, 695, 695, 755, 755, + 602, 602, 695, 695, 740, 740, 756, 756, 609, 609, + 701, 695, 695, 755, 755, 602, 757, 695, 758, 740, + 756, 756, 609, 701, 695, 695, 695, 755, 757, 695, + 695, 758, 695, 740, 756, 756, 701, 695, 695, 740, + 756, 701, 695, 740, 701, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 695, 695, 0, 695, 695, 695, 695, 695, + + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695 } ; -static yyconst flex_int16_t yy_nxt[3906] = +static yyconst flex_int16_t yy_nxt[3941] = { 0, 4, 4, 4, 5, 4, 4, 6, 4, 7, 8, - 4, 9, 10, 7, 4, 4, 11, 12, 13, 13, - 4, 14, 4, 4, 15, 16, 17, 18, 15, 15, - 19, 15, 15, 15, 15, 20, 15, 21, 22, 23, - 15, 24, 15, 25, 4, 4, 26, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 7, - 39, 7, 7, 40, 41, 7, 7, 7, 42, 7, - 7, 43, 4, 4, 4, 4, 5, 4, 44, 6, - 44, 7, 8, 4, 9, 10, 45, 4, 4, 46, - 47, 48, 48, 4, 49, 4, 4, 50, 51, 52, - - 53, 50, 50, 54, 50, 50, 50, 50, 55, 50, - 56, 57, 58, 50, 59, 50, 25, 4, 4, 60, - 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, - 71, 72, 45, 73, 45, 45, 74, 75, 45, 45, - 45, 76, 45, 45, 77, 4, 78, 79, 79, 79, - 79, 82, 85, 86, 88, 113, 116, 80, 83, 83, - 83, 83, 109, 260, 89, 93, 90, 91, 78, 145, - 164, 92, 93, 93, 94, 80, 208, 689, 114, 80, - 117, 208, 689, 209, 95, 96, 97, 98, 98, 98, - 98, 99, 688, 109, 165, 100, 100, 100, 100, 100, - - 100, 100, 100, 80, 100, 80, 80, 100, 100, 100, - 80, 80, 100, 80, 109, 109, 110, 100, 100, 100, - 100, 100, 100, 100, 100, 100, 100, 100, 100, 80, - 100, 100, 100, 100, 100, 80, 80, 80, 80, 80, - 80, 80, 103, 120, 104, 135, 105, 106, 106, 106, - 106, 107, 366, 131, 103, 130, 130, 102, 153, 130, - 133, 131, 131, 373, 130, 130, 130, 109, 132, 158, - 131, 131, 374, 104, 130, 130, 130, 108, 108, 108, - 108, 108, 108, 108, 108, 108, 108, 108, 108, 131, - 131, 174, 136, 173, 173, 130, 130, 130, 176, 367, - - 104, 121, 122, 122, 122, 121, 121, 121, 121, 121, - 121, 121, 121, 121, 123, 121, 121, 138, 187, 188, - 113, 121, 121, 121, 121, 131, 131, 130, 130, 130, - 131, 131, 131, 131, 109, 130, 130, 130, 641, 130, - 130, 130, 112, 114, 121, 125, 121, 131, 131, 131, - 131, 131, 131, 140, 93, 130, 130, 130, 130, 130, - 130, 130, 130, 161, 144, 233, 689, 141, 141, 141, - 141, 145, 121, 121, 126, 109, 102, 127, 127, 127, - 127, 128, 88, 208, 168, 209, 162, 80, 79, 79, - 79, 79, 146, 80, 90, 147, 125, 174, 174, 148, - - 173, 173, 173, 129, 458, 145, 458, 130, 130, 131, - 131, 131, 131, 131, 131, 131, 131, 131, 131, 667, - 173, 199, 200, 142, 174, 174, 173, 173, 173, 175, - 129, 93, 93, 94, 460, 180, 337, 140, 80, 535, - 191, 160, 337, 149, 96, 97, 150, 150, 150, 150, - 151, 93, 93, 93, 152, 152, 152, 152, 152, 152, - 152, 152, 144, 152, 144, 144, 152, 152, 152, 144, - 144, 152, 144, 93, 93, 93, 152, 152, 152, 152, - 152, 152, 152, 152, 152, 152, 152, 152, 144, 152, - 152, 152, 152, 152, 144, 144, 144, 144, 144, 144, - - 144, 80, 192, 657, 103, 80, 154, 142, 105, 155, - 155, 155, 155, 156, 174, 174, 103, 145, 173, 173, - 173, 174, 174, 174, 174, 80, 80, 173, 173, 173, - 173, 173, 173, 261, 262, 154, 431, 145, 145, 157, - 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, - 157, 174, 174, 260, 174, 174, 266, 267, 431, 173, - 173, 173, 154, 80, 173, 173, 161, 201, 169, 174, - 174, 170, 170, 170, 170, 171, 174, 174, 173, 173, - 173, 173, 173, 173, 80, 349, 80, 80, 196, 162, - 197, 178, 185, 297, 411, 198, 145, 172, 145, 145, - - 102, 173, 173, 174, 174, 174, 174, 174, 174, 174, - 174, 174, 174, 109, 80, 80, 125, 140, 80, 187, - 298, 663, 177, 263, 172, 80, 145, 145, 182, 432, - 145, 141, 141, 141, 141, 187, 298, 145, 179, 185, - 93, 93, 93, 93, 167, 413, 189, 189, 189, 189, - 190, 433, 204, 80, 205, 689, 412, 276, 616, 206, - 689, 300, 301, 181, 217, 217, 217, 217, 217, 217, - 217, 217, 217, 217, 217, 217, 247, 247, 247, 247, - 217, 217, 217, 217, 80, 303, 304, 142, 107, 80, - 105, 194, 194, 194, 194, 107, 145, 264, 224, 266, - - 267, 145, 272, 272, 272, 272, 225, 414, 80, 217, - 217, 217, 217, 217, 217, 217, 217, 107, 232, 508, - 145, 195, 195, 195, 195, 195, 195, 195, 195, 195, - 195, 195, 195, 247, 247, 247, 247, 247, 247, 247, - 247, 509, 276, 351, 107, 211, 211, 211, 211, 211, - 211, 211, 211, 211, 211, 211, 211, 213, 228, 140, - 102, 230, 341, 251, 214, 277, 272, 272, 272, 272, - 80, 252, 80, 141, 141, 141, 141, 256, 272, 272, - 272, 272, 145, 352, 145, 342, 213, 303, 304, 654, + 9, 10, 11, 7, 4, 4, 12, 13, 14, 14, + 4, 15, 4, 4, 16, 17, 18, 19, 16, 16, + 20, 16, 16, 16, 21, 22, 23, 22, 24, 25, + 22, 26, 22, 27, 4, 4, 28, 29, 30, 31, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 42, 41, 41, 43, 44, 41, 41, 41, 45, 41, + 41, 46, 4, 4, 4, 4, 5, 4, 47, 6, + 47, 7, 8, 9, 10, 11, 48, 4, 4, 49, + 50, 51, 51, 4, 52, 4, 4, 53, 54, 55, + + 56, 53, 53, 57, 53, 53, 53, 58, 59, 60, + 59, 61, 62, 59, 63, 59, 27, 4, 4, 64, + 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, + 75, 76, 77, 78, 77, 77, 79, 80, 77, 77, + 77, 81, 77, 77, 82, 4, 83, 84, 84, 84, + 84, 86, 86, 86, 86, 88, 89, 91, 113, 117, + 119, 119, 119, 119, 106, 158, 356, 92, 83, 93, + 94, 113, 107, 106, 95, 96, 96, 97, 119, 119, + 119, 119, 85, 118, 107, 107, 98, 99, 100, 101, + 102, 102, 102, 102, 103, 121, 694, 107, 119, 119, + + 119, 119, 119, 119, 119, 119, 357, 136, 120, 135, + 135, 85, 114, 113, 138, 113, 135, 469, 122, 119, + 119, 119, 119, 150, 142, 137, 136, 136, 119, 119, + 119, 119, 85, 135, 135, 135, 123, 191, 85, 85, + 85, 85, 85, 85, 85, 96, 96, 96, 199, 200, + 136, 136, 85, 135, 135, 135, 98, 85, 100, 695, + 102, 102, 102, 102, 695, 125, 235, 163, 124, 136, + 136, 135, 135, 135, 136, 136, 117, 166, 135, 135, + 135, 269, 270, 136, 136, 263, 116, 136, 136, 135, + 135, 135, 135, 135, 135, 136, 136, 130, 207, 192, + + 118, 167, 85, 135, 135, 135, 107, 647, 85, 85, + 85, 85, 85, 85, 85, 107, 354, 108, 107, 109, + 110, 110, 110, 110, 111, 136, 136, 107, 136, 136, + 168, 168, 168, 168, 135, 135, 135, 107, 135, 135, + 673, 139, 168, 168, 168, 168, 108, 130, 544, 107, + 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, + 112, 112, 145, 180, 180, 168, 168, 168, 168, 179, + 179, 179, 169, 108, 126, 127, 127, 127, 126, 126, + 126, 126, 126, 126, 126, 126, 126, 128, 126, 126, + 107, 124, 140, 113, 126, 126, 126, 126, 91, 172, + + 378, 107, 107, 85, 96, 96, 96, 145, 151, 379, + 93, 152, 113, 107, 207, 153, 208, 126, 130, 126, + 113, 146, 146, 146, 146, 170, 663, 371, 168, 168, + 168, 168, 147, 168, 168, 168, 168, 180, 180, 141, + 179, 179, 179, 143, 85, 126, 126, 131, 171, 695, + 132, 132, 132, 132, 133, 669, 150, 179, 168, 168, + 168, 168, 180, 85, 179, 179, 181, 180, 180, 182, + 174, 179, 179, 179, 372, 150, 134, 147, 269, 270, + 135, 135, 136, 136, 136, 136, 136, 136, 136, 136, + 136, 136, 180, 180, 179, 179, 179, 84, 84, 84, + + 84, 660, 85, 134, 96, 96, 97, 173, 485, 165, + 266, 85, 486, 166, 150, 98, 154, 100, 101, 155, + 155, 155, 155, 156, 180, 180, 180, 180, 668, 179, + 179, 179, 85, 179, 179, 179, 656, 167, 180, 180, + 180, 180, 180, 180, 150, 263, 179, 179, 179, 179, + 179, 179, 179, 179, 86, 86, 86, 86, 190, 201, + 266, 149, 96, 96, 96, 663, 85, 149, 149, 149, + 149, 149, 149, 149, 96, 96, 96, 196, 150, 197, + 207, 85, 208, 415, 198, 98, 149, 100, 695, 155, + 155, 155, 155, 150, 85, 85, 85, 107, 107, 107, + + 85, 184, 85, 85, 85, 85, 150, 150, 150, 107, + 107, 107, 150, 85, 85, 85, 107, 342, 107, 250, + 250, 250, 250, 342, 282, 150, 150, 150, 107, 661, + 107, 149, 183, 250, 250, 250, 250, 149, 149, 149, + 149, 149, 149, 149, 85, 416, 282, 107, 185, 159, + 145, 109, 160, 160, 160, 160, 161, 186, 660, 107, + 85, 188, 438, 254, 146, 146, 146, 146, 264, 265, + 173, 657, 150, 250, 250, 250, 250, 468, 159, 468, + 421, 145, 162, 162, 162, 162, 162, 162, 162, 162, + 162, 162, 162, 162, 422, 146, 146, 146, 146, 259, + + 149, 149, 149, 149, 417, 159, 175, 255, 695, 176, + 176, 176, 176, 177, 113, 85, 85, 85, 439, 85, + 147, 85, 107, 267, 85, 85, 85, 150, 150, 150, + 106, 150, 354, 150, 107, 178, 150, 150, 150, 179, + 179, 180, 180, 180, 180, 180, 180, 180, 180, 180, + 180, 147, 653, 446, 281, 286, 303, 303, 303, 303, + 446, 440, 178, 130, 187, 111, 418, 109, 194, 194, + 194, 194, 111, 96, 96, 96, 299, 266, 283, 145, + 383, 219, 285, 440, 130, 203, 544, 204, 219, 384, + 301, 524, 205, 653, 111, 545, 346, 648, 195, 195, + + 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, + 219, 321, 321, 321, 321, 322, 322, 322, 322, 347, + 647, 111, 210, 210, 210, 210, 210, 210, 210, 210, + 210, 210, 210, 210, 85, 85, 85, 219, 241, 212, + 382, 347, 85, 85, 85, 85, 213, 150, 150, 147, + 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, + 85, 85, 85, 85, 85, 85, 85, 85, 212, 447, + 447, 447, 215, 215, 215, 215, 215, 215, 215, 215, + 215, 215, 215, 215, 85, 85, 85, 85, 85, 85, + 85, 85, 85, 85, 85, 212, 85, 217, 85, 85, + + 218, 218, 218, 218, 219, 85, 294, 294, 294, 294, + 150, 150, 448, 294, 294, 294, 294, 150, 219, 106, + 106, 309, 309, 309, 309, 219, 217, 106, 590, 356, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, - - 215, 215, 321, 272, 272, 272, 272, 342, 273, 546, - 275, 80, 322, 213, 218, 277, 219, 630, 80, 322, - 356, 220, 221, 145, 503, 222, 279, 80, 223, 142, - 145, 80, 272, 272, 272, 272, 218, 274, 219, 145, - 263, 300, 301, 145, 220, 221, 323, 323, 323, 323, - 222, 272, 272, 272, 272, 223, 121, 122, 122, 122, - 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, - 121, 121, 80, 80, 80, 462, 121, 121, 121, 121, - 279, 662, 80, 293, 145, 145, 145, 140, 650, 281, - 288, 288, 288, 288, 145, 214, 80, 102, 295, 121, - - 125, 121, 214, 80, 288, 288, 288, 288, 145, 80, - 280, 288, 288, 288, 288, 145, 324, 324, 324, 324, - 294, 145, 403, 404, 214, 263, 657, 121, 121, 121, - 234, 234, 234, 235, 291, 121, 121, 121, 121, 121, - 121, 689, 443, 121, 121, 292, 670, 378, 689, 121, - 121, 214, 121, 185, 297, 444, 379, 142, 185, 297, - 189, 189, 189, 189, 190, 305, 305, 305, 305, 387, - 689, 429, 121, 125, 325, 325, 325, 325, 326, 326, - 326, 326, 327, 327, 327, 327, 326, 326, 326, 326, - 370, 406, 188, 303, 304, 371, 372, 689, 406, 188, - - 121, 121, 237, 237, 237, 237, 237, 237, 237, 237, - 237, 237, 237, 237, 80, 238, 142, 80, 338, 239, - 349, 655, 80, 80, 80, 80, 240, 430, 241, 145, - 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, - 242, 242, 242, 242, 242, 242, 242, 242, 243, 654, - 351, 125, 244, 244, 244, 244, 244, 244, 244, 244, - 244, 244, 244, 244, 242, 242, 242, 242, 242, 242, - 242, 242, 242, 242, 242, 243, 242, 130, 130, 130, - 130, 130, 130, 130, 130, 130, 130, 130, 130, 246, - 352, 326, 326, 326, 326, 366, 247, 247, 247, 247, - - 403, 404, 248, 102, 249, 249, 249, 249, 249, 249, - 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, - 249, 249, 249, 339, 326, 326, 326, 326, 356, 80, - 250, 93, 93, 93, 357, 357, 357, 357, 80, 417, - 80, 145, 365, 144, 96, 377, 150, 150, 150, 150, - 145, 562, 145, 418, 152, 152, 152, 152, 152, 152, - 152, 152, 144, 152, 144, 144, 152, 152, 152, 144, - 144, 152, 144, 347, 437, 391, 152, 152, 152, 152, - 152, 152, 152, 152, 152, 152, 152, 152, 144, 152, - 152, 152, 152, 152, 144, 144, 144, 144, 144, 144, - - 144, 80, 651, 214, 647, 125, 311, 311, 311, 311, - 214, 246, 140, 145, 234, 234, 234, 235, 358, 358, - 358, 358, 647, 449, 248, 80, 369, 369, 369, 369, - 475, 476, 214, 380, 380, 380, 380, 145, 642, 268, - 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - 268, 269, 360, 406, 188, 689, 316, 125, 270, 214, - 80, 80, 689, 689, 689, 689, 320, 80, 689, 80, - 450, 80, 145, 145, 390, 381, 381, 381, 381, 145, - 269, 145, 142, 145, 271, 271, 271, 271, 271, 271, - 271, 271, 271, 271, 271, 271, 689, 409, 409, 409, - - 409, 504, 389, 420, 420, 420, 420, 269, 282, 282, - 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, - 80, 238, 641, 80, 504, 283, 475, 476, 144, 144, - 144, 144, 284, 640, 241, 145, 285, 285, 285, 285, - 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, - 285, 285, 285, 285, 286, 438, 438, 438, 287, 287, - 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, - 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, - 285, 286, 285, 173, 173, 173, 173, 173, 173, 173, - 173, 173, 173, 173, 173, 80, 246, 689, 439, 437, - - 144, 406, 188, 288, 288, 288, 288, 145, 640, 248, - 689, 289, 289, 289, 289, 289, 289, 289, 289, 289, - 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, - 514, 449, 102, 144, 144, 144, 144, 290, 144, 144, + 215, 215, 319, 297, 441, 300, 85, 219, 323, 323, + 323, 323, 320, 217, 220, 85, 221, 375, 150, 320, + 222, 223, 376, 377, 145, 224, 442, 150, 225, 357, + 646, 85, 569, 646, 219, 408, 220, 470, 221, 294, + 294, 294, 294, 150, 222, 223, 325, 325, 325, 325, + 224, 326, 326, 326, 326, 225, 126, 127, 127, 127, + + 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, + 126, 126, 643, 298, 371, 395, 126, 126, 126, 126, + 327, 327, 327, 327, 85, 85, 85, 85, 85, 85, + 85, 85, 85, 85, 147, 695, 85, 106, 514, 126, + 130, 126, 695, 518, 326, 326, 326, 326, 150, 326, + 326, 326, 326, 326, 326, 326, 326, 236, 236, 236, + 237, 370, 514, 459, 695, 519, 642, 126, 126, 126, + 236, 236, 236, 237, 85, 126, 126, 126, 126, 126, + 126, 343, 399, 126, 126, 344, 150, 145, 241, 126, + 126, 695, 126, 352, 361, 361, 361, 361, 249, 536, + + 130, 374, 374, 374, 374, 362, 362, 362, 362, 314, + 460, 251, 126, 130, 85, 695, 318, 85, 85, 370, + 85, 85, 695, 695, 695, 695, 150, 640, 695, 150, + 150, 401, 150, 150, 410, 410, 410, 410, 639, 364, + 126, 126, 239, 239, 239, 239, 239, 239, 239, 239, + 239, 239, 239, 239, 85, 240, 695, 147, 241, 242, + 397, 634, 85, 85, 85, 85, 243, 633, 244, 400, + 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, + 245, 245, 245, 245, 245, 245, 245, 245, 246, 534, + 381, 534, 247, 247, 247, 247, 247, 247, 247, 247, + + 247, 247, 247, 247, 245, 245, 245, 245, 245, 245, + 245, 245, 245, 245, 245, 246, 245, 135, 135, 135, + 135, 135, 135, 135, 135, 135, 135, 135, 135, 249, + 411, 411, 411, 411, 106, 650, 250, 250, 250, 250, + 632, 516, 251, 631, 252, 252, 252, 252, 252, 252, + 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, + 252, 252, 252, 85, 85, 85, 516, 85, 398, 85, + 253, 96, 96, 96, 407, 150, 150, 150, 85, 150, + 85, 150, 98, 149, 100, 85, 155, 155, 155, 155, + 150, 85, 150, 385, 385, 385, 385, 150, 85, 386, + + 386, 386, 386, 150, 393, 394, 387, 387, 387, 387, + 150, 149, 149, 149, 149, 149, 149, 149, 149, 149, + 149, 85, 423, 423, 423, 423, 209, 209, 149, 387, + 387, 387, 387, 150, 149, 149, 149, 149, 149, 149, + 149, 85, 332, 429, 429, 429, 429, 616, 85, 332, + 346, 106, 628, 150, 85, 85, 387, 387, 387, 387, + 150, 393, 387, 387, 387, 387, 150, 150, 627, 616, + 106, 332, 106, 396, 361, 361, 361, 361, 562, 271, + 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, + 271, 85, 563, 419, 394, 396, 272, 320, 332, 149, + + 149, 149, 149, 273, 320, 401, 635, 274, 274, 274, + 274, 274, 274, 274, 274, 274, 274, 149, 149, 149, + 149, 149, 149, 149, 149, 272, 535, 674, 459, 275, + 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, + 275, 149, 149, 149, 149, 149, 149, 149, 149, 149, + 149, 149, 272, 149, 276, 420, 85, 277, 277, 277, + 277, 278, 85, 328, 241, 620, 329, 510, 150, 331, + 403, 403, 403, 403, 150, 366, 333, 451, 451, 451, + 451, 510, 510, 276, 534, 381, 534, 275, 275, 275, + 275, 275, 275, 275, 275, 275, 275, 275, 275, 488, + + 488, 488, 488, 616, 473, 546, 546, 546, 546, 619, + 276, 288, 288, 288, 288, 288, 288, 288, 288, 288, + 288, 288, 288, 85, 240, 616, 501, 241, 289, 615, + 676, 149, 149, 149, 149, 290, 598, 244, 502, 291, + 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, + 291, 291, 291, 291, 291, 291, 291, 292, 447, 447, + 447, 293, 293, 293, 293, 293, 293, 293, 293, 293, + 293, 293, 293, 291, 291, 291, 291, 291, 291, 291, + 291, 291, 291, 291, 292, 291, 179, 179, 179, 179, + 179, 179, 179, 179, 179, 179, 179, 179, 85, 249, + + 147, 448, 145, 149, 614, 678, 294, 294, 294, 294, + 150, 106, 251, 483, 295, 295, 295, 295, 295, 295, + 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, + 295, 295, 295, 525, 525, 525, 149, 149, 149, 149, + 296, 149, 149, 149, 149, 149, 149, 149, 149, 149, + 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, + 149, 214, 214, 214, 214, 214, 214, 214, 214, 214, + 214, 203, 147, 204, 591, 258, 526, 515, 205, 544, + 419, 211, 211, 215, 215, 215, 215, 215, 215, 215, + 215, 215, 215, 215, 215, 324, 324, 324, 324, 324, + + 324, 324, 324, 324, 324, 485, 516, 606, 106, 216, + 216, 546, 546, 546, 546, 517, 106, 308, 308, 308, + 308, 308, 308, 308, 308, 308, 308, 308, 308, 85, + 328, 516, 85, 329, 330, 605, 331, 85, 85, 85, + 85, 332, 420, 333, 150, 334, 334, 334, 334, 334, + 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, + 334, 334, 334, 335, 568, 106, 622, 336, 336, 336, + 336, 336, 336, 336, 336, 336, 336, 336, 336, 85, + 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, + 330, 85, 126, 236, 236, 236, 237, 85, 126, 126, + + 126, 126, 126, 126, 85, 695, 126, 126, 695, 150, + 371, 695, 126, 126, 695, 126, 150, 608, 695, 85, + 452, 695, 106, 453, 85, 85, 454, 85, 85, 85, + 85, 365, 145, 455, 366, 126, 130, 150, 695, 248, + 248, 695, 91, 695, 367, 474, 462, 462, 462, 462, + 464, 695, 463, 266, 93, 145, 85, 406, 329, 95, + 465, 85, 101, 126, 126, 249, 543, 103, 150, 266, + 695, 607, 458, 150, 106, 106, 106, 617, 251, 695, + 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, + 252, 252, 252, 252, 252, 252, 252, 252, 252, 618, + + 360, 360, 147, 604, 623, 552, 253, 359, 359, 359, + 359, 359, 359, 359, 359, 359, 359, 359, 359, 365, + 513, 85, 366, 366, 649, 147, 621, 670, 525, 525, + 525, 616, 367, 150, 368, 368, 368, 368, 368, 368, + 368, 368, 368, 368, 368, 368, 368, 368, 368, 368, + 368, 368, 368, 616, 85, 85, 85, 85, 597, 425, + 369, 85, 472, 472, 472, 472, 150, 150, 150, 150, + 438, 526, 598, 150, 624, 85, 145, 274, 274, 274, + 274, 274, 274, 274, 274, 274, 274, 150, 529, 600, + 106, 600, 616, 658, 599, 616, 625, 479, 480, 275, + + 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, + 275, 85, 328, 145, 616, 329, 388, 616, 331, 149, + 149, 149, 149, 389, 575, 333, 475, 390, 390, 390, + 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, + 390, 390, 390, 390, 390, 391, 530, 636, 678, 392, + 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, + 392, 149, 149, 149, 149, 149, 149, 149, 149, 149, + 149, 149, 388, 149, 85, 249, 424, 581, 678, 425, + 596, 549, 426, 147, 595, 589, 150, 588, 251, 427, + 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, + + 295, 295, 295, 295, 295, 295, 295, 295, 295, 85, + 113, 587, 563, 586, 655, 85, 296, 85, 258, 85, + 695, 150, 85, 695, 85, 459, 695, 150, 656, 150, + 85, 150, 476, 695, 150, 85, 150, 510, 403, 403, + 403, 403, 150, 586, 585, 584, 583, 150, 693, 616, + 582, 510, 510, 644, 477, 402, 402, 402, 402, 402, + 402, 402, 402, 402, 402, 402, 402, 365, 478, 85, + 366, 616, 482, 555, 266, 555, 581, 540, 580, 579, + 367, 150, 404, 404, 404, 404, 404, 404, 404, 404, + 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, + + 404, 452, 578, 577, 453, 85, 438, 454, 405, 328, + 145, 85, 329, 332, 455, 331, 504, 150, 576, 542, + 332, 594, 333, 150, 412, 412, 412, 412, 412, 412, + 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, + 412, 412, 413, 183, 381, 567, 414, 414, 414, 414, + 414, 414, 414, 414, 414, 414, 414, 414, 695, 452, + 106, 695, 695, 85, 695, 695, 85, 85, 453, 332, + 328, 695, 695, 329, 566, 150, 331, 260, 150, 150, + 147, 366, 453, 333, 616, 334, 334, 334, 334, 334, + 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, + + 334, 334, 334, 334, 424, 452, 616, 425, 695, 664, + 426, 695, 645, 106, 541, 564, 561, 427, 695, 428, + 428, 428, 428, 428, 428, 428, 428, 428, 428, 428, + 428, 428, 428, 428, 428, 428, 428, 428, 336, 336, + 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, + 328, 503, 560, 329, 504, 559, 331, 505, 558, 557, + 556, 649, 555, 333, 506, 390, 390, 390, 390, 390, + 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, + 390, 390, 390, 390, 85, 113, 139, 85, 85, 504, + 85, 149, 424, 553, 85, 425, 150, 551, 426, 150, + + 150, 550, 150, 504, 539, 427, 150, 471, 471, 471, + 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, + 471, 471, 471, 471, 471, 471, 392, 392, 392, 392, + 392, 392, 392, 392, 392, 392, 392, 392, 85, 452, + 616, 503, 453, 149, 571, 454, 149, 149, 149, 149, + 150, 695, 455, 503, 695, 85, 504, 695, 503, 505, + 658, 549, 616, 548, 695, 500, 506, 150, 507, 507, + 507, 507, 507, 507, 507, 507, 507, 507, 507, 507, + 507, 507, 507, 507, 507, 507, 507, 503, 145, 85, + 504, 500, 498, 505, 498, 496, 573, 496, 494, 613, + + 506, 150, 537, 537, 537, 537, 537, 537, 537, 537, + 537, 537, 537, 537, 537, 537, 537, 537, 537, 537, + 537, 85, 145, 85, 381, 494, 492, 145, 85, 381, + 492, 572, 490, 150, 85, 150, 565, 565, 565, 565, + 150, 565, 565, 565, 565, 573, 150, 538, 85, 85, + 629, 85, 638, 145, 570, 381, 616, 638, 147, 381, + 150, 150, 145, 150, 626, 592, 574, 490, 425, 145, + 381, 538, 630, 641, 638, 145, 532, 651, 616, 638, + 654, 531, 207, 638, 145, 201, 667, 638, 370, 528, + 145, 665, 147, 612, 366, 672, 381, 530, 638, 652, + + 453, 675, 450, 381, 592, 638, 593, 601, 601, 638, + 601, 601, 601, 601, 601, 381, 601, 601, 601, 601, + 638, 601, 601, 147, 638, 113, 666, 601, 601, 601, + 601, 638, 147, 523, 522, 521, 678, 603, 678, 147, + 520, 671, 438, 638, 671, 147, 638, 679, 113, 680, + 601, 601, 601, 638, 147, 513, 678, 678, 678, 603, + 147, 678, 512, 678, 678, 638, 678, 681, 682, 683, + 511, 678, 684, 509, 685, 686, 508, 687, 601, 601, + 601, 601, 688, 601, 601, 601, 601, 601, 602, 601, + 601, 601, 601, 425, 601, 601, 678, 424, 424, 422, + + 610, 601, 601, 601, 500, 498, 258, 689, 258, 678, + 611, 678, 496, 494, 492, 490, 329, 329, 678, 484, + 690, 329, 691, 601, 601, 601, 258, 258, 258, 692, + 263, 258, 611, 258, 258, 381, 258, 467, 466, 87, + 202, 258, 461, 366, 365, 370, 241, 450, 445, 444, + 443, 601, 601, 601, 601, 202, 601, 601, 601, 601, + 601, 437, 601, 601, 601, 601, 258, 601, 601, 436, + 435, 434, 433, 601, 601, 601, 601, 432, 431, 258, + 430, 258, 329, 603, 329, 328, 328, 207, 258, 207, + 202, 201, 201, 201, 307, 307, 601, 601, 601, 305, + + 305, 409, 241, 263, 263, 603, 263, 262, 381, 262, + 352, 373, 344, 343, 370, 249, 241, 241, 240, 351, + 350, 349, 348, 345, 601, 601, 601, 601, 341, 601, + 601, 601, 601, 601, 602, 601, 601, 601, 601, 340, + 601, 601, 339, 338, 337, 318, 610, 601, 601, 601, + 318, 317, 316, 315, 314, 314, 611, 313, 312, 311, + 310, 307, 305, 302, 263, 287, 285, 284, 283, 601, + 601, 601, 280, 279, 263, 263, 262, 260, 611, 258, + 257, 232, 202, 256, 230, 130, 234, 233, 232, 202, + 231, 230, 229, 229, 228, 227, 226, 601, 601, 85, + + 106, 207, 85, 206, 201, 85, 202, 85, 85, 85, + 85, 85, 85, 85, 90, 90, 201, 193, 189, 165, + 90, 90, 104, 104, 104, 164, 104, 104, 104, 104, + 104, 104, 104, 104, 104, 104, 104, 104, 104, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 129, 129, 129, + 129, 129, 129, 129, 129, 129, 129, 129, 129, 129, + 129, 129, 129, 129, 129, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, 215, 215, - 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, - 328, 357, 357, 357, 357, 80, 459, 329, 448, 330, - 80, 80, 80, 381, 381, 381, 381, 145, 381, 381, - 381, 381, 145, 145, 145, 442, 442, 442, 442, 328, - - 475, 476, 500, 331, 331, 331, 331, 331, 331, 331, - 331, 331, 331, 331, 331, 385, 500, 500, 185, 478, - 386, 385, 386, 479, 406, 188, 328, 121, 234, 234, - 234, 235, 556, 121, 121, 121, 121, 121, 121, 341, - 80, 121, 121, 80, 80, 365, 557, 121, 121, 80, - 121, 80, 145, 80, 637, 145, 145, 381, 381, 381, - 381, 145, 388, 145, 80, 145, 356, 330, 140, 361, - 121, 125, 395, 395, 395, 395, 145, 102, 80, 400, - 80, 80, 362, 399, 388, 636, 140, 366, 263, 392, - 145, 102, 145, 145, 185, 297, 689, 472, 121, 121, - - 246, 408, 408, 408, 408, 102, 393, 689, 393, 689, - 447, 475, 476, 248, 689, 249, 249, 249, 249, 249, - 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, - 249, 249, 249, 249, 398, 102, 689, 689, 142, 527, - 601, 250, 354, 354, 354, 354, 354, 354, 354, 354, - 354, 354, 354, 354, 361, 204, 142, 205, 634, 329, - 633, 526, 206, 689, 475, 476, 329, 362, 330, 363, - 363, 363, 363, 363, 363, 363, 363, 363, 363, 363, - 363, 363, 363, 363, 363, 363, 363, 363, 329, 415, - 415, 361, 329, 322, 628, 364, 80, 80, 585, 329, - - 322, 689, 80, 443, 689, 80, 80, 80, 145, 145, - 80, 80, 80, 80, 88, 329, 444, 145, 145, 419, - 443, 329, 102, 102, 453, 627, 90, 480, 480, 480, - 480, 92, 689, 689, 271, 271, 271, 271, 271, 271, - 271, 271, 271, 271, 271, 271, 382, 454, 329, 263, - 80, 416, 416, 383, 463, 330, 429, 455, 80, 97, - 493, 80, 145, 495, 99, 80, 461, 461, 461, 461, - 145, 626, 494, 145, 563, 382, 496, 145, 629, 384, - 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, - 384, 140, 468, 506, 263, 102, 584, 80, 80, 80, - - 689, 448, 382, 80, 246, 452, 452, 452, 452, 145, - 145, 145, 464, 689, 102, 145, 610, 248, 506, 289, - 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, - 289, 289, 289, 289, 289, 289, 289, 289, 610, 625, - 469, 467, 525, 376, 525, 290, 394, 394, 394, 394, - 394, 394, 394, 394, 394, 394, 394, 394, 361, 535, - 80, 142, 518, 525, 376, 525, 602, 622, 536, 102, - 644, 362, 145, 396, 396, 396, 396, 396, 396, 396, - 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, - 396, 396, 438, 438, 438, 210, 210, 102, 621, 397, - - 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, - 331, 331, 384, 384, 384, 384, 384, 384, 384, 384, - 384, 384, 384, 384, 80, 102, 212, 212, 591, 80, - 505, 515, 515, 515, 614, 439, 145, 395, 395, 395, - 395, 145, 592, 80, 443, 643, 140, 465, 144, 80, - 80, 144, 144, 144, 144, 145, 449, 444, 520, 506, - 109, 145, 145, 80, 613, 80, 429, 80, 507, 466, - 80, 80, 495, 109, 516, 145, 529, 145, 80, 145, - 668, 140, 145, 145, 506, 689, 80, 530, 543, 80, - 145, 610, 534, 500, 80, 102, 611, 80, 145, 529, - - 102, 145, 80, 471, 495, 531, 145, 500, 500, 145, - 515, 515, 515, 610, 145, 609, 521, 496, 612, 497, - 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, - 497, 497, 497, 497, 497, 497, 497, 497, 80, 495, - 532, 216, 216, 567, 533, 245, 245, 615, 592, 658, - 145, 142, 496, 516, 528, 528, 528, 528, 528, 528, - 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, - 528, 528, 528, 185, 297, 140, 80, 608, 617, 535, - 539, 539, 539, 539, 80, 80, 80, 80, 145, 559, - 559, 559, 559, 140, 80, 600, 145, 145, 145, 145, - - 185, 478, 140, 599, 569, 610, 145, 539, 539, 539, - 539, 80, 80, 618, 177, 564, 559, 559, 559, 559, - 140, 80, 80, 145, 145, 568, 376, 610, 566, 140, - 623, 588, 376, 145, 145, 619, 610, 140, 140, 610, - 607, 565, 567, 586, 638, 142, 140, 610, 620, 635, - 586, 610, 624, 649, 632, 140, 610, 648, 610, 140, - 632, 610, 598, 142, 606, 376, 661, 650, 587, 610, - 666, 652, 521, 610, 102, 639, 632, 672, 610, 672, - 102, 594, 632, 355, 355, 594, 652, 645, 610, 376, - 142, 595, 595, 632, 595, 595, 595, 595, 595, 142, - - 595, 595, 595, 595, 376, 595, 595, 142, 142, 646, - 610, 595, 595, 595, 595, 632, 142, 632, 672, 593, - 140, 597, 659, 575, 590, 142, 664, 376, 643, 142, - 376, 669, 632, 376, 595, 595, 595, 542, 589, 632, - 672, 672, 583, 597, 582, 672, 581, 255, 672, 255, - 557, 673, 674, 665, 632, 632, 675, 580, 632, 676, - 660, 632, 595, 595, 595, 595, 580, 595, 595, 595, - 595, 595, 596, 595, 595, 595, 595, 632, 595, 595, - 632, 665, 579, 632, 604, 595, 595, 595, 687, 578, - 142, 672, 672, 672, 605, 672, 577, 576, 549, 549, - - 575, 672, 677, 678, 679, 574, 680, 595, 595, 595, - 255, 255, 681, 672, 672, 255, 605, 672, 255, 573, - 672, 672, 572, 571, 682, 683, 543, 538, 684, 570, - 376, 685, 686, 561, 560, 595, 595, 595, 595, 257, - 595, 595, 595, 595, 595, 448, 595, 595, 595, 595, - 518, 595, 595, 558, 555, 554, 553, 595, 595, 595, - 595, 255, 255, 255, 552, 255, 551, 597, 550, 549, - 134, 255, 547, 545, 544, 543, 542, 541, 492, 492, - 595, 595, 595, 255, 255, 490, 490, 255, 488, 597, - 255, 255, 488, 486, 486, 484, 484, 482, 482, 538, - - 523, 522, 208, 201, 365, 519, 448, 518, 595, 595, - 595, 595, 441, 595, 595, 595, 595, 595, 596, 595, - 595, 595, 595, 109, 595, 595, 513, 512, 511, 510, - 604, 595, 595, 595, 429, 109, 503, 502, 501, 499, - 605, 498, 418, 492, 490, 488, 486, 484, 482, 419, - 297, 473, 260, 595, 595, 595, 376, 457, 456, 84, - 202, 451, 605, 448, 365, 356, 441, 436, 435, 434, - 202, 428, 427, 426, 425, 424, 423, 422, 421, 330, - 419, 595, 595, 80, 330, 208, 208, 80, 80, 202, - 201, 80, 80, 80, 80, 80, 80, 80, 80, 81, - - 81, 81, 81, 81, 201, 81, 81, 81, 81, 81, - 81, 81, 81, 81, 81, 81, 81, 81, 87, 87, - 201, 309, 309, 87, 87, 87, 101, 101, 101, 101, - 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, - 101, 101, 101, 101, 101, 124, 124, 124, 124, 124, - 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, - 124, 124, 124, 124, 139, 139, 139, 139, 139, 139, - 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, - 139, 139, 139, 144, 307, 307, 401, 144, 144, 144, - 356, 144, 144, 144, 144, 144, 144, 144, 144, 184, - - 184, 184, 184, 184, 260, 184, 184, 184, 184, 184, - 184, 184, 184, 184, 184, 184, 184, 184, 186, 186, - 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, - 186, 186, 186, 186, 186, 186, 186, 203, 203, 260, - 259, 376, 259, 347, 368, 339, 338, 203, 365, 246, - 203, 203, 356, 203, 121, 121, 121, 121, 121, 121, - 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, - 121, 121, 121, 236, 236, 236, 236, 236, 236, 236, - 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, - 236, 236, 140, 140, 140, 140, 140, 140, 140, 140, - - 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, - 140, 258, 258, 258, 258, 258, 258, 258, 258, 258, - 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, - 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, - 265, 265, 265, 265, 265, 265, 265, 265, 265, 184, - 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, - 184, 184, 184, 184, 184, 184, 184, 184, 186, 186, - 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, - 186, 186, 186, 186, 186, 186, 186, 299, 299, 299, - 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, - - 299, 299, 299, 299, 299, 299, 302, 302, 302, 302, - 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, - 302, 302, 302, 302, 302, 306, 306, 356, 306, 306, + 144, 144, 144, 149, 148, 116, 149, 115, 106, 149, + + 149, 149, 149, 149, 149, 149, 149, 149, 157, 157, + 157, 87, 157, 157, 157, 157, 157, 157, 157, 157, + 157, 157, 157, 157, 157, 98, 98, 695, 695, 98, + 695, 695, 695, 695, 695, 98, 98, 98, 98, 695, + 98, 126, 126, 126, 126, 126, 126, 126, 126, 126, + 126, 126, 126, 126, 126, 126, 126, 126, 126, 238, + 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, + 238, 238, 238, 238, 238, 238, 238, 145, 145, 145, + 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, + 145, 145, 145, 145, 145, 261, 261, 261, 261, 261, + + 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, + 261, 261, 261, 157, 157, 157, 695, 157, 157, 157, + 695, 157, 157, 157, 157, 157, 157, 157, 157, 157, + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 268, 268, 268, 268, 268, 268, 268, 304, 304, + 695, 304, 304, 304, 304, 304, 304, 304, 304, 304, + 304, 304, 304, 304, 304, 304, 306, 306, 695, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, - 306, 306, 306, 306, 308, 308, 238, 308, 308, 308, - 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - 308, 308, 308, 310, 346, 310, 345, 344, 343, 310, - 310, 310, 340, 336, 310, 348, 348, 348, 348, 348, - 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, - 348, 348, 348, 348, 121, 121, 121, 121, 121, 121, - - 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, - 121, 121, 121, 350, 350, 350, 350, 350, 350, 350, - 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, - 350, 350, 236, 236, 236, 236, 236, 236, 236, 236, - 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, - 236, 353, 353, 353, 353, 353, 353, 353, 353, 359, - 335, 334, 333, 359, 332, 359, 359, 359, 359, 320, - 359, 258, 258, 258, 258, 258, 258, 258, 258, 258, - 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, - 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, - - 375, 375, 375, 375, 375, 375, 375, 375, 375, 265, - 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, - 265, 265, 265, 265, 265, 265, 265, 265, 101, 101, - 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, - 101, 101, 101, 101, 101, 101, 101, 302, 302, 302, - 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, - 302, 302, 302, 302, 302, 302, 299, 299, 299, 299, - 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, - 299, 299, 299, 299, 299, 402, 402, 402, 402, 402, - 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, - - 402, 402, 402, 402, 405, 405, 405, 405, 405, 405, - 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, - 405, 405, 405, 407, 407, 407, 407, 407, 407, 407, - 407, 407, 407, 407, 407, 407, 407, 407, 407, 407, - 407, 407, 184, 184, 184, 184, 184, 184, 184, 184, - 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, - 184, 306, 306, 320, 306, 306, 306, 306, 306, 306, + 306, 306, 306, 306, 308, 695, 695, 695, 308, 695, + 308, 308, 308, 695, 695, 308, 353, 353, 353, 353, + + 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, + 353, 353, 353, 353, 126, 126, 126, 126, 126, 126, + 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, + 126, 126, 355, 355, 355, 355, 355, 355, 355, 355, + 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, + 238, 238, 238, 238, 238, 238, 238, 238, 358, 358, + 358, 358, 358, 358, 358, 363, 695, 695, 695, 695, + 363, 695, 363, 363, 695, 363, 261, 261, 261, 261, + 261, 261, 261, 261, 261, 261, 261, 261, 261, 261, + + 261, 261, 261, 261, 380, 380, 380, 380, 380, 380, + 380, 380, 380, 380, 380, 380, 380, 380, 380, 380, + 380, 380, 268, 268, 268, 268, 268, 268, 268, 268, + 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 304, 304, + 695, 304, 304, 304, 304, 304, 304, 304, 304, 304, + 304, 304, 304, 304, 304, 304, 306, 306, 695, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, - 308, 308, 319, 308, 308, 308, 308, 308, 308, 308, - 308, 308, 308, 308, 308, 308, 308, 308, 308, 410, - - 318, 410, 410, 317, 316, 410, 410, 410, 316, 315, - 410, 348, 348, 348, 348, 348, 348, 348, 348, 348, - 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, - 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, - 350, 350, 350, 350, 350, 350, 350, 350, 350, 121, - 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, - 121, 121, 121, 121, 121, 121, 121, 121, 440, 440, - 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, - 440, 440, 440, 440, 440, 440, 440, 445, 445, 314, - 313, 445, 445, 312, 445, 445, 445, 445, 445, 445, - - 445, 445, 445, 446, 309, 307, 296, 260, 278, 446, - 446, 446, 446, 260, 446, 375, 375, 375, 375, 375, - 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, - 375, 375, 375, 375, 101, 101, 101, 101, 101, 101, - 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, - 101, 101, 101, 470, 470, 260, 259, 470, 470, 470, - 470, 470, 470, 470, 470, 470, 470, 470, 470, 403, - 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, - 403, 403, 403, 403, 403, 403, 403, 403, 474, 474, - 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, - - 474, 474, 474, 474, 474, 474, 474, 477, 477, 477, - 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, - 477, 477, 477, 477, 477, 477, 481, 481, 257, 481, - 481, 481, 481, 481, 481, 481, 481, 481, 481, 481, - 481, 481, 481, 481, 481, 483, 483, 255, 483, 483, - 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, - 483, 483, 483, 483, 485, 485, 254, 485, 485, 485, - 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, - 485, 485, 485, 487, 487, 230, 487, 487, 487, 487, - 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, - - 487, 487, 489, 489, 202, 489, 489, 489, 489, 489, + 306, 306, 306, 306, 414, 695, 695, 695, 414, 695, + + 414, 414, 414, 695, 695, 414, 412, 412, 695, 695, + 412, 695, 695, 412, 412, 353, 353, 353, 353, 353, + 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, + 353, 353, 353, 355, 355, 355, 355, 355, 355, 355, + 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + 355, 126, 126, 126, 126, 126, 126, 126, 126, 126, + 126, 126, 126, 126, 126, 126, 126, 126, 126, 449, + 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, + 449, 449, 449, 449, 449, 449, 449, 456, 456, 456, + 456, 695, 456, 456, 695, 456, 456, 456, 456, 456, + + 456, 456, 457, 457, 695, 695, 695, 695, 695, 457, + 457, 695, 457, 380, 380, 380, 380, 380, 380, 380, + 380, 380, 380, 380, 380, 380, 380, 380, 380, 380, + 380, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 481, + 481, 481, 481, 695, 481, 481, 481, 481, 481, 481, + 481, 481, 481, 481, 487, 487, 695, 695, 487, 695, + 695, 487, 487, 489, 489, 695, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, - 489, 491, 491, 253, 491, 491, 491, 491, 491, 491, - 491, 491, 491, 491, 491, 491, 491, 491, 491, 491, - 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, - 348, 348, 348, 348, 348, 348, 348, 348, 348, 121, - 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, - 121, 121, 121, 121, 121, 121, 121, 121, 440, 440, - 440, 440, 440, 440, 440, 440, 440, 440, 440, 440, - 440, 440, 440, 440, 440, 440, 440, 517, 228, 125, - - 231, 202, 229, 517, 517, 517, 517, 517, 517, 517, - 517, 517, 524, 524, 524, 524, 524, 524, 524, 524, - 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, - 524, 537, 537, 537, 537, 227, 537, 537, 537, 537, - 537, 537, 537, 537, 537, 537, 537, 537, 537, 537, - 540, 227, 226, 102, 208, 207, 540, 540, 540, 540, - 548, 548, 201, 548, 548, 548, 548, 548, 548, 548, - 548, 548, 548, 548, 548, 548, 548, 548, 548, 596, - 596, 202, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 603, 603, - - 201, 603, 603, 603, 603, 603, 603, 603, 603, 603, - 603, 603, 603, 603, 603, 603, 603, 595, 595, 193, - 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, - 595, 595, 595, 595, 595, 595, 631, 631, 631, 631, - 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, - 631, 631, 631, 631, 631, 653, 653, 653, 653, 653, - 653, 653, 653, 653, 653, 653, 653, 653, 653, 653, - 653, 653, 653, 653, 656, 656, 656, 656, 656, 656, - 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, - 656, 656, 656, 671, 671, 671, 671, 671, 671, 671, - - 671, 671, 671, 671, 671, 671, 671, 671, 671, 671, - 671, 671, 185, 183, 167, 166, 163, 160, 159, 143, - 119, 137, 134, 119, 118, 115, 112, 111, 102, 84, - 689, 3, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - - 689, 689, 689, 689, 689 + 489, 491, 491, 695, 491, 491, 491, 491, 491, 491, + + 491, 491, 491, 491, 491, 491, 491, 491, 491, 493, + 493, 695, 493, 493, 493, 493, 493, 493, 493, 493, + 493, 493, 493, 493, 493, 493, 493, 495, 495, 695, + 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, + 495, 495, 495, 495, 495, 497, 497, 695, 497, 497, + 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, + 497, 497, 497, 499, 499, 695, 499, 499, 499, 499, + 499, 499, 499, 499, 499, 499, 499, 499, 499, 499, + 499, 527, 527, 695, 695, 527, 695, 695, 527, 527, + 527, 527, 527, 527, 527, 533, 533, 533, 533, 533, + + 533, 533, 533, 533, 533, 533, 533, 533, 533, 533, + 533, 533, 533, 547, 547, 695, 695, 547, 695, 695, + 547, 547, 554, 554, 695, 554, 554, 554, 554, 554, + 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, + 602, 602, 695, 602, 602, 602, 602, 602, 602, 602, + 602, 602, 602, 602, 602, 602, 602, 602, 609, 609, + 695, 609, 609, 609, 609, 609, 609, 609, 609, 609, + 609, 609, 609, 609, 609, 609, 601, 601, 695, 601, + 601, 601, 601, 601, 601, 601, 601, 601, 601, 601, + 601, 601, 601, 601, 637, 637, 637, 637, 637, 637, + + 637, 637, 637, 637, 637, 637, 637, 637, 637, 637, + 637, 637, 659, 659, 659, 659, 659, 659, 659, 659, + 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, + 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, + 662, 662, 662, 662, 662, 662, 662, 662, 677, 677, + 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, + 677, 677, 677, 677, 677, 677, 3, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695 } ; -static yyconst flex_int16_t yy_chk[3906] = +static yyconst flex_int16_t yy_chk[3941] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -1197,420 +1197,423 @@ static yyconst flex_int16_t yy_chk[3906] = 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 6, 6, 6, - 6, 8, 10, 10, 11, 19, 21, 45, 8, 8, - 8, 8, 16, 151, 11, 13, 11, 11, 5, 45, - 56, 11, 12, 12, 12, 13, 151, 13, 19, 12, - 21, 97, 13, 97, 12, 12, 12, 12, 12, 12, - 12, 12, 687, 24, 56, 12, 12, 12, 12, 12, + 6, 8, 8, 8, 8, 11, 11, 12, 17, 20, + 22, 22, 22, 22, 52, 52, 237, 12, 5, 12, + 12, 29, 41, 383, 12, 13, 13, 13, 21, 21, + 21, 21, 13, 20, 41, 43, 13, 13, 13, 13, + 13, 13, 13, 13, 13, 23, 693, 43, 23, 23, + + 23, 23, 24, 24, 24, 24, 237, 30, 21, 30, + 30, 48, 17, 54, 30, 26, 29, 383, 23, 25, + 25, 25, 25, 48, 43, 29, 36, 36, 26, 26, + 26, 26, 13, 36, 36, 36, 24, 87, 13, 13, + 13, 13, 13, 13, 13, 14, 14, 14, 92, 92, + 32, 32, 14, 32, 32, 32, 14, 14, 14, 14, + 14, 14, 14, 14, 14, 26, 128, 54, 25, 31, + 31, 31, 31, 31, 33, 33, 34, 57, 33, 33, + 33, 158, 158, 35, 35, 156, 31, 34, 34, 35, + 35, 35, 34, 34, 34, 37, 37, 128, 156, 87, + + 34, 57, 14, 37, 37, 37, 40, 673, 14, 14, + 14, 14, 14, 14, 14, 16, 235, 16, 40, 16, + 16, 16, 16, 16, 16, 38, 38, 16, 39, 39, + 59, 59, 59, 59, 38, 38, 38, 44, 39, 39, + 669, 40, 58, 58, 58, 58, 16, 235, 668, 44, + 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 144, 71, 71, 61, 61, 61, 61, 71, + 71, 71, 58, 16, 27, 27, 27, 27, 27, 27, + 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, + 42, 44, 42, 45, 27, 27, 27, 27, 49, 61, + + 262, 45, 42, 49, 96, 96, 96, 46, 49, 262, + 49, 49, 65, 45, 101, 49, 101, 27, 27, 27, + 63, 46, 46, 46, 46, 60, 662, 253, 60, 60, + 60, 60, 144, 63, 63, 63, 63, 68, 68, 42, + 68, 68, 68, 45, 149, 27, 27, 28, 60, 28, + 28, 28, 28, 28, 28, 661, 149, 65, 62, 62, + 62, 62, 66, 157, 66, 66, 65, 69, 69, 66, + 63, 69, 69, 69, 253, 157, 28, 46, 268, 268, + 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, + 28, 28, 67, 67, 67, 67, 67, 84, 84, 84, + + 84, 659, 152, 28, 50, 50, 50, 62, 410, 67, + 152, 50, 410, 70, 152, 50, 50, 50, 50, 50, + 50, 50, 50, 50, 70, 70, 72, 72, 657, 70, + 70, 70, 171, 72, 72, 72, 655, 70, 73, 73, + 74, 74, 75, 75, 171, 153, 73, 73, 73, 74, + 74, 74, 75, 75, 86, 86, 86, 86, 86, 153, + 171, 50, 100, 100, 100, 649, 167, 50, 50, 50, + 50, 50, 50, 50, 51, 51, 51, 91, 167, 91, + 316, 51, 316, 314, 91, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 76, 77, 78, 76, 77, 78, + + 266, 78, 119, 119, 119, 119, 76, 77, 78, 76, + 77, 78, 266, 80, 166, 79, 80, 225, 79, 136, + 136, 136, 136, 225, 167, 80, 166, 79, 80, 648, + 79, 51, 76, 137, 137, 137, 137, 51, 51, 51, + 51, 51, 51, 51, 53, 314, 166, 53, 78, 53, + 82, 53, 53, 53, 53, 53, 53, 79, 647, 53, + 151, 82, 345, 137, 82, 82, 82, 82, 151, 151, + 80, 643, 151, 138, 138, 138, 138, 381, 53, 381, + 320, 146, 53, 53, 53, 53, 53, 53, 53, 53, + 53, 53, 53, 53, 320, 146, 146, 146, 146, 146, + + 168, 168, 168, 168, 318, 53, 64, 138, 64, 64, + 64, 64, 64, 64, 81, 154, 165, 173, 345, 81, + 82, 183, 81, 154, 184, 185, 186, 154, 165, 173, + 270, 81, 353, 183, 81, 64, 184, 185, 186, 64, + 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, + 64, 146, 640, 354, 165, 173, 190, 190, 190, 190, + 446, 346, 64, 353, 81, 90, 318, 90, 90, 90, + 90, 90, 90, 97, 97, 97, 184, 185, 183, 188, + 270, 194, 186, 346, 354, 97, 484, 97, 194, 270, + 188, 446, 97, 639, 90, 484, 229, 634, 90, 90, + + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 194, 209, 209, 209, 209, 210, 210, 210, 210, 229, + 633, 90, 108, 108, 108, 108, 108, 108, 108, 108, + 108, 108, 108, 108, 110, 264, 291, 194, 291, 110, + 264, 229, 110, 110, 110, 110, 110, 264, 291, 188, + 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, + 110, 110, 110, 110, 110, 110, 110, 110, 110, 356, + 356, 356, 110, 110, 110, 110, 110, 110, 110, 110, + 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, + 110, 110, 110, 110, 110, 110, 110, 112, 180, 187, + + 112, 112, 112, 112, 112, 181, 180, 180, 180, 180, + 180, 187, 356, 181, 181, 181, 181, 181, 195, 384, + 536, 195, 195, 195, 195, 195, 112, 568, 568, 355, + 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, + 112, 112, 208, 181, 347, 187, 386, 195, 211, 211, + 211, 211, 208, 112, 113, 281, 113, 260, 386, 208, + 113, 113, 260, 260, 301, 113, 347, 281, 113, 355, + 632, 182, 536, 631, 195, 301, 113, 384, 113, 182, + 182, 182, 182, 182, 113, 113, 214, 214, 214, 214, + 113, 215, 215, 215, 215, 113, 127, 127, 127, 127, - 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, - 12, 12, 12, 12, 27, 51, 16, 12, 12, 12, - 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, - 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, - 12, 12, 15, 24, 15, 39, 15, 15, 15, 15, - 15, 15, 250, 28, 15, 28, 28, 49, 49, 27, - 28, 30, 30, 259, 30, 30, 30, 42, 27, 51, - 31, 31, 259, 15, 31, 31, 31, 15, 15, 15, - 15, 15, 15, 15, 15, 15, 15, 15, 15, 33, - 33, 62, 39, 62, 62, 33, 33, 33, 62, 250, - - 15, 25, 25, 25, 25, 25, 25, 25, 25, 25, - 25, 25, 25, 25, 25, 25, 25, 42, 82, 82, - 32, 25, 25, 25, 25, 29, 29, 29, 29, 29, - 32, 32, 34, 34, 59, 32, 32, 32, 667, 34, - 34, 34, 29, 32, 25, 25, 25, 35, 35, 36, - 36, 37, 37, 43, 48, 35, 35, 35, 36, 36, - 36, 37, 37, 54, 48, 123, 48, 43, 43, 43, - 43, 48, 25, 25, 26, 61, 379, 26, 26, 26, - 26, 26, 46, 318, 59, 318, 54, 46, 79, 79, - 79, 79, 46, 74, 46, 46, 123, 64, 64, 46, - - 64, 64, 64, 26, 376, 74, 376, 26, 26, 26, - 26, 26, 26, 26, 26, 26, 26, 26, 26, 663, - 61, 89, 89, 43, 63, 63, 63, 63, 63, 61, - 26, 47, 47, 47, 379, 74, 223, 139, 47, 662, - 84, 63, 223, 47, 47, 47, 47, 47, 47, 47, - 47, 93, 93, 93, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 96, 96, 96, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - - 47, 50, 84, 656, 50, 144, 50, 139, 50, 50, - 50, 50, 50, 50, 65, 65, 50, 144, 65, 65, - 65, 67, 67, 68, 68, 146, 152, 67, 67, 67, - 68, 68, 68, 146, 146, 50, 341, 146, 152, 50, - 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, - 50, 69, 69, 148, 71, 71, 153, 153, 341, 69, - 69, 69, 50, 60, 71, 71, 66, 148, 60, 70, - 70, 60, 60, 60, 60, 60, 66, 66, 70, 70, - 70, 66, 66, 66, 72, 233, 73, 75, 88, 66, - 88, 73, 184, 184, 316, 88, 72, 60, 73, 75, - - 602, 60, 60, 60, 60, 60, 60, 60, 60, 60, - 60, 60, 60, 76, 263, 147, 233, 77, 76, 185, - 185, 655, 72, 147, 60, 161, 263, 147, 77, 342, - 76, 77, 77, 77, 77, 186, 186, 161, 73, 83, - 94, 94, 94, 98, 75, 320, 83, 83, 83, 83, - 83, 342, 94, 98, 94, 98, 316, 161, 602, 94, - 98, 187, 187, 76, 108, 108, 108, 108, 110, 110, - 110, 110, 111, 111, 111, 111, 131, 131, 131, 131, - 120, 120, 120, 120, 162, 188, 188, 77, 87, 149, - 87, 87, 87, 87, 87, 87, 162, 149, 110, 265, - - 265, 149, 157, 157, 157, 157, 111, 320, 177, 115, - 115, 115, 115, 118, 118, 118, 118, 87, 120, 431, - 177, 87, 87, 87, 87, 87, 87, 87, 87, 87, - 87, 87, 87, 132, 132, 132, 132, 133, 133, 133, - 133, 431, 162, 235, 87, 104, 104, 104, 104, 104, - 104, 104, 104, 104, 104, 104, 104, 106, 115, 141, - 616, 118, 227, 132, 106, 177, 163, 163, 163, 163, - 180, 133, 160, 141, 141, 141, 141, 141, 158, 158, - 158, 158, 180, 235, 160, 227, 106, 298, 298, 653, - 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, - - 106, 106, 209, 159, 159, 159, 159, 227, 158, 501, - 160, 165, 209, 106, 109, 163, 109, 616, 285, 209, - 285, 109, 109, 165, 501, 109, 180, 385, 109, 141, - 285, 178, 166, 166, 166, 166, 109, 159, 109, 385, - 165, 299, 299, 178, 109, 109, 210, 210, 210, 210, - 109, 168, 168, 168, 168, 109, 122, 122, 122, 122, - 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, - 122, 122, 167, 179, 181, 385, 122, 122, 122, 122, - 166, 651, 174, 178, 167, 179, 181, 182, 649, 168, - 174, 174, 174, 174, 174, 194, 175, 267, 182, 122, - - 122, 122, 194, 176, 175, 175, 175, 175, 175, 275, - 167, 176, 176, 176, 176, 176, 211, 211, 211, 211, - 181, 275, 300, 300, 194, 179, 643, 122, 122, 124, - 124, 124, 124, 124, 175, 124, 124, 124, 124, 124, - 124, 214, 442, 124, 124, 176, 669, 267, 214, 124, - 124, 194, 124, 189, 189, 442, 267, 182, 190, 190, - 189, 189, 189, 189, 189, 190, 190, 190, 190, 275, - 214, 340, 124, 124, 212, 212, 212, 212, 215, 215, - 215, 215, 216, 216, 216, 216, 224, 224, 224, 224, - 257, 301, 301, 302, 302, 257, 257, 214, 303, 303, - - 124, 124, 126, 126, 126, 126, 126, 126, 126, 126, - 126, 126, 126, 126, 127, 127, 669, 389, 224, 127, - 348, 642, 127, 127, 127, 127, 127, 340, 127, 389, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, - 127, 127, 127, 127, 127, 127, 127, 127, 127, 641, - 350, 348, 127, 127, 127, 127, 127, 127, 127, 127, - 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, - 127, 127, 127, 127, 127, 127, 127, 129, 129, 129, - 129, 129, 129, 129, 129, 129, 129, 129, 129, 130, - 350, 225, 225, 225, 225, 360, 130, 130, 130, 130, - - 402, 402, 130, 526, 130, 130, 130, 130, 130, 130, - 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, - 130, 130, 130, 225, 232, 232, 232, 232, 244, 279, - 130, 150, 150, 150, 244, 244, 244, 244, 150, 322, - 261, 279, 360, 150, 150, 261, 150, 150, 150, 150, - 150, 526, 261, 322, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 232, 349, 279, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - - 150, 154, 637, 195, 634, 349, 195, 195, 195, 195, - 195, 245, 256, 154, 234, 234, 234, 234, 245, 245, - 245, 245, 633, 364, 245, 268, 256, 256, 256, 256, - 404, 404, 195, 268, 268, 268, 268, 268, 628, 154, - 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, - 154, 155, 245, 405, 405, 246, 262, 234, 155, 195, - 277, 262, 246, 246, 246, 246, 264, 271, 246, 278, - 364, 264, 277, 262, 278, 271, 271, 271, 271, 271, - 155, 278, 256, 264, 155, 155, 155, 155, 155, 155, - 155, 155, 155, 155, 155, 155, 246, 310, 310, 310, - - 310, 428, 277, 331, 331, 331, 331, 155, 169, 169, - 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, - 170, 170, 627, 398, 428, 170, 406, 406, 170, 170, - 170, 170, 170, 626, 170, 398, 170, 170, 170, 170, - 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, - 170, 170, 170, 170, 170, 351, 351, 351, 170, 170, - 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, - 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, - 170, 170, 170, 172, 172, 172, 172, 172, 172, 172, - 172, 172, 172, 172, 172, 173, 173, 443, 351, 437, - - 173, 407, 407, 173, 173, 173, 173, 173, 625, 173, - 443, 173, 173, 173, 173, 173, 173, 173, 173, 173, - 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, - 437, 447, 378, 173, 173, 173, 173, 173, 173, 173, - 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, - 173, 173, 173, 173, 173, 173, 173, 173, 213, 213, - 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, - 217, 354, 354, 354, 354, 273, 378, 217, 447, 217, - 274, 291, 292, 273, 273, 273, 273, 273, 274, 274, - 274, 274, 274, 291, 292, 355, 355, 355, 355, 217, - - 474, 474, 423, 217, 217, 217, 217, 217, 217, 217, - 217, 217, 217, 217, 217, 273, 423, 423, 408, 408, - 274, 291, 292, 408, 476, 476, 217, 236, 236, 236, - 236, 236, 512, 236, 236, 236, 236, 236, 236, 276, - 280, 236, 236, 289, 276, 289, 512, 236, 236, 281, - 236, 294, 280, 380, 622, 289, 276, 281, 281, 281, - 281, 281, 276, 294, 287, 380, 287, 380, 295, 358, - 236, 236, 287, 287, 287, 287, 287, 460, 293, 295, - 377, 290, 358, 293, 276, 621, 400, 290, 377, 280, - 293, 584, 377, 290, 305, 305, 361, 400, 236, 236, - - 237, 305, 305, 305, 305, 459, 281, 329, 294, 361, - 358, 477, 477, 237, 329, 237, 237, 237, 237, 237, - 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, - 237, 237, 237, 237, 290, 563, 329, 361, 295, 460, - 584, 237, 239, 239, 239, 239, 239, 239, 239, 239, - 239, 239, 239, 239, 247, 454, 400, 454, 619, 311, - 618, 459, 454, 329, 538, 538, 311, 247, 311, 247, - 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, - 247, 247, 247, 247, 247, 247, 247, 247, 311, 321, - 572, 362, 325, 321, 614, 247, 269, 399, 563, 325, - - 321, 325, 357, 357, 362, 381, 386, 357, 269, 399, - 357, 357, 357, 357, 371, 311, 357, 381, 386, 381, - 444, 325, 527, 615, 371, 613, 371, 410, 410, 410, - 410, 371, 362, 444, 269, 269, 269, 269, 269, 269, - 269, 269, 269, 269, 269, 269, 272, 372, 325, 399, - 392, 321, 572, 272, 386, 272, 387, 372, 384, 372, - 418, 387, 392, 480, 372, 390, 384, 384, 384, 384, - 384, 612, 418, 387, 527, 272, 480, 390, 615, 272, + 127, 127, 628, 182, 364, 281, 127, 127, 127, 127, + 216, 216, 216, 216, 217, 217, 217, 217, 217, 217, + 217, 217, 217, 217, 301, 219, 285, 470, 437, 127, + 127, 127, 219, 440, 234, 234, 234, 234, 285, 226, + 226, 226, 226, 227, 227, 227, 227, 236, 236, 236, + 236, 364, 437, 369, 219, 440, 627, 127, 127, 129, + 129, 129, 129, 129, 300, 129, 129, 129, 129, 129, + 129, 226, 285, 129, 129, 227, 300, 259, 247, 129, + 129, 219, 129, 234, 247, 247, 247, 247, 248, 470, + + 236, 259, 259, 259, 259, 248, 248, 248, 248, 265, + 369, 248, 129, 129, 265, 249, 267, 295, 283, 295, + 286, 267, 249, 249, 249, 249, 265, 625, 249, 295, + 283, 300, 286, 267, 303, 303, 303, 303, 624, 248, + 129, 129, 131, 131, 131, 131, 131, 131, 131, 131, + 131, 131, 131, 131, 132, 132, 249, 259, 132, 132, + 283, 620, 132, 132, 132, 132, 132, 619, 132, 286, + 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, 132, 468, + 468, 468, 132, 132, 132, 132, 132, 132, 132, 132, + + 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 134, 134, 134, + 134, 134, 134, 134, 134, 134, 134, 134, 134, 135, + 308, 308, 308, 308, 636, 636, 135, 135, 135, 135, + 618, 583, 135, 617, 135, 135, 135, 135, 135, 135, + 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, + 135, 135, 135, 284, 297, 298, 583, 397, 284, 299, + 135, 155, 155, 155, 299, 284, 297, 298, 155, 397, + 406, 299, 155, 155, 155, 271, 155, 155, 155, 155, + 155, 274, 406, 271, 271, 271, 271, 271, 275, 274, + + 274, 274, 274, 274, 297, 298, 275, 275, 275, 275, + 275, 276, 276, 276, 276, 276, 276, 276, 276, 276, + 276, 279, 324, 324, 324, 324, 705, 705, 155, 279, + 279, 279, 279, 279, 155, 155, 155, 155, 155, 155, + 155, 159, 323, 336, 336, 336, 336, 600, 287, 323, + 282, 621, 615, 159, 280, 282, 287, 287, 287, 287, + 287, 279, 280, 280, 280, 280, 280, 282, 614, 600, + 469, 323, 670, 282, 359, 359, 359, 359, 522, 159, + 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, + 159, 160, 522, 319, 280, 282, 160, 319, 323, 160, + + 160, 160, 160, 160, 319, 287, 621, 160, 160, 160, + 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, + 160, 160, 160, 160, 160, 160, 469, 670, 458, 160, + 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, + 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, + 160, 160, 160, 160, 162, 319, 393, 162, 162, 162, + 162, 162, 293, 327, 293, 606, 327, 432, 393, 327, + 293, 293, 293, 293, 293, 458, 327, 360, 360, 360, + 360, 432, 432, 162, 534, 534, 534, 162, 162, 162, + 162, 162, 162, 162, 162, 162, 162, 162, 162, 414, + + 414, 414, 414, 601, 393, 486, 486, 486, 486, 605, + 162, 175, 175, 175, 175, 175, 175, 175, 175, 175, + 175, 175, 175, 176, 176, 601, 422, 176, 176, 599, + 675, 176, 176, 176, 176, 176, 597, 176, 422, 176, + 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, + 176, 176, 176, 176, 176, 176, 176, 176, 447, 447, + 447, 176, 176, 176, 176, 176, 176, 176, 176, 176, + 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, + 176, 176, 176, 176, 176, 176, 178, 178, 178, 178, + 178, 178, 178, 178, 178, 178, 178, 178, 179, 179, + + 675, 447, 408, 179, 596, 676, 179, 179, 179, 179, + 179, 569, 179, 408, 179, 179, 179, 179, 179, 179, + 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, + 179, 179, 179, 450, 450, 450, 179, 179, 179, 179, + 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, + 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, + 179, 212, 212, 212, 212, 212, 212, 212, 212, 212, + 212, 464, 408, 464, 569, 676, 450, 438, 464, 595, + 578, 706, 706, 212, 212, 212, 212, 212, 212, 212, + 212, 212, 212, 212, 212, 213, 213, 213, 213, 213, + + 213, 213, 213, 213, 213, 546, 438, 589, 608, 707, + 707, 546, 546, 546, 546, 438, 535, 213, 213, 213, + 213, 213, 213, 213, 213, 213, 213, 213, 213, 218, + 218, 438, 482, 218, 218, 588, 218, 218, 218, 218, + 218, 218, 578, 218, 482, 218, 218, 218, 218, 218, + 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + 218, 218, 218, 218, 535, 591, 608, 218, 218, 218, + 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + 218, 218, 238, 238, 238, 238, 238, 394, 238, 238, + + 238, 238, 238, 238, 296, 328, 238, 238, 328, 394, + 296, 328, 238, 238, 332, 238, 296, 591, 328, 361, + 361, 332, 590, 361, 361, 398, 361, 361, 361, 361, + 361, 362, 374, 361, 362, 238, 238, 398, 365, 710, + 710, 365, 376, 332, 362, 394, 374, 374, 374, 374, + 377, 365, 376, 398, 376, 483, 390, 296, 390, 376, + 377, 382, 377, 238, 238, 239, 483, 377, 390, 382, + 332, 590, 362, 382, 607, 664, 635, 603, 239, 365, + 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, + 239, 239, 239, 239, 239, 239, 239, 239, 239, 603, + + 723, 723, 374, 587, 610, 511, 239, 242, 242, 242, + 242, 242, 242, 242, 242, 242, 242, 242, 242, 250, + 511, 404, 250, 404, 635, 483, 607, 664, 525, 525, + 525, 610, 250, 404, 250, 250, 250, 250, 250, 250, + 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, + 250, 250, 250, 610, 392, 400, 401, 471, 581, 471, + 250, 272, 392, 392, 392, 392, 392, 400, 401, 471, + 395, 525, 581, 272, 611, 395, 462, 272, 272, 272, + 272, 272, 272, 272, 272, 272, 272, 395, 462, 585, + 622, 584, 658, 644, 582, 644, 611, 400, 401, 272, + 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, - 272, 369, 392, 577, 390, 562, 562, 391, 393, 396, - - 495, 396, 272, 282, 282, 369, 369, 369, 369, 391, - 393, 396, 387, 495, 585, 282, 594, 282, 577, 282, - 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, - 282, 282, 282, 282, 282, 282, 282, 282, 594, 611, - 393, 391, 458, 458, 458, 282, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 288, 473, - 470, 369, 470, 525, 525, 525, 585, 609, 473, 630, - 630, 288, 470, 288, 288, 288, 288, 288, 288, 288, + 272, 277, 277, 543, 658, 277, 277, 644, 277, 277, + 277, 277, 277, 277, 543, 277, 395, 277, 277, 277, + 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, + 277, 277, 277, 277, 277, 277, 462, 622, 677, 277, + 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, + 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, + 277, 277, 277, 277, 288, 288, 411, 580, 692, 411, + 579, 577, 411, 543, 576, 567, 288, 566, 288, 411, 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, - 288, 288, 438, 438, 438, 700, 700, 629, 608, 288, - - 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, - 328, 328, 382, 382, 382, 382, 382, 382, 382, 382, - 382, 382, 382, 382, 388, 664, 701, 701, 575, 394, - 429, 441, 441, 441, 600, 438, 388, 394, 394, 394, - 394, 394, 575, 395, 395, 629, 452, 388, 395, 463, - 397, 395, 395, 395, 395, 395, 397, 395, 452, 429, - 462, 463, 397, 466, 599, 462, 464, 465, 429, 388, - 471, 464, 496, 469, 441, 466, 463, 462, 469, 465, - 664, 472, 471, 464, 429, 496, 528, 465, 528, 467, - 469, 595, 472, 500, 468, 601, 597, 567, 528, 463, - - 644, 467, 566, 397, 420, 466, 468, 500, 500, 567, - 515, 515, 515, 595, 566, 593, 452, 420, 597, 420, - 420, 420, 420, 420, 420, 420, 420, 420, 420, 420, - 420, 420, 420, 420, 420, 420, 420, 420, 461, 461, - 467, 702, 702, 566, 468, 705, 705, 601, 591, 644, - 461, 472, 461, 515, 461, 461, 461, 461, 461, 461, - 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, - 461, 461, 461, 479, 479, 520, 529, 590, 604, 589, - 479, 479, 479, 479, 530, 531, 532, 533, 529, 520, - 520, 520, 520, 534, 565, 583, 530, 531, 532, 533, - - 539, 539, 559, 582, 534, 604, 565, 539, 539, 539, - 539, 568, 564, 605, 529, 530, 559, 559, 559, 559, - 569, 606, 587, 568, 564, 533, 617, 604, 532, 588, - 610, 569, 631, 606, 587, 605, 610, 607, 620, 623, - 588, 531, 532, 564, 623, 520, 635, 624, 607, 620, - 565, 639, 610, 636, 617, 648, 652, 635, 610, 661, - 631, 623, 581, 534, 587, 632, 648, 636, 568, 624, - 661, 639, 559, 639, 658, 624, 617, 670, 652, 671, - 668, 579, 631, 721, 721, 578, 638, 632, 638, 645, - 569, 580, 580, 632, 580, 580, 580, 580, 580, 588, - - 580, 580, 580, 580, 646, 580, 580, 607, 620, 632, - 638, 580, 580, 580, 580, 632, 635, 645, 686, 576, - 666, 580, 645, 574, 573, 648, 658, 659, 668, 661, - 665, 666, 646, 660, 580, 580, 580, 571, 570, 645, - 672, 673, 561, 580, 560, 674, 558, 670, 675, 671, - 556, 672, 673, 659, 646, 659, 674, 555, 665, 675, - 646, 660, 580, 580, 586, 586, 554, 586, 586, 586, - 586, 586, 586, 586, 586, 586, 586, 659, 586, 586, - 665, 660, 553, 660, 586, 586, 586, 586, 686, 552, - 666, 676, 677, 678, 586, 679, 551, 550, 549, 548, - - 547, 680, 676, 677, 678, 545, 679, 586, 586, 586, - 672, 673, 680, 681, 682, 674, 586, 683, 675, 544, - 684, 685, 542, 541, 681, 682, 540, 537, 683, 536, - 524, 684, 685, 523, 522, 586, 586, 596, 596, 521, - 596, 596, 596, 596, 596, 519, 596, 596, 596, 596, - 517, 596, 596, 513, 511, 510, 509, 596, 596, 596, - 596, 676, 677, 678, 508, 679, 507, 596, 506, 505, - 504, 680, 502, 499, 498, 497, 494, 493, 492, 491, - 596, 596, 596, 681, 682, 490, 489, 683, 488, 596, - 684, 685, 487, 486, 485, 484, 483, 482, 481, 475, - - 457, 456, 455, 453, 451, 449, 446, 445, 596, 596, - 603, 603, 440, 603, 603, 603, 603, 603, 603, 603, - 603, 603, 603, 436, 603, 603, 435, 434, 433, 432, - 603, 603, 603, 603, 430, 427, 426, 425, 424, 422, - 603, 421, 417, 416, 415, 414, 413, 412, 411, 409, - 403, 401, 383, 603, 603, 603, 375, 374, 373, 370, - 368, 366, 603, 363, 359, 353, 352, 347, 346, 345, - 344, 339, 338, 337, 336, 335, 334, 333, 332, 327, - 326, 603, 603, 690, 324, 319, 317, 690, 690, 315, - 314, 690, 690, 690, 690, 690, 690, 690, 690, 691, - - 691, 691, 691, 691, 313, 691, 691, 691, 691, 691, - 691, 691, 691, 691, 691, 691, 691, 691, 692, 692, - 312, 309, 308, 692, 692, 692, 693, 693, 693, 693, - 693, 693, 693, 693, 693, 693, 693, 693, 693, 693, - 693, 693, 693, 693, 693, 694, 694, 694, 694, 694, - 694, 694, 694, 694, 694, 694, 694, 694, 694, 694, - 694, 694, 694, 694, 695, 695, 695, 695, 695, 695, - 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, - 695, 695, 695, 696, 307, 306, 296, 696, 696, 696, - 286, 696, 696, 696, 696, 696, 696, 696, 696, 697, - - 697, 697, 697, 697, 284, 697, 697, 697, 697, 697, - 697, 697, 697, 697, 697, 697, 697, 697, 698, 698, - 698, 698, 698, 698, 698, 698, 698, 698, 698, 698, - 698, 698, 698, 698, 698, 698, 698, 699, 699, 270, - 266, 260, 258, 254, 253, 252, 251, 699, 249, 248, - 699, 699, 243, 699, 703, 703, 703, 703, 703, 703, - 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, - 703, 703, 703, 704, 704, 704, 704, 704, 704, 704, - 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, - 704, 704, 706, 706, 706, 706, 706, 706, 706, 706, - - 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, - 706, 707, 707, 707, 707, 707, 707, 707, 707, 707, - 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, - 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + + 288, 288, 288, 288, 288, 288, 288, 288, 288, 396, + 473, 564, 562, 561, 642, 473, 288, 289, 677, 405, + 424, 396, 407, 424, 399, 405, 424, 473, 642, 289, + 402, 405, 396, 424, 407, 477, 399, 510, 402, 402, + 402, 402, 402, 560, 559, 558, 557, 477, 692, 629, + 556, 510, 510, 629, 396, 289, 289, 289, 289, 289, + 289, 289, 289, 289, 289, 289, 289, 294, 399, 479, + 294, 629, 405, 555, 407, 554, 553, 477, 551, 550, + 294, 479, 294, 294, 294, 294, 294, 294, 294, 294, + 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + + 294, 451, 549, 548, 451, 538, 475, 451, 294, 309, + 575, 475, 309, 309, 451, 309, 547, 538, 545, 479, + 309, 575, 309, 475, 309, 309, 309, 309, 309, 309, + 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, + 309, 309, 309, 538, 533, 532, 309, 309, 309, 309, + 309, 309, 309, 309, 309, 309, 309, 309, 452, 454, + 650, 452, 454, 478, 452, 454, 481, 573, 481, 309, + 322, 452, 454, 322, 531, 478, 322, 530, 481, 573, + 575, 528, 527, 322, 630, 322, 322, 322, 322, 322, + 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, + + 322, 322, 322, 322, 326, 455, 630, 326, 455, 650, + 326, 455, 630, 674, 478, 523, 521, 326, 455, 326, + 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, + 326, 326, 326, 326, 326, 326, 326, 326, 330, 330, + 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, + 385, 488, 520, 385, 488, 519, 385, 488, 518, 517, + 516, 674, 515, 385, 488, 385, 385, 385, 385, 385, + 385, 385, 385, 385, 385, 385, 385, 385, 385, 385, + 385, 385, 385, 385, 476, 480, 514, 537, 540, 537, + 480, 385, 387, 512, 612, 387, 476, 509, 387, 537, + + 540, 508, 480, 507, 476, 387, 612, 387, 387, 387, + 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, + 387, 387, 387, 387, 387, 387, 388, 388, 388, 388, + 388, 388, 388, 388, 388, 388, 388, 388, 403, 403, + 645, 506, 403, 403, 540, 403, 403, 403, 403, 403, + 403, 503, 403, 429, 503, 572, 429, 503, 505, 429, + 645, 502, 645, 501, 503, 500, 429, 572, 429, 429, + 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, + 429, 429, 429, 429, 429, 429, 429, 472, 594, 541, + 472, 499, 498, 472, 497, 496, 572, 495, 494, 594, + + 472, 541, 472, 472, 472, 472, 472, 472, 472, 472, + 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, + 472, 474, 529, 539, 623, 493, 492, 565, 542, 637, + 491, 541, 490, 474, 570, 539, 529, 529, 529, 529, + 542, 565, 565, 565, 565, 541, 570, 474, 571, 574, + 616, 593, 623, 613, 539, 638, 616, 637, 594, 651, + 571, 574, 626, 593, 613, 570, 542, 489, 487, 641, + 652, 474, 616, 626, 623, 654, 467, 638, 616, 637, + 641, 466, 465, 638, 667, 463, 654, 651, 461, 459, + 672, 651, 529, 593, 457, 667, 666, 565, 652, 638, + + 456, 672, 449, 671, 571, 638, 574, 586, 586, 651, + 586, 586, 586, 586, 586, 665, 586, 586, 586, 586, + 652, 586, 586, 613, 666, 445, 652, 586, 586, 586, + 586, 671, 626, 444, 443, 442, 678, 586, 679, 641, + 441, 665, 439, 665, 666, 654, 666, 678, 436, 679, + 586, 586, 586, 671, 667, 435, 680, 681, 682, 586, + 672, 683, 434, 684, 685, 665, 686, 680, 681, 682, + 433, 687, 683, 431, 684, 685, 430, 686, 586, 586, + 592, 592, 687, 592, 592, 592, 592, 592, 592, 592, + 592, 592, 592, 428, 592, 592, 688, 427, 426, 421, + + 592, 592, 592, 592, 420, 419, 678, 688, 679, 689, + 592, 690, 418, 417, 416, 415, 413, 412, 691, 409, + 689, 391, 690, 592, 592, 592, 680, 681, 682, 691, + 389, 683, 592, 684, 685, 380, 686, 379, 378, 375, + 373, 687, 371, 368, 367, 363, 358, 357, 352, 351, + 350, 592, 592, 602, 602, 349, 602, 602, 602, 602, + 602, 344, 602, 602, 602, 602, 688, 602, 602, 343, + 342, 341, 340, 602, 602, 602, 602, 339, 338, 689, + 337, 690, 335, 602, 334, 333, 331, 317, 691, 315, + 313, 312, 311, 310, 307, 306, 602, 602, 602, 305, + + 304, 302, 292, 290, 278, 602, 273, 269, 263, 261, + 257, 256, 255, 254, 252, 251, 246, 245, 244, 233, + 232, 231, 230, 228, 602, 602, 609, 609, 224, 609, + 609, 609, 609, 609, 609, 609, 609, 609, 609, 223, + 609, 609, 222, 221, 220, 207, 609, 609, 609, 609, + 206, 205, 204, 203, 201, 200, 609, 199, 198, 197, + 196, 192, 191, 189, 177, 174, 172, 170, 169, 609, + 609, 609, 164, 163, 161, 150, 148, 147, 609, 145, + 143, 142, 141, 140, 139, 126, 125, 124, 123, 122, + 121, 120, 118, 117, 116, 115, 114, 609, 609, 696, + + 105, 103, 696, 99, 95, 696, 94, 696, 696, 696, + 696, 696, 696, 696, 697, 697, 93, 89, 83, 56, + 697, 697, 698, 698, 698, 55, 698, 698, 698, 698, + 698, 698, 698, 698, 698, 698, 698, 698, 698, 699, + 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, + 699, 699, 699, 699, 699, 699, 699, 700, 700, 700, + 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, + 700, 700, 700, 700, 700, 701, 701, 701, 701, 701, + 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, + 701, 701, 701, 702, 47, 19, 702, 18, 15, 702, + + 702, 702, 702, 702, 702, 702, 702, 702, 703, 703, + 703, 10, 703, 703, 703, 703, 703, 703, 703, 703, + 703, 703, 703, 703, 703, 704, 704, 3, 0, 704, + 0, 0, 0, 0, 0, 704, 704, 704, 704, 0, + 704, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, - 709, 709, 709, 709, 709, 709, 709, 709, 710, 710, - 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, - 710, 710, 710, 710, 710, 710, 710, 711, 711, 711, + 709, 709, 709, 709, 709, 709, 709, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 712, 712, 712, 712, 712, - 711, 711, 711, 711, 711, 711, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, - 712, 712, 712, 712, 712, 713, 713, 242, 713, 713, - 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, - 713, 713, 713, 713, 714, 714, 241, 714, 714, 714, + 712, 712, 712, 713, 713, 713, 0, 713, 713, 713, + 0, 713, 713, 713, 713, 713, 713, 713, 713, 713, 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, - 714, 714, 714, 715, 231, 715, 230, 229, 228, 715, - 715, 715, 226, 222, 715, 716, 716, 716, 716, 716, + 714, 714, 714, 714, 714, 714, 714, 714, 715, 715, + 0, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 716, 716, 0, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, - 716, 716, 716, 716, 717, 717, 717, 717, 717, 717, + 716, 716, 716, 716, 717, 0, 0, 0, 717, 0, + 717, 717, 717, 0, 0, 717, 718, 718, 718, 718, - 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, - 717, 717, 717, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, - 718, 718, 719, 719, 719, 719, 719, 719, 719, 719, + 718, 718, 718, 718, 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, - 719, 720, 720, 720, 720, 720, 720, 720, 720, 722, - 221, 220, 219, 722, 218, 722, 722, 722, 722, 208, - 722, 723, 723, 723, 723, 723, 723, 723, 723, 723, - 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, - 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, - - 724, 724, 724, 724, 724, 724, 724, 724, 724, 725, + 719, 719, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 722, 722, + 722, 722, 722, 722, 722, 724, 0, 0, 0, 0, + 724, 0, 724, 724, 0, 724, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, - 725, 725, 725, 725, 725, 725, 725, 725, 726, 726, + + 725, 725, 725, 725, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, - 726, 726, 726, 726, 726, 726, 726, 727, 727, 727, + 726, 726, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, - 727, 727, 727, 727, 727, 727, 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, - 728, 728, 728, 728, 728, 729, 729, 729, 729, 729, - 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, - - 729, 729, 729, 729, 730, 730, 730, 730, 730, 730, + 728, 728, 728, 728, 728, 728, 728, 728, 729, 729, + 0, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 730, 730, 0, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, - 730, 730, 730, 731, 731, 731, 731, 731, 731, 731, - 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, - 731, 731, 732, 732, 732, 732, 732, 732, 732, 732, - 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, - 732, 733, 733, 207, 733, 733, 733, 733, 733, 733, - 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, - 734, 734, 206, 734, 734, 734, 734, 734, 734, 734, - 734, 734, 734, 734, 734, 734, 734, 734, 734, 735, + 730, 730, 730, 730, 731, 0, 0, 0, 731, 0, - 205, 735, 735, 204, 201, 735, 735, 735, 200, 199, - 735, 736, 736, 736, 736, 736, 736, 736, 736, 736, + 731, 731, 731, 0, 0, 731, 732, 732, 0, 0, + 732, 0, 0, 732, 732, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 735, 735, 735, 735, 735, 735, 735, 735, 735, + 735, 735, 735, 735, 735, 735, 735, 735, 735, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, - 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, - 737, 737, 737, 737, 737, 737, 737, 737, 737, 738, - 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, - 738, 738, 738, 738, 738, 738, 738, 738, 739, 739, - 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, - 739, 739, 739, 739, 739, 739, 739, 740, 740, 198, - 197, 740, 740, 196, 740, 740, 740, 740, 740, 740, + 736, 736, 736, 736, 736, 736, 736, 737, 737, 737, + 737, 0, 737, 737, 0, 737, 737, 737, 737, 737, - 740, 740, 740, 741, 192, 191, 183, 171, 164, 741, - 741, 741, 741, 156, 741, 742, 742, 742, 742, 742, - 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, - 742, 742, 742, 742, 743, 743, 743, 743, 743, 743, + 737, 737, 738, 738, 0, 0, 0, 0, 0, 738, + 738, 0, 738, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 741, + 741, 741, 741, 0, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 742, 742, 0, 0, 742, 0, + 0, 742, 742, 743, 743, 0, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, - 743, 743, 743, 744, 744, 145, 143, 744, 744, 744, + 743, 744, 744, 0, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 745, - 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, - 745, 745, 745, 745, 745, 745, 745, 745, 746, 746, + 745, 0, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 746, 746, 0, 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, - - 746, 746, 746, 746, 746, 746, 746, 747, 747, 747, + 746, 746, 746, 746, 746, 747, 747, 0, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, - 747, 747, 747, 747, 747, 747, 748, 748, 142, 748, + 747, 747, 747, 748, 748, 0, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, - 748, 748, 748, 748, 748, 749, 749, 140, 749, 749, - 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, - 749, 749, 749, 749, 750, 750, 138, 750, 750, 750, - 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, - 750, 750, 750, 751, 751, 137, 751, 751, 751, 751, - 751, 751, 751, 751, 751, 751, 751, 751, 751, 751, + 748, 749, 749, 0, 0, 749, 0, 0, 749, 749, + 749, 749, 749, 749, 749, 750, 750, 750, 750, 750, - 751, 751, 752, 752, 136, 752, 752, 752, 752, 752, + 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, + 750, 750, 750, 751, 751, 0, 0, 751, 0, 0, + 751, 751, 752, 752, 0, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, - 752, 753, 753, 135, 753, 753, 753, 753, 753, 753, - 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, - 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, - 754, 754, 754, 754, 754, 754, 754, 754, 754, 755, + 753, 753, 0, 753, 753, 753, 753, 753, 753, 753, + 753, 753, 753, 753, 753, 753, 753, 753, 754, 754, + 0, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 755, 755, 0, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, - 755, 755, 755, 755, 755, 755, 755, 755, 756, 756, - 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, - 756, 756, 756, 756, 756, 756, 756, 757, 134, 121, + 755, 755, 755, 755, 756, 756, 756, 756, 756, 756, - 119, 117, 116, 757, 757, 757, 757, 757, 757, 757, - 757, 757, 758, 758, 758, 758, 758, 758, 758, 758, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, - 758, 759, 759, 759, 759, 114, 759, 759, 759, 759, + 758, 758, 758, 758, 758, 758, 758, 758, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, - 760, 113, 112, 101, 99, 95, 760, 760, 760, 760, - 761, 761, 92, 761, 761, 761, 761, 761, 761, 761, - 761, 761, 761, 761, 761, 761, 761, 761, 761, 762, - 762, 91, 762, 762, 762, 762, 762, 762, 762, 762, - 762, 762, 762, 762, 762, 762, 762, 762, 763, 763, - - 90, 763, 763, 763, 763, 763, 763, 763, 763, 763, - 763, 763, 763, 763, 763, 763, 763, 764, 764, 86, - 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, - 764, 764, 764, 764, 764, 764, 765, 765, 765, 765, - 765, 765, 765, 765, 765, 765, 765, 765, 765, 765, - 765, 765, 765, 765, 765, 766, 766, 766, 766, 766, - 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, - 766, 766, 766, 766, 767, 767, 767, 767, 767, 767, - 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, - 767, 767, 767, 768, 768, 768, 768, 768, 768, 768, - - 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, - 768, 768, 81, 78, 58, 57, 55, 53, 52, 44, - 41, 40, 38, 23, 22, 20, 18, 17, 14, 9, - 3, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, - - 689, 689, 689, 689, 689 + 759, 759, 759, 759, 759, 759, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 695, 695, 695, 695, 695, 695, 695, 695, 695 } ; extern int yy_flex_debug; @@ -1641,177 +1644,177 @@ goto find_rule; \ char *yytext; #line 1 "parser.l" #line 8 "parser.l" -/* - * parser.l -- lex parser of algebraic chess moves for XBoard - * - * Copyright 1991 by Digital Equipment Corporation, Maynard, - * Massachusetts. - * - * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, - * 2006, 2007, 2008, 2009 Free Software Foundation, Inc. - * - * The following terms apply to Digital Equipment Corporation's copyright - * interest in XBoard: - * ------------------------------------------------------------------------ - * All Rights Reserved - * - * Permission to use, copy, modify, and distribute this software and its - * documentation for any purpose and without fee is hereby granted, - * provided that the above copyright notice appear in all copies and that - * both that copyright notice and this permission notice appear in - * supporting documentation, and that the name of Digital not be - * used in advertising or publicity pertaining to distribution of the - * software without specific, written prior permission. - * - * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING - * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL - * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR - * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, - * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, - * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS - * SOFTWARE. - * ------------------------------------------------------------------------ - * - * The following terms apply to the enhanced version of XBoard - * distributed by the Free Software Foundation: - * ------------------------------------------------------------------------ - * - * GNU XBoard 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 3 of the License, or (at - * your option) any later version. - * - * GNU XBoard 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, see http://www.gnu.org/licenses/. - * - *------------------------------------------------------------------------ - ** See the file ChangeLog for a revision history. */ - -/* This parser handles all forms of promotion. - * The parser resolves ambiguous moves by searching and check-testing. - * It also parses comments of the form [anything] or (anything). - * - * [HGM] Parser extensively modified for bigger boards, Shogi-like syntax, - * and unknow pieces. All pieces are now mandatory upper case, but can be - * any letter A-Z. Files must be lower case (as before), but can run upto 'l'. - * Ranks can be 0-9. The parser returns 0 for off-board files and ranks. - * For an unknown piece (as mover or promotion piece) it returns - * IllegalMove, like it does when the piece doesn't match. - * Promotions can now also be appended Shogi-style, a bare '=' or '+', - * and this is then returned as promotion character. The piece indicator - * can be prefixed by a '+' to indicate it is a promoted piece. - */ - -#include "config.h" - -#define NO_CONSTRAINT -1 -#undef YYLMAX -#define YYLMAX 4096 -#define UNPUT_BUF_SIZE YYLMAX - -#ifdef FLEX_SCANNER -/* yytext is probably a char*, but could be a char[]. yy_text is set - in YY_DECL below, because if yytext is a char*, its value is not - constant. */ -char *yy_text; -#else /*!FLEX_SCANNER*/ -/* yytext is definitely a char[], so yy_text can be set here, statically. */ -char *yy_text = (char *) yytext; -#endif - -#ifdef FLEX_SCANNER -/* This is flex */ -/* [AP] use prototypes in function declarations */ -#define YY_USE_PROTOS - -#ifdef YY_USE_PROTOS -#define YY_PROTO(proto) proto -#else -#define YY_PROTO(proto) () -#endif -/* end of [AP] fix */ - -#undef YY_INPUT -#define YY_INPUT(buf, result, max_size) my_yy_input(buf, &result, max_size) -#undef YY_DECL -#define YY_DECL \ - int _yylex YY_PROTO((void)); \ - int yylex YY_PROTO((void)) \ - { \ - int result = _yylex(); \ - yy_text = (char *) yytext; \ - return(result); \ - } \ - int _yylex YY_PROTO((void)) -#else -/* This is lex */ -#undef input -#undef output -#undef unput -#endif - -/* The includes must be here, below the #undef input */ - -#include - -#if STDC_HEADERS -# include -# include -#else /* not STDC_HEADERS */ -# if HAVE_STRING_H -# include -# else /* not HAVE_STRING_H */ -# include -# endif /* not HAVE_STRING_H */ -#endif /* not STDC_HEADERS */ - -#if HAVE_UNISTD_H -# include -#endif - -#if defined(_amigados) -# include -# if HAVE_FCNTL_H -# include /* isatty() prototype */ -# endif /* HAVE_FCNTL_H */ -#endif /* defined(_amigados) */ - -#include "common.h" -#include "backend.h" -#include "frontend.h" -#include "parser.h" -#include "moves.h" - -extern int PosFlags P((int)); - -extern Board boards[MAX_MOVES]; -int yyboardindex; -int yyskipmoves = FALSE; -char currentMoveString[YYLMAX]; -#ifndef FLEX_SCANNER -char unputBuffer[UNPUT_BUF_SIZE]; -int unputCount = 0; -#endif - -#ifdef FLEX_SCANNER -void my_yy_input P((char *buf, int *result, int max_size)); -#else /*!FLEX_SCANNER*/ -static int input P((void)); -static void output P((int ch)); -static void unput P((int ch)); -int yylook P((void)); -int yyback P((int *, int)); -#endif -#undef yywrap -int yywrap P((void)); -extern void CopyBoard P((Board to, Board from)); - -#line 1815 "parser.c" +/* + * parser.l -- lex parser of algebraic chess moves for XBoard + * + * Copyright 1991 by Digital Equipment Corporation, Maynard, + * Massachusetts. + * + * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, + * 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + * + * The following terms apply to Digital Equipment Corporation's copyright + * interest in XBoard: + * ------------------------------------------------------------------------ + * All Rights Reserved + * + * Permission to use, copy, modify, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, + * provided that the above copyright notice appear in all copies and that + * both that copyright notice and this permission notice appear in + * supporting documentation, and that the name of Digital not be + * used in advertising or publicity pertaining to distribution of the + * software without specific, written prior permission. + * + * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING + * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL + * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR + * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, + * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + * SOFTWARE. + * ------------------------------------------------------------------------ + * + * The following terms apply to the enhanced version of XBoard + * distributed by the Free Software Foundation: + * ------------------------------------------------------------------------ + * + * GNU XBoard 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 3 of the License, or (at + * your option) any later version. + * + * GNU XBoard 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, see http://www.gnu.org/licenses/. + * + *------------------------------------------------------------------------ + ** See the file ChangeLog for a revision history. */ + +/* This parser handles all forms of promotion. + * The parser resolves ambiguous moves by searching and check-testing. + * It also parses comments of the form [anything] or (anything). + * + * [HGM] Parser extensively modified for bigger boards, Shogi-like syntax, + * and unknow pieces. All pieces are now mandatory upper case, but can be + * any letter A-Z. Files must be lower case (as before), but can run upto 'l'. + * Ranks can be 0-9. The parser returns 0 for off-board files and ranks. + * For an unknown piece (as mover or promotion piece) it returns + * IllegalMove, like it does when the piece doesn't match. + * Promotions can now also be appended Shogi-style, a bare '=' or '+', + * and this is then returned as promotion character. The piece indicator + * can be prefixed by a '+' to indicate it is a promoted piece. + */ + +#include "config.h" + +#define NO_CONSTRAINT -1 +#undef YYLMAX +#define YYLMAX 4096 +#define UNPUT_BUF_SIZE YYLMAX + +#ifdef FLEX_SCANNER +/* yytext is probably a char*, but could be a char[]. yy_text is set + in YY_DECL below, because if yytext is a char*, its value is not + constant. */ +char *yy_text; +#else /*!FLEX_SCANNER*/ +/* yytext is definitely a char[], so yy_text can be set here, statically. */ +char *yy_text = (char *) yytext; +#endif + +#ifdef FLEX_SCANNER +/* This is flex */ +/* [AP] use prototypes in function declarations */ +#define YY_USE_PROTOS + +#ifdef YY_USE_PROTOS +#define YY_PROTO(proto) proto +#else +#define YY_PROTO(proto) () +#endif +/* end of [AP] fix */ + +#undef YY_INPUT +#define YY_INPUT(buf, result, max_size) my_yy_input(buf, &result, max_size) +#undef YY_DECL +#define YY_DECL \ + int _yylex YY_PROTO((void)); \ + int yylex YY_PROTO((void)) \ + { \ + int result = _yylex(); \ + yy_text = (char *) yytext; \ + return(result); \ + } \ + int _yylex YY_PROTO((void)) +#else +/* This is lex */ +#undef input +#undef output +#undef unput +#endif + +/* The includes must be here, below the #undef input */ + +#include + +#if STDC_HEADERS +# include +# include +#else /* not STDC_HEADERS */ +# if HAVE_STRING_H +# include +# else /* not HAVE_STRING_H */ +# include +# endif /* not HAVE_STRING_H */ +#endif /* not STDC_HEADERS */ + +#if HAVE_UNISTD_H +# include +#endif + +#if defined(_amigados) +# include +# if HAVE_FCNTL_H +# include /* isatty() prototype */ +# endif /* HAVE_FCNTL_H */ +#endif /* defined(_amigados) */ + +#include "common.h" +#include "backend.h" +#include "frontend.h" +#include "parser.h" +#include "moves.h" + +extern int PosFlags P((int)); + +extern Board boards[MAX_MOVES]; +int yyboardindex; +int yyskipmoves = FALSE; +char currentMoveString[YYLMAX]; +#ifndef FLEX_SCANNER +char unputBuffer[UNPUT_BUF_SIZE]; +int unputCount = 0; +#endif + +#ifdef FLEX_SCANNER +void my_yy_input P((char *buf, int *result, int max_size)); +#else /*!FLEX_SCANNER*/ +static int input P((void)); +static void output P((int ch)); +static void unput P((int ch)); +int yylook P((void)); +int yyback P((int *, int)); +#endif +#undef yywrap +int yywrap P((void)); +extern void CopyBoard P((Board to, Board from)); + +#line 1818 "parser.c" #define INITIAL 0 @@ -1829,6 +1832,35 @@ extern void CopyBoard P((Board to, Board from)); static int yy_init_globals (void ); +/* Accessor methods to globals. + These are made visible to non-reentrant scanners for convenience. */ + +int yylex_destroy (void ); + +int yyget_debug (void ); + +void yyset_debug (int debug_flag ); + +YY_EXTRA_TYPE yyget_extra (void ); + +void yyset_extra (YY_EXTRA_TYPE user_defined ); + +FILE *yyget_in (void ); + +void yyset_in (FILE * in_str ); + +FILE *yyget_out (void ); + +void yyset_out (FILE * out_str ); + +int yyget_leng (void ); + +char *yyget_text (void ); + +int yyget_lineno (void ); + +void yyset_lineno (int line_number ); + /* Macros after this point can all be overridden by user definitions in * section 1. */ @@ -1969,8 +2001,8 @@ YY_DECL #line 179 "parser.l" - -#line 1974 "parser.c" + +#line 2006 "parser.c" if ( !(yy_init) ) { @@ -2029,14 +2061,14 @@ yy_match: while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 690 ) + if ( yy_current_state >= 696 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; *(yy_state_ptr)++ = yy_current_state; ++yy_cp; } - while ( yy_base[yy_current_state] != 3832 ); + while ( yy_base[yy_current_state] != 3867 ); yy_find_action: yy_current_state = *--(yy_state_ptr); @@ -2086,902 +2118,962 @@ do_action: /* This label is used only to access EOF actions. */ case 1: YY_RULE_SETUP #line 181 "parser.l" -{ - /* - * Fully-qualified algebraic move, possibly with promotion - */ - int skip1 = 0, skip2 = 0, skip3 = 0, promoted = 0; - ChessSquare piece; - ChessMove result; - char c; - - if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ - - if (yytext[0] == '+') skip1 = skip3 = promoted = 1; /* [HGM] Shogi promoted */ - - /* remove the / */ - if (yytext[1+skip1] == '/') skip1++; - - /* remove the [xX:-] */ - if ((yytext[3+skip1] == 'x') || (yytext[3+skip1] == 'X') || - (yytext[3+skip1] == '-') || (yytext[3+skip1] == ':')) skip2 = 1; - - currentMoveString[0] = yytext[1+skip1]; - currentMoveString[1] = yytext[2+skip1]; - currentMoveString[2] = yytext[3+skip1+skip2]; - currentMoveString[3] = yytext[4+skip1+skip2]; - currentMoveString[4] = NULLCHAR; - - if (appData.debugMode) { - fprintf(debugFP, "Parser Qa1b2: yyleng=%d\n", - yyleng); - } - - if (yyleng-skip1-skip2 > 5) { char c; - if (yytext[yyleng-1] == ')') { - c = currentMoveString[4] = ToLower(yytext[yyleng-2]); - } else { - c = currentMoveString[4] = ToLower(yytext[yyleng-1]); - } - currentMoveString[5] = NULLCHAR; - if(c != '=' && c != '+' && CharToPiece(c) == EmptySquare) - return IllegalMove; /* [HGM] promotion to invalid piece */ - } - - if (appData.debugMode) { - fprintf(debugFP, "parser: %s\n", currentMoveString); - } - /* [HGM] do not allow values beyond board size */ - if(currentMoveString[1] - ONE >= BOARD_HEIGHT || - currentMoveString[1] - ONE < 0 || - currentMoveString[0] - AAA >= BOARD_RGHT || - currentMoveString[3] - ONE >= BOARD_HEIGHT || - currentMoveString[3] - ONE < 0 || - currentMoveString[2] - AAA >= BOARD_RGHT || - currentMoveString[0] - AAA < BOARD_LEFT || - currentMoveString[2] - AAA < BOARD_LEFT ) - return ImpossibleMove; - - piece = boards[yyboardindex] - [currentMoveString[1] - ONE][currentMoveString[0] - AAA]; - if(promoted) piece = (ChessSquare) (DEMOTED piece); - c = PieceToChar(piece); - if(c == '~') c = PieceToChar((ChessSquare) (DEMOTED piece)); - if (ToLower(yytext[skip3]) != ToLower(c)) - return (int) IllegalMove; - - result = LegalityTest(boards[yyboardindex], - PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: might think we can e.p.! - currentMoveString[1] - ONE, - currentMoveString[0] - AAA, - currentMoveString[3] - ONE, - currentMoveString[2] - AAA, - currentMoveString[4]); - - if (currentMoveString[4] == NULLCHAR && - (result == WhitePromotionKnight || result == BlackPromotionKnight || - result == WhitePromotionQueen || result == BlackPromotionQueen)) { - currentMoveString[4] = PieceToChar(BlackQueen); - currentMoveString[5] = NULLCHAR; - } - - return (int) result; -} +{ + /* + * Fully-qualified algebraic move, possibly with promotion + */ + int skip1 = 0, skip2 = 0, skip3 = 0, promoted = 0; + ChessSquare piece; + ChessMove result; + char c; + + if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ + + if (yytext[0] == '+') skip1 = skip3 = promoted = 1; /* [HGM] Shogi promoted */ + + /* remove the / */ + if (yytext[1+skip1] == '/') skip1++; + + /* remove the [xX:-] */ + if ((yytext[3+skip1] == 'x') || (yytext[3+skip1] == 'X') || + (yytext[3+skip1] == '-') || (yytext[3+skip1] == ':')) skip2 = 1; + + currentMoveString[0] = yytext[1+skip1]; + currentMoveString[1] = yytext[2+skip1]; + currentMoveString[2] = yytext[3+skip1+skip2]; + currentMoveString[3] = yytext[4+skip1+skip2]; + currentMoveString[4] = NULLCHAR; + + if (appData.debugMode) { + fprintf(debugFP, "Parser Qa1b2: yyleng=%d\n", + yyleng); + } + + if (yyleng-skip1-skip2 > 5) { char c; + if (yytext[yyleng-1] == ')') { + c = currentMoveString[4] = ToLower(yytext[yyleng-2]); + } else { + c = currentMoveString[4] = ToLower(yytext[yyleng-1]); + } + if(c == '+' && gameInfo.variant != VariantShogi) c = currentMoveString[4] = NULLCHAR; // + means check outside Shogi + currentMoveString[5] = NULLCHAR; + } + + if (appData.debugMode) { + fprintf(debugFP, "parser: %s\n", currentMoveString); + } + /* [HGM] do not allow values beyond board size */ + if(currentMoveString[1] - ONE >= BOARD_HEIGHT || + currentMoveString[1] - ONE < 0 || + currentMoveString[0] - AAA >= BOARD_RGHT || + currentMoveString[3] - ONE >= BOARD_HEIGHT || + currentMoveString[3] - ONE < 0 || + currentMoveString[2] - AAA >= BOARD_RGHT || + currentMoveString[0] - AAA < BOARD_LEFT || + currentMoveString[2] - AAA < BOARD_LEFT ) + return ImpossibleMove; + + piece = boards[yyboardindex] + [currentMoveString[1] - ONE][currentMoveString[0] - AAA]; + if(PieceToChar(piece) == '+' && appData.icsActive) promoted = 1, yytext[skip3] = PieceToChar(DEMOTED piece); // trust ICS + if(promoted) piece = (ChessSquare) (DEMOTED piece); + c = PieceToChar(piece); + if(c == '~') c = PieceToChar((ChessSquare) (DEMOTED piece)); + if (ToLower(yytext[skip3]) != ToLower(c)) + return (int) IllegalMove; + + result = LegalityTest(boards[yyboardindex], + PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: might think we can e.p.! + currentMoveString[1] - ONE, + currentMoveString[0] - AAA, + currentMoveString[3] - ONE, + currentMoveString[2] - AAA, + currentMoveString[4]); + + if (currentMoveString[4] == NULLCHAR) { + if(result == WhitePromotion || result == BlackPromotion) { + if(gameInfo.variant == VariantCourier || gameInfo.variant == VariantShatranj) + currentMoveString[4] = PieceToChar(BlackFerz); + else if(gameInfo.variant == VariantGreat) + currentMoveString[4] = PieceToChar(BlackMan); + else if(gameInfo.variant == VariantShogi) + currentMoveString[4] = '+'; + else + currentMoveString[4] = PieceToChar(BlackQueen); + } else if(result == WhiteNonPromotion || result == BlackNonPromotion) + currentMoveString[4] = '='; + currentMoveString[5] = NULLCHAR; + } + + return (int) result; +} YY_BREAK case 2: YY_RULE_SETUP -#line 263 "parser.l" -{ - /* - * Simple algebraic move, possibly with promotion - * [HGM] Engine moves are received in this format, with lower-case promoChar! - */ - int skip = 0; - ChessMove result; - - if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ - - /* remove the [xX:-] */ - if ((yytext[2] == 'x') || (yytext[2] == 'X') || - (yytext[2] == '-') || (yytext[2] == ':')) skip = 1; - - currentMoveString[0] = yytext[0]; - currentMoveString[1] = yytext[1]; - currentMoveString[2] = yytext[2+skip]; - currentMoveString[3] = yytext[3+skip]; - currentMoveString[4] = NULLCHAR; - - if (yyleng-skip > 4) { char c; - if (yytext[yyleng-1] == ')') { - c = currentMoveString[4] = ToLower(yytext[yyleng-2]); - } else { - c = currentMoveString[4] = ToLower(yytext[yyleng-1]); - } - currentMoveString[5] = NULLCHAR; - if(c != '=' && c != '+' && CharToPiece(c) == EmptySquare) - return IllegalMove; - } - - /* [HGM] do not allow values beyond board size */ - if(currentMoveString[1] - ONE >= BOARD_HEIGHT || - currentMoveString[1] - ONE < 0 || - currentMoveString[0] - AAA >= BOARD_RGHT || - currentMoveString[3] - ONE >= BOARD_HEIGHT || - currentMoveString[3] - ONE < 0 || - currentMoveString[2] - AAA >= BOARD_RGHT || - currentMoveString[0] - AAA < BOARD_LEFT || - currentMoveString[2] - AAA < BOARD_LEFT ) - return ImpossibleMove; - - result = LegalityTest(boards[yyboardindex], - PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: might think we can e.p.! - currentMoveString[1] - ONE, - currentMoveString[0] - AAA, - currentMoveString[3] - ONE, - currentMoveString[2] - AAA, - currentMoveString[4]); - +#line 271 "parser.l" +{ + /* + * Simple algebraic move, possibly with promotion + * [HGM] Engine moves are received in this format, with lower-case promoChar! + */ + int skip = 0; + ChessMove result; + + if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ + + /* remove the [xX:-] */ + if ((yytext[2] == 'x') || (yytext[2] == 'X') || + (yytext[2] == '-') || (yytext[2] == ':')) skip = 1; + + currentMoveString[0] = yytext[0]; + currentMoveString[1] = yytext[1]; + currentMoveString[2] = yytext[2+skip]; + currentMoveString[3] = yytext[3+skip]; + currentMoveString[4] = NULLCHAR; + + if (yyleng-skip > 4) { char c; + if (yytext[yyleng-1] == ')') { + c = currentMoveString[4] = ToLower(yytext[yyleng-2]); + } else { + c = currentMoveString[4] = ToLower(yytext[yyleng-1]); + } + if(c == '+' && gameInfo.variant != VariantShogi) currentMoveString[4] = NULLCHAR; // + means check outside Shogi + currentMoveString[5] = NULLCHAR; + } + + /* [HGM] do not allow values beyond board size */ + if(currentMoveString[1] - ONE >= BOARD_HEIGHT || + currentMoveString[1] - ONE < 0 || + currentMoveString[0] - AAA >= BOARD_RGHT || + currentMoveString[3] - ONE >= BOARD_HEIGHT || + currentMoveString[3] - ONE < 0 || + currentMoveString[2] - AAA >= BOARD_RGHT || + currentMoveString[0] - AAA < BOARD_LEFT || + currentMoveString[2] - AAA < BOARD_LEFT ) + return ImpossibleMove; + + result = LegalityTest(boards[yyboardindex], + PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: might think we can e.p.! + currentMoveString[1] - ONE, + currentMoveString[0] - AAA, + currentMoveString[3] - ONE, + currentMoveString[2] - AAA, + currentMoveString[4]); + if (currentMoveString[4] == NULLCHAR) { - if(result == WhitePromotionKnight || result == BlackPromotionKnight || - result == WhitePromotionQueen || result == BlackPromotionQueen) { + if(result == WhitePromotion || result == BlackPromotion) { if(gameInfo.variant == VariantShatranj || gameInfo.variant == VariantCourier || gameInfo.variant == VariantMakruk) currentMoveString[4] = PieceToChar(BlackFerz); else if(gameInfo.variant == VariantGreat) currentMoveString[4] = PieceToChar(BlackMan); + else if(gameInfo.variant == VariantShogi) + currentMoveString[4] = '+'; // Queen might not be defined in mini variants! else currentMoveString[4] = PieceToChar(BlackQueen); - currentMoveString[5] = NULLCHAR; - } - } else if(appData.testLegality && // strip off unnecessary and false promo characters - !(result == WhitePromotionQueen || result == BlackPromotionQueen || - result == WhiteNonPromotion || result == BlackNonPromotion)) currentMoveString[4] = NULLCHAR; + } else if(result == WhiteNonPromotion || result == BlackNonPromotion) + currentMoveString[4] = '='; + currentMoveString[5] = NULLCHAR; + } else if(appData.testLegality && gameInfo.variant != VariantSChess && // strip off unnecessary and false promo characters + !(result == WhitePromotion || result == BlackPromotion || + result == WhiteNonPromotion || result == BlackNonPromotion)) currentMoveString[4] = NULLCHAR; return (int) result; } YY_BREAK case 3: YY_RULE_SETUP -#line 331 "parser.l" -{ - /* - * Pawn move, possibly with promotion - */ - DisambiguateClosure cl; - int skip = 0; char c; - - if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ - - /* remove the =() */ - if (yytext[2] == '=' && yytext[3] != NULLCHAR) skip++; - if (yytext[2+skip] == '(') skip++; - - cl.pieceIn = WhiteOnMove(yyboardindex) ? WhitePawn : BlackPawn; - cl.rfIn = -1; - cl.ffIn = yytext[0] - AAA; - cl.rtIn = yytext[1] - ONE; - cl.ftIn = yytext[0] - AAA; - c = cl.promoCharIn = ToLower(yytext[2+skip]); - - /* [HGM] do not allow values beyond board size */ - if(cl.rtIn >= BOARD_HEIGHT || - cl.rtIn < 0 || - cl.ffIn >= BOARD_RGHT || - cl.ftIn < BOARD_LEFT ) - return ImpossibleMove; - - if(c != '=' && c != '+' && c != NULLCHAR && CharToPiece(c) == EmptySquare) - return IllegalMove; - - - Disambiguate(boards[yyboardindex], PosFlags(yyboardindex), &cl); - - currentMoveString[0] = cl.ff + AAA; - currentMoveString[1] = cl.rf + ONE; - currentMoveString[2] = cl.ft + AAA; - currentMoveString[3] = cl.rt + ONE; - currentMoveString[4] = cl.promoChar; - currentMoveString[5] = NULLCHAR; - - return (int) cl.kind; -} +#line 340 "parser.l" +{ + /* + * Simple algebraic move, in capitals + * [HGM] Some Xiangqi engines use this format ('ICCS notation'). So no promotions! + */ + int skip = 0; + ChessMove result; + + if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ + + /* remove the [xX:-] */ + if ((yytext[2] == 'x') || (yytext[2] == 'X') || + (yytext[2] == '-') || (yytext[2] == ':')) skip = 1; + + currentMoveString[0] = yytext[0]+32; + currentMoveString[1] = yytext[1]; + currentMoveString[2] = yytext[2+skip]+32; + currentMoveString[3] = yytext[3+skip]; + currentMoveString[4] = NULLCHAR; + + /* [HGM] do not allow values beyond board size */ + if(currentMoveString[1] - ONE >= BOARD_HEIGHT || + currentMoveString[1] - ONE < 0 || + currentMoveString[0] - AAA >= BOARD_RGHT || + currentMoveString[3] - ONE >= BOARD_HEIGHT || + currentMoveString[3] - ONE < 0 || + currentMoveString[2] - AAA >= BOARD_RGHT || + currentMoveString[0] - AAA < BOARD_LEFT || + currentMoveString[2] - AAA < BOARD_LEFT ) + return ImpossibleMove; + + result = LegalityTest(boards[yyboardindex], + PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: might think we can e.p.! + currentMoveString[1] - ONE, + currentMoveString[0] - AAA, + currentMoveString[3] - ONE, + currentMoveString[2] - AAA, + currentMoveString[4]); + + return (int) result; +} YY_BREAK case 4: YY_RULE_SETUP -#line 375 "parser.l" -{ - /* - * Pawn capture, possibly with promotion, possibly ambiguous - */ - DisambiguateClosure cl; - int skip1 = 0, skip2 = 0; char c; - - if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ - - /* remove trailing ep or e.p. (nonstandard PGN) */ - if (yytext[yyleng-1] == 'p') { - yyleng -= 2; - yytext[yyleng] = NULLCHAR; - } else if (yytext[yyleng-1] == '.') { - yyleng -= 4; - yytext[yyleng] = NULLCHAR; - } - - /* remove the [xX:-] and =() */ - if ((yytext[1] == 'x') || (yytext[1] == 'X') - || (yytext[1] == ':') || (yytext[1] == '-')) skip1 = 1; - if (yytext[2+skip1] == '=' && yytext[3+skip1] != NULLCHAR) skip2++; - if (yytext[2+skip1+skip2] == '(') skip2++; - - cl.pieceIn = WhiteOnMove(yyboardindex) ? WhitePawn : BlackPawn; - cl.rfIn = -1; - cl.ffIn = yytext[0] - AAA; - cl.rtIn = -1; - cl.ftIn = yytext[1+skip1] - AAA; - c = cl.promoCharIn = yytext[2+skip1+skip2]; - - /* [HGM] do not allow values beyond board size */ - if(cl.ffIn >= BOARD_RGHT || - cl.ffIn < BOARD_LEFT || - cl.ftIn >= BOARD_RGHT || - cl.ftIn < BOARD_LEFT ) - return ImpossibleMove; - - if(c != '=' && c != '+' && c != NULLCHAR && CharToPiece(c) == EmptySquare) - return IllegalMove; - - Disambiguate(boards[yyboardindex], PosFlags(yyboardindex), &cl); - - currentMoveString[0] = cl.ff + AAA; - currentMoveString[1] = cl.rf + ONE; - currentMoveString[2] = cl.ft + AAA; - currentMoveString[3] = cl.rt + ONE; - currentMoveString[4] = cl.promoChar; - currentMoveString[5] = NULLCHAR; - - return (int) cl.kind; -} +#line 382 "parser.l" +{ + /* + * Pawn move, possibly with promotion + */ + DisambiguateClosure cl; + int skip = 0; + + if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ + + /* remove the =() */ + if (yytext[2] == '=' && yytext[3] != NULLCHAR) skip++; + if (yytext[2+skip] == '(') skip++; + + cl.pieceIn = WhiteOnMove(yyboardindex) ? WhitePawn : BlackPawn; + cl.rfIn = -1; + cl.ffIn = yytext[0] - AAA; + cl.rtIn = yytext[1] - ONE; + cl.ftIn = yytext[0] - AAA; + cl.promoCharIn = ToLower(yytext[2+skip]); + if(cl.promoCharIn == '+' && gameInfo.variant != VariantShogi) cl.promoCharIn = NULLCHAR; // + means check outside Shogi + + /* [HGM] do not allow values beyond board size */ + if(cl.rtIn >= BOARD_HEIGHT || + cl.rtIn < 0 || + cl.ffIn >= BOARD_RGHT || + cl.ftIn < BOARD_LEFT ) + return ImpossibleMove; + + Disambiguate(boards[yyboardindex], PosFlags(yyboardindex), &cl); + + currentMoveString[0] = cl.ff + AAA; + currentMoveString[1] = cl.rf + ONE; + currentMoveString[2] = cl.ft + AAA; + currentMoveString[3] = cl.rt + ONE; + currentMoveString[4] = cl.promoChar; + currentMoveString[5] = NULLCHAR; + + return (int) cl.kind; +} YY_BREAK case 5: YY_RULE_SETUP -#line 428 "parser.l" -{ - /* - * unambiguously abbreviated Pawn capture, possibly with promotion - */ - int skip = 0; - ChessMove result; char c; - - if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ - - /* remove trailing ep or e.p. (nonstandard PGN) */ - if (yytext[yyleng-1] == 'p') { - yyleng -= 2; - yytext[yyleng] = NULLCHAR; - } else if (yytext[yyleng-1] == '.') { - yyleng -= 4; - yytext[yyleng] = NULLCHAR; - } - - /* remove the [xX:-] */ - if ((yytext[1] == 'x') || (yytext[1] == 'X') - || (yytext[1] == ':') || (yytext[1] == '-')) skip = 1; - - currentMoveString[0] = yytext[0]; - currentMoveString[2] = yytext[1+skip]; - currentMoveString[3] = yytext[2+skip]; - - /* [HGM] do not allow values beyond board size */ - if(currentMoveString[0] - AAA >= BOARD_RGHT || - currentMoveString[3] - ONE >= BOARD_HEIGHT || - currentMoveString[3] - ONE < 0 || - currentMoveString[2] - AAA >= BOARD_RGHT || - currentMoveString[0] - AAA < BOARD_LEFT || - currentMoveString[2] - AAA < BOARD_LEFT ) - return ImpossibleMove; - - if (gameInfo.variant == VariantXiangqi && /* [HGM] In Xiangqi rank stays same */ - currentMoveString[0] != currentMoveString[2] ) { - currentMoveString[1] = yytext[2+skip]; - } else - if (WhiteOnMove(yyboardindex)) { - if (yytext[2+skip] == ONE) return (int) ImpossibleMove; - currentMoveString[1] = yytext[2+skip] - 1; - if(boards[yyboardindex][currentMoveString[1]-ONE][currentMoveString[0]-AAA] != WhitePawn) - return ImpossibleMove; - } else { - currentMoveString[1] = currentMoveString[3] + 1; - if (currentMoveString[3] == ONE+BOARD_HEIGHT-1) return (int) ImpossibleMove; - if(boards[yyboardindex][currentMoveString[1]-ONE][currentMoveString[0]-AAA] != BlackPawn) - return ImpossibleMove; - } - if (yyleng-skip > 3) { - if (yytext[yyleng-1] == ')') - c = currentMoveString[4] = ToLower(yytext[yyleng-2]); - else - c = currentMoveString[4] = ToLower(yytext[yyleng-1]); - currentMoveString[5] = NULLCHAR; - if(c != '=' && c != '+' && CharToPiece(c) == EmptySquare) - return IllegalMove; - } else { - currentMoveString[4] = NULLCHAR; - } - - result = LegalityTest(boards[yyboardindex], - PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: might think we can e.p.! - currentMoveString[1] - ONE, - currentMoveString[0] - AAA, - currentMoveString[3] - ONE, - currentMoveString[2] - AAA, - currentMoveString[4]); - - if (currentMoveString[4] == NULLCHAR && - (result == WhitePromotionQueen || result == BlackPromotionQueen || - result == WhitePromotionKnight || result == BlackPromotionKnight)) { - currentMoveString[4] = PieceToChar(BlackQueen); - // [HGM] shatranj: take care of variants without Queen - if(gameInfo.variant == VariantShatranj || gameInfo.variant == VariantCourier || gameInfo.variant == VariantMakruk) - currentMoveString[4] = PieceToChar(BlackFerz); - if(gameInfo.variant == VariantGreat) - currentMoveString[4] = PieceToChar(BlackMan); - currentMoveString[5] = NULLCHAR; - } - - if (result != IllegalMove) return (int) result; - - /* Special case: improperly written en passant capture */ - if (WhiteOnMove(yyboardindex)) { - if (currentMoveString[3] == '5') { - currentMoveString[1] = '5'; - currentMoveString[3] = '6'; - } else { - return (int) IllegalMove; - } - } else { - if (currentMoveString[3] == '4') { - currentMoveString[1] = '4'; - currentMoveString[3] = '3'; - } else { - return (int) IllegalMove; - } - } - - result = LegalityTest(boards[yyboardindex], - PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: might think we can e.p.! - currentMoveString[1] - ONE, - currentMoveString[0] - AAA, - currentMoveString[3] - ONE, - currentMoveString[2] - AAA, - currentMoveString[4]); - - if (result == WhiteCapturesEnPassant || result == BlackCapturesEnPassant) - return (int) result; - else - return (int) IllegalMove; -} +#line 423 "parser.l" +{ + /* + * Pawn capture, possibly with promotion, possibly ambiguous + */ + DisambiguateClosure cl; + int skip1 = 0, skip2 = 0; + + if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ + + /* remove trailing ep or e.p. (nonstandard PGN) */ + if (yytext[yyleng-1] == 'p') { + yyleng -= 2; + yytext[yyleng] = NULLCHAR; + } else if (yytext[yyleng-1] == '.') { + yyleng -= 4; + yytext[yyleng] = NULLCHAR; + } + + /* remove the [xX:-] and =() */ + if ((yytext[1] == 'x') || (yytext[1] == 'X') + || (yytext[1] == ':') || (yytext[1] == '-')) skip1 = 1; + if (yytext[2+skip1] == '=' && yytext[3+skip1] != NULLCHAR) skip2++; + if (yytext[2+skip1+skip2] == '(') skip2++; + + cl.pieceIn = WhiteOnMove(yyboardindex) ? WhitePawn : BlackPawn; + cl.rfIn = -1; + cl.ffIn = yytext[0] - AAA; + cl.rtIn = -1; + cl.ftIn = yytext[1+skip1] - AAA; + cl.promoCharIn = yytext[2+skip1+skip2]; + if(cl.promoCharIn == '+' && gameInfo.variant != VariantShogi) cl.promoCharIn = NULLCHAR; // + means check outside Shogi + + /* [HGM] do not allow values beyond board size */ + if(cl.ffIn >= BOARD_RGHT || + cl.ffIn < BOARD_LEFT || + cl.ftIn >= BOARD_RGHT || + cl.ftIn < BOARD_LEFT ) + return ImpossibleMove; + + Disambiguate(boards[yyboardindex], PosFlags(yyboardindex), &cl); + + currentMoveString[0] = cl.ff + AAA; + currentMoveString[1] = cl.rf + ONE; + currentMoveString[2] = cl.ft + AAA; + currentMoveString[3] = cl.rt + ONE; + currentMoveString[4] = cl.promoChar; + currentMoveString[5] = NULLCHAR; + + return (int) cl.kind; +} YY_BREAK case 6: YY_RULE_SETUP -#line 543 "parser.l" -{ - /* - * piece move, possibly ambiguous - */ - DisambiguateClosure cl; - int skip = 0, skip2 = 0, promoted = 0; - - if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ - - if(yytext[0] == '+') promoted = skip = skip2 = 1; - - /* remove the [xX:-] */ - if ((yytext[1+skip] == 'x') || (yytext[1+skip] == 'X') - || (yytext[1+skip] == ':') || (yytext[1+skip] == '-')) skip++; - - if (WhiteOnMove(yyboardindex)) { - cl.pieceIn = CharToPiece(ToUpper(yytext[skip2])); - } else { - cl.pieceIn = CharToPiece(ToLower(yytext[skip2])); - } - if(promoted) cl.pieceIn = (ChessSquare) (PROMOTED cl.pieceIn); - - cl.rfIn = -1; - cl.ffIn = -1; - cl.rtIn = yytext[2+skip] - ONE; - cl.ftIn = yytext[1+skip] - AAA; - cl.promoCharIn = NULLCHAR; - - if(yyleng-skip > 3) /* [HGM] can have Shogi-style promotion */ - cl.promoCharIn = yytext[yyleng-1]; - - if (appData.debugMode) { - fprintf(debugFP, "Parser Qa1: yyleng=%d, %d(%d,%d)-(%d,%d) = %d (%c)\n", - yyleng, - cl.pieceIn,cl.ffIn,cl.rfIn,cl.ftIn,cl.rtIn,cl.promoCharIn,cl.promoCharIn?cl.promoCharIn:' '); - } - - /* [HGM] but do not allow values beyond board size */ - if(cl.rtIn >= BOARD_HEIGHT || - cl.rtIn < 0 || - cl.ftIn >= BOARD_RGHT || - cl.ftIn < BOARD_LEFT ) - return ImpossibleMove; - - Disambiguate(boards[yyboardindex], PosFlags(yyboardindex), &cl); - - currentMoveString[0] = cl.ff + AAA; - currentMoveString[1] = cl.rf + ONE; - currentMoveString[2] = cl.ft + AAA; - currentMoveString[3] = cl.rt + ONE; - currentMoveString[4] = cl.promoChar; - currentMoveString[5] = NULLCHAR; - - return (int) cl.kind; -} +#line 474 "parser.l" +{ + /* + * unambiguously abbreviated Pawn capture, possibly with promotion + */ + int skip = 0; + ChessMove result; char c; + + if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ + + /* remove trailing ep or e.p. (nonstandard PGN) */ + if (yytext[yyleng-1] == 'p') { + yyleng -= 2; + yytext[yyleng] = NULLCHAR; + } else if (yytext[yyleng-1] == '.') { + yyleng -= 4; + yytext[yyleng] = NULLCHAR; + } + + /* remove the [xX:-] */ + if ((yytext[1] == 'x') || (yytext[1] == 'X') + || (yytext[1] == ':') || (yytext[1] == '-')) skip = 1; + + currentMoveString[0] = yytext[0]; + currentMoveString[2] = yytext[1+skip]; + currentMoveString[3] = yytext[2+skip]; + + /* [HGM] do not allow values beyond board size */ + if(currentMoveString[0] - AAA >= BOARD_RGHT || + currentMoveString[3] - ONE >= BOARD_HEIGHT || + currentMoveString[3] - ONE < 0 || + currentMoveString[2] - AAA >= BOARD_RGHT || + currentMoveString[0] - AAA < BOARD_LEFT || + currentMoveString[2] - AAA < BOARD_LEFT ) + return ImpossibleMove; + + if (gameInfo.variant == VariantXiangqi && /* [HGM] In Xiangqi rank stays same */ + currentMoveString[0] != currentMoveString[2] ) { + currentMoveString[1] = yytext[2+skip]; + } else + if (WhiteOnMove(yyboardindex)) { + if (yytext[2+skip] == ONE) return (int) ImpossibleMove; + currentMoveString[1] = yytext[2+skip] - 1; + if(boards[yyboardindex][currentMoveString[1]-ONE][currentMoveString[0]-AAA] != WhitePawn) + return ImpossibleMove; + } else { + currentMoveString[1] = currentMoveString[3] + 1; + if (currentMoveString[3] == ONE+BOARD_HEIGHT-1) return (int) ImpossibleMove; + if(boards[yyboardindex][currentMoveString[1]-ONE][currentMoveString[0]-AAA] != BlackPawn) + return ImpossibleMove; + } + if (yyleng-skip > 3) { + if (yytext[yyleng-1] == ')') + c = currentMoveString[4] = ToLower(yytext[yyleng-2]); + else + c = currentMoveString[4] = ToLower(yytext[yyleng-1]); + currentMoveString[5] = NULLCHAR; + if(c == '+' && gameInfo.variant != VariantShogi) c = currentMoveString[4] = NULLCHAR; // + means check outside Shogi + } else { + currentMoveString[4] = NULLCHAR; + } + + result = LegalityTest(boards[yyboardindex], + PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: might think we can e.p.! + currentMoveString[1] - ONE, + currentMoveString[0] - AAA, + currentMoveString[3] - ONE, + currentMoveString[2] - AAA, + currentMoveString[4]); + + if (currentMoveString[4] == NULLCHAR) { + if(result == WhitePromotion || result == BlackPromotion) { + currentMoveString[4] = PieceToChar(BlackQueen); + // [HGM] shatranj: take care of variants without Queen + if(gameInfo.variant == VariantShatranj || gameInfo.variant == VariantCourier || gameInfo.variant == VariantMakruk) + currentMoveString[4] = PieceToChar(BlackFerz); + if(gameInfo.variant == VariantGreat) + currentMoveString[4] = PieceToChar(BlackMan); + if(gameInfo.variant == VariantShogi) + currentMoveString[4] = '+'; + } else if(result == WhiteNonPromotion || result == BlackNonPromotion) + currentMoveString[4] = '='; + currentMoveString[5] = NULLCHAR; + } + + if (result != IllegalMove) return (int) result; + + /* Special case: improperly written en passant capture */ + if (WhiteOnMove(yyboardindex)) { + if (currentMoveString[3] == '5') { + currentMoveString[1] = '5'; + currentMoveString[3] = '6'; + } else { + return (int) IllegalMove; + } + } else { + if (currentMoveString[3] == '4') { + currentMoveString[1] = '4'; + currentMoveString[3] = '3'; + } else { + return (int) IllegalMove; + } + } + + result = LegalityTest(boards[yyboardindex], + PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: might think we can e.p.! + currentMoveString[1] - ONE, + currentMoveString[0] - AAA, + currentMoveString[3] - ONE, + currentMoveString[2] - AAA, + currentMoveString[4]); + + if (result == WhiteCapturesEnPassant || result == BlackCapturesEnPassant) + return (int) result; + else { // [HGM] all very nice, but this messed up the input move that we might want to accept with legality testing off... + if (WhiteOnMove(yyboardindex)) // undo the damage + currentMoveString[1]--, currentMoveString[3]--; + else currentMoveString[1]++, currentMoveString[3]++; + return (int) IllegalMove; + } +} YY_BREAK case 7: YY_RULE_SETUP -#line 599 "parser.l" -{ - /* - * piece move with rank or file disambiguator - */ - DisambiguateClosure cl; - int skip = 0, skip2 = 0; int promoted=0; - - if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ - - if(yytext[0]=='+') promoted = skip = skip2 = 1; - - /* remove the [xX:-] */ - if ((yytext[2+skip] == 'x') || (yytext[2+skip] == 'X') - || (yytext[2+skip] == ':') || (yytext[2+skip] == '-')) skip++; - - if (WhiteOnMove(yyboardindex)) { - cl.pieceIn = CharToPiece(ToUpper(yytext[skip2])); - } else { - cl.pieceIn = CharToPiece(ToLower(yytext[skip2])); - } - if(promoted) cl.pieceIn = (ChessSquare) (PROMOTED cl.pieceIn); - - if (isalpha(yytext[1+skip2])) { - cl.rfIn = -1; - cl.ffIn = yytext[1+skip2] - AAA; - - if(cl.ffIn >= BOARD_RGHT || - cl.ffIn < BOARD_LEFT ) return 0; - } else { - cl.rfIn = yytext[1+skip2] - ONE; - cl.ffIn = -1; - if(cl.rfIn >= BOARD_HEIGHT || - cl.rfIn < 0) return 0; - } - cl.rtIn = yytext[3+skip] - ONE; - cl.ftIn = yytext[2+skip] - AAA; - cl.promoCharIn = NULLCHAR; - - if(yyleng-skip > 4) /* [HGM] can have Shogi-style promotion */ - cl.promoCharIn = yytext[yyleng-1]; - - /* [HGM] do not allow values beyond board size */ - if(cl.rtIn >= BOARD_HEIGHT || - cl.rtIn < 0 || - cl.ftIn >= BOARD_RGHT || - cl.ftIn < BOARD_LEFT ) - return ImpossibleMove; - - Disambiguate(boards[yyboardindex], PosFlags(yyboardindex), &cl); - - currentMoveString[0] = cl.ff + AAA; - currentMoveString[1] = cl.rf + ONE; - currentMoveString[2] = cl.ft + AAA; - currentMoveString[3] = cl.rt + ONE; - currentMoveString[4] = cl.promoChar; - currentMoveString[5] = NULLCHAR; - - return (int) cl.kind; -} +#line 595 "parser.l" +{ + /* + * piece move, possibly ambiguous + */ + DisambiguateClosure cl; + int skip = 0, skip2 = 0, promoted = 0; + + if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ + + if(yytext[0] == '+') promoted = skip = skip2 = 1; + + /* remove the [xX:-] */ + if ((yytext[1+skip] == 'x') || (yytext[1+skip] == 'X') + || (yytext[1+skip] == ':') || (yytext[1+skip] == '-')) skip++; + + if (WhiteOnMove(yyboardindex)) { + cl.pieceIn = CharToPiece(ToUpper(yytext[skip2])); + } else { + cl.pieceIn = CharToPiece(ToLower(yytext[skip2])); + } + if(promoted) cl.pieceIn = (ChessSquare) (PROMOTED cl.pieceIn); + + cl.rfIn = -1; + cl.ffIn = -1; + cl.rtIn = yytext[2+skip] - ONE; + cl.ftIn = yytext[1+skip] - AAA; + cl.promoCharIn = NULLCHAR; + + if(yyleng-skip > 3 && (gameInfo.variant == VariantShogi || gameInfo.variant == VariantSChess)) /* [HGM] can have Shogi-style promotion */ + cl.promoCharIn = yytext[yyleng-1-(yytext[yyleng-1]==')')]; + if(cl.promoCharIn == '+' && gameInfo.variant != VariantShogi) cl.promoCharIn = NULLCHAR; // + means check outside Shogi + + if (appData.debugMode) { + fprintf(debugFP, "Parser Qa1: yyleng=%d, %d(%d,%d)-(%d,%d) = %d (%c)\n", + yyleng, + cl.pieceIn,cl.ffIn,cl.rfIn,cl.ftIn,cl.rtIn,cl.promoCharIn,cl.promoCharIn?cl.promoCharIn:' '); + } + + /* [HGM] but do not allow values beyond board size */ + if(cl.rtIn >= BOARD_HEIGHT || + cl.rtIn < 0 || + cl.ftIn >= BOARD_RGHT || + cl.ftIn < BOARD_LEFT ) + return ImpossibleMove; + + Disambiguate(boards[yyboardindex], PosFlags(yyboardindex), &cl); + + currentMoveString[0] = cl.ff + AAA; + currentMoveString[1] = cl.rf + ONE; + currentMoveString[2] = cl.ft + AAA; + currentMoveString[3] = cl.rt + ONE; + currentMoveString[4] = cl.promoChar; + currentMoveString[5] = NULLCHAR; + + return (int) cl.kind; +} YY_BREAK case 8: YY_RULE_SETUP -#line 659 "parser.l" -{ - int rf, ff, rt, ft; - - if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ - - /* [HGM] all squares referenced to board edges in stead of absolute */ - if (WhiteOnMove(yyboardindex)) { - if (boards[yyboardindex][0][(BOARD_WIDTH-1)>>1] == WhiteKing) { - /* ICS wild castling */ - rf = 0; - ff = (BOARD_WIDTH-1)>>1; - rt = 0; - ft = BOARD_RGHT-3; - } else { - rf = 0; - ff = BOARD_WIDTH>>1; - rt = 0; - ft = BOARD_LEFT+2; - } - } else{ - if (boards[yyboardindex][BOARD_HEIGHT-1][(BOARD_WIDTH-1)>>1] == BlackKing) { - /* ICS wild castling */ - rf = BOARD_HEIGHT-1; - ff = (BOARD_WIDTH-1)>>1; - rt = BOARD_HEIGHT-1; - ft = BOARD_RGHT-3; - } else { - rf = BOARD_HEIGHT-1; - ff = BOARD_WIDTH>>1; - rt = BOARD_HEIGHT-1; - ft = BOARD_LEFT+2; - } - } - if(PosFlags(0) & F_FRC_TYPE_CASTLING) { - if (WhiteOnMove(yyboardindex)) { - ff = initialRights[2]; - ft = initialRights[1]; - } else { - ff = initialRights[5]; - ft = initialRights[4]; - } - if (appData.debugMode) - { - fprintf(debugFP, "Parser FRC long %d %d\n", ff, ft); - }; - if(ff < 0 || ft < 0) return 0; - } - sprintf(currentMoveString, "%c%c%c%c",ff+AAA,rf+ONE,ft+AAA,rt+ONE); - if (appData.debugMode) { - fprintf(debugFP, "long castling %d %d\n", ff, ft); - } - return (int) LegalityTest(boards[yyboardindex], - PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: e.p.! - rf, ff, rt, ft, NULLCHAR); -} +#line 652 "parser.l" +{ + /* + * piece move with rank or file disambiguator + */ + DisambiguateClosure cl; + int skip = 0, skip2 = 0; int promoted=0; + + if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ + + if(yytext[0]=='+') promoted = skip = skip2 = 1; + + /* remove the [xX:-] */ + if ((yytext[2+skip] == 'x') || (yytext[2+skip] == 'X') + || (yytext[2+skip] == ':') || (yytext[2+skip] == '-')) skip++; + + if (WhiteOnMove(yyboardindex)) { + cl.pieceIn = CharToPiece(ToUpper(yytext[skip2])); + } else { + cl.pieceIn = CharToPiece(ToLower(yytext[skip2])); + } + if(promoted) cl.pieceIn = (ChessSquare) (PROMOTED cl.pieceIn); + + if (isalpha(yytext[1+skip2])) { + cl.rfIn = -1; + cl.ffIn = yytext[1+skip2] - AAA; + + if(cl.ffIn >= BOARD_RGHT || + cl.ffIn < BOARD_LEFT ) return 0; + } else { + cl.rfIn = yytext[1+skip2] - ONE; + cl.ffIn = -1; + if(cl.rfIn >= BOARD_HEIGHT || + cl.rfIn < 0) return 0; + } + cl.rtIn = yytext[3+skip] - ONE; + cl.ftIn = yytext[2+skip] - AAA; + cl.promoCharIn = NULLCHAR; + + if(yyleng-skip > 4 && (gameInfo.variant == VariantShogi || gameInfo.variant == VariantSChess)) /* [HGM] can have Shogi-style promotion */ + cl.promoCharIn = yytext[yyleng-1-(yytext[yyleng-1]==')')]; + if(cl.promoCharIn == '+' && gameInfo.variant != VariantShogi) cl.promoCharIn = NULLCHAR; // + means check outside Shogi + + /* [HGM] do not allow values beyond board size */ + if(cl.rtIn >= BOARD_HEIGHT || + cl.rtIn < 0 || + cl.ftIn >= BOARD_RGHT || + cl.ftIn < BOARD_LEFT ) + return ImpossibleMove; + + Disambiguate(boards[yyboardindex], PosFlags(yyboardindex), &cl); + + currentMoveString[0] = cl.ff + AAA; + currentMoveString[1] = cl.rf + ONE; + currentMoveString[2] = cl.ft + AAA; + currentMoveString[3] = cl.rt + ONE; + currentMoveString[4] = cl.promoChar; + currentMoveString[5] = NULLCHAR; + + return (int) cl.kind; +} YY_BREAK case 9: YY_RULE_SETUP -#line 715 "parser.l" -{ - int rf, ff, rt, ft; - - if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ - - if (WhiteOnMove(yyboardindex)) { - if (boards[yyboardindex][0][(BOARD_WIDTH-1)>>1] == WhiteKing) { - /* ICS wild castling */ - rf = 0; - ff = (BOARD_WIDTH-1)>>1; - rt = 0; - ft = BOARD_LEFT+1; - } else { - rf = 0; - ff = BOARD_WIDTH>>1; - rt = 0; - ft = BOARD_RGHT-2; - } - } else { - if (boards[yyboardindex][BOARD_HEIGHT-1][(BOARD_WIDTH-1)>>1] == BlackKing) { - /* ICS wild castling */ - rf = BOARD_HEIGHT-1; - ff = (BOARD_WIDTH-1)>>1; - rt = BOARD_HEIGHT-1; - ft = BOARD_LEFT+1; - } else { - rf = BOARD_HEIGHT-1; - ff = BOARD_WIDTH>>1; - rt = BOARD_HEIGHT-1; - ft = BOARD_RGHT-2; - } - } +#line 713 "parser.l" +{ + int rf, ff, rt, ft; + + if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ + + /* [HGM] all squares referenced to board edges in stead of absolute */ + if (WhiteOnMove(yyboardindex)) { + if (boards[yyboardindex][0][(BOARD_WIDTH-1)>>1] == WhiteKing) { + /* ICS wild castling */ + rf = 0; + ff = (BOARD_WIDTH-1)>>1; + rt = 0; + ft = BOARD_RGHT-3; + } else { + rf = 0; + ff = BOARD_WIDTH>>1; + rt = 0; + ft = BOARD_LEFT+2; + } + } else{ + if (boards[yyboardindex][BOARD_HEIGHT-1][(BOARD_WIDTH-1)>>1] == BlackKing) { + /* ICS wild castling */ + rf = BOARD_HEIGHT-1; + ff = (BOARD_WIDTH-1)>>1; + rt = BOARD_HEIGHT-1; + ft = BOARD_RGHT-3; + } else { + rf = BOARD_HEIGHT-1; + ff = BOARD_WIDTH>>1; + rt = BOARD_HEIGHT-1; + ft = BOARD_LEFT+2; + } + } if(PosFlags(0) & F_FRC_TYPE_CASTLING) { - if (WhiteOnMove(yyboardindex)) { - ff = initialRights[2]; - ft = initialRights[0]; - } else { - ff = initialRights[5]; - ft = initialRights[3]; - } - if (appData.debugMode) { - fprintf(debugFP, "Parser FRC short %d %d\n", ff, ft); - } - if(ff < 0 || ft < 0) return 0; - } - sprintf(currentMoveString, "%c%c%c%c",ff+AAA,rf+ONE,ft+AAA,rt+ONE); - if (appData.debugMode) { - fprintf(debugFP, "short castling %d %d\n", ff, ft); - } - - return (int) LegalityTest(boards[yyboardindex], - PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: e.p.! - rf, ff, rt, ft, NULLCHAR); -} + + if (WhiteOnMove(yyboardindex)) { + ff = initialRights[2]; + ft = initialRights[1]; + } else { + ff = initialRights[5]; + ft = initialRights[4]; + } + if (appData.debugMode) + { + fprintf(debugFP, "Parser FRC long %d %d\n", ff, ft); + }; + if(ff < 0 || ft < 0) return 0; + } + sprintf(currentMoveString, "%c%c%c%c",ff+AAA,rf+ONE,ft+AAA,rt+ONE); + if (appData.debugMode) { + fprintf(debugFP, "long castling %d %d\n", ff, ft); + } + return (int) LegalityTest(boards[yyboardindex], + PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: e.p.! + rf, ff, rt, ft, NULLCHAR); +} YY_BREAK case 10: YY_RULE_SETUP #line 770 "parser.l" -{ - /* Bughouse piece drop. No legality checking for now. */ - currentMoveString[1] = '@'; - currentMoveString[2] = yytext[2]; - currentMoveString[3] = yytext[3]; - currentMoveString[4] = NULLCHAR; - - if (appData.debugMode) { - fprintf(debugFP, "Drop: %s\n", currentMoveString); - } - /* [HGM] do not allow values beyond board size */ - if(currentMoveString[3] - ONE >= BOARD_HEIGHT || - currentMoveString[2] - AAA >= BOARD_WIDTH ) - return ImpossibleMove; - - if (WhiteOnMove(yyboardindex)) { - currentMoveString[0] = ToUpper(yytext[0]); - return (int) WhiteDrop; - } else { - currentMoveString[0] = ToLower(yytext[0]); - return (int) BlackDrop; - } -} +{ + int rf, ff, rt, ft; + + if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ + + if (WhiteOnMove(yyboardindex)) { + if (boards[yyboardindex][0][(BOARD_WIDTH-1)>>1] == WhiteKing) { + /* ICS wild castling */ + rf = 0; + ff = (BOARD_WIDTH-1)>>1; + rt = 0; + ft = BOARD_LEFT+1; + } else { + rf = 0; + ff = BOARD_WIDTH>>1; + rt = 0; + ft = BOARD_RGHT-2; + } + } else { + if (boards[yyboardindex][BOARD_HEIGHT-1][(BOARD_WIDTH-1)>>1] == BlackKing) { + /* ICS wild castling */ + rf = BOARD_HEIGHT-1; + ff = (BOARD_WIDTH-1)>>1; + rt = BOARD_HEIGHT-1; + ft = BOARD_LEFT+1; + } else { + rf = BOARD_HEIGHT-1; + ff = BOARD_WIDTH>>1; + rt = BOARD_HEIGHT-1; + ft = BOARD_RGHT-2; + } + } + if(PosFlags(0) & F_FRC_TYPE_CASTLING) { + if (WhiteOnMove(yyboardindex)) { + ff = initialRights[2]; + ft = initialRights[0]; + } else { + ff = initialRights[5]; + ft = initialRights[3]; + } + if (appData.debugMode) { + fprintf(debugFP, "Parser FRC short %d %d\n", ff, ft); + } + if(ff < 0 || ft < 0) return 0; + } + sprintf(currentMoveString, "%c%c%c%c",ff+AAA,rf+ONE,ft+AAA,rt+ONE); + if (appData.debugMode) { + fprintf(debugFP, "short castling %d %d\n", ff, ft); + } + + return (int) LegalityTest(boards[yyboardindex], + PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, // [HGM] losers: e.p.! + rf, ff, rt, ft, NULLCHAR); +} YY_BREAK case 11: YY_RULE_SETUP -#line 794 "parser.l" -{ - if (WhiteOnMove(yyboardindex)) - return (int) BlackWins; - else - return (int) WhiteWins; -} +#line 825 "parser.l" +{ + + if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ + + /* Bughouse piece drop. */ + currentMoveString[1] = '@'; + currentMoveString[2] = yytext[2]; + currentMoveString[3] = yytext[3]; + currentMoveString[4] = NULLCHAR; + + if (appData.debugMode) { + fprintf(debugFP, "Drop: %s\n", currentMoveString); + } + /* [HGM] do not allow values beyond board size */ + if(currentMoveString[3] - ONE >= BOARD_HEIGHT || + currentMoveString[2] - AAA >= BOARD_WIDTH ) + return ImpossibleMove; + + if (WhiteOnMove(yyboardindex)) { + currentMoveString[0] = ToUpper(yytext[0]); + } else { + currentMoveString[0] = ToLower(yytext[0]); + } + return LegalityTest(boards[yyboardindex], PosFlags(yyboardindex), DROP_RANK, // [HGM] does drops now too + CharToPiece(currentMoveString[0]), currentMoveString[3] - ONE, currentMoveString[2] - AAA, NULLCHAR); +} YY_BREAK case 12: YY_RULE_SETUP -#line 801 "parser.l" -{ - return (int) (ToUpper(yytext[0]) == 'W' ? BlackWins : WhiteWins); -} +#line 852 "parser.l" +{ + if (WhiteOnMove(yyboardindex)) + return (int) BlackWins; + else + return (int) WhiteWins; +} YY_BREAK case 13: YY_RULE_SETUP -#line 805 "parser.l" -{ - return (int) GameUnfinished; -} +#line 859 "parser.l" +{ + return (int) (ToUpper(yytext[0]) == 'W' ? BlackWins : WhiteWins); +} YY_BREAK case 14: YY_RULE_SETUP -#line 809 "parser.l" -{ - return (int) GameIsDrawn; -} +#line 863 "parser.l" +{ + return (int) GameUnfinished; +} YY_BREAK case 15: YY_RULE_SETUP -#line 813 "parser.l" -{ - return (int) GameIsDrawn; -} +#line 867 "parser.l" +{ + return (int) GameIsDrawn; +} YY_BREAK case 16: YY_RULE_SETUP -#line 817 "parser.l" -{ - if (WhiteOnMove(yyboardindex)) - return (int) BlackWins; - else - return (int) WhiteWins; -} +#line 871 "parser.l" +{ + return (int) GameIsDrawn; +} YY_BREAK case 17: YY_RULE_SETUP -#line 824 "parser.l" -{ - if (WhiteOnMove(yyboardindex)) - return (int) BlackWins; - else - return (int) WhiteWins; -} +#line 875 "parser.l" +{ + if (WhiteOnMove(yyboardindex)) + return (int) BlackWins; + else + return (int) WhiteWins; +} YY_BREAK case 18: YY_RULE_SETUP -#line 831 "parser.l" -{ - return (int) GameIsDrawn; -} +#line 882 "parser.l" +{ + if (WhiteOnMove(yyboardindex)) + return (int) BlackWins; + else + return (int) WhiteWins; +} YY_BREAK case 19: YY_RULE_SETUP -#line 835 "parser.l" -{ - return (int) GameIsDrawn; -} +#line 889 "parser.l" +{ + return (int) GameIsDrawn; +} YY_BREAK case 20: YY_RULE_SETUP -#line 839 "parser.l" -{ - return (int) (ToUpper(yytext[0]) == 'W' ? WhiteWins : BlackWins); -} +#line 893 "parser.l" +{ + return (int) GameIsDrawn; +} YY_BREAK case 21: YY_RULE_SETUP -#line 843 "parser.l" -{ - return (int) (ToUpper(yytext[0]) == 'W' ? BlackWins : WhiteWins); -} +#line 897 "parser.l" +{ + return (int) (ToUpper(yytext[0]) == 'W' ? WhiteWins : BlackWins); +} YY_BREAK case 22: YY_RULE_SETUP -#line 847 "parser.l" -{ - return (int) WhiteWins; -} +#line 901 "parser.l" +{ + return (int) (ToUpper(yytext[0]) == 'W' ? BlackWins : WhiteWins); +} YY_BREAK case 23: YY_RULE_SETUP -#line 851 "parser.l" -{ - return (int) BlackWins; -} +#line 905 "parser.l" +{ + return (int) WhiteWins; +} YY_BREAK case 24: YY_RULE_SETUP -#line 855 "parser.l" -{ - return (int) GameIsDrawn; -} +#line 909 "parser.l" +{ + return (int) BlackWins; +} YY_BREAK case 25: YY_RULE_SETUP -#line 859 "parser.l" -{ - return (int) GameUnfinished; -} +#line 913 "parser.l" +{ + return (int) GameIsDrawn; +} YY_BREAK case 26: -/* rule 26 can match eol */ YY_RULE_SETUP -#line 863 "parser.l" -{ - /* move numbers */ - if ((yyleng == 1) && (yytext[0] == '1')) - return (int) MoveNumberOne; -} +#line 917 "parser.l" +{ + return (int) GameUnfinished; +} YY_BREAK case 27: +/* rule 27 can match eol */ YY_RULE_SETUP -#line 869 "parser.l" -{ - /* elapsed time indication, e.g. (0:12) or {10:21.071} */ - return (int) ElapsedTime; -} +#line 921 "parser.l" +{ + /* move numbers */ + if ((yyleng == 1) && (yytext[0] == '1')) + return (int) MoveNumberOne; + else return (int) Nothing; // [HGM] make sure something is returned, for gathering parsed text +} YY_BREAK case 28: -/* rule 28 can match eol */ YY_RULE_SETUP -#line 874 "parser.l" -{ - /* position diagram enclosed in [-- --] */ - return (int) PositionDiagram; -} +#line 928 "parser.l" +{ + /* elapsed time indication, e.g. (0:12) or {10:21.071} */ + return (int) ElapsedTime; +} YY_BREAK case 29: /* rule 29 can match eol */ -*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ -(yy_c_buf_p) = yy_cp -= 1; -YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 879 "parser.l" -{ - /* position diagram enclosed in {-- --} */ - return (int) PositionDiagram; -} +#line 933 "parser.l" +{ + /* position diagram enclosed in [-- --] */ + return (int) PositionDiagram; +} YY_BREAK case 30: /* rule 30 can match eol */ +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 884 "parser.l" -{ - return (int) PGNTag; -} +#line 938 "parser.l" +{ + /* position diagram enclosed in {-- --} */ + return (int) PositionDiagram; +} YY_BREAK case 31: +/* rule 31 can match eol */ YY_RULE_SETUP -#line 888 "parser.l" -{ - return (int) GNUChessGame; -} +#line 943 "parser.l" +{ + return (int) PGNTag; +} YY_BREAK case 32: -/* rule 32 can match eol */ -*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ -(yy_c_buf_p) = yy_cp -= 1; -YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 892 "parser.l" -{ - return (int) XBoardGame; -} +#line 947 "parser.l" +{ + return (int) GNUChessGame; +} YY_BREAK case 33: +/* rule 33 can match eol */ +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 896 "parser.l" -{ /* numeric annotation glyph */ - return (int) NAG; -} +#line 951 "parser.l" +{ + return (int) XBoardGame; +} YY_BREAK case 34: -/* rule 34 can match eol */ YY_RULE_SETUP -#line 900 "parser.l" -{ /* anything in {} */ - return (int) Comment; -} +#line 955 "parser.l" +{ /* numeric annotation glyph */ + return (int) NAG; +} YY_BREAK case 35: -*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ -(yy_c_buf_p) = yy_cp -= 1; -YY_DO_BEFORE_ACTION; /* set up yytext again */ +/* rule 35 can match eol */ YY_RULE_SETUP -#line 904 "parser.l" -{ /* ; to end of line */ - return (int) Comment; -} +#line 959 "parser.l" +{ /* anything in {} */ + return (int) Comment; +} YY_BREAK case 36: -/* rule 36 can match eol */ +*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ +(yy_c_buf_p) = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 908 "parser.l" -{ /* anything in [] */ - return (int) Comment; -} +#line 963 "parser.l" +{ /* ; to end of line */ + return (int) Comment; +} YY_BREAK case 37: /* rule 37 can match eol */ YY_RULE_SETUP -#line 912 "parser.l" -{ /* very nested () */ - return (int) Comment; -} +#line 967 "parser.l" +{ /* anything in [] */ + return (int) Comment; +} YY_BREAK case 38: -/* rule 38 can match eol */ YY_RULE_SETUP -#line 916 "parser.l" -{ /* >=2 chars in () */ - return (int) Comment; -} +#line 971 "parser.l" +{ /* Opening parentheses */ + return (int) Open; +} YY_BREAK case 39: -/* rule 39 can match eol */ YY_RULE_SETUP -#line 920 "parser.l" -{ - /* Skip mail headers */ -} +#line 975 "parser.l" +{ /* closing parentheses */ + return (int) Close; +} YY_BREAK case 40: +/* rule 40 can match eol */ YY_RULE_SETUP -#line 924 "parser.l" -{ - /* Skip random words */ -} +#line 979 "parser.l" +{ + return (int) Nothing; /* Skip mail headers */ +} YY_BREAK case 41: -/* rule 41 can match eol */ YY_RULE_SETUP -#line 928 "parser.l" -{ - /* Skip everything else */ -} +#line 983 "parser.l" +{ + return (int) Nothing; /* Skip random words */ +} YY_BREAK case 42: +/* rule 42 can match eol */ YY_RULE_SETUP -#line 932 "parser.l" +#line 987 "parser.l" +{ + return (int) Nothing; /* Skip everything else */ +} + YY_BREAK +case 43: +YY_RULE_SETUP +#line 991 "parser.l" ECHO; YY_BREAK -#line 2985 "parser.c" +#line 3077 "parser.c" case YY_STATE_EOF(INITIAL): yyterminate(); @@ -3243,7 +3335,7 @@ static int yy_get_next_buffer (void) while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 690 ) + if ( yy_current_state >= 696 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; @@ -3266,11 +3358,11 @@ static int yy_get_next_buffer (void) while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 690 ) + if ( yy_current_state >= 696 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - yy_is_jam = (yy_current_state == 689); + yy_is_jam = (yy_current_state == 695); if ( ! yy_is_jam ) *(yy_state_ptr)++ = yy_current_state; @@ -3956,197 +4048,217 @@ void yyfree (void * ptr ) #define YYTABLES_NAME "yytables" -#line 932 "parser.l" - - - - -static char *StringToLex; - -#ifndef FLEX_SCANNER -static FILE *lexFP; - -static int input() -{ - int ret; - - if (StringToLex != NULL) { - ret = *StringToLex; - if (ret == NULLCHAR) - ret = EOF; - else - StringToLex++; - } else if (unputCount > 0) { - ret = unputBuffer[--unputCount]; - } else { - ret = fgetc(lexFP); - } - - if (ret == EOF) - return 0; - else - return ret; -} - -/* - * Return offset of next pattern within current file - */ -int yyoffset() -{ - int offset = ftell(lexFP) - unputCount; - - if (offset < 0) { - offset = 0; - } - return(offset); -} - -static void output(ch) - int ch; -{ - if(appData.debugMode) fprintf(debugFP, "PARSER BUG: unmatched character '%c' (0%o)\n", - ch, ch); -} - -static void unput(ch) - int ch; -{ - if (ch == 0) return; - if (StringToLex != NULL) { - StringToLex--; - } else { - if (unputCount >= UNPUT_BUF_SIZE) - if(appData.debugMode) fprintf(debugFP, "PARSER BUG: unput buffer overflow '%c' (0%o)\n", - ch, ch); - unputBuffer[unputCount++] = ch; - } -} - -/* Get ready to lex from a new file. Kludge below sticks - an artificial newline at the front of the file, which the - above grammar ignores, but which makes ^ at start of pattern - match at the real start of the file. -*/ -void yynewfile(f) - FILE *f; -{ - lexFP = f; - StringToLex = NULL; - unputCount = 0; - unput('\n'); /* kludge */ -} - -/* Get ready to lex from a string. ^ at start of pattern WON'T - match at the start of the string! -*/ -void yynewstr(s) - char *s; -{ - lexFP = NULL; - StringToLex = s; - unputCount = 0; -} -#endif /*!FLEX_SCANNER*/ - -#ifdef FLEX_SCANNER -void my_yy_input(buf, result, max_size) - char *buf; - int *result; - int max_size; -{ - int count; - - if (StringToLex != NULL) { - count = 0; - while (*StringToLex != NULLCHAR) { - *buf++ = *StringToLex++; - count++; - } - *result = count; - return; - } else { - count = fread(buf, 1, max_size, yyin); - if (count == 0) { - *result = YY_NULL; - } else { - *result = count; - } - return; - } -} - -static YY_BUFFER_STATE my_file_buffer = NULL; - -/* - Return offset of next pattern in the current file. -*/ -int yyoffset() -{ - int pos = yy_c_buf_p - YY_CURRENT_BUFFER->yy_ch_buf; - - return(ftell(YY_CURRENT_BUFFER->yy_input_file) - - yy_n_chars + pos); -} - - -void yynewstr(s) - char *s; -{ - if (my_file_buffer != NULL) - yy_delete_buffer(my_file_buffer); - StringToLex = s; - my_file_buffer = yy_create_buffer(stdin,YY_BUF_SIZE); - yy_switch_to_buffer(my_file_buffer); -} - -void yynewfile(f) - FILE *f; -{ - if (my_file_buffer != NULL) - yy_delete_buffer(my_file_buffer); - StringToLex = NULL; - my_file_buffer = yy_create_buffer(f,YY_BUF_SIZE); - yy_switch_to_buffer(my_file_buffer); -} -#endif /*FLEX_SCANNER*/ - -int yywrap() -{ - return TRUE; -} - -/* Parse a move from the given string s */ -/* ^ at start of pattern WON'T work here unless using flex */ -ChessMove yylexstr(boardIndex, s, text, len) - int boardIndex, len; - char *s, *text; +#line 991 "parser.l" + + + + +static char *StringToLex; + +#ifndef FLEX_SCANNER +static FILE *lexFP; + +static int input() +{ + int ret; + + if (StringToLex != NULL) { + ret = *StringToLex; + if (ret == NULLCHAR) + ret = EOF; + else + StringToLex++; + } else if (unputCount > 0) { + ret = unputBuffer[--unputCount]; + } else { + ret = fgetc(lexFP); + } + + if (ret == EOF) + return 0; + else + return ret; +} + +/* + * Return offset of next pattern within current file + */ +int yyoffset() +{ + int offset = ftell(lexFP) - unputCount; + + if (offset < 0) { + offset = 0; + } + return(offset); +} + +static void output(ch) + int ch; +{ + if(appData.debugMode) fprintf(debugFP, "PARSER BUG: unmatched character '%c' (0%o)\n", + ch, ch); +} + +static void unput(ch) + int ch; +{ + if (ch == 0) return; + if (StringToLex != NULL) { + StringToLex--; + } else { + if (unputCount >= UNPUT_BUF_SIZE) + if(appData.debugMode) fprintf(debugFP, "PARSER BUG: unput buffer overflow '%c' (0%o)\n", + ch, ch); + unputBuffer[unputCount++] = ch; + } +} + +/* Get ready to lex from a new file. Kludge below sticks + an artificial newline at the front of the file, which the + above grammar ignores, but which makes ^ at start of pattern + match at the real start of the file. +*/ +void yynewfile(f) + FILE *f; +{ + lexFP = f; + StringToLex = NULL; + unputCount = 0; + unput('\n'); /* kludge */ +} + +/* Get ready to lex from a string. ^ at start of pattern WON'T + match at the start of the string! +*/ +void yynewstr(s) + char *s; +{ + lexFP = NULL; + StringToLex = s; + unputCount = 0; +} +#endif /*!FLEX_SCANNER*/ + +#ifdef FLEX_SCANNER +void my_yy_input(buf, result, max_size) + char *buf; + int *result; + int max_size; +{ + int count; + + if (StringToLex != NULL) { + count = 0; + while (*StringToLex != NULLCHAR) { + *buf++ = *StringToLex++; + count++; + } + *result = count; + return; + } else { + count = fread(buf, 1, max_size, yyin); + if (count == 0) { + *result = YY_NULL; + } else { + *result = count; + } + return; + } +} + +static YY_BUFFER_STATE my_file_buffer = NULL; + +/* + Return offset of next pattern in the current file. +*/ +int yyoffset() +{ + int pos = yy_c_buf_p - YY_CURRENT_BUFFER->yy_ch_buf; + + return(ftell(YY_CURRENT_BUFFER->yy_input_file) - + yy_n_chars + pos); +} + + +void yynewstr(s) + char *s; +{ + if (my_file_buffer != NULL) + yy_delete_buffer(my_file_buffer); + StringToLex = s; + my_file_buffer = yy_create_buffer(stdin,YY_BUF_SIZE); + yy_switch_to_buffer(my_file_buffer); +} + +void yynewfile(f) + FILE *f; +{ + if (my_file_buffer != NULL) + yy_delete_buffer(my_file_buffer); + StringToLex = NULL; + my_file_buffer = yy_create_buffer(f,YY_BUF_SIZE); + yy_switch_to_buffer(my_file_buffer); +} +#endif /*FLEX_SCANNER*/ + +int yywrap() +{ + return TRUE; +} + +/* Parse a move from the given string s */ +/* ^ at start of pattern WON'T work here unless using flex */ +ChessMove yylexstr(boardIndex, s, text, len) + int boardIndex, len; + char *s, *text; { - ChessMove ret; - char *oldStringToLex; -#ifdef FLEX_SCANNER - YY_BUFFER_STATE buffer, oldBuffer; -#endif - - yyboardindex = boardIndex; - oldStringToLex = StringToLex; - StringToLex = s; -#ifdef FLEX_SCANNER - buffer = yy_create_buffer(stdin,YY_BUF_SIZE); - oldBuffer = YY_CURRENT_BUFFER; - yy_switch_to_buffer(buffer); -#endif /*FLEX_SCANNER*/ - - ret = (ChessMove) yylex(); + ChessMove ret; + char *oldStringToLex; +#ifdef FLEX_SCANNER + YY_BUFFER_STATE buffer, oldBuffer; +#endif + + yyboardindex = boardIndex; + oldStringToLex = StringToLex; + StringToLex = s; +#ifdef FLEX_SCANNER + buffer = yy_create_buffer(stdin,YY_BUF_SIZE); + oldBuffer = YY_CURRENT_BUFFER; + yy_switch_to_buffer(buffer); +#endif /*FLEX_SCANNER*/ + + ret = (ChessMove) Myylex(); strncpy(text, yy_text, len-1); // [HGM] vari: yy_text is not available to caller after buffer switch ?!? - text[len-1] = NULLCHAR; - -#ifdef FLEX_SCANNER - if (oldBuffer != NULL) - yy_switch_to_buffer(oldBuffer); - yy_delete_buffer(buffer); -#endif /*FLEX_SCANNER*/ - StringToLex = oldStringToLex; - - return ret; -} + text[len-1] = NULLCHAR; + +#ifdef FLEX_SCANNER + if (oldBuffer != NULL) + yy_switch_to_buffer(oldBuffer); + yy_delete_buffer(buffer); +#endif /*FLEX_SCANNER*/ + StringToLex = oldStringToLex; + + return ret; +} + +int Myylex() +{ // [HGM] wrapper for yylex, which treats nesting of parentheses + int symbol, nestingLevel = 0, i=0; + char *p; + static char buf[256*MSG_SIZ]; + buf[0] = NULLCHAR; + do { // eat away anything not at level 0 + symbol = yylex(); + if(symbol == Open) nestingLevel++; + if(nestingLevel) { // save all parsed text between (and including) the () + for(p=yytext; *p && i<256*MSG_SIZ-2;) buf[i++] = *p++; + buf[i] = NULLCHAR; + } + if(symbol == 0) break; // ran into EOF + if(symbol == Close) symbol = Comment, nestingLevel--; + } while(nestingLevel || symbol == Nothing); + yy_text = buf[0] ? buf : (char*)yytext; + return symbol; +}