class Gherkin::RbLexer::Pl
:nodoc:
def current_line_content(data, p)
def current_line_content(data, p) rest = data[@last_newline..-1] rest[0..rest.index(10)||-1].utf8_pack("c*").strip end
def initialize(listener)
def initialize(listener) @listener = listener 16 "lib/gherkin/rb_lexer/pl.rb" << self accessor :_lexer_actions te :_lexer_actions, :_lexer_actions= lexer_actions = [ 0, 1, 1, 1, 2, 1, 4, 1, 5, 1, 6, 1, 9, 1, 10, 1, 11, 1, , 15, 1, 16, 1, 17, 1, , 19, 1, 20, 1, 21, 2, , 2, 11, 0, 2, 12, 13, , 0, 2, 15, 1, 2, 15, , 15, 17, 2, 16, 4, 2, , 2, 16, 6, 2, 16, 7, , 8, 2, 16, 14, 2, 18, , 20, 0, 2, 20, 1, 2, 4, 2, 20, 17, 3, 3, 12, , 9, 12, 13, 3, 10, 12, , 11, 12, 13, 3, 12, 13, , 15, 12, 13, 4, 2, 12, 6, 4, 15, 0, 12, 13 << self accessor :_lexer_key_offsets te :_lexer_key_offsets, :_lexer_key_offsets= lexer_key_offsets = [ 17, 18, 19, 23, 28, 33, 3, 47, 51, 53, 54, 55, 56, 8, 59, 60, 61, 62, 63, 64, 6, 67, 68, 69, 70, 72, 77, 9, 90, 91, 92, 93, 94, 95, 7, 98, 99, 100, 101, 102, 103, 105, 106, 107, 108, 109, 110, 111, 117, 119, 120, 121, 122, 123, 124, 126, 127, 128, 129, 130, 144, 146, 150, 152, 154, 156, 158, 160, 162, 166, 168, 170, 172, 174, 191, 193, 195, 196, 197, 198, 199, 200, 201, 203, 204, 205, 206, 207, 208, 217, 221, 223, 225, 227, 229, 231, 233, 237, 239, 241, 243, 245, 248, 250, 254, 256, 258, 260, 262, 264, 266, 270, 272, 274, 276, 278, 280, 282, 286, 288, 290, 292, 294, 296, 298, 302, 304, 306, 308, 310, 312, 314, 318, 319, 320, 321, 322, 324, 325, 327, 328, 329, 330, 331, 332, 333, 335, 349, 351, 353, 355, 357, 359, 363, 365, 367, 369, 371, 373, 375, 379, 381, 383, 385, 387, 389, 391, 395, 397, 399, 401, 404, 406, 408, 412, 414, 416, 418, 420, 422, 424, 428, 430, 432, 434, 436, 438, 440, 444, 446, 448, 450, 452, 454, 456, 460, 462, 464, 466, 468, 470, 472, 476, 478, 480, 482, 484, 486, 487, 489, 490, 491, 492, 493, 494, 495, 504, 505, 510, 527, 529, 531, 533, 537, 539, 541, 543, 545, 547, 549, 554, 556, 558, 560, 562, 564, 566, 570, 572, 574, 576, 578, 580, 582, 586, 588, 590, 592, 594, 596, 598, 602, 604, 606, 608, 610, 612, 614, 618, 620, 622, 624, 626, 628, 630, 634, 635, 636, 637, 638, 639, 640, 642, 643, 644, 645, 646, 647, 648, 650, 651, 652, 653, 654, 668, 670, 674, 676, 678, 680, 682, 684, 686, 690, 692, 694, 696, 698, 700, 702, 706, 708, 710, 712, 714, 716, 718, 722, 724, 726, 728, 730, 732, 734, 738, 740, 742, 744, 746, 748, 750, 754, 756, 758, 760, 762, 764, 766, 770 << self accessor :_lexer_trans_keys te :_lexer_trans_keys, :_lexer_trans_keys= lexer_trans_keys = [ 2, 34, 35, 37, 42, 64, 65, 9, 80, 83, 87, 90, 124, 9, 4, 34, 10, 32, 9, 13, 10, 4, 9, 13, 10, 32, 34, 9, 0, 32, 34, 9, 13, 10, 32, , 13, 10, 32, 9, 13, 10, , 13, 10, 13, 10, 95, 70, 5, 84, 85, 82, 69, 95, 69, 8, 95, 37, 32, 10, 10, 13, 2, 64, 9, 10, 9, 10, 13, 4, 11, 12, 10, 32, 64, 9, 08, 101, 101, -59, -68, 101, 108, 114, 97, 122, 114, 122, 121, 107, -126, 97, 100, 121, 58, 10, 10, 2, 124, 9, 13, 99, 122, 101, 97, 114, 105, 117, 115, 122, 58, 0, 10, 32, 35, 37, 42, 64, 4, 79, 83, 87, 90, 9, 13, 5, 10, 70, 10, 69, 10, 65, 4, 10, 85, 10, 82, 10, 69, 5, 10, 69, 10, 78, 10, 68, 5, 10, 37, 10, 32, 10, 32, 5, 37, 42, 64, 65, 74, 79, 3, 87, 90, 124, 9, 13, -59, -126, 97, -59, -101, 99, 105, 119, -59, -101, -60, -121, 58, 10, 10, 2, 35, 37, 64, 83, 90, 9, 0, 95, 10, 70, 10, 69, 10, 0, 84, 10, 85, 10, 82, 10, 0, 95, 10, 69, 10, 78, 10, 0, 95, 10, 37, 10, 99, 122, 01, 10, 110, 10, 97, 10, 114, 05, 10, 117, 10, 115, 10, 122, 8, 10, 97, 10, 98, 10, 108, 11, 10, 110, 10, 32, 10, 115, 9, 10, 101, 10, 110, 10, 97, 14, 10, 105, 10, 117, 10, 115, 22, 10, 97, 10, 97, -59, 10, 10, 10, 111, -59, 10, -68, 10, 01, 10, 110, 10, 105, 101, 100, 97, -59, 107, -126, 111, -59, -68, 110, 105, 97, 58, 10, 10, 10, 5, 37, 42, 64, 65, 74, 79, 7, 90, 9, 13, 10, 95, 10, 0, 69, 10, 65, 10, 84, 10, 0, 82, 10, 69, 10, 95, 10, 0, 78, 10, 68, 10, 95, 10, 0, 32, 10, 108, 10, 101, 10, -59, 10, -68, 10, 10, 101, 10, 10, 105, 10, 114, 10, 97, 10, 10, 99, 122, 10, 101, 10, 110, 7, 10, 114, 10, 105, 10, 117, 15, 10, 122, 10, 58, 10, 97, 8, 10, 108, 10, 111, 10, 110, 2, 10, 115, 10, 99, 10, 101, 10, 10, 97, 10, 114, 10, 105, 17, 10, 115, 10, 122, 10, 97, 16, 10, 101, 10, 100, 10, 121, 7, 10, 107, -59, 10, -126, 10, 7, 10, 100, 10, 97, 10, 106, 10, -123, 10, 10, 99, -59, -126, 00, 97, 106, -60, -123, 99, 32, 9, 13, 10, 32, 124, 9, 13, 10, 32, 124, 9, 13, 10, 32, 5, 37, 42, 64, 65, 74, 79, 3, 87, 90, 124, 9, 13, 10, 10, 101, 10, 101, -59, 10, -68, 0, 101, 10, 108, 10, 105, 10, 10, 97, 10, 122, 10, 99, 122, 01, 10, 110, 10, 97, 10, 114, 05, 10, 117, 10, 115, 10, 122, 8, 10, 97, 10, 98, 10, 108, 11, 10, 110, 10, 32, 10, 115, 9, 10, 101, 10, 110, 10, 97, 14, 10, 105, 10, 117, 10, 115, 22, 10, 97, 10, 116, 10, 101, 00, 10, 121, 10, 97, 10, 107, 10, -126, 10, 10, 97, 10, 100, 7, 10, 106, -60, 10, -123, 10, 9, 97, 98, 108, 111, 110, 32, 99, 101, 110, 97, 114, 105, 117, 122, 97, 58, 10, 10, 10, 32, 7, 42, 64, 65, 74, 79, 83, 0, 9, 13, 10, 95, 10, 70, 9, 10, 65, 10, 84, 10, 85, 2, 10, 69, 10, 95, 10, 69, 8, 10, 68, 10, 95, 10, 37, 2, 10, 108, 10, 101, 10, 101, 10, -68, 10, 10, 101, 10, 108, 05, 10, 114, 10, 97, 10, 122, 9, 10, 101, 10, 110, 10, 97, 14, 10, 105, 10, 117, 10, 115, 22, 10, 58, 10, 116, 10, 101, 00, 10, 121, 10, 97, 10, 107, 10, -126, 10, 10, 97, 10, 100, 7, 10, 106, -60, 10, -123, 10, 9, 0 << self accessor :_lexer_single_lengths te :_lexer_single_lengths, :_lexer_single_lengths= lexer_single_lengths = [ , 1, 1, 2, 3, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 5, 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, 12, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 15, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, , 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 3, 15, 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 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, << self accessor :_lexer_range_lengths te :_lexer_range_lengths, :_lexer_range_lengths= lexer_range_lengths = [ 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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, 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, 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, 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, << self accessor :_lexer_index_offsets te :_lexer_index_offsets, :_lexer_index_offsets= lexer_index_offsets = [ 17, 19, 21, 25, 30, 35, 5, 49, 53, 56, 58, 60, 62, 6, 68, 70, 72, 74, 76, 78, 2, 84, 86, 88, 90, 93, 98, 110, 112, 114, 116, 118, 120, 122, 126, 128, 130, 132, 134, 136, 138, 142, 144, 146, 148, 150, 152, 154, 161, 164, 166, 168, 170, 172, 174, 178, 180, 182, 184, 186, 200, 203, 209, 212, 215, 218, 221, 224, 227, 233, 236, 239, 242, 245, 262, 265, 269, 271, 273, 275, 277, 279, 281, 285, 287, 289, 291, 293, 295, 304, 310, 313, 316, 319, 322, 325, 328, 334, 337, 340, 343, 346, 350, 353, 359, 362, 365, 368, 371, 374, 377, 383, 386, 389, 392, 395, 398, 401, 407, 410, 413, 416, 419, 422, 425, 431, 434, 437, 440, 443, 446, 449, 455, 457, 459, 461, 463, 466, 468, 472, 474, 476, 478, 480, 482, 484, 488, 502, 505, 508, 511, 514, 517, 523, 526, 529, 532, 535, 538, 541, 547, 550, 553, 556, 559, 562, 565, 571, 574, 577, 580, 584, 587, 590, 596, 599, 602, 605, 608, 611, 614, 620, 623, 626, 629, 632, 635, 638, 644, 647, 650, 653, 656, 659, 662, 668, 671, 674, 677, 680, 683, 686, 692, 695, 698, 701, 704, 707, 709, 713, 715, 717, 719, 721, 723, 725, 734, 736, 741, 758, 761, 764, 767, 773, 776, 779, 782, 785, 788, 791, 798, 801, 804, 807, 810, 813, 816, 822, 825, 828, 831, 834, 837, 840, 846, 849, 852, 855, 858, 861, 864, 870, 873, 876, 879, 882, 885, 888, 894, 897, 900, 903, 906, 909, 912, 918, 920, 922, 924, 926, 928, 930, 934, 936, 938, 940, 942, 944, 946, 950, 952, 954, 956, 958, 972, 975, 981, 984, 987, 990, 993, 996, 999, 1005, 1008, 1011, 1014, 1017, 1020, 1023, 1029, 1032, 1035, 1038, 1041, 1044, 1047, 1053, 1056, 1059, 1062, 1065, 1068, 1071, 1077, 1080, 1083, 1086, 1089, 1092, 1095, 1101, 1104, 1107, 1110, 1113, 1116, 1119, 1125 << self accessor :_lexer_trans_targs te :_lexer_trans_targs, :_lexer_trans_targs= lexer_trans_targs = [ 2, 11, 13, 27, 30, 33, 1, 44, 57, 86, 156, 247, 1, 0, 4, 0, 5, 4, 4, 6, 7, 6, 6, 6, 6, 6, 6, 6, 8, 6, 6, 9, 6, 6, 1, 10, 10, 10, 10, 0, 1, 12, 11, 14, 0, 15, 0, 16, 0, , 18, 0, 19, 0, 20, 0, , 22, 0, 23, 0, 24, 0, , 26, 0, 377, 0, 28, 0, , 1, 12, 29, 0, 0, 0, , 32, 1, 32, 32, 30, 31, , 32, 30, 32, 0, 34, 0, , 36, 0, 37, 0, 38, 0, , 40, 0, 27, 0, 42, 0, , 27, 0, 45, 0, 46, 0, , 48, 0, 49, 0, 50, 0, , 52, 0, 53, 0, 54, 0, 5, 56, 55, 56, 56, 1, 56, 8, 305, 0, 59, 0, 60, 0, , 62, 0, 63, 0, 64, 0, , 66, 0, 67, 0, 69, 68, 8, 69, 69, 1, 70, 84, 1, 254, 260, 263, 290, 294, 69, 68, 1, 68, 69, 72, 68, 69, 73, 9, 74, 68, 69, 75, 68, 69, 8, 69, 77, 68, 69, 78, 68, 9, 68, 69, 80, 68, 69, 81, 9, 82, 68, 69, 83, 68, 69, , 69, 85, 68, 1, 1, 2, 3, 27, 30, 33, 35, 41, 44, 6, 156, 247, 1, 0, 87, 153, , 0, 89, 0, 90, 0, 91, , 0, 93, 0, 94, 0, 95, , 0, 97, 0, 98, 0, 99, 0, 0, 102, 101, 102, 101, 102, 1, 103, 1, 117, 144, 102, 101, 104, 101, 102, 105, 101, 102, 106, 102, 107, 101, 102, 108, 101, 102, 101, 102, 110, 101, 102, 111, 101, 112, 101, 102, 113, 101, 102, 114, 102, 115, 101, 102, 116, 101, 102, 1, 102, 118, 127, 101, 102, 119, 102, 120, 101, 102, 121, 101, 102, 101, 102, 123, 101, 102, 124, 101, 125, 101, 102, 126, 101, 102, 85, 102, 128, 101, 102, 129, 101, 102, 101, 102, 131, 101, 102, 132, 101, 133, 101, 102, 134, 101, 102, 135, 102, 136, 101, 102, 137, 101, 102, 101, 102, 139, 101, 102, 140, 101, 141, 101, 102, 142, 101, 102, 143, 102, 126, 101, 102, 145, 101, 146, 101, 147, 102, 101, 102, 148, 101, 102, 101, 150, 102, 101, 102, 151, 102, 152, 101, 102, 143, 101, 154, 5, 0, 27, 0, 157, 0, 158, 0, 159, 0, 160, 0, 161, 0, 0, 163, 0, 164, 0, 165, 0, 0, 167, 0, 169, 168, 169, 168, 169, 1, 170, 184, 1, 185, 187, 196, 223, 227, 169, 168, 169, 171, 169, 172, 168, 169, 173, 168, 169, 168, 169, 175, 168, 169, 176, 168, 177, 168, 169, 178, 168, 169, 179, 169, 180, 168, 169, 181, 168, 169, 168, 169, 183, 168, 169, 1, 168, 85, 168, 169, 186, 168, 169, 184, 169, 188, 168, 189, 169, 168, 190, 168, 169, 191, 168, 169, 192, 168, 184, 168, 169, 194, 168, 169, 195, 169, 184, 168, 169, 197, 206, 168, 198, 168, 169, 199, 168, 169, 200, 169, 201, 168, 169, 202, 168, 169, 168, 169, 204, 168, 169, 205, 168, 85, 168, 169, 207, 168, 169, 208, 169, 209, 168, 169, 210, 168, 169, 168, 169, 212, 168, 169, 213, 168, 214, 168, 169, 215, 168, 169, 216, 169, 217, 168, 169, 218, 168, 169, 168, 169, 220, 168, 169, 221, 168, 222, 168, 169, 205, 168, 169, 224, 169, 225, 168, 169, 226, 168, 169, 168, 169, 228, 168, 169, 229, 168, 169, 168, 231, 169, 168, 169, 232, 169, 233, 168, 169, 234, 168, 169, 168, 236, 169, 168, 237, 169, 168, 184, 168, 239, 0, 240, 0, 241, 2, 0, 243, 0, 244, 0, 245, 6, 0, 27, 0, 247, 248, 247, 1, 250, 248, 250, 249, 248, 249, 250, 248, 250, 249, 251, 251, 2, 3, 27, 30, 33, 35, 41, 44, 6, 156, 247, 251, 0, 69, 253, 9, 84, 68, 69, 255, 68, 256, 8, 257, 69, 68, 69, 258, 68, 59, 68, 69, 84, 68, 69, 261, 9, 262, 68, 69, 84, 68, 69, 273, 68, 69, 265, 68, 69, 266, 9, 267, 68, 69, 268, 68, 69, 68, 69, 270, 68, 69, 271, 68, 72, 68, 69, 85, 68, 69, 274, 9, 275, 68, 69, 276, 68, 69, 68, 69, 278, 68, 69, 279, 68, 80, 68, 69, 281, 68, 69, 282, 9, 283, 68, 69, 284, 68, 69, 68, 69, 286, 68, 69, 287, 68, 88, 68, 69, 289, 68, 69, 272, 9, 291, 68, 69, 292, 68, 69, 68, 69, 84, 68, 69, 295, 68, 96, 68, 297, 69, 68, 298, 69, 9, 299, 68, 69, 300, 68, 69, 68, 69, 302, 68, 303, 69, 68, 69, 68, 69, 84, 68, 306, 0, 0, 308, 0, 309, 0, 310, 0, 0, 312, 0, 313, 0, 314, 0, 0, 316, 0, 317, 0, 318, 0, 0, 320, 0, 321, 0, 322, 0, 0, 325, 324, 325, 324, 325, 325, 6, 340, 1, 341, 343, 349, 352, 366, 325, 324, 325, 327, 324, 325, 324, 325, 329, 324, 325, 330, 324, 331, 324, 325, 332, 324, 325, 333, 325, 334, 324, 325, 335, 324, 325, 324, 325, 337, 324, 325, 338, 324, 339, 324, 325, 1, 324, 325, 85, 325, 342, 324, 325, 340, 324, 325, 324, 345, 325, 324, 346, 325, 324, 347, 324, 325, 348, 324, 325, 340, 325, 350, 324, 325, 351, 324, 325, 324, 325, 353, 324, 325, 354, 324, 355, 324, 325, 356, 324, 325, 357, 325, 358, 324, 325, 359, 324, 325, 324, 325, 361, 324, 325, 85, 324, 363, 324, 325, 364, 324, 325, 365, 325, 340, 324, 325, 367, 324, 325, 324, 369, 325, 324, 370, 325, 324, 371, 324, 325, 372, 324, 325, 373, 325, 374, 324, 375, 325, 324, 376, 324, 325, 340, 324, 0, 0 << self accessor :_lexer_trans_actions te :_lexer_trans_actions, :_lexer_trans_actions= lexer_trans_actions = [ , 3, 1, 0, 23, 1, 23, 3, 23, 23, 23, 23, 29, 0, , 37, 0, 37, 45, 0, 0, 17, 39, 39, 39, 5, 109, 27, 7, 0, 109, 27, 27, 27, 0, 27, 0, 27, 0, 93, 7, 7, 5, 0, 0, 37, 101, 19, 0, 7, 0, 37, 0, 37, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 0, 37, 0, 37, 8, 97, 17, 0, 37, 37, 37, , 21, 105, 21, 21, 42, 21, , 0, 1, 0, 37, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 0, 37, 0, 37, 48, 45, 0, 45, 0, 72, 0, 0, 37, 0, 37, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 0, 37, 122, 48, , 45, 0, 66, 27, 75, 66, 5, 75, 75, 75, 75, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, , 45, 13, 0, 113, 25, 51, 5, 54, 48, 54, 54, 54, 54, 4, 54, 57, 25, 37, 0, 0, , 37, 0, 37, 0, 37, 0, , 37, 0, 37, 0, 37, 0, , 37, 0, 37, 0, 37, 0, , 37, 122, 48, 45, 0, 45, , 27, 60, 75, 75, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 9, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 0, , 0, 45, 0, 45, 0, 0, , 0, 0, 45, 0, 45, 0, , 0, 0, 45, 0, 0, 0, , 37, 0, 37, 0, 37, 0, , 0, 37, 0, 37, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 122, 48, 45, 0, , 63, 27, 75, 63, 75, 75, 5, 75, 75, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 11, 0, 1, 0, 45, 0, 0, 45, 0, , 0, 0, 0, 45, 0, 0, , 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, 1, 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 0, 45, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, , 0, 0, 37, 0, 37, 0, , 37, 0, 37, 0, 37, 0, , 37, 0, 37, 0, 0, 0, 5, 31, 78, 31, 31, 33, 0, , 33, 0, 0, 45, 0, 84, 5, 87, 81, 87, 87, 87, 87, 7, 87, 90, 0, 37, 45, 0, , 0, 0, 45, 0, 0, 0, , 0, 45, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 13, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 0, 45, 0, 0, 45, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 0, 45, 0, , 0, 45, 0, 0, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 0, 37, 0, 37, , 122, 48, 45, 0, 45, 0, 7, 75, 69, 75, 75, 75, 75, 5, 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 15, 0, 45, 15, , 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 15, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 0, 45, 0, 0, , 45, 0, 0, 0, 0 << self accessor :_lexer_eof_actions te :_lexer_eof_actions, :_lexer_eof_actions= lexer_eof_actions = [ , 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7, 37, 37, 37, 37, 37, 37, 7 << self accessor :lexer_start exer_start = 1; << self accessor :lexer_first_final exer_first_final = 377; << self accessor :lexer_error exer_error = 0; << self accessor :lexer_en_main exer_en_main = 1; 130 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" end
def multiline_strip(text)
def multiline_strip(text) crlf_count = text.scan(CRLF_RE).size lf_count = text.scan(LF_RE).size eol = crlf_count > lf_count ? CRLF : LF text.split(/\r?\n/).map{|s| s.strip}.join(eol).strip end
def scan(data)
def scan(data) data = (data + "\n%_FEATURE_END_%").unpack("c*") # Explicit EOF simplifies things considerably eof = pe = data.length @line_number = 1 @last_newline = 0 745 "lib/gherkin/rb_lexer/pl.rb" 0 = data.length lexer_start 140 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" 754 "lib/gherkin/rb_lexer/pl.rb" , _trans, _keys, _acts, _nacts = nil _level = 0 me = 10 trans = 15 n = 20 _eof = 30 = 40 true ger_goto = false oto_level <= 0 == pe o_level = _test_eof == 0 o_level = _out oto_level <= _resume = _lexer_key_offsets[cs] s = _lexer_index_offsets[cs] = _lexer_single_lengths[cs] k_match = false _klen > 0 _lower = _keys _upper = _keys + _klen - 1 loop do break if _upper < _lower _mid = _lower + ( (_upper - _lower) >> 1 ) if data[p] < _lexer_trans_keys[_mid] _upper = _mid - 1 elsif data[p] > _lexer_trans_keys[_mid] _lower = _mid + 1 else _trans += (_mid - _keys) _break_match = true break end end # loop break if _break_match _keys += _klen _trans += _klen en = _lexer_range_lengths[cs] _klen > 0 _lower = _keys _upper = _keys + (_klen << 1) - 2 loop do break if _upper < _lower _mid = _lower + (((_upper-_lower) >> 1) & ~1) if data[p] < _lexer_trans_keys[_mid] _upper = _mid - 2 elsif data[p] > _lexer_trans_keys[_mid+1] _lower = _mid + 2 else _trans += ((_mid - _keys) >> 1) _break_match = true break end end # loop break if _break_match _trans += _klen hile false _lexer_trans_targs[_trans] exer_trans_actions[_trans] != 0 s = _lexer_trans_actions[_trans] ts = _lexer_actions[_acts] s += 1 e _nacts > 0 cts -= 1 ts += 1 e _lexer_actions[_acts - 1] then 9 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n @content_start = p @current_line = @line_number end 9 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" then 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n @current_line = @line_number @start_col = p - @last_newline end 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" then 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n @content_start = p end 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" then 23 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n con = unindent(@start_col, data[@content_start...@next_keyword_start-1].utf8_pack("c*").sub(/(\r?\n)?( )*\Z/, '').gsub(/\\"\\"\\"/, '"""')) @listener.py_string(con, @current_line) end 23 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" then 28 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n store_keyword_content(:feature, data, p, eof) { |con| multiline_strip(con) } p = @next_keyword_start - 1 if @next_keyword_start @next_keyword_start = nil end 28 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" then 34 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n store_keyword_content(:background, data, p, eof) { |con| multiline_strip(con) } p = @next_keyword_start - 1 if @next_keyword_start @next_keyword_start = nil end 34 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" then 40 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n store_keyword_content(:scenario, data, p, eof) { |con| multiline_strip(con) } p = @next_keyword_start - 1 if @next_keyword_start @next_keyword_start = nil end 40 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" then 46 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n store_keyword_content(:scenario_outline, data, p, eof) { |con| multiline_strip(con) } p = @next_keyword_start - 1 if @next_keyword_start @next_keyword_start = nil end 46 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" then 52 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n store_keyword_content(:examples, data, p, eof) { |con| multiline_strip(con) } p = @next_keyword_start - 1 if @next_keyword_start @next_keyword_start = nil end 52 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" then 58 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n con = data[@content_start...p].utf8_pack("c*").strip @listener.step(@keyword, con, @current_line) end 58 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" 0 then 63 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n con = data[@content_start...p].utf8_pack("c*").strip @listener.comment(con, @line_number) @keyword_start = nil end 63 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" 1 then 69 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n con = data[@content_start...p].utf8_pack("c*").strip @listener.tag(con, @current_line) @keyword_start = nil end 69 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" 2 then 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n @line_number += 1 end 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" 3 then 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n @last_newline = p + 1 end 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" 4 then 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n @keyword_start ||= p end 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" 5 then 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n @keyword = data[@keyword_start...p].utf8_pack("c*").sub(/:$/,'') @keyword_start = nil end 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" 6 then 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n @next_keyword_start = p end 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" 7 then 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n p = p - 1 current_row = [] @current_line = @line_number end 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" 8 then 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n @content_start = p end 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" 9 then 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n con = data[@content_start...p].utf8_pack("c*").strip current_row << con end 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" 0 then 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n @listener.row(current_row, @current_line) end 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" 1 then 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n if cs < lexer_first_final content = current_line_content(data, p) raise LexingError.new("Lexing error on line %d: '%s'." % [@line_number, content]) else @listener.eof end end 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" 1015 "lib/gherkin/rb_lexer/pl.rb" # action switch rigger_goto oto_level <= _again == 0 o_level = _out 1 != pe o_level = _resume oto_level <= _test_eof == eof s = _lexer_eof_actions[cs] ts = _lexer_actions[__acts] s += 1 __nacts > 0 cts -= 1 ts += 1 _lexer_actions[__acts - 1] 1 then 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" n if cs < lexer_first_final content = current_line_content(data, p) raise LexingError.new("Lexing error on line %d: '%s'." % [@line_number, content]) else @listener.eof end end 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" 1055 "lib/gherkin/rb_lexer/pl.rb" # eof action switch rigger_goto oto_level <= _out k 141 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/pl.rb.rl" end
def store_keyword_content(event, data, p, eof)
def store_keyword_content(event, data, p, eof) end_point = (!@next_keyword_start or (p == eof)) ? p : @next_keyword_start con = yield data[@content_start...end_point].utf8_pack("c*") @listener.send(event, @keyword, con, @current_line) end
def unindent(startcol, text)
def unindent(startcol, text) text.gsub(/^ {0,#{startcol}}/, "") end