gherkin 2.11.1 → 2.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. data/History.md +7 -0
  2. data/README.md +1 -1
  3. data/ext/gherkin_lexer_bm/gherkin_lexer_bm.c +392 -353
  4. data/ext/gherkin_lexer_ru/gherkin_lexer_ru.c +684 -671
  5. data/gherkin.gemspec +7 -7
  6. data/lib/gherkin/README.md +7 -0
  7. data/lib/gherkin/i18n.json +646 -0
  8. data/lib/gherkin/i18n.rb +5 -10
  9. data/lib/gherkin/native/therubyracer.rb +3 -2
  10. data/lib/gherkin/parser/parser.rb +12 -11
  11. data/ragel/lexer.java.rl.erb +3 -3
  12. data/ragel/lexer.js.rl.erb +5 -5
  13. data/ragel/lexer.rb.rl.erb +4 -2
  14. data/spec/gherkin/native_lexer_spec.rb +29 -0
  15. data/tasks/compile.rake +2 -39
  16. data/tasks/ragel_task.rb +15 -3
  17. metadata +19 -69
  18. data/lib/gherkin/i18n.yml +0 -613
  19. data/lib/gherkin/js_lexer.rb +0 -20
  20. data/lib/gherkin/rb_lexer.rb +0 -8
  21. data/lib/gherkin/rb_lexer/README.rdoc +0 -8
  22. data/lib/gherkin/rb_lexer/ar.rb +0 -1165
  23. data/lib/gherkin/rb_lexer/bg.rb +0 -1377
  24. data/lib/gherkin/rb_lexer/bm.rb +0 -1081
  25. data/lib/gherkin/rb_lexer/ca.rb +0 -1305
  26. data/lib/gherkin/rb_lexer/cs.rb +0 -1157
  27. data/lib/gherkin/rb_lexer/cy_gb.rb +0 -1027
  28. data/lib/gherkin/rb_lexer/da.rb +0 -1043
  29. data/lib/gherkin/rb_lexer/de.rb +0 -1151
  30. data/lib/gherkin/rb_lexer/en.rb +0 -1151
  31. data/lib/gherkin/rb_lexer/en_au.rb +0 -971
  32. data/lib/gherkin/rb_lexer/en_lol.rb +0 -929
  33. data/lib/gherkin/rb_lexer/en_pirate.rb +0 -1205
  34. data/lib/gherkin/rb_lexer/en_scouse.rb +0 -1357
  35. data/lib/gherkin/rb_lexer/en_tx.rb +0 -1011
  36. data/lib/gherkin/rb_lexer/eo.rb +0 -990
  37. data/lib/gherkin/rb_lexer/es.rb +0 -1135
  38. data/lib/gherkin/rb_lexer/et.rb +0 -985
  39. data/lib/gherkin/rb_lexer/fi.rb +0 -964
  40. data/lib/gherkin/rb_lexer/fr.rb +0 -1223
  41. data/lib/gherkin/rb_lexer/he.rb +0 -1113
  42. data/lib/gherkin/rb_lexer/hr.rb +0 -1061
  43. data/lib/gherkin/rb_lexer/hu.rb +0 -1113
  44. data/lib/gherkin/rb_lexer/id.rb +0 -958
  45. data/lib/gherkin/rb_lexer/is.rb +0 -1115
  46. data/lib/gherkin/rb_lexer/it.rb +0 -1081
  47. data/lib/gherkin/rb_lexer/ja.rb +0 -1413
  48. data/lib/gherkin/rb_lexer/ko.rb +0 -1097
  49. data/lib/gherkin/rb_lexer/lt.rb +0 -1040
  50. data/lib/gherkin/rb_lexer/lu.rb +0 -1127
  51. data/lib/gherkin/rb_lexer/lv.rb +0 -1161
  52. data/lib/gherkin/rb_lexer/nl.rb +0 -1110
  53. data/lib/gherkin/rb_lexer/no.rb +0 -1055
  54. data/lib/gherkin/rb_lexer/pl.rb +0 -1452
  55. data/lib/gherkin/rb_lexer/pt.rb +0 -1425
  56. data/lib/gherkin/rb_lexer/ro.rb +0 -1159
  57. data/lib/gherkin/rb_lexer/ru.rb +0 -1749
  58. data/lib/gherkin/rb_lexer/sk.rb +0 -1041
  59. data/lib/gherkin/rb_lexer/sr_cyrl.rb +0 -1798
  60. data/lib/gherkin/rb_lexer/sr_latn.rb +0 -1289
  61. data/lib/gherkin/rb_lexer/sv.rb +0 -1065
  62. data/lib/gherkin/rb_lexer/tr.rb +0 -1087
  63. data/lib/gherkin/rb_lexer/uk.rb +0 -1641
  64. data/lib/gherkin/rb_lexer/uz.rb +0 -1371
  65. data/lib/gherkin/rb_lexer/vi.rb +0 -1193
  66. data/lib/gherkin/rb_lexer/zh_cn.rb +0 -1053
  67. data/lib/gherkin/rb_lexer/zh_tw.rb +0 -1047
  68. data/spec/gherkin/js_lexer_spec.rb +0 -23
  69. data/spec/gherkin/rb_lexer_spec.rb +0 -20
@@ -1,1289 +0,0 @@
1
-
2
- # line 1 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
3
- require 'gherkin/lexer/i18n_lexer'
4
-
5
- module Gherkin
6
- module RbLexer
7
- class Sr_latn #:nodoc:
8
-
9
- # line 123 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
10
-
11
-
12
- def initialize(listener)
13
- @listener = listener
14
-
15
- # line 16 "lib/gherkin/rb_lexer/sr_latn.rb"
16
- class << self
17
- attr_accessor :_lexer_actions
18
- private :_lexer_actions, :_lexer_actions=
19
- end
20
- self._lexer_actions = [
21
- 0, 1, 0, 1, 1, 1, 2, 1,
22
- 3, 1, 4, 1, 5, 1, 6, 1,
23
- 7, 1, 8, 1, 9, 1, 10, 1,
24
- 11, 1, 12, 1, 13, 1, 16, 1,
25
- 17, 1, 18, 1, 19, 1, 20, 1,
26
- 21, 1, 22, 1, 23, 2, 2, 18,
27
- 2, 3, 4, 2, 13, 0, 2, 14,
28
- 15, 2, 17, 0, 2, 17, 1, 2,
29
- 17, 16, 2, 17, 19, 2, 18, 6,
30
- 2, 18, 7, 2, 18, 8, 2, 18,
31
- 9, 2, 18, 10, 2, 18, 16, 2,
32
- 20, 21, 2, 22, 0, 2, 22, 1,
33
- 2, 22, 16, 2, 22, 19, 3, 4,
34
- 14, 15, 3, 5, 14, 15, 3, 11,
35
- 14, 15, 3, 12, 14, 15, 3, 13,
36
- 14, 15, 3, 14, 15, 18, 3, 17,
37
- 0, 11, 3, 17, 14, 15, 4, 2,
38
- 14, 15, 18, 4, 3, 4, 14, 15,
39
- 4, 17, 0, 14, 15, 5, 17, 0,
40
- 11, 14, 15
41
- ]
42
-
43
- class << self
44
- attr_accessor :_lexer_key_offsets
45
- private :_lexer_key_offsets, :_lexer_key_offsets=
46
- end
47
- self._lexer_key_offsets = [
48
- 0, 0, 20, 21, 22, 41, 42, 43,
49
- 45, 47, 52, 57, 62, 67, 71, 75,
50
- 77, 78, 79, 80, 81, 82, 83, 84,
51
- 85, 86, 87, 88, 89, 90, 91, 92,
52
- 93, 95, 97, 102, 109, 114, 115, 116,
53
- 117, 118, 119, 120, 121, 122, 123, 124,
54
- 125, 126, 127, 128, 129, 130, 131, 132,
55
- 145, 147, 149, 151, 153, 155, 157, 159,
56
- 161, 163, 165, 167, 169, 171, 173, 175,
57
- 177, 179, 181, 183, 185, 187, 189, 191,
58
- 193, 195, 197, 199, 201, 220, 222, 223,
59
- 225, 226, 228, 229, 230, 231, 232, 233,
60
- 234, 251, 253, 255, 257, 259, 261, 263,
61
- 265, 267, 269, 271, 273, 275, 277, 279,
62
- 281, 283, 285, 287, 289, 291, 293, 295,
63
- 297, 299, 301, 303, 305, 307, 309, 311,
64
- 313, 315, 317, 320, 322, 324, 326, 329,
65
- 331, 334, 336, 338, 340, 342, 344, 346,
66
- 348, 350, 352, 354, 356, 358, 360, 362,
67
- 364, 366, 368, 370, 372, 374, 377, 379,
68
- 381, 384, 386, 388, 389, 390, 391, 392,
69
- 393, 394, 395, 412, 414, 416, 418, 420,
70
- 422, 424, 426, 428, 430, 432, 434, 436,
71
- 438, 440, 442, 444, 446, 448, 450, 452,
72
- 454, 456, 458, 460, 462, 464, 466, 468,
73
- 470, 472, 474, 477, 479, 482, 484, 486,
74
- 488, 490, 492, 494, 496, 499, 501, 504,
75
- 506, 508, 510, 512, 514, 516, 518, 520,
76
- 522, 524, 526, 528, 532, 534, 536, 538,
77
- 540, 542, 544, 546, 548, 550, 552, 554,
78
- 556, 558, 560, 562, 564, 566, 568, 570,
79
- 572, 574, 576, 578, 580, 582, 585, 587,
80
- 589, 592, 594, 596, 597, 598, 599, 601,
81
- 602, 604, 605, 606, 608, 609, 610, 611,
82
- 612, 613, 614, 615, 617, 618, 619, 620,
83
- 621, 622, 623, 624, 625, 626, 628, 629,
84
- 630, 647, 649, 651, 653, 655, 657, 659,
85
- 661, 663, 665, 667, 669, 671, 673, 675,
86
- 677, 679, 681, 683, 685, 687, 689, 691,
87
- 693, 695, 697, 699, 701, 703, 705, 707,
88
- 709, 712, 714, 717, 719, 722, 724, 726,
89
- 728, 730, 732, 734, 736, 739, 741, 744,
90
- 746, 748, 751, 753, 755, 757, 759, 761,
91
- 763, 766, 768, 770, 772, 774, 776, 778,
92
- 780, 784, 786, 788, 790, 792, 794, 796,
93
- 798, 800, 802, 804, 806, 808, 810, 812,
94
- 814, 816, 818, 820, 822, 824, 826, 828,
95
- 830, 832, 834, 837, 839, 841, 844, 846,
96
- 848, 849, 850, 851, 860, 862, 864, 866,
97
- 868, 870, 872, 874, 876, 878, 880, 882,
98
- 884, 886, 888, 890, 892, 894, 897, 899,
99
- 901, 903, 905, 907, 909, 911, 914, 915,
100
- 916, 917, 918, 919, 921, 922, 923, 924,
101
- 925, 926, 927, 928, 929, 930, 931, 932,
102
- 933, 934, 935, 936, 937, 938, 939, 940,
103
- 941, 942, 943, 945, 946, 947, 949, 950,
104
- 951, 955, 961, 964, 966, 972, 991, 993,
105
- 995, 998, 1000, 1002, 1004, 1006, 1008, 1010,
106
- 1012, 1015, 1017, 1019, 1022, 1024, 1026, 1028,
107
- 1030, 1032, 1034, 1037, 1039, 1041, 1043, 1045,
108
- 1047, 1049, 1051, 1054, 1058, 1060, 1062, 1064,
109
- 1066, 1068, 1071, 1073, 1075, 1077, 1079, 1081,
110
- 1083, 1085, 1087, 1089, 1091, 1093, 1095, 1097,
111
- 1099, 1101, 1103, 1105, 1107, 1109
112
- ]
113
-
114
- class << self
115
- attr_accessor :_lexer_trans_keys
116
- private :_lexer_trans_keys, :_lexer_trans_keys=
117
- end
118
- self._lexer_trans_keys = [
119
- -17, 10, 32, 34, 35, 37, 42, 64,
120
- 65, 70, 73, 75, 77, 79, 80, 83,
121
- 90, 124, 9, 13, -69, -65, 10, 32,
122
- 34, 35, 37, 42, 64, 65, 70, 73,
123
- 75, 77, 79, 80, 83, 90, 124, 9,
124
- 13, 34, 34, 10, 13, 10, 13, 10,
125
- 32, 34, 9, 13, 10, 32, 34, 9,
126
- 13, 10, 32, 34, 9, 13, 10, 32,
127
- 34, 9, 13, 10, 32, 9, 13, 10,
128
- 32, 9, 13, 10, 13, 10, 95, 70,
129
- 69, 65, 84, 85, 82, 69, 95, 69,
130
- 78, 68, 95, 37, 32, 10, 13, 10,
131
- 13, 13, 32, 64, 9, 10, 9, 10,
132
- 13, 32, 64, 11, 12, 10, 32, 64,
133
- 9, 13, 108, 105, 117, 110, 107, 99,
134
- 105, 111, 110, 97, 108, 110, 111, 115,
135
- 116, 58, 10, 10, 10, 32, 35, 37,
136
- 64, 70, 75, 77, 79, 80, 83, 9,
137
- 13, 10, 95, 10, 70, 10, 69, 10,
138
- 65, 10, 84, 10, 85, 10, 82, 10,
139
- 69, 10, 95, 10, 69, 10, 78, 10,
140
- 68, 10, 95, 10, 37, 10, 117, 10,
141
- 110, 10, 107, 10, 99, 10, 105, 10,
142
- 111, 10, 110, 10, 97, 10, 108, 10,
143
- 110, 10, 111, 10, 115, 10, 116, 10,
144
- 58, 10, 32, 34, 35, 37, 42, 64,
145
- 65, 70, 73, 75, 77, 79, 80, 83,
146
- 90, 124, 9, 13, 97, 111, 100, 32,
147
- 97, 110, 99, 116, 101, 112, 116, 58,
148
- 10, 10, 10, 32, 35, 37, 42, 64,
149
- 65, 70, 73, 75, 77, 79, 80, 83,
150
- 90, 9, 13, 10, 95, 10, 70, 10,
151
- 69, 10, 65, 10, 84, 10, 85, 10,
152
- 82, 10, 69, 10, 95, 10, 69, 10,
153
- 78, 10, 68, 10, 95, 10, 37, 10,
154
- 32, 10, 108, 10, 105, 10, 117, 10,
155
- 110, 10, 107, 10, 99, 10, 105, 10,
156
- 111, 10, 110, 10, 97, 10, 108, 10,
157
- 110, 10, 111, 10, 115, 10, 116, 10,
158
- 58, 10, 97, 10, 100, 10, 32, 97,
159
- 10, 111, 10, 103, 10, 117, -60, 10,
160
- 99, -121, 10, 10, 110, 115, 10, 100,
161
- 10, 97, 10, 111, 10, 98, 10, 105,
162
- 10, 110, 10, 97, 10, 114, 10, 105,
163
- 10, 109, 10, 101, 10, 114, 10, 99,
164
- 10, 101, 10, 110, 10, 97, 10, 114,
165
- 10, 105, 10, 111, 10, 97, 10, 100,
166
- 116, 10, 97, 10, 116, 10, 101, 111,
167
- 10, 97, 10, 116, 101, 107, 115, 116,
168
- 58, 10, 10, 10, 32, 35, 37, 42,
169
- 64, 65, 70, 73, 75, 77, 79, 80,
170
- 83, 90, 9, 13, 10, 95, 10, 70,
171
- 10, 69, 10, 65, 10, 84, 10, 85,
172
- 10, 82, 10, 69, 10, 95, 10, 69,
173
- 10, 78, 10, 68, 10, 95, 10, 37,
174
- 10, 32, 10, 108, 10, 105, 10, 117,
175
- 10, 110, 10, 107, 10, 99, 10, 105,
176
- 10, 111, 10, 110, 10, 97, 10, 108,
177
- 10, 110, 10, 111, 10, 115, 10, 116,
178
- 10, 58, 10, 97, 111, 10, 100, 10,
179
- 32, 97, 10, 110, 10, 99, 10, 101,
180
- 10, 112, 10, 111, 10, 103, 10, 117,
181
- -60, 10, 99, -121, 10, 10, 110, 115,
182
- 10, 100, 10, 97, 10, 111, 10, 98,
183
- 10, 105, 10, 110, 10, 97, 10, 114,
184
- 10, 105, 10, 109, 10, 101, 10, 114,
185
- 10, 99, 107, 116, 10, 101, 10, 110,
186
- 10, 97, 10, 114, 10, 105, 10, 111,
187
- 10, 105, 10, 99, 10, 114, 10, 117,
188
- 10, 107, 10, 116, 10, 117, 10, 114,
189
- 10, 97, 10, 32, 10, 115, 10, 99,
190
- 10, 101, 10, 110, 10, 97, 10, 114,
191
- 10, 105, 10, 106, 10, 97, 10, 100,
192
- 116, 10, 97, 10, 116, 10, 101, 111,
193
- 10, 97, 10, 116, 111, 103, 117, -60,
194
- 99, -121, 110, 115, 100, 97, 110, 111,
195
- 111, 118, 97, 98, 105, 110, 97, 111,
196
- 114, 122, 97, 100, 105, 110, 105, 109,
197
- 101, 114, 58, 105, 10, 10, 10, 32,
198
- 35, 37, 42, 64, 65, 70, 73, 75,
199
- 77, 79, 80, 83, 90, 9, 13, 10,
200
- 95, 10, 70, 10, 69, 10, 65, 10,
201
- 84, 10, 85, 10, 82, 10, 69, 10,
202
- 95, 10, 69, 10, 78, 10, 68, 10,
203
- 95, 10, 37, 10, 32, 10, 108, 10,
204
- 105, 10, 117, 10, 110, 10, 107, 10,
205
- 99, 10, 105, 10, 111, 10, 110, 10,
206
- 97, 10, 108, 10, 110, 10, 111, 10,
207
- 115, 10, 116, 10, 58, 10, 97, 111,
208
- 10, 100, 10, 32, 97, 10, 110, 10,
209
- 99, 116, 10, 101, 10, 112, 10, 101,
210
- 10, 107, 10, 111, 10, 103, 10, 117,
211
- -60, 10, 99, -121, 10, 10, 110, 115,
212
- 10, 100, 10, 97, 10, 110, 111, 10,
213
- 111, 10, 118, 10, 97, 10, 98, 10,
214
- 105, 10, 110, 10, 111, 114, 10, 122,
215
- 10, 97, 10, 100, 10, 105, 10, 109,
216
- 10, 101, 10, 114, 10, 99, 107, 116,
217
- 10, 101, 10, 110, 10, 97, 10, 114,
218
- 10, 105, 10, 111, 10, 105, 10, 99,
219
- 10, 114, 10, 117, 10, 107, 10, 116,
220
- 10, 117, 10, 114, 10, 97, 10, 32,
221
- 10, 115, 10, 99, 10, 101, 10, 110,
222
- 10, 97, 10, 114, 10, 105, 10, 106,
223
- 10, 97, 10, 100, 116, 10, 97, 10,
224
- 116, 10, 101, 111, 10, 97, 10, 116,
225
- 58, 10, 10, 10, 32, 35, 70, 77,
226
- 79, 124, 9, 13, 10, 117, 10, 110,
227
- 10, 107, 10, 99, 10, 105, 10, 111,
228
- 10, 110, 10, 97, 10, 108, 10, 110,
229
- 10, 111, 10, 115, 10, 116, 10, 58,
230
- 10, 111, 10, 103, 10, 117, -60, 10,
231
- 99, -121, 10, 10, 115, 10, 111, 10,
232
- 98, 10, 105, 10, 110, 10, 97, 99,
233
- 107, 116, 101, 110, 97, 114, 105, 106,
234
- 111, 105, 58, 105, 99, 97, 114, 117,
235
- 107, 116, 117, 114, 97, 32, 115, 99,
236
- 101, 110, 97, 114, 105, 106, 97, 100,
237
- 116, 97, 116, 101, 111, 97, 116, 32,
238
- 124, 9, 13, 10, 32, 92, 124, 9,
239
- 13, 10, 92, 124, 10, 92, 10, 32,
240
- 92, 124, 9, 13, 10, 32, 34, 35,
241
- 37, 42, 64, 65, 70, 73, 75, 77,
242
- 79, 80, 83, 90, 124, 9, 13, 10,
243
- 111, 10, 110, 10, 99, 116, 10, 101,
244
- 10, 112, 10, 101, 10, 107, 10, 111,
245
- 10, 103, 10, 117, -60, 10, 99, -121,
246
- 10, 10, 115, 10, 110, 111, 10, 111,
247
- 10, 118, 10, 97, 10, 98, 10, 105,
248
- 10, 110, 10, 111, 114, 10, 122, 10,
249
- 97, 10, 100, 10, 105, 10, 109, 10,
250
- 101, 10, 114, 10, 58, 105, 10, 99,
251
- 107, 116, 10, 101, 10, 110, 10, 97,
252
- 10, 114, 10, 105, 10, 106, 111, 10,
253
- 105, 10, 105, 10, 99, 10, 114, 10,
254
- 117, 10, 107, 10, 116, 10, 117, 10,
255
- 114, 10, 97, 10, 32, 10, 115, 10,
256
- 99, 10, 101, 10, 110, 10, 97, 10,
257
- 114, 10, 105, 10, 106, 0
258
- ]
259
-
260
- class << self
261
- attr_accessor :_lexer_single_lengths
262
- private :_lexer_single_lengths, :_lexer_single_lengths=
263
- end
264
- self._lexer_single_lengths = [
265
- 0, 18, 1, 1, 17, 1, 1, 2,
266
- 2, 3, 3, 3, 3, 2, 2, 2,
267
- 1, 1, 1, 1, 1, 1, 1, 1,
268
- 1, 1, 1, 1, 1, 1, 1, 1,
269
- 2, 2, 3, 5, 3, 1, 1, 1,
270
- 1, 1, 1, 1, 1, 1, 1, 1,
271
- 1, 1, 1, 1, 1, 1, 1, 11,
272
- 2, 2, 2, 2, 2, 2, 2, 2,
273
- 2, 2, 2, 2, 2, 2, 2, 2,
274
- 2, 2, 2, 2, 2, 2, 2, 2,
275
- 2, 2, 2, 2, 17, 2, 1, 2,
276
- 1, 2, 1, 1, 1, 1, 1, 1,
277
- 15, 2, 2, 2, 2, 2, 2, 2,
278
- 2, 2, 2, 2, 2, 2, 2, 2,
279
- 2, 2, 2, 2, 2, 2, 2, 2,
280
- 2, 2, 2, 2, 2, 2, 2, 2,
281
- 2, 2, 3, 2, 2, 2, 3, 2,
282
- 3, 2, 2, 2, 2, 2, 2, 2,
283
- 2, 2, 2, 2, 2, 2, 2, 2,
284
- 2, 2, 2, 2, 2, 3, 2, 2,
285
- 3, 2, 2, 1, 1, 1, 1, 1,
286
- 1, 1, 15, 2, 2, 2, 2, 2,
287
- 2, 2, 2, 2, 2, 2, 2, 2,
288
- 2, 2, 2, 2, 2, 2, 2, 2,
289
- 2, 2, 2, 2, 2, 2, 2, 2,
290
- 2, 2, 3, 2, 3, 2, 2, 2,
291
- 2, 2, 2, 2, 3, 2, 3, 2,
292
- 2, 2, 2, 2, 2, 2, 2, 2,
293
- 2, 2, 2, 4, 2, 2, 2, 2,
294
- 2, 2, 2, 2, 2, 2, 2, 2,
295
- 2, 2, 2, 2, 2, 2, 2, 2,
296
- 2, 2, 2, 2, 2, 3, 2, 2,
297
- 3, 2, 2, 1, 1, 1, 2, 1,
298
- 2, 1, 1, 2, 1, 1, 1, 1,
299
- 1, 1, 1, 2, 1, 1, 1, 1,
300
- 1, 1, 1, 1, 1, 2, 1, 1,
301
- 15, 2, 2, 2, 2, 2, 2, 2,
302
- 2, 2, 2, 2, 2, 2, 2, 2,
303
- 2, 2, 2, 2, 2, 2, 2, 2,
304
- 2, 2, 2, 2, 2, 2, 2, 2,
305
- 3, 2, 3, 2, 3, 2, 2, 2,
306
- 2, 2, 2, 2, 3, 2, 3, 2,
307
- 2, 3, 2, 2, 2, 2, 2, 2,
308
- 3, 2, 2, 2, 2, 2, 2, 2,
309
- 4, 2, 2, 2, 2, 2, 2, 2,
310
- 2, 2, 2, 2, 2, 2, 2, 2,
311
- 2, 2, 2, 2, 2, 2, 2, 2,
312
- 2, 2, 3, 2, 2, 3, 2, 2,
313
- 1, 1, 1, 7, 2, 2, 2, 2,
314
- 2, 2, 2, 2, 2, 2, 2, 2,
315
- 2, 2, 2, 2, 2, 3, 2, 2,
316
- 2, 2, 2, 2, 2, 3, 1, 1,
317
- 1, 1, 1, 2, 1, 1, 1, 1,
318
- 1, 1, 1, 1, 1, 1, 1, 1,
319
- 1, 1, 1, 1, 1, 1, 1, 1,
320
- 1, 1, 2, 1, 1, 2, 1, 1,
321
- 2, 4, 3, 2, 4, 17, 2, 2,
322
- 3, 2, 2, 2, 2, 2, 2, 2,
323
- 3, 2, 2, 3, 2, 2, 2, 2,
324
- 2, 2, 3, 2, 2, 2, 2, 2,
325
- 2, 2, 3, 4, 2, 2, 2, 2,
326
- 2, 3, 2, 2, 2, 2, 2, 2,
327
- 2, 2, 2, 2, 2, 2, 2, 2,
328
- 2, 2, 2, 2, 2, 0
329
- ]
330
-
331
- class << self
332
- attr_accessor :_lexer_range_lengths
333
- private :_lexer_range_lengths, :_lexer_range_lengths=
334
- end
335
- self._lexer_range_lengths = [
336
- 0, 1, 0, 0, 1, 0, 0, 0,
337
- 0, 1, 1, 1, 1, 1, 1, 0,
338
- 0, 0, 0, 0, 0, 0, 0, 0,
339
- 0, 0, 0, 0, 0, 0, 0, 0,
340
- 0, 0, 1, 1, 1, 0, 0, 0,
341
- 0, 0, 0, 0, 0, 0, 0, 0,
342
- 0, 0, 0, 0, 0, 0, 0, 1,
343
- 0, 0, 0, 0, 0, 0, 0, 0,
344
- 0, 0, 0, 0, 0, 0, 0, 0,
345
- 0, 0, 0, 0, 0, 0, 0, 0,
346
- 0, 0, 0, 0, 1, 0, 0, 0,
347
- 0, 0, 0, 0, 0, 0, 0, 0,
348
- 1, 0, 0, 0, 0, 0, 0, 0,
349
- 0, 0, 0, 0, 0, 0, 0, 0,
350
- 0, 0, 0, 0, 0, 0, 0, 0,
351
- 0, 0, 0, 0, 0, 0, 0, 0,
352
- 0, 0, 0, 0, 0, 0, 0, 0,
353
- 0, 0, 0, 0, 0, 0, 0, 0,
354
- 0, 0, 0, 0, 0, 0, 0, 0,
355
- 0, 0, 0, 0, 0, 0, 0, 0,
356
- 0, 0, 0, 0, 0, 0, 0, 0,
357
- 0, 0, 1, 0, 0, 0, 0, 0,
358
- 0, 0, 0, 0, 0, 0, 0, 0,
359
- 0, 0, 0, 0, 0, 0, 0, 0,
360
- 0, 0, 0, 0, 0, 0, 0, 0,
361
- 0, 0, 0, 0, 0, 0, 0, 0,
362
- 0, 0, 0, 0, 0, 0, 0, 0,
363
- 0, 0, 0, 0, 0, 0, 0, 0,
364
- 0, 0, 0, 0, 0, 0, 0, 0,
365
- 0, 0, 0, 0, 0, 0, 0, 0,
366
- 0, 0, 0, 0, 0, 0, 0, 0,
367
- 0, 0, 0, 0, 0, 0, 0, 0,
368
- 0, 0, 0, 0, 0, 0, 0, 0,
369
- 0, 0, 0, 0, 0, 0, 0, 0,
370
- 0, 0, 0, 0, 0, 0, 0, 0,
371
- 0, 0, 0, 0, 0, 0, 0, 0,
372
- 1, 0, 0, 0, 0, 0, 0, 0,
373
- 0, 0, 0, 0, 0, 0, 0, 0,
374
- 0, 0, 0, 0, 0, 0, 0, 0,
375
- 0, 0, 0, 0, 0, 0, 0, 0,
376
- 0, 0, 0, 0, 0, 0, 0, 0,
377
- 0, 0, 0, 0, 0, 0, 0, 0,
378
- 0, 0, 0, 0, 0, 0, 0, 0,
379
- 0, 0, 0, 0, 0, 0, 0, 0,
380
- 0, 0, 0, 0, 0, 0, 0, 0,
381
- 0, 0, 0, 0, 0, 0, 0, 0,
382
- 0, 0, 0, 0, 0, 0, 0, 0,
383
- 0, 0, 0, 0, 0, 0, 0, 0,
384
- 0, 0, 0, 1, 0, 0, 0, 0,
385
- 0, 0, 0, 0, 0, 0, 0, 0,
386
- 0, 0, 0, 0, 0, 0, 0, 0,
387
- 0, 0, 0, 0, 0, 0, 0, 0,
388
- 0, 0, 0, 0, 0, 0, 0, 0,
389
- 0, 0, 0, 0, 0, 0, 0, 0,
390
- 0, 0, 0, 0, 0, 0, 0, 0,
391
- 0, 0, 0, 0, 0, 0, 0, 0,
392
- 1, 1, 0, 0, 1, 1, 0, 0,
393
- 0, 0, 0, 0, 0, 0, 0, 0,
394
- 0, 0, 0, 0, 0, 0, 0, 0,
395
- 0, 0, 0, 0, 0, 0, 0, 0,
396
- 0, 0, 0, 0, 0, 0, 0, 0,
397
- 0, 0, 0, 0, 0, 0, 0, 0,
398
- 0, 0, 0, 0, 0, 0, 0, 0,
399
- 0, 0, 0, 0, 0, 0
400
- ]
401
-
402
- class << self
403
- attr_accessor :_lexer_index_offsets
404
- private :_lexer_index_offsets, :_lexer_index_offsets=
405
- end
406
- self._lexer_index_offsets = [
407
- 0, 0, 20, 22, 24, 43, 45, 47,
408
- 50, 53, 58, 63, 68, 73, 77, 81,
409
- 84, 86, 88, 90, 92, 94, 96, 98,
410
- 100, 102, 104, 106, 108, 110, 112, 114,
411
- 116, 119, 122, 127, 134, 139, 141, 143,
412
- 145, 147, 149, 151, 153, 155, 157, 159,
413
- 161, 163, 165, 167, 169, 171, 173, 175,
414
- 188, 191, 194, 197, 200, 203, 206, 209,
415
- 212, 215, 218, 221, 224, 227, 230, 233,
416
- 236, 239, 242, 245, 248, 251, 254, 257,
417
- 260, 263, 266, 269, 272, 291, 294, 296,
418
- 299, 301, 304, 306, 308, 310, 312, 314,
419
- 316, 333, 336, 339, 342, 345, 348, 351,
420
- 354, 357, 360, 363, 366, 369, 372, 375,
421
- 378, 381, 384, 387, 390, 393, 396, 399,
422
- 402, 405, 408, 411, 414, 417, 420, 423,
423
- 426, 429, 432, 436, 439, 442, 445, 449,
424
- 452, 456, 459, 462, 465, 468, 471, 474,
425
- 477, 480, 483, 486, 489, 492, 495, 498,
426
- 501, 504, 507, 510, 513, 516, 520, 523,
427
- 526, 530, 533, 536, 538, 540, 542, 544,
428
- 546, 548, 550, 567, 570, 573, 576, 579,
429
- 582, 585, 588, 591, 594, 597, 600, 603,
430
- 606, 609, 612, 615, 618, 621, 624, 627,
431
- 630, 633, 636, 639, 642, 645, 648, 651,
432
- 654, 657, 660, 664, 667, 671, 674, 677,
433
- 680, 683, 686, 689, 692, 696, 699, 703,
434
- 706, 709, 712, 715, 718, 721, 724, 727,
435
- 730, 733, 736, 739, 744, 747, 750, 753,
436
- 756, 759, 762, 765, 768, 771, 774, 777,
437
- 780, 783, 786, 789, 792, 795, 798, 801,
438
- 804, 807, 810, 813, 816, 819, 823, 826,
439
- 829, 833, 836, 839, 841, 843, 845, 848,
440
- 850, 853, 855, 857, 860, 862, 864, 866,
441
- 868, 870, 872, 874, 877, 879, 881, 883,
442
- 885, 887, 889, 891, 893, 895, 898, 900,
443
- 902, 919, 922, 925, 928, 931, 934, 937,
444
- 940, 943, 946, 949, 952, 955, 958, 961,
445
- 964, 967, 970, 973, 976, 979, 982, 985,
446
- 988, 991, 994, 997, 1000, 1003, 1006, 1009,
447
- 1012, 1016, 1019, 1023, 1026, 1030, 1033, 1036,
448
- 1039, 1042, 1045, 1048, 1051, 1055, 1058, 1062,
449
- 1065, 1068, 1072, 1075, 1078, 1081, 1084, 1087,
450
- 1090, 1094, 1097, 1100, 1103, 1106, 1109, 1112,
451
- 1115, 1120, 1123, 1126, 1129, 1132, 1135, 1138,
452
- 1141, 1144, 1147, 1150, 1153, 1156, 1159, 1162,
453
- 1165, 1168, 1171, 1174, 1177, 1180, 1183, 1186,
454
- 1189, 1192, 1195, 1199, 1202, 1205, 1209, 1212,
455
- 1215, 1217, 1219, 1221, 1230, 1233, 1236, 1239,
456
- 1242, 1245, 1248, 1251, 1254, 1257, 1260, 1263,
457
- 1266, 1269, 1272, 1275, 1278, 1281, 1285, 1288,
458
- 1291, 1294, 1297, 1300, 1303, 1306, 1310, 1312,
459
- 1314, 1316, 1318, 1320, 1323, 1325, 1327, 1329,
460
- 1331, 1333, 1335, 1337, 1339, 1341, 1343, 1345,
461
- 1347, 1349, 1351, 1353, 1355, 1357, 1359, 1361,
462
- 1363, 1365, 1367, 1370, 1372, 1374, 1377, 1379,
463
- 1381, 1385, 1391, 1395, 1398, 1404, 1423, 1426,
464
- 1429, 1433, 1436, 1439, 1442, 1445, 1448, 1451,
465
- 1454, 1458, 1461, 1464, 1468, 1471, 1474, 1477,
466
- 1480, 1483, 1486, 1490, 1493, 1496, 1499, 1502,
467
- 1505, 1508, 1511, 1515, 1520, 1523, 1526, 1529,
468
- 1532, 1535, 1539, 1542, 1545, 1548, 1551, 1554,
469
- 1557, 1560, 1563, 1566, 1569, 1572, 1575, 1578,
470
- 1581, 1584, 1587, 1590, 1593, 1596
471
- ]
472
-
473
- class << self
474
- attr_accessor :_lexer_indicies
475
- private :_lexer_indicies, :_lexer_indicies=
476
- end
477
- self._lexer_indicies = [
478
- 1, 3, 2, 4, 5, 6, 7, 8,
479
- 9, 10, 7, 11, 12, 13, 14, 15,
480
- 16, 17, 2, 0, 18, 0, 2, 0,
481
- 3, 2, 4, 5, 6, 7, 8, 9,
482
- 10, 7, 11, 12, 13, 14, 15, 16,
483
- 17, 2, 0, 19, 0, 20, 0, 22,
484
- 23, 21, 25, 26, 24, 29, 28, 30,
485
- 28, 27, 33, 32, 34, 32, 31, 33,
486
- 32, 35, 32, 31, 33, 32, 36, 32,
487
- 31, 38, 37, 37, 0, 3, 39, 39,
488
- 0, 41, 42, 40, 3, 0, 43, 0,
489
- 44, 0, 45, 0, 46, 0, 47, 0,
490
- 48, 0, 49, 0, 50, 0, 51, 0,
491
- 52, 0, 53, 0, 54, 0, 55, 0,
492
- 56, 0, 57, 0, 59, 60, 58, 62,
493
- 63, 61, 0, 0, 0, 0, 64, 65,
494
- 66, 65, 65, 68, 67, 64, 3, 69,
495
- 8, 69, 0, 70, 0, 71, 0, 72,
496
- 0, 73, 0, 74, 0, 75, 0, 76,
497
- 0, 77, 0, 78, 0, 79, 0, 80,
498
- 0, 81, 0, 82, 0, 83, 0, 84,
499
- 0, 85, 0, 87, 86, 89, 88, 89,
500
- 90, 91, 92, 91, 93, 94, 95, 96,
501
- 97, 98, 90, 88, 89, 99, 88, 89,
502
- 100, 88, 89, 101, 88, 89, 102, 88,
503
- 89, 103, 88, 89, 104, 88, 89, 105,
504
- 88, 89, 106, 88, 89, 107, 88, 89,
505
- 108, 88, 89, 109, 88, 89, 110, 88,
506
- 89, 111, 88, 89, 112, 88, 89, 113,
507
- 88, 89, 114, 88, 89, 115, 88, 89,
508
- 116, 88, 89, 117, 88, 89, 118, 88,
509
- 89, 119, 88, 89, 120, 88, 89, 121,
510
- 88, 89, 122, 88, 89, 123, 88, 89,
511
- 124, 88, 89, 125, 88, 89, 126, 88,
512
- 128, 127, 129, 130, 131, 132, 133, 134,
513
- 135, 132, 136, 137, 138, 139, 140, 141,
514
- 142, 127, 0, 143, 144, 0, 145, 0,
515
- 57, 71, 0, 146, 0, 147, 148, 0,
516
- 149, 0, 150, 0, 151, 0, 152, 0,
517
- 154, 153, 156, 155, 156, 157, 158, 159,
518
- 160, 158, 161, 162, 160, 163, 164, 165,
519
- 166, 167, 168, 157, 155, 156, 169, 155,
520
- 156, 170, 155, 156, 171, 155, 156, 172,
521
- 155, 156, 173, 155, 156, 174, 155, 156,
522
- 175, 155, 156, 176, 155, 156, 177, 155,
523
- 156, 178, 155, 156, 179, 155, 156, 180,
524
- 155, 156, 181, 155, 156, 182, 155, 156,
525
- 183, 155, 156, 184, 155, 156, 185, 155,
526
- 156, 186, 155, 156, 187, 155, 156, 188,
527
- 155, 156, 189, 155, 156, 190, 155, 156,
528
- 191, 155, 156, 192, 155, 156, 193, 155,
529
- 156, 194, 155, 156, 195, 155, 156, 196,
530
- 155, 156, 197, 155, 156, 198, 155, 156,
531
- 183, 155, 156, 199, 155, 156, 200, 155,
532
- 156, 183, 185, 155, 156, 201, 155, 156,
533
- 202, 155, 156, 203, 155, 204, 156, 194,
534
- 155, 194, 156, 155, 156, 205, 206, 155,
535
- 156, 207, 155, 156, 185, 155, 156, 208,
536
- 155, 156, 209, 155, 156, 210, 155, 156,
537
- 211, 155, 156, 198, 155, 156, 212, 155,
538
- 156, 213, 155, 156, 214, 155, 156, 215,
539
- 155, 156, 198, 155, 156, 216, 155, 156,
540
- 217, 155, 156, 218, 155, 156, 219, 155,
541
- 156, 220, 155, 156, 221, 155, 156, 198,
542
- 155, 156, 222, 155, 156, 223, 224, 155,
543
- 156, 225, 155, 156, 226, 155, 156, 185,
544
- 185, 155, 156, 227, 155, 156, 184, 155,
545
- 228, 0, 229, 0, 230, 0, 231, 0,
546
- 232, 0, 234, 233, 236, 235, 236, 237,
547
- 238, 239, 240, 238, 241, 242, 240, 243,
548
- 244, 245, 246, 247, 248, 237, 235, 236,
549
- 249, 235, 236, 250, 235, 236, 251, 235,
550
- 236, 252, 235, 236, 253, 235, 236, 254,
551
- 235, 236, 255, 235, 236, 256, 235, 236,
552
- 257, 235, 236, 258, 235, 236, 259, 235,
553
- 236, 260, 235, 236, 261, 235, 236, 262,
554
- 235, 236, 263, 235, 236, 264, 235, 236,
555
- 265, 235, 236, 266, 235, 236, 267, 235,
556
- 236, 268, 235, 236, 269, 235, 236, 270,
557
- 235, 236, 271, 235, 236, 272, 235, 236,
558
- 273, 235, 236, 274, 235, 236, 275, 235,
559
- 236, 276, 235, 236, 277, 235, 236, 278,
560
- 235, 236, 263, 235, 236, 279, 280, 235,
561
- 236, 281, 235, 236, 263, 265, 235, 236,
562
- 282, 235, 236, 283, 235, 236, 284, 235,
563
- 236, 277, 235, 236, 285, 235, 236, 286,
564
- 235, 236, 287, 235, 288, 236, 274, 235,
565
- 274, 236, 235, 236, 289, 290, 235, 236,
566
- 291, 235, 236, 265, 235, 236, 292, 235,
567
- 236, 293, 235, 236, 294, 235, 236, 295,
568
- 235, 236, 278, 235, 236, 296, 235, 236,
569
- 297, 235, 236, 298, 235, 236, 299, 235,
570
- 236, 278, 235, 236, 300, 301, 302, 235,
571
- 236, 303, 235, 236, 304, 235, 236, 305,
572
- 235, 236, 306, 235, 236, 307, 235, 236,
573
- 278, 235, 236, 308, 235, 236, 295, 235,
574
- 236, 309, 235, 236, 310, 235, 236, 311,
575
- 235, 236, 312, 235, 236, 313, 235, 236,
576
- 314, 235, 236, 315, 235, 236, 316, 235,
577
- 236, 317, 235, 236, 318, 235, 236, 319,
578
- 235, 236, 320, 235, 236, 321, 235, 236,
579
- 322, 235, 236, 323, 235, 236, 295, 235,
580
- 236, 324, 235, 236, 325, 326, 235, 236,
581
- 327, 235, 236, 328, 235, 236, 265, 265,
582
- 235, 236, 329, 235, 236, 264, 235, 330,
583
- 0, 331, 0, 332, 0, 333, 80, 0,
584
- 80, 0, 334, 335, 0, 336, 0, 71,
585
- 0, 337, 338, 0, 339, 0, 340, 0,
586
- 231, 0, 341, 0, 342, 0, 343, 0,
587
- 84, 0, 344, 345, 0, 346, 0, 347,
588
- 0, 348, 0, 349, 0, 340, 0, 350,
589
- 0, 351, 0, 352, 0, 353, 0, 354,
590
- 355, 0, 357, 356, 359, 358, 359, 360,
591
- 361, 362, 363, 361, 364, 365, 363, 366,
592
- 367, 368, 369, 370, 371, 360, 358, 359,
593
- 372, 358, 359, 373, 358, 359, 374, 358,
594
- 359, 375, 358, 359, 376, 358, 359, 377,
595
- 358, 359, 378, 358, 359, 379, 358, 359,
596
- 380, 358, 359, 381, 358, 359, 382, 358,
597
- 359, 383, 358, 359, 384, 358, 359, 385,
598
- 358, 359, 386, 358, 359, 387, 358, 359,
599
- 388, 358, 359, 389, 358, 359, 390, 358,
600
- 359, 391, 358, 359, 392, 358, 359, 393,
601
- 358, 359, 394, 358, 359, 395, 358, 359,
602
- 396, 358, 359, 397, 358, 359, 398, 358,
603
- 359, 399, 358, 359, 400, 358, 359, 401,
604
- 358, 359, 386, 358, 359, 402, 403, 358,
605
- 359, 404, 358, 359, 386, 388, 358, 359,
606
- 405, 358, 359, 406, 407, 358, 359, 408,
607
- 358, 359, 400, 358, 359, 409, 358, 359,
608
- 399, 358, 359, 410, 358, 359, 411, 358,
609
- 359, 412, 358, 413, 359, 397, 358, 397,
610
- 359, 358, 359, 414, 415, 358, 359, 416,
611
- 358, 359, 388, 358, 359, 417, 418, 358,
612
- 359, 419, 358, 359, 420, 358, 359, 401,
613
- 358, 359, 421, 358, 359, 422, 358, 359,
614
- 420, 358, 359, 423, 424, 358, 359, 425,
615
- 358, 359, 426, 358, 359, 421, 358, 359,
616
- 427, 358, 359, 428, 358, 359, 429, 358,
617
- 359, 401, 358, 359, 430, 431, 432, 358,
618
- 359, 433, 358, 359, 434, 358, 359, 435,
619
- 358, 359, 436, 358, 359, 437, 358, 359,
620
- 401, 358, 359, 438, 358, 359, 420, 358,
621
- 359, 439, 358, 359, 440, 358, 359, 441,
622
- 358, 359, 442, 358, 359, 443, 358, 359,
623
- 444, 358, 359, 445, 358, 359, 446, 358,
624
- 359, 447, 358, 359, 448, 358, 359, 449,
625
- 358, 359, 450, 358, 359, 451, 358, 359,
626
- 452, 358, 359, 453, 358, 359, 420, 358,
627
- 359, 454, 358, 359, 455, 456, 358, 359,
628
- 457, 358, 359, 458, 358, 359, 388, 388,
629
- 358, 359, 459, 358, 359, 387, 358, 460,
630
- 0, 462, 461, 464, 463, 464, 465, 466,
631
- 467, 468, 469, 466, 465, 463, 464, 470,
632
- 463, 464, 471, 463, 464, 472, 463, 464,
633
- 473, 463, 464, 474, 463, 464, 475, 463,
634
- 464, 476, 463, 464, 477, 463, 464, 478,
635
- 463, 464, 479, 463, 464, 480, 463, 464,
636
- 481, 463, 464, 482, 463, 464, 483, 463,
637
- 464, 484, 463, 464, 485, 463, 464, 486,
638
- 463, 487, 464, 478, 463, 478, 464, 463,
639
- 464, 488, 463, 464, 489, 463, 464, 490,
640
- 463, 464, 491, 463, 464, 492, 463, 464,
641
- 482, 463, 493, 494, 495, 0, 496, 0,
642
- 497, 0, 498, 0, 499, 0, 500, 0,
643
- 501, 502, 0, 355, 0, 354, 0, 503,
644
- 0, 504, 0, 151, 0, 505, 0, 506,
645
- 0, 507, 0, 508, 0, 509, 0, 510,
646
- 0, 511, 0, 512, 0, 513, 0, 514,
647
- 0, 515, 0, 516, 0, 517, 0, 518,
648
- 0, 519, 0, 504, 0, 520, 0, 521,
649
- 522, 0, 523, 0, 524, 0, 71, 71,
650
- 0, 525, 0, 70, 0, 526, 527, 526,
651
- 0, 530, 529, 531, 532, 529, 528, 0,
652
- 534, 535, 533, 0, 534, 533, 530, 536,
653
- 534, 535, 536, 533, 530, 537, 538, 539,
654
- 540, 541, 542, 543, 544, 541, 545, 546,
655
- 547, 548, 549, 550, 551, 537, 0, 89,
656
- 552, 88, 89, 553, 88, 89, 554, 555,
657
- 88, 89, 556, 88, 89, 124, 88, 89,
658
- 557, 88, 89, 123, 88, 89, 558, 88,
659
- 89, 559, 88, 89, 560, 88, 561, 89,
660
- 121, 88, 121, 89, 88, 89, 562, 88,
661
- 89, 563, 564, 88, 89, 565, 88, 89,
662
- 566, 88, 89, 125, 88, 89, 567, 88,
663
- 89, 568, 88, 89, 566, 88, 89, 569,
664
- 570, 88, 89, 571, 88, 89, 572, 88,
665
- 89, 567, 88, 89, 573, 88, 89, 574,
666
- 88, 89, 575, 88, 89, 576, 88, 89,
667
- 126, 125, 88, 89, 577, 578, 579, 88,
668
- 89, 580, 88, 89, 581, 88, 89, 582,
669
- 88, 89, 583, 88, 89, 584, 88, 89,
670
- 585, 125, 88, 89, 125, 88, 89, 586,
671
- 88, 89, 566, 88, 89, 587, 88, 89,
672
- 588, 88, 89, 589, 88, 89, 590, 88,
673
- 89, 591, 88, 89, 592, 88, 89, 593,
674
- 88, 89, 594, 88, 89, 595, 88, 89,
675
- 596, 88, 89, 597, 88, 89, 598, 88,
676
- 89, 599, 88, 89, 600, 88, 89, 601,
677
- 88, 89, 566, 88, 602, 0
678
- ]
679
-
680
- class << self
681
- attr_accessor :_lexer_trans_targs
682
- private :_lexer_trans_targs, :_lexer_trans_targs=
683
- end
684
- self._lexer_trans_targs = [
685
- 0, 2, 4, 4, 5, 15, 17, 31,
686
- 34, 37, 39, 85, 259, 264, 275, 413,
687
- 441, 448, 3, 6, 7, 8, 9, 8,
688
- 8, 9, 8, 10, 10, 10, 11, 10,
689
- 10, 10, 11, 12, 13, 14, 4, 14,
690
- 15, 4, 16, 18, 19, 20, 21, 22,
691
- 23, 24, 25, 26, 27, 28, 29, 30,
692
- 509, 32, 33, 4, 16, 33, 4, 16,
693
- 35, 36, 4, 35, 34, 36, 38, 31,
694
- 40, 41, 42, 43, 44, 45, 46, 47,
695
- 48, 49, 50, 51, 52, 53, 54, 55,
696
- 54, 55, 55, 4, 56, 70, 454, 461,
697
- 466, 474, 483, 57, 58, 59, 60, 61,
698
- 62, 63, 64, 65, 66, 67, 68, 69,
699
- 4, 71, 72, 73, 74, 75, 76, 77,
700
- 78, 79, 80, 81, 82, 83, 84, 4,
701
- 4, 5, 15, 17, 31, 34, 37, 39,
702
- 85, 259, 264, 275, 413, 441, 448, 86,
703
- 88, 87, 89, 90, 163, 91, 92, 93,
704
- 94, 95, 96, 95, 96, 96, 4, 97,
705
- 111, 112, 114, 128, 131, 136, 144, 149,
706
- 156, 98, 99, 100, 101, 102, 103, 104,
707
- 105, 106, 107, 108, 109, 110, 4, 84,
708
- 113, 111, 115, 116, 117, 118, 119, 120,
709
- 121, 122, 123, 124, 125, 126, 127, 129,
710
- 130, 132, 133, 134, 135, 137, 139, 138,
711
- 140, 141, 142, 143, 145, 146, 147, 148,
712
- 150, 151, 152, 153, 154, 155, 157, 158,
713
- 161, 159, 160, 162, 164, 165, 166, 167,
714
- 168, 169, 170, 169, 170, 170, 4, 171,
715
- 185, 186, 188, 202, 209, 214, 222, 227,
716
- 252, 172, 173, 174, 175, 176, 177, 178,
717
- 179, 180, 181, 182, 183, 184, 4, 84,
718
- 187, 185, 189, 190, 191, 192, 193, 194,
719
- 195, 196, 197, 198, 199, 200, 201, 203,
720
- 205, 204, 206, 207, 208, 210, 211, 212,
721
- 213, 215, 217, 216, 218, 219, 220, 221,
722
- 223, 224, 225, 226, 228, 234, 236, 229,
723
- 230, 231, 232, 233, 235, 237, 238, 239,
724
- 240, 241, 242, 243, 244, 245, 246, 247,
725
- 248, 249, 250, 251, 253, 254, 257, 255,
726
- 256, 258, 260, 261, 262, 263, 265, 267,
727
- 266, 268, 271, 269, 270, 272, 273, 274,
728
- 276, 281, 277, 278, 279, 280, 282, 283,
729
- 284, 285, 286, 384, 287, 288, 287, 288,
730
- 288, 4, 289, 303, 304, 306, 320, 329,
731
- 334, 344, 352, 377, 290, 291, 292, 293,
732
- 294, 295, 296, 297, 298, 299, 300, 301,
733
- 302, 4, 84, 305, 303, 307, 308, 309,
734
- 310, 311, 312, 313, 314, 315, 316, 317,
735
- 318, 319, 321, 323, 322, 324, 325, 327,
736
- 326, 328, 330, 331, 332, 333, 335, 337,
737
- 336, 338, 341, 339, 340, 342, 343, 345,
738
- 348, 346, 347, 349, 350, 351, 353, 359,
739
- 361, 354, 355, 356, 357, 358, 360, 362,
740
- 363, 364, 365, 366, 367, 368, 369, 370,
741
- 371, 372, 373, 374, 375, 376, 378, 379,
742
- 382, 380, 381, 383, 385, 386, 387, 386,
743
- 387, 387, 4, 388, 402, 407, 389, 390,
744
- 391, 392, 393, 394, 395, 396, 397, 398,
745
- 399, 400, 401, 84, 403, 404, 405, 406,
746
- 408, 409, 410, 411, 412, 414, 422, 425,
747
- 415, 416, 417, 418, 419, 420, 421, 423,
748
- 424, 426, 427, 428, 429, 430, 431, 432,
749
- 433, 434, 435, 436, 437, 438, 439, 440,
750
- 442, 443, 446, 444, 445, 447, 448, 449,
751
- 450, 452, 453, 451, 449, 450, 451, 449,
752
- 452, 453, 5, 15, 17, 31, 34, 37,
753
- 39, 85, 259, 264, 275, 413, 441, 448,
754
- 455, 456, 457, 459, 458, 460, 462, 463,
755
- 464, 465, 467, 468, 471, 469, 470, 472,
756
- 473, 475, 478, 476, 477, 479, 480, 481,
757
- 482, 484, 491, 493, 485, 486, 487, 488,
758
- 489, 490, 492, 494, 495, 496, 497, 498,
759
- 499, 500, 501, 502, 503, 504, 505, 506,
760
- 507, 508, 0
761
- ]
762
-
763
- class << self
764
- attr_accessor :_lexer_trans_actions
765
- private :_lexer_trans_actions, :_lexer_trans_actions=
766
- end
767
- self._lexer_trans_actions = [
768
- 43, 0, 0, 54, 3, 1, 0, 29,
769
- 1, 29, 29, 29, 29, 29, 29, 29,
770
- 29, 35, 0, 0, 0, 7, 139, 48,
771
- 0, 102, 9, 5, 45, 134, 45, 0,
772
- 33, 122, 33, 33, 0, 11, 106, 0,
773
- 0, 114, 25, 0, 0, 0, 0, 0,
774
- 0, 0, 0, 0, 0, 0, 0, 0,
775
- 0, 0, 57, 149, 126, 0, 110, 23,
776
- 0, 27, 118, 27, 51, 0, 0, 0,
777
- 0, 0, 0, 0, 0, 0, 0, 0,
778
- 0, 0, 0, 0, 0, 0, 57, 144,
779
- 0, 54, 0, 69, 33, 84, 84, 84,
780
- 84, 84, 84, 0, 0, 0, 0, 0,
781
- 0, 0, 0, 0, 0, 0, 0, 0,
782
- 13, 0, 0, 0, 0, 0, 0, 0,
783
- 0, 0, 0, 0, 0, 0, 13, 31,
784
- 130, 60, 57, 31, 63, 57, 63, 63,
785
- 63, 63, 63, 63, 63, 63, 66, 0,
786
- 0, 0, 0, 0, 0, 0, 0, 0,
787
- 0, 57, 144, 0, 54, 0, 78, 33,
788
- 84, 84, 84, 84, 84, 84, 84, 84,
789
- 84, 0, 0, 0, 0, 0, 0, 0,
790
- 0, 0, 0, 0, 0, 0, 19, 19,
791
- 0, 0, 0, 0, 0, 0, 0, 0,
792
- 0, 0, 0, 0, 0, 0, 0, 0,
793
- 0, 0, 0, 0, 0, 0, 0, 0,
794
- 0, 0, 0, 0, 0, 0, 0, 0,
795
- 0, 0, 0, 0, 0, 0, 0, 0,
796
- 0, 0, 0, 0, 0, 0, 0, 0,
797
- 0, 57, 144, 0, 54, 0, 72, 33,
798
- 84, 84, 84, 84, 84, 84, 84, 84,
799
- 84, 0, 0, 0, 0, 0, 0, 0,
800
- 0, 0, 0, 0, 0, 0, 15, 15,
801
- 0, 0, 0, 0, 0, 0, 0, 0,
802
- 0, 0, 0, 0, 0, 0, 0, 0,
803
- 0, 0, 0, 0, 0, 0, 0, 0,
804
- 0, 0, 0, 0, 0, 0, 0, 0,
805
- 0, 0, 0, 0, 0, 0, 0, 0,
806
- 0, 0, 0, 0, 0, 0, 0, 0,
807
- 0, 0, 0, 0, 0, 0, 0, 0,
808
- 0, 0, 0, 0, 0, 0, 0, 0,
809
- 0, 0, 0, 0, 0, 0, 0, 0,
810
- 0, 0, 0, 0, 0, 0, 0, 0,
811
- 0, 0, 0, 0, 0, 0, 0, 0,
812
- 0, 0, 0, 0, 57, 144, 0, 54,
813
- 0, 75, 33, 84, 84, 84, 84, 84,
814
- 84, 84, 84, 84, 0, 0, 0, 0,
815
- 0, 0, 0, 0, 0, 0, 0, 0,
816
- 0, 17, 17, 0, 0, 0, 0, 0,
817
- 0, 0, 0, 0, 0, 0, 0, 0,
818
- 0, 0, 0, 0, 0, 0, 0, 0,
819
- 0, 0, 0, 0, 0, 0, 0, 0,
820
- 0, 0, 0, 0, 0, 0, 0, 0,
821
- 0, 0, 0, 0, 0, 0, 0, 0,
822
- 0, 0, 0, 0, 0, 0, 0, 0,
823
- 0, 0, 0, 0, 0, 0, 0, 0,
824
- 0, 0, 0, 0, 0, 0, 0, 0,
825
- 0, 0, 0, 0, 0, 57, 144, 0,
826
- 54, 0, 81, 84, 84, 84, 0, 0,
827
- 0, 0, 0, 0, 0, 0, 0, 0,
828
- 0, 0, 0, 21, 0, 0, 0, 0,
829
- 0, 0, 0, 0, 0, 0, 0, 0,
830
- 0, 0, 0, 0, 0, 0, 0, 0,
831
- 0, 0, 0, 0, 0, 0, 0, 0,
832
- 0, 0, 0, 0, 0, 0, 0, 0,
833
- 0, 0, 0, 0, 0, 0, 0, 0,
834
- 37, 37, 54, 37, 87, 0, 0, 39,
835
- 0, 0, 93, 90, 41, 96, 90, 96,
836
- 96, 96, 96, 96, 96, 96, 96, 99,
837
- 0, 0, 0, 0, 0, 0, 0, 0,
838
- 0, 0, 0, 0, 0, 0, 0, 0,
839
- 0, 0, 0, 0, 0, 0, 0, 0,
840
- 0, 0, 0, 0, 0, 0, 0, 0,
841
- 0, 0, 0, 0, 0, 0, 0, 0,
842
- 0, 0, 0, 0, 0, 0, 0, 0,
843
- 0, 0, 0
844
- ]
845
-
846
- class << self
847
- attr_accessor :_lexer_eof_actions
848
- private :_lexer_eof_actions, :_lexer_eof_actions=
849
- end
850
- self._lexer_eof_actions = [
851
- 0, 43, 43, 43, 43, 43, 43, 43,
852
- 43, 43, 43, 43, 43, 43, 43, 43,
853
- 43, 43, 43, 43, 43, 43, 43, 43,
854
- 43, 43, 43, 43, 43, 43, 43, 43,
855
- 43, 43, 43, 43, 43, 43, 43, 43,
856
- 43, 43, 43, 43, 43, 43, 43, 43,
857
- 43, 43, 43, 43, 43, 43, 43, 43,
858
- 43, 43, 43, 43, 43, 43, 43, 43,
859
- 43, 43, 43, 43, 43, 43, 43, 43,
860
- 43, 43, 43, 43, 43, 43, 43, 43,
861
- 43, 43, 43, 43, 43, 43, 43, 43,
862
- 43, 43, 43, 43, 43, 43, 43, 43,
863
- 43, 43, 43, 43, 43, 43, 43, 43,
864
- 43, 43, 43, 43, 43, 43, 43, 43,
865
- 43, 43, 43, 43, 43, 43, 43, 43,
866
- 43, 43, 43, 43, 43, 43, 43, 43,
867
- 43, 43, 43, 43, 43, 43, 43, 43,
868
- 43, 43, 43, 43, 43, 43, 43, 43,
869
- 43, 43, 43, 43, 43, 43, 43, 43,
870
- 43, 43, 43, 43, 43, 43, 43, 43,
871
- 43, 43, 43, 43, 43, 43, 43, 43,
872
- 43, 43, 43, 43, 43, 43, 43, 43,
873
- 43, 43, 43, 43, 43, 43, 43, 43,
874
- 43, 43, 43, 43, 43, 43, 43, 43,
875
- 43, 43, 43, 43, 43, 43, 43, 43,
876
- 43, 43, 43, 43, 43, 43, 43, 43,
877
- 43, 43, 43, 43, 43, 43, 43, 43,
878
- 43, 43, 43, 43, 43, 43, 43, 43,
879
- 43, 43, 43, 43, 43, 43, 43, 43,
880
- 43, 43, 43, 43, 43, 43, 43, 43,
881
- 43, 43, 43, 43, 43, 43, 43, 43,
882
- 43, 43, 43, 43, 43, 43, 43, 43,
883
- 43, 43, 43, 43, 43, 43, 43, 43,
884
- 43, 43, 43, 43, 43, 43, 43, 43,
885
- 43, 43, 43, 43, 43, 43, 43, 43,
886
- 43, 43, 43, 43, 43, 43, 43, 43,
887
- 43, 43, 43, 43, 43, 43, 43, 43,
888
- 43, 43, 43, 43, 43, 43, 43, 43,
889
- 43, 43, 43, 43, 43, 43, 43, 43,
890
- 43, 43, 43, 43, 43, 43, 43, 43,
891
- 43, 43, 43, 43, 43, 43, 43, 43,
892
- 43, 43, 43, 43, 43, 43, 43, 43,
893
- 43, 43, 43, 43, 43, 43, 43, 43,
894
- 43, 43, 43, 43, 43, 43, 43, 43,
895
- 43, 43, 43, 43, 43, 43, 43, 43,
896
- 43, 43, 43, 43, 43, 43, 43, 43,
897
- 43, 43, 43, 43, 43, 43, 43, 43,
898
- 43, 43, 43, 43, 43, 43, 43, 43,
899
- 43, 43, 43, 43, 43, 43, 43, 43,
900
- 43, 43, 43, 43, 43, 43, 43, 43,
901
- 43, 43, 43, 43, 43, 43, 43, 43,
902
- 43, 43, 43, 43, 43, 43, 43, 43,
903
- 43, 43, 43, 43, 43, 43, 43, 43,
904
- 43, 43, 43, 43, 43, 43, 43, 43,
905
- 43, 43, 43, 43, 43, 43, 43, 43,
906
- 43, 43, 43, 43, 43, 43, 43, 43,
907
- 43, 43, 43, 43, 43, 43, 43, 43,
908
- 43, 43, 43, 43, 43, 43, 43, 43,
909
- 43, 43, 43, 43, 43, 43, 43, 43,
910
- 43, 43, 43, 43, 43, 43, 43, 43,
911
- 43, 43, 43, 43, 43, 43, 43, 43,
912
- 43, 43, 43, 43, 43, 43, 43, 43,
913
- 43, 43, 43, 43, 43, 43, 43, 43,
914
- 43, 43, 43, 43, 43, 43
915
- ]
916
-
917
- class << self
918
- attr_accessor :lexer_start
919
- end
920
- self.lexer_start = 1;
921
- class << self
922
- attr_accessor :lexer_first_final
923
- end
924
- self.lexer_first_final = 509;
925
- class << self
926
- attr_accessor :lexer_error
927
- end
928
- self.lexer_error = 0;
929
-
930
- class << self
931
- attr_accessor :lexer_en_main
932
- end
933
- self.lexer_en_main = 1;
934
-
935
-
936
- # line 128 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
937
- end
938
-
939
- def scan(data)
940
- data = (data + "\n%_FEATURE_END_%").unpack("c*") # Explicit EOF simplifies things considerably
941
- eof = pe = data.length
942
-
943
- @line_number = 1
944
- @last_newline = 0
945
-
946
-
947
- # line 948 "lib/gherkin/rb_lexer/sr_latn.rb"
948
- begin
949
- p ||= 0
950
- pe ||= data.length
951
- cs = lexer_start
952
- end
953
-
954
- # line 138 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
955
-
956
- # line 957 "lib/gherkin/rb_lexer/sr_latn.rb"
957
- begin
958
- _klen, _trans, _keys, _acts, _nacts = nil
959
- _goto_level = 0
960
- _resume = 10
961
- _eof_trans = 15
962
- _again = 20
963
- _test_eof = 30
964
- _out = 40
965
- while true
966
- _trigger_goto = false
967
- if _goto_level <= 0
968
- if p == pe
969
- _goto_level = _test_eof
970
- next
971
- end
972
- if cs == 0
973
- _goto_level = _out
974
- next
975
- end
976
- end
977
- if _goto_level <= _resume
978
- _keys = _lexer_key_offsets[cs]
979
- _trans = _lexer_index_offsets[cs]
980
- _klen = _lexer_single_lengths[cs]
981
- _break_match = false
982
-
983
- begin
984
- if _klen > 0
985
- _lower = _keys
986
- _upper = _keys + _klen - 1
987
-
988
- loop do
989
- break if _upper < _lower
990
- _mid = _lower + ( (_upper - _lower) >> 1 )
991
-
992
- if data[p] < _lexer_trans_keys[_mid]
993
- _upper = _mid - 1
994
- elsif data[p] > _lexer_trans_keys[_mid]
995
- _lower = _mid + 1
996
- else
997
- _trans += (_mid - _keys)
998
- _break_match = true
999
- break
1000
- end
1001
- end # loop
1002
- break if _break_match
1003
- _keys += _klen
1004
- _trans += _klen
1005
- end
1006
- _klen = _lexer_range_lengths[cs]
1007
- if _klen > 0
1008
- _lower = _keys
1009
- _upper = _keys + (_klen << 1) - 2
1010
- loop do
1011
- break if _upper < _lower
1012
- _mid = _lower + (((_upper-_lower) >> 1) & ~1)
1013
- if data[p] < _lexer_trans_keys[_mid]
1014
- _upper = _mid - 2
1015
- elsif data[p] > _lexer_trans_keys[_mid+1]
1016
- _lower = _mid + 2
1017
- else
1018
- _trans += ((_mid - _keys) >> 1)
1019
- _break_match = true
1020
- break
1021
- end
1022
- end # loop
1023
- break if _break_match
1024
- _trans += _klen
1025
- end
1026
- end while false
1027
- _trans = _lexer_indicies[_trans]
1028
- cs = _lexer_trans_targs[_trans]
1029
- if _lexer_trans_actions[_trans] != 0
1030
- _acts = _lexer_trans_actions[_trans]
1031
- _nacts = _lexer_actions[_acts]
1032
- _acts += 1
1033
- while _nacts > 0
1034
- _nacts -= 1
1035
- _acts += 1
1036
- case _lexer_actions[_acts - 1]
1037
- when 0 then
1038
- # line 9 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1039
- begin
1040
-
1041
- @content_start = p
1042
- @current_line = @line_number
1043
- @start_col = p - @last_newline - "#{@keyword}:".length
1044
- end
1045
- when 1 then
1046
- # line 15 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1047
- begin
1048
-
1049
- @current_line = @line_number
1050
- @start_col = p - @last_newline
1051
- end
1052
- when 2 then
1053
- # line 20 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1054
- begin
1055
-
1056
- @content_start = p
1057
- end
1058
- when 3 then
1059
- # line 24 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1060
- begin
1061
-
1062
- @docstring_content_type_start = p
1063
- end
1064
- when 4 then
1065
- # line 27 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1066
- begin
1067
-
1068
- @docstring_content_type_end = p
1069
- end
1070
- when 5 then
1071
- # line 31 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1072
- begin
1073
-
1074
- con = unindent(@start_col, utf8_pack(data[@content_start...@next_keyword_start-1]).sub(/(\r?\n)?([\t ])*\Z/, '').gsub(/\\"\\"\\"/, '"""'))
1075
- con_type = utf8_pack(data[@docstring_content_type_start...@docstring_content_type_end]).strip
1076
- @listener.doc_string(con_type, con, @current_line)
1077
- end
1078
- when 6 then
1079
- # line 36 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1080
- begin
1081
-
1082
- p = store_keyword_content(:feature, data, p, eof)
1083
- end
1084
- when 7 then
1085
- # line 40 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1086
- begin
1087
-
1088
- p = store_keyword_content(:background, data, p, eof)
1089
- end
1090
- when 8 then
1091
- # line 44 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1092
- begin
1093
-
1094
- p = store_keyword_content(:scenario, data, p, eof)
1095
- end
1096
- when 9 then
1097
- # line 48 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1098
- begin
1099
-
1100
- p = store_keyword_content(:scenario_outline, data, p, eof)
1101
- end
1102
- when 10 then
1103
- # line 52 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1104
- begin
1105
-
1106
- p = store_keyword_content(:examples, data, p, eof)
1107
- end
1108
- when 11 then
1109
- # line 56 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1110
- begin
1111
-
1112
- con = utf8_pack(data[@content_start...p]).strip
1113
- @listener.step(@keyword, con, @current_line)
1114
- end
1115
- when 12 then
1116
- # line 61 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1117
- begin
1118
-
1119
- con = utf8_pack(data[@content_start...p]).strip
1120
- @listener.comment(con, @line_number)
1121
- @keyword_start = nil
1122
- end
1123
- when 13 then
1124
- # line 67 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1125
- begin
1126
-
1127
- con = utf8_pack(data[@content_start...p]).strip
1128
- @listener.tag(con, @current_line)
1129
- @keyword_start = nil
1130
- end
1131
- when 14 then
1132
- # line 73 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1133
- begin
1134
-
1135
- @line_number += 1
1136
- end
1137
- when 15 then
1138
- # line 77 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1139
- begin
1140
-
1141
- @last_newline = p + 1
1142
- end
1143
- when 16 then
1144
- # line 81 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1145
- begin
1146
-
1147
- @keyword_start ||= p
1148
- end
1149
- when 17 then
1150
- # line 85 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1151
- begin
1152
-
1153
- @keyword = utf8_pack(data[@keyword_start...p]).sub(/:$/,'')
1154
- @keyword_start = nil
1155
- end
1156
- when 18 then
1157
- # line 90 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1158
- begin
1159
-
1160
- @next_keyword_start = p
1161
- end
1162
- when 19 then
1163
- # line 94 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1164
- begin
1165
-
1166
- p = p - 1
1167
- current_row = []
1168
- @current_line = @line_number
1169
- end
1170
- when 20 then
1171
- # line 100 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1172
- begin
1173
-
1174
- @content_start = p
1175
- end
1176
- when 21 then
1177
- # line 104 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1178
- begin
1179
-
1180
- con = utf8_pack(data[@content_start...p]).strip
1181
- current_row << con.gsub(/\\\|/, "|").gsub(/\\n/, "\n").gsub(/\\\\/, "\\")
1182
- end
1183
- when 22 then
1184
- # line 109 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1185
- begin
1186
-
1187
- @listener.row(current_row, @current_line)
1188
- end
1189
- when 23 then
1190
- # line 113 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1191
- begin
1192
-
1193
- if cs < lexer_first_final
1194
- content = current_line_content(data, p)
1195
- raise Gherkin::Lexer::LexingError.new("Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information." % [@line_number, content])
1196
- else
1197
- @listener.eof
1198
- end
1199
- end
1200
- # line 1201 "lib/gherkin/rb_lexer/sr_latn.rb"
1201
- end # action switch
1202
- end
1203
- end
1204
- if _trigger_goto
1205
- next
1206
- end
1207
- end
1208
- if _goto_level <= _again
1209
- if cs == 0
1210
- _goto_level = _out
1211
- next
1212
- end
1213
- p += 1
1214
- if p != pe
1215
- _goto_level = _resume
1216
- next
1217
- end
1218
- end
1219
- if _goto_level <= _test_eof
1220
- if p == eof
1221
- __acts = _lexer_eof_actions[cs]
1222
- __nacts = _lexer_actions[__acts]
1223
- __acts += 1
1224
- while __nacts > 0
1225
- __nacts -= 1
1226
- __acts += 1
1227
- case _lexer_actions[__acts - 1]
1228
- when 23 then
1229
- # line 113 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1230
- begin
1231
-
1232
- if cs < lexer_first_final
1233
- content = current_line_content(data, p)
1234
- raise Gherkin::Lexer::LexingError.new("Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information." % [@line_number, content])
1235
- else
1236
- @listener.eof
1237
- end
1238
- end
1239
- # line 1240 "lib/gherkin/rb_lexer/sr_latn.rb"
1240
- end # eof action switch
1241
- end
1242
- if _trigger_goto
1243
- next
1244
- end
1245
- end
1246
- end
1247
- if _goto_level <= _out
1248
- break
1249
- end
1250
- end
1251
- end
1252
-
1253
- # line 139 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.rb.rl"
1254
- end
1255
-
1256
- def unindent(startcol, text)
1257
- text.gsub(/^[\t ]{0,#{startcol}}/, "")
1258
- end
1259
-
1260
- def store_keyword_content(event, data, p, eof)
1261
- end_point = (!@next_keyword_start or (p == eof)) ? p : @next_keyword_start
1262
- content = unindent(@start_col + 2, utf8_pack(data[@content_start...end_point])).rstrip
1263
- content_lines = content.split("\n")
1264
- name = content_lines.shift || ""
1265
- name.strip!
1266
- description = content_lines.join("\n")
1267
- @listener.__send__(event, @keyword, name, description, @current_line)
1268
- @next_keyword_start ? @next_keyword_start - 1 : p
1269
- ensure
1270
- @next_keyword_start = nil
1271
- end
1272
-
1273
- def current_line_content(data, p)
1274
- rest = data[@last_newline..-1]
1275
- utf8_pack(rest[0..rest.index(10)||-1]).strip # 10 is \n
1276
- end
1277
-
1278
- if (RUBY_VERSION =~ /^1\.9/)
1279
- def utf8_pack(array)
1280
- array.pack("c*").force_encoding("UTF-8")
1281
- end
1282
- else
1283
- def utf8_pack(array)
1284
- array.pack("c*")
1285
- end
1286
- end
1287
- end
1288
- end
1289
- end