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