# line 1 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
require 'gherkin/core_ext/array'
module Gherkin
module RbLexer
class Sk #:nodoc:
# line 125 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
def initialize(listener)
@listener = listener
# line 16 "lib/gherkin/rb_lexer/sk.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, 90, 91, 92, 93, 94, 95,
96, 97, 98, 99, 100, 101, 102, 103,
104, 105, 106, 107, 108, 109, 110, 111,
112, 125, 127, 129, 131, 133, 135, 137,
139, 141, 143, 145, 147, 149, 151, 153,
155, 171, 173, 176, 177, 178, 179, 180,
181, 182, 183, 184, 185, 186, 187, 197,
199, 201, 203, 205, 207, 209, 211, 213,
215, 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, 282, 283, 284, 285, 286, 287,
288, 289, 290, 291, 292, 306, 308, 310,
312, 314, 316, 318, 320, 322, 324, 326,
328, 330, 332, 334, 336, 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, 395, 397, 399, 401, 403, 405, 407,
408, 409, 410, 411, 412, 413, 414, 415,
416, 417, 422, 423, 424, 425, 426, 427,
428, 429, 430, 431, 445, 447, 449, 451,
453, 455, 457, 459, 461, 463, 465, 467,
469, 471, 473, 475, 478, 480, 482, 484,
486, 488, 490, 492, 494, 496, 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, 547,
548, 552, 557, 558, 563, 579, 582, 584,
586, 588, 590, 592, 594, 596, 598, 600,
602, 604, 606, 608, 610, 612, 614, 616,
618, 620
]
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, 65,
75, 78, 80, 83, 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,
32, 108, 101, 101, -60, -113, -61, -95,
-60, -115, 114, 116, 32, 83, 99, 101,
110, -61, -95, 114, 117, 58, 10, 10,
10, 32, 35, 37, 42, 64, 65, 75,
80, 83, 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, 32, 34, 35, 37,
42, 64, 65, 75, 78, 80, 83, 84,
124, 9, 13, 111, 114, -59, 107, 122,
-66, 105, 97, 100, 97, 118, 107, 97,
58, 10, 10, 10, 32, 35, 37, 64,
78, 80, 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, -61, 10, -95, 10, -60, 10, -115,
10, 10, 114, 10, 116, 10, 32, 10,
83, 10, 99, 10, 101, 10, 110, -61,
10, -95, 10, 10, 114, 10, 117, 10,
58, 10, 111, 10, 122, 10, 97, 10,
100, 10, 105, 10, 101, 10, 99, 10,
101, 10, 110, -61, 10, -95, 10, 10,
114, 105, 97, -60, -66, 97, 100, 105,
101, 58, 10, 10, 10, 32, 35, 37,
42, 64, 65, 75, 78, 80, 83, 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, 32, 108, 10, 101, 10, 101, -60,
10, -113, 10, -61, 10, -95, 10, -60,
10, -115, 10, 10, 114, 10, 116, 10,
32, 10, 83, 10, 99, 10, 101, 10,
110, -61, 10, -95, 10, 10, 114, 10,
117, 10, 58, 10, 111, 10, 107, 10,
105, 10, 97, -60, 10, -66, 10, 10,
99, 10, 101, 10, 110, -61, 10, -95,
10, 10, 114, 10, 97, 10, 107, -61,
-83, 107, 108, 97, 100, 121, 58, 10,
10, 10, 32, 124, 9, 13, 99, 101,
110, -61, -95, 114, 58, 10, 10, 10,
32, 35, 37, 42, 64, 65, 75, 78,
80, 83, 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, 32, 108, 10, 101,
10, 101, -60, 10, -113, 10, -61, 10,
-95, 10, -60, 10, -115, 10, 10, 114,
10, 116, 10, 32, 10, 83, 10, 99,
10, 101, 10, 110, -61, 10, -95, 10,
10, 114, 10, 117, 10, 58, 10, 111,
10, 107, 10, 105, 10, 97, -60, 10,
-66, 10, 10, 99, 10, 101, 10, 110,
-61, 10, -95, 10, 10, 114, 10, 97,
10, 107, 97, 107, 32, 124, 9, 13,
10, 32, 124, 9, 13, 124, 10, 32,
124, 9, 13, 10, 32, 34, 35, 37,
42, 64, 65, 75, 78, 80, 83, 84,
124, 9, 13, 10, 32, 108, 10, 101,
10, 101, -60, 10, -113, 10, 10, 111,
10, 107, 10, 105, 10, 97, -60, 10,
-66, 10, 10, 99, 10, 101, 10, 110,
-61, 10, -95, 10, 10, 114, 10, 58,
10, 97, 10, 107, 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, 2, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
11, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
14, 2, 3, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 8, 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, 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, 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, 2, 2,
2, 2, 2, 2, 2, 2, 2, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 3, 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, 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, 2, 2, 2,
2, 2, 2, 2, 2, 2, 1, 1,
2, 3, 1, 3, 14, 3, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 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,
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, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 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, 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,
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
]
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, 112, 114, 116, 118, 120, 122,
124, 126, 128, 130, 132, 134, 136, 138,
140, 142, 144, 146, 148, 150, 152, 154,
156, 169, 172, 175, 178, 181, 184, 187,
190, 193, 196, 199, 202, 205, 208, 211,
214, 230, 233, 237, 239, 241, 243, 245,
247, 249, 251, 253, 255, 257, 259, 269,
272, 275, 278, 281, 284, 287, 290, 293,
296, 299, 302, 305, 308, 311, 314, 317,
320, 323, 326, 329, 332, 335, 338, 341,
344, 347, 350, 353, 356, 359, 362, 365,
368, 371, 374, 377, 380, 383, 386, 389,
392, 395, 397, 399, 401, 403, 405, 407,
409, 411, 413, 415, 417, 431, 434, 437,
440, 443, 446, 449, 452, 455, 458, 461,
464, 467, 470, 473, 476, 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,
561, 564, 567, 570, 573, 576, 579, 582,
584, 586, 588, 590, 592, 594, 596, 598,
600, 602, 607, 609, 611, 613, 615, 617,
619, 621, 623, 625, 639, 642, 645, 648,
651, 654, 657, 660, 663, 666, 669, 672,
675, 678, 681, 684, 688, 691, 694, 697,
700, 703, 706, 709, 712, 715, 718, 721,
724, 727, 730, 733, 736, 739, 742, 745,
748, 751, 754, 757, 760, 763, 766, 769,
772, 775, 778, 781, 784, 787, 790, 792,
794, 798, 803, 805, 810, 826, 830, 833,
836, 839, 842, 845, 848, 851, 854, 857,
860, 863, 866, 869, 872, 875, 878, 881,
884, 887
]
class << self
attr_accessor :_lexer_trans_targs
private :_lexer_trans_targs, :_lexer_trans_targs=
end
self._lexer_trans_targs = [
1, 1, 2, 11, 13, 27, 30, 33,
35, 38, 73, 202, 262, 264, 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, 289, 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, 28, 34, 0,
27, 0, 36, 0, 37, 0, 27, 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, 54, 0,
56, 55, 56, 55, 56, 56, 1, 57,
71, 1, 269, 271, 274, 280, 287, 56,
55, 56, 58, 55, 56, 59, 55, 56,
60, 55, 56, 61, 55, 56, 62, 55,
56, 63, 55, 56, 64, 55, 56, 65,
55, 56, 66, 55, 56, 67, 55, 56,
68, 55, 56, 69, 55, 56, 70, 55,
56, 1, 55, 56, 72, 55, 1, 1,
2, 11, 13, 27, 30, 33, 35, 38,
73, 202, 262, 264, 1, 0, 74, 191,
0, 75, 129, 133, 0, 76, 0, 77,
0, 78, 0, 79, 0, 80, 0, 81,
0, 82, 0, 83, 0, 84, 0, 86,
85, 86, 85, 86, 86, 1, 87, 1,
101, 117, 123, 86, 85, 86, 88, 85,
86, 89, 85, 86, 90, 85, 86, 91,
85, 86, 92, 85, 86, 93, 85, 86,
94, 85, 86, 95, 85, 86, 96, 85,
86, 97, 85, 86, 98, 85, 86, 99,
85, 86, 100, 85, 86, 1, 85, 102,
86, 85, 103, 86, 85, 104, 86, 85,
105, 86, 85, 86, 106, 85, 86, 107,
85, 86, 108, 85, 86, 109, 85, 86,
110, 85, 86, 111, 85, 86, 112, 85,
113, 86, 85, 114, 86, 85, 86, 115,
85, 86, 116, 85, 86, 72, 85, 86,
118, 85, 86, 119, 85, 86, 120, 85,
86, 121, 85, 86, 122, 85, 86, 116,
85, 86, 124, 85, 86, 125, 85, 86,
126, 85, 127, 86, 85, 128, 86, 85,
86, 116, 85, 130, 0, 131, 0, 132,
0, 27, 0, 134, 0, 135, 0, 136,
0, 137, 0, 138, 0, 140, 139, 140,
139, 140, 140, 1, 141, 155, 1, 156,
158, 161, 177, 183, 189, 140, 139, 140,
142, 139, 140, 143, 139, 140, 144, 139,
140, 145, 139, 140, 146, 139, 140, 147,
139, 140, 148, 139, 140, 149, 139, 140,
150, 139, 140, 151, 139, 140, 152, 139,
140, 153, 139, 140, 154, 139, 140, 1,
139, 140, 72, 139, 140, 72, 157, 139,
140, 155, 139, 140, 159, 139, 160, 140,
139, 155, 140, 139, 162, 140, 139, 163,
140, 139, 164, 140, 139, 165, 140, 139,
140, 166, 139, 140, 167, 139, 140, 168,
139, 140, 169, 139, 140, 170, 139, 140,
171, 139, 140, 172, 139, 173, 140, 139,
174, 140, 139, 140, 175, 139, 140, 176,
139, 140, 72, 139, 140, 178, 139, 140,
179, 139, 140, 180, 139, 140, 181, 139,
182, 140, 139, 155, 140, 139, 140, 184,
139, 140, 185, 139, 140, 186, 139, 187,
140, 139, 188, 140, 139, 140, 176, 139,
140, 190, 139, 140, 155, 139, 192, 0,
193, 0, 194, 0, 195, 0, 196, 0,
197, 0, 198, 0, 199, 0, 201, 200,
201, 200, 201, 201, 1, 201, 200, 203,
0, 204, 0, 205, 0, 206, 0, 207,
0, 208, 0, 209, 0, 211, 210, 211,
210, 211, 211, 1, 212, 226, 1, 227,
229, 232, 248, 254, 260, 211, 210, 211,
213, 210, 211, 214, 210, 211, 215, 210,
211, 216, 210, 211, 217, 210, 211, 218,
210, 211, 219, 210, 211, 220, 210, 211,
221, 210, 211, 222, 210, 211, 223, 210,
211, 224, 210, 211, 225, 210, 211, 1,
210, 211, 72, 210, 211, 72, 228, 210,
211, 226, 210, 211, 230, 210, 231, 211,
210, 226, 211, 210, 233, 211, 210, 234,
211, 210, 235, 211, 210, 236, 211, 210,
211, 237, 210, 211, 238, 210, 211, 239,
210, 211, 240, 210, 211, 241, 210, 211,
242, 210, 211, 243, 210, 244, 211, 210,
245, 211, 210, 211, 246, 210, 211, 247,
210, 211, 72, 210, 211, 249, 210, 211,
250, 210, 211, 251, 210, 211, 252, 210,
253, 211, 210, 226, 211, 210, 211, 255,
210, 211, 256, 210, 211, 257, 210, 258,
211, 210, 259, 211, 210, 211, 247, 210,
211, 261, 210, 211, 226, 210, 263, 0,
27, 0, 264, 265, 264, 0, 268, 267,
265, 267, 266, 265, 266, 268, 267, 265,
267, 266, 268, 268, 2, 11, 13, 27,
30, 33, 35, 38, 73, 202, 262, 264,
268, 0, 56, 72, 270, 55, 56, 71,
55, 56, 272, 55, 273, 56, 55, 71,
56, 55, 56, 275, 55, 56, 276, 55,
56, 277, 55, 56, 278, 55, 279, 56,
55, 71, 56, 55, 56, 281, 55, 56,
282, 55, 56, 283, 55, 284, 56, 55,
285, 56, 55, 56, 286, 55, 56, 72,
55, 56, 288, 55, 56, 71, 55, 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, 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,
122, 48, 45, 0, 45, 0, 69, 27,
75, 69, 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, 113, 25,
51, 48, 25, 54, 48, 54, 54, 54,
54, 54, 54, 57, 25, 37, 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, 122,
48, 45, 0, 45, 0, 60, 27, 60,
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, 9, 0, 0,
45, 0, 0, 45, 0, 0, 45, 0,
0, 45, 0, 45, 0, 0, 45, 0,
0, 45, 0, 0, 45, 0, 0, 45,
0, 0, 45, 0, 0, 45, 0, 0,
0, 45, 0, 0, 45, 0, 45, 0,
0, 45, 0, 0, 45, 9, 0, 45,
0, 0, 45, 0, 0, 45, 0, 0,
45, 0, 0, 45, 0, 0, 45, 0,
0, 45, 0, 0, 45, 0, 0, 45,
0, 0, 0, 45, 0, 0, 45, 0,
45, 0, 0, 0, 37, 0, 37, 0,
37, 0, 37, 0, 37, 0, 37, 0,
37, 0, 37, 0, 37, 122, 48, 45,
0, 45, 0, 63, 27, 75, 63, 75,
75, 75, 75, 75, 75, 0, 0, 45,
0, 0, 45, 0, 0, 45, 0, 0,
45, 0, 0, 45, 0, 0, 45, 0,
0, 45, 0, 0, 45, 0, 0, 45,
0, 0, 45, 0, 0, 45, 0, 0,
45, 0, 0, 45, 0, 0, 45, 11,
0, 45, 11, 0, 45, 11, 0, 0,
45, 0, 0, 45, 0, 0, 0, 45,
0, 0, 45, 0, 0, 45, 0, 0,
45, 0, 0, 45, 0, 0, 45, 0,
45, 0, 0, 45, 0, 0, 45, 0,
0, 45, 0, 0, 45, 0, 0, 45,
0, 0, 45, 0, 0, 0, 45, 0,
0, 45, 0, 45, 0, 0, 45, 0,
0, 45, 11, 0, 45, 0, 0, 45,
0, 0, 45, 0, 0, 45, 0, 0,
0, 45, 0, 0, 45, 0, 45, 0,
0, 45, 0, 0, 45, 0, 0, 0,
45, 0, 0, 45, 0, 45, 0, 0,
45, 0, 0, 45, 0, 0, 0, 37,
0, 37, 0, 37, 0, 37, 0, 37,
0, 37, 0, 37, 0, 37, 122, 48,
45, 0, 45, 0, 72, 0, 0, 0,
37, 0, 37, 0, 37, 0, 37, 0,
37, 0, 37, 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, 13, 0, 0,
45, 0, 0, 45, 0, 0, 0, 45,
0, 0, 45, 0, 0, 45, 0, 0,
45, 0, 0, 45, 0, 0, 45, 0,
45, 0, 0, 45, 0, 0, 45, 0,
0, 45, 0, 0, 45, 0, 0, 45,
0, 0, 45, 0, 0, 0, 45, 0,
0, 45, 0, 45, 0, 0, 45, 0,
0, 45, 13, 0, 45, 0, 0, 45,
0, 0, 45, 0, 0, 45, 0, 0,
0, 45, 0, 0, 45, 0, 45, 0,
0, 45, 0, 0, 45, 0, 0, 0,
45, 0, 0, 45, 0, 45, 0, 0,
45, 0, 0, 45, 0, 0, 0, 37,
0, 37, 0, 0, 0, 37, 45, 31,
78, 31, 31, 33, 0, 45, 0, 33,
0, 0, 45, 0, 84, 81, 35, 87,
81, 87, 87, 87, 87, 87, 87, 90,
0, 37, 45, 15, 0, 0, 45, 0,
0, 45, 0, 0, 0, 45, 0, 0,
45, 0, 45, 0, 0, 45, 0, 0,
45, 0, 0, 45, 0, 0, 0, 45,
0, 0, 45, 0, 45, 0, 0, 45,
0, 0, 45, 0, 0, 0, 45, 0,
0, 45, 0, 45, 0, 0, 45, 15,
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, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 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 = 289;
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/sk.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 613 "lib/gherkin/rb_lexer/sk.rb"
begin
p ||= 0
pe ||= data.length
cs = lexer_start
end
# line 140 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
# line 622 "lib/gherkin/rb_lexer/sk.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/sk.rb.rl"
begin
@content_start = p
@current_line = @line_number
end
# line 9 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
when 1 then
# line 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
begin
@current_line = @line_number
@start_col = p - @last_newline
end
# line 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
when 2 then
# line 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
begin
@content_start = p
end
# line 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
when 3 then
# line 23 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.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/sk.rb.rl"
when 4 then
# line 28 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.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/sk.rb.rl"
when 5 then
# line 34 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.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/sk.rb.rl"
when 6 then
# line 40 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.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/sk.rb.rl"
when 7 then
# line 46 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.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/sk.rb.rl"
when 8 then
# line 52 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.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/sk.rb.rl"
when 9 then
# line 58 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.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/sk.rb.rl"
when 10 then
# line 63 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.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/sk.rb.rl"
when 11 then
# line 69 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.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/sk.rb.rl"
when 12 then
# line 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
begin
@line_number += 1
end
# line 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
when 13 then
# line 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
begin
@last_newline = p + 1
end
# line 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
when 14 then
# line 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
begin
@keyword_start ||= p
end
# line 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
when 15 then
# line 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.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/sk.rb.rl"
when 16 then
# line 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
begin
@next_keyword_start = p
end
# line 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
when 17 then
# line 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
begin
p = p - 1
current_row = []
@current_line = @line_number
end
# line 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
when 18 then
# line 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
begin
@content_start = p
end
# line 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
when 19 then
# line 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.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/sk.rb.rl"
when 20 then
# line 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
begin
@listener.row(current_row, @current_line)
end
# line 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.rb.rl"
when 21 then
# line 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/sk.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/sk.rb.rl"
# line 883 "lib/gherkin/rb_lexer/sk.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/sk.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/sk.rb.rl"
# line 923 "lib/gherkin/rb_lexer/sk.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/sk.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