gherkin 2.3.5 → 2.3.6

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