class Gherkin::RbLexer::Ro_ro
: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/ro_ro.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, 20, 21, 23, 5, 26, 30, 35, 40, 45, 50, 8, 60, 61, 62, 63, 64, 65, 7, 68, 69, 70, 71, 72, 73, 9, 86, 91, 92, 93, 94, 95, 8, 99, 100, 101, 102, 103, 104, 106, 107, 108, 109, 110, 123, 125, 129, 146, 147, 149, 150, 151, 152, 154, 155, 156, 157, 158, 159, 160, 162, 167, 168, 169, 170, 171, 172, 174, 175, 176, 177, 178, 179, 180, 182, 183, 184, 185, 194, 196, 198, 202, 204, 206, 208, 210, 212, 214, 218, 220, 222, 224, 226, 228, 230, 234, 236, 238, 240, 242, 244, 246, 250, 252, 254, 257, 259, 261, 263, 267, 269, 271, 273, 275, 277, 279, 281, 282, 283, 284, 285, 286, 288, 290, 303, 305, 307, 309, 311, 313, 317, 319, 321, 323, 325, 327, 329, 333, 335, 337, 339, 341, 343, 345, 349, 351, 353, 355, 358, 360, 362, 366, 368, 370, 372, 374, 376, 379, 383, 385, 387, 389, 391, 393, 395, 399, 401, 403, 404, 405, 406, 407, 409, 410, 411, 412, 413, 414, 415, 417, 430, 432, 434, 436, 438, 440, 444, 446, 448, 450, 452, 454, 456, 460, 462, 464, 466, 468, 470, 472, 476, 478, 480, 482, 485, 487, 489, 493, 495, 497, 499, 501, 503, 505, 514, 515, 520, 537, 539, 541, 543, 547, 549, 551, 553, 555, 557, 559, 563, 565, 567, 569, 571, 573, 575, 579, 581, 583, 586, 588, 590, 592, 596, 598, 600, 602, 604, 607, 609, 613, 615, 617, 619, 621, 623, 625, 629, 631 << self accessor :_lexer_trans_keys te :_lexer_trans_keys, :_lexer_trans_keys= lexer_trans_keys = [ 10, 32, 34, 35, 37, 42, 64, 7, 68, 69, 70, 83, 124, 9, 104, 105, 32, 10, 10, 13, 10, 4, 10, 32, 9, 13, 10, 32, , 13, 10, 32, 34, 9, 13, 2, 34, 9, 13, 10, 32, 34, , 10, 32, 9, 13, 10, 32, , 10, 13, 95, 70, 69, 65, 5, 82, 69, 95, 69, 78, 68, 7, 13, 32, 64, 9, 10, 9, 3, 32, 64, 11, 12, 10, 32, , 13, 116, 117, 110, 99, -61, -94, 110, 100, 110, 100, 105, -59, 105, 105, 58, 10, 10, -56, 10, 5, 37, 42, 64, 65, 67, 68, , 13, -104, 10, 10, 105, 10, 56, 10, 32, 34, 35, 37, 42, 5, 67, 68, 69, 70, 83, 124, , 97, 99, 114, -60, -125, 120, 109, 112, 108, 101, 108, 101, 58, 0, 10, 32, 124, 9, 13, 117, 99, -56, -101, 105, 111, 110, 97, 105, 116, 97, 116, 101, 58, 10, 0, 32, 35, 37, 64, 67, 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, 111, 10, 10, 100, 10, 105, -59, 10, 10, 10, 105, 10, 105, 10, 58, 9, 10, 101, 10, 110, 10, 97, 14, 10, 105, 10, 117, 10, 58, 10, 32, 10, 100, 10, 101, 10, 59, 10, -97, 10, 10, 97, 10, 0, 108, 10, 111, 10, 110, 99, 110, 97, 114, 105, 117, 58, 108, 0, -56, 10, 32, 35, 37, 42, 5, 67, 68, 83, 9, 13, -104, 0, 105, 10, 32, 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, 116, 10, 117, 10, 110, 10, 61, 10, -94, 10, 10, 110, 10, 10, 97, 10, 99, 114, -60, 10, 10, 10, 99, 10, 101, 10, 110, 7, 10, 114, 10, 105, 10, 117, 8, 108, 10, 32, 10, 100, 10, 10, 32, -59, 10, -97, 10, 10, 0, 98, 10, 108, 10, 111, 10, 10, 58, 32, 100, 101, 32, -59, 97, 98, 108, 111, 110, 58, 10, 56, 10, 32, 35, 37, 42, 64, 7, 68, 83, 9, 13, -104, 10, 05, 10, 32, 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, 16, 10, 117, 10, 110, 10, 99, 10, -94, 10, 10, 110, 10, 100, 7, 10, 99, 114, -60, 10, -125, 0, 99, 10, 101, 10, 110, 10, 0, 114, 10, 105, 10, 117, 10, 2, 124, 9, 13, 10, 32, 124, , 124, 10, 32, 124, 9, 13, 10, 32, 34, 35, 37, 42, 64, 7, 68, 69, 70, 83, 124, 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, 116, 10, 10, 110, 10, 99, -61, 10, -94, 0, 110, 10, 100, 10, 97, 10, 14, -60, 10, -125, 10, 10, 99, 01, 10, 110, 10, 97, 10, 114, 05, 10, 117, 10, 58, 108, 10, 0, 100, 10, 101, 10, 32, -59, 97, 10, 10, 97, 10, 98, 10, 10, 111, 10, 110, 10, 58, 0 << self accessor :_lexer_single_lengths te :_lexer_single_lengths, :_lexer_single_lengths= lexer_single_lengths = [ , 1, 1, 1, 1, 2, 1, 2, 3, 3, 3, 3, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 2, 2, , 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 2, 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, 3, 2, 2, 2, 2, 2, 2, 2, 2, 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, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 15, 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, 3, 2, 2, 2, 2, 2, 2, 2, 2, 0 << self accessor :_lexer_range_lengths te :_lexer_range_lengths, :_lexer_range_lengths= lexer_range_lengths = [ 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 << self accessor :_lexer_index_offsets te :_lexer_index_offsets, :_lexer_index_offsets= lexer_index_offsets = [ 17, 19, 21, 23, 25, 28, 2, 34, 38, 43, 48, 53, 58, 6, 69, 71, 73, 75, 77, 79, 3, 85, 87, 89, 91, 93, 95, 02, 109, 114, 116, 118, 120, 122, 127, 129, 131, 133, 135, 137, 139, 143, 145, 147, 149, 151, 164, 167, 173, 190, 192, 195, 197, 199, 201, 205, 207, 209, 211, 213, 215, 217, 221, 226, 228, 230, 232, 234, 236, 240, 242, 244, 246, 248, 250, 252, 256, 258, 260, 262, 271, 274, 277, 283, 286, 289, 292, 295, 298, 301, 307, 310, 313, 316, 319, 322, 325, 331, 334, 337, 340, 343, 346, 349, 355, 358, 361, 365, 368, 371, 374, 380, 383, 386, 389, 392, 395, 398, 402, 404, 406, 408, 410, 412, 415, 419, 432, 435, 438, 441, 444, 447, 453, 456, 459, 462, 465, 468, 471, 477, 480, 483, 486, 489, 492, 495, 501, 504, 507, 510, 514, 517, 520, 526, 529, 532, 535, 538, 541, 545, 551, 554, 557, 560, 563, 566, 569, 575, 578, 581, 583, 585, 587, 589, 593, 595, 597, 599, 601, 603, 605, 609, 622, 625, 628, 631, 634, 637, 643, 646, 649, 652, 655, 658, 661, 667, 670, 673, 676, 679, 682, 685, 691, 694, 697, 700, 704, 707, 710, 716, 719, 722, 725, 728, 731, 734, 743, 745, 750, 767, 770, 773, 776, 782, 785, 788, 791, 794, 797, 800, 806, 809, 812, 815, 818, 821, 824, 830, 833, 836, 840, 843, 846, 849, 855, 858, 861, 864, 867, 871, 874, 880, 883, 886, 889, 892, 895, 898, 904, 907 << self accessor :_lexer_trans_targs te :_lexer_trans_targs, :_lexer_trans_targs= lexer_trans_targs = [ 1, 8, 17, 18, 4, 32, 9, 58, 62, 74, 135, 247, 1, 0, 4, 0, 5, 0, 0, 7, 6, 1, 0, 9, 0, , 11, 10, 10, 0, 12, 12, 2, 12, 12, 12, 13, 12, 12, 2, 14, 12, 12, 12, 12, 15, 2, 1, 16, 16, 0, 1, 16, , 1, 7, 17, 19, 0, 20, , 0, 22, 0, 23, 0, 24, , 0, 26, 0, 27, 0, 28, , 0, 30, 0, 31, 0, 298, 0, 0, 0, 33, 34, 1, 4, 32, 33, 33, 1, 34, 32, , 36, 0, 37, 0, 38, 0, 40, 43, 0, 41, 0, 42, 0, 44, 0, 45, 0, 46, , 0, 48, 0, 49, 0, 50, , 0, 53, 52, 53, 52, 54, 3, 1, 252, 56, 1, 266, 270, 278, 53, 52, 55, 53, 52, 53, 2, 53, 57, 52, 2, 1, 1, , 18, 4, 32, 35, 39, 58, 4, 135, 247, 1, 0, 59, 0, , 0, 61, 0, 4, 0, 63, , 0, 65, 0, 66, 0, 67, , 0, 69, 0, 70, 0, 71, , 72, 73, 72, 73, 73, 1, 2, 75, 0, 76, 0, 77, 0, , 79, 0, 80, 0, 81, 0, , 83, 0, 84, 0, 85, 0, , 87, 0, 88, 0, 89, 0, , 92, 91, 92, 91, 92, 92, , 1, 107, 116, 92, 91, 92, 1, 92, 95, 91, 92, 96, 91, 7, 91, 92, 98, 91, 92, 99, 2, 100, 91, 92, 101, 91, 92, 91, 92, 103, 91, 92, 104, 91, 05, 91, 92, 106, 91, 92, 1, 2, 108, 91, 92, 109, 91, 92, 91, 92, 111, 91, 112, 92, 91, 92, 91, 92, 114, 91, 92, 115, 2, 57, 91, 92, 117, 91, 92, 91, 92, 119, 91, 92, 120, 91, 21, 91, 92, 122, 91, 92, 123, 2, 57, 124, 91, 92, 125, 91, 26, 91, 92, 127, 91, 92, 128, 29, 92, 91, 130, 92, 91, 92, 91, 92, 132, 91, 92, 133, 91, 34, 91, 92, 115, 91, 136, 0, 0, 138, 0, 139, 0, 140, 0, 0, 142, 0, 143, 195, 0, 145, 145, 144, 146, 145, 145, 1, 149, 1, 163, 167, 171, 175, 145, 144, 145, 144, 145, 148, 144, 145, 57, 145, 150, 144, 145, 151, 144, 145, 144, 145, 153, 144, 145, 154, 144, 155, 144, 145, 156, 144, 145, 157, 145, 158, 144, 145, 159, 144, 145, 144, 145, 161, 144, 145, 162, 144, 1, 144, 145, 164, 144, 145, 165, 145, 166, 144, 145, 147, 144, 168, 144, 169, 145, 144, 145, 170, 144, 148, 144, 145, 172, 144, 145, 173, 144, 174, 145, 144, 148, 145, 144, 176, 144, 145, 177, 144, 145, 178, 145, 179, 144, 145, 180, 144, 145, 144, 145, 182, 144, 145, 57, 183, 145, 184, 144, 145, 185, 144, 145, 144, 145, 187, 144, 188, 145, 144, 145, 144, 145, 190, 144, 145, 191, 145, 192, 144, 145, 193, 144, 145, 144, 145, 57, 144, 196, 0, 197, 8, 0, 199, 0, 200, 0, 201, 2, 0, 203, 0, 204, 0, 205, 6, 0, 207, 0, 209, 208, 209, 210, 209, 209, 1, 213, 212, 1, 231, 235, 239, 209, 208, 211, 209, 209, 212, 208, 209, 57, 208, 209, 208, 209, 215, 208, 209, 216, 208, 217, 208, 209, 218, 208, 209, 219, 209, 220, 208, 209, 221, 208, 209, 208, 209, 223, 208, 209, 224, 208, 225, 208, 209, 226, 208, 209, 1, 209, 228, 208, 209, 229, 208, 209, 208, 209, 211, 208, 232, 209, 208, 209, 208, 209, 234, 208, 209, 212, 209, 236, 208, 209, 237, 212, 208, 209, 208, 212, 209, 208, 209, 240, 209, 241, 208, 209, 242, 208, 209, 208, 209, 244, 208, 209, 245, 208, 246, 208, 209, 57, 208, 247, 248, 0, 251, 250, 248, 250, 249, 248, 251, 250, 248, 250, 249, 2, 251, 8, 17, 18, 4, 32, 35, 39, 2, 74, 135, 247, 251, 0, 53, 52, 53, 254, 52, 53, 255, 52, 56, 52, 53, 257, 52, 53, 258, 3, 259, 52, 53, 260, 52, 53, 52, 53, 262, 52, 53, 263, 52, 64, 52, 53, 265, 52, 53, 1, 3, 267, 52, 53, 268, 52, 53, 52, 53, 55, 52, 271, 53, 52, 53, 52, 53, 273, 52, 53, 56, 3, 275, 52, 53, 276, 56, 52, 53, 52, 56, 53, 52, 53, 279, 3, 280, 52, 53, 281, 52, 53, 52, 53, 283, 52, 53, 284, 52, 85, 52, 53, 57, 286, 52, 53, 52, 53, 288, 52, 53, 289, 52, 90, 52, 291, 53, 52, 292, 53, 3, 293, 52, 53, 294, 52, 53, 52, 53, 296, 52, 53, 297, 52, 7, 52, 0, 0 << self accessor :_lexer_trans_actions te :_lexer_trans_actions, :_lexer_trans_actions= lexer_trans_actions = [ 5, 0, 3, 1, 0, 23, 1, 3, 23, 23, 23, 23, 29, 0, , 37, 0, 37, 0, 37, 37, 7, 17, 0, 45, 37, 0, 37, , 45, 0, 0, 37, 117, 39, 9, 5, 109, 27, 27, 27, 0, 27, 27, 27, 0, 109, 27, 0, , 93, 7, 7, 37, 45, 0, , 101, 19, 0, 0, 37, 0, , 37, 0, 37, 0, 37, 0, , 37, 0, 37, 0, 37, 0, , 37, 0, 37, 0, 37, 0, 7, 37, 37, 37, 0, 21, 105, 1, 42, 21, 0, 45, 0, 1, , 0, 37, 0, 37, 0, 37, , 0, 0, 37, 0, 37, 0, , 37, 0, 37, 0, 37, 0, , 37, 0, 37, 0, 37, 0, , 37, 122, 48, 45, 0, 75, , 63, 27, 75, 63, 75, 75, 5, 0, 0, 0, 45, 0, 45, 45, 11, 0, 54, 113, 25, 8, 25, 54, 48, 54, 54, 54, 4, 54, 57, 25, 37, 0, 37, 37, 0, 37, 0, 37, 0, , 37, 0, 37, 0, 37, 0, , 37, 0, 37, 0, 37, 0, 22, 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, , 122, 48, 45, 0, 45, 0, 7, 60, 75, 75, 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, 9, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 0, 45, 0, , 0, 45, 0, 0, 45, 0, , 9, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 9, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 0, 0, 37, 122, 5, 0, 75, 45, 0, 66, 27, 6, 75, 75, 75, 75, 0, 0, , 0, 45, 0, 0, 45, 13, , 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, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 0, , 0, 45, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 13, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 0, 45, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 13, 0, 0, 37, 0, , 37, 0, 37, 0, 37, 0, , 37, 0, 37, 0, 37, 0, , 37, 0, 37, 122, 48, 45, , 45, 0, 69, 27, 75, 69, 5, 75, 75, 0, 0, 0, 45, , 0, 0, 45, 15, 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, 15, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 0, 45, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 0, , 0, 0, 45, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 15, 0, 0, 0, , 45, 31, 78, 31, 31, 33, , 0, 33, 0, 0, 87, 45, , 81, 35, 87, 81, 87, 87, 7, 87, 87, 90, 0, 37, 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, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 0, 45, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 0, , 0, 0, 45, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 11, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 0, 45, 0, 0, 45, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, 1, 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 << self accessor :lexer_start exer_start = 1; << self accessor :lexer_first_final exer_first_final = 298; << self accessor :lexer_error exer_error = 0; << self accessor :lexer_en_main exer_en_main = 1; 130 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.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 623 "lib/gherkin/rb_lexer/ro_ro.rb" 0 = data.length lexer_start 140 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" 632 "lib/gherkin/rb_lexer/ro_ro.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/ro_ro.rb.rl" n @content_start = p @current_line = @line_number end 9 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" then 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" n @current_line = @line_number @start_col = p - @last_newline end 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" then 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" n @content_start = p end 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" then 23 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.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/ro_ro.rb.rl" then 28 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.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/ro_ro.rb.rl" then 34 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.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/ro_ro.rb.rl" then 40 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.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/ro_ro.rb.rl" then 46 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.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/ro_ro.rb.rl" then 52 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.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/ro_ro.rb.rl" then 58 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.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/ro_ro.rb.rl" 0 then 63 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.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/ro_ro.rb.rl" 1 then 69 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.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/ro_ro.rb.rl" 2 then 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" n @line_number += 1 end 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" 3 then 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" n @last_newline = p + 1 end 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" 4 then 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" n @keyword_start ||= p end 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" 5 then 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" n @keyword = data[@keyword_start...p].utf8_pack("c*").sub(/:$/,'') @keyword_start = nil end 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" 6 then 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" n @next_keyword_start = p end 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" 7 then 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" n p = p - 1 current_row = [] @current_line = @line_number end 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" 8 then 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" n @content_start = p end 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" 9 then 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" n con = data[@content_start...p].utf8_pack("c*").strip current_row << con end 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" 0 then 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" n @listener.row(current_row, @current_line) end 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.rb.rl" 1 then 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.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/ro_ro.rb.rl" 893 "lib/gherkin/rb_lexer/ro_ro.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/ro_ro.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/ro_ro.rb.rl" 933 "lib/gherkin/rb_lexer/ro_ro.rb" # eof action switch rigger_goto oto_level <= _out k 141 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ro_ro.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