# line 1 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" require 'gherkin/core_ext/array' module Gherkin module RbLexer class He #:nodoc: # line 125 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" def initialize(listener) @listener = listener # line 16 "lib/gherkin/rb_lexer/he.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, 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, 11, 18, 19, 21, 22, 23, 24, 25, 27, 28, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 87, 93, 95, 98, 100, 102, 104, 115, 116, 117, 121, 126, 131, 136, 141, 145, 149, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 170, 177, 182, 186, 191, 192, 197, 208, 211, 213, 215, 217, 219, 221, 223, 225, 227, 229, 231, 233, 235, 237, 239, 241, 243, 245, 247, 249, 251, 253, 255, 258, 260, 262, 264, 266, 268, 270, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 292, 294, 296, 298, 300, 302, 304, 306, 308, 310, 312, 314, 316, 318, 320, 322, 323, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 355, 361, 363, 366, 368, 370, 372, 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, 443, 445, 447, 449, 451, 453, 455, 457, 459, 461, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 480, 483, 485, 487, 489, 491, 493, 495, 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, 561, 562, 563, 564, 565, 566, 567, 568, 569, 578, 584, 586, 589, 591, 593, 595, 598, 600, 602, 604, 606, 608, 610, 612, 614, 616, 618, 620, 622, 624, 626, 628, 630, 632, 634, 636, 638, 640, 642, 645, 647, 649, 651, 653, 655, 657, 659, 661, 663, 665, 667, 669, 671, 673, 675, 677, 679, 681, 683, 685, 687, 689, 691, 693, 695, 697, 699, 701, 703, 705, 707, 709 ] class << self attr_accessor :_lexer_trans_keys private :_lexer_trans_keys, :_lexer_trans_keys= end self._lexer_trans_keys = [ -41, 10, 32, 34, 35, 37, 42, 64, 124, 9, 13, -112, -111, -109, -107, -101, -88, -86, -41, -111, -106, -41, -100, 32, 10, 10, 13, 10, -41, 32, -103, -41, -108, -41, -103, -41, -96, -41, -86, -41, -97, -41, -107, -41, -110, -41, -98, -41, -112, -41, -107, -41, -86, 58, 10, 10, 10, 32, 124, 9, 13, -41, -110, -41, -99, -41, -112, -41, -87, -41, -88, -41, -89, -41, -94, 58, 10, 10, -41, 10, 32, 35, 37, 42, 64, 9, 13, -112, -111, -107, -101, -86, 10, -41, 10, -111, -106, 10, -41, 10, -100, 10, 10, 32, -41, 10, 32, 34, 35, 37, 42, 64, 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, 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, -41, 10, 32, 34, 35, 37, 42, 64, 124, 9, 13, -41, 10, 32, -103, 10, -41, 10, -108, 10, -41, 10, -103, 10, -41, 10, -96, 10, -41, 10, -86, 10, -41, 10, -97, 10, -41, 10, -110, 10, -41, 10, -99, 10, -41, 10, -112, 10, -41, 10, -87, 10, -41, 10, -88, 10, -41, 10, -111, -88, 10, -41, 10, -96, 10, -41, 10, -103, 10, -41, 10, -86, 10, 10, 32, -41, 10, -86, 10, -41, 10, -88, 10, -41, 10, -105, 10, -41, 10, -103, 10, -41, 10, -87, 10, 10, 58, 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, -41, -111, -101, -88, -41, -96, -41, -103, -41, -86, 32, -41, -86, -41, -88, -41, -105, -41, -103, -41, -87, 58, 10, 10, -41, 10, 32, 35, 37, 42, 64, 9, 13, -112, -111, -107, -101, -86, 10, -41, 10, -111, -106, 10, -41, 10, -100, 10, 10, 32, -41, 10, 32, -103, 10, -41, 10, -108, 10, -41, 10, -103, 10, -41, 10, -96, 10, -41, 10, -86, 10, -41, 10, -97, 10, -41, 10, -110, 10, -41, 10, -99, 10, -41, 10, -112, 10, -41, 10, -87, 10, -41, 10, -88, 10, -41, 10, -88, 10, -41, 10, -105, 10, -41, 10, -103, 10, -41, 10, -87, 10, 10, 58, 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, -41, -107, -41, -96, -41, -108, 58, 10, 10, -41, 10, 32, 35, 37, 64, 9, 13, -88, -86, 10, -41, 10, -89, 10, -41, 10, -94, 10, 10, 58, -41, 10, -111, -88, 10, -41, 10, -96, 10, -41, 10, -103, 10, -41, 10, -86, 10, 10, 32, -41, 10, -86, 10, -41, 10, -88, 10, -41, 10, -105, 10, -41, 10, -103, 10, -41, 10, -87, 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, -41, -105, -41, -103, -41, -87, 58, 10, 10, -41, 10, 32, 35, 37, 42, 64, 9, 13, -112, -111, -107, -101, -86, 10, -41, 10, -111, -106, 10, -41, 10, -100, 10, 10, 32, -41, 10, 32, -103, 10, -41, 10, -108, 10, -41, 10, -103, 10, -41, 10, -96, 10, -41, 10, -86, 10, -41, 10, -97, 10, -41, 10, -110, 10, -41, 10, -99, 10, -41, 10, -112, 10, -41, 10, -87, 10, -41, 10, -88, 10, -41, 10, -111, -88, 10, -41, 10, -96, 10, -41, 10, -103, 10, -41, 10, -86, 10, 10, 32, -41, 10, -86, 10, -41, 10, -88, 10, -41, 10, -105, 10, -41, 10, -103, 10, -41, 10, -87, 10, 10, 58, 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, 0 ] class << self attr_accessor :_lexer_single_lengths private :_lexer_single_lengths, :_lexer_single_lengths= end self._lexer_single_lengths = [ 0, 9, 7, 1, 2, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1,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_offsets= end self._lexer_index_offsets = [ 0, 0, 11, 19, 21, 24, 26, 28, 30, 32, 35, 37, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123, 125, 127, 129, 131, 140, 147, 150, 154, 157, 160, 163, 174, 176, 178, 182, 187, 192, 197, 202, 206, 210, 213, 215, 217, 219, 221, 223, 225, 227, 229, 231, 233, 235, 237, 239, 241, 246, 253, 258, 262, 267, 269, 274, 285, 289, 292, 295, 298, 301, 304, 307, 310, 313, 316, 319, 322, 325, 328, 331, 334, 337, 340, 343, 346, 349, 352, 355, 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, 437, 440, 443, 446, 449, 452, 455, 457, 461, 463, 465, 467, 469, 471, 473, 475, 477, 479, 481, 483, 485, 487, 489, 491, 493, 495, 497, 499, 501, 510, 517, 520, 524, 527, 530, 533, 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, 621, 624, 627, 630, 633, 636, 639, 642, 645, 648, 651, 654, 657, 660, 663, 666, 669, 671, 673, 675, 677, 679, 681, 683, 685, 687, 695, 699, 702, 705, 708, 711, 714, 717, 721, 724, 727, 730, 733, 736, 739, 742, 745, 748, 751, 754, 757, 760, 763, 766, 769, 772, 775, 778, 781, 784, 787, 790, 793, 796, 799, 802, 805, 808, 811, 814, 816, 818, 820, 822, 824, 826, 828, 830, 832, 841, 848, 851, 855, 858, 861, 864, 868, 871, 874, 877, 880, 883, 886, 889, 892, 895, 898, 901, 904, 907, 910, 913, 916, 919, 922, 925, 928, 931, 934, 938, 941, 944, 947, 950, 953, 956, 959, 962, 965, 968, 971, 974, 977, 980, 983, 986, 989, 992, 995, 998, 1001, 1004, 1007, 1010, 1013, 1016, 1019, 1022, 1025, 1028, 1031, 1034 ] class << self attr_accessor :_lexer_trans_targs private :_lexer_trans_targs, :_lexer_trans_targs= end self._lexer_trans_targs = [ 2, 1, 1, 64, 73, 74, 7, 88, 91, 1, 0, 3, 13, 23, 39, 43, 49, 152, 0, 4, 0, 5, 11, 0, 6, 0, 7, 0, 8, 0, 0, 9, 1, 10, 9, 1, 0, 12, 8, 0, 7, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0, 21, 0, 22, 0, 7, 0, 24, 0, 25, 0, 26, 0, 27, 0, 28, 0, 29, 0, 30, 0, 31, 0, 32, 0, 33, 0, 34, 0, 35, 0, 36, 0, 38, 37, 38, 37, 38, 38, 1, 38, 37, 40, 0, 41, 0, 42, 0, 7, 0, 44, 0, 45, 0, 46, 0, 47, 0, 48, 0, 7, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 56, 55, 56, 55, 57, 56, 56, 1, 138, 62, 1, 56, 55, 58, 98, 108, 112, 118, 56, 55, 59, 56, 55, 60, 96, 56, 55, 61, 56, 55, 62, 56, 55, 56, 63, 55, 2, 1, 1, 64, 73, 74, 7, 88, 91, 1, 0, 65, 0, 66, 0, 67, 66, 66, 0, 68, 68, 69, 68, 68, 68, 68, 69, 68, 68, 68, 68, 70, 68, 68, 68, 68, 71, 68, 68, 1, 72, 72, 0, 1, 72, 72, 0, 1, 10, 73, 75, 0, 76, 0, 77, 0, 78, 0, 79, 0, 80, 0, 81, 0, 82, 0, 83, 0, 84, 0, 85, 0, 86, 0, 87, 0, 347, 0, 0, 0, 0, 0, 89, 90, 1, 90, 90, 88, 89, 89, 1, 90, 88, 90, 0, 91, 92, 91, 0, 95, 94, 92, 94, 93, 92, 93, 95, 94, 92, 94, 93, 2, 95, 95, 64, 73, 74, 7, 88, 91, 95, 0, 97, 56, 63, 55, 62, 56, 55, 99, 56, 55, 100, 56, 55, 101, 56, 55, 102, 56, 55, 103, 56, 55, 104, 56, 55, 105, 56, 55, 106, 56, 55, 107, 56, 55, 62, 56, 55, 109, 56, 55, 110, 56, 55, 111, 56, 55, 62, 56, 55, 113, 56, 55, 114, 56, 55, 115, 56, 55, 116, 56, 55, 117, 56, 55, 62, 56, 55, 119, 56, 55, 120, 131, 56, 55, 121, 56, 55, 122, 56, 55, 123, 56, 55, 124, 56, 55, 125, 56, 55, 126, 56, 55, 56, 127, 55, 128, 56, 55, 129, 56, 55, 130, 56, 55, 131, 56, 55, 132, 56, 55, 133, 56, 55, 134, 56, 55, 135, 56, 55, 136, 56, 55, 137, 56, 55, 56, 63, 55, 56, 139, 55, 56, 140, 55, 56, 141, 55, 56, 142, 55, 56, 143, 55, 56, 144, 55, 56, 145, 55, 56, 146, 55, 56, 147, 55, 56, 148, 55, 56, 149, 55, 56, 150, 55, 56, 151, 55, 56, 1, 55, 153, 0, 154, 226, 275, 0, 155, 0, 156, 0, 157, 0, 158, 0, 159, 0, 160, 0, 161, 0, 162, 0, 163, 0, 164, 0, 165, 0, 166, 0, 167, 0, 168, 0, 169, 0, 170, 0, 171, 0, 172, 0, 174, 173, 174, 173, 175, 174, 174, 1, 212, 180, 1, 174, 173, 176, 183, 193, 197, 203, 174, 173, 177, 174, 173, 178, 181, 174, 173, 179, 174, 173, 180, 174, 173, 174, 63, 173, 182, 174, 63, 173, 180, 174, 173, 184, 174, 173, 185, 174, 173, 186, 174, 173, 187, 174, 173, 188, 174, 173, 189, 174, 173, 190, 174, 173, 191, 174, 173, 192, 174, 173, 180, 174, 173, 194, 174, 173, 195, 174, 173, 196, 174, 173, 180, 174, 173, 198, 174, 173, 199, 174, 173, 200, 174, 173, 201, 174, 173, 202, 174, 173, 180, 174, 173, 204, 174, 173, 205, 174, 173, 206, 174, 173, 207, 174, 173, 208, 174, 173, 209, 174, 173, 210, 174, 173, 211, 174, 173, 174, 63, 173, 174, 213, 173, 174, 214, 173, 174, 215, 173, 174, 216, 173, 174, 217, 173, 174, 218, 173, 174, 219, 173, 174, 220, 173, 174, 221, 173, 174, 222, 173, 174, 223, 173, 174, 224, 173, 174, 225, 173, 174, 1, 173, 227, 0, 228, 0, 229, 0, 230, 0, 231, 0, 232, 0, 233, 0, 235, 234, 235, 234, 236, 235, 235, 1, 261, 1, 235, 234, 237, 242, 235, 234, 238, 235, 234, 239, 235, 234, 240, 235, 234, 241, 235, 234, 235, 63, 234, 243, 235, 234, 244, 255, 235, 234, 245, 235, 234, 246, 235, 234, 247, 235, 234, 248, 235, 234, 249, 235, 234, 250, 235, 234, 235, 251, 234, 252, 235, 234, 253, 235, 234, 254, 235, 234, 255, 235, 234, 256, 235, 234, 257, 235, 234, 258, 235, 234, 259, 235, 234, 260, 235, 234, 241, 235, 234, 235, 262, 234, 235, 263, 234, 235, 264, 234, 235, 265, 234, 235, 266, 234, 235, 267, 234, 235, 268, 234, 235, 269, 234, 235, 270, 234, 235, 271, 234, 235, 272, 234, 235, 273, 234, 235, 274, 234, 235, 1, 234, 276, 0, 277, 0, 278, 0, 279, 0, 280, 0, 281, 0, 282, 0, 284, 283, 284, 283, 285, 284, 284, 1, 333, 290, 1, 284, 283, 286, 293, 303, 307, 313, 284, 283, 287, 284, 283, 288, 291, 284, 283, 289, 284, 283, 290, 284, 283, 284, 63, 283, 292, 284, 63, 283, 290, 284, 283, 294, 284, 283, 295, 284, 283, 296, 284, 283, 297, 284, 283, 298, 284, 283, 299, 284, 283, 300, 284, 283, 301, 284, 283, 302, 284, 283, 290, 284, 283, 304, 284, 283, 305, 284, 283, 306, 284, 283, 290, 284, 283, 308, 284, 283, 309, 284, 283, 310, 284, 283, 311, 284, 283, 312, 284, 283, 290, 284, 283, 314, 284, 283, 315, 326, 284, 283, 316, 284, 283, 317, 284, 283, 318, 284, 283, 319, 284, 283, 320, 284, 283, 321, 284, 283, 284, 322, 283, 323, 284, 283, 324, 284, 283, 325, 284, 283, 326, 284, 283, 327, 284, 283, 328, 284, 283, 329, 284, 283, 330, 284, 283, 331, 284, 283, 332, 284, 283, 284, 63, 283, 284, 334, 283, 284, 335, 283, 284, 336, 283, 284, 337, 283, 284, 338, 283, 284, 339, 283, 284, 340, 283, 284, 341, 283, 284, 342, 283, 284, 343, 283, 284, 344, 283, 284, 345, 283, 284, 346, 283, 284, 1, 283, 0, 0 ] class << self attr_accessor :_lexer_trans_actions private :_lexer_trans_actions, :_lexer_trans_actions= end self._lexer_trans_actions = [ 23, 42, 0, 3, 1, 0, 23, 0, 29, 0, 37, 0, 0, 0, 0, 0, 0, 0, 37, 0, 37, 0, 0, 37, 0, 37, 0, 37, 0, 37, 37, 45, 94, 17, 0, 42, 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, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 119, 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, 119, 45, 42, 0, 72, 42, 0, 60, 27, 72, 60, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 42, 0, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 42, 11, 0, 51, 110, 25, 48, 45, 25, 51, 25, 54, 25, 37, 0, 37, 0, 37, 42, 0, 0, 37, 114, 39, 39, 39, 5, 106, 27, 27, 27, 0, 106, 27, 27, 27, 0, 106, 27, 0, 27, 0, 90, 7, 7, 37, 42, 0, 0, 37, 98, 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, 102, 21, 21, 21, 21, 0, 42, 0, 0, 0, 37, 0, 0, 0, 37, 42, 31, 75, 31, 31, 33, 0, 42, 0, 33, 0, 0, 84, 42, 0, 81, 78, 35, 84, 35, 87, 0, 37, 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, 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, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 42, 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, 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, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 11, 0, 0, 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, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 119, 45, 42, 0, 72, 42, 0, 66, 27, 72, 66, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 42, 0, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 42, 15, 0, 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, 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, 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, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 119, 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, 42, 9, 0, 0, 42, 0, 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, 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, 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, 119, 45, 42, 0, 72, 42, 0, 63, 27, 72, 63, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 42, 0, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 42, 13, 0, 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, 0, 42, 0, 0, 42, 0, 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, 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, 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, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 0, 0, 42, 13, 0, 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 ] class << self attr_accessor :lexer_start end self.lexer_start = 1; class << self attr_accessor :lexer_first_final end self.lexer_first_final = 347; 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/he.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 695 "lib/gherkin/rb_lexer/he.rb" begin p ||= 0 pe ||= data.length cs = lexer_start end # line 140 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" # line 704 "lib/gherkin/rb_lexer/he.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/he.rb.rl" begin @content_start = p @current_line = @line_number end # line 9 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" when 1 then # line 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" begin @current_line = @line_number @start_col = p - @last_newline end # line 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" when 2 then # line 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" begin @content_start = p end # line 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" when 3 then # line 23 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.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/he.rb.rl" when 4 then # line 28 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.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/he.rb.rl" when 5 then # line 34 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.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/he.rb.rl" when 6 then # line 40 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.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/he.rb.rl" when 7 then # line 46 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.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/he.rb.rl" when 8 then # line 52 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.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/he.rb.rl" when 9 then # line 58 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.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/he.rb.rl" when 10 then # line 63 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.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/he.rb.rl" when 11 then # line 69 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.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/he.rb.rl" when 12 then # line 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" begin @line_number += 1 end # line 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" when 13 then # line 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" begin @last_newline = p + 1 end # line 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" when 14 then # line 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" begin @keyword_start ||= p end # line 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" when 15 then # line 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.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/he.rb.rl" when 16 then # line 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" begin @next_keyword_start = p end # line 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" when 17 then # line 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" begin p = p - 1 current_row = [] @current_line = @line_number end # line 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" when 18 then # line 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" begin @content_start = p end # line 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" when 19 then # line 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.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/he.rb.rl" when 20 then # line 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" begin @listener.row(current_row, @current_line) end # line 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.rb.rl" when 21 then # line 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/he.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/he.rb.rl" # line 965 "lib/gherkin/rb_lexer/he.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/he.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/he.rb.rl" # line 1005 "lib/gherkin/rb_lexer/he.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/he.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