]>
Commit | Line | Data |
---|---|---|
1 | #include <tree_sitter/parser.h> | |
2 | ||
3 | #if defined(__GNUC__) || defined(__clang__) | |
4 | #pragma GCC diagnostic push | |
5 | #pragma GCC diagnostic ignored "-Wmissing-field-initializers" | |
6 | #endif | |
7 | ||
8 | #define LANGUAGE_VERSION 14 | |
9 | #define STATE_COUNT 146 | |
10 | #define LARGE_STATE_COUNT 2 | |
11 | #define SYMBOL_COUNT 42 | |
12 | #define ALIAS_COUNT 0 | |
13 | #define TOKEN_COUNT 23 | |
14 | #define EXTERNAL_TOKEN_COUNT 0 | |
15 | #define FIELD_COUNT 0 | |
16 | #define MAX_ALIAS_SEQUENCE_LENGTH 7 | |
17 | #define PRODUCTION_ID_COUNT 1 | |
18 | ||
19 | enum { | |
20 | anon_sym_DOT = 1, | |
21 | anon_sym_COLON_COLON = 2, | |
22 | anon_sym_DASH_GT = 3, | |
23 | anon_sym_LT_DASH = 4, | |
24 | anon_sym_TILDE_GT = 5, | |
25 | anon_sym_LT_TILDE = 6, | |
26 | anon_sym_PLUS_GT = 7, | |
27 | anon_sym_LT_PLUS = 8, | |
28 | anon_sym_POUND = 9, | |
29 | anon_sym_PLUS = 10, | |
30 | anon_sym_DASH = 11, | |
31 | anon_sym_LPAREN = 12, | |
32 | anon_sym_RPAREN = 13, | |
33 | anon_sym_EQ_GT = 14, | |
34 | anon_sym_POUND_GT = 15, | |
35 | anon_sym_COMMA = 16, | |
36 | anon_sym_LT = 17, | |
37 | anon_sym_GT = 18, | |
38 | anon_sym_SLASH_SLASH = 19, | |
39 | aux_sym_comment_token1 = 20, | |
40 | sym__label = 21, | |
41 | sym__newline = 22, | |
42 | sym_source_file = 23, | |
43 | sym_definition = 24, | |
44 | sym_entry = 25, | |
45 | sym_member = 26, | |
46 | sym_member_type = 27, | |
47 | sym_parameter_list = 28, | |
48 | sym_return_statement = 29, | |
49 | sym_throw_statement = 30, | |
50 | sym__entry_list = 31, | |
51 | sym__identifier_list = 32, | |
52 | sym_identifier = 33, | |
53 | sym_type_annotation = 34, | |
54 | sym_comment = 35, | |
55 | aux_sym_source_file_repeat1 = 36, | |
56 | aux_sym_source_file_repeat2 = 37, | |
57 | aux_sym_definition_repeat1 = 38, | |
58 | aux_sym_entry_repeat1 = 39, | |
59 | aux_sym__entry_list_repeat1 = 40, | |
60 | aux_sym__identifier_list_repeat1 = 41, | |
61 | }; | |
62 | ||
63 | static const char * const ts_symbol_names[] = { | |
64 | [ts_builtin_sym_end] = "end", | |
65 | [anon_sym_DOT] = ".", | |
66 | [anon_sym_COLON_COLON] = "::", | |
67 | [anon_sym_DASH_GT] = "->", | |
68 | [anon_sym_LT_DASH] = "<-", | |
69 | [anon_sym_TILDE_GT] = "~>", | |
70 | [anon_sym_LT_TILDE] = "<~", | |
71 | [anon_sym_PLUS_GT] = "+>", | |
72 | [anon_sym_LT_PLUS] = "<+", | |
73 | [anon_sym_POUND] = "#", | |
74 | [anon_sym_PLUS] = "+", | |
75 | [anon_sym_DASH] = "-", | |
76 | [anon_sym_LPAREN] = "(", | |
77 | [anon_sym_RPAREN] = ")", | |
78 | [anon_sym_EQ_GT] = "=>", | |
79 | [anon_sym_POUND_GT] = "#>", | |
80 | [anon_sym_COMMA] = ",", | |
81 | [anon_sym_LT] = "<", | |
82 | [anon_sym_GT] = ">", | |
83 | [anon_sym_SLASH_SLASH] = "//", | |
84 | [aux_sym_comment_token1] = "comment_token1", | |
85 | [sym__label] = "_label", | |
86 | [sym__newline] = "_newline", | |
87 | [sym_source_file] = "source_file", | |
88 | [sym_definition] = "definition", | |
89 | [sym_entry] = "entry", | |
90 | [sym_member] = "member", | |
91 | [sym_member_type] = "member_type", | |
92 | [sym_parameter_list] = "parameter_list", | |
93 | [sym_return_statement] = "return_statement", | |
94 | [sym_throw_statement] = "throw_statement", | |
95 | [sym__entry_list] = "_entry_list", | |
96 | [sym__identifier_list] = "_identifier_list", | |
97 | [sym_identifier] = "identifier", | |
98 | [sym_type_annotation] = "type_annotation", | |
99 | [sym_comment] = "comment", | |
100 | [aux_sym_source_file_repeat1] = "source_file_repeat1", | |
101 | [aux_sym_source_file_repeat2] = "source_file_repeat2", | |
102 | [aux_sym_definition_repeat1] = "definition_repeat1", | |
103 | [aux_sym_entry_repeat1] = "entry_repeat1", | |
104 | [aux_sym__entry_list_repeat1] = "_entry_list_repeat1", | |
105 | [aux_sym__identifier_list_repeat1] = "_identifier_list_repeat1", | |
106 | }; | |
107 | ||
108 | static const TSSymbol ts_symbol_map[] = { | |
109 | [ts_builtin_sym_end] = ts_builtin_sym_end, | |
110 | [anon_sym_DOT] = anon_sym_DOT, | |
111 | [anon_sym_COLON_COLON] = anon_sym_COLON_COLON, | |
112 | [anon_sym_DASH_GT] = anon_sym_DASH_GT, | |
113 | [anon_sym_LT_DASH] = anon_sym_LT_DASH, | |
114 | [anon_sym_TILDE_GT] = anon_sym_TILDE_GT, | |
115 | [anon_sym_LT_TILDE] = anon_sym_LT_TILDE, | |
116 | [anon_sym_PLUS_GT] = anon_sym_PLUS_GT, | |
117 | [anon_sym_LT_PLUS] = anon_sym_LT_PLUS, | |
118 | [anon_sym_POUND] = anon_sym_POUND, | |
119 | [anon_sym_PLUS] = anon_sym_PLUS, | |
120 | [anon_sym_DASH] = anon_sym_DASH, | |
121 | [anon_sym_LPAREN] = anon_sym_LPAREN, | |
122 | [anon_sym_RPAREN] = anon_sym_RPAREN, | |
123 | [anon_sym_EQ_GT] = anon_sym_EQ_GT, | |
124 | [anon_sym_POUND_GT] = anon_sym_POUND_GT, | |
125 | [anon_sym_COMMA] = anon_sym_COMMA, | |
126 | [anon_sym_LT] = anon_sym_LT, | |
127 | [anon_sym_GT] = anon_sym_GT, | |
128 | [anon_sym_SLASH_SLASH] = anon_sym_SLASH_SLASH, | |
129 | [aux_sym_comment_token1] = aux_sym_comment_token1, | |
130 | [sym__label] = sym__label, | |
131 | [sym__newline] = sym__newline, | |
132 | [sym_source_file] = sym_source_file, | |
133 | [sym_definition] = sym_definition, | |
134 | [sym_entry] = sym_entry, | |
135 | [sym_member] = sym_member, | |
136 | [sym_member_type] = sym_member_type, | |
137 | [sym_parameter_list] = sym_parameter_list, | |
138 | [sym_return_statement] = sym_return_statement, | |
139 | [sym_throw_statement] = sym_throw_statement, | |
140 | [sym__entry_list] = sym__entry_list, | |
141 | [sym__identifier_list] = sym__identifier_list, | |
142 | [sym_identifier] = sym_identifier, | |
143 | [sym_type_annotation] = sym_type_annotation, | |
144 | [sym_comment] = sym_comment, | |
145 | [aux_sym_source_file_repeat1] = aux_sym_source_file_repeat1, | |
146 | [aux_sym_source_file_repeat2] = aux_sym_source_file_repeat2, | |
147 | [aux_sym_definition_repeat1] = aux_sym_definition_repeat1, | |
148 | [aux_sym_entry_repeat1] = aux_sym_entry_repeat1, | |
149 | [aux_sym__entry_list_repeat1] = aux_sym__entry_list_repeat1, | |
150 | [aux_sym__identifier_list_repeat1] = aux_sym__identifier_list_repeat1, | |
151 | }; | |
152 | ||
153 | static const TSSymbolMetadata ts_symbol_metadata[] = { | |
154 | [ts_builtin_sym_end] = { | |
155 | .visible = false, | |
156 | .named = true, | |
157 | }, | |
158 | [anon_sym_DOT] = { | |
159 | .visible = true, | |
160 | .named = false, | |
161 | }, | |
162 | [anon_sym_COLON_COLON] = { | |
163 | .visible = true, | |
164 | .named = false, | |
165 | }, | |
166 | [anon_sym_DASH_GT] = { | |
167 | .visible = true, | |
168 | .named = false, | |
169 | }, | |
170 | [anon_sym_LT_DASH] = { | |
171 | .visible = true, | |
172 | .named = false, | |
173 | }, | |
174 | [anon_sym_TILDE_GT] = { | |
175 | .visible = true, | |
176 | .named = false, | |
177 | }, | |
178 | [anon_sym_LT_TILDE] = { | |
179 | .visible = true, | |
180 | .named = false, | |
181 | }, | |
182 | [anon_sym_PLUS_GT] = { | |
183 | .visible = true, | |
184 | .named = false, | |
185 | }, | |
186 | [anon_sym_LT_PLUS] = { | |
187 | .visible = true, | |
188 | .named = false, | |
189 | }, | |
190 | [anon_sym_POUND] = { | |
191 | .visible = true, | |
192 | .named = false, | |
193 | }, | |
194 | [anon_sym_PLUS] = { | |
195 | .visible = true, | |
196 | .named = false, | |
197 | }, | |
198 | [anon_sym_DASH] = { | |
199 | .visible = true, | |
200 | .named = false, | |
201 | }, | |
202 | [anon_sym_LPAREN] = { | |
203 | .visible = true, | |
204 | .named = false, | |
205 | }, | |
206 | [anon_sym_RPAREN] = { | |
207 | .visible = true, | |
208 | .named = false, | |
209 | }, | |
210 | [anon_sym_EQ_GT] = { | |
211 | .visible = true, | |
212 | .named = false, | |
213 | }, | |
214 | [anon_sym_POUND_GT] = { | |
215 | .visible = true, | |
216 | .named = false, | |
217 | }, | |
218 | [anon_sym_COMMA] = { | |
219 | .visible = true, | |
220 | .named = false, | |
221 | }, | |
222 | [anon_sym_LT] = { | |
223 | .visible = true, | |
224 | .named = false, | |
225 | }, | |
226 | [anon_sym_GT] = { | |
227 | .visible = true, | |
228 | .named = false, | |
229 | }, | |
230 | [anon_sym_SLASH_SLASH] = { | |
231 | .visible = true, | |
232 | .named = false, | |
233 | }, | |
234 | [aux_sym_comment_token1] = { | |
235 | .visible = false, | |
236 | .named = false, | |
237 | }, | |
238 | [sym__label] = { | |
239 | .visible = false, | |
240 | .named = true, | |
241 | }, | |
242 | [sym__newline] = { | |
243 | .visible = false, | |
244 | .named = true, | |
245 | }, | |
246 | [sym_source_file] = { | |
247 | .visible = true, | |
248 | .named = true, | |
249 | }, | |
250 | [sym_definition] = { | |
251 | .visible = true, | |
252 | .named = true, | |
253 | }, | |
254 | [sym_entry] = { | |
255 | .visible = true, | |
256 | .named = true, | |
257 | }, | |
258 | [sym_member] = { | |
259 | .visible = true, | |
260 | .named = true, | |
261 | }, | |
262 | [sym_member_type] = { | |
263 | .visible = true, | |
264 | .named = true, | |
265 | }, | |
266 | [sym_parameter_list] = { | |
267 | .visible = true, | |
268 | .named = true, | |
269 | }, | |
270 | [sym_return_statement] = { | |
271 | .visible = true, | |
272 | .named = true, | |
273 | }, | |
274 | [sym_throw_statement] = { | |
275 | .visible = true, | |
276 | .named = true, | |
277 | }, | |
278 | [sym__entry_list] = { | |
279 | .visible = false, | |
280 | .named = true, | |
281 | }, | |
282 | [sym__identifier_list] = { | |
283 | .visible = false, | |
284 | .named = true, | |
285 | }, | |
286 | [sym_identifier] = { | |
287 | .visible = true, | |
288 | .named = true, | |
289 | }, | |
290 | [sym_type_annotation] = { | |
291 | .visible = true, | |
292 | .named = true, | |
293 | }, | |
294 | [sym_comment] = { | |
295 | .visible = true, | |
296 | .named = true, | |
297 | }, | |
298 | [aux_sym_source_file_repeat1] = { | |
299 | .visible = false, | |
300 | .named = false, | |
301 | }, | |
302 | [aux_sym_source_file_repeat2] = { | |
303 | .visible = false, | |
304 | .named = false, | |
305 | }, | |
306 | [aux_sym_definition_repeat1] = { | |
307 | .visible = false, | |
308 | .named = false, | |
309 | }, | |
310 | [aux_sym_entry_repeat1] = { | |
311 | .visible = false, | |
312 | .named = false, | |
313 | }, | |
314 | [aux_sym__entry_list_repeat1] = { | |
315 | .visible = false, | |
316 | .named = false, | |
317 | }, | |
318 | [aux_sym__identifier_list_repeat1] = { | |
319 | .visible = false, | |
320 | .named = false, | |
321 | }, | |
322 | }; | |
323 | ||
324 | static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH] = { | |
325 | [0] = {0}, | |
326 | }; | |
327 | ||
328 | static const uint16_t ts_non_terminal_alias_map[] = { | |
329 | 0, | |
330 | }; | |
331 | ||
332 | static const TSStateId ts_primary_state_ids[STATE_COUNT] = { | |
333 | [0] = 0, | |
334 | [1] = 1, | |
335 | [2] = 2, | |
336 | [3] = 3, | |
337 | [4] = 4, | |
338 | [5] = 5, | |
339 | [6] = 6, | |
340 | [7] = 7, | |
341 | [8] = 8, | |
342 | [9] = 9, | |
343 | [10] = 10, | |
344 | [11] = 11, | |
345 | [12] = 11, | |
346 | [13] = 11, | |
347 | [14] = 11, | |
348 | [15] = 15, | |
349 | [16] = 15, | |
350 | [17] = 11, | |
351 | [18] = 18, | |
352 | [19] = 15, | |
353 | [20] = 15, | |
354 | [21] = 21, | |
355 | [22] = 22, | |
356 | [23] = 23, | |
357 | [24] = 15, | |
358 | [25] = 25, | |
359 | [26] = 25, | |
360 | [27] = 23, | |
361 | [28] = 25, | |
362 | [29] = 25, | |
363 | [30] = 30, | |
364 | [31] = 23, | |
365 | [32] = 32, | |
366 | [33] = 23, | |
367 | [34] = 34, | |
368 | [35] = 35, | |
369 | [36] = 36, | |
370 | [37] = 37, | |
371 | [38] = 25, | |
372 | [39] = 39, | |
373 | [40] = 34, | |
374 | [41] = 41, | |
375 | [42] = 39, | |
376 | [43] = 43, | |
377 | [44] = 35, | |
378 | [45] = 32, | |
379 | [46] = 23, | |
380 | [47] = 47, | |
381 | [48] = 48, | |
382 | [49] = 49, | |
383 | [50] = 34, | |
384 | [51] = 48, | |
385 | [52] = 41, | |
386 | [53] = 53, | |
387 | [54] = 34, | |
388 | [55] = 35, | |
389 | [56] = 56, | |
390 | [57] = 39, | |
391 | [58] = 49, | |
392 | [59] = 41, | |
393 | [60] = 60, | |
394 | [61] = 36, | |
395 | [62] = 62, | |
396 | [63] = 48, | |
397 | [64] = 41, | |
398 | [65] = 47, | |
399 | [66] = 35, | |
400 | [67] = 67, | |
401 | [68] = 43, | |
402 | [69] = 39, | |
403 | [70] = 70, | |
404 | [71] = 49, | |
405 | [72] = 72, | |
406 | [73] = 73, | |
407 | [74] = 37, | |
408 | [75] = 75, | |
409 | [76] = 76, | |
410 | [77] = 47, | |
411 | [78] = 43, | |
412 | [79] = 79, | |
413 | [80] = 80, | |
414 | [81] = 81, | |
415 | [82] = 82, | |
416 | [83] = 82, | |
417 | [84] = 80, | |
418 | [85] = 49, | |
419 | [86] = 86, | |
420 | [87] = 47, | |
421 | [88] = 76, | |
422 | [89] = 73, | |
423 | [90] = 43, | |
424 | [91] = 91, | |
425 | [92] = 41, | |
426 | [93] = 93, | |
427 | [94] = 72, | |
428 | [95] = 35, | |
429 | [96] = 48, | |
430 | [97] = 91, | |
431 | [98] = 93, | |
432 | [99] = 41, | |
433 | [100] = 56, | |
434 | [101] = 81, | |
435 | [102] = 39, | |
436 | [103] = 75, | |
437 | [104] = 70, | |
438 | [105] = 34, | |
439 | [106] = 93, | |
440 | [107] = 86, | |
441 | [108] = 108, | |
442 | [109] = 109, | |
443 | [110] = 110, | |
444 | [111] = 111, | |
445 | [112] = 43, | |
446 | [113] = 113, | |
447 | [114] = 114, | |
448 | [115] = 49, | |
449 | [116] = 116, | |
450 | [117] = 113, | |
451 | [118] = 113, | |
452 | [119] = 119, | |
453 | [120] = 41, | |
454 | [121] = 114, | |
455 | [122] = 113, | |
456 | [123] = 56, | |
457 | [124] = 47, | |
458 | [125] = 125, | |
459 | [126] = 126, | |
460 | [127] = 127, | |
461 | [128] = 126, | |
462 | [129] = 126, | |
463 | [130] = 126, | |
464 | [131] = 126, | |
465 | [132] = 132, | |
466 | [133] = 133, | |
467 | [134] = 134, | |
468 | [135] = 133, | |
469 | [136] = 136, | |
470 | [137] = 137, | |
471 | [138] = 138, | |
472 | [139] = 139, | |
473 | [140] = 140, | |
474 | [141] = 141, | |
475 | [142] = 142, | |
476 | [143] = 136, | |
477 | [144] = 144, | |
478 | [145] = 145, | |
479 | }; | |
480 | ||
481 | static bool ts_lex(TSLexer *lexer, TSStateId state) { | |
482 | START_LEXER(); | |
483 | eof = lexer->eof(lexer); | |
484 | switch (state) { | |
485 | case 0: | |
486 | if (eof) ADVANCE(10); | |
487 | if (lookahead == '#') ADVANCE(20); | |
488 | if (lookahead == '(') ADVANCE(23); | |
489 | if (lookahead == ')') ADVANCE(24); | |
490 | if (lookahead == '+') ADVANCE(21); | |
491 | if (lookahead == ',') ADVANCE(27); | |
492 | if (lookahead == '-') ADVANCE(22); | |
493 | if (lookahead == '.') ADVANCE(11); | |
494 | if (lookahead == '/') ADVANCE(4); | |
495 | if (lookahead == ':') ADVANCE(5); | |
496 | if (lookahead == '<') ADVANCE(29); | |
497 | if (lookahead == '=') ADVANCE(7); | |
498 | if (lookahead == '>') ADVANCE(30); | |
499 | if (lookahead == '~') ADVANCE(8); | |
500 | if (lookahead == '\t' || | |
501 | lookahead == '\n' || | |
502 | lookahead == '\r' || | |
503 | lookahead == ' ') SKIP(0) | |
504 | if (('0' <= lookahead && lookahead <= '9') || | |
505 | ('A' <= lookahead && lookahead <= 'Z') || | |
506 | ('a' <= lookahead && lookahead <= 'z')) ADVANCE(34); | |
507 | END_STATE(); | |
508 | case 1: | |
509 | if (lookahead == '\n') ADVANCE(35); | |
510 | if (lookahead == '#') ADVANCE(6); | |
511 | if (lookahead == '(') ADVANCE(23); | |
512 | if (lookahead == ',') ADVANCE(27); | |
513 | if (lookahead == '.') ADVANCE(11); | |
514 | if (lookahead == '<') ADVANCE(28); | |
515 | if (lookahead == '=') ADVANCE(7); | |
516 | if (lookahead == '\t' || | |
517 | lookahead == '\r' || | |
518 | lookahead == ' ') SKIP(1) | |
519 | END_STATE(); | |
520 | case 2: | |
521 | if (lookahead == '#') ADVANCE(6); | |
522 | if (lookahead == '(') ADVANCE(23); | |
523 | if (lookahead == ')') ADVANCE(24); | |
524 | if (lookahead == ',') ADVANCE(27); | |
525 | if (lookahead == '.') ADVANCE(11); | |
526 | if (lookahead == '<') ADVANCE(28); | |
527 | if (lookahead == '=') ADVANCE(7); | |
528 | if (lookahead == '>') ADVANCE(30); | |
529 | if (lookahead == '\t' || | |
530 | lookahead == '\n' || | |
531 | lookahead == '\r' || | |
532 | lookahead == ' ') SKIP(2) | |
533 | END_STATE(); | |
534 | case 3: | |
535 | if (lookahead == '+') ADVANCE(18); | |
536 | if (lookahead == '-') ADVANCE(14); | |
537 | if (lookahead == '~') ADVANCE(16); | |
538 | END_STATE(); | |
539 | case 4: | |
540 | if (lookahead == '/') ADVANCE(31); | |
541 | END_STATE(); | |
542 | case 5: | |
543 | if (lookahead == ':') ADVANCE(12); | |
544 | END_STATE(); | |
545 | case 6: | |
546 | if (lookahead == '>') ADVANCE(26); | |
547 | END_STATE(); | |
548 | case 7: | |
549 | if (lookahead == '>') ADVANCE(25); | |
550 | END_STATE(); | |
551 | case 8: | |
552 | if (lookahead == '>') ADVANCE(15); | |
553 | END_STATE(); | |
554 | case 9: | |
555 | if (eof) ADVANCE(10); | |
556 | if (lookahead == '\n') ADVANCE(35); | |
557 | if (lookahead == '#') ADVANCE(19); | |
558 | if (lookahead == '+') ADVANCE(21); | |
559 | if (lookahead == ',') ADVANCE(27); | |
560 | if (lookahead == '-') ADVANCE(22); | |
561 | if (lookahead == '.') ADVANCE(11); | |
562 | if (lookahead == '/') ADVANCE(4); | |
563 | if (lookahead == ':') ADVANCE(5); | |
564 | if (lookahead == '<') ADVANCE(3); | |
565 | if (lookahead == '~') ADVANCE(8); | |
566 | if (lookahead == '\t' || | |
567 | lookahead == '\r' || | |
568 | lookahead == ' ') SKIP(9) | |
569 | if (('0' <= lookahead && lookahead <= '9') || | |
570 | ('A' <= lookahead && lookahead <= 'Z') || | |
571 | ('a' <= lookahead && lookahead <= 'z')) ADVANCE(34); | |
572 | END_STATE(); | |
573 | case 10: | |
574 | ACCEPT_TOKEN(ts_builtin_sym_end); | |
575 | END_STATE(); | |
576 | case 11: | |
577 | ACCEPT_TOKEN(anon_sym_DOT); | |
578 | END_STATE(); | |
579 | case 12: | |
580 | ACCEPT_TOKEN(anon_sym_COLON_COLON); | |
581 | END_STATE(); | |
582 | case 13: | |
583 | ACCEPT_TOKEN(anon_sym_DASH_GT); | |
584 | END_STATE(); | |
585 | case 14: | |
586 | ACCEPT_TOKEN(anon_sym_LT_DASH); | |
587 | END_STATE(); | |
588 | case 15: | |
589 | ACCEPT_TOKEN(anon_sym_TILDE_GT); | |
590 | END_STATE(); | |
591 | case 16: | |
592 | ACCEPT_TOKEN(anon_sym_LT_TILDE); | |
593 | END_STATE(); | |
594 | case 17: | |
595 | ACCEPT_TOKEN(anon_sym_PLUS_GT); | |
596 | END_STATE(); | |
597 | case 18: | |
598 | ACCEPT_TOKEN(anon_sym_LT_PLUS); | |
599 | END_STATE(); | |
600 | case 19: | |
601 | ACCEPT_TOKEN(anon_sym_POUND); | |
602 | END_STATE(); | |
603 | case 20: | |
604 | ACCEPT_TOKEN(anon_sym_POUND); | |
605 | if (lookahead == '>') ADVANCE(26); | |
606 | END_STATE(); | |
607 | case 21: | |
608 | ACCEPT_TOKEN(anon_sym_PLUS); | |
609 | if (lookahead == '>') ADVANCE(17); | |
610 | END_STATE(); | |
611 | case 22: | |
612 | ACCEPT_TOKEN(anon_sym_DASH); | |
613 | if (lookahead == '>') ADVANCE(13); | |
614 | END_STATE(); | |
615 | case 23: | |
616 | ACCEPT_TOKEN(anon_sym_LPAREN); | |
617 | END_STATE(); | |
618 | case 24: | |
619 | ACCEPT_TOKEN(anon_sym_RPAREN); | |
620 | END_STATE(); | |
621 | case 25: | |
622 | ACCEPT_TOKEN(anon_sym_EQ_GT); | |
623 | END_STATE(); | |
624 | case 26: | |
625 | ACCEPT_TOKEN(anon_sym_POUND_GT); | |
626 | END_STATE(); | |
627 | case 27: | |
628 | ACCEPT_TOKEN(anon_sym_COMMA); | |
629 | END_STATE(); | |
630 | case 28: | |
631 | ACCEPT_TOKEN(anon_sym_LT); | |
632 | END_STATE(); | |
633 | case 29: | |
634 | ACCEPT_TOKEN(anon_sym_LT); | |
635 | if (lookahead == '+') ADVANCE(18); | |
636 | if (lookahead == '-') ADVANCE(14); | |
637 | if (lookahead == '~') ADVANCE(16); | |
638 | END_STATE(); | |
639 | case 30: | |
640 | ACCEPT_TOKEN(anon_sym_GT); | |
641 | END_STATE(); | |
642 | case 31: | |
643 | ACCEPT_TOKEN(anon_sym_SLASH_SLASH); | |
644 | END_STATE(); | |
645 | case 32: | |
646 | ACCEPT_TOKEN(aux_sym_comment_token1); | |
647 | if (lookahead == '\t' || | |
648 | lookahead == '\r' || | |
649 | lookahead == ' ') ADVANCE(32); | |
650 | if (lookahead != 0 && | |
651 | lookahead != '\n') ADVANCE(33); | |
652 | END_STATE(); | |
653 | case 33: | |
654 | ACCEPT_TOKEN(aux_sym_comment_token1); | |
655 | if (lookahead != 0 && | |
656 | lookahead != '\n') ADVANCE(33); | |
657 | END_STATE(); | |
658 | case 34: | |
659 | ACCEPT_TOKEN(sym__label); | |
660 | if (lookahead == '-' || | |
661 | ('0' <= lookahead && lookahead <= '9') || | |
662 | ('A' <= lookahead && lookahead <= 'Z') || | |
663 | lookahead == '_' || | |
664 | ('a' <= lookahead && lookahead <= 'z')) ADVANCE(34); | |
665 | END_STATE(); | |
666 | case 35: | |
667 | ACCEPT_TOKEN(sym__newline); | |
668 | if (lookahead == '\n') ADVANCE(35); | |
669 | END_STATE(); | |
670 | default: | |
671 | return false; | |
672 | } | |
673 | } | |
674 | ||
675 | static const TSLexMode ts_lex_modes[STATE_COUNT] = { | |
676 | [0] = {.lex_state = 0}, | |
677 | [1] = {.lex_state = 0}, | |
678 | [2] = {.lex_state = 9}, | |
679 | [3] = {.lex_state = 9}, | |
680 | [4] = {.lex_state = 9}, | |
681 | [5] = {.lex_state = 9}, | |
682 | [6] = {.lex_state = 9}, | |
683 | [7] = {.lex_state = 9}, | |
684 | [8] = {.lex_state = 9}, | |
685 | [9] = {.lex_state = 9}, | |
686 | [10] = {.lex_state = 9}, | |
687 | [11] = {.lex_state = 2}, | |
688 | [12] = {.lex_state = 2}, | |
689 | [13] = {.lex_state = 1}, | |
690 | [14] = {.lex_state = 1}, | |
691 | [15] = {.lex_state = 2}, | |
692 | [16] = {.lex_state = 2}, | |
693 | [17] = {.lex_state = 1}, | |
694 | [18] = {.lex_state = 1}, | |
695 | [19] = {.lex_state = 1}, | |
696 | [20] = {.lex_state = 1}, | |
697 | [21] = {.lex_state = 0}, | |
698 | [22] = {.lex_state = 0}, | |
699 | [23] = {.lex_state = 2}, | |
700 | [24] = {.lex_state = 1}, | |
701 | [25] = {.lex_state = 2}, | |
702 | [26] = {.lex_state = 2}, | |
703 | [27] = {.lex_state = 2}, | |
704 | [28] = {.lex_state = 1}, | |
705 | [29] = {.lex_state = 1}, | |
706 | [30] = {.lex_state = 1}, | |
707 | [31] = {.lex_state = 1}, | |
708 | [32] = {.lex_state = 2}, | |
709 | [33] = {.lex_state = 1}, | |
710 | [34] = {.lex_state = 2}, | |
711 | [35] = {.lex_state = 2}, | |
712 | [36] = {.lex_state = 2}, | |
713 | [37] = {.lex_state = 2}, | |
714 | [38] = {.lex_state = 1}, | |
715 | [39] = {.lex_state = 2}, | |
716 | [40] = {.lex_state = 2}, | |
717 | [41] = {.lex_state = 2}, | |
718 | [42] = {.lex_state = 2}, | |
719 | [43] = {.lex_state = 2}, | |
720 | [44] = {.lex_state = 2}, | |
721 | [45] = {.lex_state = 1}, | |
722 | [46] = {.lex_state = 1}, | |
723 | [47] = {.lex_state = 2}, | |
724 | [48] = {.lex_state = 2}, | |
725 | [49] = {.lex_state = 2}, | |
726 | [50] = {.lex_state = 1}, | |
727 | [51] = {.lex_state = 0}, | |
728 | [52] = {.lex_state = 1}, | |
729 | [53] = {.lex_state = 9}, | |
730 | [54] = {.lex_state = 1}, | |
731 | [55] = {.lex_state = 1}, | |
732 | [56] = {.lex_state = 1}, | |
733 | [57] = {.lex_state = 1}, | |
734 | [58] = {.lex_state = 1}, | |
735 | [59] = {.lex_state = 1}, | |
736 | [60] = {.lex_state = 9}, | |
737 | [61] = {.lex_state = 1}, | |
738 | [62] = {.lex_state = 1}, | |
739 | [63] = {.lex_state = 1}, | |
740 | [64] = {.lex_state = 0}, | |
741 | [65] = {.lex_state = 0}, | |
742 | [66] = {.lex_state = 1}, | |
743 | [67] = {.lex_state = 1}, | |
744 | [68] = {.lex_state = 0}, | |
745 | [69] = {.lex_state = 1}, | |
746 | [70] = {.lex_state = 2}, | |
747 | [71] = {.lex_state = 0}, | |
748 | [72] = {.lex_state = 2}, | |
749 | [73] = {.lex_state = 2}, | |
750 | [74] = {.lex_state = 1}, | |
751 | [75] = {.lex_state = 2}, | |
752 | [76] = {.lex_state = 2}, | |
753 | [77] = {.lex_state = 1}, | |
754 | [78] = {.lex_state = 1}, | |
755 | [79] = {.lex_state = 9}, | |
756 | [80] = {.lex_state = 2}, | |
757 | [81] = {.lex_state = 2}, | |
758 | [82] = {.lex_state = 2}, | |
759 | [83] = {.lex_state = 1}, | |
760 | [84] = {.lex_state = 1}, | |
761 | [85] = {.lex_state = 9}, | |
762 | [86] = {.lex_state = 0}, | |
763 | [87] = {.lex_state = 9}, | |
764 | [88] = {.lex_state = 1}, | |
765 | [89] = {.lex_state = 1}, | |
766 | [90] = {.lex_state = 9}, | |
767 | [91] = {.lex_state = 0}, | |
768 | [92] = {.lex_state = 9}, | |
769 | [93] = {.lex_state = 0}, | |
770 | [94] = {.lex_state = 1}, | |
771 | [95] = {.lex_state = 1}, | |
772 | [96] = {.lex_state = 9}, | |
773 | [97] = {.lex_state = 0}, | |
774 | [98] = {.lex_state = 0}, | |
775 | [99] = {.lex_state = 9}, | |
776 | [100] = {.lex_state = 9}, | |
777 | [101] = {.lex_state = 1}, | |
778 | [102] = {.lex_state = 1}, | |
779 | [103] = {.lex_state = 1}, | |
780 | [104] = {.lex_state = 1}, | |
781 | [105] = {.lex_state = 1}, | |
782 | [106] = {.lex_state = 0}, | |
783 | [107] = {.lex_state = 0}, | |
784 | [108] = {.lex_state = 0}, | |
785 | [109] = {.lex_state = 0}, | |
786 | [110] = {.lex_state = 1}, | |
787 | [111] = {.lex_state = 1}, | |
788 | [112] = {.lex_state = 9}, | |
789 | [113] = {.lex_state = 0}, | |
790 | [114] = {.lex_state = 0}, | |
791 | [115] = {.lex_state = 9}, | |
792 | [116] = {.lex_state = 1}, | |
793 | [117] = {.lex_state = 0}, | |
794 | [118] = {.lex_state = 0}, | |
795 | [119] = {.lex_state = 0}, | |
796 | [120] = {.lex_state = 0}, | |
797 | [121] = {.lex_state = 0}, | |
798 | [122] = {.lex_state = 0}, | |
799 | [123] = {.lex_state = 0}, | |
800 | [124] = {.lex_state = 9}, | |
801 | [125] = {.lex_state = 0}, | |
802 | [126] = {.lex_state = 0}, | |
803 | [127] = {.lex_state = 0}, | |
804 | [128] = {.lex_state = 0}, | |
805 | [129] = {.lex_state = 0}, | |
806 | [130] = {.lex_state = 0}, | |
807 | [131] = {.lex_state = 0}, | |
808 | [132] = {.lex_state = 32}, | |
809 | [133] = {.lex_state = 0}, | |
810 | [134] = {.lex_state = 9}, | |
811 | [135] = {.lex_state = 0}, | |
812 | [136] = {.lex_state = 0}, | |
813 | [137] = {.lex_state = 9}, | |
814 | [138] = {.lex_state = 9}, | |
815 | [139] = {.lex_state = 9}, | |
816 | [140] = {.lex_state = 9}, | |
817 | [141] = {.lex_state = 9}, | |
818 | [142] = {.lex_state = 0}, | |
819 | [143] = {.lex_state = 0}, | |
820 | [144] = {.lex_state = 0}, | |
821 | [145] = {.lex_state = 0}, | |
822 | }; | |
823 | ||
824 | static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { | |
825 | [0] = { | |
826 | [ts_builtin_sym_end] = ACTIONS(1), | |
827 | [anon_sym_DOT] = ACTIONS(1), | |
828 | [anon_sym_COLON_COLON] = ACTIONS(1), | |
829 | [anon_sym_DASH_GT] = ACTIONS(1), | |
830 | [anon_sym_LT_DASH] = ACTIONS(1), | |
831 | [anon_sym_TILDE_GT] = ACTIONS(1), | |
832 | [anon_sym_LT_TILDE] = ACTIONS(1), | |
833 | [anon_sym_PLUS_GT] = ACTIONS(1), | |
834 | [anon_sym_LT_PLUS] = ACTIONS(1), | |
835 | [anon_sym_POUND] = ACTIONS(1), | |
836 | [anon_sym_PLUS] = ACTIONS(1), | |
837 | [anon_sym_DASH] = ACTIONS(1), | |
838 | [anon_sym_LPAREN] = ACTIONS(1), | |
839 | [anon_sym_RPAREN] = ACTIONS(1), | |
840 | [anon_sym_EQ_GT] = ACTIONS(1), | |
841 | [anon_sym_POUND_GT] = ACTIONS(1), | |
842 | [anon_sym_COMMA] = ACTIONS(1), | |
843 | [anon_sym_LT] = ACTIONS(1), | |
844 | [anon_sym_GT] = ACTIONS(1), | |
845 | [anon_sym_SLASH_SLASH] = ACTIONS(1), | |
846 | [sym__label] = ACTIONS(1), | |
847 | }, | |
848 | [1] = { | |
849 | [sym_source_file] = STATE(142), | |
850 | [sym_definition] = STATE(53), | |
851 | [sym_entry] = STATE(140), | |
852 | [sym_identifier] = STATE(115), | |
853 | [sym_comment] = STATE(53), | |
854 | [aux_sym_source_file_repeat2] = STATE(21), | |
855 | [ts_builtin_sym_end] = ACTIONS(3), | |
856 | [anon_sym_SLASH_SLASH] = ACTIONS(5), | |
857 | [sym__label] = ACTIONS(7), | |
858 | }, | |
859 | }; | |
860 | ||
861 | static const uint16_t ts_small_parse_table[] = { | |
862 | [0] = 6, | |
863 | ACTIONS(13), 1, | |
864 | anon_sym_SLASH_SLASH, | |
865 | ACTIONS(15), 1, | |
866 | sym__label, | |
867 | STATE(145), 1, | |
868 | sym_member_type, | |
869 | ACTIONS(9), 2, | |
870 | ts_builtin_sym_end, | |
871 | sym__newline, | |
872 | STATE(4), 3, | |
873 | sym_member, | |
874 | sym_comment, | |
875 | aux_sym_definition_repeat1, | |
876 | ACTIONS(11), 10, | |
877 | anon_sym_COLON_COLON, | |
878 | anon_sym_DASH_GT, | |
879 | anon_sym_LT_DASH, | |
880 | anon_sym_TILDE_GT, | |
881 | anon_sym_LT_TILDE, | |
882 | anon_sym_PLUS_GT, | |
883 | anon_sym_LT_PLUS, | |
884 | anon_sym_POUND, | |
885 | anon_sym_PLUS, | |
886 | anon_sym_DASH, | |
887 | [31] = 6, | |
888 | ACTIONS(13), 1, | |
889 | anon_sym_SLASH_SLASH, | |
890 | ACTIONS(19), 1, | |
891 | sym__label, | |
892 | STATE(145), 1, | |
893 | sym_member_type, | |
894 | ACTIONS(17), 2, | |
895 | ts_builtin_sym_end, | |
896 | sym__newline, | |
897 | STATE(2), 3, | |
898 | sym_member, | |
899 | sym_comment, | |
900 | aux_sym_definition_repeat1, | |
901 | ACTIONS(11), 10, | |
902 | anon_sym_COLON_COLON, | |
903 | anon_sym_DASH_GT, | |
904 | anon_sym_LT_DASH, | |
905 | anon_sym_TILDE_GT, | |
906 | anon_sym_LT_TILDE, | |
907 | anon_sym_PLUS_GT, | |
908 | anon_sym_LT_PLUS, | |
909 | anon_sym_POUND, | |
910 | anon_sym_PLUS, | |
911 | anon_sym_DASH, | |
912 | [62] = 6, | |
913 | ACTIONS(26), 1, | |
914 | anon_sym_SLASH_SLASH, | |
915 | ACTIONS(29), 1, | |
916 | sym__label, | |
917 | STATE(145), 1, | |
918 | sym_member_type, | |
919 | ACTIONS(21), 2, | |
920 | ts_builtin_sym_end, | |
921 | sym__newline, | |
922 | STATE(4), 3, | |
923 | sym_member, | |
924 | sym_comment, | |
925 | aux_sym_definition_repeat1, | |
926 | ACTIONS(23), 10, | |
927 | anon_sym_COLON_COLON, | |
928 | anon_sym_DASH_GT, | |
929 | anon_sym_LT_DASH, | |
930 | anon_sym_TILDE_GT, | |
931 | anon_sym_LT_TILDE, | |
932 | anon_sym_PLUS_GT, | |
933 | anon_sym_LT_PLUS, | |
934 | anon_sym_POUND, | |
935 | anon_sym_PLUS, | |
936 | anon_sym_DASH, | |
937 | [93] = 2, | |
938 | ACTIONS(31), 2, | |
939 | ts_builtin_sym_end, | |
940 | sym__newline, | |
941 | ACTIONS(33), 12, | |
942 | anon_sym_COLON_COLON, | |
943 | anon_sym_DASH_GT, | |
944 | anon_sym_LT_DASH, | |
945 | anon_sym_TILDE_GT, | |
946 | anon_sym_LT_TILDE, | |
947 | anon_sym_PLUS_GT, | |
948 | anon_sym_LT_PLUS, | |
949 | anon_sym_POUND, | |
950 | anon_sym_PLUS, | |
951 | anon_sym_DASH, | |
952 | anon_sym_SLASH_SLASH, | |
953 | sym__label, | |
954 | [112] = 2, | |
955 | ACTIONS(35), 2, | |
956 | ts_builtin_sym_end, | |
957 | sym__newline, | |
958 | ACTIONS(37), 12, | |
959 | anon_sym_COLON_COLON, | |
960 | anon_sym_DASH_GT, | |
961 | anon_sym_LT_DASH, | |
962 | anon_sym_TILDE_GT, | |
963 | anon_sym_LT_TILDE, | |
964 | anon_sym_PLUS_GT, | |
965 | anon_sym_LT_PLUS, | |
966 | anon_sym_POUND, | |
967 | anon_sym_PLUS, | |
968 | anon_sym_DASH, | |
969 | anon_sym_SLASH_SLASH, | |
970 | sym__label, | |
971 | [131] = 2, | |
972 | ACTIONS(39), 2, | |
973 | ts_builtin_sym_end, | |
974 | sym__newline, | |
975 | ACTIONS(41), 12, | |
976 | anon_sym_COLON_COLON, | |
977 | anon_sym_DASH_GT, | |
978 | anon_sym_LT_DASH, | |
979 | anon_sym_TILDE_GT, | |
980 | anon_sym_LT_TILDE, | |
981 | anon_sym_PLUS_GT, | |
982 | anon_sym_LT_PLUS, | |
983 | anon_sym_POUND, | |
984 | anon_sym_PLUS, | |
985 | anon_sym_DASH, | |
986 | anon_sym_SLASH_SLASH, | |
987 | sym__label, | |
988 | [150] = 2, | |
989 | ACTIONS(43), 2, | |
990 | ts_builtin_sym_end, | |
991 | sym__newline, | |
992 | ACTIONS(45), 12, | |
993 | anon_sym_COLON_COLON, | |
994 | anon_sym_DASH_GT, | |
995 | anon_sym_LT_DASH, | |
996 | anon_sym_TILDE_GT, | |
997 | anon_sym_LT_TILDE, | |
998 | anon_sym_PLUS_GT, | |
999 | anon_sym_LT_PLUS, | |
1000 | anon_sym_POUND, | |
1001 | anon_sym_PLUS, | |
1002 | anon_sym_DASH, | |
1003 | anon_sym_SLASH_SLASH, | |
1004 | sym__label, | |
1005 | [169] = 2, | |
1006 | ACTIONS(47), 2, | |
1007 | ts_builtin_sym_end, | |
1008 | sym__newline, | |
1009 | ACTIONS(49), 12, | |
1010 | anon_sym_COLON_COLON, | |
1011 | anon_sym_DASH_GT, | |
1012 | anon_sym_LT_DASH, | |
1013 | anon_sym_TILDE_GT, | |
1014 | anon_sym_LT_TILDE, | |
1015 | anon_sym_PLUS_GT, | |
1016 | anon_sym_LT_PLUS, | |
1017 | anon_sym_POUND, | |
1018 | anon_sym_PLUS, | |
1019 | anon_sym_DASH, | |
1020 | anon_sym_SLASH_SLASH, | |
1021 | sym__label, | |
1022 | [188] = 2, | |
1023 | ACTIONS(51), 2, | |
1024 | ts_builtin_sym_end, | |
1025 | sym__newline, | |
1026 | ACTIONS(53), 12, | |
1027 | anon_sym_COLON_COLON, | |
1028 | anon_sym_DASH_GT, | |
1029 | anon_sym_LT_DASH, | |
1030 | anon_sym_TILDE_GT, | |
1031 | anon_sym_LT_TILDE, | |
1032 | anon_sym_PLUS_GT, | |
1033 | anon_sym_LT_PLUS, | |
1034 | anon_sym_POUND, | |
1035 | anon_sym_PLUS, | |
1036 | anon_sym_DASH, | |
1037 | anon_sym_SLASH_SLASH, | |
1038 | sym__label, | |
1039 | [207] = 9, | |
1040 | ACTIONS(57), 1, | |
1041 | anon_sym_LPAREN, | |
1042 | ACTIONS(59), 1, | |
1043 | anon_sym_EQ_GT, | |
1044 | ACTIONS(61), 1, | |
1045 | anon_sym_POUND_GT, | |
1046 | ACTIONS(63), 1, | |
1047 | anon_sym_LT, | |
1048 | STATE(15), 1, | |
1049 | sym_type_annotation, | |
1050 | STATE(27), 1, | |
1051 | sym_parameter_list, | |
1052 | STATE(39), 1, | |
1053 | sym_return_statement, | |
1054 | STATE(75), 1, | |
1055 | sym_throw_statement, | |
1056 | ACTIONS(55), 4, | |
1057 | anon_sym_DOT, | |
1058 | anon_sym_RPAREN, | |
1059 | anon_sym_COMMA, | |
1060 | anon_sym_GT, | |
1061 | [238] = 8, | |
1062 | ACTIONS(57), 1, | |
1063 | anon_sym_LPAREN, | |
1064 | ACTIONS(59), 1, | |
1065 | anon_sym_EQ_GT, | |
1066 | ACTIONS(63), 1, | |
1067 | anon_sym_LT, | |
1068 | STATE(16), 1, | |
1069 | sym_type_annotation, | |
1070 | STATE(23), 1, | |
1071 | sym_parameter_list, | |
1072 | STATE(42), 1, | |
1073 | sym_return_statement, | |
1074 | STATE(75), 1, | |
1075 | sym_throw_statement, | |
1076 | ACTIONS(55), 5, | |
1077 | anon_sym_DOT, | |
1078 | anon_sym_RPAREN, | |
1079 | anon_sym_POUND_GT, | |
1080 | anon_sym_COMMA, | |
1081 | anon_sym_GT, | |
1082 | [267] = 9, | |
1083 | ACTIONS(55), 1, | |
1084 | sym__newline, | |
1085 | ACTIONS(67), 1, | |
1086 | anon_sym_LPAREN, | |
1087 | ACTIONS(69), 1, | |
1088 | anon_sym_EQ_GT, | |
1089 | ACTIONS(71), 1, | |
1090 | anon_sym_LT, | |
1091 | STATE(20), 1, | |
1092 | sym_type_annotation, | |
1093 | STATE(31), 1, | |
1094 | sym_parameter_list, | |
1095 | STATE(69), 1, | |
1096 | sym_return_statement, | |
1097 | STATE(103), 1, | |
1098 | sym_throw_statement, | |
1099 | ACTIONS(65), 3, | |
1100 | anon_sym_DOT, | |
1101 | anon_sym_POUND_GT, | |
1102 | anon_sym_COMMA, | |
1103 | [297] = 10, | |
1104 | ACTIONS(55), 1, | |
1105 | sym__newline, | |
1106 | ACTIONS(67), 1, | |
1107 | anon_sym_LPAREN, | |
1108 | ACTIONS(69), 1, | |
1109 | anon_sym_EQ_GT, | |
1110 | ACTIONS(71), 1, | |
1111 | anon_sym_LT, | |
1112 | ACTIONS(73), 1, | |
1113 | anon_sym_POUND_GT, | |
1114 | STATE(19), 1, | |
1115 | sym_type_annotation, | |
1116 | STATE(33), 1, | |
1117 | sym_parameter_list, | |
1118 | STATE(57), 1, | |
1119 | sym_return_statement, | |
1120 | STATE(103), 1, | |
1121 | sym_throw_statement, | |
1122 | ACTIONS(65), 2, | |
1123 | anon_sym_DOT, | |
1124 | anon_sym_COMMA, | |
1125 | [329] = 7, | |
1126 | ACTIONS(57), 1, | |
1127 | anon_sym_LPAREN, | |
1128 | ACTIONS(59), 1, | |
1129 | anon_sym_EQ_GT, | |
1130 | ACTIONS(61), 1, | |
1131 | anon_sym_POUND_GT, | |
1132 | STATE(26), 1, | |
1133 | sym_parameter_list, | |
1134 | STATE(35), 1, | |
1135 | sym_return_statement, | |
1136 | STATE(72), 1, | |
1137 | sym_throw_statement, | |
1138 | ACTIONS(75), 4, | |
1139 | anon_sym_DOT, | |
1140 | anon_sym_RPAREN, | |
1141 | anon_sym_COMMA, | |
1142 | anon_sym_GT, | |
1143 | [354] = 6, | |
1144 | ACTIONS(57), 1, | |
1145 | anon_sym_LPAREN, | |
1146 | ACTIONS(59), 1, | |
1147 | anon_sym_EQ_GT, | |
1148 | STATE(25), 1, | |
1149 | sym_parameter_list, | |
1150 | STATE(44), 1, | |
1151 | sym_return_statement, | |
1152 | STATE(72), 1, | |
1153 | sym_throw_statement, | |
1154 | ACTIONS(75), 5, | |
1155 | anon_sym_DOT, | |
1156 | anon_sym_RPAREN, | |
1157 | anon_sym_POUND_GT, | |
1158 | anon_sym_COMMA, | |
1159 | anon_sym_GT, | |
1160 | [377] = 10, | |
1161 | ACTIONS(55), 1, | |
1162 | sym__newline, | |
1163 | ACTIONS(65), 1, | |
1164 | anon_sym_DOT, | |
1165 | ACTIONS(67), 1, | |
1166 | anon_sym_LPAREN, | |
1167 | ACTIONS(69), 1, | |
1168 | anon_sym_EQ_GT, | |
1169 | ACTIONS(71), 1, | |
1170 | anon_sym_LT, | |
1171 | ACTIONS(77), 1, | |
1172 | anon_sym_POUND_GT, | |
1173 | STATE(24), 1, | |
1174 | sym_type_annotation, | |
1175 | STATE(46), 1, | |
1176 | sym_parameter_list, | |
1177 | STATE(102), 1, | |
1178 | sym_return_statement, | |
1179 | STATE(103), 1, | |
1180 | sym_throw_statement, | |
1181 | [408] = 9, | |
1182 | ACTIONS(67), 1, | |
1183 | anon_sym_LPAREN, | |
1184 | ACTIONS(69), 1, | |
1185 | anon_sym_EQ_GT, | |
1186 | ACTIONS(71), 1, | |
1187 | anon_sym_LT, | |
1188 | ACTIONS(77), 1, | |
1189 | anon_sym_POUND_GT, | |
1190 | ACTIONS(79), 1, | |
1191 | sym__newline, | |
1192 | STATE(30), 1, | |
1193 | sym_type_annotation, | |
1194 | STATE(62), 1, | |
1195 | sym_parameter_list, | |
1196 | STATE(111), 1, | |
1197 | sym_return_statement, | |
1198 | STATE(137), 1, | |
1199 | sym_throw_statement, | |
1200 | [436] = 8, | |
1201 | ACTIONS(67), 1, | |
1202 | anon_sym_LPAREN, | |
1203 | ACTIONS(69), 1, | |
1204 | anon_sym_EQ_GT, | |
1205 | ACTIONS(73), 1, | |
1206 | anon_sym_POUND_GT, | |
1207 | ACTIONS(75), 1, | |
1208 | sym__newline, | |
1209 | STATE(28), 1, | |
1210 | sym_parameter_list, | |
1211 | STATE(55), 1, | |
1212 | sym_return_statement, | |
1213 | STATE(94), 1, | |
1214 | sym_throw_statement, | |
1215 | ACTIONS(81), 2, | |
1216 | anon_sym_DOT, | |
1217 | anon_sym_COMMA, | |
1218 | [462] = 7, | |
1219 | ACTIONS(67), 1, | |
1220 | anon_sym_LPAREN, | |
1221 | ACTIONS(69), 1, | |
1222 | anon_sym_EQ_GT, | |
1223 | ACTIONS(75), 1, | |
1224 | sym__newline, | |
1225 | STATE(29), 1, | |
1226 | sym_parameter_list, | |
1227 | STATE(66), 1, | |
1228 | sym_return_statement, | |
1229 | STATE(94), 1, | |
1230 | sym_throw_statement, | |
1231 | ACTIONS(81), 3, | |
1232 | anon_sym_DOT, | |
1233 | anon_sym_POUND_GT, | |
1234 | anon_sym_COMMA, | |
1235 | [486] = 7, | |
1236 | ACTIONS(5), 1, | |
1237 | anon_sym_SLASH_SLASH, | |
1238 | ACTIONS(7), 1, | |
1239 | sym__label, | |
1240 | ACTIONS(83), 1, | |
1241 | ts_builtin_sym_end, | |
1242 | STATE(22), 1, | |
1243 | aux_sym_source_file_repeat2, | |
1244 | STATE(115), 1, | |
1245 | sym_identifier, | |
1246 | STATE(140), 1, | |
1247 | sym_entry, | |
1248 | STATE(53), 2, | |
1249 | sym_definition, | |
1250 | sym_comment, | |
1251 | [509] = 7, | |
1252 | ACTIONS(85), 1, | |
1253 | ts_builtin_sym_end, | |
1254 | ACTIONS(87), 1, | |
1255 | anon_sym_SLASH_SLASH, | |
1256 | ACTIONS(90), 1, | |
1257 | sym__label, | |
1258 | STATE(22), 1, | |
1259 | aux_sym_source_file_repeat2, | |
1260 | STATE(115), 1, | |
1261 | sym_identifier, | |
1262 | STATE(140), 1, | |
1263 | sym_entry, | |
1264 | STATE(53), 2, | |
1265 | sym_definition, | |
1266 | sym_comment, | |
1267 | [532] = 4, | |
1268 | ACTIONS(59), 1, | |
1269 | anon_sym_EQ_GT, | |
1270 | STATE(44), 1, | |
1271 | sym_return_statement, | |
1272 | STATE(72), 1, | |
1273 | sym_throw_statement, | |
1274 | ACTIONS(75), 5, | |
1275 | anon_sym_DOT, | |
1276 | anon_sym_RPAREN, | |
1277 | anon_sym_POUND_GT, | |
1278 | anon_sym_COMMA, | |
1279 | anon_sym_GT, | |
1280 | [549] = 8, | |
1281 | ACTIONS(67), 1, | |
1282 | anon_sym_LPAREN, | |
1283 | ACTIONS(69), 1, | |
1284 | anon_sym_EQ_GT, | |
1285 | ACTIONS(75), 1, | |
1286 | sym__newline, | |
1287 | ACTIONS(77), 1, | |
1288 | anon_sym_POUND_GT, | |
1289 | ACTIONS(81), 1, | |
1290 | anon_sym_DOT, | |
1291 | STATE(38), 1, | |
1292 | sym_parameter_list, | |
1293 | STATE(94), 1, | |
1294 | sym_throw_statement, | |
1295 | STATE(95), 1, | |
1296 | sym_return_statement, | |
1297 | [574] = 4, | |
1298 | ACTIONS(59), 1, | |
1299 | anon_sym_EQ_GT, | |
1300 | STATE(34), 1, | |
1301 | sym_return_statement, | |
1302 | STATE(81), 1, | |
1303 | sym_throw_statement, | |
1304 | ACTIONS(93), 5, | |
1305 | anon_sym_DOT, | |
1306 | anon_sym_RPAREN, | |
1307 | anon_sym_POUND_GT, | |
1308 | anon_sym_COMMA, | |
1309 | anon_sym_GT, | |
1310 | [591] = 5, | |
1311 | ACTIONS(59), 1, | |
1312 | anon_sym_EQ_GT, | |
1313 | ACTIONS(61), 1, | |
1314 | anon_sym_POUND_GT, | |
1315 | STATE(40), 1, | |
1316 | sym_return_statement, | |
1317 | STATE(81), 1, | |
1318 | sym_throw_statement, | |
1319 | ACTIONS(93), 4, | |
1320 | anon_sym_DOT, | |
1321 | anon_sym_RPAREN, | |
1322 | anon_sym_COMMA, | |
1323 | anon_sym_GT, | |
1324 | [610] = 5, | |
1325 | ACTIONS(59), 1, | |
1326 | anon_sym_EQ_GT, | |
1327 | ACTIONS(61), 1, | |
1328 | anon_sym_POUND_GT, | |
1329 | STATE(35), 1, | |
1330 | sym_return_statement, | |
1331 | STATE(72), 1, | |
1332 | sym_throw_statement, | |
1333 | ACTIONS(75), 4, | |
1334 | anon_sym_DOT, | |
1335 | anon_sym_RPAREN, | |
1336 | anon_sym_COMMA, | |
1337 | anon_sym_GT, | |
1338 | [629] = 6, | |
1339 | ACTIONS(69), 1, | |
1340 | anon_sym_EQ_GT, | |
1341 | ACTIONS(73), 1, | |
1342 | anon_sym_POUND_GT, | |
1343 | ACTIONS(93), 1, | |
1344 | sym__newline, | |
1345 | STATE(54), 1, | |
1346 | sym_return_statement, | |
1347 | STATE(101), 1, | |
1348 | sym_throw_statement, | |
1349 | ACTIONS(95), 2, | |
1350 | anon_sym_DOT, | |
1351 | anon_sym_COMMA, | |
1352 | [649] = 5, | |
1353 | ACTIONS(69), 1, | |
1354 | anon_sym_EQ_GT, | |
1355 | ACTIONS(93), 1, | |
1356 | sym__newline, | |
1357 | STATE(50), 1, | |
1358 | sym_return_statement, | |
1359 | STATE(101), 1, | |
1360 | sym_throw_statement, | |
1361 | ACTIONS(95), 3, | |
1362 | anon_sym_DOT, | |
1363 | anon_sym_POUND_GT, | |
1364 | anon_sym_COMMA, | |
1365 | [667] = 7, | |
1366 | ACTIONS(67), 1, | |
1367 | anon_sym_LPAREN, | |
1368 | ACTIONS(69), 1, | |
1369 | anon_sym_EQ_GT, | |
1370 | ACTIONS(77), 1, | |
1371 | anon_sym_POUND_GT, | |
1372 | ACTIONS(97), 1, | |
1373 | sym__newline, | |
1374 | STATE(67), 1, | |
1375 | sym_parameter_list, | |
1376 | STATE(110), 1, | |
1377 | sym_return_statement, | |
1378 | STATE(138), 1, | |
1379 | sym_throw_statement, | |
1380 | [689] = 5, | |
1381 | ACTIONS(69), 1, | |
1382 | anon_sym_EQ_GT, | |
1383 | ACTIONS(75), 1, | |
1384 | sym__newline, | |
1385 | STATE(66), 1, | |
1386 | sym_return_statement, | |
1387 | STATE(94), 1, | |
1388 | sym_throw_statement, | |
1389 | ACTIONS(81), 3, | |
1390 | anon_sym_DOT, | |
1391 | anon_sym_POUND_GT, | |
1392 | anon_sym_COMMA, | |
1393 | [707] = 1, | |
1394 | ACTIONS(99), 7, | |
1395 | anon_sym_DOT, | |
1396 | anon_sym_LPAREN, | |
1397 | anon_sym_RPAREN, | |
1398 | anon_sym_EQ_GT, | |
1399 | anon_sym_POUND_GT, | |
1400 | anon_sym_COMMA, | |
1401 | anon_sym_GT, | |
1402 | [717] = 6, | |
1403 | ACTIONS(69), 1, | |
1404 | anon_sym_EQ_GT, | |
1405 | ACTIONS(73), 1, | |
1406 | anon_sym_POUND_GT, | |
1407 | ACTIONS(75), 1, | |
1408 | sym__newline, | |
1409 | STATE(55), 1, | |
1410 | sym_return_statement, | |
1411 | STATE(94), 1, | |
1412 | sym_throw_statement, | |
1413 | ACTIONS(81), 2, | |
1414 | anon_sym_DOT, | |
1415 | anon_sym_COMMA, | |
1416 | [737] = 2, | |
1417 | STATE(70), 1, | |
1418 | sym_throw_statement, | |
1419 | ACTIONS(101), 5, | |
1420 | anon_sym_DOT, | |
1421 | anon_sym_RPAREN, | |
1422 | anon_sym_POUND_GT, | |
1423 | anon_sym_COMMA, | |
1424 | anon_sym_GT, | |
1425 | [748] = 3, | |
1426 | ACTIONS(61), 1, | |
1427 | anon_sym_POUND_GT, | |
1428 | STATE(81), 1, | |
1429 | sym_throw_statement, | |
1430 | ACTIONS(93), 4, | |
1431 | anon_sym_DOT, | |
1432 | anon_sym_RPAREN, | |
1433 | anon_sym_COMMA, | |
1434 | anon_sym_GT, | |
1435 | [761] = 1, | |
1436 | ACTIONS(103), 6, | |
1437 | anon_sym_DOT, | |
1438 | anon_sym_RPAREN, | |
1439 | anon_sym_EQ_GT, | |
1440 | anon_sym_POUND_GT, | |
1441 | anon_sym_COMMA, | |
1442 | anon_sym_GT, | |
1443 | [770] = 1, | |
1444 | ACTIONS(105), 6, | |
1445 | anon_sym_DOT, | |
1446 | anon_sym_RPAREN, | |
1447 | anon_sym_EQ_GT, | |
1448 | anon_sym_POUND_GT, | |
1449 | anon_sym_COMMA, | |
1450 | anon_sym_GT, | |
1451 | [779] = 6, | |
1452 | ACTIONS(69), 1, | |
1453 | anon_sym_EQ_GT, | |
1454 | ACTIONS(77), 1, | |
1455 | anon_sym_POUND_GT, | |
1456 | ACTIONS(93), 1, | |
1457 | sym__newline, | |
1458 | ACTIONS(95), 1, | |
1459 | anon_sym_DOT, | |
1460 | STATE(101), 1, | |
1461 | sym_throw_statement, | |
1462 | STATE(105), 1, | |
1463 | sym_return_statement, | |
1464 | [798] = 3, | |
1465 | ACTIONS(61), 1, | |
1466 | anon_sym_POUND_GT, | |
1467 | STATE(72), 1, | |
1468 | sym_throw_statement, | |
1469 | ACTIONS(75), 4, | |
1470 | anon_sym_DOT, | |
1471 | anon_sym_RPAREN, | |
1472 | anon_sym_COMMA, | |
1473 | anon_sym_GT, | |
1474 | [811] = 3, | |
1475 | ACTIONS(61), 1, | |
1476 | anon_sym_POUND_GT, | |
1477 | STATE(70), 1, | |
1478 | sym_throw_statement, | |
1479 | ACTIONS(101), 4, | |
1480 | anon_sym_DOT, | |
1481 | anon_sym_RPAREN, | |
1482 | anon_sym_COMMA, | |
1483 | anon_sym_GT, | |
1484 | [824] = 2, | |
1485 | STATE(48), 1, | |
1486 | aux_sym__entry_list_repeat1, | |
1487 | ACTIONS(107), 5, | |
1488 | anon_sym_DOT, | |
1489 | anon_sym_RPAREN, | |
1490 | anon_sym_POUND_GT, | |
1491 | anon_sym_COMMA, | |
1492 | anon_sym_GT, | |
1493 | [835] = 2, | |
1494 | STATE(72), 1, | |
1495 | sym_throw_statement, | |
1496 | ACTIONS(75), 5, | |
1497 | anon_sym_DOT, | |
1498 | anon_sym_RPAREN, | |
1499 | anon_sym_POUND_GT, | |
1500 | anon_sym_COMMA, | |
1501 | anon_sym_GT, | |
1502 | [846] = 3, | |
1503 | ACTIONS(109), 1, | |
1504 | anon_sym_DOT, | |
1505 | STATE(47), 1, | |
1506 | aux_sym_entry_repeat1, | |
1507 | ACTIONS(111), 4, | |
1508 | anon_sym_RPAREN, | |
1509 | anon_sym_POUND_GT, | |
1510 | anon_sym_COMMA, | |
1511 | anon_sym_GT, | |
1512 | [859] = 2, | |
1513 | STATE(81), 1, | |
1514 | sym_throw_statement, | |
1515 | ACTIONS(93), 5, | |
1516 | anon_sym_DOT, | |
1517 | anon_sym_RPAREN, | |
1518 | anon_sym_POUND_GT, | |
1519 | anon_sym_COMMA, | |
1520 | anon_sym_GT, | |
1521 | [870] = 2, | |
1522 | ACTIONS(99), 1, | |
1523 | sym__newline, | |
1524 | ACTIONS(113), 5, | |
1525 | anon_sym_DOT, | |
1526 | anon_sym_LPAREN, | |
1527 | anon_sym_EQ_GT, | |
1528 | anon_sym_POUND_GT, | |
1529 | anon_sym_COMMA, | |
1530 | [881] = 6, | |
1531 | ACTIONS(69), 1, | |
1532 | anon_sym_EQ_GT, | |
1533 | ACTIONS(75), 1, | |
1534 | sym__newline, | |
1535 | ACTIONS(77), 1, | |
1536 | anon_sym_POUND_GT, | |
1537 | ACTIONS(81), 1, | |
1538 | anon_sym_DOT, | |
1539 | STATE(94), 1, | |
1540 | sym_throw_statement, | |
1541 | STATE(95), 1, | |
1542 | sym_return_statement, | |
1543 | [900] = 3, | |
1544 | ACTIONS(115), 1, | |
1545 | anon_sym_DOT, | |
1546 | STATE(47), 1, | |
1547 | aux_sym_entry_repeat1, | |
1548 | ACTIONS(118), 4, | |
1549 | anon_sym_RPAREN, | |
1550 | anon_sym_POUND_GT, | |
1551 | anon_sym_COMMA, | |
1552 | anon_sym_GT, | |
1553 | [913] = 3, | |
1554 | ACTIONS(122), 1, | |
1555 | anon_sym_COMMA, | |
1556 | STATE(48), 1, | |
1557 | aux_sym__entry_list_repeat1, | |
1558 | ACTIONS(120), 4, | |
1559 | anon_sym_DOT, | |
1560 | anon_sym_RPAREN, | |
1561 | anon_sym_POUND_GT, | |
1562 | anon_sym_GT, | |
1563 | [926] = 3, | |
1564 | ACTIONS(109), 1, | |
1565 | anon_sym_DOT, | |
1566 | STATE(43), 1, | |
1567 | aux_sym_entry_repeat1, | |
1568 | ACTIONS(125), 4, | |
1569 | anon_sym_RPAREN, | |
1570 | anon_sym_POUND_GT, | |
1571 | anon_sym_COMMA, | |
1572 | anon_sym_GT, | |
1573 | [939] = 3, | |
1574 | ACTIONS(101), 1, | |
1575 | sym__newline, | |
1576 | STATE(104), 1, | |
1577 | sym_throw_statement, | |
1578 | ACTIONS(127), 3, | |
1579 | anon_sym_DOT, | |
1580 | anon_sym_POUND_GT, | |
1581 | anon_sym_COMMA, | |
1582 | [951] = 3, | |
1583 | ACTIONS(129), 1, | |
1584 | anon_sym_COMMA, | |
1585 | STATE(51), 1, | |
1586 | aux_sym__entry_list_repeat1, | |
1587 | ACTIONS(120), 3, | |
1588 | anon_sym_DOT, | |
1589 | anon_sym_RPAREN, | |
1590 | anon_sym_GT, | |
1591 | [963] = 3, | |
1592 | ACTIONS(107), 1, | |
1593 | sym__newline, | |
1594 | STATE(63), 1, | |
1595 | aux_sym__entry_list_repeat1, | |
1596 | ACTIONS(132), 3, | |
1597 | anon_sym_DOT, | |
1598 | anon_sym_POUND_GT, | |
1599 | anon_sym_COMMA, | |
1600 | [975] = 4, | |
1601 | ACTIONS(134), 1, | |
1602 | ts_builtin_sym_end, | |
1603 | ACTIONS(138), 1, | |
1604 | sym__newline, | |
1605 | STATE(60), 1, | |
1606 | aux_sym_source_file_repeat1, | |
1607 | ACTIONS(136), 2, | |
1608 | anon_sym_SLASH_SLASH, | |
1609 | sym__label, | |
1610 | [989] = 4, | |
1611 | ACTIONS(73), 1, | |
1612 | anon_sym_POUND_GT, | |
1613 | ACTIONS(101), 1, | |
1614 | sym__newline, | |
1615 | STATE(104), 1, | |
1616 | sym_throw_statement, | |
1617 | ACTIONS(127), 2, | |
1618 | anon_sym_DOT, | |
1619 | anon_sym_COMMA, | |
1620 | [1003] = 4, | |
1621 | ACTIONS(73), 1, | |
1622 | anon_sym_POUND_GT, | |
1623 | ACTIONS(93), 1, | |
1624 | sym__newline, | |
1625 | STATE(101), 1, | |
1626 | sym_throw_statement, | |
1627 | ACTIONS(95), 2, | |
1628 | anon_sym_DOT, | |
1629 | anon_sym_COMMA, | |
1630 | [1017] = 4, | |
1631 | ACTIONS(142), 1, | |
1632 | anon_sym_COMMA, | |
1633 | ACTIONS(144), 1, | |
1634 | sym__newline, | |
1635 | STATE(59), 1, | |
1636 | aux_sym__entry_list_repeat1, | |
1637 | ACTIONS(140), 2, | |
1638 | anon_sym_DOT, | |
1639 | anon_sym_POUND_GT, | |
1640 | [1031] = 4, | |
1641 | ACTIONS(73), 1, | |
1642 | anon_sym_POUND_GT, | |
1643 | ACTIONS(75), 1, | |
1644 | sym__newline, | |
1645 | STATE(94), 1, | |
1646 | sym_throw_statement, | |
1647 | ACTIONS(81), 2, | |
1648 | anon_sym_DOT, | |
1649 | anon_sym_COMMA, | |
1650 | [1045] = 4, | |
1651 | ACTIONS(125), 1, | |
1652 | sym__newline, | |
1653 | ACTIONS(146), 1, | |
1654 | anon_sym_DOT, | |
1655 | STATE(78), 1, | |
1656 | aux_sym_entry_repeat1, | |
1657 | ACTIONS(148), 2, | |
1658 | anon_sym_POUND_GT, | |
1659 | anon_sym_COMMA, | |
1660 | [1059] = 4, | |
1661 | ACTIONS(107), 1, | |
1662 | sym__newline, | |
1663 | ACTIONS(142), 1, | |
1664 | anon_sym_COMMA, | |
1665 | STATE(63), 1, | |
1666 | aux_sym__entry_list_repeat1, | |
1667 | ACTIONS(132), 2, | |
1668 | anon_sym_DOT, | |
1669 | anon_sym_POUND_GT, | |
1670 | [1073] = 4, | |
1671 | ACTIONS(85), 1, | |
1672 | ts_builtin_sym_end, | |
1673 | ACTIONS(152), 1, | |
1674 | sym__newline, | |
1675 | STATE(79), 1, | |
1676 | aux_sym_source_file_repeat1, | |
1677 | ACTIONS(150), 2, | |
1678 | anon_sym_SLASH_SLASH, | |
1679 | sym__label, | |
1680 | [1087] = 2, | |
1681 | ACTIONS(103), 1, | |
1682 | sym__newline, | |
1683 | ACTIONS(154), 4, | |
1684 | anon_sym_DOT, | |
1685 | anon_sym_EQ_GT, | |
1686 | anon_sym_POUND_GT, | |
1687 | anon_sym_COMMA, | |
1688 | [1097] = 5, | |
1689 | ACTIONS(69), 1, | |
1690 | anon_sym_EQ_GT, | |
1691 | ACTIONS(77), 1, | |
1692 | anon_sym_POUND_GT, | |
1693 | ACTIONS(97), 1, | |
1694 | sym__newline, | |
1695 | STATE(110), 1, | |
1696 | sym_return_statement, | |
1697 | STATE(138), 1, | |
1698 | sym_throw_statement, | |
1699 | [1113] = 4, | |
1700 | ACTIONS(120), 1, | |
1701 | sym__newline, | |
1702 | ACTIONS(158), 1, | |
1703 | anon_sym_COMMA, | |
1704 | STATE(63), 1, | |
1705 | aux_sym__entry_list_repeat1, | |
1706 | ACTIONS(156), 2, | |
1707 | anon_sym_DOT, | |
1708 | anon_sym_POUND_GT, | |
1709 | [1127] = 2, | |
1710 | STATE(51), 1, | |
1711 | aux_sym__entry_list_repeat1, | |
1712 | ACTIONS(107), 4, | |
1713 | anon_sym_DOT, | |
1714 | anon_sym_RPAREN, | |
1715 | anon_sym_COMMA, | |
1716 | anon_sym_GT, | |
1717 | [1137] = 3, | |
1718 | ACTIONS(161), 1, | |
1719 | anon_sym_DOT, | |
1720 | STATE(65), 1, | |
1721 | aux_sym_entry_repeat1, | |
1722 | ACTIONS(118), 3, | |
1723 | anon_sym_RPAREN, | |
1724 | anon_sym_COMMA, | |
1725 | anon_sym_GT, | |
1726 | [1149] = 3, | |
1727 | ACTIONS(93), 1, | |
1728 | sym__newline, | |
1729 | STATE(101), 1, | |
1730 | sym_throw_statement, | |
1731 | ACTIONS(95), 3, | |
1732 | anon_sym_DOT, | |
1733 | anon_sym_POUND_GT, | |
1734 | anon_sym_COMMA, | |
1735 | [1161] = 5, | |
1736 | ACTIONS(69), 1, | |
1737 | anon_sym_EQ_GT, | |
1738 | ACTIONS(77), 1, | |
1739 | anon_sym_POUND_GT, | |
1740 | ACTIONS(164), 1, | |
1741 | sym__newline, | |
1742 | STATE(116), 1, | |
1743 | sym_return_statement, | |
1744 | STATE(139), 1, | |
1745 | sym_throw_statement, | |
1746 | [1177] = 3, | |
1747 | ACTIONS(166), 1, | |
1748 | anon_sym_DOT, | |
1749 | STATE(65), 1, | |
1750 | aux_sym_entry_repeat1, | |
1751 | ACTIONS(111), 3, | |
1752 | anon_sym_RPAREN, | |
1753 | anon_sym_COMMA, | |
1754 | anon_sym_GT, | |
1755 | [1189] = 3, | |
1756 | ACTIONS(75), 1, | |
1757 | sym__newline, | |
1758 | STATE(94), 1, | |
1759 | sym_throw_statement, | |
1760 | ACTIONS(81), 3, | |
1761 | anon_sym_DOT, | |
1762 | anon_sym_POUND_GT, | |
1763 | anon_sym_COMMA, | |
1764 | [1201] = 1, | |
1765 | ACTIONS(168), 5, | |
1766 | anon_sym_DOT, | |
1767 | anon_sym_RPAREN, | |
1768 | anon_sym_POUND_GT, | |
1769 | anon_sym_COMMA, | |
1770 | anon_sym_GT, | |
1771 | [1209] = 3, | |
1772 | ACTIONS(166), 1, | |
1773 | anon_sym_DOT, | |
1774 | STATE(68), 1, | |
1775 | aux_sym_entry_repeat1, | |
1776 | ACTIONS(125), 3, | |
1777 | anon_sym_RPAREN, | |
1778 | anon_sym_COMMA, | |
1779 | anon_sym_GT, | |
1780 | [1221] = 1, | |
1781 | ACTIONS(93), 5, | |
1782 | anon_sym_DOT, | |
1783 | anon_sym_RPAREN, | |
1784 | anon_sym_POUND_GT, | |
1785 | anon_sym_COMMA, | |
1786 | anon_sym_GT, | |
1787 | [1229] = 1, | |
1788 | ACTIONS(120), 5, | |
1789 | anon_sym_DOT, | |
1790 | anon_sym_RPAREN, | |
1791 | anon_sym_POUND_GT, | |
1792 | anon_sym_COMMA, | |
1793 | anon_sym_GT, | |
1794 | [1237] = 2, | |
1795 | ACTIONS(105), 1, | |
1796 | sym__newline, | |
1797 | ACTIONS(170), 4, | |
1798 | anon_sym_DOT, | |
1799 | anon_sym_EQ_GT, | |
1800 | anon_sym_POUND_GT, | |
1801 | anon_sym_COMMA, | |
1802 | [1247] = 1, | |
1803 | ACTIONS(75), 5, | |
1804 | anon_sym_DOT, | |
1805 | anon_sym_RPAREN, | |
1806 | anon_sym_POUND_GT, | |
1807 | anon_sym_COMMA, | |
1808 | anon_sym_GT, | |
1809 | [1255] = 1, | |
1810 | ACTIONS(118), 5, | |
1811 | anon_sym_DOT, | |
1812 | anon_sym_RPAREN, | |
1813 | anon_sym_POUND_GT, | |
1814 | anon_sym_COMMA, | |
1815 | anon_sym_GT, | |
1816 | [1263] = 4, | |
1817 | ACTIONS(118), 1, | |
1818 | sym__newline, | |
1819 | ACTIONS(172), 1, | |
1820 | anon_sym_DOT, | |
1821 | STATE(77), 1, | |
1822 | aux_sym_entry_repeat1, | |
1823 | ACTIONS(175), 2, | |
1824 | anon_sym_POUND_GT, | |
1825 | anon_sym_COMMA, | |
1826 | [1277] = 4, | |
1827 | ACTIONS(111), 1, | |
1828 | sym__newline, | |
1829 | ACTIONS(146), 1, | |
1830 | anon_sym_DOT, | |
1831 | STATE(77), 1, | |
1832 | aux_sym_entry_repeat1, | |
1833 | ACTIONS(177), 2, | |
1834 | anon_sym_POUND_GT, | |
1835 | anon_sym_COMMA, | |
1836 | [1291] = 4, | |
1837 | ACTIONS(179), 1, | |
1838 | ts_builtin_sym_end, | |
1839 | ACTIONS(183), 1, | |
1840 | sym__newline, | |
1841 | STATE(79), 1, | |
1842 | aux_sym_source_file_repeat1, | |
1843 | ACTIONS(181), 2, | |
1844 | anon_sym_SLASH_SLASH, | |
1845 | sym__label, | |
1846 | [1305] = 1, | |
1847 | ACTIONS(186), 5, | |
1848 | anon_sym_DOT, | |
1849 | anon_sym_RPAREN, | |
1850 | anon_sym_POUND_GT, | |
1851 | anon_sym_COMMA, | |
1852 | anon_sym_GT, | |
1853 | [1313] = 1, | |
1854 | ACTIONS(101), 5, | |
1855 | anon_sym_DOT, | |
1856 | anon_sym_RPAREN, | |
1857 | anon_sym_POUND_GT, | |
1858 | anon_sym_COMMA, | |
1859 | anon_sym_GT, | |
1860 | [1321] = 1, | |
1861 | ACTIONS(188), 5, | |
1862 | anon_sym_DOT, | |
1863 | anon_sym_RPAREN, | |
1864 | anon_sym_POUND_GT, | |
1865 | anon_sym_COMMA, | |
1866 | anon_sym_GT, | |
1867 | [1329] = 2, | |
1868 | ACTIONS(188), 1, | |
1869 | sym__newline, | |
1870 | ACTIONS(190), 3, | |
1871 | anon_sym_DOT, | |
1872 | anon_sym_POUND_GT, | |
1873 | anon_sym_COMMA, | |
1874 | [1338] = 2, | |
1875 | ACTIONS(186), 1, | |
1876 | sym__newline, | |
1877 | ACTIONS(192), 3, | |
1878 | anon_sym_DOT, | |
1879 | anon_sym_POUND_GT, | |
1880 | anon_sym_COMMA, | |
1881 | [1347] = 4, | |
1882 | ACTIONS(125), 1, | |
1883 | sym__newline, | |
1884 | ACTIONS(148), 1, | |
1885 | anon_sym_COMMA, | |
1886 | ACTIONS(194), 1, | |
1887 | anon_sym_DOT, | |
1888 | STATE(90), 1, | |
1889 | aux_sym_entry_repeat1, | |
1890 | [1360] = 4, | |
1891 | ACTIONS(196), 1, | |
1892 | anon_sym_RPAREN, | |
1893 | ACTIONS(198), 1, | |
1894 | sym__label, | |
1895 | STATE(108), 1, | |
1896 | sym_identifier, | |
1897 | STATE(135), 1, | |
1898 | sym__identifier_list, | |
1899 | [1373] = 4, | |
1900 | ACTIONS(118), 1, | |
1901 | sym__newline, | |
1902 | ACTIONS(175), 1, | |
1903 | anon_sym_COMMA, | |
1904 | ACTIONS(200), 1, | |
1905 | anon_sym_DOT, | |
1906 | STATE(87), 1, | |
1907 | aux_sym_entry_repeat1, | |
1908 | [1386] = 2, | |
1909 | ACTIONS(118), 1, | |
1910 | sym__newline, | |
1911 | ACTIONS(175), 3, | |
1912 | anon_sym_DOT, | |
1913 | anon_sym_POUND_GT, | |
1914 | anon_sym_COMMA, | |
1915 | [1395] = 2, | |
1916 | ACTIONS(120), 1, | |
1917 | sym__newline, | |
1918 | ACTIONS(156), 3, | |
1919 | anon_sym_DOT, | |
1920 | anon_sym_POUND_GT, | |
1921 | anon_sym_COMMA, | |
1922 | [1404] = 4, | |
1923 | ACTIONS(111), 1, | |
1924 | sym__newline, | |
1925 | ACTIONS(177), 1, | |
1926 | anon_sym_COMMA, | |
1927 | ACTIONS(194), 1, | |
1928 | anon_sym_DOT, | |
1929 | STATE(87), 1, | |
1930 | aux_sym_entry_repeat1, | |
1931 | [1417] = 4, | |
1932 | ACTIONS(198), 1, | |
1933 | sym__label, | |
1934 | STATE(71), 1, | |
1935 | sym_identifier, | |
1936 | STATE(123), 1, | |
1937 | sym_entry, | |
1938 | STATE(136), 1, | |
1939 | sym__entry_list, | |
1940 | [1430] = 3, | |
1941 | ACTIONS(107), 1, | |
1942 | sym__newline, | |
1943 | STATE(96), 1, | |
1944 | aux_sym__entry_list_repeat1, | |
1945 | ACTIONS(132), 2, | |
1946 | anon_sym_DOT, | |
1947 | anon_sym_COMMA, | |
1948 | [1441] = 4, | |
1949 | ACTIONS(203), 1, | |
1950 | sym__label, | |
1951 | STATE(83), 1, | |
1952 | sym__entry_list, | |
1953 | STATE(85), 1, | |
1954 | sym_identifier, | |
1955 | STATE(100), 1, | |
1956 | sym_entry, | |
1957 | [1454] = 2, | |
1958 | ACTIONS(93), 1, | |
1959 | sym__newline, | |
1960 | ACTIONS(95), 3, | |
1961 | anon_sym_DOT, | |
1962 | anon_sym_POUND_GT, | |
1963 | anon_sym_COMMA, | |
1964 | [1463] = 4, | |
1965 | ACTIONS(77), 1, | |
1966 | anon_sym_POUND_GT, | |
1967 | ACTIONS(93), 1, | |
1968 | sym__newline, | |
1969 | ACTIONS(95), 1, | |
1970 | anon_sym_DOT, | |
1971 | STATE(101), 1, | |
1972 | sym_throw_statement, | |
1973 | [1476] = 4, | |
1974 | ACTIONS(120), 1, | |
1975 | sym__newline, | |
1976 | ACTIONS(156), 1, | |
1977 | anon_sym_DOT, | |
1978 | ACTIONS(205), 1, | |
1979 | anon_sym_COMMA, | |
1980 | STATE(96), 1, | |
1981 | aux_sym__entry_list_repeat1, | |
1982 | [1489] = 4, | |
1983 | ACTIONS(198), 1, | |
1984 | sym__label, | |
1985 | STATE(71), 1, | |
1986 | sym_identifier, | |
1987 | STATE(123), 1, | |
1988 | sym_entry, | |
1989 | STATE(143), 1, | |
1990 | sym__entry_list, | |
1991 | [1502] = 3, | |
1992 | ACTIONS(198), 1, | |
1993 | sym__label, | |
1994 | STATE(71), 1, | |
1995 | sym_identifier, | |
1996 | STATE(82), 2, | |
1997 | sym_entry, | |
1998 | sym__entry_list, | |
1999 | [1513] = 4, | |
2000 | ACTIONS(107), 1, | |
2001 | sym__newline, | |
2002 | ACTIONS(132), 1, | |
2003 | anon_sym_DOT, | |
2004 | ACTIONS(208), 1, | |
2005 | anon_sym_COMMA, | |
2006 | STATE(96), 1, | |
2007 | aux_sym__entry_list_repeat1, | |
2008 | [1526] = 4, | |
2009 | ACTIONS(140), 1, | |
2010 | anon_sym_DOT, | |
2011 | ACTIONS(144), 1, | |
2012 | sym__newline, | |
2013 | ACTIONS(208), 1, | |
2014 | anon_sym_COMMA, | |
2015 | STATE(99), 1, | |
2016 | aux_sym__entry_list_repeat1, | |
2017 | [1539] = 2, | |
2018 | ACTIONS(101), 1, | |
2019 | sym__newline, | |
2020 | ACTIONS(127), 3, | |
2021 | anon_sym_DOT, | |
2022 | anon_sym_POUND_GT, | |
2023 | anon_sym_COMMA, | |
2024 | [1548] = 4, | |
2025 | ACTIONS(75), 1, | |
2026 | sym__newline, | |
2027 | ACTIONS(77), 1, | |
2028 | anon_sym_POUND_GT, | |
2029 | ACTIONS(81), 1, | |
2030 | anon_sym_DOT, | |
2031 | STATE(94), 1, | |
2032 | sym_throw_statement, | |
2033 | [1561] = 2, | |
2034 | ACTIONS(75), 1, | |
2035 | sym__newline, | |
2036 | ACTIONS(81), 3, | |
2037 | anon_sym_DOT, | |
2038 | anon_sym_POUND_GT, | |
2039 | anon_sym_COMMA, | |
2040 | [1570] = 2, | |
2041 | ACTIONS(168), 1, | |
2042 | sym__newline, | |
2043 | ACTIONS(210), 3, | |
2044 | anon_sym_DOT, | |
2045 | anon_sym_POUND_GT, | |
2046 | anon_sym_COMMA, | |
2047 | [1579] = 4, | |
2048 | ACTIONS(77), 1, | |
2049 | anon_sym_POUND_GT, | |
2050 | ACTIONS(101), 1, | |
2051 | sym__newline, | |
2052 | ACTIONS(127), 1, | |
2053 | anon_sym_DOT, | |
2054 | STATE(104), 1, | |
2055 | sym_throw_statement, | |
2056 | [1592] = 3, | |
2057 | ACTIONS(203), 1, | |
2058 | sym__label, | |
2059 | STATE(85), 1, | |
2060 | sym_identifier, | |
2061 | STATE(83), 2, | |
2062 | sym_entry, | |
2063 | sym__entry_list, | |
2064 | [1603] = 4, | |
2065 | ACTIONS(198), 1, | |
2066 | sym__label, | |
2067 | ACTIONS(212), 1, | |
2068 | anon_sym_RPAREN, | |
2069 | STATE(108), 1, | |
2070 | sym_identifier, | |
2071 | STATE(133), 1, | |
2072 | sym__identifier_list, | |
2073 | [1616] = 3, | |
2074 | ACTIONS(214), 1, | |
2075 | anon_sym_RPAREN, | |
2076 | ACTIONS(216), 1, | |
2077 | anon_sym_COMMA, | |
2078 | STATE(119), 1, | |
2079 | aux_sym__identifier_list_repeat1, | |
2080 | [1626] = 3, | |
2081 | ACTIONS(218), 1, | |
2082 | anon_sym_RPAREN, | |
2083 | ACTIONS(220), 1, | |
2084 | anon_sym_COMMA, | |
2085 | STATE(109), 1, | |
2086 | aux_sym__identifier_list_repeat1, | |
2087 | [1636] = 3, | |
2088 | ACTIONS(77), 1, | |
2089 | anon_sym_POUND_GT, | |
2090 | ACTIONS(164), 1, | |
2091 | sym__newline, | |
2092 | STATE(139), 1, | |
2093 | sym_throw_statement, | |
2094 | [1646] = 3, | |
2095 | ACTIONS(77), 1, | |
2096 | anon_sym_POUND_GT, | |
2097 | ACTIONS(97), 1, | |
2098 | sym__newline, | |
2099 | STATE(138), 1, | |
2100 | sym_throw_statement, | |
2101 | [1656] = 3, | |
2102 | ACTIONS(111), 1, | |
2103 | sym__newline, | |
2104 | ACTIONS(223), 1, | |
2105 | anon_sym_DOT, | |
2106 | STATE(124), 1, | |
2107 | aux_sym_entry_repeat1, | |
2108 | [1666] = 3, | |
2109 | ACTIONS(225), 1, | |
2110 | sym__label, | |
2111 | STATE(58), 1, | |
2112 | sym_identifier, | |
2113 | STATE(89), 1, | |
2114 | sym_entry, | |
2115 | [1676] = 3, | |
2116 | ACTIONS(227), 1, | |
2117 | sym__label, | |
2118 | STATE(49), 1, | |
2119 | sym_identifier, | |
2120 | STATE(80), 1, | |
2121 | sym_entry, | |
2122 | [1686] = 3, | |
2123 | ACTIONS(125), 1, | |
2124 | sym__newline, | |
2125 | ACTIONS(223), 1, | |
2126 | anon_sym_DOT, | |
2127 | STATE(112), 1, | |
2128 | aux_sym_entry_repeat1, | |
2129 | [1696] = 3, | |
2130 | ACTIONS(77), 1, | |
2131 | anon_sym_POUND_GT, | |
2132 | ACTIONS(229), 1, | |
2133 | sym__newline, | |
2134 | STATE(141), 1, | |
2135 | sym_throw_statement, | |
2136 | [1706] = 3, | |
2137 | ACTIONS(203), 1, | |
2138 | sym__label, | |
2139 | STATE(85), 1, | |
2140 | sym_identifier, | |
2141 | STATE(89), 1, | |
2142 | sym_entry, | |
2143 | [1716] = 3, | |
2144 | ACTIONS(227), 1, | |
2145 | sym__label, | |
2146 | STATE(49), 1, | |
2147 | sym_identifier, | |
2148 | STATE(73), 1, | |
2149 | sym_entry, | |
2150 | [1726] = 3, | |
2151 | ACTIONS(216), 1, | |
2152 | anon_sym_COMMA, | |
2153 | ACTIONS(231), 1, | |
2154 | anon_sym_RPAREN, | |
2155 | STATE(109), 1, | |
2156 | aux_sym__identifier_list_repeat1, | |
2157 | [1736] = 3, | |
2158 | ACTIONS(107), 1, | |
2159 | anon_sym_GT, | |
2160 | ACTIONS(233), 1, | |
2161 | anon_sym_COMMA, | |
2162 | STATE(51), 1, | |
2163 | aux_sym__entry_list_repeat1, | |
2164 | [1746] = 3, | |
2165 | ACTIONS(225), 1, | |
2166 | sym__label, | |
2167 | STATE(58), 1, | |
2168 | sym_identifier, | |
2169 | STATE(84), 1, | |
2170 | sym_entry, | |
2171 | [1756] = 3, | |
2172 | ACTIONS(198), 1, | |
2173 | sym__label, | |
2174 | STATE(71), 1, | |
2175 | sym_identifier, | |
2176 | STATE(73), 1, | |
2177 | sym_entry, | |
2178 | [1766] = 3, | |
2179 | ACTIONS(144), 1, | |
2180 | anon_sym_GT, | |
2181 | ACTIONS(233), 1, | |
2182 | anon_sym_COMMA, | |
2183 | STATE(120), 1, | |
2184 | aux_sym__entry_list_repeat1, | |
2185 | [1776] = 3, | |
2186 | ACTIONS(118), 1, | |
2187 | sym__newline, | |
2188 | ACTIONS(235), 1, | |
2189 | anon_sym_DOT, | |
2190 | STATE(124), 1, | |
2191 | aux_sym_entry_repeat1, | |
2192 | [1786] = 2, | |
2193 | ACTIONS(198), 1, | |
2194 | sym__label, | |
2195 | STATE(127), 1, | |
2196 | sym_identifier, | |
2197 | [1793] = 2, | |
2198 | ACTIONS(7), 1, | |
2199 | sym__label, | |
2200 | STATE(88), 1, | |
2201 | sym_identifier, | |
2202 | [1800] = 1, | |
2203 | ACTIONS(218), 2, | |
2204 | anon_sym_RPAREN, | |
2205 | anon_sym_COMMA, | |
2206 | [1805] = 2, | |
2207 | ACTIONS(227), 1, | |
2208 | sym__label, | |
2209 | STATE(76), 1, | |
2210 | sym_identifier, | |
2211 | [1812] = 2, | |
2212 | ACTIONS(198), 1, | |
2213 | sym__label, | |
2214 | STATE(76), 1, | |
2215 | sym_identifier, | |
2216 | [1819] = 2, | |
2217 | ACTIONS(203), 1, | |
2218 | sym__label, | |
2219 | STATE(88), 1, | |
2220 | sym_identifier, | |
2221 | [1826] = 2, | |
2222 | ACTIONS(225), 1, | |
2223 | sym__label, | |
2224 | STATE(88), 1, | |
2225 | sym_identifier, | |
2226 | [1833] = 1, | |
2227 | ACTIONS(238), 1, | |
2228 | aux_sym_comment_token1, | |
2229 | [1837] = 1, | |
2230 | ACTIONS(240), 1, | |
2231 | anon_sym_RPAREN, | |
2232 | [1841] = 1, | |
2233 | ACTIONS(242), 1, | |
2234 | sym__newline, | |
2235 | [1845] = 1, | |
2236 | ACTIONS(244), 1, | |
2237 | anon_sym_RPAREN, | |
2238 | [1849] = 1, | |
2239 | ACTIONS(246), 1, | |
2240 | anon_sym_GT, | |
2241 | [1853] = 1, | |
2242 | ACTIONS(97), 1, | |
2243 | sym__newline, | |
2244 | [1857] = 1, | |
2245 | ACTIONS(164), 1, | |
2246 | sym__newline, | |
2247 | [1861] = 1, | |
2248 | ACTIONS(229), 1, | |
2249 | sym__newline, | |
2250 | [1865] = 1, | |
2251 | ACTIONS(248), 1, | |
2252 | sym__newline, | |
2253 | [1869] = 1, | |
2254 | ACTIONS(250), 1, | |
2255 | sym__newline, | |
2256 | [1873] = 1, | |
2257 | ACTIONS(252), 1, | |
2258 | ts_builtin_sym_end, | |
2259 | [1877] = 1, | |
2260 | ACTIONS(254), 1, | |
2261 | anon_sym_GT, | |
2262 | [1881] = 1, | |
2263 | ACTIONS(256), 1, | |
2264 | sym__label, | |
2265 | [1885] = 1, | |
2266 | ACTIONS(258), 1, | |
2267 | sym__label, | |
2268 | }; | |
2269 | ||
2270 | static const uint32_t ts_small_parse_table_map[] = { | |
2271 | [SMALL_STATE(2)] = 0, | |
2272 | [SMALL_STATE(3)] = 31, | |
2273 | [SMALL_STATE(4)] = 62, | |
2274 | [SMALL_STATE(5)] = 93, | |
2275 | [SMALL_STATE(6)] = 112, | |
2276 | [SMALL_STATE(7)] = 131, | |
2277 | [SMALL_STATE(8)] = 150, | |
2278 | [SMALL_STATE(9)] = 169, | |
2279 | [SMALL_STATE(10)] = 188, | |
2280 | [SMALL_STATE(11)] = 207, | |
2281 | [SMALL_STATE(12)] = 238, | |
2282 | [SMALL_STATE(13)] = 267, | |
2283 | [SMALL_STATE(14)] = 297, | |
2284 | [SMALL_STATE(15)] = 329, | |
2285 | [SMALL_STATE(16)] = 354, | |
2286 | [SMALL_STATE(17)] = 377, | |
2287 | [SMALL_STATE(18)] = 408, | |
2288 | [SMALL_STATE(19)] = 436, | |
2289 | [SMALL_STATE(20)] = 462, | |
2290 | [SMALL_STATE(21)] = 486, | |
2291 | [SMALL_STATE(22)] = 509, | |
2292 | [SMALL_STATE(23)] = 532, | |
2293 | [SMALL_STATE(24)] = 549, | |
2294 | [SMALL_STATE(25)] = 574, | |
2295 | [SMALL_STATE(26)] = 591, | |
2296 | [SMALL_STATE(27)] = 610, | |
2297 | [SMALL_STATE(28)] = 629, | |
2298 | [SMALL_STATE(29)] = 649, | |
2299 | [SMALL_STATE(30)] = 667, | |
2300 | [SMALL_STATE(31)] = 689, | |
2301 | [SMALL_STATE(32)] = 707, | |
2302 | [SMALL_STATE(33)] = 717, | |
2303 | [SMALL_STATE(34)] = 737, | |
2304 | [SMALL_STATE(35)] = 748, | |
2305 | [SMALL_STATE(36)] = 761, | |
2306 | [SMALL_STATE(37)] = 770, | |
2307 | [SMALL_STATE(38)] = 779, | |
2308 | [SMALL_STATE(39)] = 798, | |
2309 | [SMALL_STATE(40)] = 811, | |
2310 | [SMALL_STATE(41)] = 824, | |
2311 | [SMALL_STATE(42)] = 835, | |
2312 | [SMALL_STATE(43)] = 846, | |
2313 | [SMALL_STATE(44)] = 859, | |
2314 | [SMALL_STATE(45)] = 870, | |
2315 | [SMALL_STATE(46)] = 881, | |
2316 | [SMALL_STATE(47)] = 900, | |
2317 | [SMALL_STATE(48)] = 913, | |
2318 | [SMALL_STATE(49)] = 926, | |
2319 | [SMALL_STATE(50)] = 939, | |
2320 | [SMALL_STATE(51)] = 951, | |
2321 | [SMALL_STATE(52)] = 963, | |
2322 | [SMALL_STATE(53)] = 975, | |
2323 | [SMALL_STATE(54)] = 989, | |
2324 | [SMALL_STATE(55)] = 1003, | |
2325 | [SMALL_STATE(56)] = 1017, | |
2326 | [SMALL_STATE(57)] = 1031, | |
2327 | [SMALL_STATE(58)] = 1045, | |
2328 | [SMALL_STATE(59)] = 1059, | |
2329 | [SMALL_STATE(60)] = 1073, | |
2330 | [SMALL_STATE(61)] = 1087, | |
2331 | [SMALL_STATE(62)] = 1097, | |
2332 | [SMALL_STATE(63)] = 1113, | |
2333 | [SMALL_STATE(64)] = 1127, | |
2334 | [SMALL_STATE(65)] = 1137, | |
2335 | [SMALL_STATE(66)] = 1149, | |
2336 | [SMALL_STATE(67)] = 1161, | |
2337 | [SMALL_STATE(68)] = 1177, | |
2338 | [SMALL_STATE(69)] = 1189, | |
2339 | [SMALL_STATE(70)] = 1201, | |
2340 | [SMALL_STATE(71)] = 1209, | |
2341 | [SMALL_STATE(72)] = 1221, | |
2342 | [SMALL_STATE(73)] = 1229, | |
2343 | [SMALL_STATE(74)] = 1237, | |
2344 | [SMALL_STATE(75)] = 1247, | |
2345 | [SMALL_STATE(76)] = 1255, | |
2346 | [SMALL_STATE(77)] = 1263, | |
2347 | [SMALL_STATE(78)] = 1277, | |
2348 | [SMALL_STATE(79)] = 1291, | |
2349 | [SMALL_STATE(80)] = 1305, | |
2350 | [SMALL_STATE(81)] = 1313, | |
2351 | [SMALL_STATE(82)] = 1321, | |
2352 | [SMALL_STATE(83)] = 1329, | |
2353 | [SMALL_STATE(84)] = 1338, | |
2354 | [SMALL_STATE(85)] = 1347, | |
2355 | [SMALL_STATE(86)] = 1360, | |
2356 | [SMALL_STATE(87)] = 1373, | |
2357 | [SMALL_STATE(88)] = 1386, | |
2358 | [SMALL_STATE(89)] = 1395, | |
2359 | [SMALL_STATE(90)] = 1404, | |
2360 | [SMALL_STATE(91)] = 1417, | |
2361 | [SMALL_STATE(92)] = 1430, | |
2362 | [SMALL_STATE(93)] = 1441, | |
2363 | [SMALL_STATE(94)] = 1454, | |
2364 | [SMALL_STATE(95)] = 1463, | |
2365 | [SMALL_STATE(96)] = 1476, | |
2366 | [SMALL_STATE(97)] = 1489, | |
2367 | [SMALL_STATE(98)] = 1502, | |
2368 | [SMALL_STATE(99)] = 1513, | |
2369 | [SMALL_STATE(100)] = 1526, | |
2370 | [SMALL_STATE(101)] = 1539, | |
2371 | [SMALL_STATE(102)] = 1548, | |
2372 | [SMALL_STATE(103)] = 1561, | |
2373 | [SMALL_STATE(104)] = 1570, | |
2374 | [SMALL_STATE(105)] = 1579, | |
2375 | [SMALL_STATE(106)] = 1592, | |
2376 | [SMALL_STATE(107)] = 1603, | |
2377 | [SMALL_STATE(108)] = 1616, | |
2378 | [SMALL_STATE(109)] = 1626, | |
2379 | [SMALL_STATE(110)] = 1636, | |
2380 | [SMALL_STATE(111)] = 1646, | |
2381 | [SMALL_STATE(112)] = 1656, | |
2382 | [SMALL_STATE(113)] = 1666, | |
2383 | [SMALL_STATE(114)] = 1676, | |
2384 | [SMALL_STATE(115)] = 1686, | |
2385 | [SMALL_STATE(116)] = 1696, | |
2386 | [SMALL_STATE(117)] = 1706, | |
2387 | [SMALL_STATE(118)] = 1716, | |
2388 | [SMALL_STATE(119)] = 1726, | |
2389 | [SMALL_STATE(120)] = 1736, | |
2390 | [SMALL_STATE(121)] = 1746, | |
2391 | [SMALL_STATE(122)] = 1756, | |
2392 | [SMALL_STATE(123)] = 1766, | |
2393 | [SMALL_STATE(124)] = 1776, | |
2394 | [SMALL_STATE(125)] = 1786, | |
2395 | [SMALL_STATE(126)] = 1793, | |
2396 | [SMALL_STATE(127)] = 1800, | |
2397 | [SMALL_STATE(128)] = 1805, | |
2398 | [SMALL_STATE(129)] = 1812, | |
2399 | [SMALL_STATE(130)] = 1819, | |
2400 | [SMALL_STATE(131)] = 1826, | |
2401 | [SMALL_STATE(132)] = 1833, | |
2402 | [SMALL_STATE(133)] = 1837, | |
2403 | [SMALL_STATE(134)] = 1841, | |
2404 | [SMALL_STATE(135)] = 1845, | |
2405 | [SMALL_STATE(136)] = 1849, | |
2406 | [SMALL_STATE(137)] = 1853, | |
2407 | [SMALL_STATE(138)] = 1857, | |
2408 | [SMALL_STATE(139)] = 1861, | |
2409 | [SMALL_STATE(140)] = 1865, | |
2410 | [SMALL_STATE(141)] = 1869, | |
2411 | [SMALL_STATE(142)] = 1873, | |
2412 | [SMALL_STATE(143)] = 1877, | |
2413 | [SMALL_STATE(144)] = 1881, | |
2414 | [SMALL_STATE(145)] = 1885, | |
2415 | }; | |
2416 | ||
2417 | static const TSParseActionEntry ts_parse_actions[] = { | |
2418 | [0] = {.entry = {.count = 0, .reusable = false}}, | |
2419 | [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), | |
2420 | [3] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), | |
2421 | [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), | |
2422 | [7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), | |
2423 | [9] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_definition, 3), | |
2424 | [11] = {.entry = {.count = 1, .reusable = false}}, SHIFT(144), | |
2425 | [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(132), | |
2426 | [15] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_definition, 3), | |
2427 | [17] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_definition, 2), | |
2428 | [19] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_definition, 2), | |
2429 | [21] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_definition_repeat1, 2), | |
2430 | [23] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_definition_repeat1, 2), SHIFT_REPEAT(144), | |
2431 | [26] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_definition_repeat1, 2), SHIFT_REPEAT(132), | |
2432 | [29] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_definition_repeat1, 2), | |
2433 | [31] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_member, 4), | |
2434 | [33] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_member, 4), | |
2435 | [35] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_member, 7), | |
2436 | [37] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_member, 7), | |
2437 | [39] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_member, 6), | |
2438 | [41] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_member, 6), | |
2439 | [43] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_member, 3), | |
2440 | [45] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_member, 3), | |
2441 | [47] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), | |
2442 | [49] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_comment, 3), | |
2443 | [51] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_member, 5), | |
2444 | [53] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_member, 5), | |
2445 | [55] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_identifier, 1), | |
2446 | [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), | |
2447 | [59] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114), | |
2448 | [61] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), | |
2449 | [63] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), | |
2450 | [65] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_identifier, 1), | |
2451 | [67] = {.entry = {.count = 1, .reusable = false}}, SHIFT(107), | |
2452 | [69] = {.entry = {.count = 1, .reusable = false}}, SHIFT(121), | |
2453 | [71] = {.entry = {.count = 1, .reusable = false}}, SHIFT(97), | |
2454 | [73] = {.entry = {.count = 1, .reusable = false}}, SHIFT(106), | |
2455 | [75] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_identifier, 2), | |
2456 | [77] = {.entry = {.count = 1, .reusable = false}}, SHIFT(93), | |
2457 | [79] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), | |
2458 | [81] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_identifier, 2), | |
2459 | [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), | |
2460 | [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat2, 2), | |
2461 | [87] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat2, 2), SHIFT_REPEAT(132), | |
2462 | [90] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat2, 2), SHIFT_REPEAT(17), | |
2463 | [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_identifier, 3), | |
2464 | [95] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_identifier, 3), | |
2465 | [97] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), | |
2466 | [99] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_type_annotation, 3), | |
2467 | [101] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_identifier, 4), | |
2468 | [103] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_parameter_list, 2), | |
2469 | [105] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_parameter_list, 3), | |
2470 | [107] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__entry_list, 2), | |
2471 | [109] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), | |
2472 | [111] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_entry, 2), | |
2473 | [113] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_type_annotation, 3), | |
2474 | [115] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_entry_repeat1, 2), SHIFT_REPEAT(128), | |
2475 | [118] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_entry_repeat1, 2), | |
2476 | [120] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__entry_list_repeat1, 2), | |
2477 | [122] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__entry_list_repeat1, 2), SHIFT_REPEAT(118), | |
2478 | [125] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_entry, 1), | |
2479 | [127] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_identifier, 4), | |
2480 | [129] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__entry_list_repeat1, 2), SHIFT_REPEAT(122), | |
2481 | [132] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__entry_list, 2), | |
2482 | [134] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat2, 1), | |
2483 | [136] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_source_file_repeat2, 1), | |
2484 | [138] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), | |
2485 | [140] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__entry_list, 1), | |
2486 | [142] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), | |
2487 | [144] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__entry_list, 1), | |
2488 | [146] = {.entry = {.count = 1, .reusable = false}}, SHIFT(131), | |
2489 | [148] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_entry, 1), | |
2490 | [150] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_source_file_repeat2, 2), | |
2491 | [152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), | |
2492 | [154] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_parameter_list, 2), | |
2493 | [156] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym__entry_list_repeat1, 2), | |
2494 | [158] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__entry_list_repeat1, 2), SHIFT_REPEAT(113), | |
2495 | [161] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_entry_repeat1, 2), SHIFT_REPEAT(129), | |
2496 | [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), | |
2497 | [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129), | |
2498 | [168] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_identifier, 5), | |
2499 | [170] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_parameter_list, 3), | |
2500 | [172] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_entry_repeat1, 2), SHIFT_REPEAT(131), | |
2501 | [175] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_entry_repeat1, 2), | |
2502 | [177] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_entry, 2), | |
2503 | [179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), | |
2504 | [181] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2), | |
2505 | [183] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(79), | |
2506 | [186] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_return_statement, 2), | |
2507 | [188] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_throw_statement, 2), | |
2508 | [190] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_throw_statement, 2), | |
2509 | [192] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_return_statement, 2), | |
2510 | [194] = {.entry = {.count = 1, .reusable = false}}, SHIFT(130), | |
2511 | [196] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), | |
2512 | [198] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), | |
2513 | [200] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_entry_repeat1, 2), SHIFT_REPEAT(130), | |
2514 | [203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), | |
2515 | [205] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__entry_list_repeat1, 2), SHIFT_REPEAT(117), | |
2516 | [208] = {.entry = {.count = 1, .reusable = false}}, SHIFT(117), | |
2517 | [210] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_identifier, 5), | |
2518 | [212] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), | |
2519 | [214] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__identifier_list, 1), | |
2520 | [216] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125), | |
2521 | [218] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__identifier_list_repeat1, 2), | |
2522 | [220] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__identifier_list_repeat1, 2), SHIFT_REPEAT(125), | |
2523 | [223] = {.entry = {.count = 1, .reusable = false}}, SHIFT(126), | |
2524 | [225] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), | |
2525 | [227] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), | |
2526 | [229] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), | |
2527 | [231] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__identifier_list, 2), | |
2528 | [233] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122), | |
2529 | [235] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_entry_repeat1, 2), SHIFT_REPEAT(126), | |
2530 | [238] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134), | |
2531 | [240] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), | |
2532 | [242] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), | |
2533 | [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), | |
2534 | [246] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), | |
2535 | [248] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), | |
2536 | [250] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), | |
2537 | [252] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), | |
2538 | [254] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), | |
2539 | [256] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_member_type, 1), | |
2540 | [258] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), | |
2541 | }; | |
2542 | ||
2543 | #ifdef __cplusplus | |
2544 | extern "C" { | |
2545 | #endif | |
2546 | #ifdef _WIN32 | |
2547 | #define extern __declspec(dllexport) | |
2548 | #endif | |
2549 | ||
2550 | extern const TSLanguage *tree_sitter_apinotation(void) { | |
2551 | static const TSLanguage language = { | |
2552 | .version = LANGUAGE_VERSION, | |
2553 | .symbol_count = SYMBOL_COUNT, | |
2554 | .alias_count = ALIAS_COUNT, | |
2555 | .token_count = TOKEN_COUNT, | |
2556 | .external_token_count = EXTERNAL_TOKEN_COUNT, | |
2557 | .state_count = STATE_COUNT, | |
2558 | .large_state_count = LARGE_STATE_COUNT, | |
2559 | .production_id_count = PRODUCTION_ID_COUNT, | |
2560 | .field_count = FIELD_COUNT, | |
2561 | .max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH, | |
2562 | .parse_table = &ts_parse_table[0][0], | |
2563 | .small_parse_table = ts_small_parse_table, | |
2564 | .small_parse_table_map = ts_small_parse_table_map, | |
2565 | .parse_actions = ts_parse_actions, | |
2566 | .symbol_names = ts_symbol_names, | |
2567 | .symbol_metadata = ts_symbol_metadata, | |
2568 | .public_symbol_map = ts_symbol_map, | |
2569 | .alias_map = ts_non_terminal_alias_map, | |
2570 | .alias_sequences = &ts_alias_sequences[0][0], | |
2571 | .lex_modes = ts_lex_modes, | |
2572 | .lex_fn = ts_lex, | |
2573 | .primary_state_ids = ts_primary_state_ids, | |
2574 | }; | |
2575 | return &language; | |
2576 | } | |
2577 | #ifdef __cplusplus | |
2578 | } | |
2579 | #endif |