# line 1 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" require 'gherkin/core_ext/array' module Gherkin module RbLexer class Zhcn #:nodoc: # line 125 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" def initialize(listener) @listener = listener # line 16 "lib/gherkin/rb_lexer/zhCN.rb" class << self attr_accessor :_lexer_actions private :_lexer_actions, :_lexer_actions= end self._lexer_actions = [ 0, 1, 0, 1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 1, 9, 1, 10, 1, 11, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1, 21, 2, 2, 16, 2, 11, 0, 2, 12, 13, 2, 15, 0, 2, 15, 1, 2, 15, 14, 2, 15, 17, 2, 16, 4, 2, 16, 5, 2, 16, 6, 2, 16, 7, 2, 16, 8, 2, 16, 14, 2, 18, 19, 2, 20, 0, 2, 20, 1, 2, 20, 14, 2, 20, 17, 3, 3, 12, 13, 3, 9, 12, 13, 3, 10, 12, 13, 3, 11, 12, 13, 3, 12, 13, 16, 3, 15, 12, 13, 4, 2, 12, 13, 16, 4, 15, 0, 12, 13 ] class << self attr_accessor :_lexer_key_offsets private :_lexer_key_offsets, :_lexer_key_offsets= end self._lexer_key_offsets = [ 0, 0, 14, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 36, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 60, 62, 64, 66, 68, 70, 73, 75, 77, 79, 81, 83, 85, 99, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 124, 126, 128, 130, 132, 134, 138, 140, 142, 144, 146, 148, 150, 152, 154, 157, 159, 161, 163, 165, 167, 169, 171, 173, 175, 177, 179, 181, 183, 185, 187, 189, 191, 193, 195, 197, 199, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 221, 222, 223, 224, 225, 226, 227, 228, 232, 237, 242, 247, 252, 256, 260, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 282, 289, 294, 298, 303, 304, 309, 323, 325, 327, 329, 331, 333, 335, 337, 339, 341, 343, 345, 347, 349, 351, 353, 355, 357, 359, 361, 362, 363, 364, 365, 367, 368, 369, 370, 371, 372, 373, 374, 375, 387, 389, 391, 393, 395, 397, 401, 403, 405, 407, 409, 411, 413, 415, 417, 419, 421, 423, 425, 427, 429, 431, 433, 435, 437, 439, 441, 443, 445, 447, 449, 451, 453, 455, 457, 459, 461, 463, 465, 467, 469, 471, 472, 473, 485, 487, 489, 491, 493, 495, 499, 501, 503, 505, 507, 509, 511, 513, 515, 518, 520, 522, 524, 526, 528, 530, 532, 534, 536, 538, 540, 542, 544, 546, 548, 550, 552, 554, 556, 558, 560, 562, 564, 566, 568, 570, 572, 574, 576, 578, 580, 582, 583 ] class << self attr_accessor :_lexer_trans_keys private :_lexer_trans_keys, :_lexer_trans_keys= end self._lexer_trans_keys = [ -28, -27, -24, -23, 10, 32, 34, 35, 37, 42, 64, 124, 9, 13, -67, -66, -122, -26, -104, -81, 10, 10, 13, 10, -117, -27, -83, -112, 58, 10, 10, 10, 32, 124, 9, 13, -127, -118, -100, -67, -121, -27, -90, -126, -97, -24, -125, -67, 58, 10, 10, -27, -24, 10, 32, 35, 37, 64, 9, 13, -100, 10, -70, 10, -26, 10, -103, 10, -81, 10, -27, 10, 58, -92, 10, -89, 10, -25, 10, -70, 10, -78, 10, 10, 58, -28, -27, -24, -23, 10, 32, 34, 35, 37, 42, 64, 124, 9, 13, -128, -125, -116, -28, -72, -108, -116, -26, -103, -81, 58, 10, 10, -28, -27, -24, -23, 10, 32, 35, 37, 42, 64, 9, 13, -67, 10, -122, 10, -26, 10, -104, 10, -81, 10, -127, -100, -67, 10, -121, 10, -27, 10, -90, 10, -126, 10, -70, 10, -26, 10, -103, 10, -81, 10, -27, 10, 58, -92, 10, -89, 10, -25, 10, -70, 10, -78, 10, 10, 58, -109, 10, -128, 10, -116, 10, -28, 10, -72, 10, -108, 10, -126, 10, -93, 10, -28, 10, -71, 10, -120, 10, 10, 95, 10, 70, 10, 69, 10, 65, 10, 84, 10, 85, 10, 82, 10, 69, 10, 95, 10, 69, 10, 78, 10, 68, 10, 95, 10, 37, 10, 32, -126, -93, -28, -71, -120, 34, 34, 10, 32, 9, 13, 10, 32, 34, 9, 13, 10, 32, 34, 9, 13, 10, 32, 34, 9, 13, 10, 32, 34, 9, 13, 10, 32, 9, 13, 10, 32, 9, 13, 10, 13, 95, 70, 69, 65, 84, 85, 82, 69, 95, 69, 78, 68, 95, 37, 32, 13, 32, 64, 9, 10, 9, 10, 13, 32, 64, 11, 12, 10, 32, 64, 9, 13, 32, 124, 9, 13, 10, 32, 124, 9, 13, 124, 10, 32, 124, 9, 13, -28, -27, -24, -23, 10, 32, 34, 35, 37, 42, 64, 124, 9, 13, -125, 10, -116, 10, -26, 10, -103, 10, -81, 10, 10, 95, 10, 70, 10, 69, 10, 65, 10, 84, 10, 85, 10, 82, 10, 69, 10, 95, 10, 69, 10, 78, 10, 68, 10, 95, 10, 37, -70, -26, -103, -81, -27, 58, -92, -89, -25, -70, -78, 58, 10, 10, -28, -27, -24, -23, 10, 32, 35, 37, 42, 64, 9, 13, -67, 10, -122, 10, -26, 10, -104, 10, -81, 10, -127, -100, -67, 10, -121, 10, -27, 10, -90, 10, -126, 10, -70, 10, -26, 10, -103, 10, -81, 10, 10, 58, -109, 10, -128, 10, -116, 10, -28, 10, -72, 10, -108, 10, -126, 10, -93, 10, -28, 10, -71, 10, -120, 10, 10, 95, 10, 70, 10, 69, 10, 65, 10, 84, 10, 85, 10, 82, 10, 69, 10, 95, 10, 69, 10, 78, 10, 68, 10, 95, 10, 37, 10, 32, 10, 10, -28, -27, -24, -23, 10, 32, 35, 37, 42, 64, 9, 13, -67, 10, -122, 10, -26, 10, -104, 10, -81, 10, -127, -100, -67, 10, -121, 10, -27, 10, -90, 10, -126, 10, -70, 10, -26, 10, -103, 10, -81, 10, -27, 10, 58, -92, 10, -89, 10, -25, 10, -70, 10, -78, 10, 10, 58, -109, 10, -128, 10, -116, 10, -28, 10, -72, 10, -108, 10, -126, 10, -93, 10, -28, 10, -71, 10, -120, 10, 10, 95, 10, 70, 10, 69, 10, 65, 10, 84, 10, 85, 10, 82, 10, 69, 10, 95, 10, 69, 10, 78, 10, 68, 10, 95, 10, 37, 10, 32, -109, 0 ] class << self attr_accessor :_lexer_single_lengths private :_lexer_single_lengths, :_lexer_single_lengths= end self._lexer_single_lengths = [ 0, 12, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 3, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 12, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 5, 3, 2, 3, 1, 3, 12, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 10, 2, 2, 2, 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, 2, 2, 2, 2, 2, 2, 1, 1, 10, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0 ] class << self attr_accessor :_lexer_range_lengths private :_lexer_range_lengths, :_lexer_range_lengths= end self._lexer_range_lengths = [ 0, 1, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 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, 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 ] class << self attr_accessor :_lexer_index_offsets private :_lexer_index_offsets, :_lexer_index_offsets= end self._lexer_index_offsets = [ 0, 0, 14, 17, 19, 21, 23, 25, 27, 30, 32, 34, 36, 38, 40, 42, 44, 46, 51, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 87, 90, 93, 96, 99, 102, 106, 109, 112, 115, 118, 121, 124, 138, 141, 143, 145, 147, 149, 151, 153, 155, 157, 159, 161, 163, 175, 178, 181, 184, 187, 190, 195, 198, 201, 204, 207, 210, 213, 216, 219, 223, 226, 229, 232, 235, 238, 241, 244, 247, 250, 253, 256, 259, 262, 265, 268, 271, 274, 277, 280, 283, 286, 289, 292, 295, 298, 301, 304, 307, 310, 313, 316, 319, 321, 323, 325, 327, 329, 331, 333, 337, 342, 347, 352, 357, 361, 365, 368, 370, 372, 374, 376, 378, 380, 382, 384, 386, 388, 390, 392, 394, 396, 398, 403, 410, 415, 419, 424, 426, 431, 445, 448, 451, 454, 457, 460, 463, 466, 469, 472, 475, 478, 481, 484, 487, 490, 493, 496, 499, 502, 504, 506, 508, 510, 513, 515, 517, 519, 521, 523, 525, 527, 529, 541, 544, 547, 550, 553, 556, 561, 564, 567, 570, 573, 576, 579, 582, 585, 588, 591, 594, 597, 600, 603, 606, 609, 612, 615, 618, 621, 624, 627, 630, 633, 636, 639, 642, 645, 648, 651, 654, 657, 660, 663, 666, 668, 670, 682, 685, 688, 691, 694, 697, 702, 705, 708, 711, 714, 717, 720, 723, 726, 730, 733, 736, 739, 742, 745, 748, 751, 754, 757, 760, 763, 766, 769, 772, 775, 778, 781, 784, 787, 790, 793, 796, 799, 802, 805, 808, 811, 814, 817, 820, 823, 826, 828 ] class << self attr_accessor :_lexer_trans_targs private :_lexer_trans_targs, :_lexer_trans_targs= end self._lexer_trans_targs = [ 2, 18, 44, 104, 1, 1, 109, 118, 119, 133, 134, 137, 1, 0, 3, 10, 0, 4, 0, 5, 0, 6, 0, 7, 0, 0, 8, 1, 9, 8, 1, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 17, 16, 17, 16, 17, 17, 1, 17, 16, 19, 23, 161, 266, 0, 20, 0, 21, 0, 22, 0, 7, 0, 24, 0, 25, 0, 26, 0, 27, 0, 28, 0, 30, 29, 30, 29, 31, 142, 30, 30, 1, 147, 1, 30, 29, 32, 30, 29, 33, 30, 29, 34, 30, 29, 35, 30, 29, 36, 30, 29, 37, 30, 43, 29, 38, 30, 29, 39, 30, 29, 40, 30, 29, 41, 30, 29, 42, 30, 29, 30, 43, 29, 2, 18, 44, 104, 1, 1, 109, 118, 119, 133, 134, 137, 1, 0, 45, 49, 0, 46, 0, 47, 0, 48, 0, 7, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 56, 55, 56, 55, 57, 62, 79, 84, 56, 56, 1, 89, 103, 1, 56, 55, 58, 56, 55, 59, 56, 55, 60, 56, 55, 61, 56, 55, 43, 56, 55, 63, 67, 78, 56, 55, 64, 56, 55, 65, 56, 55, 66, 56, 55, 43, 56, 55, 68, 56, 55, 69, 56, 55, 70, 56, 55, 71, 56, 55, 72, 56, 43, 55, 73, 56, 55, 74, 56, 55, 75, 56, 55, 76, 56, 55, 77, 56, 55, 56, 43, 55, 43, 56, 55, 80, 56, 55, 81, 56, 55, 82, 56, 55, 83, 56, 55, 43, 56, 55, 85, 56, 55, 86, 56, 55, 87, 56, 55, 88, 56, 55, 43, 56, 55, 56, 90, 55, 56, 91, 55, 56, 92, 55, 56, 93, 55, 56, 94, 55, 56, 95, 55, 56, 96, 55, 56, 97, 55, 56, 98, 55, 56, 99, 55, 56, 100, 55, 56, 101, 55, 56, 102, 55, 56, 1, 55, 56, 43, 55, 105, 0, 106, 0, 107, 0, 108, 0, 7, 0, 110, 0, 111, 0, 112, 111, 111, 0, 113, 113, 114, 113, 113, 113, 113, 114, 113, 113, 113, 113, 115, 113, 113, 113, 113, 116, 113, 113, 1, 117, 117, 0, 1, 117, 117, 0, 1, 9, 118, 120, 0, 121, 0, 122, 0, 123, 0, 124, 0, 125, 0, 126, 0, 127, 0, 128, 0, 129, 0, 130, 0, 131, 0, 132, 0, 267, 0, 7, 0, 0, 0, 0, 0, 135, 136, 1, 136, 136, 134, 135, 135, 1, 136, 134, 136, 0, 137, 138, 137, 0, 141, 140, 138, 140, 139, 138, 139, 141, 140, 138, 140, 139, 2, 18, 44, 104, 141, 141, 109, 118, 119, 133, 134, 137, 141, 0, 143, 30, 29, 144, 30, 29, 145, 30, 29, 146, 30, 29, 42, 30, 29, 30, 148, 29, 30, 149, 29, 30, 150, 29, 30, 151, 29, 30, 152, 29, 30, 153, 29, 30, 154, 29, 30, 155, 29, 30, 156, 29, 30, 157, 29, 30, 158, 29, 30, 159, 29, 30, 160, 29, 30, 1, 29, 162, 0, 163, 0, 164, 0, 165, 0, 166, 216, 0, 167, 0, 168, 0, 169, 0, 170, 0, 171, 0, 172, 0, 174, 173, 174, 173, 175, 180, 191, 196, 174, 174, 1, 201, 215, 1, 174, 173, 176, 174, 173, 177, 174, 173, 178, 174, 173, 179, 174, 173, 43, 174, 173, 181, 185, 190, 174, 173, 182, 174, 173, 183, 174, 173, 184, 174, 173, 43, 174, 173, 186, 174, 173, 187, 174, 173, 188, 174, 173, 189, 174, 173, 174, 43, 173, 43, 174, 173, 192, 174, 173, 193, 174, 173, 194, 174, 173, 195, 174, 173, 43, 174, 173, 197, 174, 173, 198, 174, 173, 199, 174, 173, 200, 174, 173, 43, 174, 173, 174, 202, 173, 174, 203, 173, 174, 204, 173, 174, 205, 173, 174, 206, 173, 174, 207, 173, 174, 208, 173, 174, 209, 173, 174, 210, 173, 174, 211, 173, 174, 212, 173, 174, 213, 173, 174, 214, 173, 174, 1, 173, 174, 43, 173, 218, 217, 218, 217, 219, 224, 241, 246, 218, 218, 1, 251, 265, 1, 218, 217, 220, 218, 217, 221, 218, 217, 222, 218, 217, 223, 218, 217, 43, 218, 217, 225, 229, 240, 218, 217, 226, 218, 217, 227, 218, 217, 228, 218, 217, 43, 218, 217, 230, 218, 217, 231, 218, 217, 232, 218, 217, 233, 218, 217, 234, 218, 43, 217, 235, 218, 217, 236, 218, 217, 237, 218, 217, 238, 218, 217, 239, 218, 217, 218, 43, 217, 43, 218, 217, 242, 218, 217, 243, 218, 217, 244, 218, 217, 245, 218, 217, 43, 218, 217, 247, 218, 217, 248, 218, 217, 249, 218, 217, 250, 218, 217, 43, 218, 217, 218, 252, 217, 218, 253, 217, 218, 254, 217, 218, 255, 217, 218, 256, 217, 218, 257, 217, 218, 258, 217, 218, 259, 217, 218, 260, 217, 218, 261, 217, 218, 262, 217, 218, 263, 217, 218, 264, 217, 218, 1, 217, 218, 43, 217, 7, 0, 0, 0 ] class << self attr_accessor :_lexer_trans_actions private :_lexer_trans_actions, :_lexer_trans_actions= end self._lexer_trans_actions = [ 23, 23, 23, 23, 45, 0, 3, 1, 0, 23, 1, 29, 0, 37, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 37, 48, 97, 17, 0, 45, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 122, 48, 45, 0, 45, 0, 72, 0, 0, 0, 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, 75, 75, 45, 0, 60, 27, 60, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 9, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 9, 0, 54, 54, 54, 54, 113, 25, 51, 48, 25, 54, 48, 57, 25, 37, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 122, 48, 45, 0, 75, 75, 75, 75, 45, 0, 63, 27, 75, 63, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 11, 45, 0, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 11, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 11, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 11, 0, 11, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 11, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 11, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 11, 0, 45, 11, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 45, 0, 0, 37, 117, 39, 39, 39, 5, 109, 27, 27, 27, 0, 109, 27, 27, 27, 0, 109, 27, 0, 27, 0, 93, 7, 7, 37, 45, 0, 0, 37, 101, 19, 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, 37, 37, 37, 37, 0, 21, 105, 21, 21, 42, 21, 0, 45, 0, 1, 0, 37, 0, 0, 0, 37, 45, 31, 78, 31, 31, 33, 0, 45, 0, 33, 0, 0, 87, 87, 87, 87, 45, 0, 84, 81, 35, 87, 81, 90, 0, 37, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 9, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 122, 48, 45, 0, 75, 75, 75, 75, 45, 0, 69, 27, 75, 69, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 15, 45, 0, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 15, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 15, 0, 15, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 15, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 15, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 15, 0, 45, 15, 0, 122, 48, 45, 0, 75, 75, 75, 75, 45, 0, 66, 27, 75, 66, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 13, 45, 0, 0, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 13, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 13, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 45, 13, 0, 13, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 13, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 13, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 13, 0, 45, 13, 0, 0, 37, 0, 0 ] class << self attr_accessor :_lexer_eof_actions private :_lexer_eof_actions, :_lexer_eof_actions= end self._lexer_eof_actions = [ 0, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37 ] class << self attr_accessor :lexer_start end self.lexer_start = 1; class << self attr_accessor :lexer_first_final end self.lexer_first_final = 267; class << self attr_accessor :lexer_error end self.lexer_error = 0; class << self attr_accessor :lexer_en_main end self.lexer_en_main = 1; # line 130 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" end 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 # line 577 "lib/gherkin/rb_lexer/zhCN.rb" begin p ||= 0 pe ||= data.length cs = lexer_start end # line 140 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" # line 586 "lib/gherkin/rb_lexer/zhCN.rb" begin _klen, _trans, _keys, _acts, _nacts = nil _goto_level = 0 _resume = 10 _eof_trans = 15 _again = 20 _test_eof = 30 _out = 40 while true _trigger_goto = false if _goto_level <= 0 if p == pe _goto_level = _test_eof next end if cs == 0 _goto_level = _out next end end if _goto_level <= _resume _keys = _lexer_key_offsets[cs] _trans = _lexer_index_offsets[cs] _klen = _lexer_single_lengths[cs] _break_match = false begin if _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 end _klen = _lexer_range_lengths[cs] if _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 end end while false cs = _lexer_trans_targs[_trans] if _lexer_trans_actions[_trans] != 0 _acts = _lexer_trans_actions[_trans] _nacts = _lexer_actions[_acts] _acts += 1 while _nacts > 0 _nacts -= 1 _acts += 1 case _lexer_actions[_acts - 1] when 0 then # line 9 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin @content_start = p @current_line = @line_number end # line 9 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 1 then # line 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin @current_line = @line_number @start_col = p - @last_newline end # line 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 2 then # line 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin @content_start = p end # line 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 3 then # line 23 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin con = unindent(@start_col, data[@content_start...@next_keyword_start-1].utf8_pack("c*").sub(/(\r?\n)?( )*\Z/, '')) @listener.py_string(con, @current_line) end # line 23 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 4 then # line 28 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin 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 # line 28 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 5 then # line 34 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin 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 # line 34 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 6 then # line 40 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin 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 # line 40 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 7 then # line 46 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin 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 # line 46 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 8 then # line 52 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin 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 # line 52 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 9 then # line 58 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin con = data[@content_start...p].utf8_pack("c*").strip @listener.step(@keyword, con, @current_line) end # line 58 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 10 then # line 63 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin con = data[@content_start...p].utf8_pack("c*").strip @listener.comment(con, @line_number) @keyword_start = nil end # line 63 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 11 then # line 69 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin con = data[@content_start...p].utf8_pack("c*").strip @listener.tag(con, @current_line) @keyword_start = nil end # line 69 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 12 then # line 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin @line_number += 1 end # line 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 13 then # line 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin @last_newline = p + 1 end # line 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 14 then # line 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin @keyword_start ||= p end # line 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 15 then # line 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin @keyword = data[@keyword_start...p].utf8_pack("c*").sub(/:$/,'') @keyword_start = nil end # line 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 16 then # line 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin @next_keyword_start = p end # line 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 17 then # line 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin p = p - 1 current_row = [] @current_line = @line_number end # line 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 18 then # line 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin @content_start = p end # line 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 19 then # line 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin con = data[@content_start...p].utf8_pack("c*").strip current_row << con end # line 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 20 then # line 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin @listener.row(current_row, @current_line) end # line 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" when 21 then # line 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin 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 # line 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" # line 847 "lib/gherkin/rb_lexer/zhCN.rb" end # action switch end end if _trigger_goto next end end if _goto_level <= _again if cs == 0 _goto_level = _out next end p += 1 if p != pe _goto_level = _resume next end end if _goto_level <= _test_eof if p == eof __acts = _lexer_eof_actions[cs] __nacts = _lexer_actions[__acts] __acts += 1 while __nacts > 0 __nacts -= 1 __acts += 1 case _lexer_actions[__acts - 1] when 21 then # line 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" begin 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 # line 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" # line 887 "lib/gherkin/rb_lexer/zhCN.rb" end # eof action switch end if _trigger_goto next end end end if _goto_level <= _out break end end end # line 141 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/zhCN.rb.rl" end CRLF_RE = /\r\n/ LF_RE = /[^\r]\n/ CRLF = "\r\n" LF = "\n" 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 unindent(startcol, text) text.gsub(/^ {0,#{startcol}}/, "") end 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 current_line_content(data, p) rest = data[@last_newline..-1] rest[0..rest.index(10)||-1].utf8_pack("c*").strip end end end end