class Gherkin::RbLexer::Zh_tw
: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/zh_tw.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 = [ 15, 18, 19, 20, 21, 22, 5, 26, 27, 28, 29, 30, 31, 3, 34, 35, 36, 37, 42, 45, 7, 48, 49, 51, 52, 53, 54, 7, 58, 59, 60, 61, 62, 63, 7, 80, 82, 84, 86, 88, 103, 105, 107, 108, 109, 110, 111, 112, 114, 115, 128, 131, 133, 135, 137, 141, 143, 145, 147, 151, 153, 155, 159, 161, 163, 165, 167, 170, 172, 176, 178, 180, 182, 184, 186, 188, 192, 194, 196, 198, 200, 202, 204, 208, 210, 212, 214, 216, 218, 220, 224, 226, 228, 230, 232, 234, 236, 239, 240, 241, 242, 243, 244, 245, 254, 259, 264, 269, 273, 277, 279, 281, 282, 283, 284, 285, 286, 287, 289, 290, 291, 292, 293, 294, 299, 311, 315, 320, 321, 326, 341, 343, 347, 349, 353, 355, 357, 359, 361, 365, 367, 369, 371, 373, 375, 377, 381, 383, 385, 387, 389, 391, 393, 397, 399, 401, 403, 405, 407, 409, 413, 415, 417, 419, 421, 423, 425, 428, 429, 442, 445, 447, 449, 451, 455, 457, 459, 461, 465, 467, 469, 473, 475, 477, 479, 481, 484, 486, 490, 492, 494, 496, 498, 500, 502, 506, 508, 510, 512, 514, 516, 518, 522, 524, 526, 528, 530, 532, 534, 538, 540, 542, 544, 546, 548, 550, 553, 554, 555, 556, 557, 558, 567, 572, 574, 576, 578, 581, 583, 585, 589, 591, 593, 595, 597, 599, 601, 605, 607, 609, 611, 613, 615, 617, 621, 623, 625, 627, 629, 631, 633, 637, 639, 640, 641, 642, 643 << self accessor :_lexer_trans_keys te :_lexer_trans_keys, :_lexer_trans_keys= lexer_trans_keys = [ -27, -25, -24, -23, 10, 32, 34, 7, 42, 64, 124, 9, 13, -72, -66, -90, -28, -72, -108, 10, 10, 0, -122, -26, -104, -81, -117, -27, -112, 58, 10, 10, 10, 32, 124, , -127, -118, -96, -121, -24, -88, -121, -97, -26, -100, -84, -27, 58, -89, -25, -74, -79, 58, 10, 10, -27, -25, -24, -23, 10, 32, 35, 2, 64, 9, 13, -72, -67, 10, 10, -28, 10, -72, 10, -108, 10, -27, -25, -24, -23, 10, 32, 34, 7, 42, 64, 124, 9, 13, -107, -128, -125, -116, -116, -26, -103, -81, 0, 10, -28, -27, -25, -24, -23, 2, 35, 37, 42, 64, 9, 13, -67, 10, -90, 10, -28, 10, -72, 108, 10, -122, 10, -26, 10, -104, 81, 10, -127, -118, -96, 10, -121, 24, 10, -88, 10, -83, 10, -121, 26, 10, -100, 10, -84, 10, -27, 8, -92, 10, -89, 10, -25, 10, 10, -79, 10, 10, 58, -76, 10, 10, -103, 10, -81, 10, -107, 10, 10, -128, 10, -116, 10, -126, 10, 10, -23, 10, -70, 10, -68, 10, 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, -126, -93, -70, -68, 34, 34, 10, 32, 9, 0, 32, 34, 9, 13, 10, 32, , 13, 10, 32, 34, 9, 13, 2, 34, 9, 13, 10, 32, 9, 0, 32, 9, 13, 10, 13, 95, 9, 65, 84, 85, 82, 69, 95, 8, 68, 95, 37, 32, 13, 32, , 10, 9, 10, 13, 32, 64, 2, 10, 32, 64, 9, 13, 32, 9, 13, 10, 32, 124, 9, 13, 10, 32, 124, 9, 13, -28, -27, -24, -23, 10, 32, 34, 35, 37, 4, 124, 9, 13, -122, 10, -26, 104, 10, -81, 10, -127, -118, -96, 121, 10, -24, 10, -88, 10, -83, 121, 10, -26, 10, -100, 10, -84, 0, 58, -76, 10, -26, 10, -103, 81, 10, -107, 10, -74, 10, -128, 116, 10, -126, 10, -93, 10, -23, 70, 10, -68, 10, 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, 10, -28, -27, -25, -23, 10, 32, 35, 37, 42, 64, , -72, -67, 10, -90, 10, -28, 72, 10, -108, 10, -122, 10, -26, 104, 10, -81, 10, -127, -118, -96, 121, 10, -24, 10, -88, 10, -83, 121, 10, -26, 10, -100, 10, -84, 27, 10, 58, -92, 10, -89, 10, 10, -74, 10, -79, 10, 10, 58, 10, -26, 10, -103, 10, -81, 10, 10, -74, 10, -128, 10, -116, 10, 10, -93, 10, -23, 10, -70, 10, 10, 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, 32, -125, -67, 58, 10, 10, -27, -24, 2, 35, 37, 64, 9, 13, -118, 10, -121, 10, -26, 10, -100, 10, 10, -27, 10, 58, -92, 10, -89, 25, 10, -74, 10, -79, 10, 10, 76, 10, -26, 10, -103, 10, -81, 125, 10, -116, 10, -26, 10, -103, 81, 10, 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, -76, -103, -81, 0 << self accessor :_lexer_single_lengths te :_lexer_single_lengths, :_lexer_single_lengths= lexer_single_lengths = [ , 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, , 2, 2, 2, 2, 13, 1, 1, 1, 1, 1, 1, 1, 11, 3, 2, 2, 2, 2, 2, 2, 4, 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, 2, 3, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 5, 3, 1, 3, 13, 2, 2, 4, 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, 11, 3, 2, 2, 2, 2, 2, 2, 4, 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, 7, 3, 2, 2, 3, 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, 0 << self accessor :_lexer_range_lengths te :_lexer_range_lengths, :_lexer_range_lengths= lexer_range_lengths = [ 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, 1, 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, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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 << self accessor :_lexer_index_offsets te :_lexer_index_offsets, :_lexer_index_offsets= lexer_index_offsets = [ 15, 19, 21, 23, 25, 27, 2, 34, 36, 38, 40, 42, 44, 8, 50, 52, 54, 56, 61, 65, 9, 71, 73, 76, 78, 80, 82, 7, 89, 91, 93, 95, 97, 99, 114, 118, 121, 124, 127, 130, 145, 149, 152, 154, 156, 158, 160, 162, 166, 168, 181, 185, 188, 191, 194, 200, 203, 206, 209, 214, 217, 220, 226, 229, 232, 235, 238, 242, 245, 251, 254, 257, 260, 263, 266, 269, 275, 278, 281, 284, 287, 290, 293, 299, 302, 305, 308, 311, 314, 317, 323, 326, 329, 332, 335, 338, 341, 346, 348, 350, 352, 354, 356, 358, 367, 372, 377, 382, 386, 390, 393, 397, 399, 401, 403, 405, 407, 409, 413, 415, 417, 419, 421, 423, 428, 440, 444, 449, 451, 456, 471, 474, 480, 483, 488, 491, 494, 497, 500, 506, 509, 512, 515, 518, 521, 524, 530, 533, 536, 539, 542, 545, 548, 554, 557, 560, 563, 566, 569, 572, 578, 581, 584, 587, 590, 593, 596, 601, 603, 616, 620, 623, 626, 629, 635, 638, 641, 644, 649, 652, 655, 661, 664, 667, 670, 673, 677, 680, 686, 689, 692, 695, 698, 701, 704, 710, 713, 716, 719, 722, 725, 728, 734, 737, 740, 743, 746, 749, 752, 758, 761, 764, 767, 770, 773, 776, 781, 783, 785, 787, 789, 791, 800, 807, 810, 813, 816, 820, 823, 826, 832, 835, 838, 841, 844, 847, 850, 856, 859, 862, 865, 868, 871, 874, 880, 883, 886, 889, 892, 895, 898, 904, 907, 909, 911, 913, 915 << self accessor :_lexer_trans_targs te :_lexer_trans_targs, :_lexer_trans_targs= lexer_trans_targs = [ , 47, 49, 112, 1, 1, 117, 127, 141, 142, 145, 1, 0, 3, 4, 0, 4, 0, 5, 0, 6, 0, 0, 8, 1, 9, 8, 11, 0, 12, 0, 13, 0, 15, 0, 16, 0, 17, 0, , 19, 0, 21, 20, 21, 20, 1, 1, 21, 20, 23, 27, 290, , 0, 25, 0, 26, 0, 7, , 248, 0, 29, 0, 30, 0, , 32, 192, 0, 33, 0, 34, , 0, 36, 0, 37, 0, 38, , 39, 40, 39, 41, 154, 168, 172, 40, 40, 1, 177, 191, 1, 9, 42, 150, 40, 39, 43, 40, 4, 40, 39, 45, 40, 39, 46, 9, 2, 22, 47, 49, 112, 1, 7, 126, 127, 141, 142, 145, 1, , 0, 7, 0, 50, 51, 0, 52, 0, 53, 0, 54, 0, , 56, 0, 58, 57, 58, 57, 8, 88, 90, 92, 58, 58, 1, 11, 1, 58, 57, 60, 64, 58, 1, 58, 57, 62, 58, 57, 63, 7, 46, 58, 57, 65, 58, 57, 8, 57, 67, 58, 57, 46, 58, 9, 73, 84, 58, 57, 70, 58, 1, 58, 57, 72, 58, 57, 46, 7, 74, 58, 57, 75, 58, 57, 8, 57, 77, 58, 57, 78, 58, 7, 79, 58, 57, 80, 58, 57, 8, 57, 82, 58, 57, 83, 58, 8, 46, 57, 85, 58, 57, 86, 7, 87, 58, 57, 77, 58, 57, 8, 57, 46, 58, 57, 91, 58, 1, 58, 57, 93, 58, 57, 94, 7, 95, 58, 57, 96, 58, 57, 8, 57, 58, 98, 57, 58, 99, 8, 100, 57, 58, 101, 57, 58, 57, 58, 103, 57, 58, 104, 57, 05, 57, 58, 106, 57, 58, 107, 8, 108, 57, 58, 109, 57, 58, 57, 58, 1, 57, 58, 46, 57, 0, 114, 0, 115, 0, 116, 0, 118, 0, 119, 0, 120, 119, 0, 121, 121, 122, 121, 121, 121, 122, 121, 121, 121, 121, 123, 121, 121, 121, 124, 121, 121, 1, 125, 0, 1, 125, 125, 0, 1, 9, 128, 0, 129, 0, 130, 0, 131, 2, 0, 133, 0, 134, 0, 135, 6, 0, 137, 0, 138, 0, 139, 0, 0, 294, 0, 7, 0, 0, 0, 143, 144, 1, 144, 144, 143, 143, 1, 144, 142, 144, 0, 146, 145, 0, 149, 148, 146, 148, 146, 147, 149, 148, 146, 148, 147, , 47, 49, 112, 149, 149, 117, 127, 141, 142, 145, 149, 0, 151, 9, 152, 40, 39, 153, 40, 39, 0, 39, 155, 159, 164, 40, 39, 40, 39, 157, 40, 39, 158, 40, 6, 40, 39, 160, 40, 39, 161, 9, 162, 40, 39, 163, 40, 39, 6, 39, 165, 40, 39, 166, 40, 67, 40, 39, 163, 40, 39, 169, 9, 46, 40, 39, 171, 40, 39, 0, 39, 173, 40, 39, 174, 40, 75, 40, 39, 176, 40, 39, 46, 9, 40, 178, 39, 40, 179, 39, 80, 39, 40, 181, 39, 40, 182, 0, 183, 39, 40, 184, 39, 40, 39, 40, 186, 39, 40, 187, 39, 88, 39, 40, 189, 39, 40, 190, 0, 1, 39, 40, 46, 39, 194, 194, 193, 195, 204, 224, 226, 228, 194, 1, 233, 247, 1, 194, 193, 200, 194, 193, 197, 194, 193, 198, 193, 199, 194, 193, 46, 194, 193, 194, 193, 202, 194, 193, 203, 194, 46, 194, 193, 205, 209, 220, 194, 206, 194, 193, 207, 194, 193, 208, 193, 46, 194, 193, 210, 194, 193, 194, 193, 212, 194, 193, 213, 194, 214, 194, 46, 193, 215, 194, 193, 194, 193, 217, 194, 193, 218, 194, 219, 194, 193, 194, 46, 193, 221, 193, 222, 194, 193, 223, 194, 193, 194, 193, 225, 194, 193, 46, 194, 227, 194, 193, 197, 194, 193, 229, 193, 230, 194, 193, 231, 194, 193, 194, 193, 46, 194, 193, 194, 234, 194, 235, 193, 194, 236, 193, 194, 193, 194, 238, 193, 194, 239, 193, 240, 193, 194, 241, 193, 194, 242, 194, 243, 193, 194, 244, 193, 194, 193, 194, 246, 193, 194, 1, 193, 46, 193, 249, 0, 250, 0, 251, 2, 0, 254, 253, 254, 253, 255, 254, 254, 1, 276, 1, 254, 253, 267, 254, 253, 257, 254, 253, 258, 253, 259, 254, 253, 260, 254, 253, 254, 46, 253, 262, 254, 253, 263, 253, 264, 254, 253, 265, 254, 253, 254, 253, 254, 46, 253, 268, 254, 269, 254, 253, 270, 254, 253, 260, 253, 272, 254, 253, 273, 254, 253, 254, 253, 275, 254, 253, 266, 254, 254, 277, 253, 254, 278, 253, 254, 253, 254, 280, 253, 254, 281, 253, 282, 253, 254, 283, 253, 254, 284, 254, 285, 253, 254, 286, 253, 254, 253, 254, 288, 253, 254, 289, 253, 1, 253, 291, 0, 292, 0, 293, , 0, 0, 0 << self accessor :_lexer_trans_actions te :_lexer_trans_actions, :_lexer_trans_actions= lexer_trans_actions = [ 3, 23, 23, 23, 45, 0, 3, 23, 1, 29, 0, 37, 0, 37, 0, 37, 0, 37, 0, , 37, 37, 48, 97, 17, 0, 7, 0, 37, 0, 37, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 122, 48, 45, 0, , 72, 0, 0, 0, 0, 0, , 37, 0, 37, 0, 37, 0, , 0, 37, 0, 37, 0, 37, , 0, 0, 37, 0, 37, 0, , 37, 0, 37, 0, 37, 0, 22, 48, 45, 0, 75, 75, 75, 5, 45, 0, 69, 27, 75, 69, 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 15, , 54, 54, 54, 54, 54, 113, 1, 48, 25, 54, 48, 57, 25, , 37, 0, 37, 0, 0, 37, , 0, 37, 0, 37, 0, 37, , 0, 37, 122, 48, 45, 0, 5, 75, 75, 75, 45, 0, 63, 5, 63, 0, 0, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 11, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 11, 45, 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 11, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, , 11, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 11, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, 5, 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, 11, 0, 45, 11, 0, , 0, 37, 0, 37, 0, 37, , 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, 37, 7, 37, 0, 21, 105, 21, 21, 1, 0, 45, 0, 1, 0, 37, 0, 37, 45, 31, 78, 31, 3, 0, 45, 0, 33, 0, 0, 7, 87, 87, 87, 45, 0, 84, 5, 87, 81, 90, 0, 37, 0, , 0, 45, 0, 0, 45, 0, 5, 0, 0, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, , 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, 5, 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 15, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 0, 45, 0, 15, , 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, , 15, 0, 45, 15, 0, 122, 5, 0, 75, 75, 75, 75, 75, , 66, 27, 75, 66, 0, 0, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 13, 45, 0, , 0, 0, 45, 0, 0, 45, , 45, 0, 0, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 13, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 13, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, 45, 0, 45, 13, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 13, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 13, 45, 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, 0, 37, 0, 37, 0, , 37, 122, 48, 45, 0, 75, 5, 0, 60, 27, 60, 0, 0, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 9, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 45, 9, 0, 0, 45, 45, 0, 0, 45, 0, 0, , 0, 45, 0, 0, 45, 0, , 0, 0, 45, 0, 0, 45, , 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, 37, 0, 37, 0, , 37, 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 << self accessor :lexer_start exer_start = 1; << self accessor :lexer_first_final exer_first_final = 294; << self accessor :lexer_error exer_error = 0; << self accessor :lexer_en_main exer_en_main = 1; 130 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.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 622 "lib/gherkin/rb_lexer/zh_tw.rb" 0 = data.length lexer_start 140 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" 631 "lib/gherkin/rb_lexer/zh_tw.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/zh_tw.rb.rl" n @content_start = p @current_line = @line_number end 9 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" then 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" n @current_line = @line_number @start_col = p - @last_newline end 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" then 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" n @content_start = p end 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" then 23 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.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/zh_tw.rb.rl" then 28 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.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/zh_tw.rb.rl" then 34 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.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/zh_tw.rb.rl" then 40 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.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/zh_tw.rb.rl" then 46 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.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/zh_tw.rb.rl" then 52 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.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/zh_tw.rb.rl" then 58 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.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/zh_tw.rb.rl" 0 then 63 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.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/zh_tw.rb.rl" 1 then 69 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.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/zh_tw.rb.rl" 2 then 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" n @line_number += 1 end 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" 3 then 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" n @last_newline = p + 1 end 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" 4 then 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" n @keyword_start ||= p end 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" 5 then 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" n @keyword = data[@keyword_start...p].utf8_pack("c*").sub(/:$/,'') @keyword_start = nil end 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" 6 then 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" n @next_keyword_start = p end 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" 7 then 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" n p = p - 1 current_row = [] @current_line = @line_number end 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" 8 then 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" n @content_start = p end 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" 9 then 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" n con = data[@content_start...p].utf8_pack("c*").strip current_row << con end 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" 0 then 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" n @listener.row(current_row, @current_line) end 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.rb.rl" 1 then 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.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/zh_tw.rb.rl" 892 "lib/gherkin/rb_lexer/zh_tw.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/zh_tw.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/zh_tw.rb.rl" 932 "lib/gherkin/rb_lexer/zh_tw.rb" # eof action switch rigger_goto oto_level <= _out k 141 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zh_tw.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