# line 1 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" require 'gherkin/core_ext/array' module Gherkin module RbLexer class Lv #:nodoc: # line 125 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" def initialize(listener) @listener = listener # line 16 "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, 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, 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, 71, 73, 78, 85, 90, 91, 92, 94, 95, 96, 97, 98, 99, 100, 101, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 174, 175, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228, 230, 232, 234, 236, 238, 240, 242, 244, 246, 248, 250, 252, 254, 256, 258, 260, 263, 265, 267, 269, 271, 273, 275, 277, 279, 281, 283, 285, 287, 289, 291, 293, 294, 295, 296, 297, 298, 299, 300, 301, 306, 307, 308, 309, 310, 311, 312, 314, 315, 316, 317, 318, 319, 320, 321, 322, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 353, 355, 357, 359, 361, 363, 365, 367, 369, 371, 373, 375, 377, 379, 381, 383, 385, 387, 389, 391, 393, 395, 397, 399, 401, 403, 405, 407, 409, 411, 413, 415, 416, 417, 431, 433, 435, 437, 439, 441, 443, 445, 447, 449, 451, 453, 455, 457, 459, 461, 463, 465, 467, 469, 471, 473, 475, 477, 479, 481, 483, 485, 487, 489, 492, 494, 496, 498, 500, 502, 504, 506, 508, 510, 512, 514, 516, 518, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 534, 539, 540, 545, 563, 566, 568, 570, 572, 574, 576, 578, 580, 582, 585, 587, 589, 591, 593, 595, 597, 599, 601, 603, 605, 607, 609, 611, 613, 615, 617, 619, 621, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637 ] 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, 10, 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, 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, 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, 91, 94, 99, 106, 111, 113, 115, 118, 120, 122, 124, 126, 128, 130, 132, 141, 144, 147, 150, 153, 156, 159, 162, 165, 168, 171, 174, 177, 180, 183, 186, 189, 192, 195, 198, 201, 204, 207, 210, 228, 230, 233, 235, 237, 239, 241, 243, 245, 247, 249, 251, 253, 255, 269, 272, 275, 278, 281, 284, 287, 290, 293, 296, 299, 302, 305, 308, 311, 314, 317, 320, 323, 326, 329, 332, 335, 338, 341, 344, 347, 350, 353, 356, 360, 363, 366, 369, 372, 375, 378, 381, 384, 387, 390, 393, 396, 399, 402, 405, 407, 409, 411, 413, 415, 417, 419, 421, 426, 428, 430, 432, 434, 436, 438, 441, 443, 445, 447, 449, 451, 453, 455, 457, 460, 462, 464, 466, 468, 470, 472, 474, 476, 478, 480, 482, 484, 486, 488, 490, 504, 507, 510, 513, 516, 519, 522, 525, 528, 531, 534, 537, 540, 543, 546, 549, 552, 555, 558, 561, 564, 567, 570, 573, 576, 579, 582, 585, 588, 591, 594, 597, 599, 601, 615, 618, 621, 624, 627, 630, 633, 636, 639, 642, 645, 648, 651, 654, 657, 660, 663, 666, 669, 672, 675, 678, 681, 684, 687, 690, 693, 696, 699, 702, 706, 709, 712, 715, 718, 721, 724, 727, 730, 733, 736, 739, 742, 745, 748, 750, 752, 754, 756, 758, 760, 762, 764, 766, 768, 772, 777, 779, 784, 802, 806, 809, 812, 815, 818, 821, 824, 827, 830, 834, 837, 840, 843, 846, 849, 852, 855, 858, 861, 864, 867, 870, 873, 876, 879, 882, 885, 888, 891, 893, 895, 897, 899, 901, 903, 905, 907, 909, 911, 913, 915, 917, 919 ] class << self attr_accessor :_lexer_trans_targs private :_lexer_trans_targs, :_lexer_trans_targs= end self._lexer_trans_targs = [ 1, 1, 2, 11, 13, 27, 30, 33, 35, 68, 69, 126, 142, 254, 255, 256, 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, 12, 11, 1, 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, 26, 0, 304, 0, 28, 0, 0, 29, 1, 12, 29, 0, 0, 0, 0, 31, 32, 1, 32, 32, 30, 31, 31, 1, 32, 30, 32, 0, 34, 0, 27, 0, 36, 290, 0, 37, 0, 38, 0, 39, 0, 40, 0, 41, 0, 43, 42, 43, 42, 43, 43, 1, 44, 1, 58, 261, 43, 42, 43, 45, 42, 43, 46, 42, 43, 47, 42, 43, 48, 42, 43, 49, 42, 43, 50, 42, 43, 51, 42, 43, 52, 42, 43, 53, 42, 43, 54, 42, 43, 55, 42, 43, 56, 42, 43, 57, 42, 43, 1, 42, 43, 59, 42, 43, 60, 42, 43, 61, 42, 43, 62, 42, 43, 63, 42, 43, 64, 42, 43, 65, 42, 43, 66, 42, 43, 67, 42, 1, 1, 2, 11, 13, 27, 30, 33, 35, 68, 69, 126, 142, 254, 255, 256, 1, 0, 27, 0, 70, 71, 0, 27, 0, 72, 0, 73, 0, 74, 0, 75, 0, 76, 0, 77, 0, 78, 0, 79, 0, 81, 80, 81, 80, 81, 81, 1, 82, 96, 1, 97, 99, 100, 102, 100, 125, 81, 80, 81, 83, 80, 81, 84, 80, 81, 85, 80, 81, 86, 80, 81, 87, 80, 81, 88, 80, 81, 89, 80, 81, 90, 80, 81, 91, 80, 81, 92, 80, 81, 93, 80, 81, 94, 80, 81, 95, 80, 81, 1, 80, 81, 67, 80, 81, 98, 80, 81, 96, 80, 81, 96, 80, 81, 101, 80, 81, 96, 80, 81, 103, 80, 81, 104, 80, 81, 105, 80, 106, 81, 80, 107, 81, 80, 81, 108, 80, 81, 109, 80, 81, 110, 80, 81, 111, 80, 81, 112, 67, 80, 81, 113, 80, 114, 81, 80, 115, 81, 80, 81, 116, 80, 81, 117, 80, 81, 118, 80, 81, 119, 80, 81, 120, 80, 81, 121, 80, 81, 122, 80, 81, 123, 80, 81, 124, 80, 81, 67, 80, 81, 96, 80, 127, 136, 0, 128, 0, 129, 0, 130, 0, 131, 0, 132, 0, 133, 0, 135, 134, 135, 134, 135, 135, 1, 135, 134, 137, 0, 138, 0, 139, 0, 140, 0, 141, 0, 132, 0, 143, 246, 0, 144, 0, 145, 0, 146, 0, 147, 0, 148, 0, 149, 0, 150, 0, 151, 0, 152, 199, 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, 165, 0, 167, 166, 167, 166, 167, 167, 1, 168, 182, 1, 183, 185, 186, 188, 186, 198, 167, 166, 167, 169, 166, 167, 170, 166, 167, 171, 166, 167, 172, 166, 167, 173, 166, 167, 174, 166, 167, 175, 166, 167, 176, 166, 167, 177, 166, 167, 178, 166, 167, 179, 166, 167, 180, 166, 167, 181, 166, 167, 1, 166, 167, 67, 166, 167, 184, 166, 167, 182, 166, 167, 182, 166, 167, 187, 166, 167, 182, 166, 167, 189, 166, 167, 190, 166, 167, 191, 166, 192, 167, 166, 193, 167, 166, 167, 194, 166, 167, 195, 166, 167, 196, 166, 167, 197, 166, 167, 67, 166, 167, 182, 166, 201, 200, 201, 200, 201, 201, 1, 202, 216, 1, 217, 219, 220, 222, 220, 245, 201, 200, 201, 203, 200, 201, 204, 200, 201, 205, 200, 201, 206, 200, 201, 207, 200, 201, 208, 200, 201, 209, 200, 201, 210, 200, 201, 211, 200, 201, 212, 200, 201, 213, 200, 201, 214, 200, 201, 215, 200, 201, 1, 200, 201, 67, 200, 201, 218, 200, 201, 216, 200, 201, 216, 200, 201, 221, 200, 201, 216, 200, 201, 223, 200, 201, 224, 200, 201, 225, 200, 226, 201, 200, 227, 201, 200, 201, 228, 200, 201, 229, 200, 201, 230, 200, 201, 231, 200, 201, 232, 67, 200, 201, 233, 200, 234, 201, 200, 235, 201, 200, 201, 236, 200, 201, 237, 200, 201, 238, 200, 201, 239, 200, 201, 240, 200, 201, 241, 200, 201, 242, 200, 201, 243, 200, 201, 244, 200, 201, 67, 200, 201, 216, 200, 247, 0, 248, 0, 249, 0, 250, 0, 251, 0, 252, 0, 253, 0, 78, 0, 70, 0, 27, 0, 256, 257, 256, 0, 260, 259, 257, 259, 258, 257, 258, 260, 259, 257, 259, 258, 260, 260, 2, 11, 13, 27, 30, 33, 35, 68, 69, 126, 142, 254, 255, 256, 260, 0, 43, 262, 283, 42, 43, 263, 42, 43, 264, 42, 265, 43, 42, 266, 43, 42, 43, 267, 42, 43, 268, 42, 43, 269, 42, 43, 270, 42, 43, 271, 67, 42, 43, 272, 42, 273, 43, 42, 274, 43, 42, 43, 275, 42, 43, 276, 42, 43, 277, 42, 43, 278, 42, 43, 279, 42, 43, 280, 42, 43, 281, 42, 43, 282, 42, 43, 66, 42, 43, 284, 42, 43, 285, 42, 286, 43, 42, 287, 43, 42, 43, 288, 42, 43, 289, 42, 43, 282, 42, 291, 0, 292, 0, 293, 0, 294, 0, 295, 0, 296, 0, 297, 0, 298, 0, 299, 0, 300, 0, 301, 0, 302, 0, 303, 0, 40, 0, 0, 0 ] class << self attr_accessor :_lexer_trans_actions private :_lexer_trans_actions, :_lexer_trans_actions= end self._lexer_trans_actions = [ 45, 0, 3, 1, 0, 23, 1, 23, 23, 23, 23, 23, 23, 23, 23, 29, 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, 45, 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, 0, 37, 37, 48, 97, 17, 0, 37, 37, 37, 37, 0, 21, 105, 21, 21, 42, 21, 0, 45, 0, 1, 0, 37, 0, 37, 0, 37, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 122, 48, 45, 0, 45, 0, 60, 27, 60, 75, 75, 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, 0, 0, 45, 9, 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, 113, 25, 51, 48, 25, 54, 48, 54, 54, 54, 54, 54, 54, 54, 54, 57, 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, 122, 48, 45, 0, 45, 0, 63, 27, 75, 63, 75, 75, 75, 75, 75, 75, 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, 0, 0, 45, 11, 0, 45, 11, 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, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 11, 0, 45, 0, 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, 11, 0, 45, 0, 0, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 122, 48, 45, 0, 45, 0, 72, 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, 122, 48, 45, 0, 45, 0, 69, 27, 75, 69, 75, 75, 75, 75, 75, 75, 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, 0, 0, 45, 15, 0, 45, 15, 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, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 15, 0, 45, 0, 0, 122, 48, 45, 0, 45, 0, 66, 27, 75, 66, 75, 75, 75, 75, 75, 75, 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, 0, 0, 45, 13, 0, 45, 13, 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, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 13, 0, 45, 0, 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, 13, 0, 45, 0, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 0, 0, 37, 45, 31, 78, 31, 31, 33, 0, 45, 0, 33, 0, 0, 45, 0, 84, 81, 35, 87, 81, 87, 87, 87, 87, 87, 87, 87, 87, 90, 0, 37, 45, 0, 0, 0, 45, 0, 0, 45, 0, 0, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 9, 0, 45, 0, 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, 0, 45, 0, 0, 45, 0, 45, 0, 0, 45, 0, 0, 45, 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, 37 ] class << self attr_accessor :lexer_start end self.lexer_start = 1; class << self attr_accessor :lexer_first_final end self.lexer_first_final = 304; 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/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 633 "lib/gherkin/rb_lexer/lv.rb" begin p ||= 0 pe ||= data.length cs = lexer_start end # line 140 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" # line 642 "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 9 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" begin @content_start = p @current_line = @line_number end # line 9 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" when 1 then # line 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" begin @current_line = @line_number @start_col = p - @last_newline end # line 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" when 2 then # line 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" begin @content_start = p end # line 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" when 3 then # line 23 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.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/lv.rb.rl" when 4 then # line 28 "/Users/aslakhellesoy/scm/gherkin/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 28 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" when 5 then # line 34 "/Users/aslakhellesoy/scm/gherkin/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 34 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" when 6 then # line 40 "/Users/aslakhellesoy/scm/gherkin/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 40 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" when 7 then # line 46 "/Users/aslakhellesoy/scm/gherkin/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 46 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" when 8 then # line 52 "/Users/aslakhellesoy/scm/gherkin/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 52 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" when 9 then # line 58 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.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/lv.rb.rl" when 10 then # line 63 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.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/lv.rb.rl" when 11 then # line 69 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.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/lv.rb.rl" when 12 then # line 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" begin @line_number += 1 end # line 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" when 13 then # line 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" begin @last_newline = p + 1 end # line 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" when 14 then # line 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" begin @keyword_start ||= p end # line 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" when 15 then # line 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.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/lv.rb.rl" when 16 then # line 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" begin @next_keyword_start = p end # line 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" when 17 then # line 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" begin p = p - 1 current_row = [] @current_line = @line_number end # line 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" when 18 then # line 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" begin @content_start = p end # line 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" when 19 then # line 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.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/lv.rb.rl" when 20 then # line 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" begin @listener.row(current_row, @current_line) end # line 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.rb.rl" when 21 then # line 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.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/lv.rb.rl" # line 903 "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 21 then # line 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.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/lv.rb.rl" # line 943 "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 141 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/lv.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