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,1087 +0,0 @@
1
-
2
- # line 1 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
3
- require 'gherkin/lexer/i18n_lexer'
4
-
5
- module Gherkin
6
- module RbLexer
7
- class Tr #:nodoc:
8
-
9
- # line 123 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
10
-
11
-
12
- def initialize(listener)
13
- @listener = listener
14
-
15
- # line 16 "lib/gherkin/rb_lexer/tr.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, 23, 24, 25, 26,
49
- 27, 28, 29, 30, 31, 32, 39, 41,
50
- 43, 45, 47, 49, 51, 53, 55, 74,
51
- 93, 94, 95, 97, 99, 104, 109, 114,
52
- 119, 123, 127, 129, 130, 131, 132, 133,
53
- 134, 135, 136, 137, 138, 139, 140, 141,
54
- 142, 143, 144, 145, 147, 149, 154, 161,
55
- 166, 167, 168, 169, 170, 171, 172, 173,
56
- 174, 175, 176, 177, 178, 179, 180, 181,
57
- 182, 183, 184, 185, 186, 187, 188, 189,
58
- 190, 191, 192, 193, 194, 195, 211, 213,
59
- 215, 217, 219, 221, 223, 225, 227, 229,
60
- 231, 233, 235, 237, 239, 241, 243, 245,
61
- 247, 249, 251, 253, 255, 257, 259, 261,
62
- 263, 265, 267, 269, 271, 273, 275, 277,
63
- 279, 281, 283, 285, 287, 289, 291, 293,
64
- 295, 297, 299, 301, 303, 305, 307, 309,
65
- 311, 313, 315, 317, 319, 322, 324, 326,
66
- 328, 330, 332, 334, 336, 338, 340, 342,
67
- 343, 344, 345, 346, 347, 348, 349, 350,
68
- 351, 352, 353, 354, 356, 357, 358, 359,
69
- 360, 361, 362, 363, 364, 365, 366, 367,
70
- 368, 384, 386, 388, 390, 392, 394, 396,
71
- 398, 400, 402, 404, 406, 408, 410, 412,
72
- 414, 416, 418, 420, 422, 424, 426, 428,
73
- 430, 432, 434, 436, 438, 440, 442, 444,
74
- 446, 448, 450, 452, 454, 456, 458, 460,
75
- 462, 464, 466, 468, 470, 472, 474, 476,
76
- 478, 480, 482, 484, 486, 488, 490, 492,
77
- 494, 495, 496, 513, 515, 517, 519, 521,
78
- 523, 525, 527, 529, 531, 533, 535, 537,
79
- 539, 541, 543, 545, 547, 549, 551, 553,
80
- 555, 557, 559, 561, 563, 565, 567, 569,
81
- 571, 573, 575, 577, 579, 581, 583, 585,
82
- 587, 589, 591, 593, 595, 597, 599, 601,
83
- 603, 605, 607, 609, 611, 613, 615, 617,
84
- 619, 621, 623, 625, 627, 629, 631, 633,
85
- 635, 638, 640, 642, 644, 646, 648, 650,
86
- 652, 654, 656, 658, 659, 663, 669, 672,
87
- 674, 680, 699, 700, 701, 702, 703, 704,
88
- 705, 706, 707, 717, 719, 722, 724, 726,
89
- 728, 730, 732, 734, 736, 738, 740, 742,
90
- 744, 746, 748, 750, 752, 754, 756, 758,
91
- 760, 762, 764, 766, 768, 770, 772, 774,
92
- 776, 778, 780, 782, 784, 786, 788, 790,
93
- 792, 794, 796, 798, 800, 803, 805, 807,
94
- 809, 811, 813, 815, 817, 819, 821, 822,
95
- 823
96
- ]
97
-
98
- class << self
99
- attr_accessor :_lexer_trans_keys
100
- private :_lexer_trans_keys, :_lexer_trans_keys=
101
- end
102
- self._lexer_trans_keys = [
103
- -61, -17, 10, 32, 34, 35, 37, 42,
104
- 64, 65, 68, 69, 70, 71, 79, 83,
105
- 86, 124, 9, 13, -106, 114, 122, 110,
106
- 101, 107, 108, 101, 114, 58, 10, 10,
107
- -61, 10, 32, 35, 124, 9, 13, -106,
108
- 10, 10, 122, 10, 101, 10, 108, 10,
109
- 108, 10, 105, 10, 107, 10, 58, -61,
110
- 10, 32, 34, 35, 37, 42, 64, 65,
111
- 68, 69, 70, 71, 79, 83, 86, 124,
112
- 9, 13, -61, 10, 32, 34, 35, 37,
113
- 42, 64, 65, 68, 69, 70, 71, 79,
114
- 83, 86, 124, 9, 13, 34, 34, 10,
115
- 13, 10, 13, 10, 32, 34, 9, 13,
116
- 10, 32, 34, 9, 13, 10, 32, 34,
117
- 9, 13, 10, 32, 34, 9, 13, 10,
118
- 32, 9, 13, 10, 32, 9, 13, 10,
119
- 13, 10, 95, 70, 69, 65, 84, 85,
120
- 82, 69, 95, 69, 78, 68, 95, 37,
121
- 32, 10, 13, 10, 13, 13, 32, 64,
122
- 9, 10, 9, 10, 13, 32, 64, 11,
123
- 12, 10, 32, 64, 9, 13, 109, 97,
124
- 105, 121, 101, 108, 105, 109, 32, 107,
125
- 105, -60, -97, 101, 114, 97, 107, 97,
126
- 116, 101, -61, -89, 109, 105, -59, -97,
127
- 58, 10, 10, -61, 10, 32, 35, 37,
128
- 42, 64, 65, 68, 69, 70, 79, 83,
129
- 86, 9, 13, -106, 10, 10, 122, 10,
130
- 101, 10, 108, 10, 108, 10, 105, 10,
131
- 107, 10, 58, 10, 95, 10, 70, 10,
132
- 69, 10, 65, 10, 84, 10, 85, 10,
133
- 82, 10, 69, 10, 95, 10, 69, 10,
134
- 78, 10, 68, 10, 95, 10, 37, 10,
135
- 32, 10, 109, 10, 97, 10, 105, 10,
136
- 121, 10, 101, 10, 108, 10, 105, 10,
137
- 109, 10, 32, 10, 107, 10, 105, -60,
138
- 10, -97, 10, 10, 101, 10, 114, 10,
139
- 97, 10, 107, 10, 97, 10, 116, 10,
140
- 32, 10, 122, 10, 97, 10, 109, 10,
141
- 97, 10, 110, 10, 101, 10, 110, 10,
142
- 97, 10, 114, 10, 121, 10, 111, 10,
143
- 32, 58, 10, 116, 10, 97, 10, 115,
144
- 10, 108, 10, 97, -60, 10, -97, 10,
145
- -60, 10, -79, 10, 10, 101, 32, 122,
146
- 97, 109, 97, 110, 101, 110, 97, 114,
147
- 121, 111, 32, 58, 116, 97, 115, 108,
148
- 97, -60, -97, -60, -79, 58, 10, 10,
149
- -61, 10, 32, 35, 37, 42, 64, 65,
150
- 68, 69, 70, 79, 83, 86, 9, 13,
151
- -106, 10, 10, 122, 10, 101, 10, 108,
152
- 10, 108, 10, 105, 10, 107, 10, 58,
153
- 10, 95, 10, 70, 10, 69, 10, 65,
154
- 10, 84, 10, 85, 10, 82, 10, 69,
155
- 10, 95, 10, 69, 10, 78, 10, 68,
156
- 10, 95, 10, 37, 10, 32, 10, 109,
157
- 10, 97, 10, 105, 10, 121, 10, 101,
158
- 10, 108, 10, 105, 10, 109, 10, 32,
159
- 10, 107, 10, 105, -60, 10, -97, 10,
160
- 10, 101, 10, 114, 10, 97, 10, 107,
161
- 10, 97, 10, 116, 10, 32, 10, 122,
162
- 10, 97, 10, 109, 10, 97, 10, 110,
163
- 10, 101, 10, 110, 10, 97, 10, 114,
164
- 10, 121, 10, 111, 10, 101, 10, 10,
165
- -61, 10, 32, 35, 37, 42, 64, 65,
166
- 68, 69, 70, 71, 79, 83, 86, 9,
167
- 13, -106, 10, 10, 122, 10, 101, 10,
168
- 108, 10, 108, 10, 105, 10, 107, 10,
169
- 58, 10, 95, 10, 70, 10, 69, 10,
170
- 65, 10, 84, 10, 85, 10, 82, 10,
171
- 69, 10, 95, 10, 69, 10, 78, 10,
172
- 68, 10, 95, 10, 37, 10, 32, 10,
173
- 109, 10, 97, 10, 105, 10, 121, 10,
174
- 101, 10, 108, 10, 105, 10, 109, 10,
175
- 32, 10, 107, 10, 105, -60, 10, -97,
176
- 10, 10, 101, 10, 114, 10, 97, 10,
177
- 107, 10, 97, 10, 116, 10, 101, -61,
178
- 10, -89, 10, 10, 109, 10, 105, -59,
179
- 10, -97, 10, 10, 32, 10, 122, 10,
180
- 97, 10, 109, 10, 97, 10, 110, 10,
181
- 101, 10, 110, 10, 97, 10, 114, 10,
182
- 121, 10, 111, 10, 32, 58, 10, 116,
183
- 10, 97, 10, 115, 10, 108, 10, 97,
184
- -60, 10, -97, 10, -60, 10, -79, 10,
185
- 10, 101, 101, 32, 124, 9, 13, 10,
186
- 32, 92, 124, 9, 13, 10, 92, 124,
187
- 10, 92, 10, 32, 92, 124, 9, 13,
188
- -61, 10, 32, 34, 35, 37, 42, 64,
189
- 65, 68, 69, 70, 71, 79, 83, 86,
190
- 124, 9, 13, 101, 108, 108, 105, 107,
191
- 58, 10, 10, -61, 10, 32, 35, 37,
192
- 64, 71, 83, 9, 13, -106, 10, 10,
193
- 114, 122, 10, 110, 10, 101, 10, 107,
194
- 10, 108, 10, 101, 10, 114, 10, 58,
195
- 10, 101, 10, 108, 10, 108, 10, 105,
196
- 10, 107, 10, 95, 10, 70, 10, 69,
197
- 10, 65, 10, 84, 10, 85, 10, 82,
198
- 10, 69, 10, 95, 10, 69, 10, 78,
199
- 10, 68, 10, 95, 10, 37, 10, 101,
200
- -61, 10, -89, 10, 10, 109, 10, 105,
201
- -59, 10, -97, 10, 10, 101, 10, 110,
202
- 10, 97, 10, 114, 10, 121, 10, 111,
203
- 10, 32, 58, 10, 116, 10, 97, 10,
204
- 115, 10, 108, 10, 97, -60, 10, -97,
205
- 10, -60, 10, -79, 10, -69, -65, 0
206
- ]
207
-
208
- class << self
209
- attr_accessor :_lexer_single_lengths
210
- private :_lexer_single_lengths, :_lexer_single_lengths=
211
- end
212
- self._lexer_single_lengths = [
213
- 0, 18, 1, 2, 1, 1, 1, 1,
214
- 1, 1, 1, 1, 1, 5, 2, 2,
215
- 2, 2, 2, 2, 2, 2, 17, 17,
216
- 1, 1, 2, 2, 3, 3, 3, 3,
217
- 2, 2, 2, 1, 1, 1, 1, 1,
218
- 1, 1, 1, 1, 1, 1, 1, 1,
219
- 1, 1, 1, 2, 2, 3, 5, 3,
220
- 1, 1, 1, 1, 1, 1, 1, 1,
221
- 1, 1, 1, 1, 1, 1, 1, 1,
222
- 1, 1, 1, 1, 1, 1, 1, 1,
223
- 1, 1, 1, 1, 1, 14, 2, 2,
224
- 2, 2, 2, 2, 2, 2, 2, 2,
225
- 2, 2, 2, 2, 2, 2, 2, 2,
226
- 2, 2, 2, 2, 2, 2, 2, 2,
227
- 2, 2, 2, 2, 2, 2, 2, 2,
228
- 2, 2, 2, 2, 2, 2, 2, 2,
229
- 2, 2, 2, 2, 2, 2, 2, 2,
230
- 2, 2, 2, 2, 3, 2, 2, 2,
231
- 2, 2, 2, 2, 2, 2, 2, 1,
232
- 1, 1, 1, 1, 1, 1, 1, 1,
233
- 1, 1, 1, 2, 1, 1, 1, 1,
234
- 1, 1, 1, 1, 1, 1, 1, 1,
235
- 14, 2, 2, 2, 2, 2, 2, 2,
236
- 2, 2, 2, 2, 2, 2, 2, 2,
237
- 2, 2, 2, 2, 2, 2, 2, 2,
238
- 2, 2, 2, 2, 2, 2, 2, 2,
239
- 2, 2, 2, 2, 2, 2, 2, 2,
240
- 2, 2, 2, 2, 2, 2, 2, 2,
241
- 2, 2, 2, 2, 2, 2, 2, 2,
242
- 1, 1, 15, 2, 2, 2, 2, 2,
243
- 2, 2, 2, 2, 2, 2, 2, 2,
244
- 2, 2, 2, 2, 2, 2, 2, 2,
245
- 2, 2, 2, 2, 2, 2, 2, 2,
246
- 2, 2, 2, 2, 2, 2, 2, 2,
247
- 2, 2, 2, 2, 2, 2, 2, 2,
248
- 2, 2, 2, 2, 2, 2, 2, 2,
249
- 2, 2, 2, 2, 2, 2, 2, 2,
250
- 3, 2, 2, 2, 2, 2, 2, 2,
251
- 2, 2, 2, 1, 2, 4, 3, 2,
252
- 4, 17, 1, 1, 1, 1, 1, 1,
253
- 1, 1, 8, 2, 3, 2, 2, 2,
254
- 2, 2, 2, 2, 2, 2, 2, 2,
255
- 2, 2, 2, 2, 2, 2, 2, 2,
256
- 2, 2, 2, 2, 2, 2, 2, 2,
257
- 2, 2, 2, 2, 2, 2, 2, 2,
258
- 2, 2, 2, 2, 3, 2, 2, 2,
259
- 2, 2, 2, 2, 2, 2, 1, 1,
260
- 0
261
- ]
262
-
263
- class << self
264
- attr_accessor :_lexer_range_lengths
265
- private :_lexer_range_lengths, :_lexer_range_lengths=
266
- end
267
- self._lexer_range_lengths = [
268
- 0, 1, 0, 0, 0, 0, 0, 0,
269
- 0, 0, 0, 0, 0, 1, 0, 0,
270
- 0, 0, 0, 0, 0, 0, 1, 1,
271
- 0, 0, 0, 0, 1, 1, 1, 1,
272
- 1, 1, 0, 0, 0, 0, 0, 0,
273
- 0, 0, 0, 0, 0, 0, 0, 0,
274
- 0, 0, 0, 0, 0, 1, 1, 1,
275
- 0, 0, 0, 0, 0, 0, 0, 0,
276
- 0, 0, 0, 0, 0, 0, 0, 0,
277
- 0, 0, 0, 0, 0, 0, 0, 0,
278
- 0, 0, 0, 0, 0, 1, 0, 0,
279
- 0, 0, 0, 0, 0, 0, 0, 0,
280
- 0, 0, 0, 0, 0, 0, 0, 0,
281
- 0, 0, 0, 0, 0, 0, 0, 0,
282
- 0, 0, 0, 0, 0, 0, 0, 0,
283
- 0, 0, 0, 0, 0, 0, 0, 0,
284
- 0, 0, 0, 0, 0, 0, 0, 0,
285
- 0, 0, 0, 0, 0, 0, 0, 0,
286
- 0, 0, 0, 0, 0, 0, 0, 0,
287
- 0, 0, 0, 0, 0, 0, 0, 0,
288
- 0, 0, 0, 0, 0, 0, 0, 0,
289
- 0, 0, 0, 0, 0, 0, 0, 0,
290
- 1, 0, 0, 0, 0, 0, 0, 0,
291
- 0, 0, 0, 0, 0, 0, 0, 0,
292
- 0, 0, 0, 0, 0, 0, 0, 0,
293
- 0, 0, 0, 0, 0, 0, 0, 0,
294
- 0, 0, 0, 0, 0, 0, 0, 0,
295
- 0, 0, 0, 0, 0, 0, 0, 0,
296
- 0, 0, 0, 0, 0, 0, 0, 0,
297
- 0, 0, 1, 0, 0, 0, 0, 0,
298
- 0, 0, 0, 0, 0, 0, 0, 0,
299
- 0, 0, 0, 0, 0, 0, 0, 0,
300
- 0, 0, 0, 0, 0, 0, 0, 0,
301
- 0, 0, 0, 0, 0, 0, 0, 0,
302
- 0, 0, 0, 0, 0, 0, 0, 0,
303
- 0, 0, 0, 0, 0, 0, 0, 0,
304
- 0, 0, 0, 0, 0, 0, 0, 0,
305
- 0, 0, 0, 0, 0, 0, 0, 0,
306
- 0, 0, 0, 0, 1, 1, 0, 0,
307
- 1, 1, 0, 0, 0, 0, 0, 0,
308
- 0, 0, 1, 0, 0, 0, 0, 0,
309
- 0, 0, 0, 0, 0, 0, 0, 0,
310
- 0, 0, 0, 0, 0, 0, 0, 0,
311
- 0, 0, 0, 0, 0, 0, 0, 0,
312
- 0, 0, 0, 0, 0, 0, 0, 0,
313
- 0, 0, 0, 0, 0, 0, 0, 0,
314
- 0, 0, 0, 0, 0, 0, 0, 0,
315
- 0
316
- ]
317
-
318
- class << self
319
- attr_accessor :_lexer_index_offsets
320
- private :_lexer_index_offsets, :_lexer_index_offsets=
321
- end
322
- self._lexer_index_offsets = [
323
- 0, 0, 20, 22, 25, 27, 29, 31,
324
- 33, 35, 37, 39, 41, 43, 50, 53,
325
- 56, 59, 62, 65, 68, 71, 74, 93,
326
- 112, 114, 116, 119, 122, 127, 132, 137,
327
- 142, 146, 150, 153, 155, 157, 159, 161,
328
- 163, 165, 167, 169, 171, 173, 175, 177,
329
- 179, 181, 183, 185, 188, 191, 196, 203,
330
- 208, 210, 212, 214, 216, 218, 220, 222,
331
- 224, 226, 228, 230, 232, 234, 236, 238,
332
- 240, 242, 244, 246, 248, 250, 252, 254,
333
- 256, 258, 260, 262, 264, 266, 282, 285,
334
- 288, 291, 294, 297, 300, 303, 306, 309,
335
- 312, 315, 318, 321, 324, 327, 330, 333,
336
- 336, 339, 342, 345, 348, 351, 354, 357,
337
- 360, 363, 366, 369, 372, 375, 378, 381,
338
- 384, 387, 390, 393, 396, 399, 402, 405,
339
- 408, 411, 414, 417, 420, 423, 426, 429,
340
- 432, 435, 438, 441, 444, 448, 451, 454,
341
- 457, 460, 463, 466, 469, 472, 475, 478,
342
- 480, 482, 484, 486, 488, 490, 492, 494,
343
- 496, 498, 500, 502, 505, 507, 509, 511,
344
- 513, 515, 517, 519, 521, 523, 525, 527,
345
- 529, 545, 548, 551, 554, 557, 560, 563,
346
- 566, 569, 572, 575, 578, 581, 584, 587,
347
- 590, 593, 596, 599, 602, 605, 608, 611,
348
- 614, 617, 620, 623, 626, 629, 632, 635,
349
- 638, 641, 644, 647, 650, 653, 656, 659,
350
- 662, 665, 668, 671, 674, 677, 680, 683,
351
- 686, 689, 692, 695, 698, 701, 704, 707,
352
- 710, 712, 714, 731, 734, 737, 740, 743,
353
- 746, 749, 752, 755, 758, 761, 764, 767,
354
- 770, 773, 776, 779, 782, 785, 788, 791,
355
- 794, 797, 800, 803, 806, 809, 812, 815,
356
- 818, 821, 824, 827, 830, 833, 836, 839,
357
- 842, 845, 848, 851, 854, 857, 860, 863,
358
- 866, 869, 872, 875, 878, 881, 884, 887,
359
- 890, 893, 896, 899, 902, 905, 908, 911,
360
- 914, 918, 921, 924, 927, 930, 933, 936,
361
- 939, 942, 945, 948, 950, 954, 960, 964,
362
- 967, 973, 992, 994, 996, 998, 1000, 1002,
363
- 1004, 1006, 1008, 1018, 1021, 1025, 1028, 1031,
364
- 1034, 1037, 1040, 1043, 1046, 1049, 1052, 1055,
365
- 1058, 1061, 1064, 1067, 1070, 1073, 1076, 1079,
366
- 1082, 1085, 1088, 1091, 1094, 1097, 1100, 1103,
367
- 1106, 1109, 1112, 1115, 1118, 1121, 1124, 1127,
368
- 1130, 1133, 1136, 1139, 1142, 1146, 1149, 1152,
369
- 1155, 1158, 1161, 1164, 1167, 1170, 1173, 1175,
370
- 1177
371
- ]
372
-
373
- class << self
374
- attr_accessor :_lexer_indicies
375
- private :_lexer_indicies, :_lexer_indicies=
376
- end
377
- self._lexer_indicies = [
378
- 1, 2, 4, 3, 5, 6, 7, 8,
379
- 9, 10, 11, 12, 13, 14, 15, 16,
380
- 17, 18, 3, 0, 19, 0, 20, 21,
381
- 0, 22, 0, 23, 0, 24, 0, 25,
382
- 0, 26, 0, 27, 0, 28, 0, 30,
383
- 29, 32, 31, 33, 32, 34, 35, 35,
384
- 34, 31, 36, 32, 31, 32, 37, 31,
385
- 32, 38, 31, 32, 39, 31, 32, 40,
386
- 31, 32, 41, 31, 32, 42, 31, 32,
387
- 43, 31, 44, 46, 45, 47, 48, 49,
388
- 50, 51, 52, 53, 54, 55, 56, 57,
389
- 58, 59, 60, 45, 0, 1, 4, 3,
390
- 5, 6, 7, 8, 9, 10, 11, 12,
391
- 13, 14, 15, 16, 17, 18, 3, 0,
392
- 61, 0, 62, 0, 64, 65, 63, 67,
393
- 68, 66, 71, 70, 72, 70, 69, 75,
394
- 74, 76, 74, 73, 75, 74, 77, 74,
395
- 73, 75, 74, 78, 74, 73, 80, 79,
396
- 79, 0, 4, 81, 81, 0, 83, 84,
397
- 82, 4, 0, 85, 0, 86, 0, 87,
398
- 0, 88, 0, 89, 0, 90, 0, 91,
399
- 0, 92, 0, 93, 0, 94, 0, 95,
400
- 0, 96, 0, 97, 0, 98, 0, 99,
401
- 0, 101, 102, 100, 104, 105, 103, 0,
402
- 0, 0, 0, 106, 107, 108, 107, 107,
403
- 110, 109, 106, 4, 111, 9, 111, 0,
404
- 112, 0, 113, 0, 114, 0, 115, 0,
405
- 116, 0, 117, 0, 118, 0, 119, 0,
406
- 120, 0, 121, 0, 113, 0, 122, 0,
407
- 123, 0, 124, 0, 119, 0, 125, 0,
408
- 126, 0, 127, 0, 113, 0, 128, 0,
409
- 129, 0, 130, 0, 131, 0, 132, 0,
410
- 133, 0, 134, 0, 135, 0, 137, 136,
411
- 139, 138, 140, 139, 141, 142, 143, 144,
412
- 142, 145, 146, 147, 148, 149, 150, 151,
413
- 141, 138, 152, 139, 138, 139, 153, 138,
414
- 139, 154, 138, 139, 155, 138, 139, 156,
415
- 138, 139, 157, 138, 139, 158, 138, 139,
416
- 159, 138, 139, 160, 138, 139, 161, 138,
417
- 139, 162, 138, 139, 163, 138, 139, 164,
418
- 138, 139, 165, 138, 139, 166, 138, 139,
419
- 167, 138, 139, 168, 138, 139, 169, 138,
420
- 139, 170, 138, 139, 171, 138, 139, 172,
421
- 138, 139, 173, 138, 139, 159, 138, 139,
422
- 174, 138, 139, 175, 138, 139, 176, 138,
423
- 139, 177, 138, 139, 178, 138, 139, 179,
424
- 138, 139, 180, 138, 139, 181, 138, 139,
425
- 182, 138, 139, 183, 138, 139, 175, 138,
426
- 184, 139, 138, 185, 139, 138, 139, 186,
427
- 138, 139, 181, 138, 139, 187, 138, 139,
428
- 188, 138, 139, 189, 138, 139, 175, 138,
429
- 139, 190, 138, 139, 191, 138, 139, 192,
430
- 138, 139, 193, 138, 139, 194, 138, 139,
431
- 175, 138, 139, 195, 138, 139, 196, 138,
432
- 139, 197, 138, 139, 198, 138, 139, 199,
433
- 138, 139, 200, 138, 139, 201, 159, 138,
434
- 139, 202, 138, 139, 203, 138, 139, 204,
435
- 138, 139, 205, 138, 139, 206, 138, 207,
436
- 139, 138, 208, 139, 138, 209, 139, 138,
437
- 158, 139, 138, 139, 175, 138, 210, 0,
438
- 211, 0, 212, 0, 213, 0, 214, 0,
439
- 113, 0, 215, 0, 216, 0, 217, 0,
440
- 218, 0, 219, 0, 220, 0, 221, 222,
441
- 0, 223, 0, 224, 0, 225, 0, 226,
442
- 0, 227, 0, 228, 0, 229, 0, 230,
443
- 0, 231, 0, 232, 0, 234, 233, 236,
444
- 235, 237, 236, 238, 239, 240, 241, 239,
445
- 242, 243, 244, 245, 246, 247, 248, 238,
446
- 235, 249, 236, 235, 236, 250, 235, 236,
447
- 251, 235, 236, 252, 235, 236, 253, 235,
448
- 236, 254, 235, 236, 255, 235, 236, 256,
449
- 235, 236, 257, 235, 236, 258, 235, 236,
450
- 259, 235, 236, 260, 235, 236, 261, 235,
451
- 236, 262, 235, 236, 263, 235, 236, 264,
452
- 235, 236, 265, 235, 236, 266, 235, 236,
453
- 267, 235, 236, 268, 235, 236, 269, 235,
454
- 236, 270, 235, 236, 256, 235, 236, 271,
455
- 235, 236, 272, 235, 236, 273, 235, 236,
456
- 274, 235, 236, 275, 235, 236, 276, 235,
457
- 236, 277, 235, 236, 278, 235, 236, 279,
458
- 235, 236, 280, 235, 236, 272, 235, 281,
459
- 236, 235, 282, 236, 235, 236, 283, 235,
460
- 236, 278, 235, 236, 284, 235, 236, 285,
461
- 235, 236, 286, 235, 236, 272, 235, 236,
462
- 287, 235, 236, 288, 235, 236, 289, 235,
463
- 236, 290, 235, 236, 291, 235, 236, 272,
464
- 235, 236, 292, 235, 236, 293, 235, 236,
465
- 294, 235, 236, 295, 235, 236, 296, 235,
466
- 236, 255, 235, 236, 272, 235, 298, 297,
467
- 300, 299, 301, 300, 302, 303, 304, 305,
468
- 303, 306, 307, 308, 309, 310, 311, 312,
469
- 313, 302, 299, 314, 300, 299, 300, 315,
470
- 299, 300, 316, 299, 300, 317, 299, 300,
471
- 318, 299, 300, 319, 299, 300, 320, 299,
472
- 300, 321, 299, 300, 322, 299, 300, 323,
473
- 299, 300, 324, 299, 300, 325, 299, 300,
474
- 326, 299, 300, 327, 299, 300, 328, 299,
475
- 300, 329, 299, 300, 330, 299, 300, 331,
476
- 299, 300, 332, 299, 300, 333, 299, 300,
477
- 334, 299, 300, 335, 299, 300, 321, 299,
478
- 300, 336, 299, 300, 337, 299, 300, 338,
479
- 299, 300, 339, 299, 300, 340, 299, 300,
480
- 341, 299, 300, 342, 299, 300, 343, 299,
481
- 300, 344, 299, 300, 345, 299, 300, 337,
482
- 299, 346, 300, 299, 347, 300, 299, 300,
483
- 348, 299, 300, 343, 299, 300, 349, 299,
484
- 300, 350, 299, 300, 351, 299, 300, 337,
485
- 299, 300, 352, 299, 353, 300, 299, 354,
486
- 300, 299, 300, 355, 299, 300, 356, 299,
487
- 357, 300, 299, 320, 300, 299, 300, 358,
488
- 299, 300, 359, 299, 300, 360, 299, 300,
489
- 361, 299, 300, 362, 299, 300, 337, 299,
490
- 300, 363, 299, 300, 364, 299, 300, 365,
491
- 299, 300, 366, 299, 300, 367, 299, 300,
492
- 368, 299, 300, 369, 321, 299, 300, 370,
493
- 299, 300, 371, 299, 300, 372, 299, 300,
494
- 373, 299, 300, 374, 299, 375, 300, 299,
495
- 376, 300, 299, 377, 300, 299, 320, 300,
496
- 299, 300, 337, 299, 113, 0, 378, 379,
497
- 378, 0, 382, 381, 383, 384, 381, 380,
498
- 0, 386, 387, 385, 0, 386, 385, 382,
499
- 388, 386, 387, 388, 385, 389, 382, 390,
500
- 391, 392, 393, 394, 395, 396, 397, 398,
501
- 399, 400, 401, 402, 403, 404, 390, 0,
502
- 405, 0, 406, 0, 407, 0, 408, 0,
503
- 409, 0, 410, 0, 412, 411, 414, 413,
504
- 415, 414, 416, 417, 418, 417, 419, 420,
505
- 416, 413, 421, 414, 413, 414, 422, 423,
506
- 413, 414, 424, 413, 414, 425, 413, 414,
507
- 426, 413, 414, 427, 413, 414, 428, 413,
508
- 414, 429, 413, 414, 430, 413, 414, 431,
509
- 413, 414, 432, 413, 414, 433, 413, 414,
510
- 434, 413, 414, 429, 413, 414, 435, 413,
511
- 414, 436, 413, 414, 437, 413, 414, 438,
512
- 413, 414, 439, 413, 414, 440, 413, 414,
513
- 441, 413, 414, 442, 413, 414, 443, 413,
514
- 414, 444, 413, 414, 445, 413, 414, 446,
515
- 413, 414, 447, 413, 414, 448, 413, 414,
516
- 449, 413, 450, 414, 413, 451, 414, 413,
517
- 414, 452, 413, 414, 453, 413, 454, 414,
518
- 413, 429, 414, 413, 414, 455, 413, 414,
519
- 456, 413, 414, 457, 413, 414, 458, 413,
520
- 414, 459, 413, 414, 460, 413, 414, 461,
521
- 430, 413, 414, 462, 413, 414, 463, 413,
522
- 414, 464, 413, 414, 465, 413, 414, 466,
523
- 413, 467, 414, 413, 468, 414, 413, 469,
524
- 414, 413, 429, 414, 413, 470, 0, 3,
525
- 0, 471, 0
526
- ]
527
-
528
- class << self
529
- attr_accessor :_lexer_trans_targs
530
- private :_lexer_trans_targs, :_lexer_trans_targs=
531
- end
532
- self._lexer_trans_targs = [
533
- 0, 2, 374, 23, 23, 24, 34, 36,
534
- 50, 53, 56, 58, 67, 71, 75, 151,
535
- 157, 307, 308, 3, 4, 314, 5, 6,
536
- 7, 8, 9, 10, 11, 12, 13, 12,
537
- 13, 14, 13, 23, 15, 16, 17, 18,
538
- 19, 20, 21, 22, 2, 23, 23, 24,
539
- 34, 36, 50, 53, 56, 58, 67, 71,
540
- 75, 151, 157, 307, 308, 25, 26, 27,
541
- 28, 27, 27, 28, 27, 29, 29, 29,
542
- 30, 29, 29, 29, 30, 31, 32, 33,
543
- 23, 33, 34, 23, 35, 37, 38, 39,
544
- 40, 41, 42, 43, 44, 45, 46, 47,
545
- 48, 49, 376, 51, 52, 23, 35, 52,
546
- 23, 35, 54, 55, 23, 54, 53, 55,
547
- 57, 50, 59, 60, 61, 62, 63, 64,
548
- 65, 66, 68, 69, 70, 72, 73, 74,
549
- 76, 77, 78, 79, 80, 81, 82, 83,
550
- 84, 85, 84, 85, 86, 85, 23, 94,
551
- 108, 109, 111, 120, 124, 128, 134, 150,
552
- 87, 88, 89, 90, 91, 92, 93, 22,
553
- 95, 96, 97, 98, 99, 100, 101, 102,
554
- 103, 104, 105, 106, 107, 23, 110, 108,
555
- 112, 113, 114, 115, 116, 117, 118, 119,
556
- 121, 122, 123, 125, 126, 127, 129, 130,
557
- 131, 132, 133, 135, 136, 137, 138, 139,
558
- 140, 141, 142, 143, 144, 145, 146, 147,
559
- 148, 149, 152, 153, 154, 155, 156, 158,
560
- 159, 160, 161, 162, 163, 164, 232, 165,
561
- 166, 167, 168, 169, 170, 171, 172, 173,
562
- 174, 175, 176, 175, 176, 177, 176, 23,
563
- 185, 199, 200, 202, 211, 215, 219, 225,
564
- 231, 178, 179, 180, 181, 182, 183, 184,
565
- 22, 186, 187, 188, 189, 190, 191, 192,
566
- 193, 194, 195, 196, 197, 198, 23, 201,
567
- 199, 203, 204, 205, 206, 207, 208, 209,
568
- 210, 212, 213, 214, 216, 217, 218, 220,
569
- 221, 222, 223, 224, 226, 227, 228, 229,
570
- 230, 233, 234, 233, 234, 235, 234, 23,
571
- 243, 257, 258, 260, 269, 273, 277, 284,
572
- 290, 306, 236, 237, 238, 239, 240, 241,
573
- 242, 22, 244, 245, 246, 247, 248, 249,
574
- 250, 251, 252, 253, 254, 255, 256, 23,
575
- 259, 257, 261, 262, 263, 264, 265, 266,
576
- 267, 268, 270, 271, 272, 274, 275, 276,
577
- 278, 279, 280, 281, 282, 283, 285, 286,
578
- 287, 288, 289, 291, 292, 293, 294, 295,
579
- 296, 297, 298, 299, 300, 301, 302, 303,
580
- 304, 305, 308, 309, 310, 312, 313, 311,
581
- 309, 310, 311, 309, 312, 2, 313, 24,
582
- 34, 36, 50, 53, 56, 58, 67, 71,
583
- 75, 151, 157, 307, 308, 315, 316, 317,
584
- 318, 319, 320, 321, 322, 321, 322, 323,
585
- 322, 23, 337, 351, 358, 324, 325, 332,
586
- 326, 327, 328, 329, 330, 331, 22, 333,
587
- 334, 335, 336, 338, 339, 340, 341, 342,
588
- 343, 344, 345, 346, 347, 348, 349, 350,
589
- 23, 352, 353, 354, 355, 356, 357, 359,
590
- 360, 361, 362, 363, 364, 365, 366, 367,
591
- 368, 369, 370, 371, 372, 373, 375, 0
592
- ]
593
-
594
- class << self
595
- attr_accessor :_lexer_trans_actions
596
- private :_lexer_trans_actions, :_lexer_trans_actions=
597
- end
598
- self._lexer_trans_actions = [
599
- 43, 29, 0, 0, 54, 3, 1, 0,
600
- 29, 1, 29, 29, 29, 29, 29, 29,
601
- 29, 29, 35, 0, 0, 0, 0, 0,
602
- 0, 0, 0, 0, 0, 57, 144, 0,
603
- 54, 84, 0, 81, 0, 0, 0, 0,
604
- 0, 0, 0, 21, 63, 31, 130, 60,
605
- 57, 31, 63, 57, 63, 63, 63, 63,
606
- 63, 63, 63, 63, 66, 0, 0, 7,
607
- 139, 48, 0, 102, 9, 5, 45, 134,
608
- 45, 0, 33, 122, 33, 33, 0, 11,
609
- 106, 0, 0, 114, 25, 0, 0, 0,
610
- 0, 0, 0, 0, 0, 0, 0, 0,
611
- 0, 0, 0, 0, 57, 149, 126, 0,
612
- 110, 23, 0, 27, 118, 27, 51, 0,
613
- 0, 0, 0, 0, 0, 0, 0, 0,
614
- 0, 0, 0, 0, 0, 0, 0, 0,
615
- 0, 0, 0, 0, 0, 0, 0, 0,
616
- 57, 144, 0, 54, 84, 0, 72, 33,
617
- 84, 84, 84, 84, 84, 84, 84, 84,
618
- 0, 0, 0, 0, 0, 0, 0, 15,
619
- 0, 0, 0, 0, 0, 0, 0, 0,
620
- 0, 0, 0, 0, 0, 15, 0, 0,
621
- 0, 0, 0, 0, 0, 0, 0, 0,
622
- 0, 0, 0, 0, 0, 0, 0, 0,
623
- 0, 0, 0, 0, 0, 0, 0, 0,
624
- 0, 0, 0, 0, 0, 0, 0, 0,
625
- 0, 0, 0, 0, 0, 0, 0, 0,
626
- 0, 0, 0, 0, 0, 0, 0, 0,
627
- 0, 0, 0, 0, 0, 0, 0, 0,
628
- 0, 57, 144, 0, 54, 84, 0, 78,
629
- 33, 84, 84, 84, 84, 84, 84, 84,
630
- 84, 0, 0, 0, 0, 0, 0, 0,
631
- 19, 0, 0, 0, 0, 0, 0, 0,
632
- 0, 0, 0, 0, 0, 0, 19, 0,
633
- 0, 0, 0, 0, 0, 0, 0, 0,
634
- 0, 0, 0, 0, 0, 0, 0, 0,
635
- 0, 0, 0, 0, 0, 0, 0, 0,
636
- 0, 57, 144, 0, 54, 84, 0, 75,
637
- 33, 84, 84, 84, 84, 84, 84, 84,
638
- 84, 84, 0, 0, 0, 0, 0, 0,
639
- 0, 17, 0, 0, 0, 0, 0, 0,
640
- 0, 0, 0, 0, 0, 0, 0, 17,
641
- 0, 0, 0, 0, 0, 0, 0, 0,
642
- 0, 0, 0, 0, 0, 0, 0, 0,
643
- 0, 0, 0, 0, 0, 0, 0, 0,
644
- 0, 0, 0, 0, 0, 0, 0, 0,
645
- 0, 0, 0, 0, 0, 0, 0, 0,
646
- 0, 0, 0, 0, 37, 37, 54, 37,
647
- 87, 0, 0, 39, 0, 96, 0, 93,
648
- 90, 41, 96, 90, 96, 96, 96, 96,
649
- 96, 96, 96, 96, 99, 0, 0, 0,
650
- 0, 0, 0, 57, 144, 0, 54, 84,
651
- 0, 69, 33, 84, 84, 0, 0, 0,
652
- 0, 0, 0, 0, 0, 0, 13, 0,
653
- 0, 0, 0, 0, 0, 0, 0, 0,
654
- 0, 0, 0, 0, 0, 0, 0, 0,
655
- 13, 0, 0, 0, 0, 0, 0, 0,
656
- 0, 0, 0, 0, 0, 0, 0, 0,
657
- 0, 0, 0, 0, 0, 0, 0, 0
658
- ]
659
-
660
- class << self
661
- attr_accessor :_lexer_eof_actions
662
- private :_lexer_eof_actions, :_lexer_eof_actions=
663
- end
664
- self._lexer_eof_actions = [
665
- 0, 43, 43, 43, 43, 43, 43, 43,
666
- 43, 43, 43, 43, 43, 43, 43, 43,
667
- 43, 43, 43, 43, 43, 43, 43, 43,
668
- 43, 43, 43, 43, 43, 43, 43, 43,
669
- 43, 43, 43, 43, 43, 43, 43, 43,
670
- 43, 43, 43, 43, 43, 43, 43, 43,
671
- 43, 43, 43, 43, 43, 43, 43, 43,
672
- 43, 43, 43, 43, 43, 43, 43, 43,
673
- 43, 43, 43, 43, 43, 43, 43, 43,
674
- 43, 43, 43, 43, 43, 43, 43, 43,
675
- 43, 43, 43, 43, 43, 43, 43, 43,
676
- 43, 43, 43, 43, 43, 43, 43, 43,
677
- 43, 43, 43, 43, 43, 43, 43, 43,
678
- 43, 43, 43, 43, 43, 43, 43, 43,
679
- 43, 43, 43, 43, 43, 43, 43, 43,
680
- 43, 43, 43, 43, 43, 43, 43, 43,
681
- 43, 43, 43, 43, 43, 43, 43, 43,
682
- 43, 43, 43, 43, 43, 43, 43, 43,
683
- 43, 43, 43, 43, 43, 43, 43, 43,
684
- 43, 43, 43, 43, 43, 43, 43, 43,
685
- 43, 43, 43, 43, 43, 43, 43, 43,
686
- 43, 43, 43, 43, 43, 43, 43, 43,
687
- 43, 43, 43, 43, 43, 43, 43, 43,
688
- 43, 43, 43, 43, 43, 43, 43, 43,
689
- 43, 43, 43, 43, 43, 43, 43, 43,
690
- 43, 43, 43, 43, 43, 43, 43, 43,
691
- 43, 43, 43, 43, 43, 43, 43, 43,
692
- 43, 43, 43, 43, 43, 43, 43, 43,
693
- 43, 43, 43, 43, 43, 43, 43, 43,
694
- 43, 43, 43, 43, 43, 43, 43, 43,
695
- 43, 43, 43, 43, 43, 43, 43, 43,
696
- 43, 43, 43, 43, 43, 43, 43, 43,
697
- 43, 43, 43, 43, 43, 43, 43, 43,
698
- 43, 43, 43, 43, 43, 43, 43, 43,
699
- 43, 43, 43, 43, 43, 43, 43, 43,
700
- 43, 43, 43, 43, 43, 43, 43, 43,
701
- 43, 43, 43, 43, 43, 43, 43, 43,
702
- 43, 43, 43, 43, 43, 43, 43, 43,
703
- 43, 43, 43, 43, 43, 43, 43, 43,
704
- 43, 43, 43, 43, 43, 43, 43, 43,
705
- 43, 43, 43, 43, 43, 43, 43, 43,
706
- 43, 43, 43, 43, 43, 43, 43, 43,
707
- 43, 43, 43, 43, 43, 43, 43, 43,
708
- 43, 43, 43, 43, 43, 43, 43, 43,
709
- 43, 43, 43, 43, 43, 43, 43, 43,
710
- 43, 43, 43, 43, 43, 43, 43, 43,
711
- 43, 43, 43, 43, 43, 43, 43, 43,
712
- 43
713
- ]
714
-
715
- class << self
716
- attr_accessor :lexer_start
717
- end
718
- self.lexer_start = 1;
719
- class << self
720
- attr_accessor :lexer_first_final
721
- end
722
- self.lexer_first_final = 376;
723
- class << self
724
- attr_accessor :lexer_error
725
- end
726
- self.lexer_error = 0;
727
-
728
- class << self
729
- attr_accessor :lexer_en_main
730
- end
731
- self.lexer_en_main = 1;
732
-
733
-
734
- # line 128 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
735
- end
736
-
737
- def scan(data)
738
- data = (data + "\n%_FEATURE_END_%").unpack("c*") # Explicit EOF simplifies things considerably
739
- eof = pe = data.length
740
-
741
- @line_number = 1
742
- @last_newline = 0
743
-
744
-
745
- # line 746 "lib/gherkin/rb_lexer/tr.rb"
746
- begin
747
- p ||= 0
748
- pe ||= data.length
749
- cs = lexer_start
750
- end
751
-
752
- # line 138 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
753
-
754
- # line 755 "lib/gherkin/rb_lexer/tr.rb"
755
- begin
756
- _klen, _trans, _keys, _acts, _nacts = nil
757
- _goto_level = 0
758
- _resume = 10
759
- _eof_trans = 15
760
- _again = 20
761
- _test_eof = 30
762
- _out = 40
763
- while true
764
- _trigger_goto = false
765
- if _goto_level <= 0
766
- if p == pe
767
- _goto_level = _test_eof
768
- next
769
- end
770
- if cs == 0
771
- _goto_level = _out
772
- next
773
- end
774
- end
775
- if _goto_level <= _resume
776
- _keys = _lexer_key_offsets[cs]
777
- _trans = _lexer_index_offsets[cs]
778
- _klen = _lexer_single_lengths[cs]
779
- _break_match = false
780
-
781
- begin
782
- if _klen > 0
783
- _lower = _keys
784
- _upper = _keys + _klen - 1
785
-
786
- loop do
787
- break if _upper < _lower
788
- _mid = _lower + ( (_upper - _lower) >> 1 )
789
-
790
- if data[p] < _lexer_trans_keys[_mid]
791
- _upper = _mid - 1
792
- elsif data[p] > _lexer_trans_keys[_mid]
793
- _lower = _mid + 1
794
- else
795
- _trans += (_mid - _keys)
796
- _break_match = true
797
- break
798
- end
799
- end # loop
800
- break if _break_match
801
- _keys += _klen
802
- _trans += _klen
803
- end
804
- _klen = _lexer_range_lengths[cs]
805
- if _klen > 0
806
- _lower = _keys
807
- _upper = _keys + (_klen << 1) - 2
808
- loop do
809
- break if _upper < _lower
810
- _mid = _lower + (((_upper-_lower) >> 1) & ~1)
811
- if data[p] < _lexer_trans_keys[_mid]
812
- _upper = _mid - 2
813
- elsif data[p] > _lexer_trans_keys[_mid+1]
814
- _lower = _mid + 2
815
- else
816
- _trans += ((_mid - _keys) >> 1)
817
- _break_match = true
818
- break
819
- end
820
- end # loop
821
- break if _break_match
822
- _trans += _klen
823
- end
824
- end while false
825
- _trans = _lexer_indicies[_trans]
826
- cs = _lexer_trans_targs[_trans]
827
- if _lexer_trans_actions[_trans] != 0
828
- _acts = _lexer_trans_actions[_trans]
829
- _nacts = _lexer_actions[_acts]
830
- _acts += 1
831
- while _nacts > 0
832
- _nacts -= 1
833
- _acts += 1
834
- case _lexer_actions[_acts - 1]
835
- when 0 then
836
- # line 9 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
837
- begin
838
-
839
- @content_start = p
840
- @current_line = @line_number
841
- @start_col = p - @last_newline - "#{@keyword}:".length
842
- end
843
- when 1 then
844
- # line 15 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
845
- begin
846
-
847
- @current_line = @line_number
848
- @start_col = p - @last_newline
849
- end
850
- when 2 then
851
- # line 20 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
852
- begin
853
-
854
- @content_start = p
855
- end
856
- when 3 then
857
- # line 24 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
858
- begin
859
-
860
- @docstring_content_type_start = p
861
- end
862
- when 4 then
863
- # line 27 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
864
- begin
865
-
866
- @docstring_content_type_end = p
867
- end
868
- when 5 then
869
- # line 31 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
870
- begin
871
-
872
- con = unindent(@start_col, utf8_pack(data[@content_start...@next_keyword_start-1]).sub(/(\r?\n)?([\t ])*\Z/, '').gsub(/\\"\\"\\"/, '"""'))
873
- con_type = utf8_pack(data[@docstring_content_type_start...@docstring_content_type_end]).strip
874
- @listener.doc_string(con_type, con, @current_line)
875
- end
876
- when 6 then
877
- # line 36 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
878
- begin
879
-
880
- p = store_keyword_content(:feature, data, p, eof)
881
- end
882
- when 7 then
883
- # line 40 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
884
- begin
885
-
886
- p = store_keyword_content(:background, data, p, eof)
887
- end
888
- when 8 then
889
- # line 44 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
890
- begin
891
-
892
- p = store_keyword_content(:scenario, data, p, eof)
893
- end
894
- when 9 then
895
- # line 48 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
896
- begin
897
-
898
- p = store_keyword_content(:scenario_outline, data, p, eof)
899
- end
900
- when 10 then
901
- # line 52 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
902
- begin
903
-
904
- p = store_keyword_content(:examples, data, p, eof)
905
- end
906
- when 11 then
907
- # line 56 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
908
- begin
909
-
910
- con = utf8_pack(data[@content_start...p]).strip
911
- @listener.step(@keyword, con, @current_line)
912
- end
913
- when 12 then
914
- # line 61 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
915
- begin
916
-
917
- con = utf8_pack(data[@content_start...p]).strip
918
- @listener.comment(con, @line_number)
919
- @keyword_start = nil
920
- end
921
- when 13 then
922
- # line 67 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
923
- begin
924
-
925
- con = utf8_pack(data[@content_start...p]).strip
926
- @listener.tag(con, @current_line)
927
- @keyword_start = nil
928
- end
929
- when 14 then
930
- # line 73 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
931
- begin
932
-
933
- @line_number += 1
934
- end
935
- when 15 then
936
- # line 77 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
937
- begin
938
-
939
- @last_newline = p + 1
940
- end
941
- when 16 then
942
- # line 81 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
943
- begin
944
-
945
- @keyword_start ||= p
946
- end
947
- when 17 then
948
- # line 85 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
949
- begin
950
-
951
- @keyword = utf8_pack(data[@keyword_start...p]).sub(/:$/,'')
952
- @keyword_start = nil
953
- end
954
- when 18 then
955
- # line 90 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
956
- begin
957
-
958
- @next_keyword_start = p
959
- end
960
- when 19 then
961
- # line 94 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
962
- begin
963
-
964
- p = p - 1
965
- current_row = []
966
- @current_line = @line_number
967
- end
968
- when 20 then
969
- # line 100 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
970
- begin
971
-
972
- @content_start = p
973
- end
974
- when 21 then
975
- # line 104 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
976
- begin
977
-
978
- con = utf8_pack(data[@content_start...p]).strip
979
- current_row << con.gsub(/\\\|/, "|").gsub(/\\n/, "\n").gsub(/\\\\/, "\\")
980
- end
981
- when 22 then
982
- # line 109 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
983
- begin
984
-
985
- @listener.row(current_row, @current_line)
986
- end
987
- when 23 then
988
- # line 113 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
989
- begin
990
-
991
- if cs < lexer_first_final
992
- content = current_line_content(data, p)
993
- 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])
994
- else
995
- @listener.eof
996
- end
997
- end
998
- # line 999 "lib/gherkin/rb_lexer/tr.rb"
999
- end # action switch
1000
- end
1001
- end
1002
- if _trigger_goto
1003
- next
1004
- end
1005
- end
1006
- if _goto_level <= _again
1007
- if cs == 0
1008
- _goto_level = _out
1009
- next
1010
- end
1011
- p += 1
1012
- if p != pe
1013
- _goto_level = _resume
1014
- next
1015
- end
1016
- end
1017
- if _goto_level <= _test_eof
1018
- if p == eof
1019
- __acts = _lexer_eof_actions[cs]
1020
- __nacts = _lexer_actions[__acts]
1021
- __acts += 1
1022
- while __nacts > 0
1023
- __nacts -= 1
1024
- __acts += 1
1025
- case _lexer_actions[__acts - 1]
1026
- when 23 then
1027
- # line 113 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
1028
- begin
1029
-
1030
- if cs < lexer_first_final
1031
- content = current_line_content(data, p)
1032
- 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])
1033
- else
1034
- @listener.eof
1035
- end
1036
- end
1037
- # line 1038 "lib/gherkin/rb_lexer/tr.rb"
1038
- end # eof action switch
1039
- end
1040
- if _trigger_goto
1041
- next
1042
- end
1043
- end
1044
- end
1045
- if _goto_level <= _out
1046
- break
1047
- end
1048
- end
1049
- end
1050
-
1051
- # line 139 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.rb.rl"
1052
- end
1053
-
1054
- def unindent(startcol, text)
1055
- text.gsub(/^[\t ]{0,#{startcol}}/, "")
1056
- end
1057
-
1058
- def store_keyword_content(event, data, p, eof)
1059
- end_point = (!@next_keyword_start or (p == eof)) ? p : @next_keyword_start
1060
- content = unindent(@start_col + 2, utf8_pack(data[@content_start...end_point])).rstrip
1061
- content_lines = content.split("\n")
1062
- name = content_lines.shift || ""
1063
- name.strip!
1064
- description = content_lines.join("\n")
1065
- @listener.__send__(event, @keyword, name, description, @current_line)
1066
- @next_keyword_start ? @next_keyword_start - 1 : p
1067
- ensure
1068
- @next_keyword_start = nil
1069
- end
1070
-
1071
- def current_line_content(data, p)
1072
- rest = data[@last_newline..-1]
1073
- utf8_pack(rest[0..rest.index(10)||-1]).strip # 10 is \n
1074
- end
1075
-
1076
- if (RUBY_VERSION =~ /^1\.9/)
1077
- def utf8_pack(array)
1078
- array.pack("c*").force_encoding("UTF-8")
1079
- end
1080
- else
1081
- def utf8_pack(array)
1082
- array.pack("c*")
1083
- end
1084
- end
1085
- end
1086
- end
1087
- end