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