/* line 1 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ ;(function() { /* line 107 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ /* line 11 "js/lib/gherkin/lexer/i18n/en_lol.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, 112, 113, 114, 115, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 195, 197, 199, 201, 203, 205, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 222, 223, 224, 225, 226, 227, 228, 229, 230, 245, 247, 249, 251, 253, 255, 257, 259, 261, 263, 265, 267, 269, 271, 273, 275, 277, 279, 281, 283, 285, 287, 289, 291, 293, 295, 297, 299, 301, 303, 305, 307, 309, 311, 313, 315, 317, 319, 321, 322, 323, 338, 340, 342, 344, 346, 348, 350, 352, 354, 356, 358, 360, 362, 364, 366, 368, 370, 373, 375, 377, 379, 381, 383, 385, 387, 389, 391, 393, 395, 397, 399, 401, 403, 405, 408, 410, 412, 414, 416, 418, 420, 422, 424, 426, 428, 429, 430, 431, 432, 433, 434, 435, 436, 447, 449, 451, 453, 455, 457, 459, 461, 463, 465, 467, 469, 471, 473, 475, 477, 479, 481, 483, 485, 487, 489, 491, 493, 495, 497, 499, 501, 504, 506, 508, 510, 512, 514, 516, 518, 520, 522, 524, 528, 534, 537, 539, 545, 563, 565, 567, 569, 571, 573, 575, 577, 579, 581, 583, 585, 587, 589, 591, 593, 595, 597, 600, 602, 604, 606, 608, 610, 612, 614, 616, 618, 620, 622, 623, 624, 625 ]; const _lexer_trans_keys = [ 10, 32, 34, 35, 37, 42, 64, 65, 66, 68, 69, 73, 77, 79, 87, 124, 239, 9, 13, 10, 32, 34, 35, 37, 42, 64, 65, 66, 68, 69, 73, 77, 79, 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, 78, 52, 85, 58, 10, 10, 10, 32, 35, 37, 42, 64, 65, 66, 68, 73, 77, 79, 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, 68, 69, 73, 77, 79, 87, 124, 9, 13, 69, 88, 65, 77, 80, 76, 90, 58, 10, 10, 10, 32, 35, 79, 124, 9, 13, 10, 72, 10, 32, 10, 72, 10, 65, 10, 73, 10, 58, 32, 67, 65, 78, 32, 72, 65, 90, 73, 83, 72, 85, 78, 32, 58, 83, 82, 83, 76, 89, 58, 10, 10, 10, 32, 35, 37, 42, 64, 65, 66, 68, 73, 77, 79, 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, 78, 10, 85, 10, 84, 10, 69, 10, 32, 10, 67, 10, 65, 10, 78, 10, 32, 10, 72, 10, 65, 10, 90, 10, 73, 10, 83, 10, 72, 10, 85, 10, 78, 10, 58, 10, 72, 10, 32, 10, 72, 10, 65, 10, 73, 10, 10, 10, 32, 35, 37, 42, 64, 65, 66, 68, 73, 77, 79, 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, 78, 10, 52, 85, 10, 58, 10, 84, 10, 69, 10, 32, 10, 67, 10, 65, 10, 78, 10, 32, 10, 72, 10, 65, 10, 90, 10, 73, 10, 83, 10, 72, 10, 85, 10, 78, 10, 32, 58, 10, 83, 10, 82, 10, 83, 10, 76, 10, 89, 10, 72, 10, 32, 10, 72, 10, 65, 10, 73, 72, 32, 72, 65, 73, 58, 10, 10, 10, 32, 35, 37, 64, 66, 69, 77, 79, 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, 52, 10, 58, 10, 88, 10, 65, 10, 77, 10, 80, 10, 76, 10, 90, 10, 73, 10, 83, 10, 72, 10, 85, 10, 78, 10, 32, 58, 10, 83, 10, 82, 10, 83, 10, 76, 10, 89, 10, 72, 10, 32, 10, 72, 10, 65, 10, 73, 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, 68, 69, 73, 77, 79, 87, 124, 9, 13, 10, 78, 10, 85, 10, 84, 10, 69, 10, 32, 10, 67, 10, 65, 10, 78, 10, 32, 10, 72, 10, 65, 10, 90, 10, 73, 10, 83, 10, 72, 10, 85, 10, 78, 10, 32, 58, 10, 83, 10, 82, 10, 83, 10, 76, 10, 89, 10, 58, 10, 72, 10, 32, 10, 72, 10, 65, 10, 73, 84, 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, 2, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 13, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 13, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 9, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 3, 2, 4, 16, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 0 ]; const _lexer_range_lengths = [ 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 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, 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, 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, 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, 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, 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 ]; 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, 135, 137, 139, 141, 156, 159, 162, 165, 168, 171, 174, 177, 180, 183, 186, 189, 192, 195, 198, 201, 219, 221, 223, 225, 227, 229, 231, 233, 235, 237, 239, 246, 249, 252, 255, 258, 261, 264, 266, 268, 270, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 293, 295, 297, 299, 301, 303, 305, 307, 309, 324, 327, 330, 333, 336, 339, 342, 345, 348, 351, 354, 357, 360, 363, 366, 369, 372, 375, 378, 381, 384, 387, 390, 393, 396, 399, 402, 405, 408, 411, 414, 417, 420, 423, 426, 429, 432, 435, 438, 440, 442, 457, 460, 463, 466, 469, 472, 475, 478, 481, 484, 487, 490, 493, 496, 499, 502, 505, 509, 512, 515, 518, 521, 524, 527, 530, 533, 536, 539, 542, 545, 548, 551, 554, 557, 561, 564, 567, 570, 573, 576, 579, 582, 585, 588, 591, 593, 595, 597, 599, 601, 603, 605, 607, 618, 621, 624, 627, 630, 633, 636, 639, 642, 645, 648, 651, 654, 657, 660, 663, 666, 669, 672, 675, 678, 681, 684, 687, 690, 693, 696, 699, 703, 706, 709, 712, 715, 718, 721, 724, 727, 730, 733, 737, 743, 747, 750, 756, 774, 777, 780, 783, 786, 789, 792, 795, 798, 801, 804, 807, 810, 813, 816, 819, 822, 825, 829, 832, 835, 838, 841, 844, 847, 850, 853, 856, 859, 862, 864, 866, 868 ]; const _lexer_indicies = [ 2, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 10, 15, 16, 1, 0, 2, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 10, 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, 63, 0, 64, 0, 66, 65, 68, 67, 68, 69, 70, 71, 72, 70, 73, 74, 75, 76, 77, 78, 75, 69, 67, 68, 79, 67, 68, 80, 67, 68, 81, 67, 68, 82, 67, 68, 83, 67, 68, 84, 67, 68, 85, 67, 68, 86, 67, 68, 87, 67, 68, 88, 67, 68, 89, 67, 68, 90, 67, 68, 91, 67, 68, 92, 67, 68, 93, 67, 95, 94, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 103, 108, 94, 0, 109, 0, 110, 0, 111, 0, 112, 0, 113, 0, 114, 0, 115, 0, 116, 0, 118, 117, 120, 119, 120, 121, 122, 123, 122, 121, 119, 120, 124, 119, 120, 125, 119, 120, 126, 119, 120, 127, 119, 120, 128, 119, 120, 129, 119, 130, 0, 131, 0, 132, 0, 133, 0, 134, 0, 135, 0, 136, 0, 61, 0, 137, 0, 138, 0, 139, 0, 140, 0, 141, 0, 142, 143, 0, 144, 0, 145, 0, 146, 0, 147, 0, 148, 0, 149, 0, 151, 150, 153, 152, 153, 154, 155, 156, 157, 155, 158, 159, 160, 161, 162, 163, 160, 154, 152, 153, 164, 152, 153, 165, 152, 153, 166, 152, 153, 167, 152, 153, 168, 152, 153, 169, 152, 153, 170, 152, 153, 171, 152, 153, 172, 152, 153, 173, 152, 153, 174, 152, 153, 175, 152, 153, 176, 152, 153, 177, 152, 153, 178, 152, 153, 179, 152, 153, 180, 152, 153, 179, 152, 153, 181, 152, 153, 182, 152, 153, 183, 152, 153, 184, 152, 153, 185, 152, 153, 186, 152, 153, 187, 152, 153, 188, 152, 153, 179, 152, 153, 189, 152, 153, 190, 152, 153, 191, 152, 153, 192, 152, 153, 193, 152, 153, 178, 152, 153, 194, 152, 153, 195, 152, 153, 196, 152, 153, 197, 152, 153, 193, 152, 199, 198, 201, 200, 201, 202, 203, 204, 205, 203, 206, 207, 208, 209, 210, 211, 208, 202, 200, 201, 212, 200, 201, 213, 200, 201, 214, 200, 201, 215, 200, 201, 216, 200, 201, 217, 200, 201, 218, 200, 201, 219, 200, 201, 220, 200, 201, 221, 200, 201, 222, 200, 201, 223, 200, 201, 224, 200, 201, 225, 200, 201, 226, 200, 201, 227, 200, 201, 228, 229, 200, 201, 226, 200, 201, 227, 200, 201, 230, 200, 201, 231, 200, 201, 232, 200, 201, 233, 200, 201, 234, 200, 201, 235, 200, 201, 236, 200, 201, 237, 200, 201, 227, 200, 201, 238, 200, 201, 239, 200, 201, 240, 200, 201, 241, 200, 201, 242, 200, 201, 243, 226, 200, 201, 244, 200, 201, 245, 200, 201, 246, 200, 201, 247, 200, 201, 228, 200, 201, 248, 200, 201, 249, 200, 201, 250, 200, 201, 251, 200, 201, 228, 200, 252, 0, 253, 0, 254, 0, 255, 0, 256, 0, 257, 0, 259, 258, 261, 260, 261, 262, 263, 264, 263, 265, 266, 267, 268, 262, 260, 261, 269, 260, 261, 270, 260, 261, 271, 260, 261, 272, 260, 261, 273, 260, 261, 274, 260, 261, 275, 260, 261, 276, 260, 261, 277, 260, 261, 278, 260, 261, 279, 260, 261, 280, 260, 261, 281, 260, 261, 282, 260, 261, 283, 260, 261, 284, 260, 261, 285, 260, 261, 286, 260, 261, 287, 260, 261, 288, 260, 261, 289, 260, 261, 283, 260, 261, 290, 260, 261, 291, 260, 261, 292, 260, 261, 293, 260, 261, 294, 260, 261, 295, 284, 260, 261, 296, 260, 261, 297, 260, 261, 298, 260, 261, 299, 260, 261, 283, 260, 261, 300, 260, 261, 301, 260, 261, 302, 260, 261, 303, 260, 261, 283, 260, 304, 305, 304, 0, 308, 307, 309, 310, 307, 306, 0, 312, 313, 311, 0, 312, 311, 308, 314, 312, 313, 314, 311, 308, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 323, 328, 315, 0, 68, 329, 67, 68, 330, 67, 68, 329, 67, 68, 331, 67, 68, 332, 67, 68, 333, 67, 68, 334, 67, 68, 335, 67, 68, 336, 67, 68, 337, 67, 68, 338, 67, 68, 329, 67, 68, 339, 67, 68, 340, 67, 68, 341, 67, 68, 342, 67, 68, 343, 67, 68, 344, 93, 67, 68, 345, 67, 68, 346, 67, 68, 347, 67, 68, 348, 67, 68, 349, 67, 68, 93, 67, 68, 350, 67, 68, 351, 67, 68, 352, 67, 68, 353, 67, 68, 349, 67, 61, 0, 354, 0, 1, 0, 355, 0 ]; const _lexer_trans_targs = [ 0, 2, 2, 3, 12, 14, 28, 31, 34, 35, 56, 57, 73, 81, 181, 228, 264, 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, 266, 29, 30, 30, 2, 13, 32, 33, 2, 32, 31, 33, 28, 36, 263, 37, 38, 39, 38, 39, 39, 2, 40, 54, 234, 235, 237, 238, 246, 258, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 2, 55, 2, 2, 3, 12, 14, 28, 31, 34, 35, 56, 57, 73, 81, 181, 228, 34, 58, 59, 60, 61, 62, 63, 64, 65, 66, 65, 66, 66, 2, 67, 68, 69, 70, 71, 72, 55, 74, 75, 76, 77, 78, 79, 80, 82, 83, 84, 85, 86, 87, 134, 88, 89, 90, 91, 92, 93, 94, 95, 94, 95, 95, 2, 96, 110, 111, 112, 114, 115, 123, 129, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 2, 55, 110, 113, 111, 116, 117, 118, 119, 120, 121, 122, 124, 125, 126, 127, 128, 130, 131, 132, 133, 135, 136, 135, 136, 136, 2, 137, 151, 152, 153, 156, 157, 165, 176, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 2, 55, 151, 154, 155, 152, 158, 159, 160, 161, 162, 163, 164, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 177, 178, 179, 180, 182, 183, 184, 185, 186, 187, 188, 189, 188, 189, 189, 2, 190, 204, 206, 212, 223, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 2, 205, 55, 207, 208, 209, 210, 211, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 224, 225, 226, 227, 228, 229, 230, 232, 233, 231, 229, 230, 231, 229, 232, 233, 3, 12, 14, 28, 31, 34, 35, 56, 57, 73, 81, 181, 228, 54, 236, 234, 239, 240, 241, 242, 243, 244, 245, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 259, 260, 261, 262, 265, 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, 0, 29, 111, 29, 29, 0, 7, 95, 0, 0, 103, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 0, 99, 19, 0, 23, 107, 23, 44, 0, 0, 0, 0, 0, 50, 124, 0, 47, 0, 65, 29, 77, 77, 77, 77, 77, 77, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 27, 115, 53, 50, 27, 56, 50, 56, 56, 56, 56, 56, 56, 56, 59, 0, 0, 0, 0, 0, 0, 0, 0, 50, 124, 0, 47, 0, 74, 77, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 124, 0, 47, 0, 71, 29, 77, 77, 77, 77, 77, 77, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 124, 0, 47, 0, 68, 29, 77, 77, 77, 77, 77, 77, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 13, 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, 50, 124, 0, 47, 0, 62, 29, 77, 77, 77, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 33, 47, 33, 80, 0, 0, 35, 0, 0, 86, 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 ]; 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 ]; const lexer_start = 1; const lexer_first_final = 266; const lexer_error = 0; const lexer_en_main = 1; /* line 110 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ /* line 111 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ /* line 112 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ var Lexer = function(listeners) { // check that we have an 'on' method (for registering event listeners - Node has that) // If not, make a trivial implementation that can register one listener. -Enough for testing. if(!this.on) { this._listeners = {}; this.on = function(event, cb) { this._listeners[event] = cb; }; this.emit = function() { var event = arguments[0]; var args = []; for(var i = 1; i < arguments.length; i++) { args.push(arguments[i]); } var cb = this._listeners[event]; cb.apply(listeners, args); }; } var events = ['feature', 'background', 'scenario', 'scenario_outline', 'examples', 'step', 'py_string', 'row', 'end']; for(e in events) { var event = events[e]; var listener = listeners[event]; // if(!listener) { // throw "No listener for " + event; // } this.on(event, listener); } /* line 553 "js/lib/gherkin/lexer/i18n/en_lol.js" */ { this.cs = lexer_start; } /* JSCodeGen::writeInit */ /* line 146 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ }; if(typeof require == 'function') { require('sys').inherits(Lexer, require('events').EventEmitter); } Lexer.prototype.scan = function(data) { var p = 0; var pe = data.length; var eof = 0; /* line 571 "js/lib/gherkin/lexer/i18n/en_lol.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_lol.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_lol.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_lol.js.rl" */ this.content_start = p; break; case 3: /* line 21 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.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 ])*\Z/, '') // TODO .replace(/\"\"\"/mg, '"""') ); this.emit('py_string', con, this.current_line); break; case 4: /* line 29 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ p = this.store_keyword_content('feature', data, p, eof); break; case 5: /* line 33 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ p = this.store_keyword_content('background', data, p, eof); break; case 6: /* line 37 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ p = this.store_keyword_content('scenario', data, p, eof); break; case 7: /* line 41 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.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_lol.js.rl" */ p = this.store_keyword_content('examples', data, p, eof); break; case 9: /* line 49 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ var con = this.bytesToString(data.slice(this.content_start, p)).trim(); this.emit('step', this.keyword, con, this.current_line); break; case 10: /* line 54 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ console.log('TODO: store_comment_content'); break; case 11: /* line 58 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ console.log('TODO: store_tag_content'); break; case 12: /* line 62 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ this.line_number++; break; case 13: /* line 66 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ this.last_newline = p + 1; break; case 14: /* line 70 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ this.keyword_start = this.keyword_start || p; break; case 15: /* line 74 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ this.keyword = this.bytesToString(data.slice(this.keyword_start, p)).replace(/:$/, ''); this.keyword_start = null; break; case 16: /* line 79 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ this.next_keyword_start = p; break; case 17: /* line 83 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ p = p - 1; current_row = []; this.current_line = this.line_number; break; case 18: /* line 89 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ this.content_start = p; break; case 19: /* line 93 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.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 98 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ this.emit('row', current_row, this.current_line); break; case 21: /* line 102 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ console.log('TODO: end_feature'); break; /* line 777 "js/lib/gherkin/lexer/i18n/en_lol.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 102 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.js.rl" */ console.log('TODO: end_feature'); break; /* line 810 "js/lib/gherkin/lexer/i18n/en_lol.js" */ } /* eof action switch */ } if (_trigger_goto) { continue; } } } if (_goto_level <= _out) { break; } } } /* line 158 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.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.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.emit(event, this.keyword, name, description, this.current_line); var nks = this.next_keyword_start; this.next_keyword_start = null; return nks ? nks - 1 : p; }; exports.Lexer = Lexer; })();