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