# line 1 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" require 'gherkin/lexer/i18n_lexer' module Gherkin module RbLexer class Sv #:nodoc: # line 127 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" def initialize(listener) @listener = listener # line 16 "lib/gherkin/rb_lexer/sv.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, 8, 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, 19, 20, 21, 39, 40, 41, 45, 50, 55, 60, 65, 69, 73, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 94, 99, 106, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 217, 219, 221, 223, 225, 227, 229, 231, 233, 235, 237, 239, 241, 243, 245, 247, 249, 251, 253, 255, 257, 259, 261, 263, 265, 267, 269, 271, 273, 275, 277, 279, 281, 283, 285, 287, 289, 291, 293, 295, 297, 299, 301, 303, 305, 307, 309, 311, 313, 315, 317, 320, 322, 324, 326, 328, 330, 332, 334, 337, 339, 341, 343, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 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, 417, 419, 421, 423, 425, 427, 429, 431, 433, 435, 437, 439, 441, 444, 446, 448, 450, 452, 454, 456, 458, 460, 462, 464, 466, 468, 470, 472, 474, 476, 478, 480, 483, 485, 487, 488, 489, 490, 491, 492, 493, 494, 495, 502, 504, 506, 508, 510, 512, 514, 516, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 531, 532, 533, 534, 535, 536, 537, 538, 540, 541, 542, 558, 560, 562, 564, 566, 568, 570, 572, 574, 576, 578, 580, 582, 584, 586, 588, 590, 592, 594, 596, 598, 600, 602, 604, 606, 608, 610, 612, 614, 616, 618, 620, 622, 624, 626, 628, 630, 632, 634, 636, 638, 640, 642, 644, 646, 648, 650, 652, 654, 656, 658, 660, 662, 664, 666, 668, 670, 672, 675, 677, 679, 681, 683, 685, 687, 689, 692, 694, 696, 698, 699, 700, 701, 705, 711, 714, 716, 722, 740, 742, 744, 746, 748, 750, 752, 754, 756, 758, 760, 762, 764, 766, 768, 770, 772, 774, 776, 778, 781, 783, 785, 787, 789, 791, 793, 795 ] class << self attr_accessor :_lexer_trans_keys private :_lexer_trans_keys, :_lexer_trans_keys= end self._lexer_trans_keys = [ -17, 10, 32, 34, 35, 37, 42, 64, 65, 66, 69, 71, 77, 78, 79, 83, 124, 9, 13, -69, -65, 10, 32, 34, 35, 37, 42, 64, 65, 66, 69, 71, 77, 78, 79, 83, 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, 98, 115, 116, 114, 97, 107, 116, 32, 83, 99, 101, 110, 97, 114, 105, 111, 58, 10, 10, 10, 32, 35, 37, 42, 64, 69, 71, 77, 78, 79, 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, 32, 10, 32, 34, 35, 37, 42, 64, 65, 66, 69, 71, 77, 78, 79, 83, 124, 9, 13, 97, 107, 103, 114, 117, 110, 100, 58, 10, 10, 10, 32, 35, 37, 42, 64, 65, 69, 71, 77, 78, 79, 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, 32, 10, 98, 10, 115, 10, 116, 10, 114, 10, 97, 10, 107, 10, 116, 10, 32, 10, 83, 10, 99, 10, 101, 10, 110, 10, 97, 10, 114, 10, 105, 10, 111, 10, 58, 10, 103, 10, 101, 10, 110, 10, 115, 10, 107, 10, 97, 10, 112, 10, 105, 10, 118, 10, 101, 10, 116, 10, 101, 10, 110, -61, 10, -92, 10, 10, 114, 10, 99, 10, 104, -61, 10, 99, -91, 10, 10, 101, 10, 110, 10, 97, 10, 114, 10, 105, 10, 111, 10, 58, 109, 10, 97, 10, 108, 10, 108, 103, 120, 101, 110, 115, 107, 97, 112, 58, 10, 10, 10, 32, 35, 37, 64, 65, 66, 69, 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, 98, 10, 115, 10, 116, 10, 114, 10, 97, 10, 107, 10, 116, 10, 32, 10, 83, 10, 99, 10, 101, 10, 110, 10, 97, 10, 114, 10, 105, 10, 111, 10, 58, 10, 97, 10, 107, 10, 103, 10, 114, 10, 117, 10, 110, 10, 100, 10, 103, 120, 10, 101, 10, 110, 10, 115, 10, 107, 10, 97, 10, 112, 10, 101, 10, 109, 10, 112, 10, 101, 10, 108, 10, 99, 10, 101, 10, 110, 10, 97, 10, 114, 10, 105, 10, 111, 10, 58, 109, 10, 97, 10, 108, 101, 109, 112, 101, 108, 58, 10, 10, 10, 32, 35, 69, 124, 9, 13, 10, 103, 10, 101, 10, 110, 10, 115, 10, 107, 10, 97, 10, 112, 10, 58, 105, 118, 101, 116, 101, 110, -61, -92, 114, 99, 104, -61, 99, -91, 101, 110, 97, 114, 105, 111, 58, 109, 10, 10, 10, 32, 35, 37, 42, 64, 65, 66, 69, 71, 77, 78, 79, 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, 32, 10, 98, 10, 115, 10, 116, 10, 114, 10, 97, 10, 107, 10, 116, 10, 32, 10, 83, 10, 99, 10, 101, 10, 110, 10, 97, 10, 114, 10, 105, 10, 111, 10, 58, 10, 97, 10, 107, 10, 103, 10, 114, 10, 117, 10, 110, 10, 100, 10, 103, 10, 101, 10, 110, 10, 115, 10, 107, 10, 97, 10, 112, 10, 105, 10, 118, 10, 101, 10, 116, 10, 101, 10, 110, -61, 10, -92, 10, 10, 114, 10, 99, 10, 104, -61, 10, 99, -91, 10, 10, 101, 10, 110, 10, 97, 10, 114, 10, 105, 10, 111, 10, 58, 109, 10, 97, 10, 108, 10, 108, 97, 108, 108, 32, 124, 9, 13, 10, 32, 92, 124, 9, 13, 10, 92, 124, 10, 92, 10, 32, 92, 124, 9, 13, 10, 32, 34, 35, 37, 42, 64, 65, 66, 69, 71, 77, 78, 79, 83, 124, 9, 13, 10, 103, 10, 101, 10, 110, 10, 115, 10, 107, 10, 97, 10, 112, 10, 58, 10, 105, 10, 118, 10, 101, 10, 116, 10, 101, 10, 110, -61, 10, -92, 10, 10, 114, 10, 99, 10, 104, -61, 10, 99, -91, 10, 10, 101, 10, 110, 10, 97, 10, 114, 10, 105, 10, 111, 0 ] class << self attr_accessor :_lexer_single_lengths private :_lexer_single_lengths, :_lexer_single_lengths= end self._lexer_single_lengths = [ 0, 17, 1, 1, 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, 1, 1, 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, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 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, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 5, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 14, 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, 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, 3, 2, 2, 2, 1, 1, 1, 2, 4, 3, 2, 4, 16, 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, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 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 ] class << self attr_accessor :_lexer_index_offsets private :_lexer_index_offsets, :_lexer_index_offsets= end self._lexer_index_offsets = [ 0, 0, 19, 21, 23, 41, 43, 45, 49, 54, 59, 64, 69, 73, 77, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 117, 122, 129, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 186, 189, 192, 195, 198, 201, 204, 207, 210, 213, 216, 219, 222, 225, 228, 231, 249, 251, 253, 255, 257, 259, 261, 263, 265, 267, 269, 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, 359, 362, 365, 368, 371, 374, 377, 380, 383, 386, 389, 392, 395, 398, 401, 404, 407, 410, 413, 416, 419, 422, 425, 428, 431, 434, 438, 441, 444, 447, 450, 453, 456, 459, 463, 466, 469, 472, 475, 477, 479, 481, 483, 485, 487, 489, 491, 493, 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, 600, 603, 606, 609, 612, 615, 618, 622, 625, 628, 631, 634, 637, 640, 643, 646, 649, 652, 655, 658, 661, 664, 667, 670, 673, 676, 680, 683, 686, 688, 690, 692, 694, 696, 698, 700, 702, 709, 712, 715, 718, 721, 724, 727, 730, 733, 735, 737, 739, 741, 743, 745, 747, 749, 751, 753, 755, 758, 760, 762, 764, 766, 768, 770, 772, 775, 777, 779, 795, 798, 801, 804, 807, 810, 813, 816, 819, 822, 825, 828, 831, 834, 837, 840, 843, 846, 849, 852, 855, 858, 861, 864, 867, 870, 873, 876, 879, 882, 885, 888, 891, 894, 897, 900, 903, 906, 909, 912, 915, 918, 921, 924, 927, 930, 933, 936, 939, 942, 945, 948, 951, 954, 957, 960, 963, 966, 970, 973, 976, 979, 982, 985, 988, 991, 995, 998, 1001, 1004, 1006, 1008, 1010, 1014, 1020, 1024, 1027, 1033, 1051, 1054, 1057, 1060, 1063, 1066, 1069, 1072, 1075, 1078, 1081, 1084, 1087, 1090, 1093, 1096, 1099, 1102, 1105, 1108, 1112, 1115, 1118, 1121, 1124, 1127, 1130, 1133 ] class << self attr_accessor :_lexer_trans_targs private :_lexer_trans_targs, :_lexer_trans_targs= end self._lexer_trans_targs = [ 2, 4, 4, 5, 14, 16, 30, 33, 36, 72, 145, 233, 237, 239, 242, 244, 328, 4, 0, 3, 0, 4, 0, 4, 4, 5, 14, 16, 30, 33, 36, 72, 145, 233, 237, 239, 242, 244, 328, 4, 0, 6, 0, 7, 0, 8, 7, 7, 0, 9, 9, 10, 9, 9, 9, 9, 10, 9, 9, 9, 9, 11, 9, 9, 9, 9, 12, 9, 9, 4, 13, 13, 0, 4, 13, 13, 0, 4, 15, 14, 4, 0, 17, 0, 18, 0, 19, 0, 20, 0, 21, 0, 22, 0, 23, 0, 24, 0, 25, 0, 26, 0, 27, 0, 28, 0, 29, 0, 361, 0, 31, 0, 0, 32, 4, 15, 32, 0, 0, 0, 0, 34, 35, 4, 35, 35, 33, 34, 34, 4, 35, 33, 35, 0, 37, 0, 38, 0, 39, 0, 40, 0, 41, 0, 42, 0, 43, 0, 44, 0, 45, 0, 46, 0, 47, 0, 48, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 55, 54, 55, 54, 55, 55, 4, 56, 70, 4, 334, 342, 346, 348, 351, 353, 55, 54, 55, 57, 54, 55, 58, 54, 55, 59, 54, 55, 60, 54, 55, 61, 54, 55, 62, 54, 55, 63, 54, 55, 64, 54, 55, 65, 54, 55, 66, 54, 55, 67, 54, 55, 68, 54, 55, 69, 54, 55, 4, 54, 55, 71, 54, 4, 4, 5, 14, 16, 30, 33, 36, 72, 145, 233, 237, 239, 242, 244, 328, 4, 0, 73, 0, 74, 0, 75, 0, 76, 0, 77, 0, 78, 0, 79, 0, 80, 0, 82, 81, 82, 81, 82, 82, 4, 83, 97, 4, 98, 115, 122, 126, 128, 131, 133, 82, 81, 82, 84, 81, 82, 85, 81, 82, 86, 81, 82, 87, 81, 82, 88, 81, 82, 89, 81, 82, 90, 81, 82, 91, 81, 82, 92, 81, 82, 93, 81, 82, 94, 81, 82, 95, 81, 82, 96, 81, 82, 4, 81, 82, 71, 81, 82, 99, 81, 82, 100, 81, 82, 101, 81, 82, 102, 81, 82, 103, 81, 82, 104, 81, 82, 105, 81, 82, 106, 81, 82, 107, 81, 82, 108, 81, 82, 109, 81, 82, 110, 81, 82, 111, 81, 82, 112, 81, 82, 113, 81, 82, 114, 81, 82, 71, 81, 82, 116, 81, 82, 117, 81, 82, 118, 81, 82, 119, 81, 82, 120, 81, 82, 121, 81, 82, 114, 81, 82, 123, 81, 82, 124, 81, 82, 125, 81, 82, 97, 81, 82, 127, 81, 82, 97, 81, 129, 82, 81, 130, 82, 81, 82, 97, 81, 82, 132, 81, 82, 97, 81, 134, 82, 135, 81, 97, 82, 81, 82, 136, 81, 82, 137, 81, 82, 138, 81, 82, 139, 81, 82, 140, 81, 82, 141, 81, 82, 71, 142, 81, 82, 143, 81, 82, 144, 81, 82, 114, 81, 146, 216, 0, 147, 0, 148, 0, 149, 0, 150, 0, 151, 0, 152, 0, 153, 0, 155, 154, 155, 154, 155, 155, 4, 156, 4, 170, 187, 194, 206, 155, 154, 155, 157, 154, 155, 158, 154, 155, 159, 154, 155, 160, 154, 155, 161, 154, 155, 162, 154, 155, 163, 154, 155, 164, 154, 155, 165, 154, 155, 166, 154, 155, 167, 154, 155, 168, 154, 155, 169, 154, 155, 4, 154, 155, 171, 154, 155, 172, 154, 155, 173, 154, 155, 174, 154, 155, 175, 154, 155, 176, 154, 155, 177, 154, 155, 178, 154, 155, 179, 154, 155, 180, 154, 155, 181, 154, 155, 182, 154, 155, 183, 154, 155, 184, 154, 155, 185, 154, 155, 186, 154, 155, 71, 154, 155, 188, 154, 155, 189, 154, 155, 190, 154, 155, 191, 154, 155, 192, 154, 155, 193, 154, 155, 186, 154, 155, 195, 201, 154, 155, 196, 154, 155, 197, 154, 155, 198, 154, 155, 199, 154, 155, 200, 154, 155, 186, 154, 155, 202, 154, 155, 203, 154, 155, 204, 154, 155, 205, 154, 155, 186, 154, 155, 207, 154, 155, 208, 154, 155, 209, 154, 155, 210, 154, 155, 211, 154, 155, 212, 154, 155, 213, 154, 155, 71, 214, 154, 155, 215, 154, 155, 205, 154, 217, 0, 218, 0, 219, 0, 220, 0, 221, 0, 222, 0, 224, 223, 224, 223, 224, 224, 4, 225, 4, 224, 223, 224, 226, 223, 224, 227, 223, 224, 228, 223, 224, 229, 223, 224, 230, 223, 224, 231, 223, 224, 232, 223, 224, 71, 223, 234, 0, 235, 0, 236, 0, 30, 0, 238, 0, 30, 0, 240, 0, 241, 0, 30, 0, 243, 0, 30, 0, 245, 246, 0, 30, 0, 247, 0, 248, 0, 249, 0, 250, 0, 251, 0, 252, 0, 253, 325, 0, 255, 254, 255, 254, 255, 255, 4, 256, 270, 4, 271, 288, 295, 302, 306, 308, 311, 313, 255, 254, 255, 257, 254, 255, 258, 254, 255, 259, 254, 255, 260, 254, 255, 261, 254, 255, 262, 254, 255, 263, 254, 255, 264, 254, 255, 265, 254, 255, 266, 254, 255, 267, 254, 255, 268, 254, 255, 269, 254, 255, 4, 254, 255, 71, 254, 255, 272, 254, 255, 273, 254, 255, 274, 254, 255, 275, 254, 255, 276, 254, 255, 277, 254, 255, 278, 254, 255, 279, 254, 255, 280, 254, 255, 281, 254, 255, 282, 254, 255, 283, 254, 255, 284, 254, 255, 285, 254, 255, 286, 254, 255, 287, 254, 255, 71, 254, 255, 289, 254, 255, 290, 254, 255, 291, 254, 255, 292, 254, 255, 293, 254, 255, 294, 254, 255, 287, 254, 255, 296, 254, 255, 297, 254, 255, 298, 254, 255, 299, 254, 255, 300, 254, 255, 301, 254, 255, 287, 254, 255, 303, 254, 255, 304, 254, 255, 305, 254, 255, 270, 254, 255, 307, 254, 255, 270, 254, 309, 255, 254, 310, 255, 254, 255, 270, 254, 255, 312, 254, 255, 270, 254, 314, 255, 315, 254, 270, 255, 254, 255, 316, 254, 255, 317, 254, 255, 318, 254, 255, 319, 254, 255, 320, 254, 255, 321, 254, 255, 71, 322, 254, 255, 323, 254, 255, 324, 254, 255, 287, 254, 326, 0, 327, 0, 52, 0, 328, 329, 328, 0, 333, 332, 331, 329, 332, 330, 0, 331, 329, 330, 0, 331, 330, 333, 332, 331, 329, 332, 330, 333, 333, 5, 14, 16, 30, 33, 36, 72, 145, 233, 237, 239, 242, 244, 328, 333, 0, 55, 335, 54, 55, 336, 54, 55, 337, 54, 55, 338, 54, 55, 339, 54, 55, 340, 54, 55, 341, 54, 55, 71, 54, 55, 343, 54, 55, 344, 54, 55, 345, 54, 55, 70, 54, 55, 347, 54, 55, 70, 54, 349, 55, 54, 350, 55, 54, 55, 70, 54, 55, 352, 54, 55, 70, 54, 354, 55, 355, 54, 70, 55, 54, 55, 356, 54, 55, 357, 54, 55, 358, 54, 55, 359, 54, 55, 360, 54, 55, 341, 54, 0, 0 ] class << self attr_accessor :_lexer_trans_actions private :_lexer_trans_actions, :_lexer_trans_actions= end self._lexer_trans_actions = [ 0, 47, 0, 3, 1, 0, 25, 1, 25, 25, 25, 25, 25, 25, 25, 25, 31, 0, 39, 0, 39, 0, 39, 47, 0, 3, 1, 0, 25, 1, 25, 25, 25, 25, 25, 25, 25, 25, 31, 0, 39, 0, 39, 0, 39, 47, 0, 0, 39, 119, 41, 41, 41, 5, 111, 29, 29, 29, 0, 111, 29, 29, 29, 0, 111, 29, 0, 29, 0, 95, 7, 7, 39, 47, 0, 0, 39, 103, 21, 0, 47, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 39, 50, 99, 19, 0, 39, 39, 39, 39, 0, 23, 107, 23, 23, 44, 23, 0, 47, 0, 1, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 124, 50, 47, 0, 47, 0, 71, 29, 77, 71, 77, 77, 77, 77, 77, 77, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 15, 0, 47, 15, 0, 115, 27, 53, 50, 27, 56, 50, 56, 56, 56, 56, 56, 56, 56, 56, 59, 27, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 124, 50, 47, 0, 47, 0, 65, 29, 77, 65, 77, 77, 77, 77, 77, 77, 77, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 11, 0, 47, 11, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 11, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 0, 47, 0, 0, 47, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 0, 47, 0, 0, 0, 47, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 11, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 0, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 124, 50, 47, 0, 47, 0, 62, 29, 62, 77, 77, 77, 77, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 9, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 9, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 9, 0, 0, 47, 0, 0, 47, 0, 0, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 124, 50, 47, 0, 47, 0, 74, 77, 74, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 17, 0, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 39, 0, 0, 39, 124, 50, 47, 0, 47, 0, 68, 29, 77, 68, 77, 77, 77, 77, 77, 77, 77, 77, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 13, 0, 47, 13, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 13, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 0, 47, 0, 0, 47, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 0, 47, 0, 0, 0, 47, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 13, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 0, 39, 0, 39, 0, 39, 0, 0, 0, 39, 47, 33, 33, 80, 33, 33, 39, 0, 35, 0, 39, 0, 0, 47, 0, 0, 35, 0, 0, 47, 0, 86, 83, 37, 89, 83, 89, 89, 89, 89, 89, 89, 89, 89, 92, 0, 39, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 15, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 0, 47, 0, 0, 47, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 0, 47, 0, 0, 0, 47, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 47, 0, 0, 0, 0 ] class << self attr_accessor :_lexer_eof_actions private :_lexer_eof_actions, :_lexer_eof_actions= end self._lexer_eof_actions = [ 0, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39 ] class << self attr_accessor :lexer_start end self.lexer_start = 1; class << self attr_accessor :lexer_first_final end self.lexer_first_final = 361; 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 132 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.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 741 "lib/gherkin/rb_lexer/sv.rb" begin p ||= 0 pe ||= data.length cs = lexer_start end # line 142 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" # line 750 "lib/gherkin/rb_lexer/sv.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/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin @content_start = p @current_line = @line_number @start_col = p - @last_newline - "#{@keyword}:".length end when 1 then # line 15 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin @current_line = @line_number @start_col = p - @last_newline end when 2 then # line 20 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin @content_start = p end when 3 then # line 24 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin con = unindent(@start_col, utf8_pack(data[@content_start...@next_keyword_start-1]).sub(/(\r?\n)?([\t ])*\Z/, '').gsub(/\\"\\"\\"/, '"""')) @listener.py_string(con, @current_line) end when 4 then # line 29 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin store_keyword_content(:feature, data, p, eof) { |con| unindent(@start_col + 2, con).rstrip } p = @next_keyword_start - 1 if @next_keyword_start @next_keyword_start = nil end when 5 then # line 36 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin store_keyword_content(:background, data, p, eof) { |con| unindent(@start_col + 2, con).rstrip } p = @next_keyword_start - 1 if @next_keyword_start @next_keyword_start = nil end when 6 then # line 42 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin store_keyword_content(:scenario, data, p, eof) { |con| unindent(@start_col + 2, con).rstrip } p = @next_keyword_start - 1 if @next_keyword_start @next_keyword_start = nil end when 7 then # line 48 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin store_keyword_content(:scenario_outline, data, p, eof) { |con| unindent(@start_col + 2, con).rstrip } p = @next_keyword_start - 1 if @next_keyword_start @next_keyword_start = nil end when 8 then # line 54 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin store_keyword_content(:examples, data, p, eof) { |con| unindent(@start_col + 2, con).rstrip } p = @next_keyword_start - 1 if @next_keyword_start @next_keyword_start = nil end when 9 then # line 60 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin con = utf8_pack(data[@content_start...p]).strip @listener.step(@keyword, con, @current_line) end when 10 then # line 65 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin con = utf8_pack(data[@content_start...p]).strip @listener.comment(con, @line_number) @keyword_start = nil end when 11 then # line 71 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin con = utf8_pack(data[@content_start...p]).strip @listener.tag(con, @current_line) @keyword_start = nil end when 12 then # line 77 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin @line_number += 1 end when 13 then # line 81 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin @last_newline = p + 1 end when 14 then # line 85 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin @keyword_start ||= p end when 15 then # line 89 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin @keyword = utf8_pack(data[@keyword_start...p]).sub(/:$/,'') @keyword_start = nil end when 16 then # line 94 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin @next_keyword_start = p end when 17 then # line 98 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin p = p - 1 current_row = [] @current_line = @line_number end when 18 then # line 104 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin @content_start = p end when 19 then # line 108 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin con = utf8_pack(data[@content_start...p]).strip current_row << con.gsub(/\\\|/, "|").gsub(/\\n/, "\n").gsub(/\\\\/, "\\") end when 20 then # line 113 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin @listener.row(current_row, @current_line) end when 21 then # line 117 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin if cs < lexer_first_final content = current_line_content(data, p) raise Gherkin::Lexer::LexingError.new("Lexing error on line %d: '%s'. See http://wiki.github.com/aslakhellesoy/gherkin/lexingerror for more information." % [@line_number, content]) else @listener.eof end end # line 991 "lib/gherkin/rb_lexer/sv.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 117 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" begin if cs < lexer_first_final content = current_line_content(data, p) raise Gherkin::Lexer::LexingError.new("Lexing error on line %d: '%s'. See http://wiki.github.com/aslakhellesoy/gherkin/lexingerror for more information." % [@line_number, content]) else @listener.eof end end # line 1030 "lib/gherkin/rb_lexer/sv.rb" end # eof action switch end if _trigger_goto next end end end if _goto_level <= _out break end end end # line 143 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.rb.rl" end CRLF_RE = /\r\n/ LF_RE = /[^\r]\n/ CRLF = "\r\n" LF = "\n" def unindent(startcol, text) text.gsub(/^[\t ]{0,#{startcol}}/, "") end def store_keyword_content(event, data, p, eof) end_point = (!@next_keyword_start or (p == eof)) ? p : @next_keyword_start content = yield utf8_pack(data[@content_start...end_point]) content_lines = content.split("\n") name = content_lines.shift || "" name.strip! description = content_lines.join("\n") @listener.__send__(event, @keyword, name, description, @current_line) end def current_line_content(data, p) rest = data[@last_newline..-1] utf8_pack(rest[0..rest.index(10)||-1]).strip end def utf8_pack(array) (RUBY_VERSION =~ /^1\.9/) ? array.pack("c*").force_encoding("UTF-8") : array.pack("c*") end end end end