#include "tree_sitter/parser.h" #if defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic ignored "-Wmissing-field-initializers" #endif #define LANGUAGE_VERSION 14 #define STATE_COUNT 50 #define LARGE_STATE_COUNT 12 #define SYMBOL_COUNT 38 #define ALIAS_COUNT 0 #define TOKEN_COUNT 22 #define EXTERNAL_TOKEN_COUNT 0 #define FIELD_COUNT 3 #define MAX_ALIAS_SEQUENCE_LENGTH 6 #define PRODUCTION_ID_COUNT 5 enum ts_symbol_identifiers { sym_identifier = 1, sym_comment = 2, sym_block_comment = 3, anon_sym_LPAREN = 4, anon_sym_COLON = 5, anon_sym_RPAREN = 6, sym_star = 7, anon_sym_u25a1 = 8, anon_sym_LBRACK_RBRACK = 9, anon_sym_u03bb = 10, anon_sym_fun = 11, anon_sym_EQ_GT = 12, anon_sym_u21d2 = 13, anon_sym_u220f = 14, anon_sym_forall = 15, anon_sym_COMMA = 16, sym_axiom = 17, anon_sym_DASH_GT = 18, anon_sym_u2192 = 19, anon_sym_COLON_EQ = 20, anon_sym_SEMI = 21, sym_program = 22, sym_param_block = 23, sym_square = 24, sym_labs = 25, sym_pabs = 26, sym_term = 27, sym_app = 28, sym_arrow = 29, sym_app_term = 30, sym_expr = 31, sym_ascription = 32, sym_definition = 33, aux_sym_program_repeat1 = 34, aux_sym_param_block_repeat1 = 35, aux_sym_labs_repeat1 = 36, aux_sym_app_repeat1 = 37, }; static const char * const ts_symbol_names[] = { [ts_builtin_sym_end] = "end", [sym_identifier] = "identifier", [sym_comment] = "comment", [sym_block_comment] = "block_comment", [anon_sym_LPAREN] = "(", [anon_sym_COLON] = ":", [anon_sym_RPAREN] = ")", [sym_star] = "star", [anon_sym_u25a1] = "\u25a1", [anon_sym_LBRACK_RBRACK] = "[]", [anon_sym_u03bb] = "\u03bb", [anon_sym_fun] = "fun", [anon_sym_EQ_GT] = "=>", [anon_sym_u21d2] = "\u21d2", [anon_sym_u220f] = "\u220f", [anon_sym_forall] = "forall", [anon_sym_COMMA] = ",", [sym_axiom] = "axiom", [anon_sym_DASH_GT] = "->", [anon_sym_u2192] = "\u2192", [anon_sym_COLON_EQ] = ":=", [anon_sym_SEMI] = ";", [sym_program] = "program", [sym_param_block] = "param_block", [sym_square] = "square", [sym_labs] = "labs", [sym_pabs] = "pabs", [sym_term] = "term", [sym_app] = "app", [sym_arrow] = "arrow", [sym_app_term] = "app_term", [sym_expr] = "expr", [sym_ascription] = "ascription", [sym_definition] = "definition", [aux_sym_program_repeat1] = "program_repeat1", [aux_sym_param_block_repeat1] = "param_block_repeat1", [aux_sym_labs_repeat1] = "labs_repeat1", [aux_sym_app_repeat1] = "app_repeat1", }; static const TSSymbol ts_symbol_map[] = { [ts_builtin_sym_end] = ts_builtin_sym_end, [sym_identifier] = sym_identifier, [sym_comment] = sym_comment, [sym_block_comment] = sym_block_comment, [anon_sym_LPAREN] = anon_sym_LPAREN, [anon_sym_COLON] = anon_sym_COLON, [anon_sym_RPAREN] = anon_sym_RPAREN, [sym_star] = sym_star, [anon_sym_u25a1] = anon_sym_u25a1, [anon_sym_LBRACK_RBRACK] = anon_sym_LBRACK_RBRACK, [anon_sym_u03bb] = anon_sym_u03bb, [anon_sym_fun] = anon_sym_fun, [anon_sym_EQ_GT] = anon_sym_EQ_GT, [anon_sym_u21d2] = anon_sym_u21d2, [anon_sym_u220f] = anon_sym_u220f, [anon_sym_forall] = anon_sym_forall, [anon_sym_COMMA] = anon_sym_COMMA, [sym_axiom] = sym_axiom, [anon_sym_DASH_GT] = anon_sym_DASH_GT, [anon_sym_u2192] = anon_sym_u2192, [anon_sym_COLON_EQ] = anon_sym_COLON_EQ, [anon_sym_SEMI] = anon_sym_SEMI, [sym_program] = sym_program, [sym_param_block] = sym_param_block, [sym_square] = sym_square, [sym_labs] = sym_labs, [sym_pabs] = sym_pabs, [sym_term] = sym_term, [sym_app] = sym_app, [sym_arrow] = sym_arrow, [sym_app_term] = sym_app_term, [sym_expr] = sym_expr, [sym_ascription] = sym_ascription, [sym_definition] = sym_definition, [aux_sym_program_repeat1] = aux_sym_program_repeat1, [aux_sym_param_block_repeat1] = aux_sym_param_block_repeat1, [aux_sym_labs_repeat1] = aux_sym_labs_repeat1, [aux_sym_app_repeat1] = aux_sym_app_repeat1, }; static const TSSymbolMetadata ts_symbol_metadata[] = { [ts_builtin_sym_end] = { .visible = false, .named = true, }, [sym_identifier] = { .visible = true, .named = true, }, [sym_comment] = { .visible = true, .named = true, }, [sym_block_comment] = { .visible = true, .named = true, }, [anon_sym_LPAREN] = { .visible = true, .named = false, }, [anon_sym_COLON] = { .visible = true, .named = false, }, [anon_sym_RPAREN] = { .visible = true, .named = false, }, [sym_star] = { .visible = true, .named = true, }, [anon_sym_u25a1] = { .visible = true, .named = false, }, [anon_sym_LBRACK_RBRACK] = { .visible = true, .named = false, }, [anon_sym_u03bb] = { .visible = true, .named = false, }, [anon_sym_fun] = { .visible = true, .named = false, }, [anon_sym_EQ_GT] = { .visible = true, .named = false, }, [anon_sym_u21d2] = { .visible = true, .named = false, }, [anon_sym_u220f] = { .visible = true, .named = false, }, [anon_sym_forall] = { .visible = true, .named = false, }, [anon_sym_COMMA] = { .visible = true, .named = false, }, [sym_axiom] = { .visible = true, .named = true, }, [anon_sym_DASH_GT] = { .visible = true, .named = false, }, [anon_sym_u2192] = { .visible = true, .named = false, }, [anon_sym_COLON_EQ] = { .visible = true, .named = false, }, [anon_sym_SEMI] = { .visible = true, .named = false, }, [sym_program] = { .visible = true, .named = true, }, [sym_param_block] = { .visible = true, .named = true, }, [sym_square] = { .visible = true, .named = true, }, [sym_labs] = { .visible = true, .named = true, }, [sym_pabs] = { .visible = true, .named = true, }, [sym_term] = { .visible = true, .named = true, }, [sym_app] = { .visible = true, .named = true, }, [sym_arrow] = { .visible = true, .named = true, }, [sym_app_term] = { .visible = true, .named = true, }, [sym_expr] = { .visible = true, .named = true, }, [sym_ascription] = { .visible = true, .named = true, }, [sym_definition] = { .visible = true, .named = true, }, [aux_sym_program_repeat1] = { .visible = false, .named = false, }, [aux_sym_param_block_repeat1] = { .visible = false, .named = false, }, [aux_sym_labs_repeat1] = { .visible = false, .named = false, }, [aux_sym_app_repeat1] = { .visible = false, .named = false, }, }; enum ts_field_identifiers { field_name = 1, field_param = 2, field_type = 3, }; static const char * const ts_field_names[] = { [0] = NULL, [field_name] = "name", [field_param] = "param", [field_type] = "type", }; static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { [1] = {.index = 0, .length = 1}, [2] = {.index = 1, .length = 1}, [3] = {.index = 2, .length = 1}, [4] = {.index = 3, .length = 2}, }; static const TSFieldMapEntry ts_field_map_entries[] = { [0] = {field_type, 1}, [1] = {field_name, 0}, [2] = {field_type, 2}, [3] = {field_param, 1}, {field_type, 3}, }; 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] = 11, [12] = 12, [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] = 25, [26] = 26, [27] = 27, [28] = 28, [29] = 29, [30] = 30, [31] = 31, [32] = 32, [33] = 33, [34] = 34, [35] = 35, [36] = 36, [37] = 37, [38] = 38, [39] = 39, [40] = 40, [41] = 41, [42] = 42, [43] = 43, [44] = 44, [45] = 45, [46] = 46, [47] = 47, [48] = 48, [49] = 49, }; static bool ts_lex(TSLexer *lexer, TSStateId state) { START_LEXER(); eof = lexer->eof(lexer); switch (state) { case 0: if (eof) ADVANCE(10); ADVANCE_MAP( '(', 24, ')', 26, '*', 27, ',', 36, '-', 5, ':', 25, ';', 41, '=', 6, '[', 2, 'a', 20, 'f', 17, 0x3bb, 30, 0x2192, 39, 0x21d2, 33, 0x220f, 34, 0x25a1, 28, ); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(0); if (('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('b' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 1: ADVANCE_MAP( '(', 24, '*', 27, '-', 4, '[', 2, 'f', 17, 0x3bb, 30, 0x220f, 34, 0x25a1, 28, ); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(1); if (('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 2: if (lookahead == '*') ADVANCE(3); if (lookahead == ']') ADVANCE(29); END_STATE(); case 3: if (lookahead == '*') ADVANCE(7); if (lookahead == '[') ADVANCE(8); if (lookahead != 0 && lookahead != ']') ADVANCE(3); END_STATE(); case 4: if (lookahead == '-') ADVANCE(22); END_STATE(); case 5: if (lookahead == '-') ADVANCE(22); if (lookahead == '>') ADVANCE(38); END_STATE(); case 6: if (lookahead == '>') ADVANCE(32); END_STATE(); case 7: if (lookahead == ']') ADVANCE(23); if (lookahead != 0) ADVANCE(3); END_STATE(); case 8: if (lookahead != 0) ADVANCE(3); END_STATE(); case 9: if (eof) ADVANCE(10); ADVANCE_MAP( '(', 24, ')', 26, '*', 27, '-', 5, ':', 25, ';', 41, '[', 2, 0x2192, 39, 0x25a1, 28, ); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(9); if (('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 10: ACCEPT_TOKEN(ts_builtin_sym_end); END_STATE(); case 11: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'a') ADVANCE(14); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('b' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 12: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'i') ADVANCE(18); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 13: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'l') ADVANCE(35); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 14: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'l') ADVANCE(13); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 15: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'm') ADVANCE(37); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 16: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'n') ADVANCE(31); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 17: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'o') ADVANCE(19); if (lookahead == 'u') ADVANCE(16); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 18: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'o') ADVANCE(15); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 19: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'r') ADVANCE(11); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 20: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'x') ADVANCE(12); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 21: ACCEPT_TOKEN(sym_identifier); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 22: ACCEPT_TOKEN(sym_comment); if (lookahead != 0 && lookahead != '\n') ADVANCE(22); END_STATE(); case 23: ACCEPT_TOKEN(sym_block_comment); if (lookahead == '*') ADVANCE(7); if (lookahead == '[') ADVANCE(8); if (lookahead != 0 && lookahead != ']') ADVANCE(3); END_STATE(); case 24: ACCEPT_TOKEN(anon_sym_LPAREN); END_STATE(); case 25: ACCEPT_TOKEN(anon_sym_COLON); if (lookahead == '=') ADVANCE(40); END_STATE(); case 26: ACCEPT_TOKEN(anon_sym_RPAREN); END_STATE(); case 27: ACCEPT_TOKEN(sym_star); END_STATE(); case 28: ACCEPT_TOKEN(anon_sym_u25a1); END_STATE(); case 29: ACCEPT_TOKEN(anon_sym_LBRACK_RBRACK); END_STATE(); case 30: ACCEPT_TOKEN(anon_sym_u03bb); END_STATE(); case 31: ACCEPT_TOKEN(anon_sym_fun); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 32: ACCEPT_TOKEN(anon_sym_EQ_GT); END_STATE(); case 33: ACCEPT_TOKEN(anon_sym_u21d2); END_STATE(); case 34: ACCEPT_TOKEN(anon_sym_u220f); END_STATE(); case 35: ACCEPT_TOKEN(anon_sym_forall); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 36: ACCEPT_TOKEN(anon_sym_COMMA); END_STATE(); case 37: ACCEPT_TOKEN(sym_axiom); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(21); END_STATE(); case 38: ACCEPT_TOKEN(anon_sym_DASH_GT); END_STATE(); case 39: ACCEPT_TOKEN(anon_sym_u2192); END_STATE(); case 40: ACCEPT_TOKEN(anon_sym_COLON_EQ); END_STATE(); case 41: ACCEPT_TOKEN(anon_sym_SEMI); END_STATE(); default: return false; } } static const TSLexMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0}, [1] = {.lex_state = 9}, [2] = {.lex_state = 0}, [3] = {.lex_state = 0}, [4] = {.lex_state = 0}, [5] = {.lex_state = 1}, [6] = {.lex_state = 1}, [7] = {.lex_state = 1}, [8] = {.lex_state = 1}, [9] = {.lex_state = 1}, [10] = {.lex_state = 1}, [11] = {.lex_state = 1}, [12] = {.lex_state = 9}, [13] = {.lex_state = 9}, [14] = {.lex_state = 9}, [15] = {.lex_state = 9}, [16] = {.lex_state = 9}, [17] = {.lex_state = 0}, [18] = {.lex_state = 0}, [19] = {.lex_state = 0}, [20] = {.lex_state = 0}, [21] = {.lex_state = 0}, [22] = {.lex_state = 0}, [23] = {.lex_state = 0}, [24] = {.lex_state = 0}, [25] = {.lex_state = 0}, [26] = {.lex_state = 0}, [27] = {.lex_state = 0}, [28] = {.lex_state = 0}, [29] = {.lex_state = 0}, [30] = {.lex_state = 9}, [31] = {.lex_state = 9}, [32] = {.lex_state = 9}, [33] = {.lex_state = 9}, [34] = {.lex_state = 9}, [35] = {.lex_state = 0}, [36] = {.lex_state = 0}, [37] = {.lex_state = 9}, [38] = {.lex_state = 9}, [39] = {.lex_state = 9}, [40] = {.lex_state = 0}, [41] = {.lex_state = 0}, [42] = {.lex_state = 0}, [43] = {.lex_state = 0}, [44] = {.lex_state = 0}, [45] = {.lex_state = 0}, [46] = {.lex_state = 0}, [47] = {.lex_state = 0}, [48] = {.lex_state = 0}, [49] = {.lex_state = 0}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [0] = { [ts_builtin_sym_end] = ACTIONS(1), [sym_identifier] = ACTIONS(1), [sym_comment] = ACTIONS(3), [sym_block_comment] = ACTIONS(3), [anon_sym_LPAREN] = ACTIONS(1), [anon_sym_COLON] = ACTIONS(1), [anon_sym_RPAREN] = ACTIONS(1), [sym_star] = ACTIONS(1), [anon_sym_u25a1] = ACTIONS(1), [anon_sym_LBRACK_RBRACK] = ACTIONS(1), [anon_sym_u03bb] = ACTIONS(1), [anon_sym_fun] = ACTIONS(1), [anon_sym_EQ_GT] = ACTIONS(1), [anon_sym_u21d2] = ACTIONS(1), [anon_sym_u220f] = ACTIONS(1), [anon_sym_forall] = ACTIONS(1), [anon_sym_COMMA] = ACTIONS(1), [sym_axiom] = ACTIONS(1), [anon_sym_DASH_GT] = ACTIONS(1), [anon_sym_u2192] = ACTIONS(1), [anon_sym_COLON_EQ] = ACTIONS(1), [anon_sym_SEMI] = ACTIONS(1), }, [1] = { [sym_program] = STATE(42), [sym_definition] = STATE(31), [aux_sym_program_repeat1] = STATE(31), [ts_builtin_sym_end] = ACTIONS(5), [sym_identifier] = ACTIONS(7), [sym_comment] = ACTIONS(3), [sym_block_comment] = ACTIONS(3), }, [2] = { [sym_square] = STATE(15), [sym_labs] = STATE(23), [sym_pabs] = STATE(23), [sym_term] = STATE(12), [sym_app] = STATE(23), [sym_arrow] = STATE(24), [sym_app_term] = STATE(22), [sym_expr] = STATE(44), [aux_sym_app_repeat1] = STATE(12), [sym_identifier] = ACTIONS(9), [sym_comment] = ACTIONS(3), [sym_block_comment] = ACTIONS(3), [anon_sym_LPAREN] = ACTIONS(11), [sym_star] = ACTIONS(13), [anon_sym_u25a1] = ACTIONS(15), [anon_sym_LBRACK_RBRACK] = ACTIONS(15), [anon_sym_u03bb] = ACTIONS(17), [anon_sym_fun] = ACTIONS(19), [anon_sym_u220f] = ACTIONS(21), [anon_sym_forall] = ACTIONS(23), [sym_axiom] = ACTIONS(25), }, [3] = { [sym_square] = STATE(15), [sym_labs] = STATE(23), [sym_pabs] = STATE(23), [sym_term] = STATE(12), [sym_app] = STATE(23), [sym_arrow] = STATE(24), [sym_app_term] = STATE(22), [sym_expr] = STATE(40), [aux_sym_app_repeat1] = STATE(12), [sym_identifier] = ACTIONS(9), [sym_comment] = ACTIONS(3), [sym_block_comment] = ACTIONS(3), [anon_sym_LPAREN] = ACTIONS(11), [sym_star] = ACTIONS(13), [anon_sym_u25a1] = ACTIONS(15), [anon_sym_LBRACK_RBRACK] = ACTIONS(15), [anon_sym_u03bb] = ACTIONS(17), [anon_sym_fun] = ACTIONS(19), [anon_sym_u220f] = ACTIONS(21), [anon_sym_forall] = ACTIONS(23), [sym_axiom] = ACTIONS(27), }, [4] = { [sym_square] = STATE(15), [sym_labs] = STATE(23), [sym_pabs] = STATE(23), [sym_term] = STATE(12), [sym_app] = STATE(23), [sym_arrow] = STATE(24), [sym_app_term] = STATE(22), [sym_expr] = STATE(45), [aux_sym_app_repeat1] = STATE(12), [sym_identifier] = ACTIONS(9), [sym_comment] = ACTIONS(3), [sym_block_comment] = ACTIONS(3), [anon_sym_LPAREN] = ACTIONS(11), [sym_star] = ACTIONS(13), [anon_sym_u25a1] = ACTIONS(15), [anon_sym_LBRACK_RBRACK] = ACTIONS(15), [anon_sym_u03bb] = ACTIONS(17), [anon_sym_fun] = ACTIONS(19), [anon_sym_u220f] = ACTIONS(21), [anon_sym_forall] = ACTIONS(23), [sym_axiom] = ACTIONS(29), }, [5] = { [sym_square] = STATE(15), [sym_labs] = STATE(23), [sym_pabs] = STATE(23), [sym_term] = STATE(12), [sym_app] = STATE(23), [sym_arrow] = STATE(24), [sym_app_term] = STATE(22), [sym_expr] = STATE(43), [aux_sym_app_repeat1] = STATE(12), [sym_identifier] = ACTIONS(9), [sym_comment] = ACTIONS(3), [sym_block_comment] = ACTIONS(3), [anon_sym_LPAREN] = ACTIONS(11), [sym_star] = ACTIONS(13), [anon_sym_u25a1] = ACTIONS(15), [anon_sym_LBRACK_RBRACK] = ACTIONS(15), [anon_sym_u03bb] = ACTIONS(17), [anon_sym_fun] = ACTIONS(19), [anon_sym_u220f] = ACTIONS(21), [anon_sym_forall] = ACTIONS(23), }, [6] = { [sym_square] = STATE(15), [sym_labs] = STATE(23), [sym_pabs] = STATE(23), [sym_term] = STATE(12), [sym_app] = STATE(23), [sym_arrow] = STATE(24), [sym_app_term] = STATE(22), [sym_expr] = STATE(26), [aux_sym_app_repeat1] = STATE(12), [sym_identifier] = ACTIONS(9), [sym_comment] = ACTIONS(3), [sym_block_comment] = ACTIONS(3), [anon_sym_LPAREN] = ACTIONS(11), [sym_star] = ACTIONS(13), [anon_sym_u25a1] = ACTIONS(15), [anon_sym_LBRACK_RBRACK] = ACTIONS(15), [anon_sym_u03bb] = ACTIONS(17), [anon_sym_fun] = ACTIONS(19), [anon_sym_u220f] = ACTIONS(21), [anon_sym_forall] = ACTIONS(23), }, [7] = { [sym_square] = STATE(15), [sym_labs] = STATE(23), [sym_pabs] = STATE(23), [sym_term] = STATE(12), [sym_app] = STATE(23), [sym_arrow] = STATE(24), [sym_app_term] = STATE(22), [sym_expr] = STATE(41), [aux_sym_app_repeat1] = STATE(12), [sym_identifier] = ACTIONS(9), [sym_comment] = ACTIONS(3), [sym_block_comment] = ACTIONS(3), [anon_sym_LPAREN] = ACTIONS(11), [sym_star] = ACTIONS(13), [anon_sym_u25a1] = ACTIONS(15), [anon_sym_LBRACK_RBRACK] = ACTIONS(15), [anon_sym_u03bb] = ACTIONS(17), [anon_sym_fun] = ACTIONS(19), [anon_sym_u220f] = ACTIONS(21), [anon_sym_forall] = ACTIONS(23), }, [8] = { [sym_square] = STATE(15), [sym_labs] = STATE(23), [sym_pabs] = STATE(23), [sym_term] = STATE(12), [sym_app] = STATE(23), [sym_arrow] = STATE(24), [sym_app_term] = STATE(22), [sym_expr] = STATE(46), [aux_sym_app_repeat1] = STATE(12), [sym_identifier] = ACTIONS(9), [sym_comment] = ACTIONS(3), [sym_block_comment] = ACTIONS(3), [anon_sym_LPAREN] = ACTIONS(11), [sym_star] = ACTIONS(13), [anon_sym_u25a1] = ACTIONS(15), [anon_sym_LBRACK_RBRACK] = ACTIONS(15), [anon_sym_u03bb] = ACTIONS(17), [anon_sym_fun] = ACTIONS(19), [anon_sym_u220f] = ACTIONS(21), [anon_sym_forall] = ACTIONS(23), }, [9] = { [sym_square] = STATE(15), [sym_labs] = STATE(23), [sym_pabs] = STATE(23), [sym_term] = STATE(12), [sym_app] = STATE(23), [sym_arrow] = STATE(24), [sym_app_term] = STATE(22), [sym_expr] = STATE(48), [aux_sym_app_repeat1] = STATE(12), [sym_identifier] = ACTIONS(9), [sym_comment] = ACTIONS(3), [sym_block_comment] = ACTIONS(3), [anon_sym_LPAREN] = ACTIONS(11), [sym_star] = ACTIONS(13), [anon_sym_u25a1] = ACTIONS(15), [anon_sym_LBRACK_RBRACK] = ACTIONS(15), [anon_sym_u03bb] = ACTIONS(17), [anon_sym_fun] = ACTIONS(19), [anon_sym_u220f] = ACTIONS(21), [anon_sym_forall] = ACTIONS(23), }, [10] = { [sym_square] = STATE(15), [sym_labs] = STATE(23), [sym_pabs] = STATE(23), [sym_term] = STATE(12), [sym_app] = STATE(23), [sym_arrow] = STATE(24), [sym_app_term] = STATE(22), [sym_expr] = STATE(28), [aux_sym_app_repeat1] = STATE(12), [sym_identifier] = ACTIONS(9), [sym_comment] = ACTIONS(3), [sym_block_comment] = ACTIONS(3), [anon_sym_LPAREN] = ACTIONS(11), [sym_star] = ACTIONS(13), [anon_sym_u25a1] = ACTIONS(15), [anon_sym_LBRACK_RBRACK] = ACTIONS(15), [anon_sym_u03bb] = ACTIONS(17), [anon_sym_fun] = ACTIONS(19), [anon_sym_u220f] = ACTIONS(21), [anon_sym_forall] = ACTIONS(23), }, [11] = { [sym_square] = STATE(15), [sym_labs] = STATE(23), [sym_pabs] = STATE(23), [sym_term] = STATE(12), [sym_app] = STATE(23), [sym_arrow] = STATE(24), [sym_app_term] = STATE(22), [sym_expr] = STATE(27), [aux_sym_app_repeat1] = STATE(12), [sym_identifier] = ACTIONS(9), [sym_comment] = ACTIONS(3), [sym_block_comment] = ACTIONS(3), [anon_sym_LPAREN] = ACTIONS(11), [sym_star] = ACTIONS(13), [anon_sym_u25a1] = ACTIONS(15), [anon_sym_LBRACK_RBRACK] = ACTIONS(15), [anon_sym_u03bb] = ACTIONS(17), [anon_sym_fun] = ACTIONS(19), [anon_sym_u220f] = ACTIONS(21), [anon_sym_forall] = ACTIONS(23), }, }; static const uint16_t ts_small_parse_table[] = { [0] = 7, ACTIONS(11), 1, anon_sym_LPAREN, STATE(15), 1, sym_square, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(13), 2, sym_identifier, sym_star, ACTIONS(15), 2, anon_sym_u25a1, anon_sym_LBRACK_RBRACK, STATE(13), 2, sym_term, aux_sym_app_repeat1, ACTIONS(31), 5, anon_sym_RPAREN, anon_sym_DASH_GT, anon_sym_u2192, anon_sym_COLON_EQ, anon_sym_SEMI, [30] = 7, ACTIONS(36), 1, anon_sym_LPAREN, STATE(15), 1, sym_square, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(33), 2, sym_identifier, sym_star, ACTIONS(41), 2, anon_sym_u25a1, anon_sym_LBRACK_RBRACK, STATE(13), 2, sym_term, aux_sym_app_repeat1, ACTIONS(39), 5, anon_sym_RPAREN, anon_sym_DASH_GT, anon_sym_u2192, anon_sym_COLON_EQ, anon_sym_SEMI, [60] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(44), 10, sym_identifier, anon_sym_LPAREN, anon_sym_RPAREN, sym_star, anon_sym_u25a1, anon_sym_LBRACK_RBRACK, anon_sym_DASH_GT, anon_sym_u2192, anon_sym_COLON_EQ, anon_sym_SEMI, [77] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(46), 10, sym_identifier, anon_sym_LPAREN, anon_sym_RPAREN, sym_star, anon_sym_u25a1, anon_sym_LBRACK_RBRACK, anon_sym_DASH_GT, anon_sym_u2192, anon_sym_COLON_EQ, anon_sym_SEMI, [94] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(48), 10, sym_identifier, anon_sym_LPAREN, anon_sym_RPAREN, sym_star, anon_sym_u25a1, anon_sym_LBRACK_RBRACK, anon_sym_DASH_GT, anon_sym_u2192, anon_sym_COLON_EQ, anon_sym_SEMI, [111] = 5, ACTIONS(50), 1, anon_sym_LPAREN, ACTIONS(53), 1, anon_sym_COLON, ACTIONS(3), 2, sym_comment, sym_block_comment, STATE(17), 2, sym_param_block, aux_sym_labs_repeat1, ACTIONS(55), 4, anon_sym_EQ_GT, anon_sym_u21d2, anon_sym_COMMA, anon_sym_COLON_EQ, [132] = 6, ACTIONS(57), 1, anon_sym_LPAREN, ACTIONS(59), 1, anon_sym_COLON, ACTIONS(61), 1, anon_sym_COLON_EQ, STATE(49), 1, sym_ascription, ACTIONS(3), 2, sym_comment, sym_block_comment, STATE(19), 2, sym_param_block, aux_sym_labs_repeat1, [153] = 6, ACTIONS(57), 1, anon_sym_LPAREN, ACTIONS(59), 1, anon_sym_COLON, ACTIONS(63), 1, anon_sym_COLON_EQ, STATE(47), 1, sym_ascription, ACTIONS(3), 2, sym_comment, sym_block_comment, STATE(17), 2, sym_param_block, aux_sym_labs_repeat1, [174] = 3, ACTIONS(67), 1, anon_sym_COLON, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(65), 5, anon_sym_LPAREN, anon_sym_EQ_GT, anon_sym_u21d2, anon_sym_COMMA, anon_sym_COLON_EQ, [189] = 3, ACTIONS(71), 1, anon_sym_COLON, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(69), 5, anon_sym_LPAREN, anon_sym_EQ_GT, anon_sym_u21d2, anon_sym_COMMA, anon_sym_COLON_EQ, [204] = 3, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(75), 2, anon_sym_DASH_GT, anon_sym_u2192, ACTIONS(73), 3, anon_sym_RPAREN, anon_sym_COLON_EQ, anon_sym_SEMI, [218] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(77), 5, anon_sym_RPAREN, anon_sym_DASH_GT, anon_sym_u2192, anon_sym_COLON_EQ, anon_sym_SEMI, [230] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(73), 5, anon_sym_RPAREN, anon_sym_DASH_GT, anon_sym_u2192, anon_sym_COLON_EQ, anon_sym_SEMI, [242] = 4, ACTIONS(57), 1, anon_sym_LPAREN, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(79), 2, anon_sym_EQ_GT, anon_sym_u21d2, STATE(17), 2, sym_param_block, aux_sym_labs_repeat1, [258] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(81), 5, anon_sym_RPAREN, anon_sym_DASH_GT, anon_sym_u2192, anon_sym_COLON_EQ, anon_sym_SEMI, [270] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(83), 5, anon_sym_RPAREN, anon_sym_DASH_GT, anon_sym_u2192, anon_sym_COLON_EQ, anon_sym_SEMI, [282] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(85), 5, anon_sym_RPAREN, anon_sym_DASH_GT, anon_sym_u2192, anon_sym_COLON_EQ, anon_sym_SEMI, [294] = 4, ACTIONS(57), 1, anon_sym_LPAREN, ACTIONS(87), 1, anon_sym_COMMA, ACTIONS(3), 2, sym_comment, sym_block_comment, STATE(17), 2, sym_param_block, aux_sym_labs_repeat1, [309] = 4, ACTIONS(89), 1, ts_builtin_sym_end, ACTIONS(91), 1, sym_identifier, ACTIONS(3), 2, sym_comment, sym_block_comment, STATE(30), 2, sym_definition, aux_sym_program_repeat1, [324] = 4, ACTIONS(7), 1, sym_identifier, ACTIONS(94), 1, ts_builtin_sym_end, ACTIONS(3), 2, sym_comment, sym_block_comment, STATE(30), 2, sym_definition, aux_sym_program_repeat1, [339] = 4, ACTIONS(96), 1, sym_identifier, ACTIONS(98), 1, anon_sym_COLON, STATE(33), 1, aux_sym_param_block_repeat1, ACTIONS(3), 2, sym_comment, sym_block_comment, [353] = 4, ACTIONS(100), 1, sym_identifier, ACTIONS(102), 1, anon_sym_COLON, STATE(34), 1, aux_sym_param_block_repeat1, ACTIONS(3), 2, sym_comment, sym_block_comment, [367] = 4, ACTIONS(104), 1, sym_identifier, ACTIONS(107), 1, anon_sym_COLON, STATE(34), 1, aux_sym_param_block_repeat1, ACTIONS(3), 2, sym_comment, sym_block_comment, [381] = 3, ACTIONS(57), 1, anon_sym_LPAREN, ACTIONS(3), 2, sym_comment, sym_block_comment, STATE(25), 2, sym_param_block, aux_sym_labs_repeat1, [393] = 3, ACTIONS(57), 1, anon_sym_LPAREN, ACTIONS(3), 2, sym_comment, sym_block_comment, STATE(29), 2, sym_param_block, aux_sym_labs_repeat1, [405] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(109), 2, ts_builtin_sym_end, sym_identifier, [414] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(111), 2, ts_builtin_sym_end, sym_identifier, [423] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(113), 2, ts_builtin_sym_end, sym_identifier, [432] = 2, ACTIONS(115), 1, anon_sym_SEMI, ACTIONS(3), 2, sym_comment, sym_block_comment, [440] = 2, ACTIONS(117), 1, anon_sym_RPAREN, ACTIONS(3), 2, sym_comment, sym_block_comment, [448] = 2, ACTIONS(119), 1, ts_builtin_sym_end, ACTIONS(3), 2, sym_comment, sym_block_comment, [456] = 2, ACTIONS(121), 1, anon_sym_COLON_EQ, ACTIONS(3), 2, sym_comment, sym_block_comment, [464] = 2, ACTIONS(123), 1, anon_sym_SEMI, ACTIONS(3), 2, sym_comment, sym_block_comment, [472] = 2, ACTIONS(125), 1, anon_sym_SEMI, ACTIONS(3), 2, sym_comment, sym_block_comment, [480] = 2, ACTIONS(127), 1, anon_sym_RPAREN, ACTIONS(3), 2, sym_comment, sym_block_comment, [488] = 2, ACTIONS(129), 1, anon_sym_COLON_EQ, ACTIONS(3), 2, sym_comment, sym_block_comment, [496] = 2, ACTIONS(131), 1, anon_sym_RPAREN, ACTIONS(3), 2, sym_comment, sym_block_comment, [504] = 2, ACTIONS(63), 1, anon_sym_COLON_EQ, ACTIONS(3), 2, sym_comment, sym_block_comment, }; static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(12)] = 0, [SMALL_STATE(13)] = 30, [SMALL_STATE(14)] = 60, [SMALL_STATE(15)] = 77, [SMALL_STATE(16)] = 94, [SMALL_STATE(17)] = 111, [SMALL_STATE(18)] = 132, [SMALL_STATE(19)] = 153, [SMALL_STATE(20)] = 174, [SMALL_STATE(21)] = 189, [SMALL_STATE(22)] = 204, [SMALL_STATE(23)] = 218, [SMALL_STATE(24)] = 230, [SMALL_STATE(25)] = 242, [SMALL_STATE(26)] = 258, [SMALL_STATE(27)] = 270, [SMALL_STATE(28)] = 282, [SMALL_STATE(29)] = 294, [SMALL_STATE(30)] = 309, [SMALL_STATE(31)] = 324, [SMALL_STATE(32)] = 339, [SMALL_STATE(33)] = 353, [SMALL_STATE(34)] = 367, [SMALL_STATE(35)] = 381, [SMALL_STATE(36)] = 393, [SMALL_STATE(37)] = 405, [SMALL_STATE(38)] = 414, [SMALL_STATE(39)] = 423, [SMALL_STATE(40)] = 432, [SMALL_STATE(41)] = 440, [SMALL_STATE(42)] = 448, [SMALL_STATE(43)] = 456, [SMALL_STATE(44)] = 464, [SMALL_STATE(45)] = 472, [SMALL_STATE(46)] = 480, [SMALL_STATE(47)] = 488, [SMALL_STATE(48)] = 496, [SMALL_STATE(49)] = 504, }; 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_program, 0, 0, 0), [7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), [9] = {.entry = {.count = 1, .reusable = false}}, SHIFT(15), [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), [19] = {.entry = {.count = 1, .reusable = false}}, SHIFT(35), [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), [23] = {.entry = {.count = 1, .reusable = false}}, SHIFT(36), [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(44), [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(40), [29] = {.entry = {.count = 1, .reusable = false}}, SHIFT(45), [31] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_app, 1, 0, 0), [33] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(15), [36] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(8), [39] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), [41] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(16), [44] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_term, 3, 0, 0), [46] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_term, 1, 0, 0), [48] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_square, 1, 0, 0), [50] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_labs_repeat1, 2, 0, 0), SHIFT_REPEAT(32), [53] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_labs_repeat1, 2, 0, 0), [55] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_labs_repeat1, 2, 0, 0), [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), [59] = {.entry = {.count = 1, .reusable = false}}, SHIFT(5), [61] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), [63] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), [65] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_param_block, 4, 0, 3), [67] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_param_block, 4, 0, 3), [69] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_param_block, 5, 0, 4), [71] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_param_block, 5, 0, 4), [73] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_expr, 1, 0, 0), [75] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_app_term, 1, 0, 0), [79] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pabs, 4, 0, 0), [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_labs, 4, 0, 0), [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_arrow, 3, 0, 0), [87] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), [91] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), SHIFT_REPEAT(18), [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_program, 1, 0, 0), [96] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), [98] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), [100] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), [102] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), [104] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_param_block_repeat1, 2, 0, 0), SHIFT_REPEAT(34), [107] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_param_block_repeat1, 2, 0, 0), [109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_definition, 4, 0, 2), [111] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_definition, 5, 0, 2), [113] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_definition, 6, 0, 2), [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), [119] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), [121] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ascription, 2, 0, 1), [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), }; #ifdef __cplusplus extern "C" { #endif #ifdef TREE_SITTER_HIDE_SYMBOLS #define TS_PUBLIC #elif defined(_WIN32) #define TS_PUBLIC __declspec(dllexport) #else #define TS_PUBLIC __attribute__((visibility("default"))) #endif TS_PUBLIC const TSLanguage *tree_sitter_perga(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