UNPKG

cucumber-for-jenkins

Version:

The unofficial JavaScript implementation of Cucumber.

964 lines (899 loc) 32.4 kB
/* line 1 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ ;(function() { /* line 117 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ /* line 11 "js/lib/gherkin/lexer/i18n/en.js" */ const _lexer_actions = [ 0, 1, 0, 1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 1, 8, 1, 9, 1, 10, 1, 11, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1, 21, 2, 2, 16, 2, 11, 0, 2, 12, 13, 2, 15, 0, 2, 15, 1, 2, 15, 14, 2, 15, 17, 2, 16, 4, 2, 16, 5, 2, 16, 6, 2, 16, 7, 2, 16, 8, 2, 16, 14, 2, 18, 19, 2, 20, 0, 2, 20, 1, 2, 20, 14, 2, 20, 17, 3, 3, 12, 13, 3, 9, 12, 13, 3, 10, 12, 13, 3, 11, 12, 13, 3, 12, 13, 16, 3, 15, 12, 13, 4, 2, 12, 13, 16, 4, 15, 0, 12, 13 ]; const _lexer_key_offsets = [ 0, 0, 19, 37, 38, 39, 43, 48, 53, 58, 63, 67, 71, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 92, 97, 104, 109, 110, 111, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 139, 141, 143, 145, 147, 149, 151, 153, 155, 157, 159, 161, 163, 165, 167, 169, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 204, 206, 208, 210, 212, 214, 216, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 238, 240, 242, 244, 246, 248, 250, 252, 254, 256, 258, 260, 262, 264, 266, 268, 270, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 292, 294, 296, 298, 300, 302, 304, 306, 308, 310, 312, 314, 316, 318, 320, 322, 324, 326, 330, 333, 335, 337, 339, 341, 343, 345, 347, 349, 351, 353, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 369, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 395, 397, 399, 401, 403, 405, 407, 409, 411, 413, 415, 417, 419, 421, 423, 425, 427, 429, 431, 433, 435, 437, 439, 441, 443, 445, 447, 449, 451, 453, 455, 457, 459, 461, 463, 465, 467, 469, 471, 472, 473, 474, 475, 476, 477, 478, 479, 494, 496, 498, 500, 502, 504, 506, 508, 510, 512, 514, 516, 518, 520, 522, 524, 526, 528, 531, 533, 535, 537, 539, 541, 543, 545, 547, 549, 551, 553, 555, 557, 559, 561, 563, 565, 567, 569, 571, 573, 575, 577, 579, 581, 583, 585, 588, 591, 593, 595, 597, 599, 601, 603, 605, 607, 609, 611, 613, 615, 616, 620, 626, 629, 631, 637, 655, 657, 659, 661, 663, 665, 667, 669, 671, 673, 675, 677, 679, 681, 683, 685, 687, 689, 691, 693, 695, 697, 699, 702, 705, 707, 709, 711, 713, 715, 717, 719, 721, 723, 725, 727, 729, 730, 731, 732 ]; const _lexer_trans_keys = [ 10, 32, 34, 35, 37, 42, 64, 65, 66, 69, 70, 71, 83, 84, 87, 124, 239, 9, 13, 10, 32, 34, 35, 37, 42, 64, 65, 66, 69, 70, 71, 83, 84, 87, 124, 9, 13, 34, 34, 10, 32, 9, 13, 10, 32, 34, 9, 13, 10, 32, 34, 9, 13, 10, 32, 34, 9, 13, 10, 32, 34, 9, 13, 10, 32, 9, 13, 10, 32, 9, 13, 10, 13, 10, 95, 70, 69, 65, 84, 85, 82, 69, 95, 69, 78, 68, 95, 37, 32, 10, 10, 13, 13, 32, 64, 9, 10, 9, 10, 13, 32, 64, 11, 12, 10, 32, 64, 9, 13, 110, 100, 97, 117, 99, 107, 103, 114, 111, 117, 110, 100, 58, 10, 10, 10, 32, 35, 37, 42, 64, 65, 66, 70, 71, 83, 84, 87, 9, 13, 10, 95, 10, 70, 10, 69, 10, 65, 10, 84, 10, 85, 10, 82, 10, 69, 10, 95, 10, 69, 10, 78, 10, 68, 10, 95, 10, 37, 10, 32, 10, 32, 34, 35, 37, 42, 64, 65, 66, 69, 70, 71, 83, 84, 87, 124, 9, 13, 120, 97, 109, 112, 108, 101, 115, 58, 10, 10, 10, 32, 35, 70, 124, 9, 13, 10, 101, 10, 97, 10, 116, 10, 117, 10, 114, 10, 101, 10, 58, 101, 97, 116, 117, 114, 101, 58, 10, 10, 10, 32, 35, 37, 64, 66, 69, 70, 83, 9, 13, 10, 95, 10, 70, 10, 69, 10, 65, 10, 84, 10, 85, 10, 82, 10, 69, 10, 95, 10, 69, 10, 78, 10, 68, 10, 95, 10, 37, 10, 97, 10, 99, 10, 107, 10, 103, 10, 114, 10, 111, 10, 117, 10, 110, 10, 100, 10, 58, 10, 120, 10, 97, 10, 109, 10, 112, 10, 108, 10, 101, 10, 115, 10, 101, 10, 97, 10, 116, 10, 117, 10, 114, 10, 101, 10, 99, 10, 101, 10, 110, 10, 97, 10, 114, 10, 105, 10, 111, 10, 32, 58, 115, 10, 79, 84, 10, 117, 10, 116, 10, 108, 10, 105, 10, 110, 10, 101, 10, 109, 10, 112, 10, 108, 10, 97, 10, 116, 105, 118, 101, 110, 99, 101, 110, 97, 114, 105, 111, 32, 58, 115, 79, 84, 117, 116, 108, 105, 110, 101, 58, 10, 10, 10, 32, 35, 37, 42, 64, 65, 66, 70, 71, 83, 84, 87, 9, 13, 10, 95, 10, 70, 10, 69, 10, 65, 10, 84, 10, 85, 10, 82, 10, 69, 10, 95, 10, 69, 10, 78, 10, 68, 10, 95, 10, 37, 10, 32, 10, 110, 10, 100, 10, 117, 10, 116, 10, 101, 10, 97, 10, 116, 10, 117, 10, 114, 10, 101, 10, 58, 10, 105, 10, 118, 10, 101, 10, 110, 10, 99, 10, 101, 10, 110, 10, 97, 10, 114, 10, 105, 10, 111, 10, 104, 101, 109, 112, 108, 97, 116, 10, 10, 10, 32, 35, 37, 42, 64, 65, 66, 70, 71, 83, 84, 87, 9, 13, 10, 95, 10, 70, 10, 69, 10, 65, 10, 84, 10, 85, 10, 82, 10, 69, 10, 95, 10, 69, 10, 78, 10, 68, 10, 95, 10, 37, 10, 32, 10, 110, 10, 100, 10, 97, 117, 10, 99, 10, 107, 10, 103, 10, 114, 10, 111, 10, 117, 10, 110, 10, 100, 10, 58, 10, 116, 10, 101, 10, 97, 10, 116, 10, 117, 10, 114, 10, 101, 10, 105, 10, 118, 10, 101, 10, 110, 10, 99, 10, 101, 10, 110, 10, 97, 10, 114, 10, 105, 10, 111, 10, 32, 58, 10, 79, 84, 10, 117, 10, 116, 10, 108, 10, 105, 10, 110, 10, 101, 10, 109, 10, 112, 10, 108, 10, 97, 10, 116, 10, 104, 104, 32, 124, 9, 13, 10, 32, 92, 124, 9, 13, 10, 92, 124, 10, 92, 10, 32, 92, 124, 9, 13, 10, 32, 34, 35, 37, 42, 64, 65, 66, 69, 70, 71, 83, 84, 87, 124, 9, 13, 10, 110, 10, 100, 10, 117, 10, 116, 10, 101, 10, 97, 10, 116, 10, 117, 10, 114, 10, 101, 10, 58, 10, 105, 10, 118, 10, 101, 10, 110, 10, 99, 10, 101, 10, 110, 10, 97, 10, 114, 10, 105, 10, 111, 10, 32, 58, 10, 79, 84, 10, 117, 10, 116, 10, 108, 10, 105, 10, 110, 10, 101, 10, 109, 10, 112, 10, 108, 10, 97, 10, 116, 10, 104, 116, 187, 191, 0 ]; const _lexer_single_lengths = [ 0, 17, 16, 1, 1, 2, 3, 3, 3, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 5, 3, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]; const _lexer_index_offsets = [ 0, 0, 19, 37, 39, 41, 45, 50, 55, 60, 65, 69, 73, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 113, 118, 125, 130, 132, 134, 137, 139, 141, 143, 145, 147, 149, 151, 153, 155, 157, 159, 174, 177, 180, 183, 186, 189, 192, 195, 198, 201, 204, 207, 210, 213, 216, 219, 237, 239, 241, 243, 245, 247, 249, 251, 253, 255, 257, 264, 267, 270, 273, 276, 279, 282, 285, 287, 289, 291, 293, 295, 297, 299, 301, 303, 314, 317, 320, 323, 326, 329, 332, 335, 338, 341, 344, 347, 350, 353, 356, 359, 362, 365, 368, 371, 374, 377, 380, 383, 386, 389, 392, 395, 398, 401, 404, 407, 410, 413, 416, 419, 422, 425, 428, 431, 434, 437, 440, 443, 446, 451, 455, 458, 461, 464, 467, 470, 473, 476, 479, 482, 485, 488, 490, 492, 494, 496, 498, 500, 502, 504, 506, 508, 510, 514, 517, 519, 521, 523, 525, 527, 529, 531, 533, 535, 550, 553, 556, 559, 562, 565, 568, 571, 574, 577, 580, 583, 586, 589, 592, 595, 598, 601, 604, 607, 610, 613, 616, 619, 622, 625, 628, 631, 634, 637, 640, 643, 646, 649, 652, 655, 658, 661, 664, 666, 668, 670, 672, 674, 676, 678, 680, 695, 698, 701, 704, 707, 710, 713, 716, 719, 722, 725, 728, 731, 734, 737, 740, 743, 746, 750, 753, 756, 759, 762, 765, 768, 771, 774, 777, 780, 783, 786, 789, 792, 795, 798, 801, 804, 807, 810, 813, 816, 819, 822, 825, 828, 831, 835, 839, 842, 845, 848, 851, 854, 857, 860, 863, 866, 869, 872, 875, 877, 881, 887, 891, 894, 900, 918, 921, 924, 927, 930, 933, 936, 939, 942, 945, 948, 951, 954, 957, 960, 963, 966, 969, 972, 975, 978, 981, 984, 988, 992, 995, 998, 1001, 1004, 1007, 1010, 1013, 1016, 1019, 1022, 1025, 1028, 1030, 1032, 1034 ]; const _lexer_indicies = [ 2, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 15, 16, 1, 0, 2, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 15, 1, 0, 17, 0, 18, 0, 19, 18, 18, 0, 22, 21, 23, 21, 20, 26, 25, 27, 25, 24, 26, 25, 28, 25, 24, 26, 25, 29, 25, 24, 31, 30, 30, 0, 2, 32, 32, 0, 34, 35, 33, 2, 0, 36, 0, 37, 0, 38, 0, 39, 0, 40, 0, 41, 0, 42, 0, 43, 0, 44, 0, 45, 0, 46, 0, 47, 0, 48, 0, 49, 0, 50, 0, 0, 51, 53, 54, 52, 0, 0, 0, 0, 55, 56, 57, 56, 56, 59, 58, 55, 2, 60, 7, 60, 0, 61, 0, 62, 0, 63, 64, 0, 65, 0, 66, 0, 67, 0, 68, 0, 69, 0, 70, 0, 71, 0, 72, 0, 73, 0, 75, 74, 77, 76, 77, 78, 79, 80, 81, 79, 82, 83, 84, 85, 86, 87, 87, 78, 76, 77, 88, 76, 77, 89, 76, 77, 90, 76, 77, 91, 76, 77, 92, 76, 77, 93, 76, 77, 94, 76, 77, 95, 76, 77, 96, 76, 77, 97, 76, 77, 98, 76, 77, 99, 76, 77, 100, 76, 77, 101, 76, 77, 102, 76, 104, 103, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 116, 117, 103, 0, 118, 0, 119, 0, 120, 0, 121, 0, 122, 0, 123, 0, 124, 0, 125, 0, 127, 126, 129, 128, 129, 130, 131, 132, 131, 130, 128, 129, 133, 128, 129, 134, 128, 129, 135, 128, 129, 136, 128, 129, 137, 128, 129, 138, 128, 129, 139, 128, 140, 0, 141, 0, 142, 0, 143, 0, 144, 0, 145, 0, 146, 0, 148, 147, 150, 149, 150, 151, 152, 153, 152, 154, 155, 156, 157, 151, 149, 150, 158, 149, 150, 159, 149, 150, 160, 149, 150, 161, 149, 150, 162, 149, 150, 163, 149, 150, 164, 149, 150, 165, 149, 150, 166, 149, 150, 167, 149, 150, 168, 149, 150, 169, 149, 150, 170, 149, 150, 171, 149, 150, 172, 149, 150, 173, 149, 150, 174, 149, 150, 175, 149, 150, 176, 149, 150, 177, 149, 150, 178, 149, 150, 179, 149, 150, 180, 149, 150, 181, 149, 150, 182, 149, 150, 183, 149, 150, 184, 149, 150, 185, 149, 150, 186, 149, 150, 187, 149, 150, 180, 149, 150, 188, 149, 150, 189, 149, 150, 190, 149, 150, 191, 149, 150, 192, 149, 150, 180, 149, 150, 193, 149, 150, 194, 149, 150, 195, 149, 150, 196, 149, 150, 197, 149, 150, 198, 149, 150, 199, 149, 150, 200, 181, 180, 149, 150, 201, 202, 149, 150, 203, 149, 150, 204, 149, 150, 205, 149, 150, 206, 149, 150, 192, 149, 150, 207, 149, 150, 208, 149, 150, 209, 149, 150, 210, 149, 150, 211, 149, 150, 192, 149, 212, 0, 213, 0, 214, 0, 62, 0, 215, 0, 216, 0, 217, 0, 218, 0, 219, 0, 220, 0, 221, 0, 222, 223, 124, 0, 224, 225, 0, 226, 0, 227, 0, 228, 0, 229, 0, 230, 0, 231, 0, 232, 0, 234, 233, 236, 235, 236, 237, 238, 239, 240, 238, 241, 242, 243, 244, 245, 246, 246, 237, 235, 236, 247, 235, 236, 248, 235, 236, 249, 235, 236, 250, 235, 236, 251, 235, 236, 252, 235, 236, 253, 235, 236, 254, 235, 236, 255, 235, 236, 256, 235, 236, 257, 235, 236, 258, 235, 236, 259, 235, 236, 260, 235, 236, 261, 235, 236, 262, 235, 236, 263, 235, 236, 264, 235, 236, 263, 235, 236, 265, 235, 236, 266, 235, 236, 267, 235, 236, 268, 235, 236, 269, 235, 236, 270, 235, 236, 261, 235, 236, 271, 235, 236, 272, 235, 236, 273, 235, 236, 263, 235, 236, 274, 235, 236, 275, 235, 236, 276, 235, 236, 277, 235, 236, 278, 235, 236, 279, 235, 236, 270, 235, 236, 272, 235, 280, 0, 281, 0, 282, 0, 283, 0, 284, 0, 230, 0, 286, 285, 288, 287, 288, 289, 290, 291, 292, 290, 293, 294, 295, 296, 297, 298, 298, 289, 287, 288, 299, 287, 288, 300, 287, 288, 301, 287, 288, 302, 287, 288, 303, 287, 288, 304, 287, 288, 305, 287, 288, 306, 287, 288, 307, 287, 288, 308, 287, 288, 309, 287, 288, 310, 287, 288, 311, 287, 288, 312, 287, 288, 313, 287, 288, 314, 287, 288, 315, 287, 288, 316, 317, 287, 288, 318, 287, 288, 319, 287, 288, 320, 287, 288, 321, 287, 288, 322, 287, 288, 323, 287, 288, 324, 287, 288, 325, 287, 288, 313, 287, 288, 315, 287, 288, 326, 287, 288, 327, 287, 288, 328, 287, 288, 329, 287, 288, 330, 287, 288, 325, 287, 288, 331, 287, 288, 332, 287, 288, 333, 287, 288, 315, 287, 288, 334, 287, 288, 335, 287, 288, 336, 287, 288, 337, 287, 288, 338, 287, 288, 339, 287, 288, 340, 287, 288, 341, 313, 287, 288, 342, 343, 287, 288, 344, 287, 288, 345, 287, 288, 346, 287, 288, 347, 287, 288, 330, 287, 288, 348, 287, 288, 349, 287, 288, 350, 287, 288, 351, 287, 288, 352, 287, 288, 330, 287, 288, 332, 287, 213, 0, 353, 354, 353, 0, 357, 356, 358, 359, 356, 355, 0, 361, 362, 360, 0, 361, 360, 357, 363, 361, 362, 363, 360, 357, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 376, 377, 364, 0, 77, 378, 76, 77, 379, 76, 77, 380, 76, 77, 379, 76, 77, 381, 76, 77, 382, 76, 77, 383, 76, 77, 384, 76, 77, 385, 76, 77, 386, 76, 77, 102, 76, 77, 387, 76, 77, 388, 76, 77, 389, 76, 77, 379, 76, 77, 390, 76, 77, 391, 76, 77, 392, 76, 77, 393, 76, 77, 394, 76, 77, 395, 76, 77, 396, 76, 77, 397, 102, 76, 77, 398, 399, 76, 77, 400, 76, 77, 401, 76, 77, 402, 76, 77, 403, 76, 77, 385, 76, 77, 404, 76, 77, 405, 76, 77, 406, 76, 77, 407, 76, 77, 408, 76, 77, 385, 76, 77, 388, 76, 62, 0, 409, 0, 1, 0, 410, 0 ]; const _lexer_trans_targs = [ 0, 2, 2, 3, 12, 14, 28, 31, 34, 36, 65, 83, 150, 154, 279, 280, 323, 4, 5, 6, 7, 7, 7, 8, 7, 7, 7, 8, 9, 10, 11, 2, 11, 12, 2, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 325, 29, 30, 30, 2, 13, 32, 33, 2, 32, 31, 33, 35, 28, 37, 322, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 47, 48, 48, 2, 49, 63, 286, 288, 290, 297, 301, 321, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 2, 64, 2, 2, 3, 12, 14, 28, 31, 34, 36, 65, 83, 150, 154, 279, 280, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 74, 75, 75, 2, 76, 77, 78, 79, 80, 81, 82, 64, 84, 85, 86, 87, 88, 89, 90, 91, 92, 91, 92, 92, 2, 93, 107, 117, 124, 130, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 2, 108, 109, 110, 111, 112, 113, 114, 115, 116, 64, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 138, 139, 144, 140, 141, 142, 143, 145, 146, 147, 148, 149, 151, 152, 153, 155, 156, 157, 158, 159, 160, 161, 162, 217, 163, 211, 164, 165, 166, 167, 168, 169, 170, 171, 172, 171, 172, 172, 2, 173, 187, 188, 190, 192, 199, 203, 210, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 2, 64, 189, 187, 191, 193, 194, 195, 196, 197, 198, 200, 201, 202, 204, 205, 206, 207, 208, 209, 212, 213, 214, 215, 216, 218, 219, 218, 219, 219, 2, 220, 234, 235, 237, 248, 254, 258, 278, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 2, 64, 236, 234, 238, 247, 239, 240, 241, 242, 243, 244, 245, 246, 249, 250, 251, 252, 253, 255, 256, 257, 259, 260, 261, 262, 263, 264, 265, 266, 267, 272, 268, 269, 270, 271, 273, 274, 275, 276, 277, 280, 281, 282, 284, 285, 283, 281, 282, 283, 281, 284, 285, 3, 12, 14, 28, 31, 34, 36, 65, 83, 150, 154, 279, 280, 287, 63, 289, 291, 292, 293, 294, 295, 296, 298, 299, 300, 302, 303, 304, 305, 306, 307, 308, 309, 310, 315, 311, 312, 313, 314, 316, 317, 318, 319, 320, 324, 0 ]; const _lexer_trans_actions = [ 39, 0, 47, 3, 1, 0, 25, 1, 25, 25, 25, 25, 25, 25, 25, 31, 0, 0, 0, 47, 5, 41, 119, 41, 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, 83, 37, 89, 83, 89, 89, 89, 89, 89, 89, 89, 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]; const _lexer_eof_actions = [ 0, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39 ]; const lexer_start = 1; const lexer_first_final = 325; const lexer_error = 0; const lexer_en_main = 1; /* line 120 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ /* line 121 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ /* line 122 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ var Lexer = function(listener) { // Check that listener has the required functions var events = ['comment', 'tag', 'feature', 'background', 'scenario', 'scenario_outline', 'examples', 'step', 'py_string', 'row', 'eof']; for(e in events) { var event = events[e]; if(typeof listener[event] != 'function') { "Error. No " + event + " function exists on " + JSON.stringify(listener); } } this.listener = listener; }; Lexer.prototype.scan = function(data) { var ending = "\n%_FEATURE_END_%"; if(typeof data == 'string') { data = this.stringToBytes(data + ending); } else if(typeof Buffer != 'undefined' && Buffer.isBuffer(data)) { // Node.js var buf = new Buffer(data.length + ending.length); data.copy(buf, 0, 0); new Buffer(ending).copy(buf, data.length, 0); data = buf; } var eof = pe = data.length; var p = 0; this.line_number = 1; this.last_newline = 0; /* line 633 "js/lib/gherkin/lexer/i18n/en.js" */ { this.cs = lexer_start; } /* JSCodeGen::writeInit */ /* line 153 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ /* line 640 "js/lib/gherkin/lexer/i18n/en.js" */ { var _klen, _trans, _keys, _ps, _widec, _acts, _nacts; var _goto_level, _resume, _eof_trans, _again, _test_eof; var _out; _klen = _trans = _keys = _acts = _nacts = null; _goto_level = 0; _resume = 10; _eof_trans = 15; _again = 20; _test_eof = 30; _out = 40; while (true) { _trigger_goto = false; if (_goto_level <= 0) { if (p == pe) { _goto_level = _test_eof; continue; } if ( this.cs == 0) { _goto_level = _out; continue; } } if (_goto_level <= _resume) { _keys = _lexer_key_offsets[ this.cs]; _trans = _lexer_index_offsets[ this.cs]; _klen = _lexer_single_lengths[ this.cs]; _break_match = false; do { if (_klen > 0) { _lower = _keys; _upper = _keys + _klen - 1; while (true) { if (_upper < _lower) { break; } _mid = _lower + ( (_upper - _lower) >> 1 ); if ( data[p] < _lexer_trans_keys[_mid]) { _upper = _mid - 1; } else if ( data[p] > _lexer_trans_keys[_mid]) { _lower = _mid + 1; } else { _trans += (_mid - _keys); _break_match = true; break; }; } /* while */ if (_break_match) { break; } _keys += _klen; _trans += _klen; } _klen = _lexer_range_lengths[ this.cs]; if (_klen > 0) { _lower = _keys; _upper = _keys + (_klen << 1) - 2; while (true) { if (_upper < _lower) { break; } _mid = _lower + (((_upper-_lower) >> 1) & ~1); if ( data[p] < _lexer_trans_keys[_mid]) { _upper = _mid - 2; } else if ( data[p] > _lexer_trans_keys[_mid+1]) { _lower = _mid + 2; } else { _trans += ((_mid - _keys) >> 1); _break_match = true; break; } } /* while */ if (_break_match) { break; } _trans += _klen } } while (false); _trans = _lexer_indicies[_trans]; this.cs = _lexer_trans_targs[_trans]; if (_lexer_trans_actions[_trans] != 0) { _acts = _lexer_trans_actions[_trans]; _nacts = _lexer_actions[_acts]; _acts += 1; while (_nacts > 0) { _nacts -= 1; _acts += 1; switch (_lexer_actions[_acts - 1]) { case 0: /* line 6 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ this.content_start = p; this.current_line = this.line_number; this.start_col = p - this.last_newline - (this.keyword+':').length; break; case 1: /* line 12 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ this.current_line = this.line_number; this.start_col = p - this.last_newline; break; case 2: /* line 17 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ this.content_start = p; break; case 3: /* line 21 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ var con = this.unindent( this.start_col, this.bytesToString(data.slice(this.content_start, this.next_keyword_start-1)).replace(/(\r?\n)?([\t ])*$/, '').replace(/\\\"\\\"\\\"/mg, '"""') ); this.listener.py_string(con, this.current_line); break; case 4: /* line 29 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ p = this.store_keyword_content('feature', data, p, eof); break; case 5: /* line 33 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ p = this.store_keyword_content('background', data, p, eof); break; case 6: /* line 37 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ p = this.store_keyword_content('scenario', data, p, eof); break; case 7: /* line 41 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ p = this.store_keyword_content('scenario_outline', data, p, eof); break; case 8: /* line 45 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ p = this.store_keyword_content('examples', data, p, eof); break; case 9: /* line 49 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ var con = this.bytesToString(data.slice(this.content_start, p)).trim(); this.listener.step(this.keyword, con, this.current_line); break; case 10: /* line 54 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ var con = this.bytesToString(data.slice(this.content_start, p)).trim(); this.listener.comment(con, this.line_number); this.keyword_start = null; break; case 11: /* line 60 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ var con = this.bytesToString(data.slice(this.content_start, p)).trim(); this.listener.tag(con, this.line_number); this.keyword_start = null; break; case 12: /* line 66 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ this.line_number++; break; case 13: /* line 70 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ this.last_newline = p + 1; break; case 14: /* line 74 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ this.keyword_start = this.keyword_start || p; break; case 15: /* line 78 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ this.keyword = this.bytesToString(data.slice(this.keyword_start, p)).replace(/:$/, ''); this.keyword_start = null; break; case 16: /* line 83 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ this.next_keyword_start = p; break; case 17: /* line 87 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ p = p - 1; current_row = []; this.current_line = this.line_number; break; case 18: /* line 93 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ this.content_start = p; break; case 19: /* line 97 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ var con = this.bytesToString(data.slice(this.content_start, p)).trim(); current_row.push(con.replace(/\\\|/, "|").replace(/\\n/, "\n").replace(/\\\\/, "\\")); break; case 20: /* line 102 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ this.listener.row(current_row, this.current_line); break; case 21: /* line 106 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ if(this.cs < lexer_first_final) { var content = this.current_line_content(data, p); throw "Lexing error on line " + this.line_number + ": '" + content + "'. See http://wiki.github.com/aslakhellesoy/gherkin/lexingerror for more information."; } else { this.listener.eof(); } break; /* line 856 "js/lib/gherkin/lexer/i18n/en.js" */ } /* action switch */ } } if (_trigger_goto) { continue; } } if (_goto_level <= _again) { if ( this.cs == 0) { _goto_level = _out; continue; } p += 1; if (p != pe) { _goto_level = _resume; continue; } } if (_goto_level <= _test_eof) { if (p == eof) { __acts = _lexer_eof_actions[ this.cs]; __nacts = _lexer_actions[__acts]; __acts += 1; while (__nacts > 0) { __nacts -= 1; __acts += 1; switch (_lexer_actions[__acts - 1]) { case 21: /* line 106 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ if(this.cs < lexer_first_final) { var content = this.current_line_content(data, p); throw "Lexing error on line " + this.line_number + ": '" + content + "'. See http://wiki.github.com/aslakhellesoy/gherkin/lexingerror for more information."; } else { this.listener.eof(); } break; /* line 895 "js/lib/gherkin/lexer/i18n/en.js" */ } /* eof action switch */ } if (_trigger_goto) { continue; } } } if (_goto_level <= _out) { break; } } } /* line 154 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.js.rl" */ }; Lexer.prototype.bytesToString = function(bytes) { if(typeof bytes.write == 'function') { // Node.js return bytes.toString('utf-8'); } else { var result = ""; for(var b in bytes) { result += String.fromCharCode(bytes[b]); } return result; } }; Lexer.prototype.stringToBytes = function(string) { var bytes = []; for(var i = 0; i < string.length; i++) { bytes[i] = string.charCodeAt(i); } return bytes; }; Lexer.prototype.unindent = function(startcol, text) { startcol = startcol || 0; return text.replace(new RegExp('^[\t ]{0,' + startcol + '}', 'gm'), ''); }; Lexer.prototype.store_keyword_content = function(event, data, p, eof) { var end_point = (!this.next_keyword_start || (p == eof)) ? p : this.next_keyword_start; var content = this.unindent(this.start_col + 2, this.bytesToString(data.slice(this.content_start, end_point))).trimRight(); var content_lines = content.split("\n") var name = content_lines.shift() || ""; name = name.trim(); var description = content_lines.join("\n"); this.listener[event](this.keyword, name, description, this.current_line); var nks = this.next_keyword_start; this.next_keyword_start = null; return nks ? nks - 1 : p; }; Lexer.prototype.current_line_content = function(data, p) { var rest = data.slice(this.last_newline, -1); var end = rest.indexOf(10) || -1; return this.bytesToString(rest.slice(0, end)).trim(); }; if(typeof exports != 'undefined') { exports.Lexer = Lexer; } if(typeof window != 'undefined') { window.Lexer = Lexer; } })();