# line 1 "./tasks/../ragel/i18n/ar.rb.rl" require 'gherkin/core_ext/array' module Gherkin module RbLexer class Ar #:nodoc: # line 133 "./tasks/../ragel/i18n/ar.rb.rl" def initialize(listener) @listener = listener # line 16 "lib/gherkin/rb_lexer/ar.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, 12, 18, 20, 21, 22, 23, 24, 25, 26, 27, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 54, 60, 62, 64, 66, 68, 70, 72, 74, 86, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 103, 108, 113, 118, 123, 127, 131, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 152, 159, 164, 168, 173, 174, 179, 191, 193, 195, 197, 199, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 221, 223, 225, 227, 229, 231, 234, 236, 238, 240, 242, 244, 246, 248, 250, 252, 254, 256, 258, 260, 262, 264, 266, 268, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 292, 294, 296, 298, 300, 302, 304, 306, 308, 310, 312, 314, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 357, 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, 413, 415, 417, 419, 421, 423, 425, 427, 429, 431, 433, 435, 437, 439, 441, 443, 445, 447, 449, 451, 453, 455, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 492, 498, 500, 502, 504, 506, 508, 510, 512, 514, 516, 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, 574, 576, 578, 580, 582, 584, 586, 588, 590, 592, 594, 596, 598, 600, 602, 604, 606, 608, 610, 612, 614, 616, 618, 619, 620, 630, 636, 638, 640, 642, 644, 646, 648, 650, 652, 654, 656, 658, 660, 662, 664, 666, 668, 670, 672, 674, 676, 678, 680, 682, 684, 686, 688, 690, 693, 695, 697, 699, 701, 703, 705, 707, 709, 711, 713, 715, 717, 719, 721, 723, 725, 727, 731, 733, 735, 737, 739, 741, 743, 745, 747, 749, 751, 753, 755, 757, 759, 761, 763, 765, 767, 769, 771, 773, 775, 776, 777, 778, 779, 780, 781, 782, 783 ] class << self attr_accessor :_lexer_trans_keys private :_lexer_trans_keys, :_lexer_trans_keys= end self._lexer_trans_keys = [ -40, -39, 10, 32, 34, 35, 37, 42, 64, 124, 9, 13, -89, -88, -85, -82, -77, -71, -40, -39, -80, -40, -89, -39, -117, 32, 10, 10, 13, -124, -123, -40, -82, -39, -124, -39, -127, -39, -118, -40, -87, 58, 10, 10, -40, -39, 10, 32, 35, 37, 42, 64, 9, 13, -89, -88, -85, -77, -71, 10, -40, 10, -80, 10, -40, 10, -89, 10, -39, 10, -117, 10, 10, 32, -40, -39, 10, 32, 34, 35, 37, 42, 64, 124, 9, 13, -124, -123, -120, -39, -125, -39, -122, -40, -86, -39, -119, 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, 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, -40, -39, 10, 32, 34, 35, 37, 42, 64, 124, 9, 13, -39, 10, -127, 10, -40, 10, -79, 10, -40, 10, -74, 10, -39, 10, -123, 10, -39, 10, -118, 10, -39, 10, -122, 10, -40, 10, -89, 10, -40, 10, -79, 10, -39, 10, -118, 10, -39, 10, -120, 10, 10, 32, 58, -39, 10, -123, 10, -40, 10, -82, 10, -40, 10, -73, 10, -40, 10, -73, 10, 10, 58, -39, 10, -122, 10, -40, 10, -81, 10, -39, 10, -123, 10, -40, 10, -89, 10, -124, -123, -120, 10, -39, 10, -125, 10, -39, 10, -122, 10, -40, 10, -86, 10, -39, 10, -119, 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, -40, -85, -39, -124, -40, -87, 58, 10, 10, 10, 32, 124, 9, 13, -39, -127, -40, -79, -40, -74, -39, -123, -40, -89, -40, -75, -39, -118, -40, -87, 58, 10, 10, -40, 10, 32, 35, 37, 64, 9, 13, -89, -77, 10, -39, 10, -124, 10, -40, 10, -82, 10, -39, 10, -124, 10, -39, 10, -127, 10, -39, 10, -118, 10, -40, 10, -87, 10, 10, 58, -39, 10, -118, 10, -39, 10, -122, 10, -40, 10, -89, 10, -40, 10, -79, 10, -39, 10, -118, 10, -39, 10, -120, 10, 10, 32, 58, -39, 10, -123, 10, -40, 10, -82, 10, -40, 10, -73, 10, -40, 10, -73, 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, -39, -118, -39, -122, -40, -89, -40, -79, -39, -118, -39, -120, 32, 58, -39, -123, -40, -82, -40, -73, -40, -73, 58, 10, 10, -40, -39, 10, 32, 35, 37, 42, 64, 9, 13, -89, -88, -85, -77, -71, 10, -40, 10, -80, 10, -40, 10, -89, 10, -39, 10, -117, 10, 10, 32, -39, 10, -127, 10, -40, 10, -79, 10, -40, 10, -74, 10, -39, 10, -123, 10, -39, 10, -118, 10, -39, 10, -122, 10, -40, 10, -89, 10, -40, 10, -79, 10, -39, 10, -118, 10, -39, 10, -120, 10, 10, 58, -39, 10, -122, 10, -40, 10, -81, 10, -39, 10, -123, 10, -40, 10, -89, 10, -124, -123, -120, 10, -39, 10, -125, 10, -39, 10, -122, 10, -40, 10, -86, 10, -39, 10, -119, 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, 10, -40, -39, 10, 32, 35, 37, 42, 64, 9, 13, -89, -88, -85, -77, -71, 10, -40, 10, -80, 10, -40, 10, -89, 10, -39, 10, -117, 10, 10, 32, -39, 10, -127, 10, -40, 10, -79, 10, -40, 10, -74, 10, -39, 10, -123, 10, -39, 10, -118, 10, -39, 10, -122, 10, -40, 10, -89, 10, -40, 10, -79, 10, -39, 10, -118, 10, -39, 10, -120, 10, 10, 32, 58, -39, 10, -123, 10, -40, 10, -82, 10, -40, 10, -73, 10, -40, 10, -73, 10, 10, 58, -39, 10, -122, 10, -40, 10, -81, 10, -39, 10, -123, 10, -40, 10, -89, 10, -124, -123, -120, 10, -39, 10, -125, 10, -39, 10, -122, 10, -40, 10, -86, 10, -39, 10, -119, 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, -39, -122, -40, -81, -39, -123, -40, -89, 0 ] class << self attr_accessor :_lexer_single_lengths private :_lexer_single_lengths, :_lexer_single_lengths= end self._lexer_single_lengths = [ 0, 10, 6, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 6, 2, 2, 2, 2, 2, 2, 2, 10, 3, 1, 1, 1, 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, 3, 5, 3, 2, 3, 1, 3, 10, 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, 4, 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, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 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, 3, 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, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 6, 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, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 8, 6, 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, 4, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 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, 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, 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, 12, 19, 22, 24, 26, 28, 30, 32, 34, 36, 39, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 78, 85, 88, 91, 94, 97, 100, 103, 106, 118, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 146, 151, 156, 161, 166, 170, 174, 177, 179, 181, 183, 185, 187, 189, 191, 193, 195, 197, 199, 201, 203, 205, 210, 217, 222, 226, 231, 233, 238, 250, 253, 256, 259, 262, 265, 268, 271, 274, 277, 280, 283, 286, 289, 292, 295, 298, 301, 304, 307, 310, 314, 317, 320, 323, 326, 329, 332, 335, 338, 341, 344, 347, 350, 353, 356, 359, 362, 365, 370, 373, 376, 379, 382, 385, 388, 391, 394, 397, 400, 403, 406, 409, 412, 415, 418, 421, 424, 427, 430, 433, 436, 438, 440, 442, 444, 446, 448, 450, 452, 454, 459, 461, 463, 465, 467, 469, 471, 473, 475, 477, 479, 481, 483, 485, 487, 489, 491, 493, 495, 497, 505, 509, 512, 515, 518, 521, 524, 527, 530, 533, 536, 539, 542, 545, 548, 551, 554, 557, 560, 563, 566, 569, 572, 575, 578, 581, 584, 588, 591, 594, 597, 600, 603, 606, 609, 612, 615, 618, 621, 624, 627, 630, 633, 636, 639, 642, 645, 648, 651, 654, 656, 658, 660, 662, 664, 666, 668, 670, 672, 674, 676, 678, 681, 683, 685, 687, 689, 691, 693, 695, 697, 699, 701, 703, 713, 720, 723, 726, 729, 732, 735, 738, 741, 744, 747, 750, 753, 756, 759, 762, 765, 768, 771, 774, 777, 780, 783, 786, 789, 792, 795, 798, 801, 804, 807, 810, 813, 816, 819, 822, 825, 828, 833, 836, 839, 842, 845, 848, 851, 854, 857, 860, 863, 866, 869, 872, 875, 878, 881, 884, 887, 890, 893, 896, 899, 901, 903, 913, 920, 923, 926, 929, 932, 935, 938, 941, 944, 947, 950, 953, 956, 959, 962, 965, 968, 971, 974, 977, 980, 983, 986, 989, 992, 995, 998, 1001, 1005, 1008, 1011, 1014, 1017, 1020, 1023, 1026, 1029, 1032, 1035, 1038, 1041, 1044, 1047, 1050, 1053, 1056, 1061, 1064, 1067, 1070, 1073, 1076, 1079, 1082, 1085, 1088, 1091, 1094, 1097, 1100, 1103, 1106, 1109, 1112, 1115, 1118, 1121, 1124, 1127, 1129, 1131, 1133, 1135, 1137, 1139, 1141, 1143 ] class << self attr_accessor :_lexer_trans_targs private :_lexer_trans_targs, :_lexer_trans_targs= end self._lexer_trans_targs = [ 2, 36, 1, 1, 45, 54, 55, 9, 69, 72, 1, 0, 3, 148, 154, 156, 217, 374, 0, 4, 12, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 0, 11, 1, 11, 11, 13, 138, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0, 21, 0, 22, 0, 23, 0, 24, 0, 26, 25, 26, 25, 27, 115, 26, 26, 1, 124, 34, 1, 26, 25, 28, 77, 83, 85, 107, 26, 25, 29, 26, 25, 30, 26, 25, 31, 26, 25, 32, 26, 25, 33, 26, 25, 34, 26, 25, 26, 35, 25, 2, 36, 1, 1, 45, 54, 55, 9, 69, 72, 1, 0, 37, 41, 9, 0, 38, 0, 39, 0, 40, 0, 9, 0, 42, 0, 43, 0, 44, 0, 9, 0, 46, 0, 47, 0, 48, 47, 47, 0, 49, 49, 50, 49, 49, 49, 49, 50, 49, 49, 49, 49, 51, 49, 49, 49, 49, 52, 49, 49, 1, 53, 53, 0, 1, 53, 53, 0, 1, 54, 54, 56, 0, 57, 0, 58, 0, 59, 0, 60, 0, 61, 0, 62, 0, 63, 0, 64, 0, 65, 0, 66, 0, 67, 0, 68, 0, 382, 0, 0, 0, 0, 0, 70, 71, 1, 71, 71, 69, 70, 70, 1, 71, 69, 71, 0, 72, 73, 72, 0, 76, 75, 73, 75, 74, 73, 74, 76, 75, 73, 75, 74, 2, 36, 76, 76, 45, 54, 55, 9, 69, 73, 76, 0, 78, 26, 25, 79, 26, 25, 80, 26, 25, 81, 26, 25, 82, 26, 25, 34, 26, 25, 84, 26, 25, 34, 26, 25, 86, 26, 25, 87, 26, 25, 88, 26, 25, 89, 26, 25, 90, 26, 25, 91, 26, 25, 92, 26, 25, 93, 26, 25, 94, 26, 25, 95, 26, 25, 96, 26, 25, 97, 26, 25, 26, 98, 35, 25, 99, 26, 25, 100, 26, 25, 101, 26, 25, 102, 26, 25, 103, 26, 25, 104, 26, 25, 105, 26, 25, 106, 26, 25, 26, 35, 25, 108, 26, 25, 109, 26, 25, 110, 26, 25, 111, 26, 25, 112, 26, 25, 113, 26, 25, 114, 26, 25, 34, 26, 25, 116, 120, 34, 26, 25, 117, 26, 25, 118, 26, 25, 119, 26, 25, 34, 26, 25, 121, 26, 25, 122, 26, 25, 123, 26, 25, 34, 26, 25, 26, 125, 25, 26, 126, 25, 26, 127, 25, 26, 128, 25, 26, 129, 25, 26, 130, 25, 26, 131, 25, 26, 132, 25, 26, 133, 25, 26, 134, 25, 26, 135, 25, 26, 136, 25, 26, 137, 25, 26, 1, 25, 139, 0, 140, 0, 141, 0, 142, 0, 143, 0, 144, 0, 145, 0, 147, 146, 147, 146, 147, 147, 1, 147, 146, 149, 0, 150, 0, 151, 0, 152, 0, 153, 0, 9, 0, 155, 0, 9, 0, 157, 0, 158, 0, 159, 0, 160, 0, 161, 0, 162, 0, 163, 0, 164, 0, 165, 0, 167, 166, 167, 166, 168, 167, 167, 1, 203, 1, 167, 166, 169, 182, 167, 166, 170, 167, 166, 171, 167, 166, 172, 167, 166, 173, 167, 166, 174, 167, 166, 175, 167, 166, 176, 167, 166, 177, 167, 166, 178, 167, 166, 179, 167, 166, 180, 167, 166, 181, 167, 166, 167, 35, 166, 183, 167, 166, 184, 167, 166, 185, 167, 166, 186, 167, 166, 187, 167, 166, 188, 167, 166, 189, 167, 166, 190, 167, 166, 191, 167, 166, 192, 167, 166, 193, 167, 166, 194, 167, 166, 167, 195, 35, 166, 196, 167, 166, 197, 167, 166, 198, 167, 166, 199, 167, 166, 200, 167, 166, 201, 167, 166, 202, 167, 166, 181, 167, 166, 167, 204, 166, 167, 205, 166, 167, 206, 166, 167, 207, 166, 167, 208, 166, 167, 209, 166, 167, 210, 166, 167, 211, 166, 167, 212, 166, 167, 213, 166, 167, 214, 166, 167, 215, 166, 167, 216, 166, 167, 1, 166, 218, 0, 219, 0, 220, 0, 221, 0, 222, 0, 223, 0, 224, 0, 225, 0, 226, 0, 227, 0, 228, 0, 229, 0, 230, 302, 0, 231, 0, 232, 0, 233, 0, 234, 0, 235, 0, 236, 0, 237, 0, 238, 0, 239, 0, 241, 240, 241, 240, 242, 279, 241, 241, 1, 288, 249, 1, 241, 240, 243, 250, 256, 258, 271, 241, 240, 244, 241, 240, 245, 241, 240, 246, 241, 240, 247, 241, 240, 248, 241, 240, 249, 241, 240, 241, 35, 240, 251, 241, 240, 252, 241, 240, 253, 241, 240, 254, 241, 240, 255, 241, 240, 249, 241, 240, 257, 241, 240, 249, 241, 240, 259, 241, 240, 260, 241, 240, 261, 241, 240, 262, 241, 240, 263, 241, 240, 264, 241, 240, 265, 241, 240, 266, 241, 240, 267, 241, 240, 268, 241, 240, 269, 241, 240, 270, 241, 240, 241, 35, 240, 272, 241, 240, 273, 241, 240, 274, 241, 240, 275, 241, 240, 276, 241, 240, 277, 241, 240, 278, 241, 240, 249, 241, 240, 280, 284, 249, 241, 240, 281, 241, 240, 282, 241, 240, 283, 241, 240, 249, 241, 240, 285, 241, 240, 286, 241, 240, 287, 241, 240, 249, 241, 240, 241, 289, 240, 241, 290, 240, 241, 291, 240, 241, 292, 240, 241, 293, 240, 241, 294, 240, 241, 295, 240, 241, 296, 240, 241, 297, 240, 241, 298, 240, 241, 299, 240, 241, 300, 240, 241, 301, 240, 241, 1, 240, 304, 303, 304, 303, 305, 351, 304, 304, 1, 360, 312, 1, 304, 303, 306, 313, 319, 321, 343, 304, 303, 307, 304, 303, 308, 304, 303, 309, 304, 303, 310, 304, 303, 311, 304, 303, 312, 304, 303, 304, 35, 303, 314, 304, 303, 315, 304, 303, 316, 304, 303, 317, 304, 303, 318, 304, 303, 312, 304, 303, 320, 304, 303, 312, 304, 303, 322, 304, 303, 323, 304, 303, 324, 304, 303, 325, 304, 303, 326, 304, 303, 327, 304, 303, 328, 304, 303, 329, 304, 303, 330, 304, 303, 331, 304, 303, 332, 304, 303, 333, 304, 303, 304, 334, 35, 303, 335, 304, 303, 336, 304, 303, 337, 304, 303, 338, 304, 303, 339, 304, 303, 340, 304, 303, 341, 304, 303, 342, 304, 303, 304, 35, 303, 344, 304, 303, 345, 304, 303, 346, 304, 303, 347, 304, 303, 348, 304, 303, 349, 304, 303, 350, 304, 303, 312, 304, 303, 352, 356, 312, 304, 303, 353, 304, 303, 354, 304, 303, 355, 304, 303, 312, 304, 303, 357, 304, 303, 358, 304, 303, 359, 304, 303, 312, 304, 303, 304, 361, 303, 304, 362, 303, 304, 363, 303, 304, 364, 303, 304, 365, 303, 304, 366, 303, 304, 367, 303, 304, 368, 303, 304, 369, 303, 304, 370, 303, 304, 371, 303, 304, 372, 303, 304, 373, 303, 304, 1, 303, 375, 0, 376, 0, 377, 0, 378, 0, 379, 0, 380, 0, 381, 0, 9, 0, 0, 0 ] class << self attr_accessor :_lexer_trans_actions private :_lexer_trans_actions, :_lexer_trans_actions= end self._lexer_trans_actions = [ 23, 23, 42, 0, 3, 1, 0, 23, 0, 29, 0, 37, 0, 0, 0, 0, 0, 0, 37, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 37, 45, 88, 17, 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, 125, 45, 42, 0, 72, 72, 42, 0, 60, 27, 72, 60, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 42, 11, 0, 51, 51, 104, 25, 48, 45, 25, 51, 25, 54, 25, 37, 0, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 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, 37, 37, 37, 37, 1, 21, 96, 21, 21, 21, 21, 0, 42, 0, 0, 0, 37, 0, 31, 0, 37, 42, 33, 75, 33, 33, 35, 0, 42, 0, 35, 0, 0, 116, 116, 42, 0, 112, 108, 81, 116, 81, 78, 0, 37, 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, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 42, 0, 11, 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, 42, 11, 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, 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, 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, 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, 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, 72, 42, 0, 57, 27, 57, 0, 0, 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, 42, 9, 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, 42, 0, 9, 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, 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, 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, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 125, 45, 42, 0, 72, 72, 42, 0, 66, 27, 72, 66, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 42, 15, 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, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 42, 15, 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, 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, 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, 125, 45, 42, 0, 72, 72, 42, 0, 63, 27, 72, 63, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 42, 13, 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, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 42, 0, 13, 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, 42, 13, 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, 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, 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, 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, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 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 = 382; 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 138 "./tasks/../ragel/i18n/ar.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 753 "lib/gherkin/rb_lexer/ar.rb" begin p ||= 0 pe ||= data.length cs = lexer_start end # line 148 "./tasks/../ragel/i18n/ar.rb.rl" # line 762 "lib/gherkin/rb_lexer/ar.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 "./tasks/../ragel/i18n/ar.rb.rl" begin @content_start = p @current_line = @line_number end # line 9 "./tasks/../ragel/i18n/ar.rb.rl" when 1 then # line 14 "./tasks/../ragel/i18n/ar.rb.rl" begin @current_line = @line_number @start_col = p - @last_newline end # line 14 "./tasks/../ragel/i18n/ar.rb.rl" when 2 then # line 19 "./tasks/../ragel/i18n/ar.rb.rl" begin @content_start = p end # line 19 "./tasks/../ragel/i18n/ar.rb.rl" when 3 then # line 23 "./tasks/../ragel/i18n/ar.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 "./tasks/../ragel/i18n/ar.rb.rl" when 4 then # line 28 "./tasks/../ragel/i18n/ar.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 "./tasks/../ragel/i18n/ar.rb.rl" when 5 then # line 34 "./tasks/../ragel/i18n/ar.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 "./tasks/../ragel/i18n/ar.rb.rl" when 6 then # line 40 "./tasks/../ragel/i18n/ar.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 "./tasks/../ragel/i18n/ar.rb.rl" when 7 then # line 46 "./tasks/../ragel/i18n/ar.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 "./tasks/../ragel/i18n/ar.rb.rl" when 8 then # line 52 "./tasks/../ragel/i18n/ar.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 "./tasks/../ragel/i18n/ar.rb.rl" when 9 then # line 58 "./tasks/../ragel/i18n/ar.rb.rl" begin con = data[@content_start...p].utf8_pack("c*").strip @listener.step(@keyword, con, @current_line) end # line 58 "./tasks/../ragel/i18n/ar.rb.rl" when 10 then # line 63 "./tasks/../ragel/i18n/ar.rb.rl" begin con = data[@content_start...p].utf8_pack("c*").strip @listener.comment(con, @line_number) @keyword_start = nil end # line 63 "./tasks/../ragel/i18n/ar.rb.rl" when 11 then # line 69 "./tasks/../ragel/i18n/ar.rb.rl" begin con = data[@content_start...p].utf8_pack("c*").strip @listener.tag(con, @current_line) @keyword_start = nil end # line 69 "./tasks/../ragel/i18n/ar.rb.rl" when 12 then # line 75 "./tasks/../ragel/i18n/ar.rb.rl" begin @line_number += 1 end # line 75 "./tasks/../ragel/i18n/ar.rb.rl" when 13 then # line 79 "./tasks/../ragel/i18n/ar.rb.rl" begin @last_newline = p + 1 end # line 79 "./tasks/../ragel/i18n/ar.rb.rl" when 14 then # line 83 "./tasks/../ragel/i18n/ar.rb.rl" begin @keyword_start ||= p end # line 83 "./tasks/../ragel/i18n/ar.rb.rl" when 15 then # line 87 "./tasks/../ragel/i18n/ar.rb.rl" begin @keyword = data[@keyword_start...p].utf8_pack("c*").sub(/:$/,'').strip @keyword_start = nil end # line 87 "./tasks/../ragel/i18n/ar.rb.rl" when 16 then # line 92 "./tasks/../ragel/i18n/ar.rb.rl" begin @next_keyword_start = p end # line 92 "./tasks/../ragel/i18n/ar.rb.rl" when 17 then # line 96 "./tasks/../ragel/i18n/ar.rb.rl" begin p = p - 1 @rows = [] @current_line = @line_number end # line 96 "./tasks/../ragel/i18n/ar.rb.rl" when 18 then # line 102 "./tasks/../ragel/i18n/ar.rb.rl" begin current_row = [] end # line 102 "./tasks/../ragel/i18n/ar.rb.rl" when 19 then # line 106 "./tasks/../ragel/i18n/ar.rb.rl" begin @content_start = p end # line 106 "./tasks/../ragel/i18n/ar.rb.rl" when 20 then # line 110 "./tasks/../ragel/i18n/ar.rb.rl" begin con = data[@content_start...p].utf8_pack("c*").strip current_row << con end # line 110 "./tasks/../ragel/i18n/ar.rb.rl" when 21 then # line 115 "./tasks/../ragel/i18n/ar.rb.rl" begin @rows << current_row end # line 115 "./tasks/../ragel/i18n/ar.rb.rl" when 22 then # line 119 "./tasks/../ragel/i18n/ar.rb.rl" begin if @rows.size != 0 @listener.table(@rows, @current_line) end end # line 119 "./tasks/../ragel/i18n/ar.rb.rl" when 23 then # line 125 "./tasks/../ragel/i18n/ar.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 125 "./tasks/../ragel/i18n/ar.rb.rl" # line 1037 "lib/gherkin/rb_lexer/ar.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 125 "./tasks/../ragel/i18n/ar.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 125 "./tasks/../ragel/i18n/ar.rb.rl" # line 1075 "lib/gherkin/rb_lexer/ar.rb" end # eof action switch end if _trigger_goto next end end end if _goto_level <= _out break end end end # line 149 "./tasks/../ragel/i18n/ar.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].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