# line 1 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" require 'gherkin/core_ext/array' module Gherkin module RbLexer class Fi #:nodoc: # line 125 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" def initialize(listener) @listener = listener # line 16 "lib/gherkin/rb_lexer/fi.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, 16, 17, 18, 22, 27, 32, 37, 42, 46, 50, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 76, 83, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 123, 125, 127, 129, 131, 133, 135, 137, 139, 141, 143, 145, 147, 149, 151, 153, 156, 158, 160, 162, 165, 181, 182, 184, 185, 186, 188, 189, 190, 191, 192, 193, 194, 199, 201, 202, 203, 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, 290, 292, 294, 296, 298, 300, 301, 302, 303, 304, 305, 306, 307, 321, 323, 325, 327, 329, 331, 333, 335, 337, 339, 341, 343, 345, 347, 349, 351, 353, 355, 357, 359, 361, 363, 365, 367, 369, 371, 373, 375, 377, 379, 381, 383, 385, 387, 389, 391, 393, 394, 395, 396, 397, 398, 399, 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, 465, 467, 469, 471, 473, 475, 477, 479, 481, 483, 486, 488, 490, 492, 494, 496, 500, 505, 506, 511, 527, 529, 531, 533, 535, 537, 539, 541, 543 ] 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, 74, 75, 77, 78, 79, 84, 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, 97, 117, 110, 117, 116, 116, 105, 105, 108, 109, 101, 116, 101, 116, 97, 97, 105, 110, 97, 105, 115, 117, 117, 115, 58, 10, 10, 10, 32, 35, 37, 64, 84, 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, 97, 10, 112, 117, 10, 97, 10, 117, 10, 115, 10, 58, 97, 10, 32, 34, 35, 37, 42, 64, 74, 75, 77, 78, 79, 84, 124, 9, 13, 97, 112, 117, 97, 117, 107, 115, 115, 101, 116, 58, 10, 10, 10, 32, 124, 9, 13, 58, 97, 10, 10, 10, 32, 35, 37, 42, 64, 74, 75, 77, 78, 79, 84, 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, 97, 10, 117, 10, 110, 10, 117, 10, 116, 10, 116, 10, 105, 10, 105, 10, 108, 10, 101, 10, 116, 10, 101, 10, 116, 10, 97, 10, 97, 10, 97, 10, 112, 10, 97, 10, 117, 10, 115, 10, 58, 97, 10, 105, 10, 104, 10, 105, 10, 111, 10, 58, 105, 104, 105, 111, 58, 10, 10, 10, 32, 35, 37, 42, 64, 74, 75, 77, 78, 79, 84, 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, 97, 10, 117, 10, 110, 10, 117, 10, 116, 10, 116, 10, 105, 10, 105, 10, 108, 10, 101, 10, 116, 10, 101, 10, 116, 10, 97, 10, 97, 10, 97, 10, 112, 10, 97, 10, 117, 10, 115, 10, 58, 115, 116, 97, 58, 10, 10, 10, 32, 35, 37, 42, 64, 74, 75, 77, 78, 79, 84, 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, 97, 10, 117, 10, 110, 10, 117, 10, 116, 10, 116, 10, 105, 10, 105, 10, 108, 10, 101, 10, 116, 10, 101, 10, 116, 10, 97, 10, 97, 10, 97, 10, 112, 10, 97, 10, 117, 10, 115, 10, 58, 97, 10, 105, 10, 104, 10, 105, 10, 111, 10, 58, 32, 124, 9, 13, 10, 32, 124, 9, 13, 124, 10, 32, 124, 9, 13, 10, 32, 34, 35, 37, 42, 64, 74, 75, 77, 78, 79, 84, 124, 9, 13, 10, 105, 10, 104, 10, 105, 10, 111, 10, 58, 10, 115, 10, 116, 10, 97, 0 ] class << self attr_accessor :_lexer_single_lengths private :_lexer_single_lengths, :_lexer_single_lengths= end self._lexer_single_lengths = [ 0, 14, 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, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 14, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 3, 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, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 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, 2, 2, 2, 2, 2, 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, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 3, 1, 3, 14, 2, 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, 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, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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, 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, 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, 1, 1, 0, 1, 1, 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, 16, 18, 20, 24, 29, 34, 39, 44, 48, 52, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 92, 97, 104, 109, 111, 113, 115, 117, 119, 121, 123, 125, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 170, 173, 176, 179, 182, 185, 188, 191, 194, 197, 200, 203, 206, 209, 212, 215, 219, 222, 225, 228, 232, 248, 250, 253, 255, 257, 260, 262, 264, 266, 268, 270, 272, 277, 280, 282, 284, 298, 301, 304, 307, 310, 313, 316, 319, 322, 325, 328, 331, 334, 337, 340, 343, 346, 349, 352, 355, 358, 361, 364, 367, 370, 373, 376, 379, 382, 385, 388, 391, 394, 397, 400, 403, 407, 410, 413, 416, 419, 422, 424, 426, 428, 430, 432, 434, 436, 450, 453, 456, 459, 462, 465, 468, 471, 474, 477, 480, 483, 486, 489, 492, 495, 498, 501, 504, 507, 510, 513, 516, 519, 522, 525, 528, 531, 534, 537, 540, 543, 546, 549, 552, 555, 558, 560, 562, 564, 566, 568, 570, 584, 587, 590, 593, 596, 599, 602, 605, 608, 611, 614, 617, 620, 623, 626, 629, 632, 635, 638, 641, 644, 647, 650, 653, 656, 659, 662, 665, 668, 671, 674, 677, 680, 683, 686, 689, 693, 696, 699, 702, 705, 708, 712, 717, 719, 724, 740, 743, 746, 749, 752, 755, 758, 761, 764 ] 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, 34, 36, 39, 41, 81, 230, 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, 243, 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, 27, 0, 35, 0, 27, 0, 37, 0, 38, 0, 33, 0, 40, 0, 35, 0, 42, 48, 0, 43, 0, 44, 0, 45, 0, 46, 0, 47, 0, 35, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 59, 58, 59, 58, 59, 59, 1, 60, 1, 74, 59, 58, 59, 61, 58, 59, 62, 58, 59, 63, 58, 59, 64, 58, 59, 65, 58, 59, 66, 58, 59, 67, 58, 59, 68, 58, 59, 69, 58, 59, 70, 58, 59, 71, 58, 59, 72, 58, 59, 73, 58, 59, 1, 58, 59, 75, 58, 59, 76, 240, 58, 59, 77, 58, 59, 78, 58, 59, 79, 58, 59, 80, 235, 58, 1, 1, 2, 11, 13, 27, 30, 33, 34, 36, 39, 41, 81, 230, 1, 0, 82, 0, 83, 182, 0, 84, 0, 85, 0, 86, 93, 0, 87, 0, 88, 0, 89, 0, 90, 0, 92, 91, 92, 91, 92, 92, 1, 92, 91, 94, 138, 0, 96, 95, 96, 95, 96, 96, 1, 97, 111, 1, 112, 113, 115, 118, 120, 127, 96, 95, 96, 98, 95, 96, 99, 95, 96, 100, 95, 96, 101, 95, 96, 102, 95, 96, 103, 95, 96, 104, 95, 96, 105, 95, 96, 106, 95, 96, 107, 95, 96, 108, 95, 96, 109, 95, 96, 110, 95, 96, 1, 95, 96, 80, 95, 96, 111, 95, 96, 114, 95, 96, 111, 95, 96, 116, 95, 96, 117, 95, 96, 112, 95, 96, 119, 95, 96, 114, 95, 96, 121, 95, 96, 122, 95, 96, 123, 95, 96, 124, 95, 96, 125, 95, 96, 126, 95, 96, 114, 95, 96, 128, 95, 96, 129, 95, 96, 130, 95, 96, 131, 95, 96, 132, 95, 96, 80, 133, 95, 96, 134, 95, 96, 135, 95, 96, 136, 95, 96, 137, 95, 96, 80, 95, 139, 0, 140, 0, 141, 0, 142, 0, 143, 0, 145, 144, 145, 144, 145, 145, 1, 146, 160, 1, 161, 162, 164, 167, 169, 176, 145, 144, 145, 147, 144, 145, 148, 144, 145, 149, 144, 145, 150, 144, 145, 151, 144, 145, 152, 144, 145, 153, 144, 145, 154, 144, 145, 155, 144, 145, 156, 144, 145, 157, 144, 145, 158, 144, 145, 159, 144, 145, 1, 144, 145, 80, 144, 145, 160, 144, 145, 163, 144, 145, 160, 144, 145, 165, 144, 145, 166, 144, 145, 161, 144, 145, 168, 144, 145, 163, 144, 145, 170, 144, 145, 171, 144, 145, 172, 144, 145, 173, 144, 145, 174, 144, 145, 175, 144, 145, 163, 144, 145, 177, 144, 145, 178, 144, 145, 179, 144, 145, 180, 144, 145, 181, 144, 145, 80, 144, 183, 0, 184, 0, 185, 0, 186, 0, 188, 187, 188, 187, 188, 188, 1, 189, 203, 1, 204, 205, 207, 210, 212, 219, 188, 187, 188, 190, 187, 188, 191, 187, 188, 192, 187, 188, 193, 187, 188, 194, 187, 188, 195, 187, 188, 196, 187, 188, 197, 187, 188, 198, 187, 188, 199, 187, 188, 200, 187, 188, 201, 187, 188, 202, 187, 188, 1, 187, 188, 80, 187, 188, 203, 187, 188, 206, 187, 188, 203, 187, 188, 208, 187, 188, 209, 187, 188, 204, 187, 188, 211, 187, 188, 206, 187, 188, 213, 187, 188, 214, 187, 188, 215, 187, 188, 216, 187, 188, 217, 187, 188, 218, 187, 188, 206, 187, 188, 220, 187, 188, 221, 187, 188, 222, 187, 188, 223, 187, 188, 224, 187, 188, 80, 225, 187, 188, 226, 187, 188, 227, 187, 188, 228, 187, 188, 229, 187, 188, 80, 187, 230, 231, 230, 0, 234, 233, 231, 233, 232, 231, 232, 234, 233, 231, 233, 232, 234, 234, 2, 11, 13, 27, 30, 33, 34, 36, 39, 41, 81, 230, 234, 0, 59, 236, 58, 59, 237, 58, 59, 238, 58, 59, 239, 58, 59, 80, 58, 59, 241, 58, 59, 242, 58, 59, 239, 58, 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, 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, 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, 0, 37, 0, 37, 122, 48, 45, 0, 45, 0, 60, 27, 60, 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, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 9, 0, 0, 113, 25, 51, 48, 25, 54, 48, 54, 54, 54, 54, 54, 54, 57, 25, 37, 0, 37, 0, 0, 37, 0, 37, 0, 37, 0, 0, 37, 0, 37, 0, 37, 0, 37, 0, 37, 122, 48, 45, 0, 45, 0, 72, 0, 0, 0, 0, 37, 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, 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, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 13, 0, 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, 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, 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, 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, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 11, 0, 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, 90, 0, 37, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 0, 0, 45, 9, 0, 45, 0, 0, 45, 0, 0, 45, 0, 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 ] class << self attr_accessor :lexer_start end self.lexer_start = 1; class << self attr_accessor :lexer_first_final end self.lexer_first_final = 243; 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/fi.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 541 "lib/gherkin/rb_lexer/fi.rb" begin p ||= 0 pe ||= data.length cs = lexer_start end # line 140 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" # line 550 "lib/gherkin/rb_lexer/fi.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/fi.rb.rl" begin @content_start = p @current_line = @line_number end # line 9 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" when 1 then # line 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" begin @current_line = @line_number @start_col = p - @last_newline end # line 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" when 2 then # line 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" begin @content_start = p end # line 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" when 3 then # line 23 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" begin con = unindent(@start_col, data[@content_start...@next_keyword_start-1].utf8_pack("c*").sub(/(\r?\n)?( )*\Z/, '').gsub(/\\"\\"\\"/, '"""')) @listener.py_string(con, @current_line) end # line 23 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" when 4 then # line 28 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.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/fi.rb.rl" when 5 then # line 34 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.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/fi.rb.rl" when 6 then # line 40 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.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/fi.rb.rl" when 7 then # line 46 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.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/fi.rb.rl" when 8 then # line 52 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.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/fi.rb.rl" when 9 then # line 58 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.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/fi.rb.rl" when 10 then # line 63 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.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/fi.rb.rl" when 11 then # line 69 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.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/fi.rb.rl" when 12 then # line 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" begin @line_number += 1 end # line 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" when 13 then # line 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" begin @last_newline = p + 1 end # line 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" when 14 then # line 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" begin @keyword_start ||= p end # line 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" when 15 then # line 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.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/fi.rb.rl" when 16 then # line 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" begin @next_keyword_start = p end # line 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" when 17 then # line 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" begin p = p - 1 current_row = [] @current_line = @line_number end # line 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" when 18 then # line 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" begin @content_start = p end # line 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" when 19 then # line 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.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/fi.rb.rl" when 20 then # line 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" begin @listener.row(current_row, @current_line) end # line 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.rb.rl" when 21 then # line 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/fi.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/fi.rb.rl" # line 811 "lib/gherkin/rb_lexer/fi.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/fi.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/fi.rb.rl" # line 851 "lib/gherkin/rb_lexer/fi.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/fi.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