tree-sitter-perga/src/parser.c

2615 lines
63 KiB
C
Raw Normal View History

2024-11-20 19:29:09 -08:00
#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 92
2024-11-23 10:06:53 -08:00
#define LARGE_STATE_COUNT 2
#define SYMBOL_COUNT 48
2024-11-20 19:29:09 -08:00
#define ALIAS_COUNT 0
2024-11-23 10:06:53 -08:00
#define TOKEN_COUNT 27
2024-11-20 19:29:09 -08:00
#define EXTERNAL_TOKEN_COUNT 0
2024-11-20 21:46:51 -08:00
#define FIELD_COUNT 3
#define MAX_ALIAS_SEQUENCE_LENGTH 7
2024-11-23 10:39:33 -08:00
#define PRODUCTION_ID_COUNT 4
2024-11-20 19:29:09 -08:00
enum ts_symbol_identifiers {
sym_identifier = 1,
sym_comment = 2,
anon_sym_LPAREN = 3,
anon_sym_COLON = 4,
anon_sym_RPAREN = 5,
sym_star = 6,
anon_sym_u25a1 = 7,
anon_sym_LBRACK_RBRACK = 8,
anon_sym_u03bb = 9,
anon_sym_fun = 10,
anon_sym_EQ_GT = 11,
anon_sym_u21d2 = 12,
anon_sym_u220f = 13,
anon_sym_forall = 14,
anon_sym_COMMA = 15,
anon_sym_COLON_EQ = 16,
anon_sym_let = 17,
anon_sym_in = 18,
anon_sym_end = 19,
anon_sym_axiom = 20,
anon_sym_SEMI = 21,
2024-11-23 10:06:53 -08:00
anon_sym_DASH_GT = 22,
anon_sym_u2192 = 23,
anon_sym_def = 24,
2024-11-23 10:06:53 -08:00
sym_post_command = 25,
sym_command = 26,
sym_program = 27,
sym_param_block = 28,
sym_square = 29,
sym_labs = 30,
sym_pabs = 31,
sym_term = 32,
sym_binding = 33,
sym_let = 34,
sym_app = 35,
sym_axiom = 36,
sym_arrow = 37,
sym_app_term = 38,
sym_expr = 39,
sym_ascription = 40,
sym_definition = 41,
sym_preprocess = 42,
aux_sym_program_repeat1 = 43,
aux_sym_param_block_repeat1 = 44,
aux_sym_labs_repeat1 = 45,
aux_sym_let_repeat1 = 46,
aux_sym_app_repeat1 = 47,
2024-11-20 19:29:09 -08:00
};
static const char * const ts_symbol_names[] = {
[ts_builtin_sym_end] = "end",
[sym_identifier] = "identifier",
[sym_comment] = "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",
2024-11-20 21:46:51 -08:00
[anon_sym_u220f] = "\u220f",
[anon_sym_forall] = "forall",
2024-11-20 19:29:09 -08:00
[anon_sym_COMMA] = ",",
2024-11-23 10:06:53 -08:00
[anon_sym_COLON_EQ] = ":=",
[anon_sym_let] = "let",
[anon_sym_in] = "in",
[anon_sym_end] = "end",
[anon_sym_axiom] = "axiom",
[anon_sym_SEMI] = ";",
2024-11-20 19:29:09 -08:00
[anon_sym_DASH_GT] = "->",
[anon_sym_u2192] = "\u2192",
[anon_sym_def] = "def",
2024-11-22 10:37:30 -08:00
[sym_post_command] = "post_command",
[sym_command] = "command",
2024-11-20 19:29:09 -08:00
[sym_program] = "program",
[sym_param_block] = "param_block",
[sym_square] = "square",
[sym_labs] = "labs",
[sym_pabs] = "pabs",
[sym_term] = "term",
2024-11-23 10:06:53 -08:00
[sym_binding] = "binding",
[sym_let] = "let",
2024-11-20 19:29:09 -08:00
[sym_app] = "app",
[sym_axiom] = "axiom",
2024-11-20 19:29:09 -08:00
[sym_arrow] = "arrow",
[sym_app_term] = "app_term",
[sym_expr] = "expr",
[sym_ascription] = "ascription",
[sym_definition] = "definition",
2024-11-22 10:37:30 -08:00
[sym_preprocess] = "preprocess",
2024-11-20 19:29:09 -08:00
[aux_sym_program_repeat1] = "program_repeat1",
[aux_sym_param_block_repeat1] = "param_block_repeat1",
[aux_sym_labs_repeat1] = "labs_repeat1",
2024-11-23 10:06:53 -08:00
[aux_sym_let_repeat1] = "let_repeat1",
2024-11-20 19:29:09 -08:00
[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,
[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,
2024-11-20 21:46:51 -08:00
[anon_sym_u220f] = anon_sym_u220f,
[anon_sym_forall] = anon_sym_forall,
2024-11-20 19:29:09 -08:00
[anon_sym_COMMA] = anon_sym_COMMA,
2024-11-23 10:06:53 -08:00
[anon_sym_COLON_EQ] = anon_sym_COLON_EQ,
[anon_sym_let] = anon_sym_let,
[anon_sym_in] = anon_sym_in,
[anon_sym_end] = anon_sym_end,
[anon_sym_axiom] = anon_sym_axiom,
[anon_sym_SEMI] = anon_sym_SEMI,
2024-11-20 19:29:09 -08:00
[anon_sym_DASH_GT] = anon_sym_DASH_GT,
[anon_sym_u2192] = anon_sym_u2192,
[anon_sym_def] = anon_sym_def,
2024-11-22 10:37:30 -08:00
[sym_post_command] = sym_post_command,
[sym_command] = sym_command,
2024-11-20 19:29:09 -08:00
[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,
2024-11-23 10:06:53 -08:00
[sym_binding] = sym_binding,
[sym_let] = sym_let,
2024-11-20 19:29:09 -08:00
[sym_app] = sym_app,
[sym_axiom] = sym_axiom,
2024-11-20 19:29:09 -08:00
[sym_arrow] = sym_arrow,
[sym_app_term] = sym_app_term,
[sym_expr] = sym_expr,
[sym_ascription] = sym_ascription,
[sym_definition] = sym_definition,
2024-11-22 10:37:30 -08:00
[sym_preprocess] = sym_preprocess,
2024-11-20 19:29:09 -08:00
[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,
2024-11-23 10:06:53 -08:00
[aux_sym_let_repeat1] = aux_sym_let_repeat1,
2024-11-20 19:29:09 -08:00
[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,
},
[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,
},
2024-11-20 21:46:51 -08:00
[anon_sym_EQ_GT] = {
2024-11-20 19:29:09 -08:00
.visible = true,
.named = false,
},
2024-11-20 21:46:51 -08:00
[anon_sym_u21d2] = {
2024-11-20 19:29:09 -08:00
.visible = true,
.named = false,
},
2024-11-20 21:46:51 -08:00
[anon_sym_u220f] = {
2024-11-20 19:29:09 -08:00
.visible = true,
.named = false,
},
2024-11-20 21:46:51 -08:00
[anon_sym_forall] = {
2024-11-20 19:29:09 -08:00
.visible = true,
.named = false,
},
[anon_sym_COMMA] = {
.visible = true,
.named = false,
},
2024-11-23 10:06:53 -08:00
[anon_sym_COLON_EQ] = {
.visible = true,
.named = false,
},
[anon_sym_let] = {
.visible = true,
.named = false,
},
[anon_sym_in] = {
.visible = true,
.named = false,
},
[anon_sym_end] = {
.visible = true,
.named = false,
},
[anon_sym_axiom] = {
2024-11-20 19:29:09 -08:00
.visible = true,
.named = false,
},
[anon_sym_SEMI] = {
.visible = true,
.named = false,
2024-11-20 19:29:09 -08:00
},
[anon_sym_DASH_GT] = {
.visible = true,
.named = false,
},
[anon_sym_u2192] = {
.visible = true,
.named = false,
},
[anon_sym_def] = {
2024-11-20 19:29:09 -08:00
.visible = true,
.named = false,
},
2024-11-22 10:37:30 -08:00
[sym_post_command] = {
.visible = true,
.named = true,
},
[sym_command] = {
.visible = true,
.named = true,
},
2024-11-20 19:29:09 -08:00
[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,
},
2024-11-23 10:06:53 -08:00
[sym_binding] = {
.visible = true,
.named = true,
},
[sym_let] = {
.visible = true,
.named = true,
},
2024-11-20 19:29:09 -08:00
[sym_app] = {
.visible = true,
.named = true,
},
[sym_axiom] = {
.visible = true,
.named = true,
},
2024-11-20 19:29:09 -08:00
[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,
},
2024-11-22 10:37:30 -08:00
[sym_preprocess] = {
.visible = true,
.named = true,
},
2024-11-20 19:29:09 -08:00
[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,
},
2024-11-23 10:06:53 -08:00
[aux_sym_let_repeat1] = {
.visible = false,
.named = false,
},
2024-11-20 19:29:09 -08:00
[aux_sym_app_repeat1] = {
.visible = false,
.named = false,
},
};
2024-11-20 21:46:51 -08:00
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},
2024-11-23 10:39:33 -08:00
[3] = {.index = 2, .length = 2},
2024-11-20 21:46:51 -08:00
};
static const TSFieldMapEntry ts_field_map_entries[] = {
[0] =
{field_type, 1},
[1] =
{field_name, 1},
2024-11-20 21:46:51 -08:00
[2] =
{field_param, 1},
{field_type, 3},
};
2024-11-20 19:29:09 -08:00
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] = 6,
[15] = 15,
[16] = 9,
[17] = 15,
[18] = 4,
2024-11-20 19:29:09 -08:00
[19] = 19,
[20] = 20,
[21] = 20,
[22] = 19,
2024-11-20 19:29:09 -08:00
[23] = 23,
[24] = 24,
[25] = 25,
2024-11-23 10:39:33 -08:00
[26] = 26,
[27] = 27,
[28] = 28,
[29] = 24,
[30] = 23,
[31] = 25,
2024-11-20 19:29:09 -08:00
[32] = 32,
[33] = 33,
[34] = 34,
[35] = 35,
[36] = 36,
[37] = 37,
[38] = 38,
[39] = 39,
[40] = 40,
[41] = 41,
[42] = 42,
2024-11-23 10:39:33 -08:00
[43] = 43,
2024-11-20 19:29:09 -08:00
[44] = 44,
[45] = 45,
[46] = 46,
[47] = 45,
[48] = 48,
2024-11-20 19:29:09 -08:00
[49] = 49,
2024-11-22 10:37:30 -08:00
[50] = 50,
[51] = 51,
2024-11-23 10:06:53 -08:00
[52] = 52,
[53] = 53,
[54] = 54,
[55] = 55,
[56] = 56,
[57] = 55,
2024-11-23 10:06:53 -08:00
[58] = 58,
2024-11-23 10:39:33 -08:00
[59] = 59,
[60] = 60,
[61] = 43,
2024-11-23 10:06:53 -08:00
[62] = 62,
[63] = 63,
[64] = 58,
[65] = 63,
2024-11-23 10:06:53 -08:00
[66] = 66,
[67] = 67,
[68] = 68,
[69] = 69,
[70] = 70,
[71] = 71,
[72] = 72,
[73] = 73,
2024-11-23 10:39:33 -08:00
[74] = 74,
2024-11-23 10:06:53 -08:00
[75] = 75,
[76] = 76,
[77] = 77,
2024-11-23 10:39:33 -08:00
[78] = 78,
[79] = 79,
[80] = 80,
[81] = 81,
[82] = 82,
[83] = 83,
[84] = 84,
[85] = 85,
[86] = 76,
[87] = 87,
[88] = 88,
[89] = 89,
[90] = 90,
[91] = 91,
2024-11-20 19:29:09 -08:00
};
static bool ts_lex(TSLexer *lexer, TSStateId state) {
START_LEXER();
eof = lexer->eof(lexer);
switch (state) {
case 0:
if (eof) ADVANCE(33);
2024-11-20 19:29:09 -08:00
ADVANCE_MAP(
'(', 46,
')', 48,
'*', 49,
',', 60,
'-', 6,
':', 47,
';', 68,
'=', 7,
2024-11-23 10:06:53 -08:00
'@', 18,
'[', 8,
2024-11-23 10:06:53 -08:00
'a', 32,
'd', 13,
2024-11-23 10:06:53 -08:00
'e', 23,
'f', 27,
'i', 24,
'l', 14,
0x3bb, 52,
0x2192, 70,
0x21d2, 56,
0x220f, 57,
0x25a1, 50,
2024-11-20 19:29:09 -08:00
);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') SKIP(0);
END_STATE();
case 1:
2024-11-22 10:37:30 -08:00
if (lookahead == '\n') SKIP(1);
if (lookahead == '-') ADVANCE(72);
2024-11-22 10:37:30 -08:00
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') ADVANCE(73);
if (lookahead != 0) ADVANCE(74);
2024-11-22 10:37:30 -08:00
END_STATE();
case 2:
ADVANCE_MAP(
'(', 46,
')', 48,
'*', 49,
'-', 6,
':', 47,
';', 68,
'[', 8,
0x2192, 70,
0x25a1, 50,
);
2024-11-20 19:29:09 -08:00
if (('\t' <= lookahead && lookahead <= '\r') ||
2024-11-22 10:37:30 -08:00
lookahead == ' ') SKIP(2);
2024-11-20 19:29:09 -08:00
if (('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-20 19:29:09 -08:00
END_STATE();
case 3:
if (lookahead == '(') ADVANCE(46);
if (lookahead == '*') ADVANCE(49);
if (lookahead == '-') ADVANCE(6);
if (lookahead == '[') ADVANCE(8);
if (lookahead == 'e') ADVANCE(40);
if (lookahead == 0x2192) ADVANCE(70);
if (lookahead == 0x25a1) ADVANCE(50);
2024-11-23 10:06:53 -08:00
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') SKIP(3);
if (('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-20 19:29:09 -08:00
END_STATE();
case 4:
2024-11-23 10:06:53 -08:00
ADVANCE_MAP(
'(', 46,
'*', 49,
'-', 5,
'[', 8,
'f', 41,
'l', 36,
0x3bb, 52,
0x220f, 57,
0x25a1, 50,
2024-11-23 10:06:53 -08:00
);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') SKIP(4);
if (('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-20 19:29:09 -08:00
END_STATE();
case 5:
if (lookahead == '-') ADVANCE(45);
2024-11-21 13:14:46 -08:00
END_STATE();
case 6:
if (lookahead == '-') ADVANCE(45);
if (lookahead == '>') ADVANCE(69);
2024-11-21 13:14:46 -08:00
END_STATE();
case 7:
if (lookahead == '>') ADVANCE(55);
2024-11-21 13:14:46 -08:00
END_STATE();
case 8:
if (lookahead == ']') ADVANCE(51);
2024-11-21 13:14:46 -08:00
END_STATE();
case 9:
if (lookahead == 'a') ADVANCE(21);
2024-11-22 10:37:30 -08:00
END_STATE();
case 10:
if (lookahead == 'c') ADVANCE(19);
2024-11-22 10:37:30 -08:00
END_STATE();
case 11:
if (lookahead == 'd') ADVANCE(65);
2024-11-22 10:37:30 -08:00
END_STATE();
case 12:
if (lookahead == 'd') ADVANCE(15);
2024-11-22 10:37:30 -08:00
END_STATE();
case 13:
if (lookahead == 'e') ADVANCE(16);
2024-11-22 10:37:30 -08:00
END_STATE();
case 14:
if (lookahead == 'e') ADVANCE(30);
2024-11-22 10:37:30 -08:00
END_STATE();
case 15:
if (lookahead == 'e') ADVANCE(75);
2024-11-22 10:37:30 -08:00
END_STATE();
case 16:
if (lookahead == 'f') ADVANCE(71);
2024-11-22 10:37:30 -08:00
END_STATE();
case 17:
2024-11-23 10:06:53 -08:00
if (lookahead == 'i') ADVANCE(28);
END_STATE();
case 18:
if (lookahead == 'i') ADVANCE(25);
END_STATE();
case 19:
if (lookahead == 'l') ADVANCE(31);
END_STATE();
case 20:
if (lookahead == 'l') ADVANCE(58);
2024-11-23 10:06:53 -08:00
END_STATE();
case 21:
if (lookahead == 'l') ADVANCE(20);
END_STATE();
case 22:
if (lookahead == 'm') ADVANCE(67);
2024-11-23 10:06:53 -08:00
END_STATE();
case 23:
if (lookahead == 'n') ADVANCE(11);
2024-11-23 10:06:53 -08:00
END_STATE();
case 24:
if (lookahead == 'n') ADVANCE(64);
2024-11-23 10:06:53 -08:00
END_STATE();
case 25:
if (lookahead == 'n') ADVANCE(10);
2024-11-23 10:06:53 -08:00
END_STATE();
case 26:
if (lookahead == 'n') ADVANCE(53);
2024-11-23 10:06:53 -08:00
END_STATE();
case 27:
if (lookahead == 'o') ADVANCE(29);
if (lookahead == 'u') ADVANCE(26);
END_STATE();
case 28:
if (lookahead == 'o') ADVANCE(22);
END_STATE();
case 29:
if (lookahead == 'r') ADVANCE(9);
2024-11-23 10:06:53 -08:00
END_STATE();
case 30:
if (lookahead == 't') ADVANCE(62);
2024-11-23 10:06:53 -08:00
END_STATE();
case 31:
if (lookahead == 'u') ADVANCE(12);
2024-11-23 10:06:53 -08:00
END_STATE();
case 32:
if (lookahead == 'x') ADVANCE(17);
END_STATE();
case 33:
ACCEPT_TOKEN(ts_builtin_sym_end);
2024-11-23 10:06:53 -08:00
END_STATE();
case 34:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'a') ADVANCE(38);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
2024-11-20 19:29:09 -08:00
lookahead == '_' ||
('b' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 35:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'd') ADVANCE(66);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 36:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'e') ADVANCE(43);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 37:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'l') ADVANCE(59);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 38:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'l') ADVANCE(37);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 39:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'n') ADVANCE(54);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 40:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'n') ADVANCE(35);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 41:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'o') ADVANCE(42);
if (lookahead == 'u') ADVANCE(39);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 42:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'r') ADVANCE(34);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 43:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 't') ADVANCE(63);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 44:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(sym_identifier);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 45:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(sym_comment);
if (lookahead != 0 &&
lookahead != '\n') ADVANCE(45);
2024-11-21 13:14:46 -08:00
END_STATE();
case 46:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_LPAREN);
END_STATE();
case 47:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_COLON);
if (lookahead == '=') ADVANCE(61);
2024-11-20 19:29:09 -08:00
END_STATE();
case 48:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_RPAREN);
END_STATE();
case 49:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(sym_star);
END_STATE();
case 50:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_u25a1);
END_STATE();
case 51:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_LBRACK_RBRACK);
END_STATE();
case 52:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_u03bb);
END_STATE();
case 53:
2024-11-23 10:06:53 -08:00
ACCEPT_TOKEN(anon_sym_fun);
END_STATE();
case 54:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_fun);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-20 19:29:09 -08:00
END_STATE();
case 55:
2024-11-20 21:46:51 -08:00
ACCEPT_TOKEN(anon_sym_EQ_GT);
2024-11-20 19:29:09 -08:00
END_STATE();
case 56:
2024-11-20 21:46:51 -08:00
ACCEPT_TOKEN(anon_sym_u21d2);
END_STATE();
case 57:
2024-11-20 21:46:51 -08:00
ACCEPT_TOKEN(anon_sym_u220f);
END_STATE();
case 58:
2024-11-23 10:06:53 -08:00
ACCEPT_TOKEN(anon_sym_forall);
END_STATE();
case 59:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_forall);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-20 19:29:09 -08:00
END_STATE();
case 60:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_COMMA);
END_STATE();
case 61:
2024-11-23 10:06:53 -08:00
ACCEPT_TOKEN(anon_sym_COLON_EQ);
END_STATE();
case 62:
2024-11-23 10:06:53 -08:00
ACCEPT_TOKEN(anon_sym_let);
END_STATE();
case 63:
2024-11-23 10:06:53 -08:00
ACCEPT_TOKEN(anon_sym_let);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-23 10:06:53 -08:00
END_STATE();
case 64:
2024-11-23 10:06:53 -08:00
ACCEPT_TOKEN(anon_sym_in);
END_STATE();
case 65:
2024-11-23 10:06:53 -08:00
ACCEPT_TOKEN(anon_sym_end);
END_STATE();
case 66:
2024-11-23 10:06:53 -08:00
ACCEPT_TOKEN(anon_sym_end);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(44);
2024-11-23 10:06:53 -08:00
END_STATE();
case 67:
ACCEPT_TOKEN(anon_sym_axiom);
2024-11-23 10:06:53 -08:00
END_STATE();
case 68:
ACCEPT_TOKEN(anon_sym_SEMI);
2024-11-20 19:29:09 -08:00
END_STATE();
case 69:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_DASH_GT);
END_STATE();
case 70:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_u2192);
END_STATE();
case 71:
ACCEPT_TOKEN(anon_sym_def);
2024-11-22 10:37:30 -08:00
END_STATE();
case 72:
2024-11-22 10:37:30 -08:00
ACCEPT_TOKEN(sym_post_command);
if (lookahead == '-') ADVANCE(45);
2024-11-22 10:37:30 -08:00
if (lookahead != 0 &&
lookahead != '\n') ADVANCE(74);
2024-11-22 10:37:30 -08:00
END_STATE();
case 73:
2024-11-22 10:37:30 -08:00
ACCEPT_TOKEN(sym_post_command);
if (lookahead == '-') ADVANCE(72);
2024-11-22 10:37:30 -08:00
if (lookahead == '\t' ||
(0x0b <= lookahead && lookahead <= '\r') ||
lookahead == ' ') ADVANCE(73);
2024-11-22 10:37:30 -08:00
if (lookahead != 0 &&
(lookahead < '\t' || '\r' < lookahead)) ADVANCE(74);
2024-11-22 10:37:30 -08:00
END_STATE();
case 74:
2024-11-22 10:37:30 -08:00
ACCEPT_TOKEN(sym_post_command);
if (lookahead != 0 &&
lookahead != '\n') ADVANCE(74);
2024-11-22 10:37:30 -08:00
END_STATE();
case 75:
2024-11-22 10:37:30 -08:00
ACCEPT_TOKEN(sym_command);
END_STATE();
2024-11-20 19:29:09 -08:00
default:
return false;
}
}
static const TSLexMode ts_lex_modes[STATE_COUNT] = {
[0] = {.lex_state = 0},
[1] = {.lex_state = 0},
[2] = {.lex_state = 4},
[3] = {.lex_state = 4},
[4] = {.lex_state = 4},
2024-11-23 10:06:53 -08:00
[5] = {.lex_state = 4},
[6] = {.lex_state = 4},
[7] = {.lex_state = 4},
[8] = {.lex_state = 4},
[9] = {.lex_state = 4},
[10] = {.lex_state = 4},
[11] = {.lex_state = 4},
[12] = {.lex_state = 4},
[13] = {.lex_state = 4},
[14] = {.lex_state = 4},
[15] = {.lex_state = 4},
[16] = {.lex_state = 4},
[17] = {.lex_state = 4},
[18] = {.lex_state = 4},
[19] = {.lex_state = 2},
2024-11-23 10:06:53 -08:00
[20] = {.lex_state = 2},
[21] = {.lex_state = 3},
[22] = {.lex_state = 3},
[23] = {.lex_state = 2},
[24] = {.lex_state = 2},
2024-11-23 10:39:33 -08:00
[25] = {.lex_state = 2},
[26] = {.lex_state = 0},
[27] = {.lex_state = 0},
[28] = {.lex_state = 0},
[29] = {.lex_state = 3},
[30] = {.lex_state = 3},
[31] = {.lex_state = 3},
[32] = {.lex_state = 0},
2024-11-22 10:37:30 -08:00
[33] = {.lex_state = 0},
2024-11-23 10:06:53 -08:00
[34] = {.lex_state = 0},
2024-11-21 13:14:46 -08:00
[35] = {.lex_state = 0},
2024-11-23 10:06:53 -08:00
[36] = {.lex_state = 0},
2024-11-23 10:39:33 -08:00
[37] = {.lex_state = 0},
2024-11-23 10:06:53 -08:00
[38] = {.lex_state = 0},
[39] = {.lex_state = 0},
[40] = {.lex_state = 0},
2024-11-20 19:29:09 -08:00
[41] = {.lex_state = 0},
[42] = {.lex_state = 0},
[43] = {.lex_state = 0},
[44] = {.lex_state = 0},
[45] = {.lex_state = 0},
2024-11-23 10:06:53 -08:00
[46] = {.lex_state = 0},
2024-11-20 19:29:09 -08:00
[47] = {.lex_state = 0},
[48] = {.lex_state = 0},
[49] = {.lex_state = 0},
2024-11-23 10:39:33 -08:00
[50] = {.lex_state = 0},
[51] = {.lex_state = 0},
[52] = {.lex_state = 0},
[53] = {.lex_state = 0},
2024-11-23 10:06:53 -08:00
[54] = {.lex_state = 0},
[55] = {.lex_state = 0},
2024-11-23 10:39:33 -08:00
[56] = {.lex_state = 0},
[57] = {.lex_state = 0},
[58] = {.lex_state = 0},
2024-11-23 10:06:53 -08:00
[59] = {.lex_state = 0},
[60] = {.lex_state = 2},
2024-11-23 10:06:53 -08:00
[61] = {.lex_state = 0},
[62] = {.lex_state = 2},
2024-11-23 10:06:53 -08:00
[63] = {.lex_state = 0},
2024-11-23 10:39:33 -08:00
[64] = {.lex_state = 0},
2024-11-23 10:06:53 -08:00
[65] = {.lex_state = 0},
[66] = {.lex_state = 0},
[67] = {.lex_state = 0},
[68] = {.lex_state = 0},
[69] = {.lex_state = 2},
2024-11-23 10:06:53 -08:00
[70] = {.lex_state = 0},
[71] = {.lex_state = 0},
2024-11-23 10:39:33 -08:00
[72] = {.lex_state = 0},
2024-11-23 10:06:53 -08:00
[73] = {.lex_state = 0},
[74] = {.lex_state = 0},
[75] = {.lex_state = 0},
[76] = {.lex_state = 0},
[77] = {.lex_state = 0},
[78] = {.lex_state = 2},
[79] = {.lex_state = 0},
[80] = {.lex_state = 0},
[81] = {.lex_state = 0},
[82] = {.lex_state = 2},
[83] = {.lex_state = 0},
[84] = {.lex_state = 1},
[85] = {.lex_state = 2},
[86] = {.lex_state = 0},
[87] = {.lex_state = 0},
[88] = {.lex_state = 0},
[89] = {.lex_state = 0},
[90] = {.lex_state = 0},
[91] = {.lex_state = 0},
2024-11-20 19:29:09 -08:00
};
static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
[0] = {
[ts_builtin_sym_end] = ACTIONS(1),
2024-11-21 13:14:46 -08:00
[sym_comment] = ACTIONS(3),
2024-11-20 19:29:09 -08:00
[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),
2024-11-20 21:46:51 -08:00
[anon_sym_u220f] = ACTIONS(1),
[anon_sym_forall] = ACTIONS(1),
2024-11-20 19:29:09 -08:00
[anon_sym_COMMA] = ACTIONS(1),
2024-11-23 10:06:53 -08:00
[anon_sym_COLON_EQ] = ACTIONS(1),
[anon_sym_let] = ACTIONS(1),
[anon_sym_in] = ACTIONS(1),
[anon_sym_end] = ACTIONS(1),
[anon_sym_axiom] = ACTIONS(1),
[anon_sym_SEMI] = ACTIONS(1),
2024-11-20 19:29:09 -08:00
[anon_sym_DASH_GT] = ACTIONS(1),
[anon_sym_u2192] = ACTIONS(1),
[anon_sym_def] = ACTIONS(1),
2024-11-22 10:37:30 -08:00
[sym_command] = ACTIONS(1),
2024-11-20 19:29:09 -08:00
},
[1] = {
[sym_program] = STATE(71),
[sym_axiom] = STATE(27),
[sym_definition] = STATE(27),
[sym_preprocess] = STATE(27),
[aux_sym_program_repeat1] = STATE(27),
2024-11-21 13:14:46 -08:00
[ts_builtin_sym_end] = ACTIONS(5),
[sym_comment] = ACTIONS(3),
[anon_sym_axiom] = ACTIONS(7),
[anon_sym_def] = ACTIONS(9),
[sym_command] = ACTIONS(11),
2024-11-20 19:29:09 -08:00
},
};
static const uint16_t ts_small_parse_table[] = {
[0] = 16,
ACTIONS(3), 1,
sym_comment,
2024-11-22 10:37:30 -08:00
ACTIONS(13), 1,
sym_identifier,
2024-11-22 10:37:30 -08:00
ACTIONS(15), 1,
anon_sym_LPAREN,
ACTIONS(17), 1,
2024-11-22 10:37:30 -08:00
sym_star,
ACTIONS(21), 1,
anon_sym_u03bb,
2024-11-22 10:37:30 -08:00
ACTIONS(23), 1,
anon_sym_fun,
2024-11-22 10:37:30 -08:00
ACTIONS(25), 1,
anon_sym_u220f,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_forall,
2024-11-23 10:06:53 -08:00
ACTIONS(29), 1,
anon_sym_let,
STATE(24), 1,
2024-11-23 10:06:53 -08:00
sym_square,
STATE(40), 1,
2024-11-22 10:37:30 -08:00
sym_arrow,
STATE(43), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
STATE(68), 1,
2024-11-22 10:37:30 -08:00
sym_expr,
ACTIONS(19), 2,
2024-11-22 10:37:30 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
2024-11-23 10:39:33 -08:00
STATE(19), 2,
2024-11-22 10:37:30 -08:00
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
2024-11-22 10:37:30 -08:00
sym_labs,
sym_pabs,
2024-11-23 10:06:53 -08:00
sym_let,
2024-11-22 10:37:30 -08:00
sym_app,
[54] = 16,
ACTIONS(3), 1,
sym_comment,
2024-11-22 10:37:30 -08:00
ACTIONS(13), 1,
sym_identifier,
2024-11-22 10:37:30 -08:00
ACTIONS(15), 1,
anon_sym_LPAREN,
ACTIONS(17), 1,
2024-11-20 19:29:09 -08:00
sym_star,
2024-11-22 10:37:30 -08:00
ACTIONS(21), 1,
anon_sym_u03bb,
2024-11-22 10:37:30 -08:00
ACTIONS(23), 1,
anon_sym_fun,
2024-11-22 10:37:30 -08:00
ACTIONS(25), 1,
anon_sym_u220f,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_forall,
ACTIONS(29), 1,
2024-11-23 10:06:53 -08:00
anon_sym_let,
STATE(24), 1,
2024-11-23 10:06:53 -08:00
sym_square,
STATE(40), 1,
2024-11-22 10:37:30 -08:00
sym_arrow,
STATE(43), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
STATE(83), 1,
2024-11-22 10:37:30 -08:00
sym_expr,
ACTIONS(19), 2,
2024-11-22 10:37:30 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
2024-11-23 10:39:33 -08:00
STATE(19), 2,
2024-11-22 10:37:30 -08:00
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
2024-11-22 10:37:30 -08:00
sym_labs,
sym_pabs,
2024-11-23 10:06:53 -08:00
sym_let,
2024-11-22 10:37:30 -08:00
sym_app,
[108] = 16,
ACTIONS(3), 1,
sym_comment,
2024-11-22 10:37:30 -08:00
ACTIONS(13), 1,
sym_identifier,
2024-11-22 10:37:30 -08:00
ACTIONS(15), 1,
anon_sym_LPAREN,
ACTIONS(17), 1,
2024-11-22 10:37:30 -08:00
sym_star,
ACTIONS(21), 1,
anon_sym_u03bb,
2024-11-22 10:37:30 -08:00
ACTIONS(23), 1,
anon_sym_fun,
2024-11-22 10:37:30 -08:00
ACTIONS(25), 1,
anon_sym_u220f,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_forall,
ACTIONS(29), 1,
2024-11-23 10:06:53 -08:00
anon_sym_let,
STATE(24), 1,
2024-11-23 10:06:53 -08:00
sym_square,
STATE(40), 1,
2024-11-22 10:37:30 -08:00
sym_arrow,
STATE(43), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
STATE(76), 1,
2024-11-22 10:37:30 -08:00
sym_expr,
ACTIONS(19), 2,
2024-11-22 10:37:30 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
2024-11-23 10:39:33 -08:00
STATE(19), 2,
2024-11-22 10:37:30 -08:00
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
2024-11-22 10:37:30 -08:00
sym_labs,
sym_pabs,
2024-11-23 10:06:53 -08:00
sym_let,
2024-11-22 10:37:30 -08:00
sym_app,
[162] = 16,
ACTIONS(3), 1,
sym_comment,
2024-11-22 10:37:30 -08:00
ACTIONS(13), 1,
sym_identifier,
2024-11-22 10:37:30 -08:00
ACTIONS(15), 1,
anon_sym_LPAREN,
ACTIONS(17), 1,
2024-11-22 10:37:30 -08:00
sym_star,
ACTIONS(21), 1,
anon_sym_u03bb,
2024-11-22 10:37:30 -08:00
ACTIONS(23), 1,
anon_sym_fun,
2024-11-22 10:37:30 -08:00
ACTIONS(25), 1,
anon_sym_u220f,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_forall,
ACTIONS(29), 1,
2024-11-23 10:06:53 -08:00
anon_sym_let,
STATE(24), 1,
2024-11-23 10:06:53 -08:00
sym_square,
STATE(40), 1,
2024-11-22 10:37:30 -08:00
sym_arrow,
STATE(43), 1,
2024-11-23 10:39:33 -08:00
sym_app_term,
STATE(91), 1,
sym_expr,
ACTIONS(19), 2,
2024-11-22 10:37:30 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
2024-11-23 10:39:33 -08:00
STATE(19), 2,
2024-11-22 10:37:30 -08:00
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
2024-11-22 10:37:30 -08:00
sym_labs,
sym_pabs,
2024-11-23 10:06:53 -08:00
sym_let,
2024-11-22 10:37:30 -08:00
sym_app,
[216] = 16,
ACTIONS(3), 1,
sym_comment,
2024-11-22 10:37:30 -08:00
ACTIONS(13), 1,
sym_identifier,
2024-11-22 10:37:30 -08:00
ACTIONS(15), 1,
anon_sym_LPAREN,
ACTIONS(17), 1,
2024-11-22 10:37:30 -08:00
sym_star,
ACTIONS(21), 1,
anon_sym_u03bb,
2024-11-22 10:37:30 -08:00
ACTIONS(23), 1,
anon_sym_fun,
2024-11-22 10:37:30 -08:00
ACTIONS(25), 1,
anon_sym_u220f,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_forall,
ACTIONS(29), 1,
2024-11-23 10:06:53 -08:00
anon_sym_let,
STATE(24), 1,
2024-11-23 10:06:53 -08:00
sym_square,
STATE(33), 1,
2024-11-22 10:37:30 -08:00
sym_expr,
STATE(40), 1,
sym_arrow,
STATE(43), 1,
sym_app_term,
ACTIONS(19), 2,
2024-11-22 10:37:30 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
2024-11-23 10:39:33 -08:00
STATE(19), 2,
2024-11-22 10:37:30 -08:00
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
2024-11-22 10:37:30 -08:00
sym_labs,
sym_pabs,
2024-11-23 10:06:53 -08:00
sym_let,
2024-11-22 10:37:30 -08:00
sym_app,
[270] = 16,
ACTIONS(3), 1,
sym_comment,
2024-11-22 10:37:30 -08:00
ACTIONS(13), 1,
sym_identifier,
2024-11-22 10:37:30 -08:00
ACTIONS(15), 1,
anon_sym_LPAREN,
ACTIONS(17), 1,
2024-11-22 10:37:30 -08:00
sym_star,
ACTIONS(21), 1,
anon_sym_u03bb,
2024-11-22 10:37:30 -08:00
ACTIONS(23), 1,
anon_sym_fun,
2024-11-22 10:37:30 -08:00
ACTIONS(25), 1,
anon_sym_u220f,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_forall,
ACTIONS(29), 1,
2024-11-23 10:06:53 -08:00
anon_sym_let,
STATE(24), 1,
2024-11-23 10:06:53 -08:00
sym_square,
STATE(40), 1,
2024-11-22 10:37:30 -08:00
sym_arrow,
STATE(43), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
STATE(79), 1,
2024-11-22 10:37:30 -08:00
sym_expr,
ACTIONS(19), 2,
2024-11-22 10:37:30 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
2024-11-23 10:39:33 -08:00
STATE(19), 2,
2024-11-22 10:37:30 -08:00
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
2024-11-22 10:37:30 -08:00
sym_labs,
sym_pabs,
2024-11-23 10:06:53 -08:00
sym_let,
2024-11-22 10:37:30 -08:00
sym_app,
[324] = 16,
ACTIONS(3), 1,
sym_comment,
2024-11-22 10:37:30 -08:00
ACTIONS(13), 1,
sym_identifier,
2024-11-22 10:37:30 -08:00
ACTIONS(15), 1,
anon_sym_LPAREN,
ACTIONS(17), 1,
2024-11-22 10:37:30 -08:00
sym_star,
ACTIONS(21), 1,
anon_sym_u03bb,
2024-11-22 10:37:30 -08:00
ACTIONS(23), 1,
anon_sym_fun,
2024-11-22 10:37:30 -08:00
ACTIONS(25), 1,
anon_sym_u220f,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_forall,
ACTIONS(29), 1,
2024-11-23 10:06:53 -08:00
anon_sym_let,
STATE(24), 1,
2024-11-23 10:06:53 -08:00
sym_square,
STATE(40), 1,
2024-11-22 10:37:30 -08:00
sym_arrow,
STATE(43), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
STATE(88), 1,
2024-11-23 10:39:33 -08:00
sym_expr,
ACTIONS(19), 2,
2024-11-22 10:37:30 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
2024-11-23 10:39:33 -08:00
STATE(19), 2,
2024-11-22 10:37:30 -08:00
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
2024-11-22 10:37:30 -08:00
sym_labs,
sym_pabs,
2024-11-23 10:06:53 -08:00
sym_let,
2024-11-22 10:37:30 -08:00
sym_app,
[378] = 16,
ACTIONS(3), 1,
sym_comment,
2024-11-22 10:37:30 -08:00
ACTIONS(13), 1,
sym_identifier,
2024-11-23 10:06:53 -08:00
ACTIONS(15), 1,
anon_sym_LPAREN,
ACTIONS(17), 1,
2024-11-22 10:37:30 -08:00
sym_star,
2024-11-23 10:06:53 -08:00
ACTIONS(21), 1,
anon_sym_u03bb,
2024-11-23 10:06:53 -08:00
ACTIONS(23), 1,
anon_sym_fun,
2024-11-23 10:06:53 -08:00
ACTIONS(25), 1,
anon_sym_u220f,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_forall,
ACTIONS(29), 1,
2024-11-23 10:06:53 -08:00
anon_sym_let,
STATE(24), 1,
2024-11-23 10:06:53 -08:00
sym_square,
STATE(36), 1,
2024-11-23 10:39:33 -08:00
sym_expr,
STATE(40), 1,
2024-11-23 10:06:53 -08:00
sym_arrow,
STATE(43), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
ACTIONS(19), 2,
2024-11-23 10:06:53 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
2024-11-23 10:39:33 -08:00
STATE(19), 2,
2024-11-23 10:06:53 -08:00
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[432] = 16,
ACTIONS(3), 1,
sym_comment,
ACTIONS(29), 1,
anon_sym_let,
ACTIONS(31), 1,
2024-11-23 10:06:53 -08:00
sym_identifier,
ACTIONS(33), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
ACTIONS(35), 1,
2024-11-23 10:06:53 -08:00
sym_star,
ACTIONS(39), 1,
2024-11-23 10:06:53 -08:00
anon_sym_u03bb,
ACTIONS(41), 1,
2024-11-23 10:06:53 -08:00
anon_sym_fun,
ACTIONS(43), 1,
2024-11-23 10:06:53 -08:00
anon_sym_u220f,
ACTIONS(45), 1,
2024-11-23 10:06:53 -08:00
anon_sym_forall,
STATE(29), 1,
2024-11-23 10:06:53 -08:00
sym_square,
STATE(40), 1,
2024-11-23 10:06:53 -08:00
sym_arrow,
STATE(61), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
STATE(77), 1,
sym_expr,
ACTIONS(37), 2,
2024-11-23 10:06:53 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
STATE(22), 2,
2024-11-23 10:06:53 -08:00
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[486] = 16,
ACTIONS(3), 1,
sym_comment,
ACTIONS(13), 1,
2024-11-23 10:06:53 -08:00
sym_identifier,
ACTIONS(15), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
ACTIONS(17), 1,
2024-11-23 10:06:53 -08:00
sym_star,
ACTIONS(21), 1,
2024-11-23 10:06:53 -08:00
anon_sym_u03bb,
ACTIONS(23), 1,
2024-11-23 10:06:53 -08:00
anon_sym_fun,
ACTIONS(25), 1,
2024-11-23 10:06:53 -08:00
anon_sym_u220f,
ACTIONS(27), 1,
2024-11-23 10:06:53 -08:00
anon_sym_forall,
ACTIONS(29), 1,
anon_sym_let,
STATE(24), 1,
2024-11-23 10:06:53 -08:00
sym_square,
STATE(40), 1,
2024-11-23 10:06:53 -08:00
sym_arrow,
STATE(43), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
STATE(81), 1,
2024-11-23 10:06:53 -08:00
sym_expr,
ACTIONS(19), 2,
2024-11-23 10:06:53 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
STATE(19), 2,
2024-11-23 10:06:53 -08:00
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[540] = 16,
ACTIONS(3), 1,
sym_comment,
2024-11-23 10:06:53 -08:00
ACTIONS(13), 1,
sym_identifier,
2024-11-23 10:06:53 -08:00
ACTIONS(15), 1,
anon_sym_LPAREN,
ACTIONS(17), 1,
2024-11-23 10:06:53 -08:00
sym_star,
ACTIONS(21), 1,
anon_sym_u03bb,
2024-11-23 10:06:53 -08:00
ACTIONS(23), 1,
anon_sym_fun,
2024-11-23 10:06:53 -08:00
ACTIONS(25), 1,
anon_sym_u220f,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_forall,
ACTIONS(29), 1,
2024-11-23 10:06:53 -08:00
anon_sym_let,
STATE(24), 1,
2024-11-23 10:06:53 -08:00
sym_square,
STATE(40), 1,
2024-11-23 10:06:53 -08:00
sym_arrow,
STATE(43), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
STATE(72), 1,
2024-11-23 10:39:33 -08:00
sym_expr,
ACTIONS(19), 2,
2024-11-23 10:06:53 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
2024-11-23 10:39:33 -08:00
STATE(19), 2,
2024-11-23 10:06:53 -08:00
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[594] = 16,
ACTIONS(3), 1,
sym_comment,
2024-11-23 10:06:53 -08:00
ACTIONS(13), 1,
sym_identifier,
2024-11-23 10:06:53 -08:00
ACTIONS(15), 1,
anon_sym_LPAREN,
ACTIONS(17), 1,
2024-11-23 10:06:53 -08:00
sym_star,
ACTIONS(21), 1,
anon_sym_u03bb,
2024-11-23 10:06:53 -08:00
ACTIONS(23), 1,
anon_sym_fun,
2024-11-23 10:06:53 -08:00
ACTIONS(25), 1,
anon_sym_u220f,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_forall,
ACTIONS(29), 1,
2024-11-23 10:06:53 -08:00
anon_sym_let,
STATE(24), 1,
2024-11-23 10:06:53 -08:00
sym_square,
STATE(40), 1,
2024-11-23 10:06:53 -08:00
sym_arrow,
STATE(43), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
STATE(75), 1,
2024-11-23 10:06:53 -08:00
sym_expr,
ACTIONS(19), 2,
2024-11-23 10:06:53 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
2024-11-23 10:39:33 -08:00
STATE(19), 2,
2024-11-23 10:06:53 -08:00
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[648] = 16,
ACTIONS(3), 1,
sym_comment,
ACTIONS(29), 1,
2024-11-23 10:06:53 -08:00
anon_sym_let,
ACTIONS(31), 1,
2024-11-23 10:06:53 -08:00
sym_identifier,
ACTIONS(33), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
ACTIONS(35), 1,
2024-11-23 10:06:53 -08:00
sym_star,
ACTIONS(39), 1,
2024-11-23 10:06:53 -08:00
anon_sym_u03bb,
ACTIONS(41), 1,
2024-11-23 10:06:53 -08:00
anon_sym_fun,
ACTIONS(43), 1,
2024-11-23 10:06:53 -08:00
anon_sym_u220f,
ACTIONS(45), 1,
2024-11-23 10:06:53 -08:00
anon_sym_forall,
STATE(29), 1,
2024-11-23 10:06:53 -08:00
sym_square,
STATE(33), 1,
2024-11-23 10:06:53 -08:00
sym_expr,
STATE(40), 1,
sym_arrow,
STATE(61), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
ACTIONS(37), 2,
2024-11-23 10:06:53 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
STATE(22), 2,
2024-11-23 10:06:53 -08:00
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[702] = 16,
ACTIONS(3), 1,
sym_comment,
ACTIONS(13), 1,
2024-11-23 10:06:53 -08:00
sym_identifier,
ACTIONS(15), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
ACTIONS(17), 1,
2024-11-23 10:06:53 -08:00
sym_star,
ACTIONS(21), 1,
2024-11-23 10:06:53 -08:00
anon_sym_u03bb,
ACTIONS(23), 1,
2024-11-23 10:06:53 -08:00
anon_sym_fun,
ACTIONS(25), 1,
2024-11-23 10:06:53 -08:00
anon_sym_u220f,
ACTIONS(27), 1,
2024-11-23 10:06:53 -08:00
anon_sym_forall,
ACTIONS(29), 1,
anon_sym_let,
STATE(24), 1,
2024-11-23 10:06:53 -08:00
sym_square,
STATE(37), 1,
2024-11-23 10:06:53 -08:00
sym_expr,
STATE(40), 1,
2024-11-23 10:39:33 -08:00
sym_arrow,
STATE(43), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
ACTIONS(19), 2,
2024-11-23 10:06:53 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
STATE(19), 2,
2024-11-23 10:06:53 -08:00
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[756] = 16,
ACTIONS(3), 1,
sym_comment,
ACTIONS(29), 1,
2024-11-23 10:06:53 -08:00
anon_sym_let,
ACTIONS(31), 1,
2024-11-23 10:06:53 -08:00
sym_identifier,
ACTIONS(33), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
ACTIONS(35), 1,
2024-11-23 10:06:53 -08:00
sym_star,
ACTIONS(39), 1,
2024-11-23 10:06:53 -08:00
anon_sym_u03bb,
ACTIONS(41), 1,
2024-11-23 10:06:53 -08:00
anon_sym_fun,
ACTIONS(43), 1,
2024-11-23 10:06:53 -08:00
anon_sym_u220f,
ACTIONS(45), 1,
2024-11-23 10:06:53 -08:00
anon_sym_forall,
STATE(29), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(36), 1,
2024-11-23 10:06:53 -08:00
sym_expr,
STATE(40), 1,
sym_arrow,
STATE(61), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
ACTIONS(37), 2,
2024-11-23 10:06:53 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
STATE(22), 2,
2024-11-23 10:06:53 -08:00
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[810] = 16,
ACTIONS(3), 1,
sym_comment,
ACTIONS(29), 1,
anon_sym_let,
ACTIONS(31), 1,
2024-11-23 10:06:53 -08:00
sym_identifier,
ACTIONS(33), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
ACTIONS(35), 1,
2024-11-23 10:06:53 -08:00
sym_star,
ACTIONS(39), 1,
2024-11-23 10:06:53 -08:00
anon_sym_u03bb,
ACTIONS(41), 1,
2024-11-23 10:06:53 -08:00
anon_sym_fun,
ACTIONS(43), 1,
2024-11-23 10:06:53 -08:00
anon_sym_u220f,
ACTIONS(45), 1,
2024-11-23 10:06:53 -08:00
anon_sym_forall,
STATE(29), 1,
sym_square,
STATE(37), 1,
sym_expr,
STATE(40), 1,
sym_arrow,
STATE(61), 1,
sym_app_term,
ACTIONS(37), 2,
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
STATE(22), 2,
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
sym_labs,
sym_pabs,
sym_let,
sym_app,
[864] = 16,
ACTIONS(3), 1,
sym_comment,
ACTIONS(13), 1,
sym_identifier,
ACTIONS(15), 1,
anon_sym_LPAREN,
ACTIONS(17), 1,
sym_star,
ACTIONS(21), 1,
anon_sym_u03bb,
ACTIONS(23), 1,
anon_sym_fun,
ACTIONS(25), 1,
anon_sym_u220f,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_forall,
ACTIONS(29), 1,
2024-11-23 10:06:53 -08:00
anon_sym_let,
STATE(24), 1,
2024-11-23 10:06:53 -08:00
sym_square,
STATE(40), 1,
2024-11-23 10:06:53 -08:00
sym_arrow,
STATE(43), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
STATE(86), 1,
2024-11-23 10:06:53 -08:00
sym_expr,
ACTIONS(19), 2,
2024-11-23 10:06:53 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
2024-11-23 10:39:33 -08:00
STATE(19), 2,
2024-11-23 10:06:53 -08:00
sym_term,
aux_sym_app_repeat1,
STATE(32), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[918] = 7,
ACTIONS(3), 1,
sym_comment,
ACTIONS(15), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
STATE(24), 1,
2024-11-23 10:06:53 -08:00
sym_square,
ACTIONS(17), 2,
2024-11-23 10:06:53 -08:00
sym_identifier,
sym_star,
ACTIONS(19), 2,
2024-11-23 10:06:53 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
STATE(20), 2,
2024-11-23 10:06:53 -08:00
sym_term,
aux_sym_app_repeat1,
ACTIONS(47), 5,
2024-11-23 10:06:53 -08:00
anon_sym_RPAREN,
anon_sym_COLON_EQ,
anon_sym_SEMI,
2024-11-20 19:29:09 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
[947] = 7,
ACTIONS(3), 1,
sym_comment,
ACTIONS(52), 1,
2024-11-20 19:29:09 -08:00
anon_sym_LPAREN,
STATE(24), 1,
2024-11-20 19:29:09 -08:00
sym_square,
ACTIONS(49), 2,
2024-11-20 19:29:09 -08:00
sym_identifier,
sym_star,
ACTIONS(57), 2,
2024-11-20 19:29:09 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
STATE(20), 2,
2024-11-20 19:29:09 -08:00
sym_term,
aux_sym_app_repeat1,
ACTIONS(55), 5,
2024-11-20 19:29:09 -08:00
anon_sym_RPAREN,
2024-11-23 10:06:53 -08:00
anon_sym_COLON_EQ,
anon_sym_SEMI,
2024-11-20 19:29:09 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
[976] = 9,
ACTIONS(3), 1,
sym_comment,
ACTIONS(60), 1,
2024-11-23 10:06:53 -08:00
sym_identifier,
ACTIONS(63), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
ACTIONS(66), 1,
2024-11-23 10:06:53 -08:00
sym_star,
ACTIONS(72), 1,
2024-11-23 10:06:53 -08:00
anon_sym_end,
STATE(29), 1,
2024-11-23 10:06:53 -08:00
sym_square,
ACTIONS(55), 2,
2024-11-23 10:06:53 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
ACTIONS(69), 2,
2024-11-23 10:06:53 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
STATE(21), 2,
2024-11-23 10:06:53 -08:00
sym_term,
aux_sym_app_repeat1,
[1007] = 9,
ACTIONS(3), 1,
sym_comment,
ACTIONS(31), 1,
2024-11-20 19:29:09 -08:00
sym_identifier,
ACTIONS(33), 1,
2024-11-20 19:29:09 -08:00
anon_sym_LPAREN,
ACTIONS(35), 1,
2024-11-20 19:29:09 -08:00
sym_star,
ACTIONS(74), 1,
2024-11-23 10:06:53 -08:00
anon_sym_end,
STATE(29), 1,
2024-11-23 10:06:53 -08:00
sym_square,
ACTIONS(37), 2,
2024-11-20 19:29:09 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
ACTIONS(47), 2,
2024-11-20 19:29:09 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
STATE(21), 2,
2024-11-23 10:06:53 -08:00
sym_term,
aux_sym_app_repeat1,
[1038] = 2,
ACTIONS(3), 1,
2024-11-23 10:06:53 -08:00
sym_comment,
ACTIONS(76), 10,
2024-11-23 10:06:53 -08:00
sym_identifier,
anon_sym_LPAREN,
anon_sym_RPAREN,
sym_star,
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
2024-11-20 19:29:09 -08:00
anon_sym_COLON_EQ,
anon_sym_SEMI,
2024-11-23 10:06:53 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
[1054] = 2,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(78), 10,
2024-11-20 19:29:09 -08:00
sym_identifier,
anon_sym_LPAREN,
anon_sym_RPAREN,
sym_star,
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
2024-11-23 10:06:53 -08:00
anon_sym_COLON_EQ,
anon_sym_SEMI,
2024-11-20 19:29:09 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
[1070] = 2,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(80), 10,
2024-11-20 19:29:09 -08:00
sym_identifier,
anon_sym_LPAREN,
anon_sym_RPAREN,
sym_star,
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
2024-11-23 10:06:53 -08:00
anon_sym_COLON_EQ,
2024-11-20 19:29:09 -08:00
anon_sym_SEMI,
2024-11-23 10:06:53 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
[1086] = 5,
ACTIONS(3), 1,
sym_comment,
ACTIONS(82), 1,
2024-11-23 10:39:33 -08:00
anon_sym_LPAREN,
ACTIONS(85), 1,
2024-11-23 10:39:33 -08:00
anon_sym_COLON,
STATE(26), 2,
sym_param_block,
aux_sym_labs_repeat1,
ACTIONS(87), 4,
2024-11-23 10:39:33 -08:00
anon_sym_EQ_GT,
anon_sym_u21d2,
anon_sym_COMMA,
anon_sym_COLON_EQ,
[1106] = 6,
ACTIONS(3), 1,
sym_comment,
ACTIONS(7), 1,
anon_sym_axiom,
ACTIONS(9), 1,
anon_sym_def,
ACTIONS(11), 1,
sym_command,
ACTIONS(89), 1,
ts_builtin_sym_end,
STATE(28), 4,
sym_axiom,
sym_definition,
sym_preprocess,
aux_sym_program_repeat1,
[1128] = 6,
ACTIONS(3), 1,
2024-11-23 10:06:53 -08:00
sym_comment,
ACTIONS(91), 1,
ts_builtin_sym_end,
ACTIONS(93), 1,
anon_sym_axiom,
ACTIONS(96), 1,
anon_sym_def,
ACTIONS(99), 1,
sym_command,
STATE(28), 4,
sym_axiom,
sym_definition,
sym_preprocess,
aux_sym_program_repeat1,
[1150] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(102), 2,
2024-11-23 10:06:53 -08:00
sym_identifier,
anon_sym_end,
ACTIONS(78), 6,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
sym_star,
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
anon_sym_DASH_GT,
anon_sym_u2192,
[1166] = 3,
ACTIONS(3), 1,
2024-11-23 10:06:53 -08:00
sym_comment,
ACTIONS(104), 2,
2024-11-23 10:06:53 -08:00
sym_identifier,
anon_sym_end,
ACTIONS(76), 6,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
sym_star,
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
anon_sym_DASH_GT,
anon_sym_u2192,
[1182] = 3,
ACTIONS(3), 1,
2024-11-22 10:37:30 -08:00
sym_comment,
ACTIONS(106), 2,
sym_identifier,
anon_sym_end,
ACTIONS(80), 6,
2024-11-22 10:37:30 -08:00
anon_sym_LPAREN,
sym_star,
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
anon_sym_DASH_GT,
anon_sym_u2192,
[1198] = 2,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(108), 6,
anon_sym_RPAREN,
2024-11-20 19:29:09 -08:00
anon_sym_COLON_EQ,
anon_sym_end,
anon_sym_SEMI,
anon_sym_DASH_GT,
anon_sym_u2192,
[1210] = 2,
ACTIONS(3), 1,
2024-11-23 10:39:33 -08:00
sym_comment,
ACTIONS(110), 6,
2024-11-23 10:06:53 -08:00
anon_sym_RPAREN,
anon_sym_COLON_EQ,
anon_sym_end,
anon_sym_SEMI,
2024-11-23 10:06:53 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
[1222] = 6,
ACTIONS(3), 1,
sym_comment,
ACTIONS(112), 1,
anon_sym_LPAREN,
ACTIONS(114), 1,
2024-11-20 19:29:09 -08:00
anon_sym_COLON,
ACTIONS(116), 1,
anon_sym_COLON_EQ,
STATE(74), 1,
sym_ascription,
STATE(39), 2,
sym_param_block,
aux_sym_labs_repeat1,
[1242] = 3,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(120), 1,
anon_sym_COLON,
ACTIONS(118), 5,
2024-11-20 19:29:09 -08:00
anon_sym_LPAREN,
anon_sym_EQ_GT,
anon_sym_u21d2,
anon_sym_COMMA,
anon_sym_COLON_EQ,
[1256] = 2,
ACTIONS(3), 1,
2024-11-22 10:37:30 -08:00
sym_comment,
ACTIONS(122), 6,
2024-11-23 10:39:33 -08:00
anon_sym_RPAREN,
anon_sym_COLON_EQ,
anon_sym_end,
anon_sym_SEMI,
2024-11-23 10:39:33 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
[1268] = 2,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(124), 6,
2024-11-23 10:06:53 -08:00
anon_sym_RPAREN,
2024-11-20 19:29:09 -08:00
anon_sym_COLON_EQ,
2024-11-23 10:06:53 -08:00
anon_sym_end,
anon_sym_SEMI,
2024-11-20 21:46:51 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
[1280] = 6,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(112), 1,
anon_sym_LPAREN,
ACTIONS(114), 1,
anon_sym_COLON,
ACTIONS(126), 1,
2024-11-23 10:06:53 -08:00
anon_sym_COLON_EQ,
STATE(73), 1,
sym_ascription,
STATE(42), 2,
sym_param_block,
aux_sym_labs_repeat1,
[1300] = 6,
ACTIONS(3), 1,
sym_comment,
ACTIONS(112), 1,
anon_sym_LPAREN,
ACTIONS(114), 1,
anon_sym_COLON,
ACTIONS(128), 1,
anon_sym_COLON_EQ,
STATE(87), 1,
sym_ascription,
STATE(26), 2,
sym_param_block,
aux_sym_labs_repeat1,
[1320] = 2,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(130), 6,
2024-11-20 19:29:09 -08:00
anon_sym_RPAREN,
2024-11-23 10:06:53 -08:00
anon_sym_COLON_EQ,
anon_sym_end,
anon_sym_SEMI,
2024-11-20 19:29:09 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
[1332] = 2,
ACTIONS(3), 1,
2024-11-23 10:39:33 -08:00
sym_comment,
ACTIONS(132), 6,
2024-11-23 10:39:33 -08:00
anon_sym_RPAREN,
anon_sym_COLON_EQ,
anon_sym_end,
anon_sym_SEMI,
2024-11-23 10:39:33 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
[1344] = 6,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(112), 1,
anon_sym_LPAREN,
ACTIONS(114), 1,
anon_sym_COLON,
ACTIONS(134), 1,
anon_sym_COLON_EQ,
STATE(89), 1,
sym_ascription,
2024-11-23 10:39:33 -08:00
STATE(26), 2,
2024-11-20 19:29:09 -08:00
sym_param_block,
aux_sym_labs_repeat1,
[1364] = 3,
ACTIONS(3), 1,
2024-11-20 19:29:09 -08:00
sym_comment,
ACTIONS(136), 2,
2024-11-20 19:29:09 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
ACTIONS(130), 3,
2024-11-20 19:29:09 -08:00
anon_sym_RPAREN,
anon_sym_COLON_EQ,
anon_sym_SEMI,
[1377] = 5,
ACTIONS(3), 1,
sym_comment,
ACTIONS(112), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
ACTIONS(138), 1,
anon_sym_COLON,
STATE(80), 1,
sym_ascription,
STATE(46), 2,
sym_param_block,
aux_sym_labs_repeat1,
[1394] = 4,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(112), 1,
anon_sym_LPAREN,
ACTIONS(140), 2,
2024-11-23 10:06:53 -08:00
anon_sym_EQ_GT,
anon_sym_u21d2,
2024-11-23 10:39:33 -08:00
STATE(26), 2,
2024-11-23 10:06:53 -08:00
sym_param_block,
aux_sym_labs_repeat1,
[1409] = 5,
ACTIONS(3), 1,
sym_comment,
ACTIONS(112), 1,
2024-11-20 19:29:09 -08:00
anon_sym_LPAREN,
ACTIONS(138), 1,
anon_sym_COLON,
STATE(90), 1,
sym_ascription,
STATE(26), 2,
sym_param_block,
aux_sym_labs_repeat1,
[1426] = 4,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(112), 1,
anon_sym_LPAREN,
ACTIONS(142), 2,
anon_sym_EQ_GT,
anon_sym_u21d2,
2024-11-23 10:39:33 -08:00
STATE(26), 2,
2024-11-20 19:29:09 -08:00
sym_param_block,
aux_sym_labs_repeat1,
[1441] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(144), 4,
ts_builtin_sym_end,
anon_sym_axiom,
anon_sym_def,
sym_command,
[1451] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(146), 4,
ts_builtin_sym_end,
anon_sym_axiom,
anon_sym_def,
sym_command,
[1461] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(148), 4,
ts_builtin_sym_end,
anon_sym_axiom,
anon_sym_def,
sym_command,
[1471] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(150), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
ACTIONS(153), 1,
2024-11-23 10:06:53 -08:00
anon_sym_in,
STATE(51), 2,
2024-11-23 10:06:53 -08:00
sym_binding,
aux_sym_let_repeat1,
[1485] = 2,
ACTIONS(3), 1,
2024-11-23 10:39:33 -08:00
sym_comment,
ACTIONS(155), 4,
ts_builtin_sym_end,
anon_sym_axiom,
anon_sym_def,
sym_command,
[1495] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(157), 4,
ts_builtin_sym_end,
anon_sym_axiom,
anon_sym_def,
sym_command,
[1505] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(159), 1,
2024-11-22 10:37:30 -08:00
anon_sym_LPAREN,
ACTIONS(161), 1,
2024-11-23 10:06:53 -08:00
anon_sym_in,
STATE(51), 2,
2024-11-23 10:06:53 -08:00
sym_binding,
aux_sym_let_repeat1,
[1519] = 4,
ACTIONS(3), 1,
2024-11-23 10:39:33 -08:00
sym_comment,
ACTIONS(112), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
ACTIONS(163), 1,
2024-11-23 10:06:53 -08:00
anon_sym_COMMA,
2024-11-23 10:39:33 -08:00
STATE(26), 2,
2024-11-23 10:06:53 -08:00
sym_param_block,
aux_sym_labs_repeat1,
[1533] = 2,
ACTIONS(3), 1,
2024-11-23 10:39:33 -08:00
sym_comment,
ACTIONS(165), 4,
2024-11-23 10:39:33 -08:00
ts_builtin_sym_end,
anon_sym_axiom,
anon_sym_def,
2024-11-23 10:39:33 -08:00
sym_command,
[1543] = 4,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(112), 1,
anon_sym_LPAREN,
ACTIONS(167), 1,
anon_sym_COMMA,
STATE(26), 2,
2024-11-20 21:46:51 -08:00
sym_param_block,
aux_sym_labs_repeat1,
[1557] = 3,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(112), 1,
2024-11-23 10:39:33 -08:00
anon_sym_LPAREN,
STATE(45), 2,
2024-11-23 10:39:33 -08:00
sym_param_block,
aux_sym_labs_repeat1,
[1568] = 3,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(159), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
STATE(54), 2,
sym_binding,
aux_sym_let_repeat1,
[1579] = 4,
ACTIONS(3), 1,
2024-11-23 10:06:53 -08:00
sym_comment,
ACTIONS(169), 1,
2024-11-23 10:06:53 -08:00
sym_identifier,
ACTIONS(172), 1,
2024-11-23 10:06:53 -08:00
anon_sym_COLON,
STATE(60), 1,
2024-11-23 10:06:53 -08:00
aux_sym_param_block_repeat1,
[1592] = 3,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(130), 1,
anon_sym_end,
ACTIONS(174), 2,
anon_sym_DASH_GT,
anon_sym_u2192,
[1603] = 4,
ACTIONS(3), 1,
2024-11-23 10:06:53 -08:00
sym_comment,
ACTIONS(176), 1,
2024-11-23 10:39:33 -08:00
sym_identifier,
ACTIONS(178), 1,
anon_sym_COLON,
STATE(60), 1,
aux_sym_param_block_repeat1,
[1616] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(112), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
STATE(55), 2,
sym_param_block,
aux_sym_labs_repeat1,
[1627] = 3,
ACTIONS(3), 1,
2024-11-23 10:06:53 -08:00
sym_comment,
ACTIONS(112), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
STATE(47), 2,
sym_param_block,
aux_sym_labs_repeat1,
[1638] = 3,
ACTIONS(3), 1,
2024-11-22 10:37:30 -08:00
sym_comment,
ACTIONS(112), 1,
anon_sym_LPAREN,
STATE(57), 2,
2024-11-23 10:06:53 -08:00
sym_param_block,
aux_sym_labs_repeat1,
[1649] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(180), 2,
anon_sym_LPAREN,
anon_sym_in,
[1657] = 2,
ACTIONS(3), 1,
2024-11-23 10:39:33 -08:00
sym_comment,
ACTIONS(182), 2,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
2024-11-23 10:39:33 -08:00
anon_sym_in,
[1665] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(184), 2,
anon_sym_COLON_EQ,
anon_sym_SEMI,
[1673] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(186), 1,
2024-11-23 10:39:33 -08:00
sym_identifier,
STATE(62), 1,
2024-11-23 10:39:33 -08:00
aux_sym_param_block_repeat1,
[1683] = 2,
ACTIONS(3), 1,
2024-11-23 10:06:53 -08:00
sym_comment,
ACTIONS(188), 2,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
anon_sym_in,
[1691] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(190), 1,
ts_builtin_sym_end,
[1698] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(192), 1,
anon_sym_RPAREN,
[1705] = 2,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(134), 1,
2024-11-20 21:46:51 -08:00
anon_sym_COLON_EQ,
[1712] = 2,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(128), 1,
anon_sym_COLON_EQ,
[1719] = 2,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(194), 1,
2024-11-23 10:39:33 -08:00
anon_sym_RPAREN,
[1726] = 2,
ACTIONS(3), 1,
2024-11-22 10:37:30 -08:00
sym_comment,
ACTIONS(196), 1,
2024-11-23 10:39:33 -08:00
anon_sym_RPAREN,
[1733] = 2,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(198), 1,
anon_sym_end,
[1740] = 2,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(200), 1,
2024-11-23 10:39:33 -08:00
sym_identifier,
[1747] = 2,
ACTIONS(3), 1,
2024-11-23 10:06:53 -08:00
sym_comment,
ACTIONS(202), 1,
2024-11-23 10:39:33 -08:00
anon_sym_RPAREN,
[1754] = 2,
ACTIONS(3), 1,
2024-11-23 10:06:53 -08:00
sym_comment,
ACTIONS(204), 1,
anon_sym_SEMI,
[1761] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(206), 1,
2024-11-22 10:37:30 -08:00
anon_sym_RPAREN,
[1768] = 2,
ACTIONS(3), 1,
2024-11-21 13:14:46 -08:00
sym_comment,
ACTIONS(208), 1,
sym_identifier,
[1775] = 2,
ACTIONS(3), 1,
2024-11-23 10:06:53 -08:00
sym_comment,
ACTIONS(210), 1,
2024-11-23 10:39:33 -08:00
anon_sym_SEMI,
[1782] = 2,
ACTIONS(212), 1,
sym_comment,
ACTIONS(214), 1,
sym_post_command,
[1789] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(216), 1,
sym_identifier,
[1796] = 2,
ACTIONS(3), 1,
2024-11-23 10:06:53 -08:00
sym_comment,
ACTIONS(218), 1,
2024-11-23 10:06:53 -08:00
anon_sym_RPAREN,
[1803] = 2,
ACTIONS(3), 1,
2024-11-23 10:06:53 -08:00
sym_comment,
ACTIONS(220), 1,
anon_sym_COLON_EQ,
[1810] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(222), 1,
anon_sym_SEMI,
[1817] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(224), 1,
2024-11-23 10:06:53 -08:00
anon_sym_COLON_EQ,
[1824] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(226), 1,
anon_sym_SEMI,
[1831] = 2,
ACTIONS(3), 1,
2024-11-23 10:06:53 -08:00
sym_comment,
ACTIONS(228), 1,
anon_sym_SEMI,
2024-11-20 19:29:09 -08:00
};
static const uint32_t ts_small_parse_table_map[] = {
2024-11-23 10:06:53 -08:00
[SMALL_STATE(2)] = 0,
[SMALL_STATE(3)] = 54,
[SMALL_STATE(4)] = 108,
[SMALL_STATE(5)] = 162,
[SMALL_STATE(6)] = 216,
[SMALL_STATE(7)] = 270,
[SMALL_STATE(8)] = 324,
[SMALL_STATE(9)] = 378,
[SMALL_STATE(10)] = 432,
[SMALL_STATE(11)] = 486,
[SMALL_STATE(12)] = 540,
[SMALL_STATE(13)] = 594,
[SMALL_STATE(14)] = 648,
[SMALL_STATE(15)] = 702,
[SMALL_STATE(16)] = 756,
[SMALL_STATE(17)] = 810,
[SMALL_STATE(18)] = 864,
[SMALL_STATE(19)] = 918,
[SMALL_STATE(20)] = 947,
[SMALL_STATE(21)] = 976,
[SMALL_STATE(22)] = 1007,
[SMALL_STATE(23)] = 1038,
[SMALL_STATE(24)] = 1054,
[SMALL_STATE(25)] = 1070,
[SMALL_STATE(26)] = 1086,
[SMALL_STATE(27)] = 1106,
[SMALL_STATE(28)] = 1128,
[SMALL_STATE(29)] = 1150,
[SMALL_STATE(30)] = 1166,
[SMALL_STATE(31)] = 1182,
[SMALL_STATE(32)] = 1198,
[SMALL_STATE(33)] = 1210,
[SMALL_STATE(34)] = 1222,
[SMALL_STATE(35)] = 1242,
[SMALL_STATE(36)] = 1256,
[SMALL_STATE(37)] = 1268,
[SMALL_STATE(38)] = 1280,
[SMALL_STATE(39)] = 1300,
[SMALL_STATE(40)] = 1320,
[SMALL_STATE(41)] = 1332,
[SMALL_STATE(42)] = 1344,
[SMALL_STATE(43)] = 1364,
[SMALL_STATE(44)] = 1377,
[SMALL_STATE(45)] = 1394,
[SMALL_STATE(46)] = 1409,
[SMALL_STATE(47)] = 1426,
[SMALL_STATE(48)] = 1441,
[SMALL_STATE(49)] = 1451,
[SMALL_STATE(50)] = 1461,
[SMALL_STATE(51)] = 1471,
[SMALL_STATE(52)] = 1485,
[SMALL_STATE(53)] = 1495,
[SMALL_STATE(54)] = 1505,
[SMALL_STATE(55)] = 1519,
[SMALL_STATE(56)] = 1533,
[SMALL_STATE(57)] = 1543,
[SMALL_STATE(58)] = 1557,
[SMALL_STATE(59)] = 1568,
[SMALL_STATE(60)] = 1579,
[SMALL_STATE(61)] = 1592,
[SMALL_STATE(62)] = 1603,
[SMALL_STATE(63)] = 1616,
[SMALL_STATE(64)] = 1627,
[SMALL_STATE(65)] = 1638,
[SMALL_STATE(66)] = 1649,
[SMALL_STATE(67)] = 1657,
[SMALL_STATE(68)] = 1665,
[SMALL_STATE(69)] = 1673,
[SMALL_STATE(70)] = 1683,
[SMALL_STATE(71)] = 1691,
[SMALL_STATE(72)] = 1698,
[SMALL_STATE(73)] = 1705,
[SMALL_STATE(74)] = 1712,
[SMALL_STATE(75)] = 1719,
[SMALL_STATE(76)] = 1726,
[SMALL_STATE(77)] = 1733,
[SMALL_STATE(78)] = 1740,
[SMALL_STATE(79)] = 1747,
[SMALL_STATE(80)] = 1754,
[SMALL_STATE(81)] = 1761,
[SMALL_STATE(82)] = 1768,
[SMALL_STATE(83)] = 1775,
[SMALL_STATE(84)] = 1782,
[SMALL_STATE(85)] = 1789,
[SMALL_STATE(86)] = 1796,
[SMALL_STATE(87)] = 1803,
[SMALL_STATE(88)] = 1810,
[SMALL_STATE(89)] = 1817,
[SMALL_STATE(90)] = 1824,
[SMALL_STATE(91)] = 1831,
2024-11-20 19:29:09 -08:00
};
static const TSParseActionEntry ts_parse_actions[] = {
[0] = {.entry = {.count = 0, .reusable = false}},
[1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(),
2024-11-21 13:14:46 -08:00
[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(78),
[9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85),
[11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84),
[13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(24),
[15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4),
[17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24),
[19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23),
[21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58),
[23] = {.entry = {.count = 1, .reusable = false}}, SHIFT(58),
[25] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63),
[27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(63),
[29] = {.entry = {.count = 1, .reusable = false}}, SHIFT(59),
[31] = {.entry = {.count = 1, .reusable = false}}, SHIFT(29),
[33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18),
[35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29),
[37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30),
[39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64),
[41] = {.entry = {.count = 1, .reusable = false}}, SHIFT(64),
[43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65),
[45] = {.entry = {.count = 1, .reusable = false}}, SHIFT(65),
[47] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_app, 1, 0, 0),
[49] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(24),
[52] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(4),
[55] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0),
[57] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(23),
[60] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(29),
[63] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(18),
[66] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(29),
[69] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(30),
[72] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0),
[74] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_app, 1, 0, 0),
[76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_square, 1, 0, 0),
[78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_term, 1, 0, 0),
[80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_term, 3, 0, 0),
[82] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_labs_repeat1, 2, 0, 0), SHIFT_REPEAT(69),
[85] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_labs_repeat1, 2, 0, 0),
[87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_labs_repeat1, 2, 0, 0),
[89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_program, 1, 0, 0),
[91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0),
[93] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), SHIFT_REPEAT(78),
[96] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), SHIFT_REPEAT(85),
[99] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), SHIFT_REPEAT(84),
[102] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_term, 1, 0, 0),
[104] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_square, 1, 0, 0),
[106] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_term, 3, 0, 0),
[108] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_app_term, 1, 0, 0),
[110] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_arrow, 3, 0, 0),
[112] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69),
[114] = {.entry = {.count = 1, .reusable = false}}, SHIFT(2),
[116] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11),
[118] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_param_block, 5, 0, 3),
[120] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_param_block, 5, 0, 3),
[122] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_labs, 4, 0, 0),
[124] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pabs, 4, 0, 0),
[126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3),
[128] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12),
[130] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_expr, 1, 0, 0),
[132] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_let, 5, 0, 0),
[134] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5),
[136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6),
[138] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2),
[140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9),
[142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16),
[144] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_preprocess, 2, 0, 0),
[146] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_definition, 5, 0, 2),
[148] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_axiom, 5, 0, 2),
[150] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_let_repeat1, 2, 0, 0), SHIFT_REPEAT(82),
[153] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_let_repeat1, 2, 0, 0),
[155] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_axiom, 4, 0, 2),
[157] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_definition, 6, 0, 2),
[159] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82),
[161] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10),
[163] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15),
[165] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_definition, 7, 0, 2),
[167] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17),
[169] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_param_block_repeat1, 2, 0, 0), SHIFT_REPEAT(60),
[172] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_param_block_repeat1, 2, 0, 0),
[174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14),
[176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60),
[178] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7),
[180] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binding, 5, 0, 0),
[182] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binding, 6, 0, 0),
[184] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ascription, 2, 0, 1),
[186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62),
[188] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binding, 7, 0, 0),
[190] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(),
[192] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67),
[194] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70),
[196] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25),
[198] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41),
[200] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44),
[202] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35),
[204] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52),
[206] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66),
[208] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34),
[210] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49),
[212] = {.entry = {.count = 1, .reusable = false}}, SHIFT_EXTRA(),
[214] = {.entry = {.count = 1, .reusable = false}}, SHIFT(48),
[216] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38),
[218] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31),
[220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13),
[222] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56),
[224] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8),
[226] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50),
[228] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53),
2024-11-20 19:29:09 -08:00
};
#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,
2024-11-20 21:46:51 -08:00
.field_names = ts_field_names,
.field_map_slices = ts_field_map_slices,
.field_map_entries = ts_field_map_entries,
2024-11-20 19:29:09 -08:00
.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