class Gherkin::RbLexer::Cy_gb
: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/cy_gb.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, 92, 93, 94, 95, 96, 97, 9, 100, 101, 102, 103, 104, 105, 107, 108, 109, 118, 120, 122, 124, 128, 130, 132, 134, 136, 138, 140, 144, 146, 148, 150, 152, 154, 156, 160, 177, 178, 179, 180, 181, 182, 184, 185, 186, 199, 201, 203, 205, 209, 211, 213, 215, 217, 219, 221, 225, 227, 229, 232, 234, 236, 238, 242, 244, 246, 248, 250, 252, 254, 258, 260, 262, 264, 266, 268, 270, 274, 277, 279, 281, 283, 285, 287, 291, 293, 295, 297, 299, 301, 302, 304, 305, 306, 307, 308, 309, 310, 312, 313, 314, 315, 316, 321, 322, 324, 325, 326, 327, 328, 329, 330, 332, 334, 335, 336, 337, 338, 339, 341, 342, 343, 344, 345, 346, 347, 362, 364, 366, 368, 370, 372, 374, 378, 380, 382, 384, 386, 388, 390, 395, 397, 399, 401, 403, 405, 407, 411, 413, 415, 417, 419, 421, 423, 427, 429, 431, 433, 435, 437, 439, 441, 454, 456, 458, 460, 462, 464, 468, 470, 472, 474, 476, 478, 480, 484, 487, 489, 491, 493, 495, 497, 501, 503, 505, 507, 509, 511, 513, 517, 519, 521, 523, 525, 527, 529, 534, 536, 538, 540, 542, 544, 546, 550, 552, 554, 556, 557, 561, 566, 572, 589, 591, 593, 595, 597, 599, 603, 606, 608, 610, 612, 614, 616, 620, 622, 624, 626 << self accessor :_lexer_trans_keys te :_lexer_trans_keys, :_lexer_trans_keys= lexer_trans_keys = [ 2, 34, 35, 37, 42, 64, 65, 9, 79, 80, 83, 89, 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, 2, 110, 114, 114, 104, 101, 103, 100, 105, 103, 32, 97, 119, 101, 100, 58, 10, 10, 10, 32, 35, 4, 67, 83, 9, 13, 10, 95, 0, 10, 69, 10, 65, 10, 84, 5, 10, 82, 10, 69, 10, 95, 9, 10, 78, 10, 68, 10, 95, 7, 10, 101, 10, 102, 10, 110, 00, 10, 105, 10, 114, 10, 58, 2, 34, 35, 37, 42, 64, 65, 9, 79, 80, 83, 89, 124, 9, 01, 102, 110, 100, 105, 114, 58, 0, 10, 32, 35, 37, 42, 64, 9, 80, 83, 89, 9, 13, 10, 0, 70, 10, 69, 10, 65, 10, 0, 85, 10, 82, 10, 69, 10, 0, 69, 10, 78, 10, 68, 10, 0, 37, 10, 32, 10, 32, 110, 14, 10, 104, 10, 101, 10, 103, 01, 10, 100, 10, 105, 10, 103, 2, 10, 97, 10, 110, 10, 100, 14, 10, 121, 10, 99, 10, 101, 10, 10, 97, 10, 114, 10, 105, 11, 10, 32, 58, 10, 65, 10, 10, 108, 10, 105, 10, 110, 10, 10, 108, 10, 108, 10, 111, 10, 10, 58, 10, 110, 110, 103, 104, 101, 105, 102, 102, 116, 105, 97, 58, 10, 10, 10, 32, 124, 9, 10, 100, 114, 121, 99, 101, 110, 14, 105, 111, 32, 58, 65, 109, 105, 110, 101, 108, 108, 111, 108, 0, 10, 10, 32, 35, 37, 42, 5, 79, 80, 83, 89, 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, 10, 114, 10, 104, 10, 101, 10, 10, 101, 10, 100, 10, 105, 10, 10, 32, 10, 97, 10, 110, 10, 10, 114, 10, 121, 10, 99, 10, 10, 110, 10, 97, 10, 114, 10, 10, 111, 10, 58, 10, 110, 10, 0, 32, 35, 37, 42, 64, 65, 0, 83, 89, 9, 13, 10, 95, 0, 10, 69, 10, 65, 10, 84, 5, 10, 82, 10, 69, 10, 95, 9, 10, 78, 10, 68, 10, 95, 7, 10, 32, 10, 32, 110, 10, 10, 104, 10, 101, 10, 103, 10, 10, 100, 10, 105, 10, 103, 10, 0, 97, 10, 110, 10, 100, 10, 10, 121, 10, 99, 10, 101, 10, 10, 97, 10, 114, 10, 105, 10, 10, 32, 58, 10, 65, 10, 109, 08, 10, 105, 10, 110, 10, 101, 08, 10, 108, 10, 111, 10, 108, 8, 10, 110, 110, 32, 124, 9, 0, 32, 124, 9, 13, 124, 10, 24, 9, 13, 10, 32, 34, 35, 2, 64, 65, 67, 69, 79, 80, 9, 124, 9, 13, 10, 99, 10, 10, 110, 10, 97, 10, 114, 10, 10, 111, 10, 32, 58, 10, 65, 09, 10, 108, 10, 105, 10, 110, 01, 10, 108, 10, 108, 10, 111, 08, 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, 7, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, , 1, 1, 1, 1, 1, 1, 1, 11, 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, 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, 1, 1, 1, 1, 1, 1, 11, 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, 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, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 1, , 2, 2, 2, 2, 2, 2, 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, 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, 1, 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, 1, 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, 1, 1, 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, 114, 116, 118, 120, 122, 124, 128, 130, 132, 134, 136, 138, 140, 144, 146, 148, 157, 160, 163, 166, 172, 175, 178, 181, 184, 187, 190, 196, 199, 202, 205, 208, 211, 214, 220, 237, 239, 241, 243, 245, 247, 251, 253, 255, 268, 271, 274, 277, 283, 286, 289, 292, 295, 298, 301, 307, 310, 313, 317, 320, 323, 326, 332, 335, 338, 341, 344, 347, 350, 356, 359, 362, 365, 368, 371, 374, 380, 384, 387, 390, 393, 396, 399, 405, 408, 411, 414, 417, 420, 422, 426, 428, 430, 432, 434, 436, 438, 442, 444, 446, 448, 450, 455, 457, 461, 463, 465, 467, 469, 471, 473, 477, 480, 482, 484, 486, 488, 490, 494, 496, 498, 500, 502, 504, 506, 522, 525, 528, 531, 534, 537, 540, 546, 549, 552, 555, 558, 561, 564, 571, 574, 577, 580, 583, 586, 589, 595, 598, 601, 604, 607, 610, 613, 619, 622, 625, 628, 631, 634, 637, 641, 654, 657, 660, 663, 666, 669, 675, 678, 681, 684, 687, 690, 693, 699, 703, 706, 709, 712, 715, 718, 724, 727, 730, 733, 736, 739, 742, 748, 751, 754, 757, 760, 763, 766, 773, 776, 779, 782, 785, 788, 791, 797, 800, 803, 806, 808, 812, 817, 824, 841, 844, 847, 850, 853, 856, 862, 866, 869, 872, 875, 878, 881, 887, 890, 893, 896 << self accessor :_lexer_trans_targs te :_lexer_trans_targs, :_lexer_trans_targs= lexer_trans_targs = [ 2, 11, 13, 27, 30, 33, 34, 150, 152, 154, 268, 269, 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, 292, 0, 28, 0, , 1, 12, 29, 0, 0, 0, , 32, 1, 32, 32, 30, 31, , 32, 30, 32, 0, 28, 34, , 35, 0, 36, 0, 37, 0, , 39, 0, 40, 0, 41, 0, , 43, 0, 27, 0, 45, 0, , 47, 0, 48, 0, 49, 0, 0, 51, 50, 51, 51, 1, 52, , 274, 51, 50, 51, 53, 50, 4, 50, 51, 55, 50, 51, 56, 1, 57, 50, 51, 58, 50, 51, 0, 51, 60, 50, 51, 61, 50, 2, 50, 51, 63, 50, 51, 64, 1, 65, 50, 51, 1, 50, 51, 0, 51, 68, 50, 51, 69, 50, 0, 50, 51, 71, 50, 51, 72, 1, 73, 50, 1, 1, 2, 11, 7, 30, 33, 74, 134, 150, 152, 268, 269, 1, 0, 75, 0, 76, , 0, 78, 0, 79, 0, 80, , 0, 83, 82, 83, 82, 83, , 84, 98, 1, 99, 110, 112, 133, 83, 82, 83, 85, 82, 83, 2, 83, 87, 82, 83, 88, 82, 9, 82, 83, 90, 82, 83, 91, 3, 92, 82, 83, 93, 82, 83, 2, 83, 95, 82, 83, 96, 82, 7, 82, 83, 1, 82, 83, 73, 3, 73, 100, 82, 83, 101, 82, 02, 82, 83, 103, 82, 83, 104, 3, 105, 82, 83, 106, 82, 83, 82, 83, 108, 82, 83, 109, 82, 8, 82, 83, 111, 82, 83, 98, 3, 113, 82, 83, 111, 82, 83, 82, 83, 116, 82, 83, 117, 82, 18, 82, 83, 119, 82, 83, 120, 3, 121, 82, 83, 122, 73, 82, 23, 82, 83, 124, 82, 83, 125, 3, 126, 82, 83, 127, 82, 83, 82, 83, 129, 82, 83, 130, 82, 31, 82, 83, 132, 82, 83, 73, 3, 109, 82, 135, 0, 136, 0, 0, 138, 0, 139, 0, 140, 0, 0, 142, 0, 143, 0, 144, 0, 0, 146, 0, 147, 0, 149, 148, 148, 149, 149, 1, 149, 148, 151, , 0, 153, 0, 151, 0, 155, 6, 0, 157, 0, 158, 0, 159, 0, 0, 161, 0, 162, 215, 0, 0, 164, 0, 165, 0, 166, 0, 0, 168, 0, 169, 0, 170, 0, 0, 172, 0, 173, 0, 175, 174, 174, 175, 175, 1, 176, 190, 1, 202, 204, 206, 214, 175, 174, 175, 174, 175, 178, 174, 175, 179, 174, 180, 174, 175, 181, 174, 175, 182, 175, 183, 174, 175, 184, 174, 175, 174, 175, 186, 174, 175, 187, 174, 188, 174, 175, 189, 174, 175, 1, 175, 73, 174, 175, 73, 192, 174, 193, 174, 175, 194, 174, 175, 195, 175, 196, 174, 175, 197, 174, 175, 174, 175, 199, 174, 175, 200, 174, 201, 174, 175, 190, 174, 175, 203, 175, 190, 174, 175, 205, 174, 175, 174, 175, 207, 174, 175, 208, 174, 209, 174, 175, 210, 174, 175, 211, 175, 212, 174, 175, 213, 174, 175, 74, 175, 201, 174, 217, 216, 217, 217, 217, 1, 218, 232, 1, 233, 246, 248, 267, 217, 216, 217, 219, 217, 220, 216, 217, 221, 216, 217, 216, 217, 223, 216, 217, 224, 216, 225, 216, 217, 226, 216, 217, 227, 217, 228, 216, 217, 229, 216, 217, 216, 217, 231, 216, 217, 1, 216, 73, 216, 217, 73, 234, 216, 217, 216, 217, 236, 216, 217, 237, 216, 238, 216, 217, 239, 216, 217, 240, 217, 241, 216, 217, 242, 216, 217, 216, 217, 232, 216, 217, 245, 216, 232, 216, 217, 247, 216, 217, 245, 217, 249, 216, 217, 250, 216, 217, 216, 217, 252, 216, 217, 253, 216, 254, 216, 217, 255, 216, 217, 256, 16, 217, 257, 216, 217, 258, 216, 259, 216, 217, 260, 216, 217, 261, 217, 262, 216, 217, 263, 216, 217, 216, 217, 265, 216, 217, 266, 216, 73, 216, 217, 243, 216, 43, 0, 270, 269, 0, 273, 272, 270, 272, 270, 271, 273, 272, 270, 272, 271, 273, 2, 11, 13, 27, 30, 33, 34, 150, 152, 154, 268, 269, 273, , 275, 50, 51, 276, 50, 51, 50, 51, 278, 50, 51, 279, 50, 80, 50, 51, 281, 50, 51, 282, 0, 51, 283, 50, 51, 284, 50, 85, 50, 51, 286, 50, 51, 287, 1, 288, 50, 51, 289, 50, 51, 50, 51, 291, 50, 51, 72, 50, << 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, 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, 48, 45, 0, 45, 0, 60, 27, 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, 9, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 9, 0, 113, 25, 51, 48, 4, 48, 54, 54, 54, 54, 54, 4, 57, 25, 37, 0, 37, 0, , 37, 0, 37, 0, 37, 0, , 37, 122, 48, 45, 0, 45, , 27, 75, 63, 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, 11, 0, 45, 11, , 11, 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, 11, 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, 0, 37, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 0, 37, 122, 48, , 45, 0, 72, 0, 0, 0, , 37, 0, 37, 0, 37, 0, , 37, 0, 37, 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, 69, 27, 75, 69, 5, 75, 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, 15, , 15, 0, 45, 15, 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, 122, 48, 45, , 0, 66, 27, 75, 66, 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, 13, 0, 3, 0, 45, 13, 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, , 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, 0, 37, 0, 37, 45, 31, 78, 31, 3, 0, 45, 0, 33, 0, 0, , 84, 81, 35, 87, 81, 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, 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, << 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 << self accessor :lexer_start exer_start = 1; << self accessor :lexer_first_final exer_first_final = 292; << self accessor :lexer_error exer_error = 0; << self accessor :lexer_en_main exer_en_main = 1; 130 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.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 616 "lib/gherkin/rb_lexer/cy_gb.rb" 0 = data.length lexer_start 140 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" 625 "lib/gherkin/rb_lexer/cy_gb.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/cy_gb.rb.rl" n @content_start = p @current_line = @line_number end 9 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" then 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" n @current_line = @line_number @start_col = p - @last_newline end 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" then 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" n @content_start = p end 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" then 23 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.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/cy_gb.rb.rl" then 28 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.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/cy_gb.rb.rl" then 34 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.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/cy_gb.rb.rl" then 40 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.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/cy_gb.rb.rl" then 46 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.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/cy_gb.rb.rl" then 52 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.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/cy_gb.rb.rl" then 58 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.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/cy_gb.rb.rl" 0 then 63 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.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/cy_gb.rb.rl" 1 then 69 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.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/cy_gb.rb.rl" 2 then 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" n @line_number += 1 end 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" 3 then 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" n @last_newline = p + 1 end 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" 4 then 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" n @keyword_start ||= p end 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" 5 then 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" n @keyword = data[@keyword_start...p].utf8_pack("c*").sub(/:$/,'') @keyword_start = nil end 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" 6 then 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" n @next_keyword_start = p end 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" 7 then 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" n p = p - 1 current_row = [] @current_line = @line_number end 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" 8 then 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" n @content_start = p end 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" 9 then 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" n con = data[@content_start...p].utf8_pack("c*").strip current_row << con end 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" 0 then 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" n @listener.row(current_row, @current_line) end 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.rb.rl" 1 then 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.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/cy_gb.rb.rl" 886 "lib/gherkin/rb_lexer/cy_gb.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/cy_gb.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/cy_gb.rb.rl" 926 "lib/gherkin/rb_lexer/cy_gb.rb" # eof action switch rigger_goto oto_level <= _out k 141 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cy_gb.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