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