Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
gherkin.lexer.i18n.CS Maven / Gradle / Ivy
// line 1 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
package gherkin.lexer.i18n;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.ArrayList;
import java.util.regex.Pattern;
import gherkin.lexer.Lexer;
import gherkin.lexer.Listener;
import gherkin.lexer.LexingError;
public class CS implements Lexer {
// line 150 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
private final Listener listener;
public CS(Listener listener) {
this.listener = listener;
}
// line 26 "java/src/main/java/gherkin/lexer/i18n/CS.java"
private static byte[] init__lexer_actions_0()
{
return new byte [] {
0, 1, 0, 1, 1, 1, 2, 1, 3, 1, 4, 1,
5, 1, 6, 1, 7, 1, 8, 1, 9, 1, 10, 1,
11, 1, 12, 1, 13, 1, 16, 1, 17, 1, 18, 1,
19, 1, 20, 1, 21, 1, 22, 1, 23, 2, 2, 18,
2, 3, 4, 2, 13, 0, 2, 14, 15, 2, 17, 0,
2, 17, 1, 2, 17, 16, 2, 17, 19, 2, 18, 6,
2, 18, 7, 2, 18, 8, 2, 18, 9, 2, 18, 10,
2, 18, 16, 2, 20, 21, 2, 22, 0, 2, 22, 1,
2, 22, 16, 2, 22, 19, 3, 4, 14, 15, 3, 5,
14, 15, 3, 11, 14, 15, 3, 12, 14, 15, 3, 13,
14, 15, 3, 14, 15, 18, 3, 17, 0, 11, 3, 17,
14, 15, 4, 2, 14, 15, 18, 4, 3, 4, 14, 15,
4, 17, 0, 14, 15, 5, 17, 0, 11, 14, 15
};
}
private static final byte _lexer_actions[] = init__lexer_actions_0();
private static short[] init__lexer_key_offsets_0()
{
return new short [] {
0, 0, 17, 18, 19, 35, 36, 37, 39, 41, 46, 51,
56, 61, 65, 69, 71, 72, 73, 74, 75, 76, 77, 78,
79, 80, 81, 82, 83, 84, 85, 86, 87, 89, 91, 96,
103, 108, 110, 113, 116, 119, 122, 125, 128, 129, 131, 132,
133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 156, 158,
160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180, 182,
184, 186, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211,
212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 234,
236, 238, 240, 242, 244, 246, 248, 250, 252, 254, 256, 258,
260, 262, 264, 267, 284, 285, 286, 287, 288, 289, 290, 291,
294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305,
312, 314, 316, 318, 320, 322, 324, 326, 328, 330, 332, 333,
336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 358,
360, 362, 364, 366, 368, 370, 372, 374, 376, 378, 380, 382,
384, 386, 388, 390, 392, 394, 396, 398, 400, 402, 404, 406,
408, 410, 412, 414, 416, 418, 420, 422, 424, 426, 428, 430,
432, 434, 436, 438, 440, 442, 444, 446, 448, 451, 453, 455,
457, 459, 461, 463, 465, 467, 470, 472, 474, 476, 478, 480,
482, 484, 486, 488, 490, 492, 494, 496, 498, 500, 502, 504,
506, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518,
519, 520, 521, 522, 523, 524, 525, 539, 541, 543, 545, 547,
549, 551, 553, 555, 557, 559, 561, 563, 565, 567, 569, 572,
589, 590, 591, 592, 593, 594, 598, 604, 607, 609, 615, 631,
633, 636, 638, 640, 642, 644, 646, 648, 650, 652, 654, 656,
658, 660, 662, 664, 666, 668, 670, 672, 674, 676, 678, 680,
682, 684, 686, 688, 690, 692, 694, 696, 698, 700, 702, 705,
707, 711, 713, 715, 717, 719, 721, 723, 725, 727, 729, 731,
733, 735, 737, 739, 741, 743, 745, 747, 749, 751, 753, 754,
755, 756, 757, 758, 760, 762, 764, 766, 768, 771, 773, 776,
778, 780, 782, 784, 786, 788, 790, 792, 794, 796, 798, 800,
802, 804, 806, 808, 810, 812, 815, 832, 833, 834, 835, 836,
837, 839, 841, 843, 845, 847, 849, 851, 853, 855, 857, 859,
861, 863, 865, 867, 869, 871, 873, 875, 877, 879, 881, 883,
885, 887, 889, 891, 893, 895, 897, 900, 902, 905, 907, 909,
911, 913, 915, 917, 919, 921, 923, 925, 927, 929, 931, 933,
935, 937, 939
};
}
private static final short _lexer_key_offsets[] = init__lexer_key_offsets_0();
private static byte[] init__lexer_trans_keys_0()
{
return new byte [] {
-17, 10, 32, 34, 35, 37, 42, 64, 65, 75, 78, 79,
80, 83, 124, 9, 13, -69, -65, 10, 32, 34, 35, 37,
42, 64, 65, 75, 78, 79, 80, 83, 124, 9, 13, 34,
34, 10, 13, 10, 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, 13, 10, 13, 13, 32, 64, 9, 10,
9, 10, 13, 32, 64, 11, 12, 10, 32, 64, 9, 13,
32, 108, 10, 13, 116, 10, 13, 97, 10, 13, 107, -61,
10, 13, -87, 10, 13, 10, 13, 32, 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, 35, 80, 124, 9, 13,
10, 111, -59, 10, -66, 10, 10, 97, 10, 100, 10, 97,
10, 118, 10, 101, 10, 107, 10, 58, 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, -59, 10, 111, -103, 10, -61, 10, -83,
10, 10, 107, 10, 108, 10, 97, 10, 100, 10, 121, -59,
10, 122, -66, 10, 10, 97, 10, 100, 10, 97, 10, 118,
10, 101, 10, 107, 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,
92, 124, 9, 13, 10, 92, 124, 10, 92, 10, 32, 92,
124, 9, 13, 10, 32, 34, 35, 37, 42, 64, 65, 75,
78, 79, 80, 83, 124, 9, 13, 10, 101, 10, 100, 111,
10, 121, -59, 10, -66, 10, 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, 97, 111, 10, 107, -59,
10, 107, 122, -66, 10, 10, 97, 10, 100, 10, 97, 10,
118, 10, 101, 10, 107, 10, 117, 10, 100, 10, 97, 10,
100, -61, 10, -83, 10, 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, -59, 10, 107, -66, 10, 10, 97,
10, 100, 10, 97, 10, 118, 10, 101, 10, 107, 10, 58,
10, 117, 10, 100, 10, 99, -61, 10, -87, 10, 10, 110,
-61, 10, -95, 10, -59, 10, -103, 10, 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, -59, 10, 107, -66, 10, 10, 97, 10, 100, 10,
97, 10, 118, 10, 101, 10, 107, 10, 117, 10, 100, 10,
99, -61, 10, -87, 10, 10, 110, -61, 10, -95, 10, -59,
10, -103, 10, 0
};
}
private static final byte _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0, 0, 0, 0, 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, 0, 1, 1, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 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
};
}
private static final byte _lexer_range_lengths[] = init__lexer_range_lengths_0();
private static short[] init__lexer_index_offsets_0()
{
return new short [] {
0, 0, 17, 19, 21, 37, 39, 41, 44, 47, 52, 57,
62, 67, 71, 75, 78, 80, 82, 84, 86, 88, 90, 92,
94, 96, 98, 100, 102, 104, 106, 108, 110, 113, 116, 121,
128, 133, 136, 140, 144, 148, 152, 156, 160, 162, 165, 167,
169, 171, 173, 175, 177, 179, 181, 183, 185, 187, 201, 204,
207, 210, 213, 216, 219, 222, 225, 228, 231, 234, 237, 240,
243, 246, 262, 264, 266, 268, 270, 272, 274, 276, 278, 280,
282, 284, 286, 288, 290, 292, 294, 296, 298, 300, 302, 314,
317, 320, 323, 326, 329, 332, 335, 338, 341, 344, 347, 350,
353, 356, 359, 363, 380, 382, 384, 386, 388, 390, 392, 394,
398, 400, 402, 404, 406, 408, 410, 412, 414, 416, 418, 420,
427, 430, 433, 436, 439, 442, 445, 448, 451, 454, 457, 459,
463, 465, 467, 469, 471, 473, 475, 477, 479, 481, 483, 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, 621, 624, 627, 630, 634, 637, 640,
643, 646, 649, 652, 655, 658, 662, 665, 668, 671, 674, 677,
680, 683, 686, 689, 692, 695, 698, 701, 704, 707, 710, 713,
716, 719, 721, 723, 725, 727, 729, 731, 733, 735, 737, 739,
741, 743, 745, 747, 749, 751, 753, 767, 770, 773, 776, 779,
782, 785, 788, 791, 794, 797, 800, 803, 806, 809, 812, 816,
833, 835, 837, 839, 841, 843, 847, 853, 857, 860, 866, 882,
885, 889, 892, 895, 898, 901, 904, 907, 910, 913, 916, 919,
922, 925, 928, 931, 934, 937, 940, 943, 946, 949, 952, 955,
958, 961, 964, 967, 970, 973, 976, 979, 982, 985, 988, 992,
995, 1000, 1003, 1006, 1009, 1012, 1015, 1018, 1021, 1024, 1027, 1030,
1033, 1036, 1039, 1042, 1045, 1048, 1051, 1054, 1057, 1060, 1063, 1065,
1067, 1069, 1071, 1073, 1076, 1079, 1082, 1085, 1088, 1092, 1095, 1099,
1102, 1105, 1108, 1111, 1114, 1117, 1120, 1123, 1126, 1129, 1132, 1135,
1138, 1141, 1144, 1147, 1150, 1153, 1157, 1174, 1176, 1178, 1180, 1182,
1184, 1187, 1190, 1193, 1196, 1199, 1202, 1205, 1208, 1211, 1214, 1217,
1220, 1223, 1226, 1229, 1232, 1235, 1238, 1241, 1244, 1247, 1250, 1253,
1256, 1259, 1262, 1265, 1268, 1271, 1274, 1278, 1281, 1285, 1288, 1291,
1294, 1297, 1300, 1303, 1306, 1309, 1312, 1315, 1318, 1321, 1324, 1327,
1330, 1333, 1336
};
}
private static final short _lexer_index_offsets[] = init__lexer_index_offsets_0();
private static short[] init__lexer_indicies_0()
{
return new short [] {
1, 3, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 2, 0, 16, 0, 2, 0, 3, 2, 4,
5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 2,
0, 17, 0, 18, 0, 20, 21, 19, 23, 24, 22, 27,
26, 28, 26, 25, 31, 30, 32, 30, 29, 31, 30, 33,
30, 29, 31, 30, 34, 30, 29, 36, 35, 35, 0, 3,
37, 37, 0, 39, 40, 38, 3, 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,
55, 0, 57, 58, 56, 60, 61, 59, 0, 0, 0, 0,
62, 63, 64, 63, 63, 66, 65, 62, 3, 67, 8, 67,
0, 68, 69, 0, 57, 58, 70, 56, 60, 61, 71, 59,
60, 61, 72, 59, 73, 60, 61, 59, 74, 60, 61, 59,
60, 61, 55, 59, 75, 0, 76, 77, 0, 78, 0, 79,
0, 75, 0, 80, 0, 81, 0, 82, 0, 83, 0, 84,
0, 85, 0, 87, 86, 89, 88, 89, 90, 91, 92, 93,
91, 94, 95, 96, 97, 98, 99, 90, 88, 89, 100, 88,
89, 101, 88, 89, 102, 88, 89, 103, 88, 89, 104, 88,
89, 105, 88, 89, 106, 88, 89, 107, 88, 89, 108, 88,
89, 109, 88, 89, 110, 88, 89, 111, 88, 89, 112, 88,
89, 113, 88, 89, 114, 88, 116, 115, 117, 118, 119, 120,
121, 122, 123, 124, 125, 126, 127, 128, 115, 0, 129, 0,
130, 0, 131, 0, 132, 0, 133, 0, 134, 0, 135, 0,
136, 0, 137, 0, 138, 0, 139, 0, 140, 0, 141, 0,
142, 0, 143, 0, 144, 0, 145, 0, 146, 0, 148, 147,
150, 149, 150, 151, 152, 153, 154, 152, 155, 156, 157, 158,
151, 149, 150, 159, 149, 150, 160, 149, 150, 161, 149, 150,
162, 149, 150, 163, 149, 150, 164, 149, 150, 165, 149, 150,
166, 149, 150, 167, 149, 150, 168, 149, 150, 169, 149, 150,
170, 149, 150, 171, 149, 150, 172, 149, 150, 173, 149, 150,
174, 175, 149, 116, 115, 117, 118, 119, 120, 121, 122, 123,
124, 125, 126, 127, 176, 128, 115, 0, 177, 0, 178, 0,
179, 0, 180, 0, 181, 0, 182, 0, 136, 0, 183, 184,
185, 0, 186, 0, 187, 0, 188, 0, 189, 0, 190, 0,
191, 0, 192, 0, 193, 0, 194, 0, 196, 195, 198, 197,
198, 199, 200, 201, 200, 199, 197, 198, 202, 197, 203, 198,
197, 204, 198, 197, 198, 205, 197, 198, 206, 197, 198, 207,
197, 198, 208, 197, 198, 209, 197, 198, 210, 197, 198, 211,
197, 75, 0, 212, 213, 214, 0, 215, 0, 216, 0, 217,
0, 218, 0, 219, 0, 220, 0, 221, 0, 222, 0, 224,
223, 226, 225, 226, 227, 228, 229, 228, 230, 231, 232, 233,
234, 227, 225, 226, 235, 225, 226, 236, 225, 226, 237, 225,
226, 238, 225, 226, 239, 225, 226, 240, 225, 226, 241, 225,
226, 242, 225, 226, 243, 225, 226, 244, 225, 226, 245, 225,
226, 246, 225, 226, 247, 225, 226, 248, 225, 226, 249, 225,
226, 250, 225, 226, 251, 225, 226, 252, 225, 226, 253, 225,
226, 254, 225, 226, 255, 225, 256, 226, 225, 257, 226, 225,
258, 226, 225, 259, 226, 225, 226, 260, 225, 226, 261, 225,
226, 262, 225, 226, 263, 225, 226, 264, 225, 265, 226, 225,
266, 226, 225, 226, 267, 225, 268, 226, 225, 269, 226, 225,
270, 226, 225, 271, 226, 225, 226, 254, 225, 226, 272, 225,
226, 273, 225, 226, 274, 225, 226, 275, 225, 226, 276, 225,
226, 277, 225, 226, 263, 225, 278, 226, 279, 225, 280, 226,
225, 281, 226, 225, 282, 226, 225, 226, 283, 225, 226, 284,
225, 226, 285, 225, 226, 286, 225, 226, 254, 225, 287, 226,
288, 225, 289, 226, 225, 226, 290, 225, 226, 291, 225, 226,
292, 225, 226, 293, 225, 226, 294, 225, 226, 254, 225, 226,
295, 225, 226, 296, 225, 297, 226, 225, 254, 226, 225, 226,
298, 225, 299, 226, 225, 300, 226, 225, 226, 301, 225, 302,
226, 225, 303, 226, 225, 304, 226, 225, 254, 226, 225, 305,
0, 75, 0, 306, 0, 307, 0, 308, 0, 84, 0, 309,
0, 310, 0, 311, 0, 312, 0, 313, 0, 314, 0, 315,
0, 316, 0, 317, 0, 319, 318, 321, 320, 321, 322, 323,
324, 325, 323, 326, 327, 328, 329, 330, 331, 322, 320, 321,
332, 320, 321, 333, 320, 321, 334, 320, 321, 335, 320, 321,
336, 320, 321, 337, 320, 321, 338, 320, 321, 339, 320, 321,
340, 320, 321, 341, 320, 321, 342, 320, 321, 343, 320, 321,
344, 320, 321, 345, 320, 321, 346, 320, 321, 347, 348, 320,
116, 115, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126,
127, 349, 128, 115, 0, 350, 0, 351, 0, 352, 0, 353,
0, 346, 0, 354, 355, 354, 0, 358, 357, 359, 360, 357,
356, 0, 362, 363, 361, 0, 362, 361, 358, 364, 362, 363,
364, 361, 358, 365, 366, 367, 368, 369, 370, 371, 372, 373,
374, 375, 376, 377, 365, 0, 321, 378, 320, 321, 379, 380,
320, 321, 381, 320, 382, 321, 320, 378, 321, 320, 321, 383,
320, 321, 384, 320, 321, 385, 320, 321, 386, 320, 321, 387,
320, 321, 346, 320, 388, 321, 320, 389, 321, 320, 390, 321,
320, 391, 321, 320, 321, 392, 320, 321, 393, 320, 321, 394,
320, 321, 395, 320, 321, 396, 320, 397, 321, 320, 398, 321,
320, 321, 399, 320, 400, 321, 320, 401, 321, 320, 402, 321,
320, 403, 321, 320, 321, 387, 320, 321, 404, 320, 321, 405,
320, 321, 406, 320, 321, 407, 320, 321, 408, 320, 321, 409,
320, 321, 395, 320, 321, 410, 411, 320, 321, 378, 320, 412,
321, 413, 414, 320, 415, 321, 320, 321, 416, 320, 321, 417,
320, 321, 418, 320, 321, 419, 320, 321, 420, 320, 321, 387,
320, 321, 421, 320, 321, 378, 320, 321, 422, 320, 321, 423,
320, 424, 321, 320, 387, 321, 320, 321, 425, 320, 426, 321,
320, 427, 321, 320, 321, 428, 320, 429, 321, 320, 430, 321,
320, 431, 321, 320, 387, 321, 320, 432, 0, 433, 0, 434,
0, 435, 0, 173, 0, 150, 436, 149, 150, 437, 149, 150,
438, 149, 439, 150, 149, 436, 150, 149, 150, 440, 441, 149,
150, 436, 149, 442, 150, 443, 149, 444, 150, 149, 150, 445,
149, 150, 446, 149, 150, 447, 149, 150, 448, 149, 150, 449,
149, 150, 450, 149, 150, 173, 149, 150, 451, 149, 150, 436,
149, 150, 452, 149, 453, 150, 149, 454, 150, 149, 150, 455,
149, 456, 150, 149, 457, 150, 149, 458, 150, 149, 450, 150,
149, 89, 459, 460, 88, 116, 115, 117, 118, 119, 120, 121,
122, 123, 124, 125, 126, 127, 461, 128, 115, 0, 462, 0,
463, 0, 464, 0, 465, 0, 114, 0, 89, 466, 88, 89,
467, 88, 89, 468, 88, 469, 89, 88, 466, 89, 88, 470,
89, 88, 471, 89, 88, 472, 89, 88, 473, 89, 88, 89,
474, 88, 89, 475, 88, 89, 476, 88, 89, 477, 88, 89,
478, 88, 479, 89, 88, 480, 89, 88, 89, 481, 88, 482,
89, 88, 483, 89, 88, 484, 89, 88, 485, 89, 88, 89,
486, 88, 89, 114, 88, 89, 487, 88, 89, 488, 88, 89,
489, 88, 89, 490, 88, 89, 491, 88, 89, 492, 88, 89,
477, 88, 89, 493, 494, 88, 89, 466, 88, 495, 89, 496,
88, 497, 89, 88, 89, 498, 88, 89, 499, 88, 89, 500,
88, 89, 501, 88, 89, 502, 88, 89, 486, 88, 89, 503,
88, 89, 466, 88, 89, 504, 88, 505, 89, 88, 506, 89,
88, 89, 507, 88, 508, 89, 88, 509, 89, 88, 510, 89,
88, 486, 89, 88, 511, 0
};
}
private static final short _lexer_indicies[] = init__lexer_indicies_0();
private static short[] init__lexer_trans_targs_0()
{
return new short [] {
0, 2, 4, 4, 5, 15, 17, 31, 34, 37, 45, 74,
112, 119, 235, 269, 3, 6, 7, 8, 9, 8, 8, 9,
8, 10, 10, 10, 11, 10, 10, 10, 11, 12, 13, 14,
4, 14, 15, 4, 16, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 422, 32, 33, 4, 16, 33,
4, 16, 35, 36, 4, 35, 34, 36, 38, 44, 39, 40,
41, 42, 43, 31, 46, 49, 47, 48, 50, 51, 52, 53,
54, 55, 56, 57, 56, 57, 57, 4, 58, 72, 365, 373,
377, 395, 402, 414, 59, 60, 61, 62, 63, 64, 65, 66,
67, 68, 69, 70, 71, 4, 73, 4, 4, 5, 15, 17,
31, 34, 37, 45, 74, 112, 119, 235, 269, 75, 76, 77,
78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, 92, 93, 94, 93, 94, 94, 4, 95, 109, 110,
340, 344, 357, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 4, 73, 111, 339, 334, 113, 114, 115,
116, 117, 118, 120, 142, 143, 121, 122, 123, 124, 125, 126,
127, 128, 129, 130, 131, 130, 131, 131, 4, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 73, 144, 229, 231, 145,
146, 147, 148, 149, 150, 151, 152, 153, 154, 153, 154, 154,
4, 155, 169, 176, 193, 200, 221, 156, 157, 158, 159, 160,
161, 162, 163, 164, 165, 166, 167, 168, 4, 170, 171, 172,
173, 174, 175, 73, 177, 178, 179, 180, 181, 182, 183, 184,
185, 186, 187, 188, 189, 190, 191, 192, 194, 195, 196, 197,
198, 199, 201, 209, 202, 203, 204, 205, 206, 207, 208, 210,
217, 211, 212, 213, 214, 215, 216, 218, 219, 220, 222, 223,
224, 225, 226, 227, 228, 230, 232, 233, 234, 236, 237, 238,
239, 240, 241, 242, 243, 244, 245, 246, 245, 246, 246, 4,
247, 261, 262, 276, 286, 303, 310, 326, 248, 249, 250, 251,
252, 253, 254, 255, 256, 257, 258, 259, 260, 4, 73, 263,
275, 264, 265, 266, 267, 268, 269, 270, 271, 273, 274, 272,
270, 271, 272, 270, 273, 274, 5, 15, 17, 31, 34, 37,
45, 74, 112, 119, 235, 269, 261, 277, 280, 278, 279, 281,
282, 283, 284, 285, 287, 288, 289, 290, 291, 292, 293, 294,
295, 296, 297, 298, 299, 300, 301, 302, 304, 305, 306, 307,
308, 309, 311, 312, 313, 320, 322, 314, 315, 316, 317, 318,
319, 321, 323, 324, 325, 327, 328, 329, 330, 331, 332, 333,
335, 336, 337, 338, 109, 341, 342, 343, 345, 346, 347, 355,
348, 349, 350, 351, 352, 353, 354, 356, 358, 359, 360, 361,
362, 363, 364, 366, 372, 367, 368, 369, 370, 371, 72, 374,
375, 376, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387,
388, 389, 390, 391, 392, 393, 394, 396, 397, 398, 399, 400,
401, 403, 404, 405, 412, 406, 407, 408, 409, 410, 411, 413,
415, 416, 417, 418, 419, 420, 421, 0
};
}
private static final short _lexer_trans_targs[] = init__lexer_trans_targs_0();
private static short[] init__lexer_trans_actions_0()
{
return new short [] {
43, 0, 0, 54, 3, 1, 0, 29, 1, 29, 29, 29,
29, 29, 29, 35, 0, 0, 0, 7, 139, 48, 0, 102,
9, 5, 45, 134, 45, 0, 33, 122, 33, 33, 0, 11,
106, 0, 0, 114, 25, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 57, 149, 126, 0,
110, 23, 0, 27, 118, 27, 51, 0, 0, 0, 57, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 57, 144, 0, 54, 0, 72, 33, 84, 84, 84,
84, 84, 84, 84, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 15, 15, 31, 130, 60, 57, 31,
63, 57, 63, 63, 63, 63, 63, 63, 66, 0, 0, 0,
0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 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0
};
}
private static final short _lexer_trans_actions[] = init__lexer_trans_actions_0();
private static short[] init__lexer_eof_actions_0()
{
return new short [] {
0, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43
};
}
private static final short _lexer_eof_actions[] = init__lexer_eof_actions_0();
static final int lexer_start = 1;
static final int lexer_first_final = 422;
static final int lexer_en_main = 1;
// line 159 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
public void scan(String source) {
String input = source + "\n%_FEATURE_END_%";
byte[] data = null;
try {
data = input.getBytes("UTF-8");
} catch(UnsupportedEncodingException e) {
throw new RuntimeException(e);
}
int cs, p = 0, pe = data.length;
int eof = pe;
int lineNumber = 1;
int lastNewline = 0;
int contentStart = -1;
int currentLine = -1;
int docstringContentTypeStart = -1;
int docstringContentTypeEnd = -1;
int startCol = -1;
int nextKeywordStart = -1;
int keywordStart = -1;
String keyword = null;
List currentRow = null;
// line 620 "java/src/main/java/gherkin/lexer/i18n/CS.java"
{
cs = lexer_start;
}
// line 185 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
// line 627 "java/src/main/java/gherkin/lexer/i18n/CS.java"
{
int _klen;
int _trans = 0;
int _acts;
int _nacts;
int _keys;
int _goto_targ = 0;
_goto: while (true) {
switch ( _goto_targ ) {
case 0:
if ( p == pe ) {
_goto_targ = 4;
continue _goto;
}
if ( cs == 0 ) {
_goto_targ = 5;
continue _goto;
}
case 1:
_match: do {
_keys = _lexer_key_offsets[cs];
_trans = _lexer_index_offsets[cs];
_klen = _lexer_single_lengths[cs];
if ( _klen > 0 ) {
int _lower = _keys;
int _mid;
int _upper = _keys + _klen - 1;
while (true) {
if ( _upper < _lower )
break;
_mid = _lower + ((_upper-_lower) >> 1);
if ( data[p] < _lexer_trans_keys[_mid] )
_upper = _mid - 1;
else if ( data[p] > _lexer_trans_keys[_mid] )
_lower = _mid + 1;
else {
_trans += (_mid - _keys);
break _match;
}
}
_keys += _klen;
_trans += _klen;
}
_klen = _lexer_range_lengths[cs];
if ( _klen > 0 ) {
int _lower = _keys;
int _mid;
int _upper = _keys + (_klen<<1) - 2;
while (true) {
if ( _upper < _lower )
break;
_mid = _lower + (((_upper-_lower) >> 1) & ~1);
if ( data[p] < _lexer_trans_keys[_mid] )
_upper = _mid - 2;
else if ( data[p] > _lexer_trans_keys[_mid+1] )
_lower = _mid + 2;
else {
_trans += ((_mid - _keys)>>1);
break _match;
}
}
_trans += _klen;
}
} while (false);
_trans = _lexer_indicies[_trans];
cs = _lexer_trans_targs[_trans];
if ( _lexer_trans_actions[_trans] != 0 ) {
_acts = _lexer_trans_actions[_trans];
_nacts = (int) _lexer_actions[_acts++];
while ( _nacts-- > 0 )
{
switch ( _lexer_actions[_acts++] )
{
case 0:
// line 16 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
contentStart = p;
currentLine = lineNumber;
if(keyword != null) {
startCol = p - lastNewline - (keyword.length() + 1);
}
}
break;
case 1:
// line 24 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
currentLine = lineNumber;
startCol = p - lastNewline;
}
break;
case 2:
// line 29 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
contentStart = p;
}
break;
case 3:
// line 33 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
docstringContentTypeStart = p;
}
break;
case 4:
// line 37 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
docstringContentTypeEnd = p;
}
break;
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
break;
case 6:
// line 47 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
String[] nameDescription = nameAndUnindentedDescription(startCol, keywordContent(data, p, eof, nextKeywordStart, contentStart));
listener.feature(keyword, nameDescription[0], nameDescription[1], currentLine);
if(nextKeywordStart != -1) p = nextKeywordStart - 1;
nextKeywordStart = -1;
}
break;
case 7:
// line 54 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
String[] nameDescription = nameAndUnindentedDescription(startCol, keywordContent(data, p, eof, nextKeywordStart, contentStart));
listener.background(keyword, nameDescription[0], nameDescription[1], currentLine);
if(nextKeywordStart != -1) p = nextKeywordStart - 1;
nextKeywordStart = -1;
}
break;
case 8:
// line 61 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
String[] nameDescription = nameAndUnindentedDescription(startCol, keywordContent(data, p, eof, nextKeywordStart, contentStart));
listener.scenario(keyword, nameDescription[0], nameDescription[1], currentLine);
if(nextKeywordStart != -1) p = nextKeywordStart - 1;
nextKeywordStart = -1;
}
break;
case 9:
// line 68 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
String[] nameDescription = nameAndUnindentedDescription(startCol, keywordContent(data, p, eof, nextKeywordStart, contentStart));
listener.scenarioOutline(keyword, nameDescription[0], nameDescription[1], currentLine);
if(nextKeywordStart != -1) p = nextKeywordStart - 1;
nextKeywordStart = -1;
}
break;
case 10:
// line 75 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
String[] nameDescription = nameAndUnindentedDescription(startCol, keywordContent(data, p, eof, nextKeywordStart, contentStart));
listener.examples(keyword, nameDescription[0], nameDescription[1], currentLine);
if(nextKeywordStart != -1) p = nextKeywordStart - 1;
nextKeywordStart = -1;
}
break;
case 11:
// line 82 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
listener.step(keyword, substring(data, contentStart, p).trim(), currentLine);
}
break;
case 12:
// line 86 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
listener.comment(substring(data, contentStart, p).trim(), lineNumber);
keywordStart = -1;
}
break;
case 13:
// line 91 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
listener.tag(substring(data, contentStart, p).trim(), currentLine);
keywordStart = -1;
}
break;
case 14:
// line 96 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
lineNumber++;
}
break;
case 15:
// line 100 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
lastNewline = p + 1;
}
break;
case 16:
// line 104 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
if(keywordStart == -1) keywordStart = p;
}
break;
case 17:
// line 108 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
keyword = substring(data, keywordStart, p).replaceFirst(":$","");
keywordStart = -1;
}
break;
case 18:
// line 113 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
nextKeywordStart = p;
}
break;
case 19:
// line 117 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
p = p - 1;
currentRow = new ArrayList();
currentLine = lineNumber;
}
break;
case 20:
// line 123 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
contentStart = p;
}
break;
case 21:
// line 127 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
.replaceAll("\\\\\\|", "|")
.replaceAll("\\\\n", "\n")
.replaceAll("\\\\\\\\", "\\\\")
);
}
break;
case 22:
// line 136 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
listener.row(currentRow, currentLine);
}
break;
case 23:
// line 140 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
if(cs < lexer_first_final) {
String content = currentLineContent(data, lastNewline);
throw new LexingError("Lexing error on line " + lineNumber + ": '" + content + "'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information.");
} else {
listener.eof();
}
}
break;
// line 888 "java/src/main/java/gherkin/lexer/i18n/CS.java"
}
}
}
case 2:
if ( cs == 0 ) {
_goto_targ = 5;
continue _goto;
}
if ( ++p != pe ) {
_goto_targ = 1;
continue _goto;
}
case 4:
if ( p == eof )
{
int __acts = _lexer_eof_actions[cs];
int __nacts = (int) _lexer_actions[__acts++];
while ( __nacts-- > 0 ) {
switch ( _lexer_actions[__acts++] ) {
case 23:
// line 140 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
if(cs < lexer_first_final) {
String content = currentLineContent(data, lastNewline);
throw new LexingError("Lexing error on line " + lineNumber + ": '" + content + "'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information.");
} else {
listener.eof();
}
}
break;
// line 920 "java/src/main/java/gherkin/lexer/i18n/CS.java"
}
}
}
case 5:
}
break; }
}
// line 186 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
}
private String keywordContent(byte[] data, int p, int eof, int nextKeywordStart, int contentStart) {
int endPoint = (nextKeywordStart == -1 || (p == eof)) ? p : nextKeywordStart;
return substring(data, contentStart, endPoint);
}
private String[] nameAndUnindentedDescription(int startCol, String text) {
String[] lines = text.split("\n");
String name = lines.length > 0 ? lines[0].trim() : "";
StringBuffer description = new StringBuffer();
for(int i = 1; i < lines.length; i++) {
description.append(lines[i]);
description.append("\n");
}
return new String[]{name, unindent(startCol+2, description.toString()).replaceAll("\\s+$", "")};
}
private String unindent(int startCol, String text) {
return Pattern.compile("^[\t ]{0," + startCol + "}", Pattern.MULTILINE).matcher(text).replaceAll("");
}
private String currentLineContent(byte[] data, int lastNewline) {
return substring(data, lastNewline, data.length).trim();
}
private String substring(byte[] data, int start, int end) {
try {
return new String(data, start, end-start, "utf-8");
} catch(java.io.UnsupportedEncodingException e) {
throw new RuntimeException("Internal error", e);
}
}
}