# line 1 "./tasks/../ragel/i18n/lv.rb.rl" module Gherkin module RbLexer class Lv #:nodoc: # line 134 "./tasks/../ragel/i18n/lv.rb.rl" def initialize(listener) @listener = listener # line 14 "lib/gherkin/rb_lexer/lv.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, 23, 2, 2, 16, 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, 19, 20, 2, 21, 18, 2, 21, 22, 3, 3, 12, 13, 3, 9, 12, 13, 3, 10, 12, 13, 3, 11, 12, 13, 3, 12, 13, 16, 3, 15, 12, 13, 3, 21, 22, 0, 3, 21, 22, 1, 3, 21, 22, 14, 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, 18, 19, 20, 24, 29, 34, 39, 44, 48, 52, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 72, 77, 84, 89, 90, 91, 93, 94, 95, 96, 97, 98, 99, 100, 109, 111, 113, 115, 117, 119, 121, 123, 125, 127, 129, 131, 133, 135, 137, 139, 141, 143, 145, 147, 149, 151, 153, 155, 173, 174, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 221, 223, 225, 227, 229, 231, 233, 235, 237, 239, 241, 243, 245, 247, 249, 251, 253, 255, 257, 259, 262, 264, 266, 268, 270, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 292, 293, 294, 295, 296, 297, 298, 299, 300, 305, 306, 307, 308, 309, 310, 311, 313, 314, 315, 316, 317, 318, 319, 320, 321, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 352, 354, 356, 358, 360, 362, 364, 366, 368, 370, 372, 374, 376, 378, 380, 382, 384, 386, 388, 390, 392, 394, 396, 398, 400, 402, 404, 406, 408, 410, 412, 414, 415, 416, 430, 432, 434, 436, 438, 440, 442, 444, 446, 448, 450, 452, 454, 456, 458, 460, 462, 464, 466, 468, 470, 472, 474, 476, 478, 480, 482, 484, 486, 488, 491, 493, 495, 497, 499, 501, 503, 505, 507, 509, 511, 513, 515, 517, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 533, 538, 539, 544, 562, 565, 567, 569, 571, 573, 575, 577, 579, 581, 584, 586, 588, 590, 592, 594, 596, 598, 600, 602, 604, 606, 608, 610, 612, 614, 616, 618, 620, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636 ] class << self attr_accessor :_lexer_trans_keys private :_lexer_trans_keys, :_lexer_trans_keys= end self._lexer_trans_keys = [ 10, 32, 34, 35, 37, 42, 64, 66, 70, 74, 75, 80, 83, 84, 85, 124, 9, 13, 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, 10, 10, 13, 13, 32, 64, 9, 10, 9, 10, 13, 32, 64, 11, 12, 10, 32, 64, 9, 13, 101, 116, -60, 117, -85, -60, -115, 97, 58, 10, 10, 10, 32, 35, 37, 64, 75, 83, 9, 13, 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, 111, 10, 110, 10, 116, 10, 101, 10, 107, 10, 115, 10, 116, 10, 115, 10, 58, 10, 32, 34, 35, 37, 42, 64, 66, 70, 74, 75, 80, 83, 84, 85, 124, 9, 13, 97, 97, 111, 100, 110, 116, 101, 107, 115, 116, 115, 58, 10, 10, 10, 32, 35, 37, 42, 64, 66, 74, 75, 83, 84, 85, 9, 13, 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, 101, 10, 116, 10, 97, 10, 97, 10, 100, 10, 99, 10, 101, 10, 110, -60, 10, -127, 10, 10, 114, 10, 105, 10, 106, 10, 115, 10, 32, 58, 10, 112, -60, 10, -109, 10, 10, 99, 10, 32, 10, 112, 10, 97, 10, 114, 10, 97, 10, 117, 10, 103, 10, 97, 10, 58, 10, 110, 97, 105, 114, 97, 117, 103, 115, 58, 10, 10, 10, 32, 124, 9, 13, 101, 109, -60, -109, 114, 105, 99, 105, 101, 110, -60, -127, 114, 105, 106, 115, 32, 58, 112, -60, -109, 99, 32, 112, 97, 114, 97, 117, 103, 97, 58, 10, 10, 10, 32, 35, 37, 42, 64, 66, 74, 75, 83, 84, 85, 9, 13, 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, 101, 10, 116, 10, 97, 10, 97, 10, 100, 10, 99, 10, 101, 10, 110, -60, 10, -127, 10, 10, 114, 10, 105, 10, 106, 10, 115, 10, 58, 10, 110, 10, 10, 10, 32, 35, 37, 42, 64, 66, 74, 75, 83, 84, 85, 9, 13, 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, 101, 10, 116, 10, 97, 10, 97, 10, 100, 10, 99, 10, 101, 10, 110, -60, 10, -127, 10, 10, 114, 10, 105, 10, 106, 10, 115, 10, 32, 58, 10, 112, -60, 10, -109, 10, 10, 99, 10, 32, 10, 112, 10, 97, 10, 114, 10, 97, 10, 117, 10, 103, 10, 97, 10, 58, 10, 110, 116, 117, -60, -127, 99, 105, 106, 97, 97, 110, 32, 124, 9, 13, 10, 32, 124, 9, 13, 124, 10, 32, 124, 9, 13, 10, 32, 34, 35, 37, 42, 64, 66, 70, 74, 75, 80, 83, 84, 85, 124, 9, 13, 10, 99, 105, 10, 101, 10, 110, -60, 10, -127, 10, 10, 114, 10, 105, 10, 106, 10, 115, 10, 32, 58, 10, 112, -60, 10, -109, 10, 10, 99, 10, 32, 10, 112, 10, 97, 10, 114, 10, 97, 10, 117, 10, 103, 10, 97, 10, 116, 10, 117, -60, 10, -127, 10, 10, 99, 10, 105, 10, 106, 110, 107, 99, 105, 111, 110, 97, 108, 105, 116, -60, -127, 116, 101, 0 ] class << self attr_accessor :_lexer_single_lengths private :_lexer_single_lengths, :_lexer_single_lengths= end self._lexer_single_lengths = [ 0, 16, 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, 1, 2, 3, 5, 3, 1, 1, 2, 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, 2, 16, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 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, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 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, 12, 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, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 3, 16, 3, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 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, 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, 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, 18, 20, 22, 26, 31, 36, 41, 46, 50, 54, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 92, 97, 104, 109, 111, 113, 116, 118, 120, 122, 124, 126, 128, 130, 139, 142, 145, 148, 151, 154, 157, 160, 163, 166, 169, 172, 175, 178, 181, 184, 187, 190, 193, 196, 199, 202, 205, 208, 226, 228, 231, 233, 235, 237, 239, 241, 243, 245, 247, 249, 251, 253, 267, 270, 273, 276, 279, 282, 285, 288, 291, 294, 297, 300, 303, 306, 309, 312, 315, 318, 321, 324, 327, 330, 333, 336, 339, 342, 345, 348, 351, 354, 358, 361, 364, 367, 370, 373, 376, 379, 382, 385, 388, 391, 394, 397, 400, 403, 405, 407, 409, 411, 413, 415, 417, 419, 424, 426, 428, 430, 432, 434, 436, 439, 441, 443, 445, 447, 449, 451, 453, 455, 458, 460, 462, 464, 466, 468, 470, 472, 474, 476, 478, 480, 482, 484, 486, 488, 502, 505, 508, 511, 514, 517, 520, 523, 526, 529, 532, 535, 538, 541, 544, 547, 550, 553, 556, 559, 562, 565, 568, 571, 574, 577, 580, 583, 586, 589, 592, 595, 597, 599, 613, 616, 619, 622, 625, 628, 631, 634, 637, 640, 643, 646, 649, 652, 655, 658, 661, 664, 667, 670, 673, 676, 679, 682, 685, 688, 691, 694, 697, 700, 704, 707, 710, 713, 716, 719, 722, 725, 728, 731, 734, 737, 740, 743, 746, 748, 750, 752, 754, 756, 758, 760, 762, 764, 766, 770, 775, 777, 782, 800, 804, 807, 810, 813, 816, 819, 822, 825, 828, 832, 835, 838, 841, 844, 847, 850, 853, 856, 859, 862, 865, 868, 871, 874, 877, 880, 883, 886, 889, 891, 893, 895, 897, 899, 901, 903, 905, 907, 909, 911, 913, 915, 917 ] class << self attr_accessor :_lexer_trans_targs private :_lexer_trans_targs, :_lexer_trans_targs= end self._lexer_trans_targs = [ 1, 1, 2, 11, 12, 26, 29, 32, 34, 67, 68, 125, 141, 253, 254, 255, 1, 0, 3, 0, 4, 0, 5, 4, 4, 0, 6, 6, 7, 6, 6, 6, 6, 7, 6, 6, 6, 6, 8, 6, 6, 6, 6, 9, 6, 6, 1, 10, 10, 0, 1, 10, 10, 0, 1, 11, 11, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0, 21, 0, 22, 0, 23, 0, 24, 0, 25, 0, 303, 0, 27, 0, 0, 28, 1, 28, 28, 0, 0, 0, 0, 30, 31, 1, 31, 31, 29, 30, 30, 1, 31, 29, 31, 0, 33, 0, 26, 0, 35, 289, 0, 36, 0, 37, 0, 38, 0, 39, 0, 40, 0, 42, 41, 42, 41, 42, 42, 1, 43, 1, 57, 260, 42, 41, 42, 44, 41, 42, 45, 41, 42, 46, 41, 42, 47, 41, 42, 48, 41, 42, 49, 41, 42, 50, 41, 42, 51, 41, 42, 52, 41, 42, 53, 41, 42, 54, 41, 42, 55, 41, 42, 56, 41, 42, 1, 41, 42, 58, 41, 42, 59, 41, 42, 60, 41, 42, 61, 41, 42, 62, 41, 42, 63, 41, 42, 64, 41, 42, 65, 41, 42, 66, 41, 1, 1, 2, 11, 12, 26, 29, 32, 34, 67, 68, 125, 141, 253, 254, 255, 1, 0, 26, 0, 69, 70, 0, 26, 0, 71, 0, 72, 0, 73, 0, 74, 0, 75, 0, 76, 0, 77, 0, 78, 0, 80, 79, 80, 79, 80, 80, 1, 81, 95, 1, 96, 98, 99, 101, 99, 124, 80, 79, 80, 82, 79, 80, 83, 79, 80, 84, 79, 80, 85, 79, 80, 86, 79, 80, 87, 79, 80, 88, 79, 80, 89, 79, 80, 90, 79, 80, 91, 79, 80, 92, 79, 80, 93, 79, 80, 94, 79, 80, 1, 79, 80, 66, 79, 80, 97, 79, 80, 95, 79, 80, 95, 79, 80, 100, 79, 80, 95, 79, 80, 102, 79, 80, 103, 79, 80, 104, 79, 105, 80, 79, 106, 80, 79, 80, 107, 79, 80, 108, 79, 80, 109, 79, 80, 110, 79, 80, 111, 66, 79, 80, 112, 79, 113, 80, 79, 114, 80, 79, 80, 115, 79, 80, 116, 79, 80, 117, 79, 80, 118, 79, 80, 119, 79, 80, 120, 79, 80, 121, 79, 80, 122, 79, 80, 123, 79, 80, 66, 79, 80, 95, 79, 126, 135, 0, 127, 0, 128, 0, 129, 0, 130, 0, 131, 0, 132, 0, 134, 133, 134, 133, 134, 134, 1, 134, 133, 136, 0, 137, 0, 138, 0, 139, 0, 140, 0, 131, 0, 142, 245, 0, 143, 0, 144, 0, 145, 0, 146, 0, 147, 0, 148, 0, 149, 0, 150, 0, 151, 198, 0, 152, 0, 153, 0, 154, 0, 155, 0, 156, 0, 157, 0, 158, 0, 159, 0, 160, 0, 161, 0, 162, 0, 163, 0, 164, 0, 166, 165, 166, 165, 166, 166, 1, 167, 181, 1, 182, 184, 185, 187, 185, 197, 166, 165, 166, 168, 165, 166, 169, 165, 166, 170, 165, 166, 171, 165, 166, 172, 165, 166, 173, 165, 166, 174, 165, 166, 175, 165, 166, 176, 165, 166, 177, 165, 166, 178, 165, 166, 179, 165, 166, 180, 165, 166, 1, 165, 166, 66, 165, 166, 183, 165, 166, 181, 165, 166, 181, 165, 166, 186, 165, 166, 181, 165, 166, 188, 165, 166, 189, 165, 166, 190, 165, 191, 166, 165, 192, 166, 165, 166, 193, 165, 166, 194, 165, 166, 195, 165, 166, 196, 165, 166, 66, 165, 166, 181, 165, 200, 199, 200, 199, 200, 200, 1, 201, 215, 1, 216, 218, 219, 221, 219, 244, 200, 199, 200, 202, 199, 200, 203, 199, 200, 204, 199, 200, 205, 199, 200, 206, 199, 200, 207, 199, 200, 208, 199, 200, 209, 199, 200, 210, 199, 200, 211, 199, 200, 212, 199, 200, 213, 199, 200, 214, 199, 200, 1, 199, 200, 66, 199, 200, 217, 199, 200, 215, 199, 200, 215, 199, 200, 220, 199, 200, 215, 199, 200, 222, 199, 200, 223, 199, 200, 224, 199, 225, 200, 199, 226, 200, 199, 200, 227, 199, 200, 228, 199, 200, 229, 199, 200, 230, 199, 200, 231, 66, 199, 200, 232, 199, 233, 200, 199, 234, 200, 199, 200, 235, 199, 200, 236, 199, 200, 237, 199, 200, 238, 199, 200, 239, 199, 200, 240, 199, 200, 241, 199, 200, 242, 199, 200, 243, 199, 200, 66, 199, 200, 215, 199, 246, 0, 247, 0, 248, 0, 249, 0, 250, 0, 251, 0, 252, 0, 77, 0, 69, 0, 26, 0, 255, 256, 255, 0, 259, 258, 256, 258, 257, 256, 257, 259, 258, 256, 258, 257, 259, 259, 2, 11, 12, 26, 29, 32, 34, 67, 68, 125, 141, 253, 254, 256, 259, 0, 42, 261, 282, 41, 42, 262, 41, 42, 263, 41, 264, 42, 41, 265, 42, 41, 42, 266, 41, 42, 267, 41, 42, 268, 41, 42, 269, 41, 42, 270, 66, 41, 42, 271, 41, 272, 42, 41, 273, 42, 41, 42, 274, 41, 42, 275, 41, 42, 276, 41, 42, 277, 41, 42, 278, 41, 42, 279, 41, 42, 280, 41, 42, 281, 41, 42, 65, 41, 42, 283, 41, 42, 284, 41, 285, 42, 41, 286, 42, 41, 42, 287, 41, 42, 288, 41, 42, 281, 41, 290, 0, 291, 0, 292, 0, 293, 0, 294, 0, 295, 0, 296, 0, 297, 0, 298, 0, 299, 0, 300, 0, 301, 0, 302, 0, 39, 0, 0, 0 ] class << self attr_accessor :_lexer_trans_actions private :_lexer_trans_actions, :_lexer_trans_actions= end self._lexer_trans_actions = [ 42, 0, 3, 1, 0, 23, 0, 23, 23, 23, 23, 23, 23, 23, 23, 29, 0, 37, 0, 37, 0, 37, 42, 0, 0, 37, 120, 39, 39, 39, 5, 100, 27, 27, 27, 0, 100, 27, 27, 27, 0, 100, 27, 0, 27, 0, 84, 7, 7, 37, 42, 0, 0, 37, 92, 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, 45, 88, 17, 0, 37, 37, 37, 37, 1, 21, 96, 21, 21, 21, 21, 0, 42, 0, 0, 0, 37, 0, 37, 0, 37, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 125, 45, 42, 0, 42, 0, 57, 27, 57, 72, 72, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 9, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 9, 0, 104, 25, 48, 45, 25, 51, 25, 51, 51, 51, 51, 51, 51, 51, 51, 54, 25, 37, 0, 37, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 125, 45, 42, 0, 42, 0, 60, 27, 72, 60, 72, 72, 72, 72, 72, 72, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 11, 0, 42, 11, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 0, 42, 0, 0, 42, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 11, 0, 42, 0, 0, 0, 42, 0, 0, 42, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 11, 0, 42, 0, 0, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 125, 45, 42, 0, 42, 0, 69, 0, 0, 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, 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, 125, 45, 42, 0, 42, 0, 66, 27, 72, 66, 72, 72, 72, 72, 72, 72, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 15, 0, 42, 15, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 0, 42, 0, 0, 42, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 15, 0, 42, 0, 0, 125, 45, 42, 0, 42, 0, 63, 27, 72, 63, 72, 72, 72, 72, 72, 72, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 13, 0, 42, 13, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 0, 42, 0, 0, 42, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 13, 0, 42, 0, 0, 0, 42, 0, 0, 42, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 13, 0, 42, 0, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 31, 0, 37, 42, 33, 75, 33, 33, 35, 0, 42, 0, 35, 0, 0, 42, 0, 112, 108, 81, 116, 81, 116, 116, 116, 116, 116, 116, 116, 116, 78, 0, 37, 42, 0, 0, 0, 42, 0, 0, 42, 0, 0, 0, 42, 0, 0, 42, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 9, 0, 42, 0, 0, 0, 42, 0, 0, 42, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 0, 42, 0, 0, 42, 0, 42, 0, 0, 42, 0, 0, 42, 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, 0, 37, 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, 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 = 303; 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 139 "./tasks/../ragel/i18n/lv.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 625 "lib/gherkin/rb_lexer/lv.rb" begin p ||= 0 pe ||= data.length cs = lexer_start end # line 149 "./tasks/../ragel/i18n/lv.rb.rl" # line 634 "lib/gherkin/rb_lexer/lv.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 12 "./tasks/../ragel/i18n/lv.rb.rl" begin @content_start = p @current_line = @line_number end # line 12 "./tasks/../ragel/i18n/lv.rb.rl" when 1 then # line 17 "./tasks/../ragel/i18n/lv.rb.rl" begin @current_line = @line_number @start_col = p - @last_newline end # line 17 "./tasks/../ragel/i18n/lv.rb.rl" when 2 then # line 22 "./tasks/../ragel/i18n/lv.rb.rl" begin @content_start = p end # line 22 "./tasks/../ragel/i18n/lv.rb.rl" when 3 then # line 26 "./tasks/../ragel/i18n/lv.rb.rl" begin con = unindent(@start_col, data[@content_start...@next_keyword_start-1].pack("c*").sub(/(\r?\n)?( )*\Z/, '')) @listener.py_string(con, @current_line) end # line 26 "./tasks/../ragel/i18n/lv.rb.rl" when 4 then # line 31 "./tasks/../ragel/i18n/lv.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 31 "./tasks/../ragel/i18n/lv.rb.rl" when 5 then # line 37 "./tasks/../ragel/i18n/lv.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 37 "./tasks/../ragel/i18n/lv.rb.rl" when 6 then # line 43 "./tasks/../ragel/i18n/lv.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 43 "./tasks/../ragel/i18n/lv.rb.rl" when 7 then # line 49 "./tasks/../ragel/i18n/lv.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 49 "./tasks/../ragel/i18n/lv.rb.rl" when 8 then # line 55 "./tasks/../ragel/i18n/lv.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 55 "./tasks/../ragel/i18n/lv.rb.rl" when 9 then # line 61 "./tasks/../ragel/i18n/lv.rb.rl" begin con = data[@content_start...p].pack("c*").strip @listener.step(@keyword, con, @current_line) end # line 61 "./tasks/../ragel/i18n/lv.rb.rl" when 10 then # line 66 "./tasks/../ragel/i18n/lv.rb.rl" begin con = data[@content_start...p].pack("c*").strip @listener.comment(con, @line_number) end # line 66 "./tasks/../ragel/i18n/lv.rb.rl" when 11 then # line 71 "./tasks/../ragel/i18n/lv.rb.rl" begin con = data[@content_start...p].pack("c*").strip @listener.tag(con, @current_line) end # line 71 "./tasks/../ragel/i18n/lv.rb.rl" when 12 then # line 76 "./tasks/../ragel/i18n/lv.rb.rl" begin @line_number += 1 end # line 76 "./tasks/../ragel/i18n/lv.rb.rl" when 13 then # line 80 "./tasks/../ragel/i18n/lv.rb.rl" begin @last_newline = p + 1 end # line 80 "./tasks/../ragel/i18n/lv.rb.rl" when 14 then # line 84 "./tasks/../ragel/i18n/lv.rb.rl" begin @keyword_start ||= p end # line 84 "./tasks/../ragel/i18n/lv.rb.rl" when 15 then # line 88 "./tasks/../ragel/i18n/lv.rb.rl" begin @keyword = data[@keyword_start...p].pack("c*").sub(/:$/,'').strip @keyword_start = nil end # line 88 "./tasks/../ragel/i18n/lv.rb.rl" when 16 then # line 93 "./tasks/../ragel/i18n/lv.rb.rl" begin @next_keyword_start = p end # line 93 "./tasks/../ragel/i18n/lv.rb.rl" when 17 then # line 97 "./tasks/../ragel/i18n/lv.rb.rl" begin p = p - 1 @rows = [] @current_line = @line_number end # line 97 "./tasks/../ragel/i18n/lv.rb.rl" when 18 then # line 103 "./tasks/../ragel/i18n/lv.rb.rl" begin current_row = [] end # line 103 "./tasks/../ragel/i18n/lv.rb.rl" when 19 then # line 107 "./tasks/../ragel/i18n/lv.rb.rl" begin @content_start = p end # line 107 "./tasks/../ragel/i18n/lv.rb.rl" when 20 then # line 111 "./tasks/../ragel/i18n/lv.rb.rl" begin con = data[@content_start...p].pack("c*").strip current_row << con end # line 111 "./tasks/../ragel/i18n/lv.rb.rl" when 21 then # line 116 "./tasks/../ragel/i18n/lv.rb.rl" begin @rows << current_row end # line 116 "./tasks/../ragel/i18n/lv.rb.rl" when 22 then # line 120 "./tasks/../ragel/i18n/lv.rb.rl" begin if @rows.size != 0 @listener.table(@rows, @current_line) end end # line 120 "./tasks/../ragel/i18n/lv.rb.rl" when 23 then # line 126 "./tasks/../ragel/i18n/lv.rb.rl" begin if cs < lexer_first_final content = current_line_content(data, p) raise Lexer::LexingError.new("Lexing error on line %d: '%s'." % [@line_number, content]) end end # line 126 "./tasks/../ragel/i18n/lv.rb.rl" # line 907 "lib/gherkin/rb_lexer/lv.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 23 then # line 126 "./tasks/../ragel/i18n/lv.rb.rl" begin if cs < lexer_first_final content = current_line_content(data, p) raise Lexer::LexingError.new("Lexing error on line %d: '%s'." % [@line_number, content]) end end # line 126 "./tasks/../ragel/i18n/lv.rb.rl" # line 945 "lib/gherkin/rb_lexer/lv.rb" end # eof action switch end if _trigger_goto next end end end if _goto_level <= _out break end end end # line 150 "./tasks/../ragel/i18n/lv.rb.rl" end def multiline_strip(text) text.split("\n").map{|s| s.strip}.join("\n").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].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].pack("c*").strip end end end end