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