gherkin 2.3.5-x86-mingw32 → 2.3.6-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. data/.gitmodules +3 -0
  2. data/Gemfile +1 -1
  3. data/History.txt +9 -0
  4. data/README.rdoc +34 -2
  5. data/VERSION +1 -1
  6. data/features/step_definitions/pretty_formatter_steps.rb +1 -0
  7. data/gherkin.gemspec +4 -1
  8. data/js/.gitignore +1 -0
  9. data/js/.npmignore +1 -0
  10. data/js/lib/gherkin/lexer/.gitignore +1 -0
  11. data/lib/gherkin/i18n.rb +5 -0
  12. data/lib/gherkin/i18n.yml +3 -3
  13. data/lib/gherkin/js_lexer.rb +20 -0
  14. data/lib/gherkin/lexer/i18n_lexer.rb +1 -1
  15. data/lib/gherkin/rubify.rb +7 -0
  16. data/ragel/lexer.c.rl.erb +30 -32
  17. data/ragel/lexer.js.rl.erb +208 -0
  18. data/ragel/lexer.rb.rl.erb +1 -1
  19. data/spec/gherkin/c_lexer_spec.rb +1 -0
  20. data/spec/gherkin/js_lexer_spec.rb +23 -0
  21. data/spec/gherkin/rb_lexer_spec.rb +1 -0
  22. data/spec/gherkin/sexp_recorder.rb +14 -8
  23. data/spec/gherkin/shared/bom_group.rb +20 -0
  24. data/spec/gherkin/shared/lexer_group.rb +0 -10
  25. data/spec/spec_helper.rb +2 -0
  26. data/tasks/compile.rake +9 -0
  27. data/tasks/ikvm.rake +1 -0
  28. data/tasks/ragel_task.rb +8 -2
  29. data/tasks/release.rake +8 -1
  30. metadata +29 -52
  31. data/js/lib/gherkin/lexer/i18n/ar.js +0 -1094
  32. data/js/lib/gherkin/lexer/i18n/bg.js +0 -1308
  33. data/js/lib/gherkin/lexer/i18n/ca.js +0 -1236
  34. data/js/lib/gherkin/lexer/i18n/cs.js +0 -1090
  35. data/js/lib/gherkin/lexer/i18n/cy_gb.js +0 -958
  36. data/js/lib/gherkin/lexer/i18n/da.js +0 -974
  37. data/js/lib/gherkin/lexer/i18n/de.js +0 -1082
  38. data/js/lib/gherkin/lexer/i18n/en.js +0 -965
  39. data/js/lib/gherkin/lexer/i18n/en_au.js +0 -902
  40. data/js/lib/gherkin/lexer/i18n/en_lol.js +0 -859
  41. data/js/lib/gherkin/lexer/i18n/en_pirate.js +0 -1136
  42. data/js/lib/gherkin/lexer/i18n/en_scouse.js +0 -1289
  43. data/js/lib/gherkin/lexer/i18n/en_tx.js +0 -942
  44. data/js/lib/gherkin/lexer/i18n/eo.js +0 -916
  45. data/js/lib/gherkin/lexer/i18n/es.js +0 -1049
  46. data/js/lib/gherkin/lexer/i18n/et.js +0 -915
  47. data/js/lib/gherkin/lexer/i18n/fi.js +0 -894
  48. data/js/lib/gherkin/lexer/i18n/fr.js +0 -1116
  49. data/js/lib/gherkin/lexer/i18n/he.js +0 -1044
  50. data/js/lib/gherkin/lexer/i18n/hr.js +0 -994
  51. data/js/lib/gherkin/lexer/i18n/hu.js +0 -1043
  52. data/js/lib/gherkin/lexer/i18n/id.js +0 -884
  53. data/js/lib/gherkin/lexer/i18n/it.js +0 -1007
  54. data/js/lib/gherkin/lexer/i18n/ja.js +0 -1344
  55. data/js/lib/gherkin/lexer/i18n/ko.js +0 -1028
  56. data/js/lib/gherkin/lexer/i18n/lt.js +0 -972
  57. data/js/lib/gherkin/lexer/i18n/lu.js +0 -1057
  58. data/js/lib/gherkin/lexer/i18n/lv.js +0 -1092
  59. data/js/lib/gherkin/lexer/i18n/nl.js +0 -1036
  60. data/js/lib/gherkin/lexer/i18n/no.js +0 -986
  61. data/js/lib/gherkin/lexer/i18n/pl.js +0 -1140
  62. data/js/lib/gherkin/lexer/i18n/pt.js +0 -1000
  63. data/js/lib/gherkin/lexer/i18n/ro.js +0 -1089
  64. data/js/lib/gherkin/lexer/i18n/ru.js +0 -1560
  65. data/js/lib/gherkin/lexer/i18n/sk.js +0 -972
  66. data/js/lib/gherkin/lexer/i18n/sr_cyrl.js +0 -1728
  67. data/js/lib/gherkin/lexer/i18n/sr_latn.js +0 -1220
  68. data/js/lib/gherkin/lexer/i18n/sv.js +0 -997
  69. data/js/lib/gherkin/lexer/i18n/tr.js +0 -1014
  70. data/js/lib/gherkin/lexer/i18n/uk.js +0 -1572
  71. data/js/lib/gherkin/lexer/i18n/uz.js +0 -1302
  72. data/js/lib/gherkin/lexer/i18n/vi.js +0 -1124
  73. data/js/lib/gherkin/lexer/i18n/zh_cn.js +0 -902
  74. data/js/lib/gherkin/lexer/i18n/zh_tw.js +0 -940
@@ -1,1089 +0,0 @@
1
-
2
- /* line 1 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
3
- ;(function() {
4
-
5
-
6
- /* line 107 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
7
-
8
-
9
-
10
- /* line 11 "js/lib/gherkin/lexer/i18n/ro.js" */
11
- const _lexer_actions = [
12
- 0, 1, 0, 1, 1, 1, 2, 1,
13
- 3, 1, 4, 1, 5, 1, 6, 1,
14
- 7, 1, 8, 1, 9, 1, 10, 1,
15
- 11, 1, 14, 1, 15, 1, 16, 1,
16
- 17, 1, 18, 1, 19, 1, 20, 1,
17
- 21, 2, 2, 16, 2, 11, 0, 2,
18
- 12, 13, 2, 15, 0, 2, 15, 1,
19
- 2, 15, 14, 2, 15, 17, 2, 16,
20
- 4, 2, 16, 5, 2, 16, 6, 2,
21
- 16, 7, 2, 16, 8, 2, 16, 14,
22
- 2, 18, 19, 2, 20, 0, 2, 20,
23
- 1, 2, 20, 14, 2, 20, 17, 3,
24
- 3, 12, 13, 3, 9, 12, 13, 3,
25
- 10, 12, 13, 3, 11, 12, 13, 3,
26
- 12, 13, 16, 3, 15, 12, 13, 4,
27
- 2, 12, 13, 16, 4, 15, 0, 12,
28
- 13
29
- ];
30
-
31
- const _lexer_key_offsets = [
32
- 0, 0, 19, 20, 21, 22, 23, 25,
33
- 43, 44, 45, 46, 50, 55, 60, 65,
34
- 70, 74, 78, 80, 81, 82, 83, 84,
35
- 85, 86, 87, 88, 89, 90, 91, 92,
36
- 93, 94, 95, 100, 107, 112, 113, 114,
37
- 115, 116, 119, 120, 121, 122, 123, 124,
38
- 125, 126, 127, 128, 129, 130, 145, 147,
39
- 149, 151, 169, 170, 174, 175, 176, 177,
40
- 178, 179, 180, 181, 184, 185, 186, 187,
41
- 188, 189, 190, 191, 192, 193, 200, 202,
42
- 204, 206, 210, 212, 214, 216, 218, 220,
43
- 222, 224, 226, 228, 230, 232, 234, 236,
44
- 237, 238, 239, 242, 243, 244, 245, 246,
45
- 247, 248, 249, 250, 251, 252, 253, 254,
46
- 255, 256, 267, 269, 271, 273, 275, 277,
47
- 279, 281, 283, 285, 287, 289, 291, 293,
48
- 295, 297, 299, 301, 303, 305, 307, 309,
49
- 311, 313, 315, 317, 319, 321, 323, 325,
50
- 327, 331, 333, 335, 337, 339, 341, 343,
51
- 345, 347, 349, 351, 353, 356, 358, 360,
52
- 362, 364, 366, 368, 370, 372, 374, 376,
53
- 378, 380, 383, 385, 387, 389, 391, 392,
54
- 395, 396, 397, 398, 399, 400, 401, 402,
55
- 403, 404, 419, 421, 423, 425, 427, 429,
56
- 431, 433, 435, 437, 439, 441, 443, 445,
57
- 447, 449, 451, 453, 455, 457, 459, 461,
58
- 463, 467, 469, 471, 473, 475, 477, 479,
59
- 481, 483, 485, 487, 492, 494, 496, 498,
60
- 500, 502, 504, 506, 510, 512, 514, 516,
61
- 520, 522, 524, 526, 528, 530, 532, 534,
62
- 536, 538, 540, 542, 544, 548, 550, 552,
63
- 554, 556, 558, 560, 562, 564, 566, 568,
64
- 570, 572, 575, 577, 579, 581, 583, 584,
65
- 585, 586, 587, 588, 589, 591, 592, 593,
66
- 594, 595, 596, 597, 598, 599, 600, 601,
67
- 602, 603, 604, 619, 621, 623, 625, 627,
68
- 629, 631, 633, 635, 637, 639, 641, 643,
69
- 645, 647, 649, 651, 653, 655, 657, 659,
70
- 661, 663, 666, 668, 670, 672, 674, 679,
71
- 681, 683, 685, 687, 689, 691, 693, 697,
72
- 699, 701, 703, 707, 709, 711, 713, 715,
73
- 717, 719, 721, 723, 725, 727, 729, 731,
74
- 733, 736, 738, 740, 742, 744, 746, 748,
75
- 752, 758, 761, 763, 769, 787, 789, 791,
76
- 793, 795, 797, 799, 801, 803, 805, 807,
77
- 809, 811, 813, 815, 817, 819, 821, 823,
78
- 825, 828, 830, 832, 834, 836, 841, 843,
79
- 845, 847, 849, 851, 853, 855, 859, 861,
80
- 863, 865, 869, 871, 873, 875, 877, 879,
81
- 881, 883, 885, 887, 889, 891, 893, 895,
82
- 899, 901, 903, 905, 907, 909, 911, 913,
83
- 915, 917, 919, 921, 923, 926, 928, 930,
84
- 932, 934, 935, 936
85
- ];
86
-
87
- const _lexer_trans_keys = [
88
- -59, -56, 10, 32, 34, 35, 37, 42,
89
- 64, 65, 67, 68, 69, 70, 83, 124,
90
- 239, 9, 13, -98, 105, 32, 10, 10,
91
- 13, -59, -56, 10, 32, 34, 35, 37,
92
- 42, 64, 65, 67, 68, 69, 70, 83,
93
- 124, 9, 13, -104, 34, 34, 10, 32,
94
- 9, 13, 10, 32, 34, 9, 13, 10,
95
- 32, 34, 9, 13, 10, 32, 34, 9,
96
- 13, 10, 32, 34, 9, 13, 10, 32,
97
- 9, 13, 10, 32, 9, 13, 10, 13,
98
- 10, 95, 70, 69, 65, 84, 85, 82,
99
- 69, 95, 69, 78, 68, 95, 37, 13,
100
- 32, 64, 9, 10, 9, 10, 13, 32,
101
- 64, 11, 12, 10, 32, 64, 9, 13,
102
- 116, 117, 110, 99, -61, 97, 111, -94,
103
- 110, 100, 110, 116, 101, 120, 116, 58,
104
- 10, 10, -59, -56, 10, 32, 35, 37,
105
- 42, 64, 65, 67, 68, 70, 83, 9,
106
- 13, -98, 10, 10, 105, 10, 32, -59,
107
- -56, 10, 32, 34, 35, 37, 42, 64,
108
- 65, 67, 68, 69, 70, 83, 124, 9,
109
- 13, 97, -59, -56, 114, 116, -93, 105,
110
- 32, 102, 105, 105, -101, 32, 101, 105,
111
- 120, 101, 109, 112, 108, 101, 58, 10,
112
- 10, 10, 32, 35, 70, 124, 9, 13,
113
- 10, 117, 10, 110, 10, 99, -59, -56,
114
- 10, 116, -93, 10, 10, 105, 10, 111,
115
- 10, 110, 10, 97, 10, 108, 10, 105,
116
- 10, 116, 10, 97, 10, 116, 10, 101,
117
- 10, 58, -101, 10, 117, 110, 99, -59,
118
- -56, 116, -93, 105, 111, 110, 97, 108,
119
- 105, 116, 97, 116, 101, 58, 10, 10,
120
- 10, 32, 35, 37, 64, 67, 69, 70,
121
- 83, 9, 13, 10, 95, 10, 70, 10,
122
- 69, 10, 65, 10, 84, 10, 85, 10,
123
- 82, 10, 69, 10, 95, 10, 69, 10,
124
- 78, 10, 68, 10, 95, 10, 37, 10,
125
- 111, 10, 110, 10, 116, 10, 101, 10,
126
- 120, 10, 116, 10, 58, 10, 120, 10,
127
- 101, 10, 109, 10, 112, 10, 108, 10,
128
- 101, 10, 117, 10, 110, 10, 99, -59,
129
- -56, 10, 116, -93, 10, 10, 105, 10,
130
- 111, 10, 110, 10, 97, 10, 108, 10,
131
- 105, 10, 116, 10, 97, 10, 116, -101,
132
- 10, 10, 99, 116, 10, 101, 10, 110,
133
- 10, 97, 10, 114, 10, 105, 10, 117,
134
- 10, 114, 10, 117, 10, 99, 10, 116,
135
- 10, 117, 10, 114, -60, 10, 97, -125,
136
- 10, 10, 32, 10, 115, 10, 99, -101,
137
- 99, 105, 116, 101, 110, 97, 114, 105,
138
- 117, 58, 10, 10, -59, -56, 10, 32,
139
- 35, 37, 42, 64, 65, 67, 68, 70,
140
- 83, 9, 13, -98, 10, 10, 105, 10,
141
- 32, -104, 10, 10, 95, 10, 70, 10,
142
- 69, 10, 65, 10, 84, 10, 85, 10,
143
- 82, 10, 69, 10, 95, 10, 69, 10,
144
- 78, 10, 68, 10, 95, 10, 37, 10,
145
- 116, 10, 117, 10, 110, 10, 99, -61,
146
- 10, 97, 111, -94, 10, 10, 110, 10,
147
- 100, 10, 110, 10, 116, 10, 101, 10,
148
- 120, 10, 116, 10, 58, 10, 97, -59,
149
- -56, 10, 114, 116, -93, 10, 10, 105,
150
- 10, 32, 10, 102, 10, 105, 10, 105,
151
- -101, 10, 10, 32, 101, 105, 10, 117,
152
- 10, 110, 10, 99, -59, -56, 10, 116,
153
- -93, 10, 10, 105, 10, 111, 10, 110,
154
- 10, 97, 10, 108, 10, 105, 10, 116,
155
- 10, 97, 10, 116, 10, 101, -101, 10,
156
- 10, 99, 105, 116, 10, 101, 10, 110,
157
- 10, 97, 10, 114, 10, 105, 10, 117,
158
- 10, 114, 10, 117, 10, 99, 10, 116,
159
- 10, 117, 10, 114, -60, 10, 97, -125,
160
- 10, 10, 32, 10, 115, 10, 99, 114,
161
- 117, 99, 116, 117, 114, -60, 97, -125,
162
- 32, 115, 99, 101, 110, 97, 114, 105,
163
- 117, 58, 10, 10, -59, -56, 10, 32,
164
- 35, 37, 42, 64, 65, 67, 68, 70,
165
- 83, 9, 13, -98, 10, 10, 105, 10,
166
- 32, -104, 10, 10, 95, 10, 70, 10,
167
- 69, 10, 65, 10, 84, 10, 85, 10,
168
- 82, 10, 69, 10, 95, 10, 69, 10,
169
- 78, 10, 68, 10, 95, 10, 37, 10,
170
- 116, 10, 117, 10, 110, 10, 99, -61,
171
- 10, 97, -94, 10, 10, 110, 10, 100,
172
- 10, 97, -59, -56, 10, 114, 116, -93,
173
- 10, 10, 105, 10, 32, 10, 102, 10,
174
- 105, 10, 105, -101, 10, 10, 32, 101,
175
- 105, 10, 117, 10, 110, 10, 99, -59,
176
- -56, 10, 116, -93, 10, 10, 105, 10,
177
- 111, 10, 110, 10, 97, 10, 108, 10,
178
- 105, 10, 116, 10, 97, 10, 116, 10,
179
- 101, 10, 58, -101, 10, 10, 99, 105,
180
- 10, 101, 10, 110, 10, 97, 10, 114,
181
- 10, 105, 10, 117, 32, 124, 9, 13,
182
- 10, 32, 92, 124, 9, 13, 10, 92,
183
- 124, 10, 92, 10, 32, 92, 124, 9,
184
- 13, -59, -56, 10, 32, 34, 35, 37,
185
- 42, 64, 65, 67, 68, 69, 70, 83,
186
- 124, 9, 13, -104, 10, 10, 95, 10,
187
- 70, 10, 69, 10, 65, 10, 84, 10,
188
- 85, 10, 82, 10, 69, 10, 95, 10,
189
- 69, 10, 78, 10, 68, 10, 95, 10,
190
- 37, 10, 116, 10, 117, 10, 110, 10,
191
- 99, -61, 10, 97, -94, 10, 10, 110,
192
- 10, 100, 10, 97, -59, -56, 10, 114,
193
- 116, -93, 10, 10, 105, 10, 32, 10,
194
- 102, 10, 105, 10, 105, -101, 10, 10,
195
- 32, 101, 105, 10, 117, 10, 110, 10,
196
- 99, -59, -56, 10, 116, -93, 10, 10,
197
- 105, 10, 111, 10, 110, 10, 97, 10,
198
- 108, 10, 105, 10, 116, 10, 97, 10,
199
- 116, 10, 101, 10, 58, -101, 10, 10,
200
- 99, 105, 116, 10, 101, 10, 110, 10,
201
- 97, 10, 114, 10, 105, 10, 117, 10,
202
- 114, 10, 117, 10, 99, 10, 116, 10,
203
- 117, 10, 114, -60, 10, 97, -125, 10,
204
- 10, 32, 10, 115, 10, 99, 187, 191,
205
- 0
206
- ];
207
-
208
- const _lexer_single_lengths = [
209
- 0, 17, 1, 1, 1, 1, 2, 16,
210
- 1, 1, 1, 2, 3, 3, 3, 3,
211
- 2, 2, 2, 1, 1, 1, 1, 1,
212
- 1, 1, 1, 1, 1, 1, 1, 1,
213
- 1, 1, 3, 5, 3, 1, 1, 1,
214
- 1, 3, 1, 1, 1, 1, 1, 1,
215
- 1, 1, 1, 1, 1, 13, 2, 2,
216
- 2, 16, 1, 4, 1, 1, 1, 1,
217
- 1, 1, 1, 3, 1, 1, 1, 1,
218
- 1, 1, 1, 1, 1, 5, 2, 2,
219
- 2, 4, 2, 2, 2, 2, 2, 2,
220
- 2, 2, 2, 2, 2, 2, 2, 1,
221
- 1, 1, 3, 1, 1, 1, 1, 1,
222
- 1, 1, 1, 1, 1, 1, 1, 1,
223
- 1, 9, 2, 2, 2, 2, 2, 2,
224
- 2, 2, 2, 2, 2, 2, 2, 2,
225
- 2, 2, 2, 2, 2, 2, 2, 2,
226
- 2, 2, 2, 2, 2, 2, 2, 2,
227
- 4, 2, 2, 2, 2, 2, 2, 2,
228
- 2, 2, 2, 2, 3, 2, 2, 2,
229
- 2, 2, 2, 2, 2, 2, 2, 2,
230
- 2, 3, 2, 2, 2, 2, 1, 3,
231
- 1, 1, 1, 1, 1, 1, 1, 1,
232
- 1, 13, 2, 2, 2, 2, 2, 2,
233
- 2, 2, 2, 2, 2, 2, 2, 2,
234
- 2, 2, 2, 2, 2, 2, 2, 2,
235
- 4, 2, 2, 2, 2, 2, 2, 2,
236
- 2, 2, 2, 5, 2, 2, 2, 2,
237
- 2, 2, 2, 4, 2, 2, 2, 4,
238
- 2, 2, 2, 2, 2, 2, 2, 2,
239
- 2, 2, 2, 2, 4, 2, 2, 2,
240
- 2, 2, 2, 2, 2, 2, 2, 2,
241
- 2, 3, 2, 2, 2, 2, 1, 1,
242
- 1, 1, 1, 1, 2, 1, 1, 1,
243
- 1, 1, 1, 1, 1, 1, 1, 1,
244
- 1, 1, 13, 2, 2, 2, 2, 2,
245
- 2, 2, 2, 2, 2, 2, 2, 2,
246
- 2, 2, 2, 2, 2, 2, 2, 2,
247
- 2, 3, 2, 2, 2, 2, 5, 2,
248
- 2, 2, 2, 2, 2, 2, 4, 2,
249
- 2, 2, 4, 2, 2, 2, 2, 2,
250
- 2, 2, 2, 2, 2, 2, 2, 2,
251
- 3, 2, 2, 2, 2, 2, 2, 2,
252
- 4, 3, 2, 4, 16, 2, 2, 2,
253
- 2, 2, 2, 2, 2, 2, 2, 2,
254
- 2, 2, 2, 2, 2, 2, 2, 2,
255
- 3, 2, 2, 2, 2, 5, 2, 2,
256
- 2, 2, 2, 2, 2, 4, 2, 2,
257
- 2, 4, 2, 2, 2, 2, 2, 2,
258
- 2, 2, 2, 2, 2, 2, 2, 4,
259
- 2, 2, 2, 2, 2, 2, 2, 2,
260
- 2, 2, 2, 2, 3, 2, 2, 2,
261
- 2, 1, 1, 0
262
- ];
263
-
264
- const _lexer_range_lengths = [
265
- 0, 1, 0, 0, 0, 0, 0, 1,
266
- 0, 0, 0, 1, 1, 1, 1, 1,
267
- 1, 1, 0, 0, 0, 0, 0, 0,
268
- 0, 0, 0, 0, 0, 0, 0, 0,
269
- 0, 0, 1, 1, 1, 0, 0, 0,
270
- 0, 0, 0, 0, 0, 0, 0, 0,
271
- 0, 0, 0, 0, 0, 1, 0, 0,
272
- 0, 1, 0, 0, 0, 0, 0, 0,
273
- 0, 0, 0, 0, 0, 0, 0, 0,
274
- 0, 0, 0, 0, 0, 1, 0, 0,
275
- 0, 0, 0, 0, 0, 0, 0, 0,
276
- 0, 0, 0, 0, 0, 0, 0, 0,
277
- 0, 0, 0, 0, 0, 0, 0, 0,
278
- 0, 0, 0, 0, 0, 0, 0, 0,
279
- 0, 1, 0, 0, 0, 0, 0, 0,
280
- 0, 0, 0, 0, 0, 0, 0, 0,
281
- 0, 0, 0, 0, 0, 0, 0, 0,
282
- 0, 0, 0, 0, 0, 0, 0, 0,
283
- 0, 0, 0, 0, 0, 0, 0, 0,
284
- 0, 0, 0, 0, 0, 0, 0, 0,
285
- 0, 0, 0, 0, 0, 0, 0, 0,
286
- 0, 0, 0, 0, 0, 0, 0, 0,
287
- 0, 0, 0, 0, 0, 0, 0, 0,
288
- 0, 1, 0, 0, 0, 0, 0, 0,
289
- 0, 0, 0, 0, 0, 0, 0, 0,
290
- 0, 0, 0, 0, 0, 0, 0, 0,
291
- 0, 0, 0, 0, 0, 0, 0, 0,
292
- 0, 0, 0, 0, 0, 0, 0, 0,
293
- 0, 0, 0, 0, 0, 0, 0, 0,
294
- 0, 0, 0, 0, 0, 0, 0, 0,
295
- 0, 0, 0, 0, 0, 0, 0, 0,
296
- 0, 0, 0, 0, 0, 0, 0, 0,
297
- 0, 0, 0, 0, 0, 0, 0, 0,
298
- 0, 0, 0, 0, 0, 0, 0, 0,
299
- 0, 0, 0, 0, 0, 0, 0, 0,
300
- 0, 0, 1, 0, 0, 0, 0, 0,
301
- 0, 0, 0, 0, 0, 0, 0, 0,
302
- 0, 0, 0, 0, 0, 0, 0, 0,
303
- 0, 0, 0, 0, 0, 0, 0, 0,
304
- 0, 0, 0, 0, 0, 0, 0, 0,
305
- 0, 0, 0, 0, 0, 0, 0, 0,
306
- 0, 0, 0, 0, 0, 0, 0, 0,
307
- 0, 0, 0, 0, 0, 0, 0, 1,
308
- 1, 0, 0, 1, 1, 0, 0, 0,
309
- 0, 0, 0, 0, 0, 0, 0, 0,
310
- 0, 0, 0, 0, 0, 0, 0, 0,
311
- 0, 0, 0, 0, 0, 0, 0, 0,
312
- 0, 0, 0, 0, 0, 0, 0, 0,
313
- 0, 0, 0, 0, 0, 0, 0, 0,
314
- 0, 0, 0, 0, 0, 0, 0, 0,
315
- 0, 0, 0, 0, 0, 0, 0, 0,
316
- 0, 0, 0, 0, 0, 0, 0, 0,
317
- 0, 0, 0, 0
318
- ];
319
-
320
- const _lexer_index_offsets = [
321
- 0, 0, 19, 21, 23, 25, 27, 30,
322
- 48, 50, 52, 54, 58, 63, 68, 73,
323
- 78, 82, 86, 89, 91, 93, 95, 97,
324
- 99, 101, 103, 105, 107, 109, 111, 113,
325
- 115, 117, 119, 124, 131, 136, 138, 140,
326
- 142, 144, 148, 150, 152, 154, 156, 158,
327
- 160, 162, 164, 166, 168, 170, 185, 188,
328
- 191, 194, 212, 214, 219, 221, 223, 225,
329
- 227, 229, 231, 233, 237, 239, 241, 243,
330
- 245, 247, 249, 251, 253, 255, 262, 265,
331
- 268, 271, 276, 279, 282, 285, 288, 291,
332
- 294, 297, 300, 303, 306, 309, 312, 315,
333
- 317, 319, 321, 325, 327, 329, 331, 333,
334
- 335, 337, 339, 341, 343, 345, 347, 349,
335
- 351, 353, 364, 367, 370, 373, 376, 379,
336
- 382, 385, 388, 391, 394, 397, 400, 403,
337
- 406, 409, 412, 415, 418, 421, 424, 427,
338
- 430, 433, 436, 439, 442, 445, 448, 451,
339
- 454, 459, 462, 465, 468, 471, 474, 477,
340
- 480, 483, 486, 489, 492, 496, 499, 502,
341
- 505, 508, 511, 514, 517, 520, 523, 526,
342
- 529, 532, 536, 539, 542, 545, 548, 550,
343
- 554, 556, 558, 560, 562, 564, 566, 568,
344
- 570, 572, 587, 590, 593, 596, 599, 602,
345
- 605, 608, 611, 614, 617, 620, 623, 626,
346
- 629, 632, 635, 638, 641, 644, 647, 650,
347
- 653, 658, 661, 664, 667, 670, 673, 676,
348
- 679, 682, 685, 688, 694, 697, 700, 703,
349
- 706, 709, 712, 715, 720, 723, 726, 729,
350
- 734, 737, 740, 743, 746, 749, 752, 755,
351
- 758, 761, 764, 767, 770, 775, 778, 781,
352
- 784, 787, 790, 793, 796, 799, 802, 805,
353
- 808, 811, 815, 818, 821, 824, 827, 829,
354
- 831, 833, 835, 837, 839, 842, 844, 846,
355
- 848, 850, 852, 854, 856, 858, 860, 862,
356
- 864, 866, 868, 883, 886, 889, 892, 895,
357
- 898, 901, 904, 907, 910, 913, 916, 919,
358
- 922, 925, 928, 931, 934, 937, 940, 943,
359
- 946, 949, 953, 956, 959, 962, 965, 971,
360
- 974, 977, 980, 983, 986, 989, 992, 997,
361
- 1000, 1003, 1006, 1011, 1014, 1017, 1020, 1023,
362
- 1026, 1029, 1032, 1035, 1038, 1041, 1044, 1047,
363
- 1050, 1054, 1057, 1060, 1063, 1066, 1069, 1072,
364
- 1076, 1082, 1086, 1089, 1095, 1113, 1116, 1119,
365
- 1122, 1125, 1128, 1131, 1134, 1137, 1140, 1143,
366
- 1146, 1149, 1152, 1155, 1158, 1161, 1164, 1167,
367
- 1170, 1174, 1177, 1180, 1183, 1186, 1192, 1195,
368
- 1198, 1201, 1204, 1207, 1210, 1213, 1218, 1221,
369
- 1224, 1227, 1232, 1235, 1238, 1241, 1244, 1247,
370
- 1250, 1253, 1256, 1259, 1262, 1265, 1268, 1271,
371
- 1276, 1279, 1282, 1285, 1288, 1291, 1294, 1297,
372
- 1300, 1303, 1306, 1309, 1312, 1316, 1319, 1322,
373
- 1325, 1328, 1330, 1332
374
- ];
375
-
376
- const _lexer_indicies = [
377
- 1, 2, 4, 3, 5, 6, 7, 8,
378
- 9, 10, 11, 12, 13, 14, 15, 16,
379
- 17, 3, 0, 18, 0, 19, 0, 20,
380
- 0, 0, 21, 23, 24, 22, 1, 2,
381
- 4, 3, 5, 6, 7, 8, 9, 10,
382
- 11, 12, 13, 14, 15, 16, 3, 0,
383
- 18, 0, 25, 0, 26, 0, 27, 26,
384
- 26, 0, 30, 29, 31, 29, 28, 34,
385
- 33, 35, 33, 32, 34, 33, 36, 33,
386
- 32, 34, 33, 37, 33, 32, 39, 38,
387
- 38, 0, 4, 40, 40, 0, 42, 43,
388
- 41, 4, 0, 44, 0, 45, 0, 46,
389
- 0, 47, 0, 48, 0, 49, 0, 50,
390
- 0, 51, 0, 52, 0, 53, 0, 54,
391
- 0, 55, 0, 56, 0, 57, 0, 0,
392
- 0, 0, 0, 58, 59, 60, 59, 59,
393
- 62, 61, 58, 4, 63, 9, 63, 0,
394
- 64, 0, 65, 0, 66, 0, 18, 0,
395
- 67, 68, 69, 0, 68, 0, 70, 0,
396
- 19, 0, 71, 0, 72, 0, 73, 0,
397
- 74, 0, 75, 0, 76, 0, 78, 77,
398
- 80, 79, 81, 82, 80, 83, 84, 85,
399
- 86, 84, 87, 88, 89, 90, 91, 83,
400
- 79, 92, 80, 79, 80, 93, 79, 80,
401
- 94, 79, 95, 96, 98, 97, 99, 100,
402
- 101, 102, 103, 104, 105, 106, 107, 108,
403
- 109, 110, 97, 0, 111, 0, 112, 113,
404
- 19, 114, 0, 115, 0, 116, 0, 117,
405
- 0, 118, 0, 119, 0, 68, 0, 115,
406
- 0, 117, 116, 116, 0, 120, 0, 121,
407
- 0, 122, 0, 123, 0, 124, 0, 125,
408
- 0, 126, 0, 128, 127, 130, 129, 130,
409
- 131, 132, 133, 132, 131, 129, 130, 134,
410
- 129, 130, 135, 129, 130, 136, 129, 137,
411
- 138, 130, 139, 129, 139, 130, 129, 130,
412
- 140, 129, 130, 141, 129, 130, 142, 129,
413
- 130, 143, 129, 130, 144, 129, 130, 145,
414
- 129, 130, 146, 129, 130, 147, 129, 130,
415
- 148, 129, 130, 149, 129, 130, 150, 129,
416
- 139, 130, 129, 151, 0, 152, 0, 153,
417
- 0, 154, 155, 156, 0, 156, 0, 157,
418
- 0, 158, 0, 159, 0, 160, 0, 161,
419
- 0, 162, 0, 163, 0, 164, 0, 165,
420
- 0, 166, 0, 167, 0, 169, 168, 171,
421
- 170, 171, 172, 173, 174, 173, 175, 176,
422
- 177, 178, 172, 170, 171, 179, 170, 171,
423
- 180, 170, 171, 181, 170, 171, 182, 170,
424
- 171, 183, 170, 171, 184, 170, 171, 185,
425
- 170, 171, 186, 170, 171, 187, 170, 171,
426
- 188, 170, 171, 189, 170, 171, 190, 170,
427
- 171, 191, 170, 171, 192, 170, 171, 193,
428
- 170, 171, 194, 170, 171, 195, 170, 171,
429
- 196, 170, 171, 197, 170, 171, 198, 170,
430
- 171, 199, 170, 171, 200, 170, 171, 201,
431
- 170, 171, 202, 170, 171, 203, 170, 171,
432
- 204, 170, 171, 198, 170, 171, 205, 170,
433
- 171, 206, 170, 171, 207, 170, 208, 209,
434
- 171, 210, 170, 210, 171, 170, 171, 211,
435
- 170, 171, 212, 170, 171, 213, 170, 171,
436
- 214, 170, 171, 215, 170, 171, 216, 170,
437
- 171, 217, 170, 171, 218, 170, 171, 204,
438
- 170, 210, 171, 170, 171, 219, 220, 170,
439
- 171, 221, 170, 171, 222, 170, 171, 223,
440
- 170, 171, 224, 170, 171, 225, 170, 171,
441
- 198, 170, 171, 226, 170, 171, 227, 170,
442
- 171, 228, 170, 171, 229, 170, 171, 230,
443
- 170, 171, 231, 170, 232, 171, 233, 170,
444
- 233, 171, 170, 171, 234, 170, 171, 235,
445
- 170, 171, 219, 170, 156, 0, 236, 19,
446
- 237, 0, 238, 0, 239, 0, 240, 0,
447
- 241, 0, 242, 0, 243, 0, 244, 0,
448
- 246, 245, 248, 247, 249, 250, 248, 251,
449
- 252, 253, 254, 252, 255, 256, 257, 258,
450
- 259, 251, 247, 260, 248, 247, 248, 261,
451
- 247, 248, 262, 247, 260, 248, 247, 248,
452
- 263, 247, 248, 264, 247, 248, 265, 247,
453
- 248, 266, 247, 248, 267, 247, 248, 268,
454
- 247, 248, 269, 247, 248, 270, 247, 248,
455
- 271, 247, 248, 272, 247, 248, 273, 247,
456
- 248, 274, 247, 248, 275, 247, 248, 276,
457
- 247, 248, 277, 247, 248, 278, 247, 248,
458
- 279, 247, 248, 260, 247, 280, 248, 281,
459
- 282, 247, 281, 248, 247, 248, 283, 247,
460
- 248, 261, 247, 248, 284, 247, 248, 285,
461
- 247, 248, 286, 247, 248, 287, 247, 248,
462
- 288, 247, 248, 262, 247, 248, 289, 247,
463
- 290, 291, 248, 261, 292, 247, 293, 248,
464
- 247, 248, 294, 247, 248, 295, 247, 248,
465
- 296, 247, 248, 297, 247, 248, 281, 247,
466
- 293, 248, 247, 248, 295, 294, 294, 247,
467
- 248, 298, 247, 248, 299, 247, 248, 300,
468
- 247, 301, 302, 248, 303, 247, 303, 248,
469
- 247, 248, 304, 247, 248, 305, 247, 248,
470
- 306, 247, 248, 307, 247, 248, 308, 247,
471
- 248, 309, 247, 248, 310, 247, 248, 311,
472
- 247, 248, 312, 247, 248, 288, 247, 303,
473
- 248, 247, 248, 313, 261, 314, 247, 248,
474
- 315, 247, 248, 316, 247, 248, 317, 247,
475
- 248, 318, 247, 248, 319, 247, 248, 288,
476
- 247, 248, 320, 247, 248, 321, 247, 248,
477
- 322, 247, 248, 323, 247, 248, 324, 247,
478
- 248, 325, 247, 326, 248, 327, 247, 327,
479
- 248, 247, 248, 328, 247, 248, 329, 247,
480
- 248, 313, 247, 330, 0, 331, 0, 332,
481
- 0, 333, 0, 334, 0, 335, 0, 336,
482
- 337, 0, 337, 0, 338, 0, 339, 0,
483
- 340, 0, 341, 0, 342, 0, 343, 0,
484
- 344, 0, 345, 0, 346, 0, 347, 0,
485
- 349, 348, 351, 350, 352, 353, 351, 354,
486
- 355, 356, 357, 355, 358, 359, 360, 361,
487
- 362, 354, 350, 363, 351, 350, 351, 364,
488
- 350, 351, 365, 350, 363, 351, 350, 351,
489
- 366, 350, 351, 367, 350, 351, 368, 350,
490
- 351, 369, 350, 351, 370, 350, 351, 371,
491
- 350, 351, 372, 350, 351, 373, 350, 351,
492
- 374, 350, 351, 375, 350, 351, 376, 350,
493
- 351, 377, 350, 351, 378, 350, 351, 379,
494
- 350, 351, 380, 350, 351, 381, 350, 351,
495
- 382, 350, 351, 363, 350, 383, 351, 384,
496
- 350, 384, 351, 350, 351, 385, 350, 351,
497
- 364, 350, 351, 386, 350, 387, 388, 351,
498
- 364, 389, 350, 390, 351, 350, 351, 391,
499
- 350, 351, 392, 350, 351, 393, 350, 351,
500
- 394, 350, 351, 384, 350, 390, 351, 350,
501
- 351, 392, 391, 391, 350, 351, 395, 350,
502
- 351, 396, 350, 351, 397, 350, 398, 399,
503
- 351, 400, 350, 400, 351, 350, 351, 401,
504
- 350, 351, 402, 350, 351, 403, 350, 351,
505
- 404, 350, 351, 405, 350, 351, 406, 350,
506
- 351, 407, 350, 351, 408, 350, 351, 409,
507
- 350, 351, 410, 350, 351, 365, 350, 400,
508
- 351, 350, 351, 411, 364, 350, 351, 412,
509
- 350, 351, 413, 350, 351, 414, 350, 351,
510
- 415, 350, 351, 416, 350, 351, 410, 350,
511
- 417, 418, 417, 0, 421, 420, 422, 423,
512
- 420, 419, 0, 425, 426, 424, 0, 425,
513
- 424, 421, 427, 425, 426, 427, 424, 428,
514
- 429, 421, 430, 431, 432, 433, 434, 435,
515
- 436, 437, 438, 439, 440, 441, 442, 430,
516
- 0, 92, 80, 79, 80, 443, 79, 80,
517
- 444, 79, 80, 445, 79, 80, 446, 79,
518
- 80, 447, 79, 80, 448, 79, 80, 449,
519
- 79, 80, 450, 79, 80, 451, 79, 80,
520
- 452, 79, 80, 453, 79, 80, 454, 79,
521
- 80, 455, 79, 80, 456, 79, 80, 457,
522
- 79, 80, 458, 79, 80, 459, 79, 80,
523
- 92, 79, 460, 80, 461, 79, 461, 80,
524
- 79, 80, 462, 79, 80, 93, 79, 80,
525
- 463, 79, 464, 465, 80, 93, 466, 79,
526
- 467, 80, 79, 80, 468, 79, 80, 469,
527
- 79, 80, 470, 79, 80, 471, 79, 80,
528
- 461, 79, 467, 80, 79, 80, 469, 468,
529
- 468, 79, 80, 472, 79, 80, 473, 79,
530
- 80, 474, 79, 475, 476, 80, 477, 79,
531
- 477, 80, 79, 80, 478, 79, 80, 479,
532
- 79, 80, 480, 79, 80, 481, 79, 80,
533
- 482, 79, 80, 483, 79, 80, 484, 79,
534
- 80, 485, 79, 80, 486, 79, 80, 487,
535
- 79, 80, 94, 79, 477, 80, 79, 80,
536
- 488, 93, 489, 79, 80, 490, 79, 80,
537
- 491, 79, 80, 492, 79, 80, 493, 79,
538
- 80, 494, 79, 80, 487, 79, 80, 495,
539
- 79, 80, 496, 79, 80, 497, 79, 80,
540
- 498, 79, 80, 499, 79, 80, 500, 79,
541
- 501, 80, 502, 79, 502, 80, 79, 80,
542
- 503, 79, 80, 504, 79, 80, 488, 79,
543
- 505, 0, 3, 0, 506, 0
544
- ];
545
-
546
- const _lexer_trans_targs = [
547
- 0, 2, 8, 7, 7, 9, 18, 20,
548
- 4, 34, 37, 41, 58, 68, 95, 175,
549
- 343, 417, 3, 4, 5, 6, 6, 7,
550
- 19, 10, 11, 12, 13, 13, 13, 14,
551
- 13, 13, 13, 14, 15, 16, 17, 7,
552
- 17, 18, 7, 19, 21, 22, 23, 24,
553
- 25, 26, 27, 28, 29, 30, 31, 32,
554
- 33, 419, 35, 36, 7, 35, 34, 36,
555
- 38, 39, 40, 42, 43, 45, 44, 46,
556
- 47, 48, 49, 50, 51, 52, 53, 52,
557
- 53, 54, 349, 53, 7, 350, 56, 364,
558
- 368, 372, 382, 399, 55, 56, 57, 2,
559
- 8, 7, 7, 9, 18, 20, 4, 34,
560
- 37, 41, 58, 68, 95, 175, 343, 59,
561
- 60, 66, 67, 61, 62, 63, 64, 65,
562
- 69, 70, 71, 72, 73, 74, 75, 76,
563
- 77, 76, 77, 77, 7, 78, 79, 80,
564
- 81, 82, 94, 83, 84, 85, 86, 87,
565
- 88, 89, 90, 91, 92, 93, 57, 96,
566
- 97, 98, 99, 174, 100, 101, 102, 103,
567
- 104, 105, 106, 107, 108, 109, 110, 111,
568
- 112, 113, 112, 113, 113, 7, 114, 128,
569
- 135, 141, 156, 115, 116, 117, 118, 119,
570
- 120, 121, 122, 123, 124, 125, 126, 127,
571
- 7, 129, 130, 131, 132, 133, 134, 57,
572
- 136, 137, 138, 139, 140, 142, 143, 144,
573
- 145, 155, 146, 147, 148, 149, 150, 151,
574
- 152, 153, 154, 157, 163, 158, 159, 160,
575
- 161, 162, 164, 165, 166, 167, 168, 169,
576
- 170, 171, 172, 173, 176, 262, 177, 178,
577
- 179, 180, 181, 182, 183, 184, 185, 184,
578
- 185, 186, 189, 185, 7, 190, 188, 204,
579
- 208, 218, 228, 244, 187, 188, 57, 191,
580
- 192, 193, 194, 195, 196, 197, 198, 199,
581
- 200, 201, 202, 203, 7, 205, 206, 207,
582
- 209, 210, 212, 211, 213, 214, 215, 216,
583
- 217, 219, 220, 226, 227, 221, 222, 223,
584
- 224, 225, 229, 230, 231, 232, 243, 233,
585
- 234, 235, 236, 237, 238, 239, 240, 241,
586
- 242, 245, 251, 246, 247, 248, 249, 250,
587
- 252, 253, 254, 255, 256, 257, 258, 259,
588
- 260, 261, 263, 264, 265, 266, 267, 268,
589
- 269, 270, 271, 272, 273, 274, 275, 276,
590
- 277, 278, 279, 280, 281, 282, 281, 282,
591
- 283, 286, 282, 7, 287, 285, 301, 305,
592
- 309, 319, 336, 284, 285, 57, 288, 289,
593
- 290, 291, 292, 293, 294, 295, 296, 297,
594
- 298, 299, 300, 7, 302, 303, 304, 306,
595
- 307, 308, 310, 311, 317, 318, 312, 313,
596
- 314, 315, 316, 320, 321, 322, 323, 335,
597
- 324, 325, 326, 327, 328, 329, 330, 331,
598
- 332, 333, 334, 337, 338, 339, 340, 341,
599
- 342, 343, 344, 345, 347, 348, 346, 344,
600
- 345, 346, 344, 347, 2, 8, 348, 9,
601
- 18, 20, 4, 34, 37, 41, 58, 68,
602
- 95, 175, 343, 351, 352, 353, 354, 355,
603
- 356, 357, 358, 359, 360, 361, 362, 363,
604
- 7, 365, 366, 367, 369, 370, 371, 373,
605
- 374, 380, 381, 375, 376, 377, 378, 379,
606
- 383, 384, 385, 386, 398, 387, 388, 389,
607
- 390, 391, 392, 393, 394, 395, 396, 397,
608
- 400, 406, 401, 402, 403, 404, 405, 407,
609
- 408, 409, 410, 411, 412, 413, 414, 415,
610
- 416, 418, 0
611
- ];
612
-
613
- const _lexer_trans_actions = [
614
- 39, 25, 25, 0, 47, 3, 1, 0,
615
- 25, 1, 25, 25, 25, 25, 25, 25,
616
- 31, 0, 0, 0, 0, 50, 0, 99,
617
- 19, 0, 0, 47, 5, 41, 119, 41,
618
- 0, 29, 111, 29, 29, 0, 7, 95,
619
- 0, 0, 103, 21, 0, 0, 0, 0,
620
- 0, 0, 0, 0, 0, 0, 0, 0,
621
- 0, 0, 0, 23, 107, 23, 44, 0,
622
- 0, 0, 0, 0, 0, 0, 0, 0,
623
- 0, 0, 0, 0, 0, 50, 124, 0,
624
- 47, 77, 77, 0, 65, 29, 77, 77,
625
- 77, 77, 77, 77, 0, 0, 11, 56,
626
- 56, 27, 115, 53, 50, 27, 56, 50,
627
- 56, 56, 56, 56, 56, 56, 59, 0,
628
- 0, 0, 0, 0, 0, 0, 0, 0,
629
- 0, 0, 0, 0, 0, 0, 0, 50,
630
- 124, 0, 47, 0, 74, 77, 0, 0,
631
- 0, 0, 0, 0, 0, 0, 0, 0,
632
- 0, 0, 0, 0, 0, 0, 17, 0,
633
- 0, 0, 0, 0, 0, 0, 0, 0,
634
- 0, 0, 0, 0, 0, 0, 0, 0,
635
- 50, 124, 0, 47, 0, 62, 29, 77,
636
- 77, 77, 77, 0, 0, 0, 0, 0,
637
- 0, 0, 0, 0, 0, 0, 0, 0,
638
- 9, 0, 0, 0, 0, 0, 0, 9,
639
- 0, 0, 0, 0, 0, 0, 0, 0,
640
- 0, 0, 0, 0, 0, 0, 0, 0,
641
- 0, 0, 0, 0, 0, 0, 0, 0,
642
- 0, 0, 0, 0, 0, 0, 0, 0,
643
- 0, 0, 0, 0, 0, 0, 0, 0,
644
- 0, 0, 0, 0, 0, 50, 124, 0,
645
- 47, 77, 77, 0, 68, 29, 77, 77,
646
- 77, 77, 77, 77, 0, 0, 13, 0,
647
- 0, 0, 0, 0, 0, 0, 0, 0,
648
- 0, 0, 0, 0, 13, 0, 0, 0,
649
- 0, 0, 0, 0, 0, 0, 0, 0,
650
- 0, 0, 0, 0, 0, 0, 0, 0,
651
- 0, 0, 0, 0, 0, 0, 0, 0,
652
- 0, 0, 0, 0, 0, 0, 0, 0,
653
- 0, 0, 0, 0, 0, 0, 0, 0,
654
- 0, 0, 0, 0, 0, 0, 0, 0,
655
- 0, 0, 0, 0, 0, 0, 0, 0,
656
- 0, 0, 0, 0, 0, 0, 0, 0,
657
- 0, 0, 0, 0, 50, 124, 0, 47,
658
- 77, 77, 0, 71, 29, 77, 77, 77,
659
- 77, 77, 77, 0, 0, 15, 0, 0,
660
- 0, 0, 0, 0, 0, 0, 0, 0,
661
- 0, 0, 0, 15, 0, 0, 0, 0,
662
- 0, 0, 0, 0, 0, 0, 0, 0,
663
- 0, 0, 0, 0, 0, 0, 0, 0,
664
- 0, 0, 0, 0, 0, 0, 0, 0,
665
- 0, 0, 0, 0, 0, 0, 0, 0,
666
- 0, 0, 0, 33, 33, 47, 33, 80,
667
- 0, 0, 35, 0, 89, 89, 0, 86,
668
- 83, 37, 89, 83, 89, 89, 89, 89,
669
- 89, 89, 92, 0, 0, 0, 0, 0,
670
- 0, 0, 0, 0, 0, 0, 0, 0,
671
- 11, 0, 0, 0, 0, 0, 0, 0,
672
- 0, 0, 0, 0, 0, 0, 0, 0,
673
- 0, 0, 0, 0, 0, 0, 0, 0,
674
- 0, 0, 0, 0, 0, 0, 0, 0,
675
- 0, 0, 0, 0, 0, 0, 0, 0,
676
- 0, 0, 0, 0, 0, 0, 0, 0,
677
- 0, 0, 0
678
- ];
679
-
680
- const _lexer_eof_actions = [
681
- 0, 39, 39, 39, 39, 39, 39, 39,
682
- 39, 39, 39, 39, 39, 39, 39, 39,
683
- 39, 39, 39, 39, 39, 39, 39, 39,
684
- 39, 39, 39, 39, 39, 39, 39, 39,
685
- 39, 39, 39, 39, 39, 39, 39, 39,
686
- 39, 39, 39, 39, 39, 39, 39, 39,
687
- 39, 39, 39, 39, 39, 39, 39, 39,
688
- 39, 39, 39, 39, 39, 39, 39, 39,
689
- 39, 39, 39, 39, 39, 39, 39, 39,
690
- 39, 39, 39, 39, 39, 39, 39, 39,
691
- 39, 39, 39, 39, 39, 39, 39, 39,
692
- 39, 39, 39, 39, 39, 39, 39, 39,
693
- 39, 39, 39, 39, 39, 39, 39, 39,
694
- 39, 39, 39, 39, 39, 39, 39, 39,
695
- 39, 39, 39, 39, 39, 39, 39, 39,
696
- 39, 39, 39, 39, 39, 39, 39, 39,
697
- 39, 39, 39, 39, 39, 39, 39, 39,
698
- 39, 39, 39, 39, 39, 39, 39, 39,
699
- 39, 39, 39, 39, 39, 39, 39, 39,
700
- 39, 39, 39, 39, 39, 39, 39, 39,
701
- 39, 39, 39, 39, 39, 39, 39, 39,
702
- 39, 39, 39, 39, 39, 39, 39, 39,
703
- 39, 39, 39, 39, 39, 39, 39, 39,
704
- 39, 39, 39, 39, 39, 39, 39, 39,
705
- 39, 39, 39, 39, 39, 39, 39, 39,
706
- 39, 39, 39, 39, 39, 39, 39, 39,
707
- 39, 39, 39, 39, 39, 39, 39, 39,
708
- 39, 39, 39, 39, 39, 39, 39, 39,
709
- 39, 39, 39, 39, 39, 39, 39, 39,
710
- 39, 39, 39, 39, 39, 39, 39, 39,
711
- 39, 39, 39, 39, 39, 39, 39, 39,
712
- 39, 39, 39, 39, 39, 39, 39, 39,
713
- 39, 39, 39, 39, 39, 39, 39, 39,
714
- 39, 39, 39, 39, 39, 39, 39, 39,
715
- 39, 39, 39, 39, 39, 39, 39, 39,
716
- 39, 39, 39, 39, 39, 39, 39, 39,
717
- 39, 39, 39, 39, 39, 39, 39, 39,
718
- 39, 39, 39, 39, 39, 39, 39, 39,
719
- 39, 39, 39, 39, 39, 39, 39, 39,
720
- 39, 39, 39, 39, 39, 39, 39, 39,
721
- 39, 39, 39, 39, 39, 39, 39, 39,
722
- 39, 39, 39, 39, 39, 39, 39, 39,
723
- 39, 39, 39, 39, 39, 39, 39, 39,
724
- 39, 39, 39, 39, 39, 39, 39, 39,
725
- 39, 39, 39, 39, 39, 39, 39, 39,
726
- 39, 39, 39, 39, 39, 39, 39, 39,
727
- 39, 39, 39, 39, 39, 39, 39, 39,
728
- 39, 39, 39, 39, 39, 39, 39, 39,
729
- 39, 39, 39, 39, 39, 39, 39, 39,
730
- 39, 39, 39, 39, 39, 39, 39, 39,
731
- 39, 39, 39, 39, 39, 39, 39, 39,
732
- 39, 39, 39, 39, 39, 39, 39, 39,
733
- 39, 39, 39, 39
734
- ];
735
-
736
- const lexer_start = 1;
737
- const lexer_first_final = 419;
738
- const lexer_error = 0;
739
-
740
- const lexer_en_main = 1;
741
-
742
-
743
- /* line 110 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
744
-
745
- /* line 111 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
746
-
747
- /* line 112 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
748
-
749
- var Lexer = function(listeners) {
750
- // check that we have an 'on' method (for registering event listeners - Node has that)
751
- // If not, make a trivial implementation that can register one listener. -Enough for testing.
752
-
753
- if(!this.on) {
754
- this._listeners = {};
755
-
756
- this.on = function(event, cb) {
757
- this._listeners[event] = cb;
758
- };
759
-
760
- this.emit = function() {
761
- var event = arguments[0];
762
- var args = [];
763
- for(var i = 1; i < arguments.length; i++) {
764
- args.push(arguments[i]);
765
- }
766
- var cb = this._listeners[event];
767
- cb.apply(listeners, args);
768
- };
769
- }
770
-
771
- var events = ['feature', 'background', 'scenario', 'scenario_outline', 'examples', 'step', 'py_string', 'row', 'end'];
772
- for(e in events) {
773
- var event = events[e];
774
- var listener = listeners[event];
775
- // if(!listener) {
776
- // throw "No listener for " + event;
777
- // }
778
- this.on(event, listener);
779
- }
780
-
781
-
782
- /* line 783 "js/lib/gherkin/lexer/i18n/ro.js" */
783
- {
784
- this.cs = lexer_start;
785
- } /* JSCodeGen::writeInit */
786
-
787
- /* line 146 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
788
- };
789
-
790
- if(typeof require == 'function') {
791
- require('sys').inherits(Lexer, require('events').EventEmitter);
792
- }
793
-
794
- Lexer.prototype.scan = function(data) {
795
- var p = 0;
796
- var pe = data.length;
797
- var eof = 0;
798
-
799
-
800
- /* line 801 "js/lib/gherkin/lexer/i18n/ro.js" */
801
- {
802
- var _klen, _trans, _keys, _ps, _widec, _acts, _nacts;
803
- var _goto_level, _resume, _eof_trans, _again, _test_eof;
804
- var _out;
805
- _klen = _trans = _keys = _acts = _nacts = null;
806
- _goto_level = 0;
807
- _resume = 10;
808
- _eof_trans = 15;
809
- _again = 20;
810
- _test_eof = 30;
811
- _out = 40;
812
- while (true) {
813
- _trigger_goto = false;
814
- if (_goto_level <= 0) {
815
- if (p == pe) {
816
- _goto_level = _test_eof;
817
- continue;
818
- }
819
- if ( this.cs == 0) {
820
- _goto_level = _out;
821
- continue;
822
- }
823
- }
824
- if (_goto_level <= _resume) {
825
- _keys = _lexer_key_offsets[ this.cs];
826
- _trans = _lexer_index_offsets[ this.cs];
827
- _klen = _lexer_single_lengths[ this.cs];
828
- _break_match = false;
829
-
830
- do {
831
- if (_klen > 0) {
832
- _lower = _keys;
833
- _upper = _keys + _klen - 1;
834
-
835
- while (true) {
836
- if (_upper < _lower) { break; }
837
- _mid = _lower + ( (_upper - _lower) >> 1 );
838
-
839
- if ( data[p] < _lexer_trans_keys[_mid]) {
840
- _upper = _mid - 1;
841
- } else if ( data[p] > _lexer_trans_keys[_mid]) {
842
- _lower = _mid + 1;
843
- } else {
844
- _trans += (_mid - _keys);
845
- _break_match = true;
846
- break;
847
- };
848
- } /* while */
849
- if (_break_match) { break; }
850
- _keys += _klen;
851
- _trans += _klen;
852
- }
853
- _klen = _lexer_range_lengths[ this.cs];
854
- if (_klen > 0) {
855
- _lower = _keys;
856
- _upper = _keys + (_klen << 1) - 2;
857
- while (true) {
858
- if (_upper < _lower) { break; }
859
- _mid = _lower + (((_upper-_lower) >> 1) & ~1);
860
- if ( data[p] < _lexer_trans_keys[_mid]) {
861
- _upper = _mid - 2;
862
- } else if ( data[p] > _lexer_trans_keys[_mid+1]) {
863
- _lower = _mid + 2;
864
- } else {
865
- _trans += ((_mid - _keys) >> 1);
866
- _break_match = true;
867
- break;
868
- }
869
- } /* while */
870
- if (_break_match) { break; }
871
- _trans += _klen
872
- }
873
- } while (false);
874
- _trans = _lexer_indicies[_trans];
875
- this.cs = _lexer_trans_targs[_trans];
876
- if (_lexer_trans_actions[_trans] != 0) {
877
- _acts = _lexer_trans_actions[_trans];
878
- _nacts = _lexer_actions[_acts];
879
- _acts += 1;
880
- while (_nacts > 0) {
881
- _nacts -= 1;
882
- _acts += 1;
883
- switch (_lexer_actions[_acts - 1]) {
884
- case 0:
885
- /* line 6 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
886
-
887
- this.content_start = p;
888
- this.current_line = this.line_number;
889
- this.start_col = p - this.last_newline - (this.keyword+':').length;
890
- break;
891
- case 1:
892
- /* line 12 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
893
-
894
- this.current_line = this.line_number;
895
- this.start_col = p - this.last_newline;
896
- break;
897
- case 2:
898
- /* line 17 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
899
-
900
- this.content_start = p;
901
- break;
902
- case 3:
903
- /* line 21 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
904
-
905
- var con = this.unindent(
906
- this.start_col,
907
- this.bytesToString(data.slice(this.content_start, this.next_keyword_start-1)).replace(/(\r?\n)?([\t ])*\Z/, '') // TODO .replace(/\"\"\"/mg, '"""')
908
- );
909
- this.emit('py_string', con, this.current_line);
910
- break;
911
- case 4:
912
- /* line 29 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
913
-
914
- p = this.store_keyword_content('feature', data, p, eof);
915
- break;
916
- case 5:
917
- /* line 33 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
918
-
919
- p = this.store_keyword_content('background', data, p, eof);
920
- break;
921
- case 6:
922
- /* line 37 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
923
-
924
- p = this.store_keyword_content('scenario', data, p, eof);
925
- break;
926
- case 7:
927
- /* line 41 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
928
-
929
- p = this.store_keyword_content('scenario_outline', data, p, eof);
930
- break;
931
- case 8:
932
- /* line 45 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
933
-
934
- p = this.store_keyword_content('examples', data, p, eof);
935
- break;
936
- case 9:
937
- /* line 49 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
938
-
939
- var con = this.bytesToString(data.slice(this.content_start, p)).trim();
940
- this.emit('step', this.keyword, con, this.current_line);
941
- break;
942
- case 10:
943
- /* line 54 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
944
-
945
- console.log('TODO: store_comment_content');
946
- break;
947
- case 11:
948
- /* line 58 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
949
-
950
- console.log('TODO: store_tag_content');
951
- break;
952
- case 12:
953
- /* line 62 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
954
-
955
- this.line_number++;
956
- break;
957
- case 13:
958
- /* line 66 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
959
-
960
- this.last_newline = p + 1;
961
- break;
962
- case 14:
963
- /* line 70 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
964
-
965
- this.keyword_start = this.keyword_start || p;
966
- break;
967
- case 15:
968
- /* line 74 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
969
-
970
- this.keyword = this.bytesToString(data.slice(this.keyword_start, p)).replace(/:$/, '');
971
- this.keyword_start = null;
972
- break;
973
- case 16:
974
- /* line 79 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
975
-
976
- this.next_keyword_start = p;
977
- break;
978
- case 17:
979
- /* line 83 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
980
-
981
- p = p - 1;
982
- current_row = [];
983
- this.current_line = this.line_number;
984
- break;
985
- case 18:
986
- /* line 89 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
987
-
988
- this.content_start = p;
989
- break;
990
- case 19:
991
- /* line 93 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
992
-
993
- var con = this.bytesToString(data.slice(this.content_start, p)).trim();
994
- current_row.push(con.replace(/\\\|/, "|").replace(/\\n/, "\n").replace(/\\\\/, "\\"));
995
- break;
996
- case 20:
997
- /* line 98 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
998
-
999
- this.emit('row', current_row, this.current_line);
1000
- break;
1001
- case 21:
1002
- /* line 102 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
1003
-
1004
- console.log('TODO: end_feature');
1005
- break;
1006
- /* line 1007 "js/lib/gherkin/lexer/i18n/ro.js" */
1007
- } /* action switch */
1008
- }
1009
- }
1010
- if (_trigger_goto) {
1011
- continue;
1012
- }
1013
- }
1014
- if (_goto_level <= _again) {
1015
- if ( this.cs == 0) {
1016
- _goto_level = _out;
1017
- continue;
1018
- }
1019
- p += 1;
1020
- if (p != pe) {
1021
- _goto_level = _resume;
1022
- continue;
1023
- }
1024
- }
1025
- if (_goto_level <= _test_eof) {
1026
- if (p == eof) {
1027
- __acts = _lexer_eof_actions[ this.cs];
1028
- __nacts = _lexer_actions[__acts];
1029
- __acts += 1;
1030
- while (__nacts > 0) {
1031
- __nacts -= 1;
1032
- __acts += 1;
1033
- switch (_lexer_actions[__acts - 1]) {
1034
- case 21:
1035
- /* line 102 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
1036
-
1037
- console.log('TODO: end_feature');
1038
- break;
1039
- /* line 1040 "js/lib/gherkin/lexer/i18n/ro.js" */
1040
- } /* eof action switch */
1041
- }
1042
- if (_trigger_goto) {
1043
- continue;
1044
- }
1045
- }
1046
- }
1047
- if (_goto_level <= _out) {
1048
- break;
1049
- }
1050
- }
1051
- }
1052
-
1053
- /* line 158 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ro.js.rl" */
1054
- };
1055
-
1056
- Lexer.prototype.bytesToString = function(bytes) {
1057
- if(typeof bytes.write == 'function') {
1058
- // Node.js
1059
- return bytes.toString('utf-8');
1060
- } else {
1061
- var result = "";
1062
- for(var b in bytes) {
1063
- result += String.fromCharCode(bytes[b]);
1064
- }
1065
- return result;
1066
- }
1067
- }
1068
-
1069
- Lexer.prototype.unindent = function(startcol, text) {
1070
- startcol = startcol || 0;
1071
- return text.replace(new RegExp('^[\t ]{0,' + startcol + '}', 'gm'), '');
1072
- };
1073
-
1074
- Lexer.prototype.store_keyword_content = function(event, data, p, eof) {
1075
- var end_point = (!this.next_keyword_start || (p == eof)) ? p : this.next_keyword_start;
1076
- var content = this.unindent(this.start_col + 2, this.bytesToString(data.slice(this.content_start, end_point))).trimRight();
1077
- var content_lines = content.split("\n")
1078
- var name = content_lines.shift() || "";
1079
- name = name.trim();
1080
- var description = content_lines.join("\n");
1081
- this.emit(event, this.keyword, name, description, this.current_line);
1082
- var nks = this.next_keyword_start;
1083
- this.next_keyword_start = null;
1084
- return nks ? nks - 1 : p;
1085
- };
1086
-
1087
- exports.Lexer = Lexer;
1088
-
1089
- })();