gherkin 2.3.5-x86-mswin32 → 2.3.6-x86-mswin32

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