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