#include #if defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wmissing-field-initializers" #endif #define LANGUAGE_VERSION 13 #define STATE_COUNT 102 #define LARGE_STATE_COUNT 2 #define SYMBOL_COUNT 66 #define ALIAS_COUNT 0 #define TOKEN_COUNT 42 #define EXTERNAL_TOKEN_COUNT 0 #define FIELD_COUNT 21 #define MAX_ALIAS_SEQUENCE_LENGTH 8 #define PRODUCTION_ID_COUNT 25 enum { sym_identifier = 1, sym_nil_literal = 2, sym_integer_literal = 3, anon_sym_DQUOTE = 4, aux_sym_string_literal_token1 = 5, sym_escape_sequence = 6, anon_sym_DOT = 7, anon_sym_LBRACK = 8, anon_sym_RBRACK = 9, anon_sym_LPAREN = 10, anon_sym_COMMA = 11, anon_sym_RPAREN = 12, anon_sym_DASH = 13, anon_sym_STAR = 14, anon_sym_SLASH = 15, anon_sym_PLUS = 16, anon_sym_GT_EQ = 17, anon_sym_LT_EQ = 18, anon_sym_EQ = 19, anon_sym_LT_GT = 20, anon_sym_LT = 21, anon_sym_GT = 22, anon_sym_AMP = 23, anon_sym_PIPE = 24, anon_sym_SEMI = 25, anon_sym_of = 26, anon_sym_LBRACE = 27, anon_sym_RBRACE = 28, anon_sym_COLON_EQ = 29, anon_sym_if = 30, anon_sym_then = 31, anon_sym_else = 32, anon_sym_while = 33, anon_sym_do = 34, anon_sym_for = 35, anon_sym_to = 36, sym_break_expression = 37, anon_sym_let = 38, anon_sym_in = 39, anon_sym_end = 40, anon_sym_import = 41, sym_source_file = 42, sym__expr = 43, sym_string_literal = 44, sym__lvalue = 45, sym_record_value = 46, sym_array_value = 47, sym_function_call = 48, sym_unary_expression = 49, sym_binary_expression = 50, sym_sequence_expression = 51, sym_array_expression = 52, sym_record_expression = 53, sym_assignment_expression = 54, sym_if_expression = 55, sym_while_expression = 56, sym_for_expression = 57, sym_let_expression = 58, aux_sym__declaration_chunks = 59, sym__declaration_chunk = 60, sym_import_declaration = 61, aux_sym_string_literal_repeat1 = 62, aux_sym_function_call_repeat1 = 63, aux_sym_sequence_expression_repeat1 = 64, aux_sym_record_expression_repeat1 = 65, }; static const char * const ts_symbol_names[] = { [ts_builtin_sym_end] = "end", [sym_identifier] = "identifier", [sym_nil_literal] = "nil_literal", [sym_integer_literal] = "integer_literal", [anon_sym_DQUOTE] = "\"", [aux_sym_string_literal_token1] = "string_literal_token1", [sym_escape_sequence] = "escape_sequence", [anon_sym_DOT] = ".", [anon_sym_LBRACK] = "[", [anon_sym_RBRACK] = "]", [anon_sym_LPAREN] = "(", [anon_sym_COMMA] = ",", [anon_sym_RPAREN] = ")", [anon_sym_DASH] = "operator", [anon_sym_STAR] = "operator", [anon_sym_SLASH] = "operator", [anon_sym_PLUS] = "operator", [anon_sym_GT_EQ] = "operator", [anon_sym_LT_EQ] = "operator", [anon_sym_EQ] = "=", [anon_sym_LT_GT] = "operator", [anon_sym_LT] = "operator", [anon_sym_GT] = "operator", [anon_sym_AMP] = "operator", [anon_sym_PIPE] = "operator", [anon_sym_SEMI] = ";", [anon_sym_of] = "of", [anon_sym_LBRACE] = "{", [anon_sym_RBRACE] = "}", [anon_sym_COLON_EQ] = ":=", [anon_sym_if] = "if", [anon_sym_then] = "then", [anon_sym_else] = "else", [anon_sym_while] = "while", [anon_sym_do] = "do", [anon_sym_for] = "for", [anon_sym_to] = "to", [sym_break_expression] = "break_expression", [anon_sym_let] = "let", [anon_sym_in] = "in", [anon_sym_end] = "end", [anon_sym_import] = "import", [sym_source_file] = "source_file", [sym__expr] = "_expr", [sym_string_literal] = "string_literal", [sym__lvalue] = "_lvalue", [sym_record_value] = "record_value", [sym_array_value] = "array_value", [sym_function_call] = "function_call", [sym_unary_expression] = "unary_expression", [sym_binary_expression] = "binary_expression", [sym_sequence_expression] = "sequence_expression", [sym_array_expression] = "array_expression", [sym_record_expression] = "record_expression", [sym_assignment_expression] = "assignment_expression", [sym_if_expression] = "if_expression", [sym_while_expression] = "while_expression", [sym_for_expression] = "for_expression", [sym_let_expression] = "let_expression", [aux_sym__declaration_chunks] = "_declaration_chunks", [sym__declaration_chunk] = "_declaration_chunk", [sym_import_declaration] = "import_declaration", [aux_sym_string_literal_repeat1] = "string_literal_repeat1", [aux_sym_function_call_repeat1] = "function_call_repeat1", [aux_sym_sequence_expression_repeat1] = "sequence_expression_repeat1", [aux_sym_record_expression_repeat1] = "record_expression_repeat1", }; static const TSSymbol ts_symbol_map[] = { [ts_builtin_sym_end] = ts_builtin_sym_end, [sym_identifier] = sym_identifier, [sym_nil_literal] = sym_nil_literal, [sym_integer_literal] = sym_integer_literal, [anon_sym_DQUOTE] = anon_sym_DQUOTE, [aux_sym_string_literal_token1] = aux_sym_string_literal_token1, [sym_escape_sequence] = sym_escape_sequence, [anon_sym_DOT] = anon_sym_DOT, [anon_sym_LBRACK] = anon_sym_LBRACK, [anon_sym_RBRACK] = anon_sym_RBRACK, [anon_sym_LPAREN] = anon_sym_LPAREN, [anon_sym_COMMA] = anon_sym_COMMA, [anon_sym_RPAREN] = anon_sym_RPAREN, [anon_sym_DASH] = anon_sym_DASH, [anon_sym_STAR] = anon_sym_DASH, [anon_sym_SLASH] = anon_sym_DASH, [anon_sym_PLUS] = anon_sym_DASH, [anon_sym_GT_EQ] = anon_sym_DASH, [anon_sym_LT_EQ] = anon_sym_DASH, [anon_sym_EQ] = anon_sym_EQ, [anon_sym_LT_GT] = anon_sym_DASH, [anon_sym_LT] = anon_sym_DASH, [anon_sym_GT] = anon_sym_DASH, [anon_sym_AMP] = anon_sym_DASH, [anon_sym_PIPE] = anon_sym_DASH, [anon_sym_SEMI] = anon_sym_SEMI, [anon_sym_of] = anon_sym_of, [anon_sym_LBRACE] = anon_sym_LBRACE, [anon_sym_RBRACE] = anon_sym_RBRACE, [anon_sym_COLON_EQ] = anon_sym_COLON_EQ, [anon_sym_if] = anon_sym_if, [anon_sym_then] = anon_sym_then, [anon_sym_else] = anon_sym_else, [anon_sym_while] = anon_sym_while, [anon_sym_do] = anon_sym_do, [anon_sym_for] = anon_sym_for, [anon_sym_to] = anon_sym_to, [sym_break_expression] = sym_break_expression, [anon_sym_let] = anon_sym_let, [anon_sym_in] = anon_sym_in, [anon_sym_end] = anon_sym_end, [anon_sym_import] = anon_sym_import, [sym_source_file] = sym_source_file, [sym__expr] = sym__expr, [sym_string_literal] = sym_string_literal, [sym__lvalue] = sym__lvalue, [sym_record_value] = sym_record_value, [sym_array_value] = sym_array_value, [sym_function_call] = sym_function_call, [sym_unary_expression] = sym_unary_expression, [sym_binary_expression] = sym_binary_expression, [sym_sequence_expression] = sym_sequence_expression, [sym_array_expression] = sym_array_expression, [sym_record_expression] = sym_record_expression, [sym_assignment_expression] = sym_assignment_expression, [sym_if_expression] = sym_if_expression, [sym_while_expression] = sym_while_expression, [sym_for_expression] = sym_for_expression, [sym_let_expression] = sym_let_expression, [aux_sym__declaration_chunks] = aux_sym__declaration_chunks, [sym__declaration_chunk] = sym__declaration_chunk, [sym_import_declaration] = sym_import_declaration, [aux_sym_string_literal_repeat1] = aux_sym_string_literal_repeat1, [aux_sym_function_call_repeat1] = aux_sym_function_call_repeat1, [aux_sym_sequence_expression_repeat1] = aux_sym_sequence_expression_repeat1, [aux_sym_record_expression_repeat1] = aux_sym_record_expression_repeat1, }; static const TSSymbolMetadata ts_symbol_metadata[] = { [ts_builtin_sym_end] = { .visible = false, .named = true, }, [sym_identifier] = { .visible = true, .named = true, }, [sym_nil_literal] = { .visible = true, .named = true, }, [sym_integer_literal] = { .visible = true, .named = true, }, [anon_sym_DQUOTE] = { .visible = true, .named = false, }, [aux_sym_string_literal_token1] = { .visible = false, .named = false, }, [sym_escape_sequence] = { .visible = true, .named = true, }, [anon_sym_DOT] = { .visible = true, .named = false, }, [anon_sym_LBRACK] = { .visible = true, .named = false, }, [anon_sym_RBRACK] = { .visible = true, .named = false, }, [anon_sym_LPAREN] = { .visible = true, .named = false, }, [anon_sym_COMMA] = { .visible = true, .named = false, }, [anon_sym_RPAREN] = { .visible = true, .named = false, }, [anon_sym_DASH] = { .visible = true, .named = true, }, [anon_sym_STAR] = { .visible = true, .named = true, }, [anon_sym_SLASH] = { .visible = true, .named = true, }, [anon_sym_PLUS] = { .visible = true, .named = true, }, [anon_sym_GT_EQ] = { .visible = true, .named = true, }, [anon_sym_LT_EQ] = { .visible = true, .named = true, }, [anon_sym_EQ] = { .visible = true, .named = false, }, [anon_sym_LT_GT] = { .visible = true, .named = true, }, [anon_sym_LT] = { .visible = true, .named = true, }, [anon_sym_GT] = { .visible = true, .named = true, }, [anon_sym_AMP] = { .visible = true, .named = true, }, [anon_sym_PIPE] = { .visible = true, .named = true, }, [anon_sym_SEMI] = { .visible = true, .named = false, }, [anon_sym_of] = { .visible = true, .named = false, }, [anon_sym_LBRACE] = { .visible = true, .named = false, }, [anon_sym_RBRACE] = { .visible = true, .named = false, }, [anon_sym_COLON_EQ] = { .visible = true, .named = false, }, [anon_sym_if] = { .visible = true, .named = false, }, [anon_sym_then] = { .visible = true, .named = false, }, [anon_sym_else] = { .visible = true, .named = false, }, [anon_sym_while] = { .visible = true, .named = false, }, [anon_sym_do] = { .visible = true, .named = false, }, [anon_sym_for] = { .visible = true, .named = false, }, [anon_sym_to] = { .visible = true, .named = false, }, [sym_break_expression] = { .visible = true, .named = true, }, [anon_sym_let] = { .visible = true, .named = false, }, [anon_sym_in] = { .visible = true, .named = false, }, [anon_sym_end] = { .visible = true, .named = false, }, [anon_sym_import] = { .visible = true, .named = false, }, [sym_source_file] = { .visible = true, .named = true, }, [sym__expr] = { .visible = false, .named = true, }, [sym_string_literal] = { .visible = true, .named = true, }, [sym__lvalue] = { .visible = false, .named = true, }, [sym_record_value] = { .visible = true, .named = true, }, [sym_array_value] = { .visible = true, .named = true, }, [sym_function_call] = { .visible = true, .named = true, }, [sym_unary_expression] = { .visible = true, .named = true, }, [sym_binary_expression] = { .visible = true, .named = true, }, [sym_sequence_expression] = { .visible = true, .named = true, }, [sym_array_expression] = { .visible = true, .named = true, }, [sym_record_expression] = { .visible = true, .named = true, }, [sym_assignment_expression] = { .visible = true, .named = true, }, [sym_if_expression] = { .visible = true, .named = true, }, [sym_while_expression] = { .visible = true, .named = true, }, [sym_for_expression] = { .visible = true, .named = true, }, [sym_let_expression] = { .visible = true, .named = true, }, [aux_sym__declaration_chunks] = { .visible = false, .named = false, }, [sym__declaration_chunk] = { .visible = false, .named = true, }, [sym_import_declaration] = { .visible = true, .named = true, }, [aux_sym_string_literal_repeat1] = { .visible = false, .named = false, }, [aux_sym_function_call_repeat1] = { .visible = false, .named = false, }, [aux_sym_sequence_expression_repeat1] = { .visible = false, .named = false, }, [aux_sym_record_expression_repeat1] = { .visible = false, .named = false, }, }; enum { field_alternative = 1, field_arguments = 2, field_array = 3, field_body = 4, field_condition = 5, field_consequence = 6, field_declarations = 7, field_end = 8, field_expression = 9, field_field = 10, field_file = 11, field_function = 12, field_index = 13, field_init = 14, field_left = 15, field_operator = 16, field_record = 17, field_right = 18, field_size = 19, field_start = 20, field_type = 21, }; static const char * const ts_field_names[] = { [0] = NULL, [field_alternative] = "alternative", [field_arguments] = "arguments", [field_array] = "array", [field_body] = "body", [field_condition] = "condition", [field_consequence] = "consequence", [field_declarations] = "declarations", [field_end] = "end", [field_expression] = "expression", [field_field] = "field", [field_file] = "file", [field_function] = "function", [field_index] = "index", [field_init] = "init", [field_left] = "left", [field_operator] = "operator", [field_record] = "record", [field_right] = "right", [field_size] = "size", [field_start] = "start", [field_type] = "type", }; static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { [1] = {.index = 0, .length = 2}, [2] = {.index = 2, .length = 1}, [3] = {.index = 3, .length = 1}, [4] = {.index = 4, .length = 1}, [5] = {.index = 5, .length = 3}, [6] = {.index = 8, .length = 2}, [7] = {.index = 10, .length = 2}, [8] = {.index = 12, .length = 2}, [9] = {.index = 14, .length = 2}, [10] = {.index = 16, .length = 2}, [11] = {.index = 18, .length = 1}, [12] = {.index = 19, .length = 1}, [13] = {.index = 20, .length = 2}, [14] = {.index = 22, .length = 3}, [15] = {.index = 25, .length = 2}, [16] = {.index = 27, .length = 2}, [17] = {.index = 29, .length = 3}, [18] = {.index = 32, .length = 3}, [19] = {.index = 35, .length = 3}, [20] = {.index = 38, .length = 3}, [21] = {.index = 41, .length = 5}, [22] = {.index = 46, .length = 4}, [23] = {.index = 50, .length = 4}, [24] = {.index = 54, .length = 2}, }; static const TSFieldMapEntry ts_field_map_entries[] = { [0] = {field_expression, 1}, {field_operator, 0}, [2] = {field_file, 1}, [3] = {field_function, 0}, [4] = {field_type, 0}, [5] = {field_left, 0}, {field_operator, 1}, {field_right, 2}, [8] = {field_field, 2}, {field_record, 0}, [10] = {field_left, 0}, {field_right, 2}, [12] = {field_arguments, 2}, {field_function, 0}, [14] = {field_condition, 1}, {field_consequence, 3}, [16] = {field_body, 3}, {field_condition, 1}, [18] = {field_body, 2}, [19] = {field_declarations, 1}, [20] = {field_array, 0}, {field_index, 2}, [22] = {field_arguments, 2}, {field_arguments, 3}, {field_function, 0}, [25] = {field_body, 2}, {field_body, 3}, [27] = {field_body, 3}, {field_declarations, 1}, [29] = {field_init, 5}, {field_size, 2}, {field_type, 0}, [32] = {field_field, 2}, {field_init, 4}, {field_type, 0}, [35] = {field_alternative, 5}, {field_condition, 1}, {field_consequence, 3}, [38] = {field_body, 3}, {field_body, 4}, {field_declarations, 1}, [41] = {field_field, 2}, {field_field, 5, .inherited = true}, {field_init, 4}, {field_init, 5, .inherited = true}, {field_type, 0}, [46] = {field_field, 0, .inherited = true}, {field_field, 1, .inherited = true}, {field_init, 0, .inherited = true}, {field_init, 1, .inherited = true}, [50] = {field_body, 7}, {field_end, 5}, {field_index, 1}, {field_start, 3}, [54] = {field_field, 1}, {field_init, 3}, }; static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH] = { [0] = {0}, [5] = { [1] = anon_sym_DASH, }, }; static const uint16_t ts_non_terminal_alias_map[] = { 0, }; static bool ts_lex(TSLexer *lexer, TSStateId state) { START_LEXER(); eof = lexer->eof(lexer); switch (state) { case 0: if (eof) ADVANCE(10); if (lookahead == '"') ADVANCE(12); if (lookahead == '&') ADVANCE(33); if (lookahead == '(') ADVANCE(20); if (lookahead == ')') ADVANCE(22); if (lookahead == '*') ADVANCE(24); if (lookahead == '+') ADVANCE(26); if (lookahead == ',') ADVANCE(21); if (lookahead == '-') ADVANCE(23); if (lookahead == '.') ADVANCE(17); if (lookahead == '/') ADVANCE(25); if (lookahead == ':') ADVANCE(2); if (lookahead == ';') ADVANCE(35); if (lookahead == '<') ADVANCE(31); if (lookahead == '=') ADVANCE(29); if (lookahead == '>') ADVANCE(32); if (lookahead == '[') ADVANCE(18); if (lookahead == '\\') ADVANCE(5); if (lookahead == ']') ADVANCE(19); if (lookahead == '{') ADVANCE(36); if (lookahead == '|') ADVANCE(34); if (lookahead == '}') ADVANCE(37); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') SKIP(8) if (('0' <= lookahead && lookahead <= '9')) ADVANCE(11); if (('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(15); END_STATE(); case 1: if (lookahead == '"') ADVANCE(12); if (lookahead == '\\') ADVANCE(5); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') ADVANCE(13); if (lookahead != 0) ADVANCE(14); END_STATE(); case 2: if (lookahead == '=') ADVANCE(38); END_STATE(); case 3: if (('0' <= lookahead && lookahead <= '7')) ADVANCE(16); END_STATE(); case 4: if (('0' <= lookahead && lookahead <= '7')) ADVANCE(3); END_STATE(); case 5: if (lookahead == '"' || lookahead == '\\' || lookahead == 'a' || lookahead == 'b' || lookahead == 'f' || lookahead == 'n' || lookahead == 'r' || lookahead == 't' || lookahead == 'v') ADVANCE(16); if (lookahead == 'x') ADVANCE(7); if (('0' <= lookahead && lookahead <= '3')) ADVANCE(4); END_STATE(); case 6: if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'F') || ('a' <= lookahead && lookahead <= 'f')) ADVANCE(16); END_STATE(); case 7: if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'F') || ('a' <= lookahead && lookahead <= 'f')) ADVANCE(6); END_STATE(); case 8: if (eof) ADVANCE(10); if (lookahead == '"') ADVANCE(12); if (lookahead == '&') ADVANCE(33); if (lookahead == '(') ADVANCE(20); if (lookahead == ')') ADVANCE(22); if (lookahead == '*') ADVANCE(24); if (lookahead == '+') ADVANCE(26); if (lookahead == ',') ADVANCE(21); if (lookahead == '-') ADVANCE(23); if (lookahead == '.') ADVANCE(17); if (lookahead == '/') ADVANCE(25); if (lookahead == ':') ADVANCE(2); if (lookahead == ';') ADVANCE(35); if (lookahead == '<') ADVANCE(31); if (lookahead == '=') ADVANCE(29); if (lookahead == '>') ADVANCE(32); if (lookahead == '[') ADVANCE(18); if (lookahead == ']') ADVANCE(19); if (lookahead == '{') ADVANCE(36); if (lookahead == '|') ADVANCE(34); if (lookahead == '}') ADVANCE(37); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') SKIP(8) if (('0' <= lookahead && lookahead <= '9')) ADVANCE(11); if (('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(15); END_STATE(); case 9: if (eof) ADVANCE(10); if (lookahead == '&') ADVANCE(33); if (lookahead == '(') ADVANCE(20); if (lookahead == ')') ADVANCE(22); if (lookahead == '*') ADVANCE(24); if (lookahead == '+') ADVANCE(26); if (lookahead == ',') ADVANCE(21); if (lookahead == '-') ADVANCE(23); if (lookahead == '.') ADVANCE(17); if (lookahead == '/') ADVANCE(25); if (lookahead == ':') ADVANCE(2); if (lookahead == ';') ADVANCE(35); if (lookahead == '<') ADVANCE(31); if (lookahead == '=') ADVANCE(29); if (lookahead == '>') ADVANCE(32); if (lookahead == '[') ADVANCE(18); if (lookahead == ']') ADVANCE(19); if (lookahead == '{') ADVANCE(36); if (lookahead == '|') ADVANCE(34); if (lookahead == '}') ADVANCE(37); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') SKIP(9) if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(15); END_STATE(); case 10: ACCEPT_TOKEN(ts_builtin_sym_end); END_STATE(); case 11: ACCEPT_TOKEN(sym_integer_literal); if (('0' <= lookahead && lookahead <= '9')) ADVANCE(11); if (('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(15); END_STATE(); case 12: ACCEPT_TOKEN(anon_sym_DQUOTE); END_STATE(); case 13: ACCEPT_TOKEN(aux_sym_string_literal_token1); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') ADVANCE(13); if (lookahead != 0 && lookahead != '"' && lookahead != '\\') ADVANCE(14); END_STATE(); case 14: ACCEPT_TOKEN(aux_sym_string_literal_token1); if (lookahead != 0 && lookahead != '"' && lookahead != '\\') ADVANCE(14); END_STATE(); case 15: ACCEPT_TOKEN(sym_identifier); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || lookahead == '_' || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(15); END_STATE(); case 16: ACCEPT_TOKEN(sym_escape_sequence); END_STATE(); case 17: ACCEPT_TOKEN(anon_sym_DOT); END_STATE(); case 18: ACCEPT_TOKEN(anon_sym_LBRACK); END_STATE(); case 19: ACCEPT_TOKEN(anon_sym_RBRACK); END_STATE(); case 20: ACCEPT_TOKEN(anon_sym_LPAREN); END_STATE(); case 21: ACCEPT_TOKEN(anon_sym_COMMA); END_STATE(); case 22: ACCEPT_TOKEN(anon_sym_RPAREN); END_STATE(); case 23: ACCEPT_TOKEN(anon_sym_DASH); END_STATE(); case 24: ACCEPT_TOKEN(anon_sym_STAR); END_STATE(); case 25: ACCEPT_TOKEN(anon_sym_SLASH); END_STATE(); case 26: ACCEPT_TOKEN(anon_sym_PLUS); END_STATE(); case 27: ACCEPT_TOKEN(anon_sym_GT_EQ); END_STATE(); case 28: ACCEPT_TOKEN(anon_sym_LT_EQ); END_STATE(); case 29: ACCEPT_TOKEN(anon_sym_EQ); END_STATE(); case 30: ACCEPT_TOKEN(anon_sym_LT_GT); END_STATE(); case 31: ACCEPT_TOKEN(anon_sym_LT); if (lookahead == '=') ADVANCE(28); if (lookahead == '>') ADVANCE(30); END_STATE(); case 32: ACCEPT_TOKEN(anon_sym_GT); if (lookahead == '=') ADVANCE(27); END_STATE(); case 33: ACCEPT_TOKEN(anon_sym_AMP); END_STATE(); case 34: ACCEPT_TOKEN(anon_sym_PIPE); END_STATE(); case 35: ACCEPT_TOKEN(anon_sym_SEMI); END_STATE(); case 36: ACCEPT_TOKEN(anon_sym_LBRACE); END_STATE(); case 37: ACCEPT_TOKEN(anon_sym_RBRACE); END_STATE(); case 38: ACCEPT_TOKEN(anon_sym_COLON_EQ); END_STATE(); default: return false; } } static bool ts_lex_keywords(TSLexer *lexer, TSStateId state) { START_LEXER(); eof = lexer->eof(lexer); switch (state) { case 0: if (lookahead == 'b') ADVANCE(1); if (lookahead == 'd') ADVANCE(2); if (lookahead == 'e') ADVANCE(3); if (lookahead == 'f') ADVANCE(4); if (lookahead == 'i') ADVANCE(5); if (lookahead == 'l') ADVANCE(6); if (lookahead == 'n') ADVANCE(7); if (lookahead == 'o') ADVANCE(8); if (lookahead == 't') ADVANCE(9); if (lookahead == 'w') ADVANCE(10); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') SKIP(0) END_STATE(); case 1: if (lookahead == 'r') ADVANCE(11); END_STATE(); case 2: if (lookahead == 'o') ADVANCE(12); END_STATE(); case 3: if (lookahead == 'l') ADVANCE(13); if (lookahead == 'n') ADVANCE(14); END_STATE(); case 4: if (lookahead == 'o') ADVANCE(15); END_STATE(); case 5: if (lookahead == 'f') ADVANCE(16); if (lookahead == 'm') ADVANCE(17); if (lookahead == 'n') ADVANCE(18); END_STATE(); case 6: if (lookahead == 'e') ADVANCE(19); END_STATE(); case 7: if (lookahead == 'i') ADVANCE(20); END_STATE(); case 8: if (lookahead == 'f') ADVANCE(21); END_STATE(); case 9: if (lookahead == 'h') ADVANCE(22); if (lookahead == 'o') ADVANCE(23); END_STATE(); case 10: if (lookahead == 'h') ADVANCE(24); END_STATE(); case 11: if (lookahead == 'e') ADVANCE(25); END_STATE(); case 12: ACCEPT_TOKEN(anon_sym_do); END_STATE(); case 13: if (lookahead == 's') ADVANCE(26); END_STATE(); case 14: if (lookahead == 'd') ADVANCE(27); END_STATE(); case 15: if (lookahead == 'r') ADVANCE(28); END_STATE(); case 16: ACCEPT_TOKEN(anon_sym_if); END_STATE(); case 17: if (lookahead == 'p') ADVANCE(29); END_STATE(); case 18: ACCEPT_TOKEN(anon_sym_in); END_STATE(); case 19: if (lookahead == 't') ADVANCE(30); END_STATE(); case 20: if (lookahead == 'l') ADVANCE(31); END_STATE(); case 21: ACCEPT_TOKEN(anon_sym_of); END_STATE(); case 22: if (lookahead == 'e') ADVANCE(32); END_STATE(); case 23: ACCEPT_TOKEN(anon_sym_to); END_STATE(); case 24: if (lookahead == 'i') ADVANCE(33); END_STATE(); case 25: if (lookahead == 'a') ADVANCE(34); END_STATE(); case 26: if (lookahead == 'e') ADVANCE(35); END_STATE(); case 27: ACCEPT_TOKEN(anon_sym_end); END_STATE(); case 28: ACCEPT_TOKEN(anon_sym_for); END_STATE(); case 29: if (lookahead == 'o') ADVANCE(36); END_STATE(); case 30: ACCEPT_TOKEN(anon_sym_let); END_STATE(); case 31: ACCEPT_TOKEN(sym_nil_literal); END_STATE(); case 32: if (lookahead == 'n') ADVANCE(37); END_STATE(); case 33: if (lookahead == 'l') ADVANCE(38); END_STATE(); case 34: if (lookahead == 'k') ADVANCE(39); END_STATE(); case 35: ACCEPT_TOKEN(anon_sym_else); END_STATE(); case 36: if (lookahead == 'r') ADVANCE(40); END_STATE(); case 37: ACCEPT_TOKEN(anon_sym_then); END_STATE(); case 38: if (lookahead == 'e') ADVANCE(41); END_STATE(); case 39: ACCEPT_TOKEN(sym_break_expression); END_STATE(); case 40: if (lookahead == 't') ADVANCE(42); END_STATE(); case 41: ACCEPT_TOKEN(anon_sym_while); END_STATE(); case 42: ACCEPT_TOKEN(anon_sym_import); END_STATE(); default: return false; } } static const TSLexMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0}, [1] = {.lex_state = 0}, [2] = {.lex_state = 0}, [3] = {.lex_state = 0}, [4] = {.lex_state = 9}, [5] = {.lex_state = 0}, [6] = {.lex_state = 0}, [7] = {.lex_state = 0}, [8] = {.lex_state = 0}, [9] = {.lex_state = 0}, [10] = {.lex_state = 0}, [11] = {.lex_state = 0}, [12] = {.lex_state = 0}, [13] = {.lex_state = 0}, [14] = {.lex_state = 0}, [15] = {.lex_state = 0}, [16] = {.lex_state = 0}, [17] = {.lex_state = 0}, [18] = {.lex_state = 0}, [19] = {.lex_state = 0}, [20] = {.lex_state = 0}, [21] = {.lex_state = 0}, [22] = {.lex_state = 0}, [23] = {.lex_state = 0}, [24] = {.lex_state = 0}, [25] = {.lex_state = 0}, [26] = {.lex_state = 0}, [27] = {.lex_state = 0}, [28] = {.lex_state = 0}, [29] = {.lex_state = 9}, [30] = {.lex_state = 9}, [31] = {.lex_state = 9}, [32] = {.lex_state = 9}, [33] = {.lex_state = 9}, [34] = {.lex_state = 9}, [35] = {.lex_state = 9}, [36] = {.lex_state = 9}, [37] = {.lex_state = 9}, [38] = {.lex_state = 9}, [39] = {.lex_state = 9}, [40] = {.lex_state = 9}, [41] = {.lex_state = 9}, [42] = {.lex_state = 9}, [43] = {.lex_state = 9}, [44] = {.lex_state = 9}, [45] = {.lex_state = 9}, [46] = {.lex_state = 9}, [47] = {.lex_state = 9}, [48] = {.lex_state = 9}, [49] = {.lex_state = 9}, [50] = {.lex_state = 9}, [51] = {.lex_state = 9}, [52] = {.lex_state = 9}, [53] = {.lex_state = 9}, [54] = {.lex_state = 9}, [55] = {.lex_state = 9}, [56] = {.lex_state = 9}, [57] = {.lex_state = 9}, [58] = {.lex_state = 9}, [59] = {.lex_state = 9}, [60] = {.lex_state = 9}, [61] = {.lex_state = 9}, [62] = {.lex_state = 0}, [63] = {.lex_state = 9}, [64] = {.lex_state = 0}, [65] = {.lex_state = 0}, [66] = {.lex_state = 9}, [67] = {.lex_state = 0}, [68] = {.lex_state = 0}, [69] = {.lex_state = 9}, [70] = {.lex_state = 0}, [71] = {.lex_state = 9}, [72] = {.lex_state = 0}, [73] = {.lex_state = 9}, [74] = {.lex_state = 9}, [75] = {.lex_state = 0}, [76] = {.lex_state = 9}, [77] = {.lex_state = 9}, [78] = {.lex_state = 9}, [79] = {.lex_state = 9}, [80] = {.lex_state = 1}, [81] = {.lex_state = 9}, [82] = {.lex_state = 1}, [83] = {.lex_state = 1}, [84] = {.lex_state = 0}, [85] = {.lex_state = 0}, [86] = {.lex_state = 9}, [87] = {.lex_state = 9}, [88] = {.lex_state = 0}, [89] = {.lex_state = 9}, [90] = {.lex_state = 0}, [91] = {.lex_state = 0}, [92] = {.lex_state = 9}, [93] = {.lex_state = 0}, [94] = {.lex_state = 0}, [95] = {.lex_state = 9}, [96] = {.lex_state = 9}, [97] = {.lex_state = 9}, [98] = {.lex_state = 0}, [99] = {.lex_state = 0}, [100] = {.lex_state = 0}, [101] = {.lex_state = 9}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [0] = { [ts_builtin_sym_end] = ACTIONS(1), [sym_identifier] = ACTIONS(1), [sym_nil_literal] = ACTIONS(1), [sym_integer_literal] = ACTIONS(1), [anon_sym_DQUOTE] = ACTIONS(1), [sym_escape_sequence] = ACTIONS(1), [anon_sym_DOT] = ACTIONS(1), [anon_sym_LBRACK] = ACTIONS(1), [anon_sym_RBRACK] = ACTIONS(1), [anon_sym_LPAREN] = ACTIONS(1), [anon_sym_COMMA] = ACTIONS(1), [anon_sym_RPAREN] = ACTIONS(1), [anon_sym_DASH] = ACTIONS(1), [anon_sym_STAR] = ACTIONS(1), [anon_sym_SLASH] = ACTIONS(1), [anon_sym_PLUS] = ACTIONS(1), [anon_sym_GT_EQ] = ACTIONS(1), [anon_sym_LT_EQ] = ACTIONS(1), [anon_sym_EQ] = ACTIONS(1), [anon_sym_LT_GT] = ACTIONS(1), [anon_sym_LT] = ACTIONS(1), [anon_sym_GT] = ACTIONS(1), [anon_sym_AMP] = ACTIONS(1), [anon_sym_PIPE] = ACTIONS(1), [anon_sym_SEMI] = ACTIONS(1), [anon_sym_of] = ACTIONS(1), [anon_sym_LBRACE] = ACTIONS(1), [anon_sym_RBRACE] = ACTIONS(1), [anon_sym_COLON_EQ] = ACTIONS(1), [anon_sym_if] = ACTIONS(1), [anon_sym_then] = ACTIONS(1), [anon_sym_else] = ACTIONS(1), [anon_sym_while] = ACTIONS(1), [anon_sym_do] = ACTIONS(1), [anon_sym_for] = ACTIONS(1), [anon_sym_to] = ACTIONS(1), [sym_break_expression] = ACTIONS(1), [anon_sym_let] = ACTIONS(1), [anon_sym_in] = ACTIONS(1), [anon_sym_end] = ACTIONS(1), [anon_sym_import] = ACTIONS(1), }, [1] = { [sym_source_file] = STATE(99), [sym__expr] = STATE(70), [sym_string_literal] = STATE(70), [sym__lvalue] = STATE(30), [sym_record_value] = STATE(30), [sym_array_value] = STATE(30), [sym_function_call] = STATE(70), [sym_unary_expression] = STATE(70), [sym_binary_expression] = STATE(70), [sym_sequence_expression] = STATE(70), [sym_array_expression] = STATE(70), [sym_record_expression] = STATE(70), [sym_assignment_expression] = STATE(70), [sym_if_expression] = STATE(70), [sym_while_expression] = STATE(70), [sym_for_expression] = STATE(70), [sym_let_expression] = STATE(70), [aux_sym__declaration_chunks] = STATE(79), [sym__declaration_chunk] = STATE(79), [sym_import_declaration] = STATE(79), [ts_builtin_sym_end] = ACTIONS(3), [sym_identifier] = ACTIONS(5), [sym_nil_literal] = ACTIONS(7), [sym_integer_literal] = ACTIONS(7), [anon_sym_DQUOTE] = ACTIONS(9), [anon_sym_LPAREN] = ACTIONS(11), [anon_sym_DASH] = ACTIONS(13), [anon_sym_if] = ACTIONS(15), [anon_sym_while] = ACTIONS(17), [anon_sym_for] = ACTIONS(19), [sym_break_expression] = ACTIONS(7), [anon_sym_let] = ACTIONS(21), [anon_sym_import] = ACTIONS(23), }, }; static const uint16_t ts_small_parse_table[] = { [0] = 12, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(27), 1, anon_sym_end, ACTIONS(25), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(61), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [53] = 12, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(31), 1, anon_sym_end, ACTIONS(29), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(63), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [106] = 5, ACTIONS(35), 1, anon_sym_LBRACK, ACTIONS(38), 1, anon_sym_LPAREN, ACTIONS(42), 1, anon_sym_LBRACE, ACTIONS(40), 2, anon_sym_LT, anon_sym_GT, ACTIONS(33), 23, ts_builtin_sym_end, anon_sym_DOT, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_COLON_EQ, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [145] = 12, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(46), 1, anon_sym_RPAREN, ACTIONS(44), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(64), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [198] = 12, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(50), 1, anon_sym_RPAREN, ACTIONS(48), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(62), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [251] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(52), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(42), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [301] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(54), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(66), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [351] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(56), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(67), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [401] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(58), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(35), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [451] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(60), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(57), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [501] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(62), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(69), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [551] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(64), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(56), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [601] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(66), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(40), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [651] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(68), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(55), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [701] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(70), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(68), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [751] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(72), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(72), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [801] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(74), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(73), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [851] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(76), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(65), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [901] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(78), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(74), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [951] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(80), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(54), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [1001] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(82), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(59), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [1051] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(84), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(71), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [1101] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(86), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(52), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [1151] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(88), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(75), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [1201] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(90), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(38), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [1251] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(92), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(49), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [1301] = 11, ACTIONS(5), 1, sym_identifier, ACTIONS(9), 1, anon_sym_DQUOTE, ACTIONS(11), 1, anon_sym_LPAREN, ACTIONS(13), 1, anon_sym_DASH, ACTIONS(15), 1, anon_sym_if, ACTIONS(17), 1, anon_sym_while, ACTIONS(19), 1, anon_sym_for, ACTIONS(21), 1, anon_sym_let, ACTIONS(94), 3, sym_nil_literal, sym_integer_literal, sym_break_expression, STATE(30), 3, sym__lvalue, sym_record_value, sym_array_value, STATE(53), 13, sym__expr, sym_string_literal, sym_function_call, sym_unary_expression, sym_binary_expression, sym_sequence_expression, sym_array_expression, sym_record_expression, sym_assignment_expression, sym_if_expression, sym_while_expression, sym_for_expression, sym_let_expression, [1351] = 2, ACTIONS(98), 2, anon_sym_LT, anon_sym_GT, ACTIONS(96), 24, ts_builtin_sym_end, anon_sym_DOT, anon_sym_LBRACK, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_COLON_EQ, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1382] = 5, ACTIONS(102), 1, anon_sym_DOT, ACTIONS(104), 1, anon_sym_LBRACK, ACTIONS(108), 1, anon_sym_COLON_EQ, ACTIONS(106), 2, anon_sym_LT, anon_sym_GT, ACTIONS(100), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1419] = 2, ACTIONS(112), 2, anon_sym_LT, anon_sym_GT, ACTIONS(110), 24, ts_builtin_sym_end, anon_sym_DOT, anon_sym_LBRACK, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_COLON_EQ, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1450] = 2, ACTIONS(116), 2, anon_sym_LT, anon_sym_GT, ACTIONS(114), 23, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_in, anon_sym_end, anon_sym_import, [1480] = 2, ACTIONS(120), 2, anon_sym_LT, anon_sym_GT, ACTIONS(118), 23, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_in, anon_sym_end, anon_sym_import, [1510] = 2, ACTIONS(124), 2, anon_sym_LT, anon_sym_GT, ACTIONS(122), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1538] = 7, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, ACTIONS(126), 11, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1576] = 2, ACTIONS(142), 2, anon_sym_LT, anon_sym_GT, ACTIONS(140), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1604] = 2, ACTIONS(146), 2, anon_sym_LT, anon_sym_GT, ACTIONS(144), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1632] = 7, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, ACTIONS(148), 11, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1670] = 2, ACTIONS(152), 2, anon_sym_LT, anon_sym_GT, ACTIONS(150), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1698] = 7, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, ACTIONS(154), 11, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1736] = 2, ACTIONS(158), 2, anon_sym_LT, anon_sym_GT, ACTIONS(156), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1764] = 8, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(162), 1, anon_sym_else, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, ACTIONS(160), 10, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_do, anon_sym_to, anon_sym_end, [1804] = 2, ACTIONS(166), 2, anon_sym_LT, anon_sym_GT, ACTIONS(164), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1832] = 2, ACTIONS(170), 2, anon_sym_LT, anon_sym_GT, ACTIONS(168), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1860] = 2, ACTIONS(174), 2, anon_sym_LT, anon_sym_GT, ACTIONS(172), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1888] = 2, ACTIONS(178), 2, anon_sym_LT, anon_sym_GT, ACTIONS(176), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1916] = 2, ACTIONS(182), 2, anon_sym_LT, anon_sym_GT, ACTIONS(180), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1944] = 2, ACTIONS(186), 2, anon_sym_LT, anon_sym_GT, ACTIONS(184), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [1972] = 7, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, ACTIONS(188), 11, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [2010] = 2, ACTIONS(192), 2, anon_sym_LT, anon_sym_GT, ACTIONS(190), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [2038] = 2, ACTIONS(196), 2, anon_sym_LT, anon_sym_GT, ACTIONS(194), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [2066] = 7, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, ACTIONS(198), 11, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [2104] = 3, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(202), 2, anon_sym_LT, anon_sym_GT, ACTIONS(200), 19, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [2134] = 2, ACTIONS(202), 2, anon_sym_LT, anon_sym_GT, ACTIONS(200), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [2162] = 4, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(202), 2, anon_sym_LT, anon_sym_GT, ACTIONS(200), 17, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [2194] = 5, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, ACTIONS(200), 13, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [2228] = 6, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, ACTIONS(200), 12, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [2264] = 2, ACTIONS(206), 2, anon_sym_LT, anon_sym_GT, ACTIONS(204), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [2292] = 2, ACTIONS(210), 2, anon_sym_LT, anon_sym_GT, ACTIONS(208), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [2320] = 2, ACTIONS(214), 2, anon_sym_LT, anon_sym_GT, ACTIONS(212), 21, ts_builtin_sym_end, anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_DASH, anon_sym_STAR, anon_sym_SLASH, anon_sym_PLUS, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, anon_sym_AMP, anon_sym_PIPE, anon_sym_SEMI, anon_sym_RBRACE, anon_sym_then, anon_sym_else, anon_sym_do, anon_sym_to, anon_sym_end, [2348] = 9, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(216), 1, anon_sym_SEMI, ACTIONS(218), 1, anon_sym_end, STATE(86), 1, aux_sym_sequence_expression_repeat1, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, [2382] = 9, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(220), 1, anon_sym_COMMA, ACTIONS(222), 1, anon_sym_RPAREN, STATE(91), 1, aux_sym_function_call_repeat1, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, [2416] = 9, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(216), 1, anon_sym_SEMI, ACTIONS(224), 1, anon_sym_end, STATE(89), 1, aux_sym_sequence_expression_repeat1, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, [2450] = 9, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(216), 1, anon_sym_SEMI, ACTIONS(226), 1, anon_sym_RPAREN, STATE(85), 1, aux_sym_sequence_expression_repeat1, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, [2484] = 9, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(228), 1, anon_sym_COMMA, ACTIONS(230), 1, anon_sym_RBRACE, STATE(84), 1, aux_sym_record_expression_repeat1, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, [2518] = 7, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(232), 3, anon_sym_RPAREN, anon_sym_SEMI, anon_sym_end, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, [2548] = 7, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(234), 2, anon_sym_COMMA, anon_sym_RBRACE, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, [2577] = 7, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(236), 2, anon_sym_COMMA, anon_sym_RPAREN, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, [2606] = 7, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(238), 1, anon_sym_to, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, [2634] = 7, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(240), 1, ts_builtin_sym_end, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, [2662] = 7, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(242), 1, anon_sym_do, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, [2690] = 7, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(244), 1, anon_sym_RBRACK, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, [2718] = 7, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(246), 1, anon_sym_then, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, [2746] = 7, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(248), 1, anon_sym_do, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, [2774] = 7, ACTIONS(136), 1, anon_sym_AMP, ACTIONS(138), 1, anon_sym_PIPE, ACTIONS(250), 1, anon_sym_RBRACK, ACTIONS(128), 2, anon_sym_DASH, anon_sym_PLUS, ACTIONS(130), 2, anon_sym_STAR, anon_sym_SLASH, ACTIONS(134), 2, anon_sym_LT, anon_sym_GT, ACTIONS(132), 4, anon_sym_GT_EQ, anon_sym_LT_EQ, anon_sym_EQ, anon_sym_LT_GT, [2802] = 3, ACTIONS(254), 1, anon_sym_import, ACTIONS(252), 2, ts_builtin_sym_end, anon_sym_in, STATE(76), 3, aux_sym__declaration_chunks, sym__declaration_chunk, sym_import_declaration, [2815] = 3, ACTIONS(257), 1, anon_sym_in, ACTIONS(259), 1, anon_sym_import, STATE(76), 3, aux_sym__declaration_chunks, sym__declaration_chunk, sym_import_declaration, [2827] = 3, ACTIONS(259), 1, anon_sym_import, ACTIONS(261), 1, anon_sym_in, STATE(77), 3, aux_sym__declaration_chunks, sym__declaration_chunk, sym_import_declaration, [2839] = 3, ACTIONS(240), 1, ts_builtin_sym_end, ACTIONS(259), 1, anon_sym_import, STATE(76), 3, aux_sym__declaration_chunks, sym__declaration_chunk, sym_import_declaration, [2851] = 3, ACTIONS(263), 1, anon_sym_DQUOTE, STATE(83), 1, aux_sym_string_literal_repeat1, ACTIONS(265), 2, aux_sym_string_literal_token1, sym_escape_sequence, [2862] = 3, ACTIONS(267), 1, anon_sym_SEMI, STATE(81), 1, aux_sym_sequence_expression_repeat1, ACTIONS(232), 2, anon_sym_RPAREN, anon_sym_end, [2873] = 3, ACTIONS(270), 1, anon_sym_DQUOTE, STATE(82), 1, aux_sym_string_literal_repeat1, ACTIONS(272), 2, aux_sym_string_literal_token1, sym_escape_sequence, [2884] = 3, ACTIONS(275), 1, anon_sym_DQUOTE, STATE(82), 1, aux_sym_string_literal_repeat1, ACTIONS(277), 2, aux_sym_string_literal_token1, sym_escape_sequence, [2895] = 3, ACTIONS(228), 1, anon_sym_COMMA, ACTIONS(279), 1, anon_sym_RBRACE, STATE(90), 1, aux_sym_record_expression_repeat1, [2905] = 3, ACTIONS(216), 1, anon_sym_SEMI, ACTIONS(281), 1, anon_sym_RPAREN, STATE(81), 1, aux_sym_sequence_expression_repeat1, [2915] = 3, ACTIONS(216), 1, anon_sym_SEMI, ACTIONS(283), 1, anon_sym_end, STATE(81), 1, aux_sym_sequence_expression_repeat1, [2925] = 1, ACTIONS(285), 3, ts_builtin_sym_end, anon_sym_in, anon_sym_import, [2931] = 3, ACTIONS(236), 1, anon_sym_RPAREN, ACTIONS(287), 1, anon_sym_COMMA, STATE(88), 1, aux_sym_function_call_repeat1, [2941] = 3, ACTIONS(216), 1, anon_sym_SEMI, ACTIONS(290), 1, anon_sym_end, STATE(81), 1, aux_sym_sequence_expression_repeat1, [2951] = 3, ACTIONS(292), 1, anon_sym_COMMA, ACTIONS(295), 1, anon_sym_RBRACE, STATE(90), 1, aux_sym_record_expression_repeat1, [2961] = 3, ACTIONS(220), 1, anon_sym_COMMA, ACTIONS(297), 1, anon_sym_RPAREN, STATE(88), 1, aux_sym_function_call_repeat1, [2971] = 2, ACTIONS(299), 1, sym_identifier, ACTIONS(301), 1, anon_sym_RBRACE, [2978] = 2, ACTIONS(9), 1, anon_sym_DQUOTE, STATE(87), 1, sym_string_literal, [2985] = 1, ACTIONS(303), 1, anon_sym_COLON_EQ, [2989] = 1, ACTIONS(305), 1, sym_identifier, [2993] = 1, ACTIONS(307), 1, sym_identifier, [2997] = 1, ACTIONS(309), 1, anon_sym_of, [3001] = 1, ACTIONS(311), 1, anon_sym_EQ, [3005] = 1, ACTIONS(313), 1, ts_builtin_sym_end, [3009] = 1, ACTIONS(315), 1, anon_sym_EQ, [3013] = 1, ACTIONS(317), 1, sym_identifier, }; static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(2)] = 0, [SMALL_STATE(3)] = 53, [SMALL_STATE(4)] = 106, [SMALL_STATE(5)] = 145, [SMALL_STATE(6)] = 198, [SMALL_STATE(7)] = 251, [SMALL_STATE(8)] = 301, [SMALL_STATE(9)] = 351, [SMALL_STATE(10)] = 401, [SMALL_STATE(11)] = 451, [SMALL_STATE(12)] = 501, [SMALL_STATE(13)] = 551, [SMALL_STATE(14)] = 601, [SMALL_STATE(15)] = 651, [SMALL_STATE(16)] = 701, [SMALL_STATE(17)] = 751, [SMALL_STATE(18)] = 801, [SMALL_STATE(19)] = 851, [SMALL_STATE(20)] = 901, [SMALL_STATE(21)] = 951, [SMALL_STATE(22)] = 1001, [SMALL_STATE(23)] = 1051, [SMALL_STATE(24)] = 1101, [SMALL_STATE(25)] = 1151, [SMALL_STATE(26)] = 1201, [SMALL_STATE(27)] = 1251, [SMALL_STATE(28)] = 1301, [SMALL_STATE(29)] = 1351, [SMALL_STATE(30)] = 1382, [SMALL_STATE(31)] = 1419, [SMALL_STATE(32)] = 1450, [SMALL_STATE(33)] = 1480, [SMALL_STATE(34)] = 1510, [SMALL_STATE(35)] = 1538, [SMALL_STATE(36)] = 1576, [SMALL_STATE(37)] = 1604, [SMALL_STATE(38)] = 1632, [SMALL_STATE(39)] = 1670, [SMALL_STATE(40)] = 1698, [SMALL_STATE(41)] = 1736, [SMALL_STATE(42)] = 1764, [SMALL_STATE(43)] = 1804, [SMALL_STATE(44)] = 1832, [SMALL_STATE(45)] = 1860, [SMALL_STATE(46)] = 1888, [SMALL_STATE(47)] = 1916, [SMALL_STATE(48)] = 1944, [SMALL_STATE(49)] = 1972, [SMALL_STATE(50)] = 2010, [SMALL_STATE(51)] = 2038, [SMALL_STATE(52)] = 2066, [SMALL_STATE(53)] = 2104, [SMALL_STATE(54)] = 2134, [SMALL_STATE(55)] = 2162, [SMALL_STATE(56)] = 2194, [SMALL_STATE(57)] = 2228, [SMALL_STATE(58)] = 2264, [SMALL_STATE(59)] = 2292, [SMALL_STATE(60)] = 2320, [SMALL_STATE(61)] = 2348, [SMALL_STATE(62)] = 2382, [SMALL_STATE(63)] = 2416, [SMALL_STATE(64)] = 2450, [SMALL_STATE(65)] = 2484, [SMALL_STATE(66)] = 2518, [SMALL_STATE(67)] = 2548, [SMALL_STATE(68)] = 2577, [SMALL_STATE(69)] = 2606, [SMALL_STATE(70)] = 2634, [SMALL_STATE(71)] = 2662, [SMALL_STATE(72)] = 2690, [SMALL_STATE(73)] = 2718, [SMALL_STATE(74)] = 2746, [SMALL_STATE(75)] = 2774, [SMALL_STATE(76)] = 2802, [SMALL_STATE(77)] = 2815, [SMALL_STATE(78)] = 2827, [SMALL_STATE(79)] = 2839, [SMALL_STATE(80)] = 2851, [SMALL_STATE(81)] = 2862, [SMALL_STATE(82)] = 2873, [SMALL_STATE(83)] = 2884, [SMALL_STATE(84)] = 2895, [SMALL_STATE(85)] = 2905, [SMALL_STATE(86)] = 2915, [SMALL_STATE(87)] = 2925, [SMALL_STATE(88)] = 2931, [SMALL_STATE(89)] = 2941, [SMALL_STATE(90)] = 2951, [SMALL_STATE(91)] = 2961, [SMALL_STATE(92)] = 2971, [SMALL_STATE(93)] = 2978, [SMALL_STATE(94)] = 2985, [SMALL_STATE(95)] = 2989, [SMALL_STATE(96)] = 2993, [SMALL_STATE(97)] = 2997, [SMALL_STATE(98)] = 3001, [SMALL_STATE(99)] = 3005, [SMALL_STATE(100)] = 3009, [SMALL_STATE(101)] = 3013, }; static const TSParseActionEntry ts_parse_actions[] = { [0] = {.entry = {.count = 0, .reusable = false}}, [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), [3] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), [5] = {.entry = {.count = 1, .reusable = false}}, SHIFT(4), [7] = {.entry = {.count = 1, .reusable = false}}, SHIFT(70), [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80), [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(18), [17] = {.entry = {.count = 1, .reusable = false}}, SHIFT(20), [19] = {.entry = {.count = 1, .reusable = false}}, SHIFT(101), [21] = {.entry = {.count = 1, .reusable = false}}, SHIFT(78), [23] = {.entry = {.count = 1, .reusable = false}}, SHIFT(93), [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(61), [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(37), [29] = {.entry = {.count = 1, .reusable = false}}, SHIFT(63), [31] = {.entry = {.count = 1, .reusable = false}}, SHIFT(51), [33] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__lvalue, 1), [35] = {.entry = {.count = 2, .reusable = true}}, REDUCE(sym__lvalue, 1), SHIFT(17), [38] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), [40] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__lvalue, 1), [42] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), [44] = {.entry = {.count = 1, .reusable = false}}, SHIFT(64), [46] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), [48] = {.entry = {.count = 1, .reusable = false}}, SHIFT(62), [50] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), [52] = {.entry = {.count = 1, .reusable = false}}, SHIFT(42), [54] = {.entry = {.count = 1, .reusable = false}}, SHIFT(66), [56] = {.entry = {.count = 1, .reusable = false}}, SHIFT(67), [58] = {.entry = {.count = 1, .reusable = false}}, SHIFT(35), [60] = {.entry = {.count = 1, .reusable = false}}, SHIFT(57), [62] = {.entry = {.count = 1, .reusable = false}}, SHIFT(69), [64] = {.entry = {.count = 1, .reusable = false}}, SHIFT(56), [66] = {.entry = {.count = 1, .reusable = false}}, SHIFT(40), [68] = {.entry = {.count = 1, .reusable = false}}, SHIFT(55), [70] = {.entry = {.count = 1, .reusable = false}}, SHIFT(68), [72] = {.entry = {.count = 1, .reusable = false}}, SHIFT(72), [74] = {.entry = {.count = 1, .reusable = false}}, SHIFT(73), [76] = {.entry = {.count = 1, .reusable = false}}, SHIFT(65), [78] = {.entry = {.count = 1, .reusable = false}}, SHIFT(74), [80] = {.entry = {.count = 1, .reusable = false}}, SHIFT(54), [82] = {.entry = {.count = 1, .reusable = false}}, SHIFT(59), [84] = {.entry = {.count = 1, .reusable = false}}, SHIFT(71), [86] = {.entry = {.count = 1, .reusable = false}}, SHIFT(52), [88] = {.entry = {.count = 1, .reusable = false}}, SHIFT(75), [90] = {.entry = {.count = 1, .reusable = false}}, SHIFT(38), [92] = {.entry = {.count = 1, .reusable = false}}, SHIFT(49), [94] = {.entry = {.count = 1, .reusable = false}}, SHIFT(53), [96] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array_value, 4, .production_id = 13), [98] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_array_value, 4, .production_id = 13), [100] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), [102] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), [104] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), [106] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__expr, 1), [108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), [110] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record_value, 3, .production_id = 6), [112] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_record_value, 3, .production_id = 6), [114] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string_literal, 3), [116] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_string_literal, 3), [118] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string_literal, 2), [120] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_string_literal, 2), [122] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record_expression, 6, .production_id = 18), [124] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_record_expression, 6, .production_id = 18), [126] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_for_expression, 8, .production_id = 23), [128] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), [130] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), [134] = {.entry = {.count = 1, .reusable = false}}, SHIFT(15), [136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), [138] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), [140] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_function_call, 5, .production_id = 14), [142] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_function_call, 5, .production_id = 14), [144] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_let_expression, 4, .production_id = 12), [146] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_let_expression, 4, .production_id = 12), [148] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_unary_expression, 2, .production_id = 1), [150] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_let_expression, 4, .production_id = 11), [152] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_let_expression, 4, .production_id = 11), [154] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_while_expression, 4, .production_id = 10), [156] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_function_call, 3, .production_id = 3), [158] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_function_call, 3, .production_id = 3), [160] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_if_expression, 4, .production_id = 9), [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), [164] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_sequence_expression, 4), [166] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_sequence_expression, 4), [168] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record_expression, 3, .production_id = 4), [170] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_record_expression, 3, .production_id = 4), [172] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_sequence_expression, 3), [174] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_sequence_expression, 3), [176] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_let_expression, 5, .production_id = 15), [178] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_let_expression, 5, .production_id = 15), [180] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_sequence_expression, 2), [182] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_sequence_expression, 2), [184] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_let_expression, 5, .production_id = 16), [186] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_let_expression, 5, .production_id = 16), [188] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array_expression, 6, .production_id = 17), [190] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_function_call, 4, .production_id = 8), [192] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_function_call, 4, .production_id = 8), [194] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_let_expression, 3), [196] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_let_expression, 3), [198] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_if_expression, 6, .production_id = 19), [200] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 5), [202] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_binary_expression, 3, .production_id = 5), [204] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_let_expression, 6, .production_id = 20), [206] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_let_expression, 6, .production_id = 20), [208] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment_expression, 3, .production_id = 7), [210] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_assignment_expression, 3, .production_id = 7), [212] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record_expression, 7, .production_id = 21), [214] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_record_expression, 7, .production_id = 21), [216] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), [218] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), [220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), [222] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), [224] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), [226] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), [228] = {.entry = {.count = 1, .reusable = true}}, SHIFT(95), [230] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_sequence_expression_repeat1, 2), [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_record_expression_repeat1, 4, .production_id = 24), [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_function_call_repeat1, 2), [238] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), [242] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), [246] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), [248] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), [250] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), [252] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__declaration_chunks, 2), [254] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__declaration_chunks, 2), SHIFT_REPEAT(93), [257] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), [263] = {.entry = {.count = 1, .reusable = false}}, SHIFT(33), [265] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), [267] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_sequence_expression_repeat1, 2), SHIFT_REPEAT(8), [270] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_string_literal_repeat1, 2), [272] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_string_literal_repeat1, 2), SHIFT_REPEAT(82), [275] = {.entry = {.count = 1, .reusable = false}}, SHIFT(32), [277] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), [279] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), [281] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), [283] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), [285] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_import_declaration, 2, .production_id = 2), [287] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_function_call_repeat1, 2), SHIFT_REPEAT(16), [290] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), [292] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_record_expression_repeat1, 2, .production_id = 22), SHIFT_REPEAT(95), [295] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_record_expression_repeat1, 2, .production_id = 22), [297] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), [299] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), [301] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), [303] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), [305] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), [307] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), [309] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), [311] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), [313] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), [315] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), [317] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94), }; #ifdef __cplusplus extern "C" { #endif #ifdef _WIN32 #define extern __declspec(dllexport) #endif extern const TSLanguage *tree_sitter_tiger(void) { static const TSLanguage language = { .version = LANGUAGE_VERSION, .symbol_count = SYMBOL_COUNT, .alias_count = ALIAS_COUNT, .token_count = TOKEN_COUNT, .external_token_count = EXTERNAL_TOKEN_COUNT, .state_count = STATE_COUNT, .large_state_count = LARGE_STATE_COUNT, .production_id_count = PRODUCTION_ID_COUNT, .field_count = FIELD_COUNT, .max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH, .parse_table = &ts_parse_table[0][0], .small_parse_table = ts_small_parse_table, .small_parse_table_map = ts_small_parse_table_map, .parse_actions = ts_parse_actions, .symbol_names = ts_symbol_names, .field_names = ts_field_names, .field_map_slices = ts_field_map_slices, .field_map_entries = ts_field_map_entries, .symbol_metadata = ts_symbol_metadata, .public_symbol_map = ts_symbol_map, .alias_map = ts_non_terminal_alias_map, .alias_sequences = &ts_alias_sequences[0][0], .lex_modes = ts_lex_modes, .lex_fn = ts_lex, .keyword_lex_fn = ts_lex_keywords, .keyword_capture_token = sym_identifier, }; return &language; } #ifdef __cplusplus } #endif