# line 1 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
require 'gherkin/core_ext/array'
module Gherkin
module RbLexer
class Cs #:nodoc:
# line 125 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
def initialize(listener)
@listener = listener
# line 16 "lib/gherkin/rb_lexer/cs.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, 92, 95, 98, 101, 104,
107, 109, 110, 112, 113, 114, 115, 116,
117, 118, 119, 120, 121, 122, 123, 137,
139, 141, 143, 145, 147, 149, 151, 153,
155, 157, 159, 161, 163, 165, 167, 183,
184, 185, 186, 187, 188, 189, 190, 191,
192, 193, 194, 195, 196, 197, 198, 199,
200, 201, 202, 203, 215, 217, 219, 221,
223, 225, 227, 229, 231, 233, 235, 237,
239, 241, 243, 245, 248, 265, 266, 267,
268, 269, 270, 271, 272, 275, 276, 277,
278, 279, 280, 281, 282, 283, 284, 285,
286, 291, 292, 295, 296, 297, 298, 299,
300, 301, 302, 303, 304, 305, 317, 319,
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, 395, 397, 399,
401, 403, 405, 407, 409, 411, 413, 415,
417, 419, 421, 423, 425, 427, 429, 431,
433, 435, 436, 437, 438, 439, 440, 441,
442, 443, 444, 445, 446, 447, 448, 449,
450, 451, 452, 466, 468, 470, 472, 474,
476, 478, 480, 482, 484, 486, 488, 490,
492, 494, 496, 499, 516, 517, 518, 519,
520, 521, 525, 530, 531, 536, 552, 554,
556, 558, 560, 562, 564, 566, 568, 570,
572, 574, 576, 578, 580, 582, 584, 586,
588, 590, 592, 594, 596, 598, 600, 602,
604, 606, 608, 610, 612, 615, 617, 619,
621, 623, 625, 627, 629, 631, 633, 635,
637, 639, 640, 641, 642, 643, 644, 646,
648, 650, 652, 654, 657, 659, 661, 663,
665, 667, 669, 671, 673, 675, 677, 679,
681, 683, 686, 703, 704, 705, 706, 707,
708, 710, 712, 714, 716, 718, 720, 722,
724, 726, 728, 730, 732, 734, 736, 738,
740, 742, 744, 746, 748, 750, 752, 754,
756, 758, 760, 762, 764, 766, 768, 771,
773, 775, 777, 779, 781, 783, 785, 787,
789, 791, 793, 795
]
class << self
attr_accessor :_lexer_trans_keys
private :_lexer_trans_keys, :_lexer_trans_keys=
end
self._lexer_trans_keys = [
10, 32, 34, 35, 37, 42, 64, 65,
75, 78, 79, 80, 83, 124, 9, 13,
34, 34, 10, 32, 9, 13, 10, 32,
34, 9, 13, 10, 32, 34, 9, 13,
10, 32, 34, 9, 13, 10, 32, 34,
9, 13, 10, 32, 9, 13, 10, 32,
9, 13, 10, 13, 10, 95, 70, 69,
65, 84, 85, 82, 69, 95, 69, 78,
68, 95, 37, 32, 10, 10, 13, 13,
32, 64, 9, 10, 9, 10, 13, 32,
64, 11, 12, 10, 32, 64, 9, 13,
32, 108, 10, 116, 10, 13, 97, 10,
13, 107, -61, 10, 13, -87, 10, 13,
10, 13, 32, 10, 13, 101, 100, 111,
121, -59, -66, 110, 116, 101, 120, 116,
58, 10, 10, 10, 32, 35, 37, 42,
64, 65, 75, 78, 79, 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, 10, 32, 10,
32, 34, 35, 37, 42, 64, 65, 75,
78, 79, 80, 83, 124, 9, 13, -61,
-95, -60, -115, 114, 116, 32, 83, 99,
-61, -87, 110, -61, -95, -59, -103, 101,
58, 10, 10, 10, 32, 35, 37, 42,
64, 65, 75, 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, 10, 32, 10, 32, 108,
10, 32, 34, 35, 37, 42, 64, 65,
75, 78, 79, 80, 83, 116, 124, 9,
13, 115, 110, 111, 118, 97, 32, 115,
-59, 97, 111, -103, -61, -83, 107, 108,
97, 100, 121, 58, 10, 10, 10, 32,
124, 9, 13, 107, -59, 107, 122, -66,
97, 100, 97, 118, 101, 107, 58, 10,
10, 10, 32, 35, 37, 64, 75, 78,
79, 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, 10, 111, 10, 110, 10, 116, 10,
101, 10, 120, 10, 116, 10, 58, -61,
10, -95, 10, -60, 10, -115, 10, 10,
114, 10, 116, 10, 32, 10, 83, 10,
99, -61, 10, -87, 10, 10, 110, -61,
10, -95, 10, -59, 10, -103, 10, 10,
101, 10, 115, 10, 110, 10, 111, 10,
118, 10, 97, 10, 32, 10, 115, 10,
111, 10, 122, 10, 97, 10, 100, -61,
10, -83, 10, 10, 99, -61, 10, -87,
10, 10, 110, -61, 10, -95, 10, -59,
10, -103, 10, 117, 100, 97, 100, -61,
-83, 99, -61, -87, 110, -61, -95, -59,
-103, 58, 10, 10, 10, 32, 35, 37,
42, 64, 65, 75, 78, 79, 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, 10, 32,
10, 32, 108, 10, 32, 34, 35, 37,
42, 64, 65, 75, 78, 79, 80, 83,
116, 124, 9, 13, 97, 107, -61, -87,
32, 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, 79, 80, 83, 124, 9, 13,
10, 101, 10, 100, 10, 121, -59, 10,
-66, 10, -61, 10, -95, 10, -60, 10,
-115, 10, 10, 114, 10, 116, 10, 32,
10, 83, 10, 99, -61, 10, -87, 10,
10, 110, -61, 10, -95, 10, -59, 10,
-103, 10, 10, 101, 10, 58, 10, 115,
10, 110, 10, 111, 10, 118, 10, 97,
10, 32, 10, 115, 10, 97, 111, 10,
107, 10, 107, 10, 117, 10, 100, 10,
99, -61, 10, -87, 10, 10, 110, -61,
10, -95, 10, -59, 10, -103, 10, 97,
107, -61, -87, 32, 10, 101, 10, 100,
10, 121, -59, 10, -66, 10, 10, 97,
111, 10, 107, 10, 107, 10, 117, 10,
100, 10, 99, -61, 10, -87, 10, 10,
110, -61, 10, -95, 10, -59, 10, -103,
10, 10, 58, 10, 32, 108, 10, 32,
34, 35, 37, 42, 64, 65, 75, 78,
79, 80, 83, 116, 124, 9, 13, 97,
107, -61, -87, 32, 10, 101, 10, 100,
10, 121, -59, 10, -66, 10, -61, 10,
-95, 10, -60, 10, -115, 10, 10, 114,
10, 116, 10, 32, 10, 83, 10, 99,
-61, 10, -87, 10, 10, 110, -61, 10,
-95, 10, -59, 10, -103, 10, 10, 101,
10, 58, 10, 115, 10, 110, 10, 111,
10, 118, 10, 97, 10, 32, 10, 115,
10, 97, 111, 10, 107, 10, 107, 10,
117, 10, 100, 10, 99, -61, 10, -87,
10, 10, 110, -61, 10, -95, 10, -59,
10, -103, 10, 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, 2, 3, 3, 3, 3, 3,
2, 1, 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, 14, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 10, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 3, 15, 1, 1, 1,
1, 1, 1, 1, 3, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
3, 1, 3, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 10, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 12, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 3, 15, 1, 1, 1, 1,
1, 2, 3, 1, 3, 14, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 3, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 1, 1, 1, 1, 1, 2, 2,
2, 2, 2, 3, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 3, 15, 1, 1, 1, 1, 1,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 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, 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, 0, 0, 0, 0,
0, 0, 0, 1, 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, 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, 1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1, 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, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 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
]
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, 115, 119, 123, 127, 131,
135, 138, 140, 143, 145, 147, 149, 151,
153, 155, 157, 159, 161, 163, 165, 179,
182, 185, 188, 191, 194, 197, 200, 203,
206, 209, 212, 215, 218, 221, 224, 240,
242, 244, 246, 248, 250, 252, 254, 256,
258, 260, 262, 264, 266, 268, 270, 272,
274, 276, 278, 280, 292, 295, 298, 301,
304, 307, 310, 313, 316, 319, 322, 325,
328, 331, 334, 337, 341, 358, 360, 362,
364, 366, 368, 370, 372, 376, 378, 380,
382, 384, 386, 388, 390, 392, 394, 396,
398, 403, 405, 409, 411, 413, 415, 417,
419, 421, 423, 425, 427, 429, 441, 444,
447, 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, 561, 564,
567, 570, 573, 576, 579, 582, 585, 588,
591, 594, 597, 600, 603, 606, 609, 612,
615, 618, 620, 622, 624, 626, 628, 630,
632, 634, 636, 638, 640, 642, 644, 646,
648, 650, 652, 666, 669, 672, 675, 678,
681, 684, 687, 690, 693, 696, 699, 702,
705, 708, 711, 715, 732, 734, 736, 738,
740, 742, 746, 751, 753, 758, 774, 777,
780, 783, 786, 789, 792, 795, 798, 801,
804, 807, 810, 813, 816, 819, 822, 825,
828, 831, 834, 837, 840, 843, 846, 849,
852, 855, 858, 861, 864, 868, 871, 874,
877, 880, 883, 886, 889, 892, 895, 898,
901, 904, 906, 908, 910, 912, 914, 917,
920, 923, 926, 929, 933, 936, 939, 942,
945, 948, 951, 954, 957, 960, 963, 966,
969, 972, 976, 993, 995, 997, 999, 1001,
1003, 1006, 1009, 1012, 1015, 1018, 1021, 1024,
1027, 1030, 1033, 1036, 1039, 1042, 1045, 1048,
1051, 1054, 1057, 1060, 1063, 1066, 1069, 1072,
1075, 1078, 1081, 1084, 1087, 1090, 1093, 1097,
1100, 1103, 1106, 1109, 1112, 1115, 1118, 1121,
1124, 1127, 1130, 1133
]
class << self
attr_accessor :_lexer_trans_targs
private :_lexer_trans_targs, :_lexer_trans_targs=
end
self._lexer_trans_targs = [
1, 1, 2, 11, 13, 27, 30, 33,
42, 71, 109, 116, 207, 241, 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, 363, 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, 34, 41, 0,
0, 35, 29, 1, 12, 36, 29, 1,
12, 37, 29, 38, 1, 12, 29, 39,
1, 12, 29, 1, 12, 40, 29, 1,
12, 29, 27, 0, 43, 46, 0, 44,
0, 45, 0, 27, 0, 47, 0, 48,
0, 49, 0, 50, 0, 51, 0, 52,
0, 54, 53, 54, 53, 54, 54, 1,
55, 69, 1, 313, 321, 325, 343, 350,
355, 54, 53, 54, 56, 53, 54, 57,
53, 54, 58, 53, 54, 59, 53, 54,
60, 53, 54, 61, 53, 54, 62, 53,
54, 63, 53, 54, 64, 53, 54, 65,
53, 54, 66, 53, 54, 67, 53, 54,
68, 53, 54, 1, 53, 54, 70, 53,
1, 1, 2, 11, 13, 27, 30, 33,
42, 71, 109, 116, 207, 241, 1, 0,
72, 0, 73, 0, 74, 0, 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,
88, 0, 89, 0, 91, 90, 91, 90,
91, 91, 1, 92, 106, 1, 107, 295,
299, 304, 91, 90, 91, 93, 90, 91,
94, 90, 91, 95, 90, 91, 96, 90,
91, 97, 90, 91, 98, 90, 91, 99,
90, 91, 100, 90, 91, 101, 90, 91,
102, 90, 91, 103, 90, 91, 104, 90,
91, 105, 90, 91, 1, 90, 91, 70,
90, 91, 108, 294, 90, 1, 1, 2,
11, 13, 27, 30, 33, 42, 71, 109,
116, 207, 289, 241, 1, 0, 110, 0,
111, 0, 112, 0, 113, 0, 114, 0,
115, 0, 79, 0, 117, 129, 130, 0,
118, 0, 119, 0, 120, 0, 121, 0,
122, 0, 123, 0, 124, 0, 125, 0,
126, 0, 128, 127, 128, 127, 128, 128,
1, 128, 127, 27, 0, 131, 201, 203,
0, 132, 0, 133, 0, 134, 0, 135,
0, 136, 0, 137, 0, 138, 0, 139,
0, 141, 140, 141, 140, 141, 141, 1,
142, 1, 156, 163, 180, 187, 193, 141,
140, 141, 143, 140, 141, 144, 140, 141,
145, 140, 141, 146, 140, 141, 147, 140,
141, 148, 140, 141, 149, 140, 141, 150,
140, 141, 151, 140, 141, 152, 140, 141,
153, 140, 141, 154, 140, 141, 155, 140,
141, 1, 140, 141, 157, 140, 141, 158,
140, 141, 159, 140, 141, 160, 140, 141,
161, 140, 141, 162, 140, 141, 70, 140,
164, 141, 140, 165, 141, 140, 166, 141,
140, 167, 141, 140, 141, 168, 140, 141,
169, 140, 141, 170, 140, 141, 171, 140,
141, 172, 140, 173, 141, 140, 174, 141,
140, 141, 175, 140, 176, 141, 140, 177,
141, 140, 178, 141, 140, 179, 141, 140,
141, 162, 140, 141, 181, 140, 141, 182,
140, 141, 183, 140, 141, 184, 140, 141,
185, 140, 141, 186, 140, 141, 171, 140,
141, 188, 140, 141, 189, 140, 141, 190,
140, 141, 191, 140, 192, 141, 140, 162,
141, 140, 141, 194, 140, 195, 141, 140,
196, 141, 140, 141, 197, 140, 198, 141,
140, 199, 141, 140, 200, 141, 140, 162,
141, 140, 202, 0, 27, 0, 204, 0,
205, 0, 206, 0, 51, 0, 208, 0,
209, 0, 210, 0, 211, 0, 212, 0,
213, 0, 214, 0, 215, 0, 216, 0,
218, 217, 218, 217, 218, 218, 1, 219,
233, 1, 234, 247, 251, 269, 276, 281,
218, 217, 218, 220, 217, 218, 221, 217,
218, 222, 217, 218, 223, 217, 218, 224,
217, 218, 225, 217, 218, 226, 217, 218,
227, 217, 218, 228, 217, 218, 229, 217,
218, 230, 217, 218, 231, 217, 218, 232,
217, 218, 1, 217, 218, 70, 217, 218,
235, 246, 217, 1, 1, 2, 11, 13,
27, 30, 33, 42, 71, 109, 116, 207,
236, 241, 1, 0, 237, 0, 238, 0,
239, 0, 240, 0, 70, 0, 241, 242,
241, 0, 245, 244, 242, 244, 243, 242,
243, 245, 244, 242, 244, 243, 245, 245,
2, 11, 13, 27, 30, 33, 42, 71,
109, 116, 207, 241, 245, 0, 218, 233,
217, 218, 248, 217, 218, 249, 217, 250,
218, 217, 233, 218, 217, 252, 218, 217,
253, 218, 217, 254, 218, 217, 255, 218,
217, 218, 256, 217, 218, 257, 217, 218,
258, 217, 218, 259, 217, 218, 260, 217,
261, 218, 217, 262, 218, 217, 218, 263,
217, 264, 218, 217, 265, 218, 217, 266,
218, 217, 267, 218, 217, 218, 268, 217,
218, 70, 217, 218, 270, 217, 218, 271,
217, 218, 272, 217, 218, 273, 217, 218,
274, 217, 218, 275, 217, 218, 259, 217,
218, 277, 278, 217, 218, 233, 217, 218,
279, 217, 218, 280, 217, 218, 233, 217,
218, 282, 217, 283, 218, 217, 284, 218,
217, 218, 285, 217, 286, 218, 217, 287,
218, 217, 288, 218, 217, 268, 218, 217,
290, 0, 291, 0, 292, 0, 293, 0,
70, 0, 91, 106, 90, 91, 296, 90,
91, 297, 90, 298, 91, 90, 106, 91,
90, 91, 300, 301, 90, 91, 106, 90,
91, 302, 90, 91, 303, 90, 91, 106,
90, 91, 305, 90, 306, 91, 90, 307,
91, 90, 91, 308, 90, 309, 91, 90,
310, 91, 90, 311, 91, 90, 312, 91,
90, 91, 70, 90, 54, 314, 320, 53,
1, 1, 2, 11, 13, 27, 30, 33,
42, 71, 109, 116, 207, 315, 241, 1,
0, 316, 0, 317, 0, 318, 0, 319,
0, 70, 0, 54, 69, 53, 54, 322,
53, 54, 323, 53, 324, 54, 53, 69,
54, 53, 326, 54, 53, 327, 54, 53,
328, 54, 53, 329, 54, 53, 54, 330,
53, 54, 331, 53, 54, 332, 53, 54,
333, 53, 54, 334, 53, 335, 54, 53,
336, 54, 53, 54, 337, 53, 338, 54,
53, 339, 54, 53, 340, 54, 53, 341,
54, 53, 54, 342, 53, 54, 70, 53,
54, 344, 53, 54, 345, 53, 54, 346,
53, 54, 347, 53, 54, 348, 53, 54,
349, 53, 54, 333, 53, 54, 351, 352,
53, 54, 69, 53, 54, 353, 53, 54,
354, 53, 54, 69, 53, 54, 356, 53,
357, 54, 53, 358, 54, 53, 54, 359,
53, 360, 54, 53, 361, 54, 53, 362,
54, 53, 342, 54, 53, 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,
37, 48, 48, 97, 17, 0, 0, 97,
17, 0, 0, 0, 97, 17, 0, 0,
97, 17, 0, 97, 17, 0, 0, 97,
17, 48, 0, 37, 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, 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,
113, 25, 51, 48, 25, 54, 48, 54,
54, 54, 54, 54, 54, 57, 25, 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, 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, 15, 0, 0, 113, 25, 51,
48, 25, 54, 48, 54, 54, 54, 54,
54, 54, 0, 57, 25, 37, 0, 37,
0, 37, 0, 37, 0, 37, 0, 37,
0, 37, 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,
72, 0, 0, 0, 37, 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, 60,
27, 60, 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, 9, 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, 0, 45, 0, 0, 45,
0, 45, 0, 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, 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, 45, 0,
0, 45, 0, 45, 0, 0, 0, 45,
0, 0, 45, 0, 0, 45, 0, 0,
45, 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,
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, 113, 25, 51, 48, 25,
54, 48, 54, 54, 54, 54, 54, 54,
0, 57, 25, 37, 0, 37, 0, 37,
0, 37, 0, 37, 13, 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, 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,
0, 45, 0, 0, 45, 0, 45, 0,
0, 0, 45, 0, 0, 45, 0, 0,
45, 0, 0, 45, 0, 45, 0, 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, 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, 45, 0, 0,
45, 0, 0, 45, 0, 0, 45, 0,
0, 37, 0, 37, 0, 37, 0, 37,
15, 37, 45, 0, 0, 45, 0, 0,
45, 0, 0, 0, 45, 0, 0, 45,
0, 45, 0, 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, 45, 0,
0, 45, 0, 0, 45, 0, 0, 45,
0, 45, 15, 0, 45, 11, 0, 0,
113, 25, 51, 48, 25, 54, 48, 54,
54, 54, 54, 54, 54, 0, 57, 25,
37, 0, 37, 0, 37, 0, 37, 0,
37, 11, 37, 45, 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, 0, 45, 0,
0, 45, 0, 45, 0, 0, 0, 45,
0, 0, 45, 0, 0, 45, 0, 0,
45, 0, 45, 0, 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,
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, 45, 0, 0, 45, 0, 0,
45, 0, 0, 45, 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, 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 = 363;
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/cs.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 740 "lib/gherkin/rb_lexer/cs.rb"
begin
p ||= 0
pe ||= data.length
cs = lexer_start
end
# line 140 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
# line 749 "lib/gherkin/rb_lexer/cs.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/cs.rb.rl"
begin
@content_start = p
@current_line = @line_number
end
# line 9 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
when 1 then
# line 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
begin
@current_line = @line_number
@start_col = p - @last_newline
end
# line 14 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
when 2 then
# line 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
begin
@content_start = p
end
# line 19 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
when 3 then
# line 23 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.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/cs.rb.rl"
when 4 then
# line 28 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.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/cs.rb.rl"
when 5 then
# line 34 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.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/cs.rb.rl"
when 6 then
# line 40 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.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/cs.rb.rl"
when 7 then
# line 46 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.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/cs.rb.rl"
when 8 then
# line 52 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.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/cs.rb.rl"
when 9 then
# line 58 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.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/cs.rb.rl"
when 10 then
# line 63 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.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/cs.rb.rl"
when 11 then
# line 69 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.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/cs.rb.rl"
when 12 then
# line 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
begin
@line_number += 1
end
# line 75 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
when 13 then
# line 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
begin
@last_newline = p + 1
end
# line 79 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
when 14 then
# line 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
begin
@keyword_start ||= p
end
# line 83 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
when 15 then
# line 87 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.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/cs.rb.rl"
when 16 then
# line 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
begin
@next_keyword_start = p
end
# line 92 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
when 17 then
# line 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
begin
p = p - 1
current_row = []
@current_line = @line_number
end
# line 96 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
when 18 then
# line 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
begin
@content_start = p
end
# line 102 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
when 19 then
# line 106 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.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/cs.rb.rl"
when 20 then
# line 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
begin
@listener.row(current_row, @current_line)
end
# line 111 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.rb.rl"
when 21 then
# line 115 "/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/cs.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/cs.rb.rl"
# line 1010 "lib/gherkin/rb_lexer/cs.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/cs.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/cs.rb.rl"
# line 1050 "lib/gherkin/rb_lexer/cs.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/cs.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