#include #if defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wmissing-field-initializers" #endif #define LANGUAGE_VERSION 14 #define STATE_COUNT 40 #define LARGE_STATE_COUNT 3 #define SYMBOL_COUNT 22 #define ALIAS_COUNT 0 #define TOKEN_COUNT 12 #define EXTERNAL_TOKEN_COUNT 0 #define FIELD_COUNT 4 #define MAX_ALIAS_SEQUENCE_LENGTH 4 #define PRODUCTION_ID_COUNT 4 enum { sym__name_fragment = 1, anon_sym_DQUOTE = 2, anon_sym_SQUOTE = 3, aux_sym_string_token1 = 4, aux_sym_string_token2 = 5, aux_sym_string_token3 = 6, anon_sym_config = 7, anon_sym_package = 8, anon_sym_option = 9, anon_sym_list = 10, sym_comment = 11, sym_config_file = 12, sym_name = 13, sym_string = 14, sym_config = 15, sym_package = 16, sym_option = 17, sym_list = 18, aux_sym_config_file_repeat1 = 19, aux_sym_config_repeat1 = 20, aux_sym_package_repeat1 = 21, }; static const char * const ts_symbol_names[] = { [ts_builtin_sym_end] = "end", [sym__name_fragment] = "_name_fragment", [anon_sym_DQUOTE] = "\"", [anon_sym_SQUOTE] = "'", [aux_sym_string_token1] = "string_token1", [aux_sym_string_token2] = "string_token2", [aux_sym_string_token3] = "string_token3", [anon_sym_config] = "config", [anon_sym_package] = "package", [anon_sym_option] = "option", [anon_sym_list] = "list", [sym_comment] = "comment", [sym_config_file] = "config_file", [sym_name] = "name", [sym_string] = "string", [sym_config] = "config", [sym_package] = "package", [sym_option] = "option", [sym_list] = "list", [aux_sym_config_file_repeat1] = "config_file_repeat1", [aux_sym_config_repeat1] = "config_repeat1", [aux_sym_package_repeat1] = "package_repeat1", }; static const TSSymbol ts_symbol_map[] = { [ts_builtin_sym_end] = ts_builtin_sym_end, [sym__name_fragment] = sym__name_fragment, [anon_sym_DQUOTE] = anon_sym_DQUOTE, [anon_sym_SQUOTE] = anon_sym_SQUOTE, [aux_sym_string_token1] = aux_sym_string_token1, [aux_sym_string_token2] = aux_sym_string_token2, [aux_sym_string_token3] = aux_sym_string_token3, [anon_sym_config] = anon_sym_config, [anon_sym_package] = anon_sym_package, [anon_sym_option] = anon_sym_option, [anon_sym_list] = anon_sym_list, [sym_comment] = sym_comment, [sym_config_file] = sym_config_file, [sym_name] = sym_name, [sym_string] = sym_string, [sym_config] = sym_config, [sym_package] = sym_package, [sym_option] = sym_option, [sym_list] = sym_list, [aux_sym_config_file_repeat1] = aux_sym_config_file_repeat1, [aux_sym_config_repeat1] = aux_sym_config_repeat1, [aux_sym_package_repeat1] = aux_sym_package_repeat1, }; static const TSSymbolMetadata ts_symbol_metadata[] = { [ts_builtin_sym_end] = { .visible = false, .named = true, }, [sym__name_fragment] = { .visible = false, .named = true, }, [anon_sym_DQUOTE] = { .visible = true, .named = false, }, [anon_sym_SQUOTE] = { .visible = true, .named = false, }, [aux_sym_string_token1] = { .visible = false, .named = false, }, [aux_sym_string_token2] = { .visible = false, .named = false, }, [aux_sym_string_token3] = { .visible = false, .named = false, }, [anon_sym_config] = { .visible = true, .named = false, }, [anon_sym_package] = { .visible = true, .named = false, }, [anon_sym_option] = { .visible = true, .named = false, }, [anon_sym_list] = { .visible = true, .named = false, }, [sym_comment] = { .visible = true, .named = true, }, [sym_config_file] = { .visible = true, .named = true, }, [sym_name] = { .visible = true, .named = true, }, [sym_string] = { .visible = true, .named = true, }, [sym_config] = { .visible = true, .named = true, }, [sym_package] = { .visible = true, .named = true, }, [sym_option] = { .visible = true, .named = true, }, [sym_list] = { .visible = true, .named = true, }, [aux_sym_config_file_repeat1] = { .visible = false, .named = false, }, [aux_sym_config_repeat1] = { .visible = false, .named = false, }, [aux_sym_package_repeat1] = { .visible = false, .named = false, }, }; enum { field_key = 1, field_name = 2, field_type = 3, field_value = 4, }; static const char * const ts_field_names[] = { [0] = NULL, [field_key] = "key", [field_name] = "name", [field_type] = "type", [field_value] = "value", }; static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { [1] = {.index = 0, .length = 1}, [2] = {.index = 1, .length = 2}, [3] = {.index = 3, .length = 2}, }; static const TSFieldMapEntry ts_field_map_entries[] = { [0] = {field_type, 1}, [1] = {field_name, 2}, {field_type, 1}, [3] = {field_key, 1}, {field_value, 2}, }; static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH] = { [0] = {0}, }; static const uint16_t ts_non_terminal_alias_map[] = { 0, }; static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [0] = 0, [1] = 1, [2] = 2, [3] = 3, [4] = 4, [5] = 5, [6] = 6, [7] = 7, [8] = 8, [9] = 9, [10] = 10, [11] = 3, [12] = 4, [13] = 13, [14] = 14, [15] = 15, [16] = 16, [17] = 17, [18] = 18, [19] = 19, [20] = 20, [21] = 21, [22] = 22, [23] = 23, [24] = 24, [25] = 4, [26] = 3, [27] = 27, [28] = 28, [29] = 29, [30] = 30, [31] = 31, [32] = 28, [33] = 27, [34] = 28, [35] = 27, [36] = 30, [37] = 29, [38] = 30, [39] = 29, }; static inline bool anon_sym_DQUOTE_character_set_1(int32_t c) { return (c < 8192 ? (c < ' ' ? (c < '\r' ? (c >= '\t' && c <= '\n') : c <= '\r') : (c <= ' ' || (c < 5760 ? c == 160 : c <= 5760))) : (c <= 8203 || (c < 12288 ? (c < 8287 ? c == 8239 : c <= 8288) : (c <= 12288 || c == 65279)))); } static bool ts_lex(TSLexer *lexer, TSStateId state) { START_LEXER(); eof = lexer->eof(lexer); switch (state) { case 0: if (eof) ADVANCE(25); if (lookahead == '"') ADVANCE(46); if (lookahead == '#') ADVANCE(61); if (lookahead == '\'') ADVANCE(47); if (lookahead == 'c') ADVANCE(39); if (lookahead == 'l') ADVANCE(33); if (lookahead == 'o') ADVANCE(41); if (lookahead == 'p') ADVANCE(26); if (anon_sym_DQUOTE_character_set_1(lookahead)) SKIP(0) if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 1: if (lookahead == '"') ADVANCE(46); if (lookahead == '#') ADVANCE(61); if (lookahead == '\'') ADVANCE(47); if (anon_sym_DQUOTE_character_set_1(lookahead)) SKIP(1) if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 2: if (lookahead == '"') ADVANCE(3); if (lookahead == '#') ADVANCE(51); if (lookahead == '\'') ADVANCE(4); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') SKIP(2) if (lookahead == 160 || lookahead == 5760 || (8192 <= lookahead && lookahead <= 8203) || lookahead == 8239 || lookahead == 8287 || lookahead == 8288 || lookahead == 12288 || lookahead == 65279) ADVANCE(50); if (lookahead != 0) ADVANCE(52); END_STATE(); case 3: if (lookahead == '"') ADVANCE(48); if (lookahead != 0 && lookahead != '\\') ADVANCE(3); END_STATE(); case 4: if (lookahead == '\'') ADVANCE(49); if (lookahead != 0 && lookahead != '\\') ADVANCE(4); END_STATE(); case 5: if (lookahead == 'a') ADVANCE(7); END_STATE(); case 6: if (lookahead == 'a') ADVANCE(11); END_STATE(); case 7: if (lookahead == 'c') ADVANCE(15); END_STATE(); case 8: if (lookahead == 'e') ADVANCE(55); END_STATE(); case 9: if (lookahead == 'f') ADVANCE(13); END_STATE(); case 10: if (lookahead == 'g') ADVANCE(53); END_STATE(); case 11: if (lookahead == 'g') ADVANCE(8); END_STATE(); case 12: if (lookahead == 'i') ADVANCE(21); END_STATE(); case 13: if (lookahead == 'i') ADVANCE(10); END_STATE(); case 14: if (lookahead == 'i') ADVANCE(19); END_STATE(); case 15: if (lookahead == 'k') ADVANCE(6); END_STATE(); case 16: if (lookahead == 'n') ADVANCE(9); END_STATE(); case 17: if (lookahead == 'n') ADVANCE(57); END_STATE(); case 18: if (lookahead == 'o') ADVANCE(16); END_STATE(); case 19: if (lookahead == 'o') ADVANCE(17); END_STATE(); case 20: if (lookahead == 'p') ADVANCE(23); END_STATE(); case 21: if (lookahead == 's') ADVANCE(22); END_STATE(); case 22: if (lookahead == 't') ADVANCE(59); END_STATE(); case 23: if (lookahead == 't') ADVANCE(14); END_STATE(); case 24: if (eof) ADVANCE(25); if (lookahead == '#') ADVANCE(61); if (lookahead == 'c') ADVANCE(18); if (lookahead == 'l') ADVANCE(12); if (lookahead == 'o') ADVANCE(20); if (lookahead == 'p') ADVANCE(5); if (anon_sym_DQUOTE_character_set_1(lookahead)) SKIP(24) END_STATE(); case 25: ACCEPT_TOKEN(ts_builtin_sym_end); END_STATE(); case 26: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 'a') ADVANCE(28); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('b' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 27: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 'a') ADVANCE(32); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('b' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 28: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 'c') ADVANCE(36); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 29: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 'e') ADVANCE(56); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 30: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 'f') ADVANCE(34); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 31: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 'g') ADVANCE(54); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 32: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 'g') ADVANCE(29); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 33: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 'i') ADVANCE(42); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 34: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 'i') ADVANCE(31); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 35: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 'i') ADVANCE(40); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 36: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 'k') ADVANCE(27); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 37: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 'n') ADVANCE(30); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 38: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 'n') ADVANCE(58); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 39: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 'o') ADVANCE(37); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 40: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 'o') ADVANCE(38); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 41: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 'p') ADVANCE(44); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 42: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 's') ADVANCE(43); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 43: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 't') ADVANCE(60); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 44: ACCEPT_TOKEN(sym__name_fragment); if (lookahead == 't') ADVANCE(35); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 45: ACCEPT_TOKEN(sym__name_fragment); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 46: ACCEPT_TOKEN(anon_sym_DQUOTE); END_STATE(); case 47: ACCEPT_TOKEN(anon_sym_SQUOTE); END_STATE(); case 48: ACCEPT_TOKEN(aux_sym_string_token1); END_STATE(); case 49: ACCEPT_TOKEN(aux_sym_string_token2); END_STATE(); case 50: ACCEPT_TOKEN(aux_sym_string_token3); if (lookahead == '#') ADVANCE(51); if (lookahead == 160 || lookahead == 5760 || (8192 <= lookahead && lookahead <= 8203) || lookahead == 8239 || lookahead == 8287 || lookahead == 8288 || lookahead == 12288 || lookahead == 65279) ADVANCE(50); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && lookahead != '\r' && lookahead != ' ' && lookahead != '"' && lookahead != '\'') ADVANCE(52); END_STATE(); case 51: ACCEPT_TOKEN(aux_sym_string_token3); if (lookahead == '\t' || lookahead == '\r' || lookahead == ' ' || lookahead == '"' || lookahead == '\'') ADVANCE(61); if (lookahead != 0 && lookahead != '\n') ADVANCE(51); END_STATE(); case 52: ACCEPT_TOKEN(aux_sym_string_token3); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && lookahead != '\r' && lookahead != ' ' && lookahead != '"' && lookahead != '\'') ADVANCE(52); END_STATE(); case 53: ACCEPT_TOKEN(anon_sym_config); END_STATE(); case 54: ACCEPT_TOKEN(anon_sym_config); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 55: ACCEPT_TOKEN(anon_sym_package); END_STATE(); case 56: ACCEPT_TOKEN(anon_sym_package); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 57: ACCEPT_TOKEN(anon_sym_option); END_STATE(); case 58: ACCEPT_TOKEN(anon_sym_option); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 59: ACCEPT_TOKEN(anon_sym_list); END_STATE(); case 60: ACCEPT_TOKEN(anon_sym_list); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 61: ACCEPT_TOKEN(sym_comment); if (lookahead != 0 && lookahead != '\n') ADVANCE(61); END_STATE(); default: return false; } } static const TSLexMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0}, [1] = {.lex_state = 24}, [2] = {.lex_state = 0}, [3] = {.lex_state = 0}, [4] = {.lex_state = 0}, [5] = {.lex_state = 24}, [6] = {.lex_state = 24}, [7] = {.lex_state = 24}, [8] = {.lex_state = 24}, [9] = {.lex_state = 24}, [10] = {.lex_state = 24}, [11] = {.lex_state = 24}, [12] = {.lex_state = 24}, [13] = {.lex_state = 24}, [14] = {.lex_state = 24}, [15] = {.lex_state = 24}, [16] = {.lex_state = 24}, [17] = {.lex_state = 24}, [18] = {.lex_state = 24}, [19] = {.lex_state = 2}, [20] = {.lex_state = 1}, [21] = {.lex_state = 2}, [22] = {.lex_state = 1}, [23] = {.lex_state = 1}, [24] = {.lex_state = 1}, [25] = {.lex_state = 2}, [26] = {.lex_state = 2}, [27] = {.lex_state = 0}, [28] = {.lex_state = 0}, [29] = {.lex_state = 1}, [30] = {.lex_state = 1}, [31] = {.lex_state = 0}, [32] = {.lex_state = 0}, [33] = {.lex_state = 0}, [34] = {.lex_state = 0}, [35] = {.lex_state = 0}, [36] = {.lex_state = 1}, [37] = {.lex_state = 1}, [38] = {.lex_state = 1}, [39] = {.lex_state = 1}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [0] = { [ts_builtin_sym_end] = ACTIONS(1), [sym__name_fragment] = ACTIONS(1), [anon_sym_DQUOTE] = ACTIONS(1), [anon_sym_SQUOTE] = ACTIONS(1), [anon_sym_config] = ACTIONS(1), [anon_sym_package] = ACTIONS(1), [anon_sym_option] = ACTIONS(1), [anon_sym_list] = ACTIONS(1), [sym_comment] = ACTIONS(3), }, [1] = { [sym_config_file] = STATE(31), [sym_config] = STATE(9), [sym_package] = STATE(9), [aux_sym_config_file_repeat1] = STATE(9), [ts_builtin_sym_end] = ACTIONS(5), [anon_sym_config] = ACTIONS(7), [anon_sym_package] = ACTIONS(9), [sym_comment] = ACTIONS(3), }, [2] = { [sym_name] = STATE(7), [sym_option] = STATE(8), [sym_list] = STATE(8), [aux_sym_config_repeat1] = STATE(8), [ts_builtin_sym_end] = ACTIONS(11), [sym__name_fragment] = ACTIONS(13), [anon_sym_DQUOTE] = ACTIONS(15), [anon_sym_SQUOTE] = ACTIONS(17), [anon_sym_config] = ACTIONS(19), [anon_sym_package] = ACTIONS(19), [anon_sym_option] = ACTIONS(21), [anon_sym_list] = ACTIONS(23), [sym_comment] = ACTIONS(3), }, }; static const uint16_t ts_small_parse_table[] = { [0] = 3, ACTIONS(3), 1, sym_comment, ACTIONS(25), 3, ts_builtin_sym_end, anon_sym_DQUOTE, anon_sym_SQUOTE, ACTIONS(27), 5, sym__name_fragment, anon_sym_config, anon_sym_package, anon_sym_option, anon_sym_list, [16] = 3, ACTIONS(3), 1, sym_comment, ACTIONS(29), 3, ts_builtin_sym_end, anon_sym_DQUOTE, anon_sym_SQUOTE, ACTIONS(31), 5, sym__name_fragment, anon_sym_config, anon_sym_package, anon_sym_option, anon_sym_list, [32] = 5, ACTIONS(3), 1, sym_comment, ACTIONS(35), 1, anon_sym_option, ACTIONS(38), 1, anon_sym_list, ACTIONS(33), 3, ts_builtin_sym_end, anon_sym_config, anon_sym_package, STATE(5), 3, sym_option, sym_list, aux_sym_config_repeat1, [52] = 5, ACTIONS(3), 1, sym_comment, ACTIONS(43), 1, anon_sym_option, ACTIONS(45), 1, anon_sym_list, ACTIONS(41), 3, ts_builtin_sym_end, anon_sym_config, anon_sym_package, STATE(5), 3, sym_option, sym_list, aux_sym_config_repeat1, [72] = 5, ACTIONS(3), 1, sym_comment, ACTIONS(43), 1, anon_sym_option, ACTIONS(45), 1, anon_sym_list, ACTIONS(47), 3, ts_builtin_sym_end, anon_sym_config, anon_sym_package, STATE(6), 3, sym_option, sym_list, aux_sym_config_repeat1, [92] = 5, ACTIONS(3), 1, sym_comment, ACTIONS(43), 1, anon_sym_option, ACTIONS(45), 1, anon_sym_list, ACTIONS(49), 3, ts_builtin_sym_end, anon_sym_config, anon_sym_package, STATE(5), 3, sym_option, sym_list, aux_sym_config_repeat1, [112] = 5, ACTIONS(3), 1, sym_comment, ACTIONS(7), 1, anon_sym_config, ACTIONS(9), 1, anon_sym_package, ACTIONS(51), 1, ts_builtin_sym_end, STATE(10), 3, sym_config, sym_package, aux_sym_config_file_repeat1, [130] = 5, ACTIONS(3), 1, sym_comment, ACTIONS(53), 1, ts_builtin_sym_end, ACTIONS(55), 1, anon_sym_config, ACTIONS(58), 1, anon_sym_package, STATE(10), 3, sym_config, sym_package, aux_sym_config_file_repeat1, [148] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(25), 5, ts_builtin_sym_end, anon_sym_config, anon_sym_package, anon_sym_option, anon_sym_list, [159] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(29), 5, ts_builtin_sym_end, anon_sym_config, anon_sym_package, anon_sym_option, anon_sym_list, [170] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(61), 5, ts_builtin_sym_end, anon_sym_config, anon_sym_package, anon_sym_option, anon_sym_list, [181] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(63), 5, ts_builtin_sym_end, anon_sym_config, anon_sym_package, anon_sym_option, anon_sym_list, [192] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(65), 5, ts_builtin_sym_end, anon_sym_config, anon_sym_package, anon_sym_option, anon_sym_list, [203] = 4, ACTIONS(3), 1, sym_comment, ACTIONS(7), 1, anon_sym_config, ACTIONS(67), 2, ts_builtin_sym_end, anon_sym_package, STATE(18), 2, sym_config, aux_sym_package_repeat1, [218] = 4, ACTIONS(3), 1, sym_comment, ACTIONS(71), 1, anon_sym_config, ACTIONS(69), 2, ts_builtin_sym_end, anon_sym_package, STATE(17), 2, sym_config, aux_sym_package_repeat1, [233] = 4, ACTIONS(3), 1, sym_comment, ACTIONS(7), 1, anon_sym_config, ACTIONS(74), 2, ts_builtin_sym_end, anon_sym_package, STATE(17), 2, sym_config, aux_sym_package_repeat1, [248] = 3, ACTIONS(78), 1, sym_comment, STATE(14), 1, sym_string, ACTIONS(76), 3, aux_sym_string_token1, aux_sym_string_token2, aux_sym_string_token3, [260] = 5, ACTIONS(3), 1, sym_comment, ACTIONS(80), 1, sym__name_fragment, ACTIONS(82), 1, anon_sym_DQUOTE, ACTIONS(84), 1, anon_sym_SQUOTE, STATE(2), 1, sym_name, [276] = 3, ACTIONS(78), 1, sym_comment, STATE(13), 1, sym_string, ACTIONS(76), 3, aux_sym_string_token1, aux_sym_string_token2, aux_sym_string_token3, [288] = 5, ACTIONS(3), 1, sym_comment, ACTIONS(86), 1, sym__name_fragment, ACTIONS(88), 1, anon_sym_DQUOTE, ACTIONS(90), 1, anon_sym_SQUOTE, STATE(21), 1, sym_name, [304] = 5, ACTIONS(3), 1, sym_comment, ACTIONS(86), 1, sym__name_fragment, ACTIONS(88), 1, anon_sym_DQUOTE, ACTIONS(90), 1, anon_sym_SQUOTE, STATE(19), 1, sym_name, [320] = 5, ACTIONS(3), 1, sym_comment, ACTIONS(15), 1, anon_sym_DQUOTE, ACTIONS(17), 1, anon_sym_SQUOTE, ACTIONS(92), 1, sym__name_fragment, STATE(16), 1, sym_name, [336] = 2, ACTIONS(78), 1, sym_comment, ACTIONS(31), 3, aux_sym_string_token1, aux_sym_string_token2, aux_sym_string_token3, [345] = 2, ACTIONS(78), 1, sym_comment, ACTIONS(27), 3, aux_sym_string_token1, aux_sym_string_token2, aux_sym_string_token3, [354] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(94), 1, anon_sym_SQUOTE, [361] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(94), 1, anon_sym_DQUOTE, [368] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(96), 1, sym__name_fragment, [375] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(98), 1, sym__name_fragment, [382] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(100), 1, ts_builtin_sym_end, [389] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(102), 1, anon_sym_DQUOTE, [396] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(102), 1, anon_sym_SQUOTE, [403] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(104), 1, anon_sym_DQUOTE, [410] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(104), 1, anon_sym_SQUOTE, [417] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(106), 1, sym__name_fragment, [424] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(108), 1, sym__name_fragment, [431] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(110), 1, sym__name_fragment, [438] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(112), 1, sym__name_fragment, }; static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(3)] = 0, [SMALL_STATE(4)] = 16, [SMALL_STATE(5)] = 32, [SMALL_STATE(6)] = 52, [SMALL_STATE(7)] = 72, [SMALL_STATE(8)] = 92, [SMALL_STATE(9)] = 112, [SMALL_STATE(10)] = 130, [SMALL_STATE(11)] = 148, [SMALL_STATE(12)] = 159, [SMALL_STATE(13)] = 170, [SMALL_STATE(14)] = 181, [SMALL_STATE(15)] = 192, [SMALL_STATE(16)] = 203, [SMALL_STATE(17)] = 218, [SMALL_STATE(18)] = 233, [SMALL_STATE(19)] = 248, [SMALL_STATE(20)] = 260, [SMALL_STATE(21)] = 276, [SMALL_STATE(22)] = 288, [SMALL_STATE(23)] = 304, [SMALL_STATE(24)] = 320, [SMALL_STATE(25)] = 336, [SMALL_STATE(26)] = 345, [SMALL_STATE(27)] = 354, [SMALL_STATE(28)] = 361, [SMALL_STATE(29)] = 368, [SMALL_STATE(30)] = 375, [SMALL_STATE(31)] = 382, [SMALL_STATE(32)] = 389, [SMALL_STATE(33)] = 396, [SMALL_STATE(34)] = 403, [SMALL_STATE(35)] = 410, [SMALL_STATE(36)] = 417, [SMALL_STATE(37)] = 424, [SMALL_STATE(38)] = 431, [SMALL_STATE(39)] = 438, }; static const TSParseActionEntry ts_parse_actions[] = { [0] = {.entry = {.count = 0, .reusable = false}}, [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT_EXTRA(), [5] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_config_file, 0), [7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), [11] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_config, 2, .production_id = 1), [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(12), [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), [19] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_config, 2, .production_id = 1), [21] = {.entry = {.count = 1, .reusable = false}}, SHIFT(23), [23] = {.entry = {.count = 1, .reusable = false}}, SHIFT(22), [25] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_name, 3), [27] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_name, 3), [29] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_name, 1), [31] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_name, 1), [33] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_config_repeat1, 2), [35] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_config_repeat1, 2), SHIFT_REPEAT(23), [38] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_config_repeat1, 2), SHIFT_REPEAT(22), [41] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_config, 4, .production_id = 2), [43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), [45] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), [47] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_config, 3, .production_id = 2), [49] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_config, 3, .production_id = 1), [51] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_config_file, 1), [53] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_config_file_repeat1, 2), [55] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_config_file_repeat1, 2), SHIFT_REPEAT(20), [58] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_config_file_repeat1, 2), SHIFT_REPEAT(24), [61] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list, 3, .production_id = 3), [63] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_option, 3, .production_id = 3), [65] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string, 1), [67] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_package, 2), [69] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_package_repeat1, 2), [71] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_package_repeat1, 2), SHIFT_REPEAT(20), [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_package, 3), [76] = {.entry = {.count = 1, .reusable = false}}, SHIFT(15), [78] = {.entry = {.count = 1, .reusable = false}}, SHIFT_EXTRA(), [80] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), [82] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), [84] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), [86] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), [88] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), [90] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), [92] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), [94] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), [96] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), [98] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), [100] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), [102] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), [104] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), [106] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), [108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), [110] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), [112] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), }; #ifdef __cplusplus extern "C" { #endif #ifdef _WIN32 #define extern __declspec(dllexport) #endif extern const TSLanguage *tree_sitter_uci(void) { static const TSLanguage language = { .version = LANGUAGE_VERSION, .symbol_count = SYMBOL_COUNT, .alias_count = ALIAS_COUNT, .token_count = TOKEN_COUNT, .external_token_count = EXTERNAL_TOKEN_COUNT, .state_count = STATE_COUNT, .large_state_count = LARGE_STATE_COUNT, .production_id_count = PRODUCTION_ID_COUNT, .field_count = FIELD_COUNT, .max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH, .parse_table = &ts_parse_table[0][0], .small_parse_table = ts_small_parse_table, .small_parse_table_map = ts_small_parse_table_map, .parse_actions = ts_parse_actions, .symbol_names = ts_symbol_names, .field_names = ts_field_names, .field_map_slices = ts_field_map_slices, .field_map_entries = ts_field_map_entries, .symbol_metadata = ts_symbol_metadata, .public_symbol_map = ts_symbol_map, .alias_map = ts_non_terminal_alias_map, .alias_sequences = &ts_alias_sequences[0][0], .lex_modes = ts_lex_modes, .lex_fn = ts_lex, .primary_state_ids = ts_primary_state_ids, }; return &language; } #ifdef __cplusplus } #endif