class Gherkin::RbLexer::De
: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/de.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 = [ 18, 19, 20, 24, 29, 34, 4, 48, 52, 54, 55, 56, 57, 9, 60, 61, 62, 63, 64, 65, 7, 68, 69, 70, 71, 73, 78, 0, 92, 93, 94, 95, 96, 97, 9, 100, 101, 102, 103, 104, 105, 107, 108, 109, 110, 111, 112, 113, 119, 120, 121, 122, 123, 124, 125, 127, 128, 129, 130, 131, 132, 133, 135, 136, 137, 146, 148, 150, 152, 156, 158, 160, 162, 164, 166, 168, 172, 174, 176, 178, 180, 182, 184, 188, 190, 192, 210, 212, 213, 214, 216, 217, 218, 219, 220, 221, 222, 224, 225, 226, 227, 228, 229, 230, 245, 247, 249, 251, 253, 255, 257, 261, 263, 265, 267, 269, 271, 273, 278, 280, 282, 284, 286, 288, 290, 294, 296, 298, 300, 302, 304, 306, 310, 312, 314, 316, 318, 320, 322, 326, 328, 330, 332, 334, 336, 339, 343, 345, 347, 349, 351, 353, 355, 359, 361, 363, 364, 365, 366, 367, 369, 370, 372, 373, 374, 388, 390, 394, 396, 398, 400, 402, 404, 406, 410, 412, 414, 416, 418, 421, 423, 427, 429, 431, 433, 435, 437, 439, 443, 445, 447, 449, 451, 453, 455, 459, 461, 463, 465, 467, 469, 471, 475, 477, 479, 482, 484, 486, 488, 492, 494, 496, 498, 500, 502, 504, 507, 508, 509, 510, 511, 512, 513, 515, 516, 517, 531, 533, 535, 537, 541, 543, 545, 547, 549, 551, 553, 557, 559, 561, 564, 566, 568, 570, 574, 576, 578, 580, 582, 584, 586, 590, 592, 594, 596, 598, 600, 602, 606, 608, 610, 612, 614, 616, 618, 622, 624, 626, 628, 630, 631, 632, 637, 642, 643, 648, 666, 668, 670, 674, 676, 678, 680, 683, 685, 687, 691, 693, 695, 697, 699 << self accessor :_lexer_trans_keys te :_lexer_trans_keys, :_lexer_trans_keys= lexer_trans_keys = [ 2, 34, 35, 37, 42, 64, 65, 8, 70, 71, 83, 85, 87, 124, , 34, 34, 10, 32, 9, 13, 2, 34, 9, 13, 10, 32, 34, , 10, 32, 34, 9, 13, 10, 4, 9, 13, 10, 32, 9, 13, 2, 9, 13, 10, 13, 10, 95, 9, 65, 84, 85, 82, 69, 95, 8, 68, 95, 37, 32, 10, 10, 3, 32, 64, 9, 10, 9, 10, 2, 64, 11, 12, 10, 32, 64, , 98, 110, 101, 114, 103, 101, 111, 109, 109, 101, 110, 101, 105, 112, 105, 101, 108, 101, 58, 10, 0, 32, 124, 9, 13, 97, 110, 110, 107, 116, 105, 111, 110, 97, 105, 116, -61, -92, 116, 58, 10, 0, 32, 35, 37, 64, 71, 83, , 10, 95, 10, 70, 10, 69, 5, 10, 84, 10, 85, 10, 82, 9, 10, 95, 10, 69, 10, 78, 8, 10, 95, 10, 37, 10, 114, 17, 10, 110, 10, 100, 10, 108, 7, 10, 103, 10, 101, 10, 58, 2, 34, 35, 37, 42, 64, 65, 8, 70, 71, 83, 85, 87, 124, , 101, 114, 103, 101, 98, 101, 32, 115, 101, 105, 117, 110, 100, 97, 103, 101, 58, 10, 10, 10, 5, 37, 42, 64, 65, 68, 71, 5, 87, 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, 98, 110, 10, 101, 14, 10, 103, 10, 101, 10, 110, 11, 10, 109, 10, 109, 10, 101, 10, 10, 97, 10, 110, 10, 101, 03, 10, 101, 10, 98, 10, 101, 10, 10, 32, 10, 115, 10, 101, 05, 10, 122, 10, 101, 10, 110, 7, 10, 114, 10, 105, 10, 111, 8, 103, 10, 114, 10, 117, 10, 10, 100, 10, 114, 10, 105, 10, 10, 115, 10, 58, 10, 110, 10, 10, 101, 122, 101, 110, 97, 114, 111, 58, 103, 10, 10, 10, 32, 7, 42, 64, 65, 68, 71, 83, 7, 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, 98, 110, 10, 101, 10, 10, 103, 10, 101, 10, 110, 10, 10, 109, 10, 109, 10, 101, 10, 10, 97, 10, 110, 10, 101, 10, 10, 101, 10, 98, 10, 101, 10, 10, 32, 10, 115, 10, 101, 10, 10, 122, 10, 101, 10, 110, 10, 0, 114, 10, 105, 10, 111, 10, 03, 10, 114, 10, 117, 10, 110, 00, 10, 114, 10, 105, 10, 115, 15, 10, 58, 10, 110, 10, 100, 01, 114, 117, 110, 100, 114, 105, 115, 58, 10, 10, 10, 32, 35, 2, 64, 65, 68, 71, 83, 85, , 13, 10, 95, 10, 70, 10, 0, 65, 10, 84, 10, 85, 10, 0, 69, 10, 95, 10, 69, 10, 0, 68, 10, 95, 10, 37, 10, 0, 98, 110, 10, 101, 10, 114, 03, 10, 101, 10, 110, 10, 111, 09, 10, 109, 10, 101, 10, 110, 7, 10, 110, 10, 101, 10, 103, 01, 10, 98, 10, 101, 10, 110, 2, 10, 115, 10, 101, 10, 105, 22, 10, 101, 10, 110, 10, 97, 14, 10, 105, 10, 111, 10, 58, 10, 10, 100, 10, 101, 110, 100, 32, 124, 9, 13, 10, 32, 124, , 124, 10, 32, 124, 9, 13, 2, 34, 35, 37, 42, 64, 65, 8, 70, 71, 83, 85, 87, 124, , 10, 122, 10, 101, 10, 110, 7, 10, 114, 10, 105, 10, 111, 8, 103, 10, 114, 10, 117, 10, 10, 100, 10, 114, 10, 105, 10, 10, 115, 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, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 16, 2, 1, 1, 1, 1, 1, 1, 1, 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 2, 1, 1, 12, 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, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 12, 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, 1, 1, 1, 1, 3, 16, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 0 << 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, 1, 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, 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, 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, 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, 1, 1, 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 = [ 18, 20, 22, 26, 31, 36, 6, 50, 54, 57, 59, 61, 63, 7, 69, 71, 73, 75, 77, 79, 3, 85, 87, 89, 91, 94, 99, 111, 114, 116, 118, 120, 122, 124, 128, 130, 132, 134, 136, 138, 140, 144, 146, 148, 150, 152, 154, 156, 163, 165, 167, 169, 171, 173, 175, 179, 181, 183, 185, 187, 189, 191, 195, 197, 199, 208, 211, 214, 217, 223, 226, 229, 232, 235, 238, 241, 247, 250, 253, 256, 259, 262, 265, 271, 274, 277, 295, 298, 300, 302, 306, 308, 310, 312, 314, 316, 318, 322, 324, 326, 328, 330, 332, 334, 350, 353, 356, 359, 362, 365, 368, 374, 377, 380, 383, 386, 389, 392, 399, 402, 405, 408, 411, 414, 417, 423, 426, 429, 432, 435, 438, 441, 447, 450, 453, 456, 459, 462, 465, 471, 474, 477, 480, 483, 486, 490, 496, 499, 502, 505, 508, 511, 514, 520, 523, 526, 528, 530, 532, 534, 538, 540, 543, 545, 547, 561, 564, 570, 573, 576, 579, 582, 585, 588, 594, 597, 600, 603, 606, 610, 613, 619, 622, 625, 628, 631, 634, 637, 643, 646, 649, 652, 655, 658, 661, 667, 670, 673, 676, 679, 682, 685, 691, 694, 697, 701, 704, 707, 710, 716, 719, 722, 725, 728, 731, 734, 739, 741, 743, 745, 747, 749, 751, 755, 757, 759, 773, 776, 779, 782, 788, 791, 794, 797, 800, 803, 806, 812, 815, 818, 822, 825, 828, 831, 837, 840, 843, 846, 849, 852, 855, 861, 864, 867, 870, 873, 876, 879, 885, 888, 891, 894, 897, 900, 903, 909, 912, 915, 918, 921, 923, 925, 931, 936, 938, 943, 961, 964, 967, 973, 976, 979, 982, 986, 989, 992, 998, 1001, 1004, 1007, 1010 << self accessor :_lexer_trans_targs te :_lexer_trans_targs, :_lexer_trans_targs= lexer_trans_targs = [ 2, 11, 13, 27, 30, 33, 6, 58, 100, 179, 309, 311, 312, 3, 0, 4, 0, 5, 4, 6, 6, 7, 6, 6, 6, 6, 6, 6, 6, 8, 6, 6, 9, 6, 6, 1, 10, , 1, 10, 10, 0, 1, 12, , 0, 14, 0, 15, 0, 16, , 0, 18, 0, 19, 0, 20, , 0, 22, 0, 23, 0, 24, , 0, 26, 0, 333, 0, 28, 29, 1, 12, 29, 0, 0, 31, 32, 1, 32, 32, 30, 1, 1, 32, 30, 32, 0, 34, , 35, 0, 27, 0, 37, 0, , 39, 0, 40, 0, 41, 0, , 43, 0, 27, 0, 45, 0, , 47, 0, 48, 0, 49, 0, , 51, 0, 52, 0, 53, 0, 4, 55, 54, 55, 55, 1, 55, 7, 0, 43, 0, 59, 0, 60, , 0, 62, 0, 63, 0, 64, , 0, 66, 0, 67, 0, 68, , 0, 70, 0, 71, 0, 72, , 0, 75, 74, 75, 74, 75, , 76, 1, 90, 317, 75, 74, 7, 74, 75, 78, 74, 75, 79, 5, 80, 74, 75, 81, 74, 75, 4, 75, 83, 74, 75, 84, 74, 5, 74, 75, 86, 74, 75, 87, 5, 88, 74, 75, 89, 74, 75, , 75, 91, 74, 75, 92, 74, 3, 74, 75, 94, 74, 75, 95, 5, 96, 74, 75, 97, 74, 75, 4, 75, 99, 74, 1, 1, 2, 3, 27, 30, 33, 44, 56, 58, 179, 309, 311, 312, 1, 0, 101, 0, 102, 0, 103, 0, 104, 0, 0, 106, 0, 107, 0, 108, 0, 0, 27, 0, 111, 0, 112, 0, 0, 114, 0, 115, 0, 116, 0, 0, 118, 0, 120, 119, 120, 119, 120, 1, 121, 135, 1, 136, 147, 159, 176, 178, 120, 119, 120, 122, 120, 123, 119, 120, 124, 119, 120, 119, 120, 126, 119, 120, 127, 119, 128, 119, 120, 129, 119, 120, 130, 120, 131, 119, 120, 132, 119, 120, 119, 120, 134, 119, 120, 1, 119, 99, 119, 120, 137, 139, 119, 120, 119, 120, 135, 119, 120, 140, 119, 141, 119, 120, 142, 119, 120, 143, 120, 144, 119, 120, 145, 119, 120, 119, 120, 135, 119, 120, 148, 119, 146, 119, 120, 150, 119, 120, 151, 120, 152, 119, 120, 153, 119, 120, 119, 120, 155, 119, 120, 156, 119, 157, 119, 120, 158, 119, 120, 135, 120, 160, 119, 120, 161, 119, 120, 119, 120, 163, 119, 120, 164, 119, 165, 119, 120, 166, 119, 120, 99, 119, 120, 168, 119, 120, 169, 119, 170, 119, 120, 171, 119, 120, 172, 120, 173, 119, 120, 174, 119, 120, 119, 120, 99, 119, 120, 177, 119, 135, 119, 120, 148, 119, 180, 0, 0, 182, 0, 183, 0, 184, 0, 0, 186, 0, 187, 248, 0, 189, 189, 188, 189, 189, 1, 190, 204, 5, 216, 218, 228, 245, 247, 189, 189, 191, 188, 189, 192, 188, 189, 188, 189, 194, 188, 189, 195, 188, 196, 188, 189, 197, 188, 189, 198, 189, 199, 188, 189, 200, 188, 189, 188, 189, 202, 188, 189, 203, 188, 1, 188, 189, 99, 188, 189, 206, 188, 189, 207, 188, 189, 204, 188, 209, 188, 189, 210, 188, 189, 211, 189, 212, 188, 189, 213, 188, 189, 188, 189, 215, 188, 189, 204, 188, 217, 188, 189, 215, 188, 189, 219, 189, 220, 188, 189, 221, 188, 189, 188, 189, 223, 188, 189, 224, 188, 225, 188, 189, 226, 188, 189, 227, 189, 204, 188, 189, 229, 188, 189, 188, 189, 231, 188, 189, 232, 188, 233, 188, 189, 234, 188, 189, 235, 189, 99, 236, 188, 189, 237, 188, 238, 188, 189, 239, 188, 189, 240, 189, 241, 188, 189, 242, 188, 189, 188, 189, 244, 188, 189, 99, 188, 246, 188, 189, 204, 188, 189, 217, 249, 0, 250, 0, 251, 0, 252, 3, 0, 254, 0, 255, 0, 256, 7, 0, 259, 258, 259, 258, 259, 1, 260, 274, 1, 275, 286, 288, 306, 308, 259, 258, 259, 261, 258, 262, 258, 259, 263, 258, 259, 264, 259, 265, 258, 259, 266, 258, 259, 258, 259, 268, 258, 259, 269, 258, 270, 258, 259, 271, 258, 259, 272, 259, 273, 258, 259, 1, 258, 259, 58, 259, 276, 278, 258, 259, 277, 259, 274, 258, 259, 279, 258, 259, 258, 259, 281, 258, 259, 282, 258, 283, 258, 259, 284, 258, 259, 285, 259, 274, 258, 259, 287, 258, 259, 258, 259, 289, 258, 259, 290, 258, 291, 258, 259, 292, 258, 259, 293, 259, 294, 258, 259, 295, 258, 259, 258, 259, 297, 258, 259, 274, 258, 299, 258, 259, 300, 258, 259, 301, 259, 302, 258, 259, 303, 258, 259, 258, 259, 305, 258, 259, 99, 258, 307, 258, 259, 274, 258, 259, 287, 310, 0, 27, 0, 57, 0, 312, 312, 0, 316, 315, 313, 315, 314, 314, 316, 315, 313, 315, 314, 316, 2, 11, 13, 27, 30, 33, 44, 8, 100, 179, 309, 311, 312, 316, , 318, 74, 75, 319, 74, 75, 74, 75, 321, 74, 75, 322, 74, 23, 74, 75, 324, 74, 75, 99, 74, 75, 326, 74, 75, 327, 74, 28, 74, 75, 329, 74, 75, 330, 5, 331, 74, 75, 332, 74, 75, 4, 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, 23, 29, , 0, 37, 0, 37, 45, 0, , 117, 39, 39, 39, 5, 109, 7, 27, 0, 109, 27, 27, 27, 9, 27, 0, 27, 0, 93, 7, , 45, 0, 0, 37, 101, 19, , 37, 0, 37, 0, 37, 0, , 37, 0, 37, 0, 37, 0, , 37, 0, 37, 0, 37, 0, , 37, 0, 37, 0, 37, 0, 7, 48, 97, 17, 0, 37, 37, 7, 0, 21, 105, 21, 21, 42, , 45, 0, 1, 0, 37, 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, 0, 37, 0, 37, 48, 45, 0, 45, 0, 72, 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, , 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, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 9, 0, 113, 25, 51, 5, 54, 48, 54, 54, 54, 54, 4, 54, 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, 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, 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, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 11, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 11, 0, 45, 0, 0, , 0, 45, 0, 0, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 0, 0, 37, 122, 5, 0, 45, 0, 66, 27, 75, 5, 75, 75, 75, 75, 75, 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, 3, 0, 45, 13, 0, 45, 0, 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, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 13, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 13, 0, , 0, 45, 0, 0, 45, 0, 37, 0, 37, 0, 37, 0, , 37, 0, 37, 0, 37, 0, , 37, 122, 48, 45, 0, 45, , 27, 75, 69, 75, 75, 75, 5, 75, 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, 15, 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, 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, 15, 0, , 0, 45, 0, 0, 45, 0, 37, 0, 37, 0, 37, 0, 37, 45, 31, 78, 31, 31, , 45, 0, 33, 0, 0, 45, , 81, 35, 87, 81, 87, 87, 7, 87, 87, 87, 87, 90, 0, 5, 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 9, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 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 << self accessor :lexer_start exer_start = 1; << self accessor :lexer_first_final exer_first_final = 333; << self accessor :lexer_error exer_error = 0; << self accessor :lexer_en_main exer_en_main = 1; 130 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.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 678 "lib/gherkin/rb_lexer/de.rb" 0 = data.length lexer_start 140 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" 687 "lib/gherkin/rb_lexer/de.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/de.rb.rl" n @content_start = p @current_line = @line_number end 9 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" then 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" n @current_line = @line_number @start_col = p - @last_newline end 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" then 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" n @content_start = p end 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" then 23 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.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/de.rb.rl" then 28 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.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/de.rb.rl" then 34 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.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/de.rb.rl" then 40 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.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/de.rb.rl" then 46 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.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/de.rb.rl" then 52 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.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/de.rb.rl" then 58 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.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/de.rb.rl" 0 then 63 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.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/de.rb.rl" 1 then 69 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.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/de.rb.rl" 2 then 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" n @line_number += 1 end 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" 3 then 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" n @last_newline = p + 1 end 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" 4 then 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" n @keyword_start ||= p end 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" 5 then 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" n @keyword = data[@keyword_start...p].utf8_pack("c*").sub(/:$/,'') @keyword_start = nil end 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" 6 then 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" n @next_keyword_start = p end 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" 7 then 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" n p = p - 1 current_row = [] @current_line = @line_number end 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" 8 then 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" n @content_start = p end 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" 9 then 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" n con = data[@content_start...p].utf8_pack("c*").strip current_row << con end 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" 0 then 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" n @listener.row(current_row, @current_line) end 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.rb.rl" 1 then 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.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/de.rb.rl" 948 "lib/gherkin/rb_lexer/de.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/de.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/de.rb.rl" 988 "lib/gherkin/rb_lexer/de.rb" # eof action switch rigger_goto oto_level <= _out k 141 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/de.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