tree-sitter-perga/src/parser.c

2610 lines
64 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
2024-11-23 10:39:33 -08:00
#define STATE_COUNT 79
2024-11-23 10:06:53 -08:00
#define LARGE_STATE_COUNT 2
#define SYMBOL_COUNT 47
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
2024-11-20 19:29:09 -08:00
#define MAX_ALIAS_SEQUENCE_LENGTH 6
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,
2024-11-21 13:14:46 -08:00
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,
2024-11-23 10:06:53 -08:00
anon_sym_COLON_EQ = 17,
anon_sym_let = 18,
anon_sym_in = 19,
anon_sym_end = 20,
sym_axiom = 21,
anon_sym_DASH_GT = 22,
anon_sym_u2192 = 23,
anon_sym_SEMI = 24,
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_arrow = 36,
sym_app_term = 37,
sym_expr = 38,
sym_ascription = 39,
sym_definition = 40,
sym_preprocess = 41,
aux_sym_program_repeat1 = 42,
aux_sym_param_block_repeat1 = 43,
aux_sym_labs_repeat1 = 44,
aux_sym_let_repeat1 = 45,
aux_sym_app_repeat1 = 46,
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",
2024-11-21 13:14:46 -08:00
[sym_block_comment] = "block_comment",
2024-11-20 19:29:09 -08:00
[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",
2024-11-20 19:29:09 -08:00
[sym_axiom] = "axiom",
[anon_sym_DASH_GT] = "->",
[anon_sym_u2192] = "\u2192",
[anon_sym_SEMI] = ";",
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_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,
2024-11-21 13:14:46 -08:00
[sym_block_comment] = sym_block_comment,
2024-11-20 19:29:09 -08:00
[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,
2024-11-20 19:29:09 -08:00
[sym_axiom] = sym_axiom,
[anon_sym_DASH_GT] = anon_sym_DASH_GT,
[anon_sym_u2192] = anon_sym_u2192,
[anon_sym_SEMI] = anon_sym_SEMI,
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_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,
},
2024-11-21 13:14:46 -08:00
[sym_block_comment] = {
.visible = true,
.named = true,
},
2024-11-20 19:29:09 -08:00
[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,
},
2024-11-20 19:29:09 -08:00
[sym_axiom] = {
.visible = true,
.named = true,
},
[anon_sym_DASH_GT] = {
.visible = true,
.named = false,
},
[anon_sym_u2192] = {
.visible = true,
.named = false,
},
[anon_sym_SEMI] = {
.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_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, 0},
[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,
2024-11-23 10:39:33 -08:00
[14] = 10,
[15] = 9,
[16] = 5,
[17] = 8,
2024-11-20 19:29:09 -08:00
[18] = 18,
[19] = 19,
2024-11-23 10:39:33 -08:00
[20] = 18,
[21] = 19,
2024-11-20 19:29:09 -08:00
[22] = 22,
[23] = 23,
[24] = 24,
2024-11-23 10:39:33 -08:00
[25] = 24,
[26] = 26,
[27] = 23,
[28] = 22,
2024-11-20 19:29:09 -08:00
[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,
2024-11-23 10:39:33 -08:00
[42] = 40,
[43] = 43,
2024-11-20 19:29:09 -08:00
[44] = 44,
[45] = 45,
[46] = 46,
2024-11-23 10:39:33 -08:00
[47] = 47,
[48] = 43,
2024-11-20 19:29:09 -08:00
[49] = 49,
2024-11-22 10:37:30 -08:00
[50] = 50,
2024-11-23 10:39:33 -08:00
[51] = 41,
2024-11-23 10:06:53 -08:00
[52] = 52,
[53] = 53,
[54] = 54,
[55] = 55,
2024-11-23 10:39:33 -08:00
[56] = 50,
[57] = 57,
2024-11-23 10:06:53 -08:00
[58] = 58,
2024-11-23 10:39:33 -08:00
[59] = 59,
[60] = 54,
2024-11-23 10:06:53 -08:00
[61] = 61,
[62] = 62,
[63] = 63,
[64] = 64,
[65] = 65,
[66] = 66,
[67] = 67,
[68] = 68,
[69] = 69,
[70] = 70,
[71] = 71,
[72] = 72,
2024-11-23 10:39:33 -08:00
[73] = 67,
[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,
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:
2024-11-23 10:06:53 -08:00
if (eof) ADVANCE(35);
2024-11-20 19:29:09 -08:00
ADVANCE_MAP(
2024-11-23 10:06:53 -08:00
'(', 54,
')', 56,
'*', 57,
',', 68,
'-', 8,
':', 55,
';', 79,
'=', 9,
'@', 18,
'[', 5,
'a', 32,
'e', 23,
'f', 27,
'i', 24,
'l', 15,
0x3bb, 60,
0x2192, 78,
0x21d2, 64,
0x220f, 65,
0x25a1, 58,
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);
2024-11-23 10:06:53 -08:00
if (lookahead == '-') ADVANCE(84);
if (lookahead == '[') ADVANCE(83);
2024-11-22 10:37:30 -08:00
if (('\t' <= lookahead && lookahead <= '\r') ||
2024-11-23 10:06:53 -08:00
lookahead == ' ') ADVANCE(85);
if (lookahead != 0) ADVANCE(86);
2024-11-22 10:37:30 -08:00
END_STATE();
case 2:
2024-11-23 10:06:53 -08:00
if (lookahead == '(') ADVANCE(54);
if (lookahead == '*') ADVANCE(57);
if (lookahead == '-') ADVANCE(8);
if (lookahead == '[') ADVANCE(5);
if (lookahead == 'e') ADVANCE(44);
if (lookahead == 0x2192) ADVANCE(78);
if (lookahead == 0x25a1) ADVANCE(58);
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 == '_' ||
2024-11-23 10:06:53 -08:00
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
2024-11-20 19:29:09 -08:00
END_STATE();
case 3:
2024-11-23 10:06:53 -08:00
ADVANCE_MAP(
'(', 54,
'*', 57,
'-', 7,
'[', 5,
'a', 49,
'f', 45,
'l', 38,
0x3bb, 60,
0x220f, 65,
0x25a1, 58,
);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') SKIP(3);
if (('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('b' <= lookahead && lookahead <= 'z')) ADVANCE(50);
2024-11-20 19:29:09 -08:00
END_STATE();
case 4:
2024-11-23 10:06:53 -08:00
ADVANCE_MAP(
'(', 54,
'*', 57,
'-', 7,
'[', 5,
'f', 45,
'l', 38,
0x3bb, 60,
0x220f, 65,
0x25a1, 58,
);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') SKIP(4);
if (('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
2024-11-20 19:29:09 -08:00
END_STATE();
case 5:
2024-11-23 10:06:53 -08:00
if (lookahead == '*') ADVANCE(6);
if (lookahead == ']') ADVANCE(59);
2024-11-21 13:14:46 -08:00
END_STATE();
case 6:
2024-11-23 10:06:53 -08:00
if (lookahead == '*') ADVANCE(10);
if (lookahead == '[') ADVANCE(33);
if (lookahead != 0 &&
lookahead != ']') ADVANCE(6);
2024-11-21 13:14:46 -08:00
END_STATE();
case 7:
2024-11-23 10:06:53 -08:00
if (lookahead == '-') ADVANCE(51);
2024-11-21 13:14:46 -08:00
END_STATE();
case 8:
2024-11-23 10:06:53 -08:00
if (lookahead == '-') ADVANCE(51);
if (lookahead == '>') ADVANCE(77);
2024-11-21 13:14:46 -08:00
END_STATE();
case 9:
2024-11-23 10:06:53 -08:00
if (lookahead == '>') ADVANCE(63);
2024-11-22 10:37:30 -08:00
END_STATE();
case 10:
2024-11-23 10:06:53 -08:00
if (lookahead == ']') ADVANCE(53);
if (lookahead != 0) ADVANCE(6);
2024-11-22 10:37:30 -08:00
END_STATE();
case 11:
2024-11-23 10:06:53 -08:00
if (lookahead == 'a') ADVANCE(21);
2024-11-22 10:37:30 -08:00
END_STATE();
case 12:
2024-11-23 10:06:53 -08:00
if (lookahead == 'c') ADVANCE(19);
2024-11-22 10:37:30 -08:00
END_STATE();
case 13:
2024-11-23 10:06:53 -08:00
if (lookahead == 'd') ADVANCE(73);
2024-11-22 10:37:30 -08:00
END_STATE();
case 14:
2024-11-23 10:06:53 -08:00
if (lookahead == 'd') ADVANCE(16);
2024-11-22 10:37:30 -08:00
END_STATE();
case 15:
2024-11-23 10:06:53 -08:00
if (lookahead == 'e') ADVANCE(30);
2024-11-22 10:37:30 -08:00
END_STATE();
case 16:
2024-11-23 10:06:53 -08:00
if (lookahead == 'e') ADVANCE(87);
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(66);
END_STATE();
case 21:
if (lookahead == 'l') ADVANCE(20);
END_STATE();
case 22:
if (lookahead == 'm') ADVANCE(75);
END_STATE();
case 23:
if (lookahead == 'n') ADVANCE(13);
END_STATE();
case 24:
if (lookahead == 'n') ADVANCE(72);
END_STATE();
case 25:
if (lookahead == 'n') ADVANCE(12);
END_STATE();
case 26:
if (lookahead == 'n') ADVANCE(61);
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(11);
END_STATE();
case 30:
if (lookahead == 't') ADVANCE(70);
END_STATE();
case 31:
if (lookahead == 'u') ADVANCE(14);
END_STATE();
case 32:
if (lookahead == 'x') ADVANCE(17);
END_STATE();
case 33:
if (lookahead != 0) ADVANCE(6);
END_STATE();
case 34:
if (eof) ADVANCE(35);
2024-11-20 19:29:09 -08:00
ADVANCE_MAP(
2024-11-23 10:06:53 -08:00
'(', 54,
')', 56,
'*', 57,
'-', 8,
':', 55,
';', 79,
'@', 18,
'[', 5,
0x2192, 78,
0x25a1, 58,
2024-11-20 19:29:09 -08:00
);
if (('\t' <= lookahead && lookahead <= '\r') ||
2024-11-23 10:06:53 -08:00
lookahead == ' ') SKIP(34);
2024-11-20 19:29:09 -08:00
if (('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
2024-11-23 10:06:53 -08:00
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 35:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(ts_builtin_sym_end);
END_STATE();
2024-11-23 10:06:53 -08:00
case 36:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(sym_identifier);
2024-11-23 10:06:53 -08:00
if (lookahead == 'a') ADVANCE(41);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
2024-11-23 10:06:53 -08:00
('b' <= lookahead && lookahead <= 'z')) ADVANCE(50);
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);
2024-11-23 10:06:53 -08:00
if (lookahead == 'd') ADVANCE(74);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
2024-11-23 10:06:53 -08:00
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
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);
2024-11-23 10:06:53 -08:00
if (lookahead == 'e') ADVANCE(48);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
2024-11-23 10:06:53 -08:00
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
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);
2024-11-23 10:06:53 -08:00
if (lookahead == 'i') ADVANCE(46);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
2024-11-23 10:06:53 -08:00
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
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);
2024-11-23 10:06:53 -08:00
if (lookahead == 'l') ADVANCE(67);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
2024-11-23 10:06:53 -08:00
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
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);
2024-11-23 10:06:53 -08:00
if (lookahead == 'l') ADVANCE(40);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
2024-11-23 10:06:53 -08:00
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
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);
2024-11-23 10:06:53 -08:00
if (lookahead == 'm') ADVANCE(76);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
2024-11-23 10:06:53 -08:00
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
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);
2024-11-23 10:06:53 -08:00
if (lookahead == 'n') ADVANCE(62);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
2024-11-23 10:06:53 -08:00
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
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);
2024-11-23 10:06:53 -08:00
if (lookahead == 'n') ADVANCE(37);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
2024-11-23 10:06:53 -08:00
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
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_identifier);
2024-11-23 10:06:53 -08:00
if (lookahead == 'o') ADVANCE(47);
if (lookahead == 'u') ADVANCE(43);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
2024-11-23 10:06:53 -08:00
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 46:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(sym_identifier);
2024-11-23 10:06:53 -08:00
if (lookahead == 'o') ADVANCE(42);
2024-11-20 19:29:09 -08:00
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
2024-11-23 10:06:53 -08:00
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 47:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'r') ADVANCE(36);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
END_STATE();
case 48:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 't') ADVANCE(71);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
END_STATE();
case 49:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'x') ADVANCE(39);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
END_STATE();
case 50:
ACCEPT_TOKEN(sym_identifier);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
END_STATE();
case 51:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(sym_comment);
if (lookahead != 0 &&
2024-11-23 10:06:53 -08:00
lookahead != '\n') ADVANCE(51);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 52:
2024-11-22 10:37:30 -08:00
ACCEPT_TOKEN(sym_block_comment);
2024-11-23 10:06:53 -08:00
if (lookahead == '\n') ADVANCE(6);
if (lookahead == '*') ADVANCE(81);
if (lookahead == '[') ADVANCE(82);
if (lookahead == ']') ADVANCE(86);
if (lookahead != 0) ADVANCE(80);
2024-11-22 10:37:30 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 53:
2024-11-21 13:14:46 -08:00
ACCEPT_TOKEN(sym_block_comment);
2024-11-23 10:06:53 -08:00
if (lookahead == '*') ADVANCE(10);
if (lookahead == '[') ADVANCE(33);
2024-11-21 13:14:46 -08:00
if (lookahead != 0 &&
2024-11-23 10:06:53 -08:00
lookahead != ']') ADVANCE(6);
2024-11-21 13:14:46 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 54:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_LPAREN);
END_STATE();
2024-11-23 10:06:53 -08:00
case 55:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_COLON);
2024-11-23 10:06:53 -08:00
if (lookahead == '=') ADVANCE(69);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 56:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_RPAREN);
END_STATE();
2024-11-23 10:06:53 -08:00
case 57:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(sym_star);
END_STATE();
2024-11-23 10:06:53 -08:00
case 58:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_u25a1);
END_STATE();
2024-11-23 10:06:53 -08:00
case 59:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_LBRACK_RBRACK);
END_STATE();
2024-11-23 10:06:53 -08:00
case 60:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_u03bb);
END_STATE();
2024-11-23 10:06:53 -08:00
case 61:
ACCEPT_TOKEN(anon_sym_fun);
END_STATE();
case 62:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_fun);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
2024-11-23 10:06:53 -08:00
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 63:
2024-11-20 21:46:51 -08:00
ACCEPT_TOKEN(anon_sym_EQ_GT);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 64:
2024-11-20 21:46:51 -08:00
ACCEPT_TOKEN(anon_sym_u21d2);
END_STATE();
2024-11-23 10:06:53 -08:00
case 65:
2024-11-20 21:46:51 -08:00
ACCEPT_TOKEN(anon_sym_u220f);
END_STATE();
2024-11-23 10:06:53 -08:00
case 66:
ACCEPT_TOKEN(anon_sym_forall);
END_STATE();
case 67:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_forall);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
2024-11-23 10:06:53 -08:00
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 68:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_COMMA);
END_STATE();
2024-11-23 10:06:53 -08:00
case 69:
ACCEPT_TOKEN(anon_sym_COLON_EQ);
END_STATE();
case 70:
ACCEPT_TOKEN(anon_sym_let);
END_STATE();
case 71:
ACCEPT_TOKEN(anon_sym_let);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
END_STATE();
case 72:
ACCEPT_TOKEN(anon_sym_in);
END_STATE();
case 73:
ACCEPT_TOKEN(anon_sym_end);
END_STATE();
case 74:
ACCEPT_TOKEN(anon_sym_end);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
END_STATE();
case 75:
ACCEPT_TOKEN(sym_axiom);
END_STATE();
case 76:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(sym_axiom);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
2024-11-23 10:06:53 -08:00
('a' <= lookahead && lookahead <= 'z')) ADVANCE(50);
2024-11-20 19:29:09 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 77:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_DASH_GT);
END_STATE();
2024-11-23 10:06:53 -08:00
case 78:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_u2192);
END_STATE();
2024-11-23 10:06:53 -08:00
case 79:
2024-11-20 19:29:09 -08:00
ACCEPT_TOKEN(anon_sym_SEMI);
END_STATE();
2024-11-23 10:06:53 -08:00
case 80:
2024-11-22 10:37:30 -08:00
ACCEPT_TOKEN(sym_post_command);
2024-11-23 10:06:53 -08:00
if (lookahead == '\n') ADVANCE(6);
if (lookahead == '*') ADVANCE(81);
if (lookahead == '[') ADVANCE(82);
if (lookahead == ']') ADVANCE(86);
if (lookahead != 0) ADVANCE(80);
2024-11-22 10:37:30 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 81:
2024-11-22 10:37:30 -08:00
ACCEPT_TOKEN(sym_post_command);
2024-11-23 10:06:53 -08:00
if (lookahead == '\n') ADVANCE(6);
if (lookahead == ']') ADVANCE(52);
if (lookahead != 0) ADVANCE(80);
2024-11-22 10:37:30 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 82:
2024-11-22 10:37:30 -08:00
ACCEPT_TOKEN(sym_post_command);
2024-11-23 10:06:53 -08:00
if (lookahead == '\n') ADVANCE(6);
if (lookahead != 0) ADVANCE(80);
2024-11-22 10:37:30 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 83:
2024-11-22 10:37:30 -08:00
ACCEPT_TOKEN(sym_post_command);
2024-11-23 10:06:53 -08:00
if (lookahead == '*') ADVANCE(80);
2024-11-22 10:37:30 -08:00
if (lookahead != 0 &&
2024-11-23 10:06:53 -08:00
lookahead != '\n') ADVANCE(86);
2024-11-22 10:37:30 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 84:
2024-11-22 10:37:30 -08:00
ACCEPT_TOKEN(sym_post_command);
2024-11-23 10:06:53 -08:00
if (lookahead == '-') ADVANCE(51);
2024-11-22 10:37:30 -08:00
if (lookahead != 0 &&
2024-11-23 10:06:53 -08:00
lookahead != '\n') ADVANCE(86);
2024-11-22 10:37:30 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 85:
2024-11-22 10:37:30 -08:00
ACCEPT_TOKEN(sym_post_command);
2024-11-23 10:06:53 -08:00
if (lookahead == '-') ADVANCE(84);
if (lookahead == '[') ADVANCE(83);
2024-11-22 10:37:30 -08:00
if (lookahead == '\t' ||
(0x0b <= lookahead && lookahead <= '\r') ||
2024-11-23 10:06:53 -08:00
lookahead == ' ') ADVANCE(85);
2024-11-22 10:37:30 -08:00
if (lookahead != 0 &&
2024-11-23 10:06:53 -08:00
(lookahead < '\t' || '\r' < lookahead)) ADVANCE(86);
2024-11-22 10:37:30 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 86:
2024-11-22 10:37:30 -08:00
ACCEPT_TOKEN(sym_post_command);
if (lookahead != 0 &&
2024-11-23 10:06:53 -08:00
lookahead != '\n') ADVANCE(86);
2024-11-22 10:37:30 -08:00
END_STATE();
2024-11-23 10:06:53 -08:00
case 87:
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},
2024-11-23 10:06:53 -08:00
[1] = {.lex_state = 34},
[2] = {.lex_state = 3},
[3] = {.lex_state = 3},
[4] = {.lex_state = 3},
[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 = 34},
[19] = {.lex_state = 34},
[20] = {.lex_state = 2},
[21] = {.lex_state = 2},
[22] = {.lex_state = 34},
[23] = {.lex_state = 34},
[24] = {.lex_state = 34},
2024-11-23 10:39:33 -08:00
[25] = {.lex_state = 2},
[26] = {.lex_state = 0},
2024-11-23 10:06:53 -08:00
[27] = {.lex_state = 2},
[28] = {.lex_state = 2},
[29] = {.lex_state = 34},
2024-11-22 10:37:30 -08:00
[30] = {.lex_state = 0},
[31] = {.lex_state = 0},
2024-11-23 10:39:33 -08:00
[32] = {.lex_state = 34},
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},
2024-11-23 10:06:53 -08:00
[49] = {.lex_state = 34},
2024-11-23 10:39:33 -08:00
[50] = {.lex_state = 0},
[51] = {.lex_state = 0},
2024-11-23 10:06:53 -08:00
[52] = {.lex_state = 34},
[53] = {.lex_state = 34},
[54] = {.lex_state = 0},
[55] = {.lex_state = 34},
2024-11-23 10:39:33 -08:00
[56] = {.lex_state = 0},
[57] = {.lex_state = 34},
[58] = {.lex_state = 34},
2024-11-23 10:06:53 -08:00
[59] = {.lex_state = 0},
[60] = {.lex_state = 0},
[61] = {.lex_state = 0},
2024-11-23 10:39:33 -08:00
[62] = {.lex_state = 34},
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},
2024-11-23 10:39:33 -08:00
[69] = {.lex_state = 1},
2024-11-23 10:06:53 -08:00
[70] = {.lex_state = 0},
2024-11-23 10:39:33 -08:00
[71] = {.lex_state = 34},
[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},
2024-11-23 10:39:33 -08:00
[78] = {.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),
[sym_block_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),
2024-11-20 19:29:09 -08:00
[sym_axiom] = ACTIONS(1),
[anon_sym_DASH_GT] = ACTIONS(1),
[anon_sym_u2192] = ACTIONS(1),
[anon_sym_SEMI] = ACTIONS(1),
2024-11-22 10:37:30 -08:00
[sym_command] = ACTIONS(1),
2024-11-20 19:29:09 -08:00
},
[1] = {
2024-11-23 10:06:53 -08:00
[sym_program] = STATE(75),
2024-11-23 10:39:33 -08:00
[sym_definition] = STATE(32),
[sym_preprocess] = STATE(32),
[aux_sym_program_repeat1] = STATE(32),
2024-11-21 13:14:46 -08:00
[ts_builtin_sym_end] = ACTIONS(5),
[sym_identifier] = ACTIONS(7),
[sym_comment] = ACTIONS(3),
[sym_block_comment] = ACTIONS(3),
2024-11-22 10:37:30 -08:00
[sym_command] = ACTIONS(9),
2024-11-20 19:29:09 -08:00
},
};
static const uint16_t ts_small_parse_table[] = {
2024-11-23 10:06:53 -08:00
[0] = 17,
2024-11-20 21:46:51 -08:00
ACTIONS(11), 1,
2024-11-22 10:37:30 -08:00
sym_identifier,
ACTIONS(13), 1,
2024-11-20 21:46:51 -08:00
anon_sym_LPAREN,
2024-11-22 10:37:30 -08:00
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,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_let,
ACTIONS(29), 1,
sym_axiom,
2024-11-23 10:39:33 -08:00
STATE(23), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(35), 1,
2024-11-22 10:37:30 -08:00
sym_arrow,
2024-11-23 10:39:33 -08:00
STATE(41), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
2024-11-23 10:39:33 -08:00
STATE(76), 1,
2024-11-22 10:37:30 -08:00
sym_expr,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-22 10:37:30 -08:00
ACTIONS(17), 2,
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,
2024-11-23 10:39:33 -08:00
STATE(39), 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,
2024-11-23 10:06:53 -08:00
[58] = 17,
2024-11-22 10:37:30 -08:00
ACTIONS(11), 1,
2024-11-20 19:29:09 -08:00
sym_identifier,
2024-11-22 10:37:30 -08:00
ACTIONS(13), 1,
anon_sym_LPAREN,
ACTIONS(15), 1,
2024-11-20 19:29:09 -08:00
sym_star,
2024-11-22 10:37:30 -08:00
ACTIONS(19), 1,
anon_sym_u03bb,
ACTIONS(21), 1,
anon_sym_fun,
ACTIONS(23), 1,
anon_sym_u220f,
ACTIONS(25), 1,
anon_sym_forall,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_let,
ACTIONS(31), 1,
sym_axiom,
2024-11-23 10:39:33 -08:00
STATE(23), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(35), 1,
2024-11-22 10:37:30 -08:00
sym_arrow,
2024-11-23 10:39:33 -08:00
STATE(41), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
2024-11-23 10:39:33 -08:00
STATE(72), 1,
2024-11-22 10:37:30 -08:00
sym_expr,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(17), 2,
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,
2024-11-23 10:39:33 -08:00
STATE(39), 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,
2024-11-23 10:06:53 -08:00
[116] = 17,
2024-11-22 10:37:30 -08:00
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,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_let,
ACTIONS(33), 1,
sym_axiom,
2024-11-23 10:39:33 -08:00
STATE(23), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(35), 1,
2024-11-22 10:37:30 -08:00
sym_arrow,
2024-11-23 10:39:33 -08:00
STATE(41), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
2024-11-23 10:39:33 -08:00
STATE(64), 1,
2024-11-22 10:37:30 -08:00
sym_expr,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(17), 2,
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,
2024-11-23 10:39:33 -08:00
STATE(39), 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,
2024-11-23 10:06:53 -08:00
[174] = 16,
2024-11-22 10:37:30 -08:00
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,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_let,
2024-11-23 10:39:33 -08:00
STATE(23), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(35), 1,
2024-11-22 10:37:30 -08:00
sym_arrow,
2024-11-23 10:39:33 -08:00
STATE(36), 1,
2024-11-22 10:37:30 -08:00
sym_expr,
2024-11-23 10:39:33 -08:00
STATE(41), 1,
sym_app_term,
2024-11-22 10:37:30 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(17), 2,
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,
2024-11-23 10:39:33 -08:00
STATE(39), 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,
2024-11-23 10:06:53 -08:00
[229] = 16,
2024-11-22 10:37:30 -08:00
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,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_let,
2024-11-23 10:39:33 -08:00
STATE(23), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(35), 1,
2024-11-23 10:06:53 -08:00
sym_arrow,
2024-11-23 10:39:33 -08:00
STATE(41), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
2024-11-23 10:39:33 -08:00
STATE(70), 1,
2024-11-22 10:37:30 -08:00
sym_expr,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(17), 2,
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,
2024-11-23 10:39:33 -08:00
STATE(39), 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,
2024-11-23 10:06:53 -08:00
[284] = 16,
2024-11-22 10:37:30 -08:00
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,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_let,
2024-11-23 10:39:33 -08:00
STATE(23), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(35), 1,
2024-11-22 10:37:30 -08:00
sym_arrow,
2024-11-23 10:39:33 -08:00
STATE(41), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
2024-11-23 10:39:33 -08:00
STATE(77), 1,
2024-11-22 10:37:30 -08:00
sym_expr,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(17), 2,
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,
2024-11-23 10:39:33 -08:00
STATE(39), 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,
2024-11-23 10:06:53 -08:00
[339] = 16,
2024-11-22 10:37:30 -08:00
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,
2024-11-23 10:06:53 -08:00
ACTIONS(27), 1,
anon_sym_let,
2024-11-23 10:39:33 -08:00
STATE(23), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(35), 1,
2024-11-22 10:37:30 -08:00
sym_arrow,
2024-11-23 10:39:33 -08:00
STATE(41), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
2024-11-23 10:39:33 -08:00
STATE(67), 1,
sym_expr,
2024-11-22 10:37:30 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(17), 2,
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,
2024-11-23 10:39:33 -08:00
STATE(39), 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,
2024-11-23 10:06:53 -08:00
[394] = 16,
ACTIONS(11), 1,
sym_identifier,
2024-11-22 10:37:30 -08:00
ACTIONS(13), 1,
anon_sym_LPAREN,
2024-11-23 10:06:53 -08:00
ACTIONS(15), 1,
2024-11-22 10:37:30 -08:00
sym_star,
2024-11-23 10:06:53 -08:00
ACTIONS(19), 1,
anon_sym_u03bb,
ACTIONS(21), 1,
anon_sym_fun,
ACTIONS(23), 1,
anon_sym_u220f,
ACTIONS(25), 1,
anon_sym_forall,
ACTIONS(27), 1,
anon_sym_let,
2024-11-23 10:39:33 -08:00
STATE(23), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(33), 1,
sym_expr,
STATE(35), 1,
2024-11-23 10:06:53 -08:00
sym_arrow,
2024-11-23 10:39:33 -08:00
STATE(41), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(17), 2,
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,
2024-11-23 10:39:33 -08:00
STATE(39), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[449] = 16,
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,
ACTIONS(27), 1,
anon_sym_let,
2024-11-23 10:39:33 -08:00
STATE(23), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(35), 1,
2024-11-23 10:06:53 -08:00
sym_arrow,
STATE(38), 1,
sym_expr,
2024-11-23 10:39:33 -08:00
STATE(41), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(17), 2,
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,
2024-11-23 10:39:33 -08:00
STATE(39), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[504] = 16,
ACTIONS(27), 1,
anon_sym_let,
ACTIONS(35), 1,
sym_identifier,
ACTIONS(37), 1,
anon_sym_LPAREN,
ACTIONS(39), 1,
sym_star,
ACTIONS(43), 1,
anon_sym_u03bb,
ACTIONS(45), 1,
anon_sym_fun,
ACTIONS(47), 1,
anon_sym_u220f,
ACTIONS(49), 1,
anon_sym_forall,
2024-11-23 10:39:33 -08:00
STATE(27), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(35), 1,
2024-11-23 10:06:53 -08:00
sym_arrow,
2024-11-23 10:39:33 -08:00
STATE(51), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
2024-11-23 10:39:33 -08:00
STATE(66), 1,
2024-11-23 10:06:53 -08:00
sym_expr,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(41), 2,
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
STATE(21), 2,
sym_term,
aux_sym_app_repeat1,
2024-11-23 10:39:33 -08:00
STATE(39), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[559] = 16,
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,
ACTIONS(27), 1,
anon_sym_let,
2024-11-23 10:39:33 -08:00
STATE(23), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(35), 1,
2024-11-23 10:06:53 -08:00
sym_arrow,
2024-11-23 10:39:33 -08:00
STATE(41), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
2024-11-23 10:39:33 -08:00
STATE(68), 1,
sym_expr,
2024-11-23 10:06:53 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(17), 2,
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,
2024-11-23 10:39:33 -08:00
STATE(39), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[614] = 16,
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,
ACTIONS(27), 1,
anon_sym_let,
2024-11-23 10:39:33 -08:00
STATE(23), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(35), 1,
2024-11-23 10:06:53 -08:00
sym_arrow,
2024-11-23 10:39:33 -08:00
STATE(41), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
2024-11-23 10:39:33 -08:00
STATE(74), 1,
2024-11-23 10:06:53 -08:00
sym_expr,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(17), 2,
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,
2024-11-23 10:39:33 -08:00
STATE(39), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[669] = 16,
ACTIONS(27), 1,
anon_sym_let,
ACTIONS(35), 1,
sym_identifier,
ACTIONS(37), 1,
anon_sym_LPAREN,
ACTIONS(39), 1,
sym_star,
ACTIONS(43), 1,
anon_sym_u03bb,
ACTIONS(45), 1,
anon_sym_fun,
ACTIONS(47), 1,
anon_sym_u220f,
ACTIONS(49), 1,
anon_sym_forall,
2024-11-23 10:39:33 -08:00
STATE(27), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(35), 1,
2024-11-23 10:06:53 -08:00
sym_arrow,
2024-11-23 10:39:33 -08:00
STATE(38), 1,
2024-11-23 10:06:53 -08:00
sym_expr,
2024-11-23 10:39:33 -08:00
STATE(51), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(41), 2,
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
STATE(21), 2,
sym_term,
aux_sym_app_repeat1,
2024-11-23 10:39:33 -08:00
STATE(39), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[724] = 16,
ACTIONS(27), 1,
anon_sym_let,
ACTIONS(35), 1,
sym_identifier,
ACTIONS(37), 1,
anon_sym_LPAREN,
ACTIONS(39), 1,
sym_star,
ACTIONS(43), 1,
anon_sym_u03bb,
ACTIONS(45), 1,
anon_sym_fun,
ACTIONS(47), 1,
anon_sym_u220f,
ACTIONS(49), 1,
anon_sym_forall,
2024-11-23 10:39:33 -08:00
STATE(27), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(33), 1,
2024-11-23 10:06:53 -08:00
sym_expr,
2024-11-23 10:39:33 -08:00
STATE(35), 1,
sym_arrow,
STATE(51), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(41), 2,
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
STATE(21), 2,
sym_term,
aux_sym_app_repeat1,
2024-11-23 10:39:33 -08:00
STATE(39), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[779] = 16,
ACTIONS(27), 1,
anon_sym_let,
ACTIONS(35), 1,
sym_identifier,
ACTIONS(37), 1,
anon_sym_LPAREN,
ACTIONS(39), 1,
sym_star,
ACTIONS(43), 1,
anon_sym_u03bb,
ACTIONS(45), 1,
anon_sym_fun,
ACTIONS(47), 1,
anon_sym_u220f,
ACTIONS(49), 1,
anon_sym_forall,
2024-11-23 10:39:33 -08:00
STATE(27), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(35), 1,
2024-11-23 10:06:53 -08:00
sym_arrow,
2024-11-23 10:39:33 -08:00
STATE(36), 1,
2024-11-23 10:06:53 -08:00
sym_expr,
2024-11-23 10:39:33 -08:00
STATE(51), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(41), 2,
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
STATE(21), 2,
sym_term,
aux_sym_app_repeat1,
2024-11-23 10:39:33 -08:00
STATE(39), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[834] = 16,
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,
ACTIONS(27), 1,
anon_sym_let,
2024-11-23 10:39:33 -08:00
STATE(23), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-23 10:39:33 -08:00
STATE(35), 1,
2024-11-23 10:06:53 -08:00
sym_arrow,
2024-11-23 10:39:33 -08:00
STATE(41), 1,
2024-11-23 10:06:53 -08:00
sym_app_term,
2024-11-23 10:39:33 -08:00
STATE(73), 1,
2024-11-23 10:06:53 -08:00
sym_expr,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(17), 2,
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,
2024-11-23 10:39:33 -08:00
STATE(39), 4,
2024-11-23 10:06:53 -08:00
sym_labs,
sym_pabs,
sym_let,
sym_app,
[889] = 7,
2024-11-23 10:39:33 -08:00
ACTIONS(54), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
2024-11-23 10:39:33 -08:00
STATE(23), 1,
2024-11-23 10:06:53 -08:00
sym_square,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
ACTIONS(51), 2,
2024-11-23 10:06:53 -08:00
sym_identifier,
sym_star,
2024-11-23 10:39:33 -08:00
ACTIONS(59), 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(18), 2,
2024-11-23 10:06:53 -08:00
sym_term,
aux_sym_app_repeat1,
2024-11-23 10:39:33 -08:00
ACTIONS(57), 5,
2024-11-23 10:06:53 -08:00
anon_sym_RPAREN,
anon_sym_COLON_EQ,
2024-11-20 19:29:09 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
anon_sym_SEMI,
2024-11-23 10:06:53 -08:00
[919] = 7,
2024-11-23 10:39:33 -08:00
ACTIONS(13), 1,
2024-11-20 19:29:09 -08:00
anon_sym_LPAREN,
2024-11-23 10:39:33 -08:00
STATE(23), 1,
2024-11-20 19:29:09 -08:00
sym_square,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
ACTIONS(15), 2,
2024-11-20 19:29:09 -08:00
sym_identifier,
sym_star,
2024-11-23 10:39:33 -08:00
ACTIONS(17), 2,
2024-11-20 19:29:09 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
2024-11-23 10:39:33 -08:00
STATE(18), 2,
2024-11-20 19:29:09 -08:00
sym_term,
aux_sym_app_repeat1,
2024-11-23 10:39:33 -08:00
ACTIONS(62), 5,
2024-11-20 19:29:09 -08:00
anon_sym_RPAREN,
2024-11-23 10:06:53 -08:00
anon_sym_COLON_EQ,
2024-11-20 19:29:09 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
anon_sym_SEMI,
2024-11-23 10:06:53 -08:00
[949] = 9,
ACTIONS(64), 1,
sym_identifier,
ACTIONS(67), 1,
anon_sym_LPAREN,
ACTIONS(70), 1,
sym_star,
ACTIONS(76), 1,
anon_sym_end,
2024-11-23 10:39:33 -08:00
STATE(27), 1,
2024-11-23 10:06:53 -08:00
sym_square,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
ACTIONS(57), 2,
2024-11-23 10:06:53 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
ACTIONS(73), 2,
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
STATE(20), 2,
sym_term,
aux_sym_app_repeat1,
[981] = 9,
ACTIONS(35), 1,
2024-11-20 19:29:09 -08:00
sym_identifier,
2024-11-23 10:06:53 -08:00
ACTIONS(37), 1,
2024-11-20 19:29:09 -08:00
anon_sym_LPAREN,
2024-11-23 10:06:53 -08:00
ACTIONS(39), 1,
2024-11-20 19:29:09 -08:00
sym_star,
2024-11-23 10:06:53 -08:00
ACTIONS(78), 1,
anon_sym_end,
2024-11-23 10:39:33 -08:00
STATE(27), 1,
2024-11-23 10:06:53 -08:00
sym_square,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(41), 2,
2024-11-20 19:29:09 -08:00
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
2024-11-23 10:39:33 -08:00
ACTIONS(62), 2,
2024-11-20 19:29:09 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
2024-11-23 10:06:53 -08:00
STATE(20), 2,
sym_term,
aux_sym_app_repeat1,
[1013] = 2,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(80), 10,
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,
2024-11-23 10:06:53 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
2024-11-20 19:29:09 -08:00
anon_sym_SEMI,
2024-11-23 10:06:53 -08:00
[1030] = 2,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:06:53 -08:00
ACTIONS(82), 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_DASH_GT,
anon_sym_u2192,
anon_sym_SEMI,
2024-11-23 10:06:53 -08:00
[1047] = 2,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:06:53 -08:00
ACTIONS(84), 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_DASH_GT,
anon_sym_u2192,
anon_sym_SEMI,
2024-11-23 10:39:33 -08:00
[1064] = 3,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
ACTIONS(86), 2,
2024-11-22 10:37:30 -08:00
sym_identifier,
2024-11-23 10:06:53 -08:00
anon_sym_end,
ACTIONS(84), 6,
anon_sym_LPAREN,
sym_star,
anon_sym_u25a1,
anon_sym_LBRACK_RBRACK,
anon_sym_DASH_GT,
anon_sym_u2192,
2024-11-23 10:39:33 -08:00
[1081] = 5,
ACTIONS(88), 1,
anon_sym_LPAREN,
ACTIONS(91), 1,
anon_sym_COLON,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
STATE(26), 2,
sym_param_block,
aux_sym_labs_repeat1,
ACTIONS(93), 4,
anon_sym_EQ_GT,
anon_sym_u21d2,
anon_sym_COMMA,
anon_sym_COLON_EQ,
2024-11-23 10:06:53 -08:00
[1102] = 3,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(95), 2,
sym_identifier,
anon_sym_end,
2024-11-23 10:39:33 -08:00
ACTIONS(82), 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,
[1119] = 3,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(97), 2,
sym_identifier,
anon_sym_end,
2024-11-23 10:39:33 -08:00
ACTIONS(80), 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,
[1136] = 5,
ACTIONS(99), 1,
2024-11-22 10:37:30 -08:00
ts_builtin_sym_end,
2024-11-23 10:06:53 -08:00
ACTIONS(101), 1,
sym_identifier,
ACTIONS(104), 1,
sym_command,
2024-11-22 10:37:30 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:06:53 -08:00
STATE(29), 3,
2024-11-22 10:37:30 -08:00
sym_definition,
sym_preprocess,
aux_sym_program_repeat1,
2024-11-23 10:39:33 -08:00
[1155] = 6,
ACTIONS(107), 1,
2024-11-22 10:37:30 -08:00
anon_sym_LPAREN,
2024-11-23 10:39:33 -08:00
ACTIONS(109), 1,
2024-11-22 10:37:30 -08:00
anon_sym_COLON,
2024-11-23 10:39:33 -08:00
ACTIONS(111), 1,
2024-11-20 19:29:09 -08:00
anon_sym_COLON_EQ,
2024-11-23 10:39:33 -08:00
STATE(78), 1,
2024-11-20 19:29:09 -08:00
sym_ascription,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
STATE(31), 2,
2024-11-20 19:29:09 -08:00
sym_param_block,
aux_sym_labs_repeat1,
2024-11-23 10:39:33 -08:00
[1176] = 6,
ACTIONS(107), 1,
2024-11-20 19:29:09 -08:00
anon_sym_LPAREN,
2024-11-23 10:39:33 -08:00
ACTIONS(109), 1,
2024-11-22 10:37:30 -08:00
anon_sym_COLON,
2024-11-23 10:39:33 -08:00
ACTIONS(113), 1,
2024-11-20 19:29:09 -08:00
anon_sym_COLON_EQ,
2024-11-23 10:06:53 -08:00
STATE(65), 1,
2024-11-20 19:29:09 -08:00
sym_ascription,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
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,
2024-11-23 10:39:33 -08:00
[1197] = 5,
ACTIONS(7), 1,
sym_identifier,
ACTIONS(9), 1,
sym_command,
ACTIONS(115), 1,
ts_builtin_sym_end,
2024-11-23 10:06:53 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
STATE(29), 3,
sym_definition,
sym_preprocess,
aux_sym_program_repeat1,
[1216] = 2,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(117), 6,
2024-11-23 10:06:53 -08:00
anon_sym_RPAREN,
anon_sym_COLON_EQ,
anon_sym_end,
anon_sym_DASH_GT,
anon_sym_u2192,
anon_sym_SEMI,
2024-11-23 10:39:33 -08:00
[1229] = 3,
ACTIONS(121), 1,
2024-11-20 19:29:09 -08:00
anon_sym_COLON,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
ACTIONS(119), 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,
2024-11-23 10:39:33 -08:00
[1244] = 2,
2024-11-22 10:37:30 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
ACTIONS(123), 6,
anon_sym_RPAREN,
anon_sym_COLON_EQ,
anon_sym_end,
anon_sym_DASH_GT,
anon_sym_u2192,
anon_sym_SEMI,
[1257] = 2,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
ACTIONS(125), 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,
2024-11-20 21:46:51 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
anon_sym_SEMI,
2024-11-23 10:39:33 -08:00
[1270] = 2,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
ACTIONS(127), 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,
2024-11-20 19:29:09 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
anon_sym_SEMI,
2024-11-23 10:39:33 -08:00
[1283] = 2,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
ACTIONS(129), 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,
2024-11-20 19:29:09 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
anon_sym_SEMI,
2024-11-23 10:39:33 -08:00
[1296] = 2,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(131), 6,
anon_sym_RPAREN,
anon_sym_COLON_EQ,
anon_sym_end,
anon_sym_DASH_GT,
anon_sym_u2192,
anon_sym_SEMI,
[1309] = 4,
ACTIONS(107), 1,
2024-11-20 19:29:09 -08:00
anon_sym_LPAREN,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
ACTIONS(133), 2,
2024-11-20 19:29:09 -08:00
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,
2024-11-23 10:39:33 -08:00
[1325] = 3,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
2024-11-20 19:29:09 -08:00
sym_comment,
2024-11-21 13:14:46 -08:00
sym_block_comment,
2024-11-23 10:39:33 -08:00
ACTIONS(135), 2,
2024-11-20 19:29:09 -08:00
anon_sym_DASH_GT,
anon_sym_u2192,
2024-11-23 10:39:33 -08:00
ACTIONS(123), 3,
2024-11-20 19:29:09 -08:00
anon_sym_RPAREN,
anon_sym_COLON_EQ,
anon_sym_SEMI,
2024-11-23 10:39:33 -08:00
[1339] = 4,
ACTIONS(107), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
ACTIONS(137), 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,
2024-11-23 10:39:33 -08:00
[1355] = 4,
ACTIONS(107), 1,
2024-11-20 19:29:09 -08:00
anon_sym_LPAREN,
2024-11-23 10:39:33 -08:00
ACTIONS(139), 1,
2024-11-20 19:29:09 -08:00
anon_sym_COMMA,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
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,
2024-11-23 10:39:33 -08:00
[1370] = 4,
ACTIONS(141), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
2024-11-23 10:39:33 -08:00
ACTIONS(143), 1,
2024-11-23 10:06:53 -08:00
anon_sym_in,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:06:53 -08:00
STATE(46), 2,
sym_binding,
aux_sym_let_repeat1,
2024-11-23 10:39:33 -08:00
[1385] = 4,
ACTIONS(107), 1,
anon_sym_LPAREN,
ACTIONS(145), 1,
anon_sym_COLON_EQ,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
STATE(47), 2,
sym_param_block,
aux_sym_labs_repeat1,
2024-11-23 10:06:53 -08:00
[1400] = 4,
2024-11-23 10:39:33 -08:00
ACTIONS(147), 1,
2024-11-22 10:37:30 -08:00
anon_sym_LPAREN,
2024-11-23 10:39:33 -08:00
ACTIONS(150), 1,
2024-11-23 10:06:53 -08:00
anon_sym_in,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:06:53 -08:00
STATE(46), 2,
sym_binding,
aux_sym_let_repeat1,
[1415] = 4,
2024-11-23 10:39:33 -08:00
ACTIONS(107), 1,
anon_sym_LPAREN,
ACTIONS(152), 1,
anon_sym_COLON_EQ,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
STATE(26), 2,
sym_param_block,
aux_sym_labs_repeat1,
[1430] = 4,
ACTIONS(107), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
ACTIONS(154), 1,
anon_sym_COMMA,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
2024-11-20 21:46:51 -08:00
sym_comment,
2024-11-21 13:14:46 -08:00
sym_block_comment,
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,
2024-11-23 10:39:33 -08:00
[1445] = 2,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(156), 3,
ts_builtin_sym_end,
sym_identifier,
sym_command,
[1455] = 3,
ACTIONS(107), 1,
2024-11-20 21:46:51 -08:00
anon_sym_LPAREN,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
STATE(48), 2,
2024-11-20 21:46:51 -08:00
sym_param_block,
aux_sym_labs_repeat1,
2024-11-23 10:39:33 -08:00
[1467] = 3,
ACTIONS(123), 1,
anon_sym_end,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
ACTIONS(158), 2,
anon_sym_DASH_GT,
anon_sym_u2192,
[1479] = 2,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:06:53 -08:00
ACTIONS(160), 3,
2024-11-20 19:29:09 -08:00
ts_builtin_sym_end,
sym_identifier,
2024-11-22 10:37:30 -08:00
sym_command,
2024-11-23 10:39:33 -08:00
[1489] = 2,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
2024-11-20 19:29:09 -08:00
sym_comment,
2024-11-21 13:14:46 -08:00
sym_block_comment,
2024-11-23 10:06:53 -08:00
ACTIONS(162), 3,
2024-11-21 13:14:46 -08:00
ts_builtin_sym_end,
sym_identifier,
2024-11-22 10:37:30 -08:00
sym_command,
2024-11-23 10:39:33 -08:00
[1499] = 3,
ACTIONS(107), 1,
anon_sym_LPAREN,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
STATE(40), 2,
sym_param_block,
aux_sym_labs_repeat1,
[1511] = 4,
2024-11-23 10:06:53 -08:00
ACTIONS(164), 1,
sym_identifier,
ACTIONS(166), 1,
anon_sym_COLON,
2024-11-23 10:39:33 -08:00
STATE(57), 1,
2024-11-23 10:06:53 -08:00
aux_sym_param_block_repeat1,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1525] = 3,
ACTIONS(107), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
STATE(43), 2,
2024-11-23 10:06:53 -08:00
sym_param_block,
aux_sym_labs_repeat1,
2024-11-23 10:39:33 -08:00
[1537] = 4,
ACTIONS(168), 1,
2024-11-23 10:06:53 -08:00
sym_identifier,
2024-11-23 10:39:33 -08:00
ACTIONS(171), 1,
2024-11-23 10:06:53 -08:00
anon_sym_COLON,
2024-11-23 10:39:33 -08:00
STATE(57), 1,
2024-11-23 10:06:53 -08:00
aux_sym_param_block_repeat1,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1551] = 2,
2024-11-23 10:06:53 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
ACTIONS(173), 3,
ts_builtin_sym_end,
sym_identifier,
sym_command,
[1561] = 3,
ACTIONS(141), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
STATE(44), 2,
2024-11-23 10:06:53 -08:00
sym_binding,
aux_sym_let_repeat1,
2024-11-23 10:39:33 -08:00
[1573] = 3,
ACTIONS(107), 1,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
2024-11-22 10:37:30 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
STATE(42), 2,
2024-11-23 10:06:53 -08:00
sym_param_block,
aux_sym_labs_repeat1,
2024-11-23 10:39:33 -08:00
[1585] = 2,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(175), 2,
2024-11-23 10:06:53 -08:00
anon_sym_LPAREN,
2024-11-23 10:39:33 -08:00
anon_sym_in,
[1594] = 3,
ACTIONS(177), 1,
sym_identifier,
STATE(55), 1,
aux_sym_param_block_repeat1,
2024-11-23 10:06:53 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1605] = 2,
2024-11-23 10:06:53 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
ACTIONS(179), 2,
anon_sym_LPAREN,
anon_sym_in,
2024-11-23 10:39:33 -08:00
[1614] = 2,
2024-11-23 10:06:53 -08:00
ACTIONS(181), 1,
2024-11-22 10:37:30 -08:00
anon_sym_SEMI,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1622] = 2,
2024-11-23 10:06:53 -08:00
ACTIONS(183), 1,
2024-11-20 21:46:51 -08:00
anon_sym_COLON_EQ,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1630] = 2,
2024-11-23 10:06:53 -08:00
ACTIONS(185), 1,
2024-11-23 10:39:33 -08:00
anon_sym_end,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1638] = 2,
2024-11-23 10:06:53 -08:00
ACTIONS(187), 1,
2024-11-23 10:39:33 -08:00
anon_sym_RPAREN,
2024-11-23 10:06:53 -08:00
ACTIONS(3), 2,
2024-11-22 10:37:30 -08:00
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1646] = 2,
2024-11-23 10:06:53 -08:00
ACTIONS(189), 1,
2024-11-23 10:39:33 -08:00
anon_sym_RPAREN,
2024-11-23 10:06:53 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1654] = 2,
2024-11-23 10:06:53 -08:00
ACTIONS(193), 1,
2024-11-23 10:39:33 -08:00
sym_post_command,
ACTIONS(191), 2,
2024-11-21 13:14:46 -08:00
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1662] = 2,
ACTIONS(195), 1,
2024-11-20 21:46:51 -08:00
anon_sym_COLON_EQ,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1670] = 2,
ACTIONS(197), 1,
sym_identifier,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1678] = 2,
ACTIONS(199), 1,
2024-11-23 10:06:53 -08:00
anon_sym_SEMI,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1686] = 2,
2024-11-23 10:06:53 -08:00
ACTIONS(201), 1,
2024-11-23 10:39:33 -08:00
anon_sym_RPAREN,
ACTIONS(3), 2,
2024-11-23 10:06:53 -08:00
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1694] = 2,
2024-11-23 10:06:53 -08:00
ACTIONS(203), 1,
2024-11-22 10:37:30 -08:00
anon_sym_RPAREN,
2024-11-21 13:14:46 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1702] = 2,
2024-11-23 10:06:53 -08:00
ACTIONS(205), 1,
2024-11-23 10:39:33 -08:00
ts_builtin_sym_end,
2024-11-23 10:06:53 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1710] = 2,
2024-11-23 10:06:53 -08:00
ACTIONS(207), 1,
2024-11-23 10:39:33 -08:00
anon_sym_SEMI,
2024-11-23 10:06:53 -08:00
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1718] = 2,
2024-11-23 10:06:53 -08:00
ACTIONS(209), 1,
anon_sym_RPAREN,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
2024-11-23 10:39:33 -08:00
[1726] = 2,
ACTIONS(113), 1,
2024-11-23 10:06:53 -08:00
anon_sym_COLON_EQ,
ACTIONS(3), 2,
sym_comment,
sym_block_comment,
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)] = 58,
[SMALL_STATE(4)] = 116,
[SMALL_STATE(5)] = 174,
[SMALL_STATE(6)] = 229,
[SMALL_STATE(7)] = 284,
[SMALL_STATE(8)] = 339,
[SMALL_STATE(9)] = 394,
[SMALL_STATE(10)] = 449,
[SMALL_STATE(11)] = 504,
[SMALL_STATE(12)] = 559,
[SMALL_STATE(13)] = 614,
[SMALL_STATE(14)] = 669,
[SMALL_STATE(15)] = 724,
[SMALL_STATE(16)] = 779,
[SMALL_STATE(17)] = 834,
[SMALL_STATE(18)] = 889,
[SMALL_STATE(19)] = 919,
[SMALL_STATE(20)] = 949,
[SMALL_STATE(21)] = 981,
[SMALL_STATE(22)] = 1013,
[SMALL_STATE(23)] = 1030,
[SMALL_STATE(24)] = 1047,
[SMALL_STATE(25)] = 1064,
2024-11-23 10:39:33 -08:00
[SMALL_STATE(26)] = 1081,
2024-11-23 10:06:53 -08:00
[SMALL_STATE(27)] = 1102,
[SMALL_STATE(28)] = 1119,
[SMALL_STATE(29)] = 1136,
[SMALL_STATE(30)] = 1155,
2024-11-23 10:39:33 -08:00
[SMALL_STATE(31)] = 1176,
[SMALL_STATE(32)] = 1197,
[SMALL_STATE(33)] = 1216,
[SMALL_STATE(34)] = 1229,
[SMALL_STATE(35)] = 1244,
[SMALL_STATE(36)] = 1257,
[SMALL_STATE(37)] = 1270,
[SMALL_STATE(38)] = 1283,
[SMALL_STATE(39)] = 1296,
[SMALL_STATE(40)] = 1309,
[SMALL_STATE(41)] = 1325,
[SMALL_STATE(42)] = 1339,
[SMALL_STATE(43)] = 1355,
2024-11-23 10:06:53 -08:00
[SMALL_STATE(44)] = 1370,
[SMALL_STATE(45)] = 1385,
[SMALL_STATE(46)] = 1400,
[SMALL_STATE(47)] = 1415,
[SMALL_STATE(48)] = 1430,
2024-11-23 10:39:33 -08:00
[SMALL_STATE(49)] = 1445,
[SMALL_STATE(50)] = 1455,
[SMALL_STATE(51)] = 1467,
[SMALL_STATE(52)] = 1479,
[SMALL_STATE(53)] = 1489,
[SMALL_STATE(54)] = 1499,
[SMALL_STATE(55)] = 1511,
[SMALL_STATE(56)] = 1525,
[SMALL_STATE(57)] = 1537,
[SMALL_STATE(58)] = 1551,
[SMALL_STATE(59)] = 1561,
[SMALL_STATE(60)] = 1573,
[SMALL_STATE(61)] = 1585,
[SMALL_STATE(62)] = 1594,
[SMALL_STATE(63)] = 1605,
[SMALL_STATE(64)] = 1614,
[SMALL_STATE(65)] = 1622,
[SMALL_STATE(66)] = 1630,
[SMALL_STATE(67)] = 1638,
[SMALL_STATE(68)] = 1646,
[SMALL_STATE(69)] = 1654,
[SMALL_STATE(70)] = 1662,
[SMALL_STATE(71)] = 1670,
[SMALL_STATE(72)] = 1678,
[SMALL_STATE(73)] = 1686,
[SMALL_STATE(74)] = 1694,
[SMALL_STATE(75)] = 1702,
[SMALL_STATE(76)] = 1710,
[SMALL_STATE(77)] = 1718,
[SMALL_STATE(78)] = 1726,
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),
2024-11-23 10:39:33 -08:00
[7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30),
[9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69),
[11] = {.entry = {.count = 1, .reusable = false}}, SHIFT(23),
[13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8),
[15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23),
[17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22),
2024-11-23 10:06:53 -08:00
[19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54),
[21] = {.entry = {.count = 1, .reusable = false}}, SHIFT(54),
2024-11-23 10:39:33 -08:00
[23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56),
[25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(56),
[27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(59),
[29] = {.entry = {.count = 1, .reusable = false}}, SHIFT(76),
[31] = {.entry = {.count = 1, .reusable = false}}, SHIFT(72),
[33] = {.entry = {.count = 1, .reusable = false}}, SHIFT(64),
[35] = {.entry = {.count = 1, .reusable = false}}, SHIFT(27),
2024-11-23 10:06:53 -08:00
[37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17),
2024-11-23 10:39:33 -08:00
[39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27),
2024-11-23 10:06:53 -08:00
[41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28),
2024-11-23 10:39:33 -08:00
[43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60),
[45] = {.entry = {.count = 1, .reusable = false}}, SHIFT(60),
[47] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50),
[49] = {.entry = {.count = 1, .reusable = false}}, SHIFT(50),
[51] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(23),
[54] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(8),
[57] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0),
[59] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(22),
[62] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_app, 1, 0, 0),
[64] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(27),
2024-11-23 10:06:53 -08:00
[67] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(17),
2024-11-23 10:39:33 -08:00
[70] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(27),
2024-11-23 10:06:53 -08:00
[73] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0), SHIFT_REPEAT(28),
[76] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_app_repeat1, 2, 0, 0),
[78] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_app, 1, 0, 0),
2024-11-23 10:39:33 -08:00
[80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_square, 1, 0, 0),
[82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_term, 1, 0, 0),
[84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_term, 3, 0, 0),
[86] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_term, 3, 0, 0),
[88] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_labs_repeat1, 2, 0, 0), SHIFT_REPEAT(62),
[91] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_labs_repeat1, 2, 0, 0),
[93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_labs_repeat1, 2, 0, 0),
[95] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_term, 1, 0, 0),
2024-11-23 10:06:53 -08:00
[97] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_square, 1, 0, 0),
[99] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0),
2024-11-23 10:39:33 -08:00
[101] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), SHIFT_REPEAT(30),
[104] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), SHIFT_REPEAT(69),
[107] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62),
[109] = {.entry = {.count = 1, .reusable = false}}, SHIFT(6),
[111] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2),
[113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3),
[115] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_program, 1, 0, 0),
[117] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_arrow, 3, 0, 0),
[119] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_param_block, 5, 0, 3),
[121] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_param_block, 5, 0, 3),
[123] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_expr, 1, 0, 0),
[125] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_labs, 4, 0, 0),
[127] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_let, 5, 0, 0),
[129] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pabs, 4, 0, 0),
[131] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_app_term, 1, 0, 0),
[133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5),
[135] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9),
[137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16),
[139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10),
[141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71),
[143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11),
[145] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12),
[147] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_let_repeat1, 2, 0, 0), SHIFT_REPEAT(71),
[150] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_let_repeat1, 2, 0, 0),
[152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13),
[154] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14),
[156] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_definition, 5, 0, 2),
[158] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15),
[160] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_preprocess, 2, 0, 0),
[162] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_definition, 4, 0, 2),
[164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57),
[166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7),
[168] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_param_block_repeat1, 2, 0, 0), SHIFT_REPEAT(57),
[171] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_param_block_repeat1, 2, 0, 0),
[173] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_definition, 6, 0, 2),
[175] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binding, 6, 0, 0),
[177] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55),
2024-11-23 10:06:53 -08:00
[179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binding, 5, 0, 0),
2024-11-23 10:39:33 -08:00
[181] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58),
[183] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4),
[185] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37),
[187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24),
[189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63),
[191] = {.entry = {.count = 1, .reusable = false}}, SHIFT_EXTRA(),
[193] = {.entry = {.count = 1, .reusable = false}}, SHIFT(52),
[195] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ascription, 2, 0, 1),
[197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45),
[199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49),
[201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25),
[203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61),
[205] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(),
[207] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53),
[209] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34),
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