diff options
Diffstat (limited to 'Build/source/texk/gregorio/gregorio-src/src/gabc/gabc-score-determination-l.c')
-rw-r--r-- | Build/source/texk/gregorio/gregorio-src/src/gabc/gabc-score-determination-l.c | 890 |
1 files changed, 434 insertions, 456 deletions
diff --git a/Build/source/texk/gregorio/gregorio-src/src/gabc/gabc-score-determination-l.c b/Build/source/texk/gregorio/gregorio-src/src/gabc/gabc-score-determination-l.c index a9f5dcf0baa..42c089a3dea 100644 --- a/Build/source/texk/gregorio/gregorio-src/src/gabc/gabc-score-determination-l.c +++ b/Build/source/texk/gregorio/gregorio-src/src/gabc/gabc-score-determination-l.c @@ -398,8 +398,8 @@ static void yy_fatal_error (yyconst char msg[] ); *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; -#define YY_NUM_RULES 70 -#define YY_END_OF_BUFFER 71 +#define YY_NUM_RULES 71 +#define YY_END_OF_BUFFER 72 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info @@ -407,40 +407,40 @@ struct yy_trans_info flex_int32_t yy_verify; flex_int32_t yy_nxt; }; -static yyconst flex_int32_t yy_accept[292] = +static yyconst flex_int32_t yy_accept[296] = { 0, - 0, 1, 7, 7, 0, 0, 65, 65, 46, 46, - 52, 52, 49, 49, 5, 5, 57, 57, 71, 25, - 69, 25, 23, 6, 23, 23, 23, 23, 23, 23, + 0, 0, 7, 7, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 72, 25, + 70, 25, 23, 6, 23, 23, 23, 23, 23, 23, 23, 23, 23, 2, 2, 3, 3, 1, 7, 7, - 70, 26, 47, 64, 27, 53, 62, 63, 54, 55, - 65, 67, 66, 46, 53, 52, 53, 49, 48, 5, - 4, 57, 53, 0, 0, 23, 6, 23, 23, 23, - 23, 23, 23, 23, 23, 23, 23, 23, 2, 1, - 7, 7, 0, 7, 7, 0, 7, 8, 0, 26, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - - 0, 0, 65, 68, 46, 0, 0, 52, 0, 49, - 48, 5, 4, 57, 0, 24, 23, 23, 23, 23, - 23, 23, 23, 23, 23, 23, 23, 23, 23, 7, - 0, 0, 0, 38, 36, 42, 0, 30, 0, 0, - 0, 0, 0, 50, 61, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 23, 23, 0, 23, 23, 23, - 14, 23, 10, 23, 23, 23, 0, 0, 0, 59, - 0, 40, 44, 32, 34, 39, 37, 43, 31, 0, - 0, 0, 0, 51, 0, 23, 23, 23, 0, 23, - 23, 0, 0, 23, 23, 23, 60, 0, 56, 0, - - 41, 45, 33, 35, 0, 23, 18, 9, 23, 23, - 23, 23, 23, 23, 23, 0, 0, 0, 28, 58, + 71, 27, 26, 49, 65, 28, 55, 63, 64, 56, + 57, 66, 68, 67, 27, 47, 48, 55, 71, 54, + 55, 51, 50, 5, 4, 55, 0, 0, 23, 6, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, - 29, 23, 23, 0, 19, 23, 23, 23, 0, 23, + 23, 2, 1, 7, 7, 0, 7, 7, 0, 7, + 8, 0, 27, 26, 0, 0, 0, 0, 0, 0, + + 0, 0, 0, 0, 0, 0, 66, 69, 27, 48, + 47, 0, 54, 0, 51, 50, 5, 4, 0, 24, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, - 17, 23, 23, 23, 23, 21, 23, 23, 23, 23, - 23, 23, 23, 23, 23, 20, 23, 23, 23, 23, - 23, 23, 23, 13, 23, 15, 23, 23, 12, 23, - 23, 23, 23, 23, 11, 16, 23, 23, 23, 22, - 0 + 23, 23, 23, 7, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 39, 37, 43, 0, 31, 0, 0, + 0, 0, 0, 52, 62, 0, 0, 0, 23, 23, + 0, 23, 23, 23, 14, 23, 10, 23, 23, 23, + 40, 38, 44, 0, 32, 0, 0, 0, 0, 0, + 60, 0, 41, 45, 33, 35, 0, 53, 0, 23, + 23, 23, 0, 23, 23, 0, 0, 23, 23, 23, + + 61, 0, 42, 34, 36, 58, 0, 46, 0, 23, + 18, 9, 23, 23, 23, 23, 23, 23, 23, 0, + 0, 0, 29, 59, 23, 23, 23, 23, 23, 23, + 23, 23, 23, 23, 30, 23, 23, 0, 19, 23, + 23, 23, 0, 23, 23, 23, 23, 23, 23, 23, + 23, 23, 23, 23, 17, 23, 23, 23, 23, 21, + 23, 23, 23, 23, 23, 23, 23, 23, 23, 20, + 23, 23, 23, 23, 23, 23, 23, 13, 23, 15, + 23, 23, 12, 23, 23, 23, 23, 23, 11, 16, + 23, 23, 23, 22, 0 } ; @@ -485,244 +485,250 @@ static yyconst YY_CHAR yy_meta[46] = 4, 9, 1, 1, 1 } ; -static yyconst flex_uint32_t yy_base[313] = +static yyconst flex_uint32_t yy_base[316] = { 0, - 0, 43, 48, 50, 82, 118, 39, 50, 41, 42, - 635, 634, 57, 62, 64, 66, 633, 632, 646, 651, - 651, 638, 634, 638, 48, 53, 83, 45, 84, 63, - 86, 64, 95, 68, 104, 651, 635, 66, 109, 115, - 131, 0, 651, 651, 651, 150, 630, 651, 651, 651, - 0, 136, 651, 0, 131, 0, 629, 0, 111, 0, - 117, 0, 628, 140, 0, 628, 651, 68, 117, 138, - 136, 122, 142, 139, 146, 149, 158, 144, 162, 139, - 188, 190, 192, 623, 194, 0, 196, 176, 208, 0, - 183, 607, 619, 618, 185, 617, 603, 183, 595, 601, - - 613, 609, 0, 215, 0, 202, 611, 0, 588, 0, - 224, 0, 228, 0, 605, 231, 614, 193, 219, 613, - 199, 179, 226, 92, 231, 230, 232, 234, 233, 608, - 584, 591, 583, 651, 651, 651, 602, 651, 596, 600, - 599, 598, 597, 651, 651, 596, 595, 594, 593, 223, - 572, 578, 590, 576, 237, 238, 574, 593, 241, 239, - 592, 591, 590, 240, 247, 249, 583, 577, 581, 651, - 576, 651, 651, 651, 651, 651, 651, 651, 651, 579, - 578, 577, 576, 651, 555, 245, 250, 251, 568, 262, - 265, 256, 560, 254, 578, 577, 651, 566, 651, 569, - - 651, 651, 651, 651, 566, 256, 564, 549, 267, 268, - 270, 273, 271, 277, 278, 528, 518, 511, 651, 651, - 279, 283, 511, 280, 284, 285, 288, 509, 290, 292, - 651, 296, 300, 377, 400, 301, 302, 305, 373, 304, - 307, 311, 313, 308, 317, 315, 314, 321, 322, 324, - 394, 323, 325, 326, 335, 392, 340, 333, 336, 343, - 344, 342, 346, 348, 347, 387, 349, 355, 352, 364, - 368, 367, 370, 385, 371, 382, 372, 374, 203, 375, - 376, 377, 380, 378, 165, 159, 381, 379, 384, 120, - 651, 415, 424, 433, 442, 451, 460, 469, 478, 483, - - 489, 498, 507, 516, 523, 532, 539, 548, 557, 566, - 69, 575 + 0, 43, 48, 50, 86, 126, 39, 50, 166, 206, + 662, 661, 52, 54, 57, 62, 660, 659, 673, 678, + 678, 665, 661, 665, 61, 53, 58, 64, 59, 65, + 62, 66, 63, 80, 99, 678, 662, 63, 106, 108, + 110, 0, 113, 678, 678, 678, 238, 657, 678, 678, + 678, 0, 135, 678, 139, 148, 0, 656, 678, 0, + 655, 0, 128, 0, 139, 654, 152, 0, 654, 678, + 117, 125, 150, 60, 144, 152, 154, 157, 161, 169, + 170, 188, 150, 193, 201, 208, 649, 214, 0, 216, + 195, 199, 0, 229, 256, 633, 645, 644, 149, 643, + + 629, 204, 621, 627, 639, 635, 0, 236, 235, 0, + 292, 618, 0, 614, 0, 232, 0, 247, 631, 252, + 640, 247, 217, 639, 178, 253, 242, 237, 260, 257, + 255, 254, 261, 634, 631, 630, 267, 629, 615, 621, + 606, 612, 604, 678, 678, 678, 623, 678, 617, 621, + 620, 619, 618, 678, 678, 600, 616, 602, 262, 275, + 600, 619, 289, 290, 618, 617, 616, 291, 292, 293, + 678, 678, 678, 609, 678, 603, 607, 606, 605, 604, + 678, 599, 678, 678, 678, 678, 602, 678, 581, 295, + 296, 109, 594, 299, 300, 291, 586, 298, 604, 601, + + 678, 577, 678, 678, 678, 678, 572, 678, 569, 301, + 562, 555, 302, 153, 312, 313, 314, 315, 316, 536, + 523, 534, 678, 678, 319, 321, 539, 318, 323, 322, + 326, 444, 329, 330, 678, 334, 339, 415, 436, 340, + 342, 343, 413, 346, 345, 349, 350, 352, 353, 358, + 354, 359, 361, 362, 434, 363, 364, 365, 377, 433, + 380, 372, 375, 371, 382, 385, 388, 391, 386, 431, + 392, 394, 397, 403, 407, 406, 384, 426, 411, 424, + 412, 413, 219, 414, 415, 416, 419, 417, 213, 115, + 421, 423, 420, 113, 678, 455, 464, 473, 482, 491, + + 500, 509, 514, 520, 529, 538, 547, 554, 563, 570, + 577, 586, 595, 61, 604 } ; -static yyconst flex_int32_t yy_def[313] = +static yyconst flex_int32_t yy_def[316] = { 0, - 291, 1, 292, 292, 293, 293, 294, 294, 295, 295, - 296, 296, 297, 297, 298, 298, 299, 299, 291, 291, - 291, 291, 300, 291, 300, 300, 300, 300, 300, 300, - 300, 300, 300, 291, 291, 291, 291, 291, 301, 302, - 303, 304, 291, 291, 291, 291, 291, 291, 291, 291, - 305, 291, 291, 306, 46, 307, 291, 308, 291, 309, - 291, 310, 291, 291, 311, 300, 291, 300, 300, 300, - 300, 300, 300, 300, 300, 300, 300, 300, 291, 291, - 301, 302, 303, 302, 302, 312, 303, 291, 291, 304, - 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, - - 291, 291, 305, 291, 306, 291, 291, 307, 291, 308, - 291, 309, 291, 310, 291, 291, 311, 300, 300, 300, - 300, 300, 300, 300, 300, 300, 300, 300, 300, 312, - 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, - 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, - 291, 291, 291, 291, 300, 300, 311, 300, 300, 300, - 300, 300, 300, 300, 300, 300, 291, 291, 291, 291, - 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, - 291, 291, 291, 291, 291, 300, 300, 311, 311, 300, - 300, 311, 311, 300, 300, 300, 291, 291, 291, 291, - - 291, 291, 291, 291, 291, 300, 300, 311, 311, 300, - 300, 311, 311, 311, 300, 311, 311, 291, 291, 291, - 300, 311, 300, 300, 311, 311, 311, 300, 311, 311, - 291, 300, 311, 311, 300, 311, 311, 311, 311, 311, - 311, 300, 311, 311, 311, 311, 311, 311, 311, 311, - 300, 311, 311, 311, 311, 311, 311, 311, 311, 311, - 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, - 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, - 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, - 0, 291, 291, 291, 291, 291, 291, 291, 291, 291, - - 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, - 291, 291 + 295, 1, 296, 296, 297, 297, 298, 298, 299, 299, + 300, 300, 301, 301, 302, 302, 300, 300, 295, 295, + 295, 295, 303, 295, 303, 303, 303, 303, 303, 303, + 303, 303, 303, 295, 295, 295, 295, 295, 304, 305, + 306, 307, 295, 295, 295, 295, 295, 295, 295, 295, + 295, 308, 295, 295, 309, 295, 310, 295, 295, 311, + 295, 312, 295, 313, 295, 295, 295, 314, 303, 295, + 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, + 303, 295, 295, 304, 305, 306, 305, 305, 315, 306, + 295, 295, 307, 295, 295, 295, 295, 295, 295, 295, + + 295, 295, 295, 295, 295, 295, 308, 295, 309, 310, + 295, 295, 311, 295, 312, 295, 313, 295, 295, 295, + 314, 303, 303, 303, 303, 303, 303, 303, 303, 303, + 303, 303, 303, 315, 295, 295, 295, 295, 295, 295, + 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, + 295, 295, 295, 295, 295, 295, 295, 295, 303, 303, + 314, 303, 303, 303, 303, 303, 303, 303, 303, 303, + 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, + 295, 295, 295, 295, 295, 295, 295, 295, 295, 303, + 303, 314, 314, 303, 303, 314, 314, 303, 303, 303, + + 295, 295, 295, 295, 295, 295, 295, 295, 295, 303, + 303, 314, 314, 303, 303, 314, 314, 314, 303, 314, + 314, 295, 295, 295, 303, 314, 303, 303, 314, 314, + 314, 303, 314, 314, 295, 303, 314, 314, 303, 314, + 314, 314, 314, 314, 314, 303, 314, 314, 314, 314, + 314, 314, 314, 314, 303, 314, 314, 314, 314, 314, + 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, + 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, + 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, + 314, 314, 314, 314, 0, 295, 295, 295, 295, 295, + + 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, + 295, 295, 295, 295, 295 } ; -static yyconst flex_uint32_t yy_nxt[697] = +static yyconst flex_uint32_t yy_nxt[724] = { 0, 20, 20, 21, 20, 20, 20, 22, 20, 20, 20, 20, 23, 24, 20, 20, 20, 23, 20, 20, 25, 23, 23, 26, 23, 23, 27, 23, 28, 29, 30, 31, 32, 23, 23, 33, 23, 23, 23, 23, 20, - 20, 20, 20, 20, 20, 34, 35, 52, 36, 37, - 40, 40, 40, 40, 65, 55, 55, 65, 52, 59, - 59, 41, 65, 41, 59, 59, 61, 61, 61, 61, - 79, 79, 65, 65, 117, 72, 70, 65, 68, 53, - 49, 49, 50, 50, 69, 38, 38, 38, 43, 44, - 53, 45, 65, 65, 74, 65, 46, 76, 118, 47, - - 48, 65, 71, 73, 65, 75, 79, 79, 80, 80, - 80, 82, 82, 111, 111, 161, 77, 85, 85, 113, - 113, 49, 83, 50, 43, 44, 65, 45, 86, 65, - 78, 65, 46, 88, 88, 47, 48, 104, 104, 104, - 104, 106, 116, 116, 89, 65, 64, 65, 65, 122, - 291, 65, 119, 65, 107, 65, 121, 49, 65, 50, - 91, 124, 120, 129, 79, 79, 125, 65, 65, 92, - 93, 94, 123, 95, 65, 126, 127, 96, 88, 88, - 97, 80, 80, 80, 98, 99, 100, 101, 65, 128, - 82, 82, 85, 85, 291, 291, 85, 85, 82, 82, - - 136, 83, 65, 86, 140, 291, 131, 86, 65, 83, - 88, 88, 65, 132, 159, 141, 104, 104, 104, 104, - 158, 137, 146, 147, 155, 148, 111, 111, 65, 149, - 113, 113, 132, 116, 116, 65, 150, 151, 152, 65, - 65, 65, 65, 65, 180, 156, 65, 65, 65, 65, - 65, 160, 162, 163, 65, 181, 65, 166, 65, 65, - 65, 194, 208, 65, 206, 65, 164, 165, 190, 187, - 195, 65, 186, 196, 65, 191, 65, 65, 212, 65, - 65, 210, 65, 207, 211, 213, 65, 65, 65, 65, - 215, 221, 65, 65, 65, 224, 223, 65, 222, 65, - - 225, 65, 226, 235, 227, 65, 232, 237, 236, 65, - 65, 65, 228, 65, 65, 233, 65, 65, 238, 241, - 65, 240, 65, 65, 65, 245, 65, 242, 247, 246, - 65, 65, 65, 65, 65, 65, 249, 250, 243, 255, - 254, 251, 65, 253, 65, 65, 252, 259, 256, 65, - 260, 65, 65, 65, 257, 65, 65, 65, 65, 262, - 258, 65, 263, 261, 65, 269, 265, 264, 267, 270, - 266, 271, 268, 65, 272, 273, 65, 65, 274, 65, - 65, 65, 275, 65, 65, 65, 65, 65, 65, 65, - 65, 65, 278, 65, 65, 284, 65, 276, 277, 286, - - 282, 65, 283, 65, 248, 279, 280, 281, 288, 65, - 289, 244, 285, 287, 290, 39, 39, 39, 39, 39, + 20, 20, 20, 20, 20, 34, 35, 53, 36, 37, + 40, 40, 40, 40, 63, 63, 63, 63, 53, 65, + 65, 41, 68, 41, 65, 65, 121, 68, 68, 68, + 68, 68, 68, 68, 68, 68, 73, 74, 76, 54, + 125, 78, 82, 82, 80, 38, 38, 38, 43, 43, + 54, 71, 44, 45, 75, 46, 77, 72, 81, 79, + + 47, 82, 82, 48, 49, 83, 83, 83, 85, 85, + 88, 88, 91, 91, 94, 94, 94, 94, 68, 86, + 212, 89, 68, 92, 68, 50, 68, 51, 43, 43, + 116, 116, 44, 45, 68, 46, 108, 108, 108, 108, + 47, 118, 118, 48, 49, 110, 110, 122, 110, 111, + 111, 111, 111, 68, 120, 120, 110, 110, 67, 68, + 123, 68, 68, 68, 146, 50, 68, 51, 56, 56, + 68, 126, 57, 57, 124, 57, 128, 129, 68, 68, + 58, 227, 127, 57, 57, 147, 130, 68, 131, 133, + 82, 82, 83, 83, 83, 85, 85, 91, 91, 162, + + 132, 91, 91, 88, 88, 59, 86, 59, 56, 56, + 295, 295, 57, 57, 89, 57, 88, 88, 85, 85, + 58, 295, 68, 57, 57, 150, 68, 89, 68, 86, + 94, 94, 94, 94, 116, 116, 151, 108, 108, 108, + 108, 110, 110, 160, 110, 59, 68, 59, 95, 118, + 118, 68, 110, 110, 120, 120, 68, 96, 97, 98, + 165, 99, 68, 68, 68, 100, 68, 164, 101, 68, + 68, 68, 102, 103, 104, 105, 135, 136, 159, 137, + 167, 166, 173, 138, 68, 170, 139, 169, 163, 168, + 140, 141, 142, 111, 111, 111, 111, 190, 68, 68, + + 68, 68, 68, 174, 68, 68, 191, 68, 68, 68, + 68, 68, 198, 216, 210, 199, 194, 200, 214, 215, + 217, 68, 68, 68, 68, 68, 195, 68, 68, 211, + 68, 68, 68, 226, 219, 68, 225, 228, 68, 68, + 229, 239, 231, 68, 241, 230, 236, 240, 68, 68, + 232, 68, 68, 237, 68, 68, 242, 245, 68, 68, + 244, 68, 68, 68, 249, 246, 251, 68, 68, 250, + 68, 68, 68, 68, 68, 254, 258, 247, 253, 255, + 68, 68, 259, 256, 68, 263, 68, 257, 260, 68, + 264, 68, 261, 68, 68, 68, 271, 68, 266, 262, + + 68, 68, 265, 68, 267, 269, 68, 268, 273, 270, + 272, 274, 68, 276, 275, 68, 68, 278, 277, 283, + 68, 68, 68, 68, 68, 68, 68, 279, 68, 68, + 68, 282, 68, 68, 288, 68, 280, 281, 290, 286, + 68, 287, 68, 68, 252, 68, 284, 285, 292, 248, + 294, 289, 291, 243, 293, 39, 39, 39, 39, 39, 39, 39, 39, 39, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 54, 54, 54, 54, 54, 54, 54, 54, - 54, 56, 56, 56, 56, 56, 56, 56, 56, 56, - 58, 58, 58, 58, 58, 58, 58, 58, 58, 60, - 60, 60, 60, 60, 60, 60, 60, 60, 62, 62, - 62, 62, 62, 62, 62, 62, 62, 66, 66, 81, - 81, 81, 81, 81, 81, 81, 81, 81, 84, 84, - - 84, 84, 84, 84, 84, 84, 84, 87, 87, 87, - 87, 87, 87, 87, 87, 87, 90, 90, 239, 90, - 234, 90, 90, 103, 103, 103, 231, 103, 103, 103, - 103, 103, 105, 105, 105, 105, 105, 105, 105, 108, - 108, 108, 108, 108, 108, 108, 230, 108, 110, 229, - 110, 110, 110, 110, 110, 110, 110, 112, 65, 112, - 112, 112, 112, 112, 112, 112, 114, 114, 114, 114, - 114, 114, 114, 65, 114, 130, 130, 130, 130, 130, - 130, 220, 130, 130, 219, 218, 217, 216, 214, 209, - 205, 204, 203, 202, 201, 200, 199, 198, 197, 65, - - 193, 192, 189, 188, 185, 184, 183, 182, 179, 178, - 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, - 167, 86, 157, 65, 154, 153, 136, 145, 144, 143, - 142, 139, 138, 135, 134, 133, 86, 65, 115, 109, - 102, 64, 67, 65, 64, 291, 63, 63, 57, 57, - 19, 291, 291, 291, 291, 291, 291, 291, 291, 291, - 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, - 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, - 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, - 291, 291, 291, 291, 291, 291 - + 42, 42, 42, 52, 52, 52, 52, 52, 52, 52, + 52, 52, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 60, 60, 60, 60, 60, 60, 60, 60, 60, + + 62, 62, 62, 62, 62, 62, 62, 62, 62, 64, + 64, 64, 64, 64, 64, 64, 64, 64, 69, 69, + 84, 84, 84, 84, 84, 84, 84, 84, 84, 87, + 87, 87, 87, 87, 87, 87, 87, 87, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 93, 238, 235, + 93, 234, 93, 93, 107, 107, 107, 233, 107, 107, + 107, 107, 107, 109, 68, 109, 109, 109, 109, 109, + 110, 68, 110, 110, 110, 110, 110, 113, 113, 113, + 113, 113, 113, 113, 224, 113, 115, 223, 115, 115, + 115, 115, 115, 115, 115, 117, 222, 117, 117, 117, + + 117, 117, 117, 117, 134, 134, 134, 134, 134, 134, + 221, 134, 134, 220, 218, 213, 209, 208, 207, 206, + 205, 204, 203, 202, 201, 68, 197, 196, 193, 192, + 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, + 179, 178, 177, 176, 175, 172, 171, 89, 161, 68, + 158, 157, 156, 155, 154, 153, 152, 149, 148, 145, + 144, 143, 89, 68, 119, 114, 112, 106, 67, 70, + 68, 67, 295, 66, 66, 61, 61, 19, 295, 295, + 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, + 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, + + 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, + 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, + 295, 295, 295 } ; -static yyconst flex_int32_t yy_chk[697] = +static yyconst flex_int32_t yy_chk[724] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 7, 2, 2, - 3, 3, 4, 4, 28, 9, 10, 25, 8, 13, - 13, 3, 26, 4, 14, 14, 15, 15, 16, 16, - 34, 34, 30, 32, 311, 28, 26, 68, 25, 7, - 9, 10, 9, 10, 25, 2, 2, 2, 5, 5, - 8, 5, 27, 29, 30, 31, 5, 32, 68, 5, - - 5, 124, 27, 29, 33, 31, 35, 35, 38, 38, - 38, 39, 39, 59, 59, 124, 33, 40, 40, 61, - 61, 5, 39, 5, 6, 6, 69, 6, 40, 290, - 33, 72, 6, 41, 41, 6, 6, 52, 52, 52, - 52, 55, 64, 64, 41, 71, 64, 70, 74, 72, - 55, 73, 69, 78, 55, 75, 71, 6, 76, 6, - 46, 74, 70, 78, 79, 79, 75, 77, 286, 46, - 46, 46, 73, 46, 285, 75, 76, 46, 88, 88, - 46, 80, 80, 80, 46, 46, 46, 46, 122, 77, - 81, 81, 82, 82, 83, 83, 85, 85, 87, 87, - - 95, 81, 118, 82, 98, 83, 91, 85, 121, 87, - 89, 89, 279, 91, 122, 98, 104, 104, 104, 104, - 121, 95, 106, 106, 118, 106, 111, 111, 119, 106, - 113, 113, 106, 116, 116, 123, 106, 106, 106, 126, - 125, 127, 129, 128, 150, 119, 155, 156, 160, 164, - 159, 123, 125, 126, 186, 150, 165, 129, 166, 187, - 188, 164, 188, 194, 186, 206, 127, 128, 159, 156, - 165, 190, 155, 166, 191, 160, 209, 210, 192, 211, - 213, 190, 212, 187, 191, 192, 214, 215, 221, 224, - 194, 206, 222, 225, 226, 211, 210, 227, 209, 229, - - 212, 230, 213, 224, 214, 232, 221, 226, 225, 233, - 236, 237, 215, 240, 238, 222, 241, 244, 227, 230, - 242, 229, 243, 247, 246, 236, 245, 232, 238, 237, - 248, 249, 252, 250, 253, 254, 240, 241, 233, 246, - 245, 242, 258, 244, 255, 259, 243, 250, 247, 257, - 252, 262, 260, 261, 248, 263, 265, 264, 267, 254, - 249, 269, 255, 253, 268, 262, 258, 257, 260, 263, - 259, 264, 261, 270, 265, 267, 272, 271, 268, 273, - 275, 277, 269, 278, 280, 281, 282, 284, 288, 283, - 287, 276, 272, 289, 274, 281, 266, 270, 271, 283, - - 278, 256, 280, 251, 239, 273, 275, 277, 287, 235, - 288, 234, 282, 284, 289, 292, 292, 292, 292, 292, - 292, 292, 292, 292, 293, 293, 293, 293, 293, 293, - 293, 293, 293, 294, 294, 294, 294, 294, 294, 294, - 294, 294, 295, 295, 295, 295, 295, 295, 295, 295, - 295, 296, 296, 296, 296, 296, 296, 296, 296, 296, - 297, 297, 297, 297, 297, 297, 297, 297, 297, 298, - 298, 298, 298, 298, 298, 298, 298, 298, 299, 299, - 299, 299, 299, 299, 299, 299, 299, 300, 300, 301, - 301, 301, 301, 301, 301, 301, 301, 301, 302, 302, - - 302, 302, 302, 302, 302, 302, 302, 303, 303, 303, - 303, 303, 303, 303, 303, 303, 304, 304, 228, 304, - 223, 304, 304, 305, 305, 305, 218, 305, 305, 305, - 305, 305, 306, 306, 306, 306, 306, 306, 306, 307, - 307, 307, 307, 307, 307, 307, 217, 307, 308, 216, - 308, 308, 308, 308, 308, 308, 308, 309, 208, 309, - 309, 309, 309, 309, 309, 309, 310, 310, 310, 310, - 310, 310, 310, 207, 310, 312, 312, 312, 312, 312, - 312, 205, 312, 312, 200, 198, 196, 195, 193, 189, - 185, 183, 182, 181, 180, 171, 169, 168, 167, 163, - - 162, 161, 158, 157, 154, 153, 152, 151, 149, 148, - 147, 146, 143, 142, 141, 140, 139, 137, 133, 132, - 131, 130, 120, 117, 115, 109, 107, 102, 101, 100, - 99, 97, 96, 94, 93, 92, 84, 66, 63, 57, - 47, 37, 24, 23, 22, 19, 18, 17, 12, 11, - 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, - 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, - 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, - 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, - 291, 291, 291, 291, 291, 291 - + 3, 3, 4, 4, 13, 13, 14, 14, 8, 15, + 15, 3, 26, 4, 16, 16, 314, 27, 29, 74, + 25, 31, 33, 28, 30, 32, 26, 27, 29, 7, + 74, 31, 34, 34, 33, 2, 2, 2, 5, 5, + 8, 25, 5, 5, 28, 5, 30, 25, 33, 32, + + 5, 35, 35, 5, 5, 38, 38, 38, 39, 39, + 40, 40, 41, 41, 43, 43, 43, 43, 192, 39, + 192, 40, 294, 41, 290, 5, 71, 5, 6, 6, + 63, 63, 6, 6, 72, 6, 53, 53, 53, 53, + 6, 65, 65, 6, 6, 55, 55, 71, 55, 56, + 56, 56, 56, 75, 67, 67, 55, 55, 67, 73, + 72, 76, 214, 77, 99, 6, 78, 6, 9, 9, + 79, 75, 9, 9, 73, 9, 77, 78, 80, 81, + 9, 214, 76, 9, 9, 99, 78, 125, 79, 81, + 82, 82, 83, 83, 83, 84, 84, 91, 91, 125, + + 80, 92, 92, 85, 85, 9, 84, 9, 10, 10, + 86, 86, 10, 10, 85, 10, 88, 88, 90, 90, + 10, 86, 289, 10, 10, 102, 123, 88, 283, 90, + 94, 94, 94, 94, 116, 116, 102, 108, 108, 108, + 108, 109, 109, 123, 109, 10, 128, 10, 47, 118, + 118, 127, 109, 109, 120, 120, 122, 47, 47, 47, + 128, 47, 126, 132, 131, 47, 130, 127, 47, 129, + 133, 159, 47, 47, 47, 47, 95, 95, 122, 95, + 130, 129, 137, 95, 160, 133, 95, 132, 126, 131, + 95, 95, 95, 111, 111, 111, 111, 159, 163, 164, + + 168, 169, 170, 137, 190, 191, 160, 198, 194, 195, + 210, 213, 168, 196, 190, 169, 163, 170, 194, 195, + 196, 215, 216, 217, 218, 219, 164, 228, 225, 191, + 226, 230, 229, 213, 198, 231, 210, 215, 233, 234, + 216, 228, 218, 236, 230, 217, 225, 229, 237, 240, + 219, 241, 242, 226, 245, 244, 231, 234, 246, 247, + 233, 248, 249, 251, 240, 236, 242, 250, 252, 241, + 253, 254, 256, 257, 258, 245, 249, 237, 244, 246, + 264, 262, 250, 247, 263, 254, 259, 248, 251, 261, + 256, 265, 252, 277, 266, 269, 264, 267, 258, 253, + + 268, 271, 257, 272, 259, 262, 273, 261, 266, 263, + 265, 267, 274, 269, 268, 276, 275, 272, 271, 277, + 279, 281, 282, 284, 285, 286, 288, 273, 287, 293, + 291, 276, 292, 280, 285, 278, 274, 275, 287, 282, + 270, 284, 260, 255, 243, 239, 279, 281, 291, 238, + 293, 286, 288, 232, 292, 296, 296, 296, 296, 296, + 296, 296, 296, 296, 297, 297, 297, 297, 297, 297, + 297, 297, 297, 298, 298, 298, 298, 298, 298, 298, + 298, 298, 299, 299, 299, 299, 299, 299, 299, 299, + 299, 300, 300, 300, 300, 300, 300, 300, 300, 300, + + 301, 301, 301, 301, 301, 301, 301, 301, 301, 302, + 302, 302, 302, 302, 302, 302, 302, 302, 303, 303, + 304, 304, 304, 304, 304, 304, 304, 304, 304, 305, + 305, 305, 305, 305, 305, 305, 305, 305, 306, 306, + 306, 306, 306, 306, 306, 306, 306, 307, 227, 222, + 307, 221, 307, 307, 308, 308, 308, 220, 308, 308, + 308, 308, 308, 309, 212, 309, 309, 309, 309, 309, + 310, 211, 310, 310, 310, 310, 310, 311, 311, 311, + 311, 311, 311, 311, 209, 311, 312, 207, 312, 312, + 312, 312, 312, 312, 312, 313, 202, 313, 313, 313, + + 313, 313, 313, 313, 315, 315, 315, 315, 315, 315, + 200, 315, 315, 199, 197, 193, 189, 187, 182, 180, + 179, 178, 177, 176, 174, 167, 166, 165, 162, 161, + 158, 157, 156, 153, 152, 151, 150, 149, 147, 143, + 142, 141, 140, 139, 138, 136, 135, 134, 124, 121, + 119, 114, 112, 106, 105, 104, 103, 101, 100, 98, + 97, 96, 87, 69, 66, 61, 58, 48, 37, 24, + 23, 22, 19, 18, 17, 12, 11, 295, 295, 295, + 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, + 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, + + 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, + 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, + 295, 295, 295 } ; static yy_state_type yy_last_accepting_state; @@ -746,22 +752,22 @@ char *gabc_score_determination_text; * This file implements the score lexer. * * Gregorio score determination in gabc input. - * Copyright (C) 2006-2015 The Gregorio Project (see CONTRIBUTORS.md) + * Copyright (C) 2006-2016 The Gregorio Project (see CONTRIBUTORS.md) * * This file is part of Gregorio. - * + * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, either version 3 of the License, or (at your option) * any later version. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see <http://www.gnu.org/licenses/>. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" @@ -777,9 +783,35 @@ char *gabc_score_determination_text; #include "gabc-score-determination.h" #include "gabc-score-determination-y.h" -static unsigned char style_stack = 0; static bool eof_found = false; +#define START_STYLE(STYLE) \ + if (*styles & SB_ ## STYLE) { \ + gregorio_messagef("gabc_score_determination_lex", VERBOSITY_ERROR, 0, \ + _("style already started: %s"), gabc_score_determination_text); \ + } else { \ + *styles ^= SB_ ## STYLE; \ + return STYLE ## _BEGIN; \ + } + +#define END_STYLE(STYLE) \ + if (*styles & SB_ ## STYLE) { \ + *styles ^= SB_ ## STYLE; \ + return STYLE ## _END; \ + } else { \ + gregorio_messagef("gabc_score_determination_lex", VERBOSITY_ERROR, 0, \ + _("style not started: %s"), gabc_score_determination_text); \ + } + +#define RETURN_CHARACTERS \ + gabc_score_determination_lval.text = \ + gregorio_strdup(gabc_score_determination_text); \ + return CHARACTERS + +#define RETURN_SPACE \ + gabc_score_determination_lval.text = gregorio_strdup(" "); \ + return CHARACTERS + #define YY_NO_INPUT #define YY_INPUT(buf,result,max_size) \ @@ -827,13 +859,13 @@ static bool eof_found = false; for (a) single-line values, ending with a semicolon at end of line or a double semicolon, (b) multi-line values, which end at a double semicolon. */ -#line 831 "gabc/gabc-score-determination-l.c" +#line 863 "gabc/gabc-score-determination-l.c" #define INITIAL 0 #define attribute 1 #define score 2 #define notes 3 -#define style 4 +#define sp 4 #define verb 5 #define comments 6 #define inicomments 7 @@ -1058,9 +1090,9 @@ YY_DECL } { -#line 108 "gabc/gabc-score-determination.l" +#line 134 "gabc/gabc-score-determination.l" -#line 1064 "gabc/gabc-score-determination-l.c" +#line 1096 "gabc/gabc-score-determination-l.c" while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ { @@ -1088,13 +1120,13 @@ 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 >= 292 ) + if ( yy_current_state >= 296 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } - while ( yy_base[yy_current_state] != 651 ); + while ( yy_base[yy_current_state] != 678 ); yy_find_action: yy_act = yy_accept[yy_current_state]; @@ -1120,7 +1152,7 @@ do_action: /* This label is used only to access EOF actions. */ case 1: YY_RULE_SETUP -#line 109 "gabc/gabc-score-determination.l" +#line 135 "gabc/gabc-score-determination.l" { /* BOM written by a lot of windows softwares when they write UTF-8 */ } @@ -1128,14 +1160,14 @@ YY_RULE_SETUP case 2: /* rule 2 can match eol */ YY_RULE_SETUP -#line 112 "gabc/gabc-score-determination.l" +#line 138 "gabc/gabc-score-determination.l" { /* ignoring empty lines */ } YY_BREAK case 3: YY_RULE_SETUP -#line 115 "gabc/gabc-score-determination.l" +#line 141 "gabc/gabc-score-determination.l" { BEGIN(inicomments); } @@ -1143,21 +1175,21 @@ YY_RULE_SETUP case 4: /* rule 4 can match eol */ YY_RULE_SETUP -#line 118 "gabc/gabc-score-determination.l" +#line 144 "gabc/gabc-score-determination.l" { BEGIN(INITIAL); } YY_BREAK case 5: YY_RULE_SETUP -#line 121 "gabc/gabc-score-determination.l" +#line 147 "gabc/gabc-score-determination.l" { /* ignored */ } YY_BREAK case 6: YY_RULE_SETUP -#line 124 "gabc/gabc-score-determination.l" +#line 150 "gabc/gabc-score-determination.l" { BEGIN(attribute); return COLON; @@ -1166,7 +1198,7 @@ YY_RULE_SETUP case 7: /* rule 7 can match eol */ YY_RULE_SETUP -#line 128 "gabc/gabc-score-determination.l" +#line 154 "gabc/gabc-score-determination.l" { gabc_score_determination_lval.text = gregorio_strdup(gabc_score_determination_text); @@ -1176,7 +1208,7 @@ YY_RULE_SETUP case 8: /* rule 8 can match eol */ YY_RULE_SETUP -#line 133 "gabc/gabc-score-determination.l" +#line 159 "gabc/gabc-score-determination.l" { BEGIN(INITIAL); return SEMICOLON; @@ -1184,7 +1216,7 @@ YY_RULE_SETUP YY_BREAK case 9: YY_RULE_SETUP -#line 137 "gabc/gabc-score-determination.l" +#line 163 "gabc/gabc-score-determination.l" { gabc_score_determination_lval.character = gabc_score_determination_text[5]; return DEF_MACRO; @@ -1192,7 +1224,7 @@ YY_RULE_SETUP YY_BREAK case 10: YY_RULE_SETUP -#line 141 "gabc/gabc-score-determination.l" +#line 167 "gabc/gabc-score-determination.l" { gabc_score_determination_lval.text = gregorio_strdup(gabc_score_determination_text); @@ -1201,7 +1233,7 @@ YY_RULE_SETUP YY_BREAK case 11: YY_RULE_SETUP -#line 146 "gabc/gabc-score-determination.l" +#line 172 "gabc/gabc-score-determination.l" { gabc_score_determination_lval.text = gregorio_strdup(gabc_score_determination_text); @@ -1210,7 +1242,7 @@ YY_RULE_SETUP YY_BREAK case 12: YY_RULE_SETUP -#line 151 "gabc/gabc-score-determination.l" +#line 177 "gabc/gabc-score-determination.l" { gabc_score_determination_lval.text = gregorio_strdup(gabc_score_determination_text); @@ -1219,15 +1251,15 @@ YY_RULE_SETUP YY_BREAK case 13: YY_RULE_SETUP -#line 156 "gabc/gabc-score-determination.l" +#line 182 "gabc/gabc-score-determination.l" { - /* DEPRECATED by 4.1 */ + /* DEPRECATED for removal in 5.0 */ return INITIAL_STYLE; } YY_BREAK case 14: YY_RULE_SETUP -#line 160 "gabc/gabc-score-determination.l" +#line 186 "gabc/gabc-score-determination.l" { gabc_score_determination_lval.text = gregorio_strdup(gabc_score_determination_text); @@ -1236,7 +1268,7 @@ YY_RULE_SETUP YY_BREAK case 15: YY_RULE_SETUP -#line 165 "gabc/gabc-score-determination.l" +#line 191 "gabc/gabc-score-determination.l" { gabc_score_determination_lval.text = gregorio_strdup(gabc_score_determination_text); @@ -1245,7 +1277,7 @@ YY_RULE_SETUP YY_BREAK case 16: YY_RULE_SETUP -#line 170 "gabc/gabc-score-determination.l" +#line 196 "gabc/gabc-score-determination.l" { gabc_score_determination_lval.text = gregorio_strdup(gabc_score_determination_text); @@ -1254,7 +1286,7 @@ YY_RULE_SETUP YY_BREAK case 17: YY_RULE_SETUP -#line 175 "gabc/gabc-score-determination.l" +#line 201 "gabc/gabc-score-determination.l" { gabc_score_determination_lval.text = gregorio_strdup(gabc_score_determination_text); @@ -1263,7 +1295,7 @@ YY_RULE_SETUP YY_BREAK case 18: YY_RULE_SETUP -#line 180 "gabc/gabc-score-determination.l" +#line 206 "gabc/gabc-score-determination.l" { gabc_score_determination_lval.text = gregorio_strdup(gabc_score_determination_text); @@ -1272,7 +1304,7 @@ YY_RULE_SETUP YY_BREAK case 19: YY_RULE_SETUP -#line 185 "gabc/gabc-score-determination.l" +#line 211 "gabc/gabc-score-determination.l" { gabc_score_determination_lval.text = gregorio_strdup(gabc_score_determination_text); @@ -1281,7 +1313,7 @@ YY_RULE_SETUP YY_BREAK case 20: YY_RULE_SETUP -#line 190 "gabc/gabc-score-determination.l" +#line 216 "gabc/gabc-score-determination.l" { gabc_score_determination_lval.text = gregorio_strdup(gabc_score_determination_text); @@ -1290,7 +1322,7 @@ YY_RULE_SETUP YY_BREAK case 21: YY_RULE_SETUP -#line 195 "gabc/gabc-score-determination.l" +#line 221 "gabc/gabc-score-determination.l" { gabc_score_determination_lval.text = gregorio_strdup(gabc_score_determination_text); @@ -1299,7 +1331,7 @@ YY_RULE_SETUP YY_BREAK case 22: YY_RULE_SETUP -#line 200 "gabc/gabc-score-determination.l" +#line 226 "gabc/gabc-score-determination.l" { gabc_score_determination_lval.text = gregorio_strdup(gabc_score_determination_text); @@ -1308,7 +1340,7 @@ YY_RULE_SETUP YY_BREAK case 23: YY_RULE_SETUP -#line 205 "gabc/gabc-score-determination.l" +#line 231 "gabc/gabc-score-determination.l" { gabc_score_determination_lval.text = gregorio_strdup(gabc_score_determination_text); @@ -1318,7 +1350,7 @@ YY_RULE_SETUP case 24: /* rule 24 can match eol */ YY_RULE_SETUP -#line 210 "gabc/gabc-score-determination.l" +#line 236 "gabc/gabc-score-determination.l" { BEGIN(score); return END_OF_DEFINITIONS; @@ -1326,7 +1358,7 @@ YY_RULE_SETUP YY_BREAK case 25: YY_RULE_SETUP -#line 214 "gabc/gabc-score-determination.l" +#line 240 "gabc/gabc-score-determination.l" { gregorio_messagef("det_score", VERBOSITY_ERROR, 0, _("unrecognized character: \"%c\" in definition part"), @@ -1336,377 +1368,323 @@ YY_RULE_SETUP case 26: /* rule 26 can match eol */ YY_RULE_SETUP -#line 219 "gabc/gabc-score-determination.l" +#line 245 "gabc/gabc-score-determination.l" { - gabc_score_determination_lval.text = - gregorio_strdup(gabc_score_determination_text); - return CHARACTERS; + RETURN_SPACE; } YY_BREAK case 27: YY_RULE_SETUP -#line 224 "gabc/gabc-score-determination.l" +#line 248 "gabc/gabc-score-determination.l" { - return HYPHEN; + RETURN_CHARACTERS; } YY_BREAK case 28: YY_RULE_SETUP -#line 227 "gabc/gabc-score-determination.l" +#line 251 "gabc/gabc-score-determination.l" { - return NLBA_B; + return HYPHEN; } YY_BREAK case 29: YY_RULE_SETUP -#line 230 "gabc/gabc-score-determination.l" +#line 254 "gabc/gabc-score-determination.l" { - return NLBA_E; + return NLBA_B; } YY_BREAK case 30: YY_RULE_SETUP -#line 233 "gabc/gabc-score-determination.l" +#line 257 "gabc/gabc-score-determination.l" { - BEGIN(style); - style_stack ++; - return I_BEGIN; + return NLBA_E; } YY_BREAK case 31: YY_RULE_SETUP -#line 238 "gabc/gabc-score-determination.l" +#line 260 "gabc/gabc-score-determination.l" { - style_stack --; - if (style_stack == 0) { - BEGIN(score); - } - return I_END; + START_STYLE(I); } YY_BREAK case 32: YY_RULE_SETUP -#line 245 "gabc/gabc-score-determination.l" +#line 263 "gabc/gabc-score-determination.l" { - BEGIN(style); - style_stack ++; - return TT_BEGIN; + END_STYLE(I); } YY_BREAK case 33: YY_RULE_SETUP -#line 250 "gabc/gabc-score-determination.l" +#line 266 "gabc/gabc-score-determination.l" { - style_stack --; - if (style_stack == 0) { - BEGIN(score); - } - return TT_END; + START_STYLE(TT); } YY_BREAK case 34: YY_RULE_SETUP -#line 257 "gabc/gabc-score-determination.l" +#line 269 "gabc/gabc-score-determination.l" { - BEGIN(style); - style_stack ++; - return UL_BEGIN; + END_STYLE(TT); } YY_BREAK case 35: YY_RULE_SETUP -#line 262 "gabc/gabc-score-determination.l" +#line 272 "gabc/gabc-score-determination.l" { - style_stack --; - if (style_stack == 0) { - BEGIN(score); - } - return UL_END; + START_STYLE(UL); } YY_BREAK case 36: YY_RULE_SETUP -#line 269 "gabc/gabc-score-determination.l" +#line 275 "gabc/gabc-score-determination.l" { - BEGIN(style); - style_stack ++; - return C_BEGIN; + END_STYLE(UL); } YY_BREAK case 37: YY_RULE_SETUP -#line 274 "gabc/gabc-score-determination.l" +#line 278 "gabc/gabc-score-determination.l" { - style_stack --; - if (style_stack == 0) { - BEGIN(score); - } - return C_END; + START_STYLE(C); } YY_BREAK case 38: YY_RULE_SETUP #line 281 "gabc/gabc-score-determination.l" { - BEGIN(style); - style_stack ++; - return B_BEGIN; + END_STYLE(C); } YY_BREAK case 39: YY_RULE_SETUP -#line 286 "gabc/gabc-score-determination.l" +#line 284 "gabc/gabc-score-determination.l" { - style_stack --; - if (style_stack == 0) { - BEGIN(score); - } - return B_END; + START_STYLE(B); } YY_BREAK case 40: YY_RULE_SETUP -#line 293 "gabc/gabc-score-determination.l" +#line 287 "gabc/gabc-score-determination.l" { - BEGIN(style); - style_stack ++; - return SC_BEGIN; + END_STYLE(B); } YY_BREAK case 41: YY_RULE_SETUP -#line 298 "gabc/gabc-score-determination.l" +#line 290 "gabc/gabc-score-determination.l" { - style_stack --; - if (style_stack == 0) { - BEGIN(score); - } - return SC_END; + START_STYLE(SC); } YY_BREAK case 42: YY_RULE_SETUP -#line 305 "gabc/gabc-score-determination.l" +#line 293 "gabc/gabc-score-determination.l" { - BEGIN(style); - style_stack ++; - return ELISION_BEGIN; + END_STYLE(SC); } YY_BREAK case 43: YY_RULE_SETUP -#line 310 "gabc/gabc-score-determination.l" +#line 296 "gabc/gabc-score-determination.l" { - style_stack --; - if (style_stack == 0) { - BEGIN(score); - } - return ELISION_END; + START_STYLE(ELISION); } YY_BREAK case 44: YY_RULE_SETUP -#line 317 "gabc/gabc-score-determination.l" +#line 299 "gabc/gabc-score-determination.l" { - BEGIN(style); - style_stack ++; - return SP_BEGIN; + END_STYLE(ELISION); } YY_BREAK case 45: YY_RULE_SETUP -#line 322 "gabc/gabc-score-determination.l" +#line 302 "gabc/gabc-score-determination.l" { - style_stack --; - if (style_stack == 0) { - BEGIN(score); - } - return SP_END; + BEGIN(sp); + return SP_BEGIN; } YY_BREAK case 46: -/* rule 46 can match eol */ YY_RULE_SETUP -#line 329 "gabc/gabc-score-determination.l" +#line 306 "gabc/gabc-score-determination.l" { - gabc_score_determination_lval.text = - gregorio_strdup(gabc_score_determination_text); - return CHARACTERS; + BEGIN(score); + return SP_END; } YY_BREAK case 47: +/* rule 47 can match eol */ YY_RULE_SETUP -#line 334 "gabc/gabc-score-determination.l" +#line 310 "gabc/gabc-score-determination.l" { - BEGIN(comments); + RETURN_SPACE; } YY_BREAK case 48: -/* rule 48 can match eol */ YY_RULE_SETUP -#line 337 "gabc/gabc-score-determination.l" +#line 313 "gabc/gabc-score-determination.l" { - BEGIN(score); + RETURN_CHARACTERS; } YY_BREAK case 49: YY_RULE_SETUP -#line 340 "gabc/gabc-score-determination.l" +#line 316 "gabc/gabc-score-determination.l" { - /* ignored */ + BEGIN(comments); } YY_BREAK case 50: +/* rule 50 can match eol */ YY_RULE_SETUP -#line 343 "gabc/gabc-score-determination.l" +#line 319 "gabc/gabc-score-determination.l" { - BEGIN(verb); - return VERB_BEGIN; + BEGIN(score); } YY_BREAK case 51: YY_RULE_SETUP -#line 347 "gabc/gabc-score-determination.l" +#line 322 "gabc/gabc-score-determination.l" { - if (style_stack == 0) { - BEGIN(score); - } else { - BEGIN(style); - } - return VERB_END; + /* ignored */ } YY_BREAK case 52: -/* rule 52 can match eol */ YY_RULE_SETUP -#line 355 "gabc/gabc-score-determination.l" +#line 325 "gabc/gabc-score-determination.l" { - gabc_score_determination_lval.text = - gregorio_strdup(gabc_score_determination_text); - return CHARACTERS; + BEGIN(verb); + return VERB_BEGIN; } YY_BREAK case 53: YY_RULE_SETUP -#line 360 "gabc/gabc-score-determination.l" +#line 329 "gabc/gabc-score-determination.l" { - gabc_score_determination_lval.text = - gregorio_strdup(gabc_score_determination_text); - return CHARACTERS; + BEGIN(score); + return VERB_END; } YY_BREAK case 54: +/* rule 54 can match eol */ YY_RULE_SETUP -#line 365 "gabc/gabc-score-determination.l" +#line 333 "gabc/gabc-score-determination.l" { - return CENTER_BEGIN; + RETURN_CHARACTERS; } YY_BREAK case 55: YY_RULE_SETUP -#line 368 "gabc/gabc-score-determination.l" +#line 336 "gabc/gabc-score-determination.l" { - return CENTER_END; + RETURN_CHARACTERS; } YY_BREAK case 56: YY_RULE_SETUP -#line 371 "gabc/gabc-score-determination.l" +#line 339 "gabc/gabc-score-determination.l" { - BEGIN(alt); - return ALT_BEGIN; + return CENTER_BEGIN; } YY_BREAK case 57: -/* rule 57 can match eol */ YY_RULE_SETUP -#line 375 "gabc/gabc-score-determination.l" +#line 342 "gabc/gabc-score-determination.l" { - gabc_score_determination_lval.text = - gregorio_strdup(gabc_score_determination_text); - return CHARACTERS; + return CENTER_END; } YY_BREAK case 58: YY_RULE_SETUP -#line 380 "gabc/gabc-score-determination.l" +#line 345 "gabc/gabc-score-determination.l" +{ + BEGIN(alt); + return ALT_BEGIN; + } + YY_BREAK +case 59: +YY_RULE_SETUP +#line 349 "gabc/gabc-score-determination.l" { BEGIN(score); return ALT_END; } YY_BREAK -case 59: +case 60: YY_RULE_SETUP -#line 384 "gabc/gabc-score-determination.l" +#line 353 "gabc/gabc-score-determination.l" { return EUOUAE_B; } YY_BREAK -case 60: +case 61: YY_RULE_SETUP -#line 387 "gabc/gabc-score-determination.l" +#line 356 "gabc/gabc-score-determination.l" { return EUOUAE_E; } YY_BREAK -case 61: +case 62: YY_RULE_SETUP -#line 390 "gabc/gabc-score-determination.l" +#line 359 "gabc/gabc-score-determination.l" { return TRANSLATION_CENTER_END; } YY_BREAK -case 62: +case 63: YY_RULE_SETUP -#line 393 "gabc/gabc-score-determination.l" +#line 362 "gabc/gabc-score-determination.l" { return TRANSLATION_BEGIN; } YY_BREAK -case 63: +case 64: YY_RULE_SETUP -#line 396 "gabc/gabc-score-determination.l" +#line 365 "gabc/gabc-score-determination.l" { return TRANSLATION_END; } YY_BREAK -case 64: +case 65: YY_RULE_SETUP -#line 399 "gabc/gabc-score-determination.l" +#line 368 "gabc/gabc-score-determination.l" { BEGIN(notes); return OPENING_BRACKET; } YY_BREAK -case 65: -/* rule 65 can match eol */ +case 66: +/* rule 66 can match eol */ YY_RULE_SETUP -#line 403 "gabc/gabc-score-determination.l" +#line 372 "gabc/gabc-score-determination.l" { gabc_score_determination_lval.text = gregorio_strdup(gabc_score_determination_text); return NOTES; } YY_BREAK -case 66: +case 67: YY_RULE_SETUP -#line 408 "gabc/gabc-score-determination.l" +#line 377 "gabc/gabc-score-determination.l" { return NABC_CUT; } YY_BREAK -case 67: +case 68: YY_RULE_SETUP -#line 411 "gabc/gabc-score-determination.l" +#line 380 "gabc/gabc-score-determination.l" { BEGIN(score); return CLOSING_BRACKET; } YY_BREAK -case 68: -/* rule 68 can match eol */ +case 69: +/* rule 69 can match eol */ YY_RULE_SETUP -#line 415 "gabc/gabc-score-determination.l" +#line 384 "gabc/gabc-score-determination.l" { BEGIN(score); return CLOSING_BRACKET_WITH_SPACE; @@ -1716,12 +1694,12 @@ case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(attribute): case YY_STATE_EOF(score): case YY_STATE_EOF(notes): -case YY_STATE_EOF(style): +case YY_STATE_EOF(sp): case YY_STATE_EOF(verb): case YY_STATE_EOF(comments): case YY_STATE_EOF(inicomments): case YY_STATE_EOF(alt): -#line 419 "gabc/gabc-score-determination.l" +#line 388 "gabc/gabc-score-determination.l" { if (!eof_found) { eof_found = true; @@ -1731,22 +1709,22 @@ case YY_STATE_EOF(alt): } } YY_BREAK -case 69: -/* rule 69 can match eol */ +case 70: +/* rule 70 can match eol */ YY_RULE_SETUP -#line 427 "gabc/gabc-score-determination.l" +#line 396 "gabc/gabc-score-determination.l" { gregorio_messagef("gabc_score_determination_lex", VERBOSITY_ERROR, 0, _("unrecognized character: \"%c\""), gabc_score_determination_text[0]); } YY_BREAK -case 70: +case 71: YY_RULE_SETUP -#line 432 "gabc/gabc-score-determination.l" +#line 401 "gabc/gabc-score-determination.l" ECHO; YY_BREAK -#line 1750 "gabc/gabc-score-determination-l.c" +#line 1728 "gabc/gabc-score-determination-l.c" case YY_END_OF_BUFFER: { @@ -2038,7 +2016,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 >= 292 ) + if ( yy_current_state >= 296 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; @@ -2066,11 +2044,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 >= 292 ) + if ( yy_current_state >= 296 ) 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 == 291); + yy_is_jam = (yy_current_state == 295); return yy_is_jam ? 0 : yy_current_state; } @@ -2719,7 +2697,7 @@ void gabc_score_determination_free (void * ptr ) #define YYTABLES_NAME "yytables" -#line 432 "gabc/gabc-score-determination.l" +#line 401 "gabc/gabc-score-determination.l" |