#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 52 #define LARGE_STATE_COUNT 5 #define SYMBOL_COUNT 41 #define ALIAS_COUNT 0 #define TOKEN_COUNT 24 #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_post_command = 22, sym_command = 23, sym_program = 24, sym_param_block = 25, sym_square = 26, sym_labs = 27, sym_pabs = 28, sym_term = 29, sym_app = 30, sym_arrow = 31, sym_app_term = 32, sym_expr = 33, sym_ascription = 34, sym_definition = 35, sym_preprocess = 36, aux_sym_program_repeat1 = 37, aux_sym_param_block_repeat1 = 38, aux_sym_labs_repeat1 = 39, aux_sym_app_repeat1 = 40, }; 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_post_command] = "post_command", [sym_command] = "command", [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", [sym_preprocess] = "preprocess", [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_post_command] = sym_post_command, [sym_command] = sym_command, [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, [sym_preprocess] = sym_preprocess, [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_post_command] = { .visible = true, .named = true, }, [sym_command] = { .visible = true, .named = true, }, [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, }, [sym_preprocess] = { .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, [50] = 50, [51] = 51, }; static bool ts_lex(TSLexer *lexer, TSStateId state) { START_LEXER(); eof = lexer->eof(lexer); switch (state) { case 0: if (eof) ADVANCE(18); ADVANCE_MAP( '(', 33, ')', 35, '*', 36, ',', 45, '-', 6, ':', 34, ';', 50, '=', 7, '@', 12, '[', 3, 'a', 28, 'f', 25, 0x3bb, 39, 0x2192, 48, 0x21d2, 42, 0x220f, 43, 0x25a1, 37, ); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(0); if (('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('b' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 1: if (lookahead == '\n') SKIP(1); if (lookahead == '-') ADVANCE(55); if (lookahead == '[') ADVANCE(54); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') ADVANCE(56); if (lookahead != 0) ADVANCE(57); END_STATE(); case 2: ADVANCE_MAP( '(', 33, '*', 36, '-', 5, '[', 3, 'f', 25, 0x3bb, 39, 0x220f, 43, 0x25a1, 37, ); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(2); if (('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 3: if (lookahead == '*') ADVANCE(4); if (lookahead == ']') ADVANCE(38); END_STATE(); case 4: if (lookahead == '*') ADVANCE(8); if (lookahead == '[') ADVANCE(16); if (lookahead != 0 && lookahead != ']') ADVANCE(4); END_STATE(); case 5: if (lookahead == '-') ADVANCE(30); END_STATE(); case 6: if (lookahead == '-') ADVANCE(30); if (lookahead == '>') ADVANCE(47); END_STATE(); case 7: if (lookahead == '>') ADVANCE(41); END_STATE(); case 8: if (lookahead == ']') ADVANCE(32); if (lookahead != 0) ADVANCE(4); END_STATE(); case 9: if (lookahead == 'c') ADVANCE(13); END_STATE(); case 10: if (lookahead == 'd') ADVANCE(11); END_STATE(); case 11: if (lookahead == 'e') ADVANCE(58); END_STATE(); case 12: if (lookahead == 'i') ADVANCE(14); END_STATE(); case 13: if (lookahead == 'l') ADVANCE(15); END_STATE(); case 14: if (lookahead == 'n') ADVANCE(9); END_STATE(); case 15: if (lookahead == 'u') ADVANCE(10); END_STATE(); case 16: if (lookahead != 0) ADVANCE(4); END_STATE(); case 17: if (eof) ADVANCE(18); ADVANCE_MAP( '(', 33, ')', 35, '*', 36, '-', 6, ':', 34, ';', 50, '@', 12, '[', 3, 0x2192, 48, 0x25a1, 37, ); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(17); if (('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 18: ACCEPT_TOKEN(ts_builtin_sym_end); END_STATE(); case 19: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'a') ADVANCE(22); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('b' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 20: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'i') ADVANCE(26); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 21: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'l') ADVANCE(44); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 22: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'l') ADVANCE(21); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 23: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'm') ADVANCE(46); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 24: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'n') ADVANCE(40); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 25: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'o') ADVANCE(27); if (lookahead == 'u') ADVANCE(24); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 26: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'o') ADVANCE(23); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 27: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'r') ADVANCE(19); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 28: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'x') ADVANCE(20); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 29: ACCEPT_TOKEN(sym_identifier); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 30: ACCEPT_TOKEN(sym_comment); if (lookahead != 0 && lookahead != '\n') ADVANCE(30); END_STATE(); case 31: ACCEPT_TOKEN(sym_block_comment); if (lookahead == '\n') ADVANCE(4); if (lookahead == '*') ADVANCE(52); if (lookahead == '[') ADVANCE(53); if (lookahead == ']') ADVANCE(57); if (lookahead != 0) ADVANCE(51); END_STATE(); case 32: ACCEPT_TOKEN(sym_block_comment); if (lookahead == '*') ADVANCE(8); if (lookahead == '[') ADVANCE(16); if (lookahead != 0 && lookahead != ']') ADVANCE(4); END_STATE(); case 33: ACCEPT_TOKEN(anon_sym_LPAREN); END_STATE(); case 34: ACCEPT_TOKEN(anon_sym_COLON); if (lookahead == '=') ADVANCE(49); END_STATE(); case 35: ACCEPT_TOKEN(anon_sym_RPAREN); END_STATE(); case 36: ACCEPT_TOKEN(sym_star); END_STATE(); case 37: ACCEPT_TOKEN(anon_sym_u25a1); END_STATE(); case 38: ACCEPT_TOKEN(anon_sym_LBRACK_RBRACK); END_STATE(); case 39: ACCEPT_TOKEN(anon_sym_u03bb); END_STATE(); case 40: ACCEPT_TOKEN(anon_sym_fun); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 41: ACCEPT_TOKEN(anon_sym_EQ_GT); END_STATE(); case 42: ACCEPT_TOKEN(anon_sym_u21d2); END_STATE(); case 43: ACCEPT_TOKEN(anon_sym_u220f); END_STATE(); case 44: ACCEPT_TOKEN(anon_sym_forall); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 45: ACCEPT_TOKEN(anon_sym_COMMA); END_STATE(); case 46: ACCEPT_TOKEN(sym_axiom); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(29); END_STATE(); case 47: ACCEPT_TOKEN(anon_sym_DASH_GT); END_STATE(); case 48: ACCEPT_TOKEN(anon_sym_u2192); END_STATE(); case 49: ACCEPT_TOKEN(anon_sym_COLON_EQ); END_STATE(); case 50: ACCEPT_TOKEN(anon_sym_SEMI); END_STATE(); case 51: ACCEPT_TOKEN(sym_post_command); if (lookahead == '\n') ADVANCE(4); if (lookahead == '*') ADVANCE(52); if (lookahead == '[') ADVANCE(53); if (lookahead == ']') ADVANCE(57); if (lookahead != 0) ADVANCE(51); END_STATE(); case 52: ACCEPT_TOKEN(sym_post_command); if (lookahead == '\n') ADVANCE(4); if (lookahead == ']') ADVANCE(31); if (lookahead != 0) ADVANCE(51); END_STATE(); case 53: ACCEPT_TOKEN(sym_post_command); if (lookahead == '\n') ADVANCE(4); if (lookahead != 0) ADVANCE(51); END_STATE(); case 54: ACCEPT_TOKEN(sym_post_command); if (lookahead == '*') ADVANCE(51); if (lookahead != 0 && lookahead != '\n') ADVANCE(57); END_STATE(); case 55: ACCEPT_TOKEN(sym_post_command); if (lookahead == '-') ADVANCE(30); if (lookahead != 0 && lookahead != '\n') ADVANCE(57); END_STATE(); case 56: ACCEPT_TOKEN(sym_post_command); if (lookahead == '-') ADVANCE(55); if (lookahead == '[') ADVANCE(54); if (lookahead == '\t' || (0x0b <= lookahead && lookahead <= '\r') || lookahead == ' ') ADVANCE(56); if (lookahead != 0 && (lookahead < '\t' || '\r' < lookahead)) ADVANCE(57); END_STATE(); case 57: ACCEPT_TOKEN(sym_post_command); if (lookahead != 0 && lookahead != '\n') ADVANCE(57); END_STATE(); case 58: ACCEPT_TOKEN(sym_command); END_STATE(); default: return false; } } static const TSLexMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0}, [1] = {.lex_state = 17}, [2] = {.lex_state = 0}, [3] = {.lex_state = 0}, [4] = {.lex_state = 0}, [5] = {.lex_state = 2}, [6] = {.lex_state = 2}, [7] = {.lex_state = 2}, [8] = {.lex_state = 2}, [9] = {.lex_state = 2}, [10] = {.lex_state = 2}, [11] = {.lex_state = 2}, [12] = {.lex_state = 17}, [13] = {.lex_state = 17}, [14] = {.lex_state = 17}, [15] = {.lex_state = 17}, [16] = {.lex_state = 17}, [17] = {.lex_state = 0}, [18] = {.lex_state = 17}, [19] = {.lex_state = 0}, [20] = {.lex_state = 0}, [21] = {.lex_state = 0}, [22] = {.lex_state = 17}, [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 = 0}, [31] = {.lex_state = 0}, [32] = {.lex_state = 17}, [33] = {.lex_state = 0}, [34] = {.lex_state = 17}, [35] = {.lex_state = 0}, [36] = {.lex_state = 17}, [37] = {.lex_state = 17}, [38] = {.lex_state = 17}, [39] = {.lex_state = 17}, [40] = {.lex_state = 17}, [41] = {.lex_state = 0}, [42] = {.lex_state = 0}, [43] = {.lex_state = 0}, [44] = {.lex_state = 0}, [45] = {.lex_state = 0}, [46] = {.lex_state = 1}, [47] = {.lex_state = 0}, [48] = {.lex_state = 0}, [49] = {.lex_state = 0}, [50] = {.lex_state = 0}, [51] = {.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), [sym_command] = ACTIONS(1), }, [1] = { [sym_program] = STATE(45), [sym_definition] = STATE(18), [sym_preprocess] = STATE(18), [aux_sym_program_repeat1] = STATE(18), [ts_builtin_sym_end] = ACTIONS(5), [sym_identifier] = ACTIONS(7), [sym_comment] = ACTIONS(3), [sym_block_comment] = ACTIONS(3), [sym_command] = ACTIONS(9), }, [2] = { [sym_square] = STATE(14), [sym_labs] = STATE(26), [sym_pabs] = STATE(26), [sym_term] = STATE(12), [sym_app] = STATE(26), [sym_arrow] = STATE(25), [sym_app_term] = STATE(24), [sym_expr] = STATE(43), [aux_sym_app_repeat1] = STATE(12), [sym_identifier] = ACTIONS(11), [sym_comment] = ACTIONS(3), [sym_block_comment] = ACTIONS(3), [anon_sym_LPAREN] = ACTIONS(13), [sym_star] = ACTIONS(15), [anon_sym_u25a1] = ACTIONS(17), [anon_sym_LBRACK_RBRACK] = ACTIONS(17), [anon_sym_u03bb] = ACTIONS(19), [anon_sym_fun] = ACTIONS(21), [anon_sym_u220f] = ACTIONS(23), [anon_sym_forall] = ACTIONS(25), [sym_axiom] = ACTIONS(27), }, [3] = { [sym_square] = STATE(14), [sym_labs] = STATE(26), [sym_pabs] = STATE(26), [sym_term] = STATE(12), [sym_app] = STATE(26), [sym_arrow] = STATE(25), [sym_app_term] = STATE(24), [sym_expr] = STATE(48), [aux_sym_app_repeat1] = STATE(12), [sym_identifier] = ACTIONS(11), [sym_comment] = ACTIONS(3), [sym_block_comment] = ACTIONS(3), [anon_sym_LPAREN] = ACTIONS(13), [sym_star] = ACTIONS(15), [anon_sym_u25a1] = ACTIONS(17), [anon_sym_LBRACK_RBRACK] = ACTIONS(17), [anon_sym_u03bb] = ACTIONS(19), [anon_sym_fun] = ACTIONS(21), [anon_sym_u220f] = ACTIONS(23), [anon_sym_forall] = ACTIONS(25), [sym_axiom] = ACTIONS(29), }, [4] = { [sym_square] = STATE(14), [sym_labs] = STATE(26), [sym_pabs] = STATE(26), [sym_term] = STATE(12), [sym_app] = STATE(26), [sym_arrow] = STATE(25), [sym_app_term] = STATE(24), [sym_expr] = STATE(47), [aux_sym_app_repeat1] = STATE(12), [sym_identifier] = ACTIONS(11), [sym_comment] = ACTIONS(3), [sym_block_comment] = ACTIONS(3), [anon_sym_LPAREN] = ACTIONS(13), [sym_star] = ACTIONS(15), [anon_sym_u25a1] = ACTIONS(17), [anon_sym_LBRACK_RBRACK] = ACTIONS(17), [anon_sym_u03bb] = ACTIONS(19), [anon_sym_fun] = ACTIONS(21), [anon_sym_u220f] = ACTIONS(23), [anon_sym_forall] = ACTIONS(25), [sym_axiom] = ACTIONS(31), }, }; static const uint16_t ts_small_parse_table[] = { [0] = 15, ACTIONS(11), 1, sym_identifier, ACTIONS(13), 1, anon_sym_LPAREN, ACTIONS(15), 1, sym_star, ACTIONS(19), 1, anon_sym_u03bb, ACTIONS(21), 1, anon_sym_fun, ACTIONS(23), 1, anon_sym_u220f, ACTIONS(25), 1, anon_sym_forall, STATE(14), 1, sym_square, STATE(24), 1, sym_app_term, STATE(25), 1, sym_arrow, STATE(49), 1, sym_expr, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(17), 2, anon_sym_u25a1, anon_sym_LBRACK_RBRACK, STATE(12), 2, sym_term, aux_sym_app_repeat1, STATE(26), 3, sym_labs, sym_pabs, sym_app, [51] = 15, ACTIONS(11), 1, sym_identifier, ACTIONS(13), 1, anon_sym_LPAREN, ACTIONS(15), 1, sym_star, ACTIONS(19), 1, anon_sym_u03bb, ACTIONS(21), 1, anon_sym_fun, ACTIONS(23), 1, anon_sym_u220f, ACTIONS(25), 1, anon_sym_forall, STATE(14), 1, sym_square, STATE(24), 1, sym_app_term, STATE(25), 1, sym_arrow, STATE(50), 1, sym_expr, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(17), 2, anon_sym_u25a1, anon_sym_LBRACK_RBRACK, STATE(12), 2, sym_term, aux_sym_app_repeat1, STATE(26), 3, sym_labs, sym_pabs, sym_app, [102] = 15, ACTIONS(11), 1, sym_identifier, ACTIONS(13), 1, anon_sym_LPAREN, ACTIONS(15), 1, sym_star, ACTIONS(19), 1, anon_sym_u03bb, ACTIONS(21), 1, anon_sym_fun, ACTIONS(23), 1, anon_sym_u220f, ACTIONS(25), 1, anon_sym_forall, STATE(14), 1, sym_square, STATE(24), 1, sym_app_term, STATE(25), 1, sym_arrow, STATE(41), 1, sym_expr, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(17), 2, anon_sym_u25a1, anon_sym_LBRACK_RBRACK, STATE(12), 2, sym_term, aux_sym_app_repeat1, STATE(26), 3, sym_labs, sym_pabs, sym_app, [153] = 15, ACTIONS(11), 1, sym_identifier, ACTIONS(13), 1, anon_sym_LPAREN, ACTIONS(15), 1, sym_star, ACTIONS(19), 1, anon_sym_u03bb, ACTIONS(21), 1, anon_sym_fun, ACTIONS(23), 1, anon_sym_u220f, ACTIONS(25), 1, anon_sym_forall, STATE(14), 1, sym_square, STATE(24), 1, sym_app_term, STATE(25), 1, sym_arrow, STATE(51), 1, sym_expr, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(17), 2, anon_sym_u25a1, anon_sym_LBRACK_RBRACK, STATE(12), 2, sym_term, aux_sym_app_repeat1, STATE(26), 3, sym_labs, sym_pabs, sym_app, [204] = 15, ACTIONS(11), 1, sym_identifier, ACTIONS(13), 1, anon_sym_LPAREN, ACTIONS(15), 1, sym_star, ACTIONS(19), 1, anon_sym_u03bb, ACTIONS(21), 1, anon_sym_fun, ACTIONS(23), 1, anon_sym_u220f, ACTIONS(25), 1, anon_sym_forall, STATE(14), 1, sym_square, STATE(24), 1, sym_app_term, STATE(25), 1, sym_arrow, STATE(30), 1, sym_expr, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(17), 2, anon_sym_u25a1, anon_sym_LBRACK_RBRACK, STATE(12), 2, sym_term, aux_sym_app_repeat1, STATE(26), 3, sym_labs, sym_pabs, sym_app, [255] = 15, ACTIONS(11), 1, sym_identifier, ACTIONS(13), 1, anon_sym_LPAREN, ACTIONS(15), 1, sym_star, ACTIONS(19), 1, anon_sym_u03bb, ACTIONS(21), 1, anon_sym_fun, ACTIONS(23), 1, anon_sym_u220f, ACTIONS(25), 1, anon_sym_forall, STATE(14), 1, sym_square, STATE(24), 1, sym_app_term, STATE(25), 1, sym_arrow, STATE(28), 1, sym_expr, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(17), 2, anon_sym_u25a1, anon_sym_LBRACK_RBRACK, STATE(12), 2, sym_term, aux_sym_app_repeat1, STATE(26), 3, sym_labs, sym_pabs, sym_app, [306] = 15, ACTIONS(11), 1, sym_identifier, ACTIONS(13), 1, anon_sym_LPAREN, ACTIONS(15), 1, sym_star, ACTIONS(19), 1, anon_sym_u03bb, ACTIONS(21), 1, anon_sym_fun, ACTIONS(23), 1, anon_sym_u220f, ACTIONS(25), 1, anon_sym_forall, STATE(14), 1, sym_square, STATE(24), 1, sym_app_term, STATE(25), 1, sym_arrow, STATE(29), 1, sym_expr, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(17), 2, anon_sym_u25a1, anon_sym_LBRACK_RBRACK, STATE(12), 2, sym_term, aux_sym_app_repeat1, STATE(26), 3, sym_labs, sym_pabs, sym_app, [357] = 7, ACTIONS(13), 1, anon_sym_LPAREN, STATE(14), 1, sym_square, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(15), 2, sym_identifier, sym_star, ACTIONS(17), 2, anon_sym_u25a1, anon_sym_LBRACK_RBRACK, STATE(13), 2, sym_term, aux_sym_app_repeat1, ACTIONS(33), 5, anon_sym_RPAREN, anon_sym_DASH_GT, anon_sym_u2192, anon_sym_COLON_EQ, anon_sym_SEMI, [387] = 7, ACTIONS(38), 1, anon_sym_LPAREN, STATE(14), 1, sym_square, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(35), 2, sym_identifier, sym_star, ACTIONS(43), 2, anon_sym_u25a1, anon_sym_LBRACK_RBRACK, STATE(13), 2, sym_term, aux_sym_app_repeat1, ACTIONS(41), 5, anon_sym_RPAREN, anon_sym_DASH_GT, anon_sym_u2192, anon_sym_COLON_EQ, anon_sym_SEMI, [417] = 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, [434] = 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, [451] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(50), 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, [468] = 5, ACTIONS(52), 1, anon_sym_LPAREN, ACTIONS(55), 1, anon_sym_COLON, ACTIONS(3), 2, sym_comment, sym_block_comment, STATE(17), 2, sym_param_block, aux_sym_labs_repeat1, ACTIONS(57), 4, anon_sym_EQ_GT, anon_sym_u21d2, anon_sym_COMMA, anon_sym_COLON_EQ, [489] = 5, ACTIONS(7), 1, sym_identifier, ACTIONS(9), 1, sym_command, ACTIONS(59), 1, ts_builtin_sym_end, ACTIONS(3), 2, sym_comment, sym_block_comment, STATE(22), 3, sym_definition, sym_preprocess, aux_sym_program_repeat1, [508] = 6, ACTIONS(61), 1, anon_sym_LPAREN, ACTIONS(63), 1, anon_sym_COLON, ACTIONS(65), 1, anon_sym_COLON_EQ, STATE(44), 1, sym_ascription, ACTIONS(3), 2, sym_comment, sym_block_comment, STATE(20), 2, sym_param_block, aux_sym_labs_repeat1, [529] = 6, ACTIONS(61), 1, anon_sym_LPAREN, ACTIONS(63), 1, anon_sym_COLON, ACTIONS(67), 1, anon_sym_COLON_EQ, STATE(42), 1, sym_ascription, ACTIONS(3), 2, sym_comment, sym_block_comment, STATE(17), 2, sym_param_block, aux_sym_labs_repeat1, [550] = 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, [565] = 5, ACTIONS(73), 1, ts_builtin_sym_end, ACTIONS(75), 1, sym_identifier, ACTIONS(78), 1, sym_command, ACTIONS(3), 2, sym_comment, sym_block_comment, STATE(22), 3, sym_definition, sym_preprocess, aux_sym_program_repeat1, [584] = 3, ACTIONS(83), 1, anon_sym_COLON, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(81), 5, anon_sym_LPAREN, anon_sym_EQ_GT, anon_sym_u21d2, anon_sym_COMMA, anon_sym_COLON_EQ, [599] = 3, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(87), 2, anon_sym_DASH_GT, anon_sym_u2192, ACTIONS(85), 3, anon_sym_RPAREN, anon_sym_COLON_EQ, anon_sym_SEMI, [613] = 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, [625] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(89), 5, anon_sym_RPAREN, anon_sym_DASH_GT, anon_sym_u2192, anon_sym_COLON_EQ, anon_sym_SEMI, [637] = 4, ACTIONS(61), 1, anon_sym_LPAREN, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(91), 2, anon_sym_EQ_GT, anon_sym_u21d2, STATE(17), 2, sym_param_block, aux_sym_labs_repeat1, [653] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(93), 5, anon_sym_RPAREN, anon_sym_DASH_GT, anon_sym_u2192, anon_sym_COLON_EQ, anon_sym_SEMI, [665] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(95), 5, anon_sym_RPAREN, anon_sym_DASH_GT, anon_sym_u2192, anon_sym_COLON_EQ, anon_sym_SEMI, [677] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(97), 5, anon_sym_RPAREN, anon_sym_DASH_GT, anon_sym_u2192, anon_sym_COLON_EQ, anon_sym_SEMI, [689] = 4, ACTIONS(61), 1, anon_sym_LPAREN, ACTIONS(99), 1, anon_sym_COMMA, ACTIONS(3), 2, sym_comment, sym_block_comment, STATE(17), 2, sym_param_block, aux_sym_labs_repeat1, [704] = 4, ACTIONS(101), 1, sym_identifier, ACTIONS(103), 1, anon_sym_COLON, STATE(36), 1, aux_sym_param_block_repeat1, ACTIONS(3), 2, sym_comment, sym_block_comment, [718] = 3, ACTIONS(61), 1, anon_sym_LPAREN, ACTIONS(3), 2, sym_comment, sym_block_comment, STATE(27), 2, sym_param_block, aux_sym_labs_repeat1, [730] = 4, ACTIONS(105), 1, sym_identifier, ACTIONS(107), 1, anon_sym_COLON, STATE(32), 1, aux_sym_param_block_repeat1, ACTIONS(3), 2, sym_comment, sym_block_comment, [744] = 3, ACTIONS(61), 1, anon_sym_LPAREN, ACTIONS(3), 2, sym_comment, sym_block_comment, STATE(31), 2, sym_param_block, aux_sym_labs_repeat1, [756] = 4, ACTIONS(109), 1, sym_identifier, ACTIONS(112), 1, anon_sym_COLON, STATE(36), 1, aux_sym_param_block_repeat1, ACTIONS(3), 2, sym_comment, sym_block_comment, [770] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(114), 3, ts_builtin_sym_end, sym_identifier, sym_command, [780] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(116), 3, ts_builtin_sym_end, sym_identifier, sym_command, [790] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(118), 3, ts_builtin_sym_end, sym_identifier, sym_command, [800] = 2, ACTIONS(3), 2, sym_comment, sym_block_comment, ACTIONS(120), 3, ts_builtin_sym_end, sym_identifier, sym_command, [810] = 2, ACTIONS(122), 1, anon_sym_RPAREN, ACTIONS(3), 2, sym_comment, sym_block_comment, [818] = 2, ACTIONS(124), 1, anon_sym_COLON_EQ, ACTIONS(3), 2, sym_comment, sym_block_comment, [826] = 2, ACTIONS(126), 1, anon_sym_SEMI, ACTIONS(3), 2, sym_comment, sym_block_comment, [834] = 2, ACTIONS(67), 1, anon_sym_COLON_EQ, ACTIONS(3), 2, sym_comment, sym_block_comment, [842] = 2, ACTIONS(128), 1, ts_builtin_sym_end, ACTIONS(3), 2, sym_comment, sym_block_comment, [850] = 2, ACTIONS(132), 1, sym_post_command, ACTIONS(130), 2, sym_comment, sym_block_comment, [858] = 2, ACTIONS(134), 1, anon_sym_SEMI, ACTIONS(3), 2, sym_comment, sym_block_comment, [866] = 2, ACTIONS(136), 1, anon_sym_SEMI, ACTIONS(3), 2, sym_comment, sym_block_comment, [874] = 2, ACTIONS(138), 1, anon_sym_COLON_EQ, ACTIONS(3), 2, sym_comment, sym_block_comment, [882] = 2, ACTIONS(140), 1, anon_sym_RPAREN, ACTIONS(3), 2, sym_comment, sym_block_comment, [890] = 2, ACTIONS(142), 1, anon_sym_RPAREN, ACTIONS(3), 2, sym_comment, sym_block_comment, }; static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(5)] = 0, [SMALL_STATE(6)] = 51, [SMALL_STATE(7)] = 102, [SMALL_STATE(8)] = 153, [SMALL_STATE(9)] = 204, [SMALL_STATE(10)] = 255, [SMALL_STATE(11)] = 306, [SMALL_STATE(12)] = 357, [SMALL_STATE(13)] = 387, [SMALL_STATE(14)] = 417, [SMALL_STATE(15)] = 434, [SMALL_STATE(16)] = 451, [SMALL_STATE(17)] = 468, [SMALL_STATE(18)] = 489, [SMALL_STATE(19)] = 508, [SMALL_STATE(20)] = 529, [SMALL_STATE(21)] = 550, [SMALL_STATE(22)] = 565, [SMALL_STATE(23)] = 584, [SMALL_STATE(24)] = 599, [SMALL_STATE(25)] = 613, [SMALL_STATE(26)] = 625, [SMALL_STATE(27)] = 637, [SMALL_STATE(28)] = 653, [SMALL_STATE(29)] = 665, [SMALL_STATE(30)] = 677, [SMALL_STATE(31)] = 689, [SMALL_STATE(32)] = 704, [SMALL_STATE(33)] = 718, [SMALL_STATE(34)] = 730, [SMALL_STATE(35)] = 744, [SMALL_STATE(36)] = 756, [SMALL_STATE(37)] = 770, [SMALL_STATE(38)] = 780, [SMALL_STATE(39)] = 790, [SMALL_STATE(40)] = 800, [SMALL_STATE(41)] = 810, [SMALL_STATE(42)] = 818, [SMALL_STATE(43)] = 826, [SMALL_STATE(44)] = 834, [SMALL_STATE(45)] = 842, [SMALL_STATE(46)] = 850, [SMALL_STATE(47)] = 858, [SMALL_STATE(48)] = 866, [SMALL_STATE(49)] = 874, [SMALL_STATE(50)] = 882, [SMALL_STATE(51)] = 890, }; 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(19), [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), [11] = {.entry = {.count = 1, .reusable = false}}, SHIFT(14), [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), [21] = {.entry = {.count = 1, .reusable = false}}, SHIFT(33), [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(35), [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(43), [29] = {.entry = {.count = 1, .reusable = false}}, SHIFT(48), [31] = {.entry = {.count = 1, .reusable = false}}, SHIFT(47), [33] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_app, 1, 0, 0), [35] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(14), [38] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(6), [41] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), [43] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(15), [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 = 1, .reusable = true}}, REDUCE(sym_term, 3, 0, 0), [52] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_labs_repeat1, 2, 0, 0), SHIFT_REPEAT(34), [55] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_labs_repeat1, 2, 0, 0), [57] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_labs_repeat1, 2, 0, 0), [59] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_program, 1, 0, 0), [61] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), [63] = {.entry = {.count = 1, .reusable = false}}, SHIFT(5), [65] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), [67] = {.entry = {.count = 1, .reusable = true}}, SHIFT(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(aux_sym_program_repeat1, 2, 0, 0), [75] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), SHIFT_REPEAT(19), [78] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), SHIFT_REPEAT(46), [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_param_block, 4, 0, 3), [83] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_param_block, 4, 0, 3), [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_expr, 1, 0, 0), [87] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_app_term, 1, 0, 0), [91] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_labs, 4, 0, 0), [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pabs, 4, 0, 0), [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_arrow, 3, 0, 0), [99] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), [101] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), [103] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), [105] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), [107] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), [109] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_param_block_repeat1, 2, 0, 0), SHIFT_REPEAT(36), [112] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_param_block_repeat1, 2, 0, 0), [114] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_definition, 5, 0, 2), [116] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_definition, 4, 0, 2), [118] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_preprocess, 2, 0, 0), [120] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_definition, 6, 0, 2), [122] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), [124] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), [126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), [128] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), [130] = {.entry = {.count = 1, .reusable = false}}, SHIFT_EXTRA(), [132] = {.entry = {.count = 1, .reusable = false}}, SHIFT(39), [134] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), [136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), [138] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ascription, 2, 0, 1), [140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), [142] = {.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