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