#include "tree_sitter/parser.h"
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif
#define LANGUAGE_VERSION 15
#define STATE_COUNT 57
#define LARGE_STATE_COUNT 36
#define SYMBOL_COUNT 38
#define ALIAS_COUNT 0
#define TOKEN_COUNT 23
#define EXTERNAL_TOKEN_COUNT 0
#define FIELD_COUNT 3
#define MAX_ALIAS_SEQUENCE_LENGTH 5
#define MAX_RESERVED_WORD_SET_SIZE 0
#define PRODUCTION_ID_COUNT 6
#define SUPERTYPE_COUNT 0
enum ts_symbol_identifiers {
anon_sym_EQ = 1,
anon_sym_LBRACE = 2,
anon_sym_RBRACE = 3,
anon_sym_if = 4,
anon_sym_limit = 5,
anon_sym_trigger = 6,
anon_sym_potential = 7,
anon_sym_AND = 8,
anon_sym_OR = 9,
anon_sym_NOT = 10,
anon_sym_LBRACK_LBRACK = 11,
anon_sym_RBRACK = 12,
sym_template_string = 13,
sym_string = 14,
sym_number = 15,
anon_sym_yes = 16,
anon_sym_no = 17,
anon_sym_true = 18,
anon_sym_false = 19,
anon_sym_DOLLAR = 20,
sym_identifier = 21,
sym_comment = 22,
sym_source_file = 23,
sym_assignment = 24,
sym_map = 25,
sym_statement = 26,
sym_array = 27,
sym_simple_value = 28,
sym_condition_statement = 29,
sym_logical_statement = 30,
sym_macro_map = 31,
sym_boolean = 32,
sym_variable = 33,
sym_variable_embedded_identifier = 34,
aux_sym_source_file_repeat1 = 35,
aux_sym_map_repeat1 = 36,
aux_sym_array_repeat1 = 37,
};
static const char * const ts_symbol_names[] = {
[ts_builtin_sym_end] = "end",
[anon_sym_EQ] = "=",
[anon_sym_LBRACE] = "{",
[anon_sym_RBRACE] = "}",
[anon_sym_if] = "if",
[anon_sym_limit] = "limit",
[anon_sym_trigger] = "trigger",
[anon_sym_potential] = "potential",
[anon_sym_AND] = "AND",
[anon_sym_OR] = "OR",
[anon_sym_NOT] = "NOT",
[anon_sym_LBRACK_LBRACK] = "[[",
[anon_sym_RBRACK] = "]",
[sym_template_string] = "template_string",
[sym_string] = "string",
[sym_number] = "number",
[anon_sym_yes] = "yes",
[anon_sym_no] = "no",
[anon_sym_true] = "true",
[anon_sym_false] = "false",
[anon_sym_DOLLAR] = "$",
[sym_identifier] = "identifier",
[sym_comment] = "comment",
[sym_source_file] = "source_file",
[sym_assignment] = "assignment",
[sym_map] = "map",
[sym_statement] = "statement",
[sym_array] = "array",
[sym_simple_value] = "simple_value",
[sym_condition_statement] = "condition_statement",
[sym_logical_statement] = "logical_statement",
[sym_macro_map] = "macro_map",
[sym_boolean] = "boolean",
[sym_variable] = "variable",
[sym_variable_embedded_identifier] = "variable_embedded_identifier",
[aux_sym_source_file_repeat1] = "source_file_repeat1",
[aux_sym_map_repeat1] = "map_repeat1",
[aux_sym_array_repeat1] = "array_repeat1",
};
static const TSSymbol ts_symbol_map[] = {
[ts_builtin_sym_end] = ts_builtin_sym_end,
[anon_sym_EQ] = anon_sym_EQ,
[anon_sym_LBRACE] = anon_sym_LBRACE,
[anon_sym_RBRACE] = anon_sym_RBRACE,
[anon_sym_if] = anon_sym_if,
[anon_sym_limit] = anon_sym_limit,
[anon_sym_trigger] = anon_sym_trigger,
[anon_sym_potential] = anon_sym_potential,
[anon_sym_AND] = anon_sym_AND,
[anon_sym_OR] = anon_sym_OR,
[anon_sym_NOT] = anon_sym_NOT,
[anon_sym_LBRACK_LBRACK] = anon_sym_LBRACK_LBRACK,
[anon_sym_RBRACK] = anon_sym_RBRACK,
[sym_template_string] = sym_template_string,
[sym_string] = sym_string,
[sym_number] = sym_number,
[anon_sym_yes] = anon_sym_yes,
[anon_sym_no] = anon_sym_no,
[anon_sym_true] = anon_sym_true,
[anon_sym_false] = anon_sym_false,
[anon_sym_DOLLAR] = anon_sym_DOLLAR,
[sym_identifier] = sym_identifier,
[sym_comment] = sym_comment,
[sym_source_file] = sym_source_file,
[sym_assignment] = sym_assignment,
[sym_map] = sym_map,
[sym_statement] = sym_statement,
[sym_array] = sym_array,
[sym_simple_value] = sym_simple_value,
[sym_condition_statement] = sym_condition_statement,
[sym_logical_statement] = sym_logical_statement,
[sym_macro_map] = sym_macro_map,
[sym_boolean] = sym_boolean,
[sym_variable] = sym_variable,
[sym_variable_embedded_identifier] = sym_variable_embedded_identifier,
[aux_sym_source_file_repeat1] = aux_sym_source_file_repeat1,
[aux_sym_map_repeat1] = aux_sym_map_repeat1,
[aux_sym_array_repeat1] = aux_sym_array_repeat1,
};
static const TSSymbolMetadata ts_symbol_metadata[] = {
[ts_builtin_sym_end] = {
.visible = false,
.named = true,
},
[anon_sym_EQ] = {
.visible = true,
.named = false,
},
[anon_sym_LBRACE] = {
.visible = true,
.named = false,
},
[anon_sym_RBRACE] = {
.visible = true,
.named = false,
},
[anon_sym_if] = {
.visible = true,
.named = false,
},
[anon_sym_limit] = {
.visible = true,
.named = false,
},
[anon_sym_trigger] = {
.visible = true,
.named = false,
},
[anon_sym_potential] = {
.visible = true,
.named = false,
},
[anon_sym_AND] = {
.visible = true,
.named = false,
},
[anon_sym_OR] = {
.visible = true,
.named = false,
},
[anon_sym_NOT] = {
.visible = true,
.named = false,
},
[anon_sym_LBRACK_LBRACK] = {
.visible = true,
.named = false,
},
[anon_sym_RBRACK] = {
.visible = true,
.named = false,
},
[sym_template_string] = {
.visible = true,
.named = true,
},
[sym_string] = {
.visible = true,
.named = true,
},
[sym_number] = {
.visible = true,
.named = true,
},
[anon_sym_yes] = {
.visible = true,
.named = false,
},
[anon_sym_no] = {
.visible = true,
.named = false,
},
[anon_sym_true] = {
.visible = true,
.named = false,
},
[anon_sym_false] = {
.visible = true,
.named = false,
},
[anon_sym_DOLLAR] = {
.visible = true,
.named = false,
},
[sym_identifier] = {
.visible = true,
.named = true,
},
[sym_comment] = {
.visible = true,
.named = true,
},
[sym_source_file] = {
.visible = true,
.named = true,
},
[sym_assignment] = {
.visible = true,
.named = true,
},
[sym_map] = {
.visible = true,
.named = true,
},
[sym_statement] = {
.visible = true,
.named = true,
},
[sym_array] = {
.visible = true,
.named = true,
},
[sym_simple_value] = {
.visible = true,
.named = true,
},
[sym_condition_statement] = {
.visible = true,
.named = true,
},
[sym_logical_statement] = {
.visible = true,
.named = true,
},
[sym_macro_map] = {
.visible = true,
.named = true,
},
[sym_boolean] = {
.visible = true,
.named = true,
},
[sym_variable] = {
.visible = true,
.named = true,
},
[sym_variable_embedded_identifier] = {
.visible = true,
.named = true,
},
[aux_sym_source_file_repeat1] = {
.visible = false,
.named = false,
},
[aux_sym_map_repeat1] = {
.visible = false,
.named = false,
},
[aux_sym_array_repeat1] = {
.visible = false,
.named = false,
},
};
enum ts_field_identifiers {
field_key = 1,
field_top_level_statement = 2,
field_value = 3,
};
static const char * const ts_field_names[] = {
[0] = NULL,
[field_key] = "key",
[field_top_level_statement] = "top_level_statement",
[field_value] = "value",
};
static const TSMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = {
[1] = {.index = 0, .length = 1},
[2] = {.index = 1, .length = 1},
[3] = {.index = 2, .length = 2},
[4] = {.index = 4, .length = 2},
[5] = {.index = 6, .length = 1},
};
static const TSFieldMapEntry ts_field_map_entries[] = {
[0] =
{field_top_level_statement, 0},
[1] =
{field_top_level_statement, 0, .inherited = true},
[2] =
{field_top_level_statement, 0, .inherited = true},
{field_top_level_statement, 1, .inherited = true},
[4] =
{field_key, 0},
{field_value, 2},
[6] =
{field_key, 1},
};
static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH] = {
[0] = {0},
};
static const uint16_t ts_non_terminal_alias_map[] = {
0,
};
static const TSStateId ts_primary_state_ids[STATE_COUNT] = {
[0] = 0,
[1] = 1,
[2] = 2,
[3] = 3,
[4] = 4,
[5] = 5,
[6] = 6,
[7] = 7,
[8] = 8,
[9] = 9,
[10] = 10,
[11] = 11,
[12] = 12,
[13] = 13,
[14] = 14,
[15] = 15,
[16] = 16,
[17] = 17,
[18] = 18,
[19] = 19,
[20] = 20,
[21] = 21,
[22] = 22,
[23] = 23,
[24] = 24,
[25] = 25,
[26] = 26,
[27] = 27,
[28] = 28,
[29] = 29,
[30] = 30,
[31] = 31,
[32] = 32,
[33] = 33,
[34] = 34,
[35] = 35,
[36] = 36,
[37] = 37,
[38] = 38,
[39] = 11,
[40] = 18,
[41] = 26,
[42] = 20,
[43] = 19,
[44] = 13,
[45] = 45,
[46] = 27,
[47] = 47,
[48] = 48,
[49] = 49,
[50] = 50,
[51] = 51,
[52] = 52,
[53] = 53,
[54] = 54,
[55] = 51,
[56] = 49,
};
static const TSCharacterRange sym_identifier_character_set_1[] = {
{0, 0x08}, {0x0e, 0x1f}, {'!', '!'}, {'%', '<'}, {'>', 'Z'}, {'\\', '\\'}, {'^', 'z'}, {'|', '|'},
{'~', 0x10ffff},
};
static bool ts_lex(TSLexer *lexer, TSStateId state) {
START_LEXER();
eof = lexer->eof(lexer);
switch (state) {
case 0:
if (eof) ADVANCE(10);
ADVANCE_MAP(
'"', 1,
'#', 72,
'$', 32,
'-', 33,
'.', 69,
'=', 11,
'A', 35,
'N', 36,
'O', 37,
'[', 8,
']', 22,
'f', 39,
'i', 46,
'l', 49,
'n', 57,
'p', 58,
't', 59,
'y', 41,
'{', 12,
'}', 13,
);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') SKIP(0);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(25);
if (lookahead != 0) ADVANCE(71);
END_STATE();
case 1:
if (lookahead == '"') ADVANCE(24);
if (lookahead == '#') ADVANCE(2);
if (lookahead == '\\') ADVANCE(9);
if (lookahead != 0) ADVANCE(1);
END_STATE();
case 2:
if (lookahead == '"') ADVANCE(24);
if (lookahead == '\\') ADVANCE(9);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(5);
if (lookahead != 0) ADVANCE(3);
END_STATE();
case 3:
if (lookahead == '"') ADVANCE(24);
if (lookahead == '\\') ADVANCE(9);
if (lookahead != 0) ADVANCE(3);
END_STATE();
case 4:
ADVANCE_MAP(
'"', 3,
'#', 72,
'$', 32,
'-', 33,
'.', 69,
'f', 39,
'n', 57,
't', 61,
'y', 41,
'{', 12,
'}', 13,
);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') SKIP(4);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(25);
if (lookahead != 0 &&
lookahead != '=' &&
lookahead != '[' &&
lookahead != ']') ADVANCE(71);
END_STATE();
case 5:
if (lookahead == '"') ADVANCE(23);
if (lookahead == '\\') ADVANCE(9);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(5);
if (lookahead != 0) ADVANCE(6);
END_STATE();
case 6:
if (lookahead == '"') ADVANCE(23);
if (lookahead == '\\') ADVANCE(9);
if (lookahead != 0) ADVANCE(6);
END_STATE();
case 7:
if (lookahead == '#') ADVANCE(72);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') SKIP(7);
if (lookahead != 0 &&
(lookahead < '"' || '$' < lookahead) &&
lookahead != '=' &&
lookahead != '[' &&
lookahead != ']' &&
lookahead != '{' &&
lookahead != '}') ADVANCE(71);
END_STATE();
case 8:
if (lookahead == '[') ADVANCE(21);
END_STATE();
case 9:
if (lookahead != 0 &&
lookahead != '\n') ADVANCE(3);
END_STATE();
case 10:
ACCEPT_TOKEN(ts_builtin_sym_end);
END_STATE();
case 11:
ACCEPT_TOKEN(anon_sym_EQ);
END_STATE();
case 12:
ACCEPT_TOKEN(anon_sym_LBRACE);
END_STATE();
case 13:
ACCEPT_TOKEN(anon_sym_RBRACE);
END_STATE();
case 14:
ACCEPT_TOKEN(anon_sym_if);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 15:
ACCEPT_TOKEN(anon_sym_limit);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 16:
ACCEPT_TOKEN(anon_sym_trigger);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 17:
ACCEPT_TOKEN(anon_sym_potential);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 18:
ACCEPT_TOKEN(anon_sym_AND);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 19:
ACCEPT_TOKEN(anon_sym_OR);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 20:
ACCEPT_TOKEN(anon_sym_NOT);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 21:
ACCEPT_TOKEN(anon_sym_LBRACK_LBRACK);
END_STATE();
case 22:
ACCEPT_TOKEN(anon_sym_RBRACK);
END_STATE();
case 23:
ACCEPT_TOKEN(sym_template_string);
END_STATE();
case 24:
ACCEPT_TOKEN(sym_string);
END_STATE();
case 25:
ACCEPT_TOKEN(sym_number);
if (lookahead == '.') ADVANCE(69);
if (lookahead == 'E' ||
lookahead == 'e') ADVANCE(68);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(25);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 26:
ACCEPT_TOKEN(sym_number);
if (lookahead == 'E' ||
lookahead == 'e') ADVANCE(68);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(26);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 27:
ACCEPT_TOKEN(sym_number);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(27);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 28:
ACCEPT_TOKEN(anon_sym_yes);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 29:
ACCEPT_TOKEN(anon_sym_no);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 30:
ACCEPT_TOKEN(anon_sym_true);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 31:
ACCEPT_TOKEN(anon_sym_false);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 32:
ACCEPT_TOKEN(anon_sym_DOLLAR);
END_STATE();
case 33:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == '.') ADVANCE(69);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(25);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 34:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'D') ADVANCE(18);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 35:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'N') ADVANCE(34);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 36:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'O') ADVANCE(38);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 37:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'R') ADVANCE(19);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 38:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'T') ADVANCE(20);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 39:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'a') ADVANCE(54);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 40:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'a') ADVANCE(53);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 41:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'e') ADVANCE(62);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 42:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'e') ADVANCE(56);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 43:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'e') ADVANCE(30);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 44:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'e') ADVANCE(31);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 45:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'e') ADVANCE(60);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 46:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'f') ADVANCE(14);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 47:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'g') ADVANCE(48);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 48:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'g') ADVANCE(45);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 49:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'i') ADVANCE(55);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 50:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'i') ADVANCE(47);
if (lookahead == 'u') ADVANCE(43);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 51:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'i') ADVANCE(64);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 52:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'i') ADVANCE(40);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 53:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'l') ADVANCE(17);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 54:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'l') ADVANCE(63);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 55:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'm') ADVANCE(51);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 56:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'n') ADVANCE(66);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 57:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'o') ADVANCE(29);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 58:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'o') ADVANCE(65);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 59:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'r') ADVANCE(50);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 60:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'r') ADVANCE(16);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 61:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'r') ADVANCE(67);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 62:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 's') ADVANCE(28);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 63:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 's') ADVANCE(44);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 64:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 't') ADVANCE(15);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 65:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 't') ADVANCE(42);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 66:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 't') ADVANCE(52);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 67:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'u') ADVANCE(43);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 68:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == '+' ||
lookahead == '-') ADVANCE(70);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(27);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 69:
ACCEPT_TOKEN(sym_identifier);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(26);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 70:
ACCEPT_TOKEN(sym_identifier);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(27);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 71:
ACCEPT_TOKEN(sym_identifier);
if ((!eof && set_contains(sym_identifier_character_set_1, 9, lookahead))) ADVANCE(71);
END_STATE();
case 72:
ACCEPT_TOKEN(sym_comment);
if (lookahead != 0 &&
lookahead != '\n') ADVANCE(72);
END_STATE();
default:
return false;
}
}
static const TSLexerMode ts_lex_modes[STATE_COUNT] = {
[0] = {.lex_state = 0},
[1] = {.lex_state = 0},
[2] = {.lex_state = 0},
[3] = {.lex_state = 0},
[4] = {.lex_state = 0},
[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 = 0},
[30] = {.lex_state = 0},
[31] = {.lex_state = 0},
[32] = {.lex_state = 0},
[33] = {.lex_state = 0},
[34] = {.lex_state = 0},
[35] = {.lex_state = 0},
[36] = {.lex_state = 4},
[37] = {.lex_state = 4},
[38] = {.lex_state = 4},
[39] = {.lex_state = 4},
[40] = {.lex_state = 4},
[41] = {.lex_state = 4},
[42] = {.lex_state = 4},
[43] = {.lex_state = 4},
[44] = {.lex_state = 4},
[45] = {.lex_state = 4},
[46] = {.lex_state = 4},
[47] = {.lex_state = 0},
[48] = {.lex_state = 0},
[49] = {.lex_state = 7},
[50] = {.lex_state = 0},
[51] = {.lex_state = 0},
[52] = {.lex_state = 0},
[53] = {.lex_state = 7},
[54] = {.lex_state = 0},
[55] = {.lex_state = 0},
[56] = {.lex_state = 7},
};
static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
[STATE(0)] = {
[ts_builtin_sym_end] = ACTIONS(1),
[anon_sym_EQ] = ACTIONS(1),
[anon_sym_LBRACE] = ACTIONS(1),
[anon_sym_RBRACE] = ACTIONS(1),
[anon_sym_if] = ACTIONS(1),
[anon_sym_limit] = ACTIONS(1),
[anon_sym_trigger] = ACTIONS(1),
[anon_sym_potential] = ACTIONS(1),
[anon_sym_AND] = ACTIONS(1),
[anon_sym_OR] = ACTIONS(1),
[anon_sym_NOT] = ACTIONS(1),
[anon_sym_LBRACK_LBRACK] = ACTIONS(1),
[anon_sym_RBRACK] = ACTIONS(1),
[sym_template_string] = ACTIONS(1),
[sym_string] = ACTIONS(1),
[sym_number] = ACTIONS(1),
[anon_sym_yes] = ACTIONS(1),
[anon_sym_no] = ACTIONS(1),
[anon_sym_true] = ACTIONS(1),
[anon_sym_false] = ACTIONS(1),
[anon_sym_DOLLAR] = ACTIONS(1),
[sym_identifier] = ACTIONS(1),
[sym_comment] = ACTIONS(3),
},
[STATE(1)] = {
[sym_source_file] = STATE(52),
[sym_assignment] = STATE(29),
[sym_map] = STATE(22),
[sym_statement] = STATE(35),
[sym_simple_value] = STATE(29),
[sym_condition_statement] = STATE(29),
[sym_logical_statement] = STATE(29),
[sym_macro_map] = STATE(29),
[sym_boolean] = STATE(13),
[sym_variable] = STATE(14),
[sym_variable_embedded_identifier] = STATE(15),
[aux_sym_source_file_repeat1] = STATE(5),
[ts_builtin_sym_end] = ACTIONS(5),
[anon_sym_EQ] = ACTIONS(7),
[anon_sym_LBRACE] = ACTIONS(9),
[anon_sym_if] = ACTIONS(11),
[anon_sym_limit] = ACTIONS(11),
[anon_sym_trigger] = ACTIONS(11),
[anon_sym_potential] = ACTIONS(11),
[anon_sym_AND] = ACTIONS(13),
[anon_sym_OR] = ACTIONS(13),
[anon_sym_NOT] = ACTIONS(13),
[anon_sym_LBRACK_LBRACK] = ACTIONS(15),
[sym_template_string] = ACTIONS(17),
[sym_string] = ACTIONS(19),
[sym_number] = ACTIONS(21),
[anon_sym_yes] = ACTIONS(23),
[anon_sym_no] = ACTIONS(23),
[anon_sym_true] = ACTIONS(23),
[anon_sym_false] = ACTIONS(23),
[anon_sym_DOLLAR] = ACTIONS(25),
[sym_identifier] = ACTIONS(21),
[sym_comment] = ACTIONS(3),
},
[STATE(2)] = {
[sym_assignment] = STATE(29),
[sym_map] = STATE(22),
[sym_statement] = STATE(2),
[sym_simple_value] = STATE(29),
[sym_condition_statement] = STATE(29),
[sym_logical_statement] = STATE(29),
[sym_macro_map] = STATE(29),
[sym_boolean] = STATE(13),
[sym_variable] = STATE(14),
[sym_variable_embedded_identifier] = STATE(15),
[aux_sym_map_repeat1] = STATE(2),
[anon_sym_EQ] = ACTIONS(27),
[anon_sym_LBRACE] = ACTIONS(30),
[anon_sym_RBRACE] = ACTIONS(33),
[anon_sym_if] = ACTIONS(35),
[anon_sym_limit] = ACTIONS(35),
[anon_sym_trigger] = ACTIONS(35),
[anon_sym_potential] = ACTIONS(35),
[anon_sym_AND] = ACTIONS(38),
[anon_sym_OR] = ACTIONS(38),
[anon_sym_NOT] = ACTIONS(38),
[anon_sym_LBRACK_LBRACK] = ACTIONS(41),
[anon_sym_RBRACK] = ACTIONS(33),
[sym_template_string] = ACTIONS(44),
[sym_string] = ACTIONS(47),
[sym_number] = ACTIONS(50),
[anon_sym_yes] = ACTIONS(53),
[anon_sym_no] = ACTIONS(53),
[anon_sym_true] = ACTIONS(53),
[anon_sym_false] = ACTIONS(53),
[anon_sym_DOLLAR] = ACTIONS(56),
[sym_identifier] = ACTIONS(50),
[sym_comment] = ACTIONS(3),
},
[STATE(3)] = {
[sym_assignment] = STATE(29),
[sym_map] = STATE(22),
[sym_statement] = STATE(7),
[sym_simple_value] = STATE(32),
[sym_condition_statement] = STATE(29),
[sym_logical_statement] = STATE(29),
[sym_macro_map] = STATE(29),
[sym_boolean] = STATE(13),
[sym_variable] = STATE(33),
[sym_variable_embedded_identifier] = STATE(34),
[aux_sym_map_repeat1] = STATE(7),
[aux_sym_array_repeat1] = STATE(37),
[anon_sym_EQ] = ACTIONS(7),
[anon_sym_LBRACE] = ACTIONS(9),
[anon_sym_RBRACE] = ACTIONS(59),
[anon_sym_if] = ACTIONS(11),
[anon_sym_limit] = ACTIONS(11),
[anon_sym_trigger] = ACTIONS(11),
[anon_sym_potential] = ACTIONS(11),
[anon_sym_AND] = ACTIONS(13),
[anon_sym_OR] = ACTIONS(13),
[anon_sym_NOT] = ACTIONS(13),
[anon_sym_LBRACK_LBRACK] = ACTIONS(15),
[sym_template_string] = ACTIONS(17),
[sym_string] = ACTIONS(19),
[sym_number] = ACTIONS(21),
[anon_sym_yes] = ACTIONS(23),
[anon_sym_no] = ACTIONS(23),
[anon_sym_true] = ACTIONS(23),
[anon_sym_false] = ACTIONS(23),
[anon_sym_DOLLAR] = ACTIONS(25),
[sym_identifier] = ACTIONS(21),
[sym_comment] = ACTIONS(3),
},
[STATE(4)] = {
[sym_assignment] = STATE(29),
[sym_map] = STATE(22),
[sym_statement] = STATE(7),
[sym_simple_value] = STATE(29),
[sym_condition_statement] = STATE(29),
[sym_logical_statement] = STATE(29),
[sym_macro_map] = STATE(29),
[sym_boolean] = STATE(13),
[sym_variable] = STATE(14),
[sym_variable_embedded_identifier] = STATE(15),
[aux_sym_map_repeat1] = STATE(7),
[anon_sym_EQ] = ACTIONS(7),
[anon_sym_LBRACE] = ACTIONS(9),
[anon_sym_RBRACE] = ACTIONS(61),
[anon_sym_if] = ACTIONS(11),
[anon_sym_limit] = ACTIONS(11),
[anon_sym_trigger] = ACTIONS(11),
[anon_sym_potential] = ACTIONS(11),
[anon_sym_AND] = ACTIONS(13),
[anon_sym_OR] = ACTIONS(13),
[anon_sym_NOT] = ACTIONS(13),
[anon_sym_LBRACK_LBRACK] = ACTIONS(15),
[sym_template_string] = ACTIONS(17),
[sym_string] = ACTIONS(19),
[sym_number] = ACTIONS(21),
[anon_sym_yes] = ACTIONS(23),
[anon_sym_no] = ACTIONS(23),
[anon_sym_true] = ACTIONS(23),
[anon_sym_false] = ACTIONS(23),
[anon_sym_DOLLAR] = ACTIONS(25),
[sym_identifier] = ACTIONS(21),
[sym_comment] = ACTIONS(3),
},
[STATE(5)] = {
[sym_assignment] = STATE(29),
[sym_map] = STATE(22),
[sym_statement] = STATE(35),
[sym_simple_value] = STATE(29),
[sym_condition_statement] = STATE(29),
[sym_logical_statement] = STATE(29),
[sym_macro_map] = STATE(29),
[sym_boolean] = STATE(13),
[sym_variable] = STATE(14),
[sym_variable_embedded_identifier] = STATE(15),
[aux_sym_source_file_repeat1] = STATE(8),
[ts_builtin_sym_end] = ACTIONS(63),
[anon_sym_EQ] = ACTIONS(7),
[anon_sym_LBRACE] = ACTIONS(9),
[anon_sym_if] = ACTIONS(11),
[anon_sym_limit] = ACTIONS(11),
[anon_sym_trigger] = ACTIONS(11),
[anon_sym_potential] = ACTIONS(11),
[anon_sym_AND] = ACTIONS(13),
[anon_sym_OR] = ACTIONS(13),
[anon_sym_NOT] = ACTIONS(13),
[anon_sym_LBRACK_LBRACK] = ACTIONS(15),
[sym_template_string] = ACTIONS(17),
[sym_string] = ACTIONS(19),
[sym_number] = ACTIONS(21),
[anon_sym_yes] = ACTIONS(23),
[anon_sym_no] = ACTIONS(23),
[anon_sym_true] = ACTIONS(23),
[anon_sym_false] = ACTIONS(23),
[anon_sym_DOLLAR] = ACTIONS(25),
[sym_identifier] = ACTIONS(21),
[sym_comment] = ACTIONS(3),
},
[STATE(6)] = {
[sym_assignment] = STATE(29),
[sym_map] = STATE(22),
[sym_statement] = STATE(9),
[sym_simple_value] = STATE(29),
[sym_condition_statement] = STATE(29),
[sym_logical_statement] = STATE(29),
[sym_macro_map] = STATE(29),
[sym_boolean] = STATE(13),
[sym_variable] = STATE(14),
[sym_variable_embedded_identifier] = STATE(15),
[aux_sym_map_repeat1] = STATE(9),
[anon_sym_EQ] = ACTIONS(7),
[anon_sym_LBRACE] = ACTIONS(9),
[anon_sym_if] = ACTIONS(11),
[anon_sym_limit] = ACTIONS(11),
[anon_sym_trigger] = ACTIONS(11),
[anon_sym_potential] = ACTIONS(11),
[anon_sym_AND] = ACTIONS(13),
[anon_sym_OR] = ACTIONS(13),
[anon_sym_NOT] = ACTIONS(13),
[anon_sym_LBRACK_LBRACK] = ACTIONS(15),
[anon_sym_RBRACK] = ACTIONS(65),
[sym_template_string] = ACTIONS(17),
[sym_string] = ACTIONS(19),
[sym_number] = ACTIONS(21),
[anon_sym_yes] = ACTIONS(23),
[anon_sym_no] = ACTIONS(23),
[anon_sym_true] = ACTIONS(23),
[anon_sym_false] = ACTIONS(23),
[anon_sym_DOLLAR] = ACTIONS(25),
[sym_identifier] = ACTIONS(21),
[sym_comment] = ACTIONS(3),
},
[STATE(7)] = {
[sym_assignment] = STATE(29),
[sym_map] = STATE(22),
[sym_statement] = STATE(2),
[sym_simple_value] = STATE(29),
[sym_condition_statement] = STATE(29),
[sym_logical_statement] = STATE(29),
[sym_macro_map] = STATE(29),
[sym_boolean] = STATE(13),
[sym_variable] = STATE(14),
[sym_variable_embedded_identifier] = STATE(15),
[aux_sym_map_repeat1] = STATE(2),
[anon_sym_EQ] = ACTIONS(7),
[anon_sym_LBRACE] = ACTIONS(9),
[anon_sym_RBRACE] = ACTIONS(67),
[anon_sym_if] = ACTIONS(11),
[anon_sym_limit] = ACTIONS(11),
[anon_sym_trigger] = ACTIONS(11),
[anon_sym_potential] = ACTIONS(11),
[anon_sym_AND] = ACTIONS(13),
[anon_sym_OR] = ACTIONS(13),
[anon_sym_NOT] = ACTIONS(13),
[anon_sym_LBRACK_LBRACK] = ACTIONS(15),
[sym_template_string] = ACTIONS(17),
[sym_string] = ACTIONS(19),
[sym_number] = ACTIONS(21),
[anon_sym_yes] = ACTIONS(23),
[anon_sym_no] = ACTIONS(23),
[anon_sym_true] = ACTIONS(23),
[anon_sym_false] = ACTIONS(23),
[anon_sym_DOLLAR] = ACTIONS(25),
[sym_identifier] = ACTIONS(21),
[sym_comment] = ACTIONS(3),
},
[STATE(8)] = {
[sym_assignment] = STATE(29),
[sym_map] = STATE(22),
[sym_statement] = STATE(35),
[sym_simple_value] = STATE(29),
[sym_condition_statement] = STATE(29),
[sym_logical_statement] = STATE(29),
[sym_macro_map] = STATE(29),
[sym_boolean] = STATE(13),
[sym_variable] = STATE(14),
[sym_variable_embedded_identifier] = STATE(15),
[aux_sym_source_file_repeat1] = STATE(8),
[ts_builtin_sym_end] = ACTIONS(69),
[anon_sym_EQ] = ACTIONS(71),
[anon_sym_LBRACE] = ACTIONS(74),
[anon_sym_if] = ACTIONS(77),
[anon_sym_limit] = ACTIONS(77),
[anon_sym_trigger] = ACTIONS(77),
[anon_sym_potential] = ACTIONS(77),
[anon_sym_AND] = ACTIONS(80),
[anon_sym_OR] = ACTIONS(80),
[anon_sym_NOT] = ACTIONS(80),
[anon_sym_LBRACK_LBRACK] = ACTIONS(83),
[sym_template_string] = ACTIONS(86),
[sym_string] = ACTIONS(89),
[sym_number] = ACTIONS(92),
[anon_sym_yes] = ACTIONS(95),
[anon_sym_no] = ACTIONS(95),
[anon_sym_true] = ACTIONS(95),
[anon_sym_false] = ACTIONS(95),
[anon_sym_DOLLAR] = ACTIONS(98),
[sym_identifier] = ACTIONS(92),
[sym_comment] = ACTIONS(3),
},
[STATE(9)] = {
[sym_assignment] = STATE(29),
[sym_map] = STATE(22),
[sym_statement] = STATE(2),
[sym_simple_value] = STATE(29),
[sym_condition_statement] = STATE(29),
[sym_logical_statement] = STATE(29),
[sym_macro_map] = STATE(29),
[sym_boolean] = STATE(13),
[sym_variable] = STATE(14),
[sym_variable_embedded_identifier] = STATE(15),
[aux_sym_map_repeat1] = STATE(2),
[anon_sym_EQ] = ACTIONS(7),
[anon_sym_LBRACE] = ACTIONS(9),
[anon_sym_if] = ACTIONS(11),
[anon_sym_limit] = ACTIONS(11),
[anon_sym_trigger] = ACTIONS(11),
[anon_sym_potential] = ACTIONS(11),
[anon_sym_AND] = ACTIONS(13),
[anon_sym_OR] = ACTIONS(13),
[anon_sym_NOT] = ACTIONS(13),
[anon_sym_LBRACK_LBRACK] = ACTIONS(15),
[anon_sym_RBRACK] = ACTIONS(101),
[sym_template_string] = ACTIONS(17),
[sym_string] = ACTIONS(19),
[sym_number] = ACTIONS(21),
[anon_sym_yes] = ACTIONS(23),
[anon_sym_no] = ACTIONS(23),
[anon_sym_true] = ACTIONS(23),
[anon_sym_false] = ACTIONS(23),
[anon_sym_DOLLAR] = ACTIONS(25),
[sym_identifier] = ACTIONS(21),
[sym_comment] = ACTIONS(3),
},
[STATE(10)] = {
[sym_variable] = STATE(19),
[ts_builtin_sym_end] = ACTIONS(103),
[anon_sym_EQ] = ACTIONS(105),
[anon_sym_LBRACE] = ACTIONS(103),
[anon_sym_RBRACE] = ACTIONS(103),
[anon_sym_if] = ACTIONS(108),
[anon_sym_limit] = ACTIONS(108),
[anon_sym_trigger] = ACTIONS(108),
[anon_sym_potential] = ACTIONS(108),
[anon_sym_AND] = ACTIONS(108),
[anon_sym_OR] = ACTIONS(108),
[anon_sym_NOT] = ACTIONS(108),
[anon_sym_LBRACK_LBRACK] = ACTIONS(103),
[anon_sym_RBRACK] = ACTIONS(103),
[sym_template_string] = ACTIONS(103),
[sym_string] = ACTIONS(108),
[sym_number] = ACTIONS(108),
[anon_sym_yes] = ACTIONS(108),
[anon_sym_no] = ACTIONS(108),
[anon_sym_true] = ACTIONS(108),
[anon_sym_false] = ACTIONS(108),
[anon_sym_DOLLAR] = ACTIONS(110),
[sym_identifier] = ACTIONS(108),
[sym_comment] = ACTIONS(3),
},
[STATE(11)] = {
[sym_variable] = STATE(19),
[ts_builtin_sym_end] = ACTIONS(103),
[anon_sym_EQ] = ACTIONS(103),
[anon_sym_LBRACE] = ACTIONS(103),
[anon_sym_RBRACE] = ACTIONS(103),
[anon_sym_if] = ACTIONS(108),
[anon_sym_limit] = ACTIONS(108),
[anon_sym_trigger] = ACTIONS(108),
[anon_sym_potential] = ACTIONS(108),
[anon_sym_AND] = ACTIONS(108),
[anon_sym_OR] = ACTIONS(108),
[anon_sym_NOT] = ACTIONS(108),
[anon_sym_LBRACK_LBRACK] = ACTIONS(103),
[anon_sym_RBRACK] = ACTIONS(103),
[sym_template_string] = ACTIONS(103),
[sym_string] = ACTIONS(108),
[sym_number] = ACTIONS(108),
[anon_sym_yes] = ACTIONS(108),
[anon_sym_no] = ACTIONS(108),
[anon_sym_true] = ACTIONS(108),
[anon_sym_false] = ACTIONS(108),
[anon_sym_DOLLAR] = ACTIONS(110),
[sym_identifier] = ACTIONS(108),
[sym_comment] = ACTIONS(3),
},
[STATE(12)] = {
[ts_builtin_sym_end] = ACTIONS(113),
[anon_sym_EQ] = ACTIONS(113),
[anon_sym_LBRACE] = ACTIONS(113),
[anon_sym_RBRACE] = ACTIONS(113),
[anon_sym_if] = ACTIONS(115),
[anon_sym_limit] = ACTIONS(115),
[anon_sym_trigger] = ACTIONS(115),
[anon_sym_potential] = ACTIONS(115),
[anon_sym_AND] = ACTIONS(115),
[anon_sym_OR] = ACTIONS(115),
[anon_sym_NOT] = ACTIONS(115),
[anon_sym_LBRACK_LBRACK] = ACTIONS(113),
[anon_sym_RBRACK] = ACTIONS(113),
[sym_template_string] = ACTIONS(113),
[sym_string] = ACTIONS(115),
[sym_number] = ACTIONS(115),
[anon_sym_yes] = ACTIONS(115),
[anon_sym_no] = ACTIONS(115),
[anon_sym_true] = ACTIONS(115),
[anon_sym_false] = ACTIONS(115),
[anon_sym_DOLLAR] = ACTIONS(113),
[sym_identifier] = ACTIONS(115),
[sym_comment] = ACTIONS(3),
},
[STATE(13)] = {
[ts_builtin_sym_end] = ACTIONS(103),
[anon_sym_EQ] = ACTIONS(103),
[anon_sym_LBRACE] = ACTIONS(103),
[anon_sym_RBRACE] = ACTIONS(103),
[anon_sym_if] = ACTIONS(108),
[anon_sym_limit] = ACTIONS(108),
[anon_sym_trigger] = ACTIONS(108),
[anon_sym_potential] = ACTIONS(108),
[anon_sym_AND] = ACTIONS(108),
[anon_sym_OR] = ACTIONS(108),
[anon_sym_NOT] = ACTIONS(108),
[anon_sym_LBRACK_LBRACK] = ACTIONS(103),
[anon_sym_RBRACK] = ACTIONS(103),
[sym_template_string] = ACTIONS(103),
[sym_string] = ACTIONS(108),
[sym_number] = ACTIONS(108),
[anon_sym_yes] = ACTIONS(108),
[anon_sym_no] = ACTIONS(108),
[anon_sym_true] = ACTIONS(108),
[anon_sym_false] = ACTIONS(108),
[anon_sym_DOLLAR] = ACTIONS(103),
[sym_identifier] = ACTIONS(108),
[sym_comment] = ACTIONS(3),
},
[STATE(14)] = {
[ts_builtin_sym_end] = ACTIONS(117),
[anon_sym_EQ] = ACTIONS(119),
[anon_sym_LBRACE] = ACTIONS(117),
[anon_sym_RBRACE] = ACTIONS(117),
[anon_sym_if] = ACTIONS(122),
[anon_sym_limit] = ACTIONS(122),
[anon_sym_trigger] = ACTIONS(122),
[anon_sym_potential] = ACTIONS(122),
[anon_sym_AND] = ACTIONS(122),
[anon_sym_OR] = ACTIONS(122),
[anon_sym_NOT] = ACTIONS(122),
[anon_sym_LBRACK_LBRACK] = ACTIONS(117),
[anon_sym_RBRACK] = ACTIONS(117),
[sym_template_string] = ACTIONS(117),
[sym_string] = ACTIONS(122),
[sym_number] = ACTIONS(124),
[anon_sym_yes] = ACTIONS(122),
[anon_sym_no] = ACTIONS(122),
[anon_sym_true] = ACTIONS(122),
[anon_sym_false] = ACTIONS(122),
[anon_sym_DOLLAR] = ACTIONS(117),
[sym_identifier] = ACTIONS(124),
[sym_comment] = ACTIONS(3),
},
[STATE(15)] = {
[ts_builtin_sym_end] = ACTIONS(117),
[anon_sym_EQ] = ACTIONS(119),
[anon_sym_LBRACE] = ACTIONS(117),
[anon_sym_RBRACE] = ACTIONS(117),
[anon_sym_if] = ACTIONS(122),
[anon_sym_limit] = ACTIONS(122),
[anon_sym_trigger] = ACTIONS(122),
[anon_sym_potential] = ACTIONS(122),
[anon_sym_AND] = ACTIONS(122),
[anon_sym_OR] = ACTIONS(122),
[anon_sym_NOT] = ACTIONS(122),
[anon_sym_LBRACK_LBRACK] = ACTIONS(117),
[anon_sym_RBRACK] = ACTIONS(117),
[sym_template_string] = ACTIONS(117),
[sym_string] = ACTIONS(122),
[sym_number] = ACTIONS(122),
[anon_sym_yes] = ACTIONS(122),
[anon_sym_no] = ACTIONS(122),
[anon_sym_true] = ACTIONS(122),
[anon_sym_false] = ACTIONS(122),
[anon_sym_DOLLAR] = ACTIONS(117),
[sym_identifier] = ACTIONS(122),
[sym_comment] = ACTIONS(3),
},
[STATE(16)] = {
[ts_builtin_sym_end] = ACTIONS(127),
[anon_sym_EQ] = ACTIONS(127),
[anon_sym_LBRACE] = ACTIONS(127),
[anon_sym_RBRACE] = ACTIONS(127),
[anon_sym_if] = ACTIONS(129),
[anon_sym_limit] = ACTIONS(129),
[anon_sym_trigger] = ACTIONS(129),
[anon_sym_potential] = ACTIONS(129),
[anon_sym_AND] = ACTIONS(129),
[anon_sym_OR] = ACTIONS(129),
[anon_sym_NOT] = ACTIONS(129),
[anon_sym_LBRACK_LBRACK] = ACTIONS(127),
[anon_sym_RBRACK] = ACTIONS(127),
[sym_template_string] = ACTIONS(127),
[sym_string] = ACTIONS(129),
[sym_number] = ACTIONS(129),
[anon_sym_yes] = ACTIONS(129),
[anon_sym_no] = ACTIONS(129),
[anon_sym_true] = ACTIONS(129),
[anon_sym_false] = ACTIONS(129),
[anon_sym_DOLLAR] = ACTIONS(127),
[sym_identifier] = ACTIONS(129),
[sym_comment] = ACTIONS(3),
},
[STATE(17)] = {
[ts_builtin_sym_end] = ACTIONS(103),
[anon_sym_EQ] = ACTIONS(105),
[anon_sym_LBRACE] = ACTIONS(103),
[anon_sym_RBRACE] = ACTIONS(103),
[anon_sym_if] = ACTIONS(108),
[anon_sym_limit] = ACTIONS(108),
[anon_sym_trigger] = ACTIONS(108),
[anon_sym_potential] = ACTIONS(108),
[anon_sym_AND] = ACTIONS(108),
[anon_sym_OR] = ACTIONS(108),
[anon_sym_NOT] = ACTIONS(108),
[anon_sym_LBRACK_LBRACK] = ACTIONS(103),
[anon_sym_RBRACK] = ACTIONS(103),
[sym_template_string] = ACTIONS(103),
[sym_string] = ACTIONS(108),
[sym_number] = ACTIONS(108),
[anon_sym_yes] = ACTIONS(108),
[anon_sym_no] = ACTIONS(108),
[anon_sym_true] = ACTIONS(108),
[anon_sym_false] = ACTIONS(108),
[anon_sym_DOLLAR] = ACTIONS(103),
[sym_identifier] = ACTIONS(108),
[sym_comment] = ACTIONS(3),
},
[STATE(18)] = {
[ts_builtin_sym_end] = ACTIONS(131),
[anon_sym_EQ] = ACTIONS(131),
[anon_sym_LBRACE] = ACTIONS(131),
[anon_sym_RBRACE] = ACTIONS(131),
[anon_sym_if] = ACTIONS(133),
[anon_sym_limit] = ACTIONS(133),
[anon_sym_trigger] = ACTIONS(133),
[anon_sym_potential] = ACTIONS(133),
[anon_sym_AND] = ACTIONS(133),
[anon_sym_OR] = ACTIONS(133),
[anon_sym_NOT] = ACTIONS(133),
[anon_sym_LBRACK_LBRACK] = ACTIONS(131),
[anon_sym_RBRACK] = ACTIONS(131),
[sym_template_string] = ACTIONS(131),
[sym_string] = ACTIONS(133),
[sym_number] = ACTIONS(133),
[anon_sym_yes] = ACTIONS(133),
[anon_sym_no] = ACTIONS(133),
[anon_sym_true] = ACTIONS(133),
[anon_sym_false] = ACTIONS(133),
[anon_sym_DOLLAR] = ACTIONS(131),
[sym_identifier] = ACTIONS(133),
[sym_comment] = ACTIONS(3),
},
[STATE(19)] = {
[ts_builtin_sym_end] = ACTIONS(135),
[anon_sym_EQ] = ACTIONS(135),
[anon_sym_LBRACE] = ACTIONS(135),
[anon_sym_RBRACE] = ACTIONS(135),
[anon_sym_if] = ACTIONS(137),
[anon_sym_limit] = ACTIONS(137),
[anon_sym_trigger] = ACTIONS(137),
[anon_sym_potential] = ACTIONS(137),
[anon_sym_AND] = ACTIONS(137),
[anon_sym_OR] = ACTIONS(137),
[anon_sym_NOT] = ACTIONS(137),
[anon_sym_LBRACK_LBRACK] = ACTIONS(135),
[anon_sym_RBRACK] = ACTIONS(135),
[sym_template_string] = ACTIONS(135),
[sym_string] = ACTIONS(137),
[sym_number] = ACTIONS(139),
[anon_sym_yes] = ACTIONS(137),
[anon_sym_no] = ACTIONS(137),
[anon_sym_true] = ACTIONS(137),
[anon_sym_false] = ACTIONS(137),
[anon_sym_DOLLAR] = ACTIONS(135),
[sym_identifier] = ACTIONS(139),
[sym_comment] = ACTIONS(3),
},
[STATE(20)] = {
[ts_builtin_sym_end] = ACTIONS(135),
[anon_sym_EQ] = ACTIONS(135),
[anon_sym_LBRACE] = ACTIONS(135),
[anon_sym_RBRACE] = ACTIONS(135),
[anon_sym_if] = ACTIONS(137),
[anon_sym_limit] = ACTIONS(137),
[anon_sym_trigger] = ACTIONS(137),
[anon_sym_potential] = ACTIONS(137),
[anon_sym_AND] = ACTIONS(137),
[anon_sym_OR] = ACTIONS(137),
[anon_sym_NOT] = ACTIONS(137),
[anon_sym_LBRACK_LBRACK] = ACTIONS(135),
[anon_sym_RBRACK] = ACTIONS(135),
[sym_template_string] = ACTIONS(135),
[sym_string] = ACTIONS(137),
[sym_number] = ACTIONS(137),
[anon_sym_yes] = ACTIONS(137),
[anon_sym_no] = ACTIONS(137),
[anon_sym_true] = ACTIONS(137),
[anon_sym_false] = ACTIONS(137),
[anon_sym_DOLLAR] = ACTIONS(135),
[sym_identifier] = ACTIONS(137),
[sym_comment] = ACTIONS(3),
},
[STATE(21)] = {
[ts_builtin_sym_end] = ACTIONS(142),
[anon_sym_EQ] = ACTIONS(142),
[anon_sym_LBRACE] = ACTIONS(142),
[anon_sym_RBRACE] = ACTIONS(142),
[anon_sym_if] = ACTIONS(144),
[anon_sym_limit] = ACTIONS(144),
[anon_sym_trigger] = ACTIONS(144),
[anon_sym_potential] = ACTIONS(144),
[anon_sym_AND] = ACTIONS(144),
[anon_sym_OR] = ACTIONS(144),
[anon_sym_NOT] = ACTIONS(144),
[anon_sym_LBRACK_LBRACK] = ACTIONS(142),
[anon_sym_RBRACK] = ACTIONS(142),
[sym_template_string] = ACTIONS(142),
[sym_string] = ACTIONS(144),
[sym_number] = ACTIONS(144),
[anon_sym_yes] = ACTIONS(144),
[anon_sym_no] = ACTIONS(144),
[anon_sym_true] = ACTIONS(144),
[anon_sym_false] = ACTIONS(144),
[anon_sym_DOLLAR] = ACTIONS(142),
[sym_identifier] = ACTIONS(144),
[sym_comment] = ACTIONS(3),
},
[STATE(22)] = {
[ts_builtin_sym_end] = ACTIONS(146),
[anon_sym_EQ] = ACTIONS(146),
[anon_sym_LBRACE] = ACTIONS(146),
[anon_sym_RBRACE] = ACTIONS(146),
[anon_sym_if] = ACTIONS(148),
[anon_sym_limit] = ACTIONS(148),
[anon_sym_trigger] = ACTIONS(148),
[anon_sym_potential] = ACTIONS(148),
[anon_sym_AND] = ACTIONS(148),
[anon_sym_OR] = ACTIONS(148),
[anon_sym_NOT] = ACTIONS(148),
[anon_sym_LBRACK_LBRACK] = ACTIONS(146),
[anon_sym_RBRACK] = ACTIONS(146),
[sym_template_string] = ACTIONS(146),
[sym_string] = ACTIONS(148),
[sym_number] = ACTIONS(148),
[anon_sym_yes] = ACTIONS(148),
[anon_sym_no] = ACTIONS(148),
[anon_sym_true] = ACTIONS(148),
[anon_sym_false] = ACTIONS(148),
[anon_sym_DOLLAR] = ACTIONS(146),
[sym_identifier] = ACTIONS(148),
[sym_comment] = ACTIONS(3),
},
[STATE(23)] = {
[ts_builtin_sym_end] = ACTIONS(150),
[anon_sym_EQ] = ACTIONS(150),
[anon_sym_LBRACE] = ACTIONS(150),
[anon_sym_RBRACE] = ACTIONS(150),
[anon_sym_if] = ACTIONS(152),
[anon_sym_limit] = ACTIONS(152),
[anon_sym_trigger] = ACTIONS(152),
[anon_sym_potential] = ACTIONS(152),
[anon_sym_AND] = ACTIONS(152),
[anon_sym_OR] = ACTIONS(152),
[anon_sym_NOT] = ACTIONS(152),
[anon_sym_LBRACK_LBRACK] = ACTIONS(150),
[anon_sym_RBRACK] = ACTIONS(150),
[sym_template_string] = ACTIONS(150),
[sym_string] = ACTIONS(152),
[sym_number] = ACTIONS(152),
[anon_sym_yes] = ACTIONS(152),
[anon_sym_no] = ACTIONS(152),
[anon_sym_true] = ACTIONS(152),
[anon_sym_false] = ACTIONS(152),
[anon_sym_DOLLAR] = ACTIONS(150),
[sym_identifier] = ACTIONS(152),
[sym_comment] = ACTIONS(3),
},
[STATE(24)] = {
[ts_builtin_sym_end] = ACTIONS(154),
[anon_sym_EQ] = ACTIONS(154),
[anon_sym_LBRACE] = ACTIONS(154),
[anon_sym_RBRACE] = ACTIONS(154),
[anon_sym_if] = ACTIONS(156),
[anon_sym_limit] = ACTIONS(156),
[anon_sym_trigger] = ACTIONS(156),
[anon_sym_potential] = ACTIONS(156),
[anon_sym_AND] = ACTIONS(156),
[anon_sym_OR] = ACTIONS(156),
[anon_sym_NOT] = ACTIONS(156),
[anon_sym_LBRACK_LBRACK] = ACTIONS(154),
[anon_sym_RBRACK] = ACTIONS(154),
[sym_template_string] = ACTIONS(154),
[sym_string] = ACTIONS(156),
[sym_number] = ACTIONS(156),
[anon_sym_yes] = ACTIONS(156),
[anon_sym_no] = ACTIONS(156),
[anon_sym_true] = ACTIONS(156),
[anon_sym_false] = ACTIONS(156),
[anon_sym_DOLLAR] = ACTIONS(154),
[sym_identifier] = ACTIONS(156),
[sym_comment] = ACTIONS(3),
},
[STATE(25)] = {
[ts_builtin_sym_end] = ACTIONS(154),
[anon_sym_EQ] = ACTIONS(154),
[anon_sym_LBRACE] = ACTIONS(154),
[anon_sym_RBRACE] = ACTIONS(154),
[anon_sym_if] = ACTIONS(156),
[anon_sym_limit] = ACTIONS(156),
[anon_sym_trigger] = ACTIONS(156),
[anon_sym_potential] = ACTIONS(156),
[anon_sym_AND] = ACTIONS(156),
[anon_sym_OR] = ACTIONS(156),
[anon_sym_NOT] = ACTIONS(156),
[anon_sym_LBRACK_LBRACK] = ACTIONS(154),
[anon_sym_RBRACK] = ACTIONS(154),
[sym_template_string] = ACTIONS(154),
[sym_string] = ACTIONS(156),
[sym_number] = ACTIONS(158),
[anon_sym_yes] = ACTIONS(156),
[anon_sym_no] = ACTIONS(156),
[anon_sym_true] = ACTIONS(156),
[anon_sym_false] = ACTIONS(156),
[anon_sym_DOLLAR] = ACTIONS(154),
[sym_identifier] = ACTIONS(158),
[sym_comment] = ACTIONS(3),
},
[STATE(26)] = {
[ts_builtin_sym_end] = ACTIONS(161),
[anon_sym_EQ] = ACTIONS(161),
[anon_sym_LBRACE] = ACTIONS(161),
[anon_sym_RBRACE] = ACTIONS(161),
[anon_sym_if] = ACTIONS(163),
[anon_sym_limit] = ACTIONS(163),
[anon_sym_trigger] = ACTIONS(163),
[anon_sym_potential] = ACTIONS(163),
[anon_sym_AND] = ACTIONS(163),
[anon_sym_OR] = ACTIONS(163),
[anon_sym_NOT] = ACTIONS(163),
[anon_sym_LBRACK_LBRACK] = ACTIONS(161),
[anon_sym_RBRACK] = ACTIONS(161),
[sym_template_string] = ACTIONS(161),
[sym_string] = ACTIONS(163),
[sym_number] = ACTIONS(163),
[anon_sym_yes] = ACTIONS(163),
[anon_sym_no] = ACTIONS(163),
[anon_sym_true] = ACTIONS(163),
[anon_sym_false] = ACTIONS(163),
[anon_sym_DOLLAR] = ACTIONS(161),
[sym_identifier] = ACTIONS(163),
[sym_comment] = ACTIONS(3),
},
[STATE(27)] = {
[ts_builtin_sym_end] = ACTIONS(165),
[anon_sym_EQ] = ACTIONS(165),
[anon_sym_LBRACE] = ACTIONS(165),
[anon_sym_RBRACE] = ACTIONS(165),
[anon_sym_if] = ACTIONS(167),
[anon_sym_limit] = ACTIONS(167),
[anon_sym_trigger] = ACTIONS(167),
[anon_sym_potential] = ACTIONS(167),
[anon_sym_AND] = ACTIONS(167),
[anon_sym_OR] = ACTIONS(167),
[anon_sym_NOT] = ACTIONS(167),
[anon_sym_LBRACK_LBRACK] = ACTIONS(165),
[anon_sym_RBRACK] = ACTIONS(165),
[sym_template_string] = ACTIONS(165),
[sym_string] = ACTIONS(167),
[sym_number] = ACTIONS(167),
[anon_sym_yes] = ACTIONS(167),
[anon_sym_no] = ACTIONS(167),
[anon_sym_true] = ACTIONS(167),
[anon_sym_false] = ACTIONS(167),
[anon_sym_DOLLAR] = ACTIONS(165),
[sym_identifier] = ACTIONS(167),
[sym_comment] = ACTIONS(3),
},
[STATE(28)] = {
[ts_builtin_sym_end] = ACTIONS(169),
[anon_sym_EQ] = ACTIONS(169),
[anon_sym_LBRACE] = ACTIONS(169),
[anon_sym_RBRACE] = ACTIONS(169),
[anon_sym_if] = ACTIONS(171),
[anon_sym_limit] = ACTIONS(171),
[anon_sym_trigger] = ACTIONS(171),
[anon_sym_potential] = ACTIONS(171),
[anon_sym_AND] = ACTIONS(171),
[anon_sym_OR] = ACTIONS(171),
[anon_sym_NOT] = ACTIONS(171),
[anon_sym_LBRACK_LBRACK] = ACTIONS(169),
[anon_sym_RBRACK] = ACTIONS(169),
[sym_template_string] = ACTIONS(169),
[sym_string] = ACTIONS(171),
[sym_number] = ACTIONS(171),
[anon_sym_yes] = ACTIONS(171),
[anon_sym_no] = ACTIONS(171),
[anon_sym_true] = ACTIONS(171),
[anon_sym_false] = ACTIONS(171),
[anon_sym_DOLLAR] = ACTIONS(169),
[sym_identifier] = ACTIONS(171),
[sym_comment] = ACTIONS(3),
},
[STATE(29)] = {
[ts_builtin_sym_end] = ACTIONS(117),
[anon_sym_EQ] = ACTIONS(117),
[anon_sym_LBRACE] = ACTIONS(117),
[anon_sym_RBRACE] = ACTIONS(117),
[anon_sym_if] = ACTIONS(122),
[anon_sym_limit] = ACTIONS(122),
[anon_sym_trigger] = ACTIONS(122),
[anon_sym_potential] = ACTIONS(122),
[anon_sym_AND] = ACTIONS(122),
[anon_sym_OR] = ACTIONS(122),
[anon_sym_NOT] = ACTIONS(122),
[anon_sym_LBRACK_LBRACK] = ACTIONS(117),
[anon_sym_RBRACK] = ACTIONS(117),
[sym_template_string] = ACTIONS(117),
[sym_string] = ACTIONS(122),
[sym_number] = ACTIONS(122),
[anon_sym_yes] = ACTIONS(122),
[anon_sym_no] = ACTIONS(122),
[anon_sym_true] = ACTIONS(122),
[anon_sym_false] = ACTIONS(122),
[anon_sym_DOLLAR] = ACTIONS(117),
[sym_identifier] = ACTIONS(122),
[sym_comment] = ACTIONS(3),
},
[STATE(30)] = {
[ts_builtin_sym_end] = ACTIONS(173),
[anon_sym_EQ] = ACTIONS(173),
[anon_sym_LBRACE] = ACTIONS(173),
[anon_sym_RBRACE] = ACTIONS(173),
[anon_sym_if] = ACTIONS(176),
[anon_sym_limit] = ACTIONS(176),
[anon_sym_trigger] = ACTIONS(176),
[anon_sym_potential] = ACTIONS(176),
[anon_sym_AND] = ACTIONS(176),
[anon_sym_OR] = ACTIONS(176),
[anon_sym_NOT] = ACTIONS(176),
[anon_sym_LBRACK_LBRACK] = ACTIONS(173),
[anon_sym_RBRACK] = ACTIONS(173),
[sym_template_string] = ACTIONS(173),
[sym_string] = ACTIONS(176),
[sym_number] = ACTIONS(176),
[anon_sym_yes] = ACTIONS(176),
[anon_sym_no] = ACTIONS(176),
[anon_sym_true] = ACTIONS(176),
[anon_sym_false] = ACTIONS(176),
[anon_sym_DOLLAR] = ACTIONS(173),
[sym_identifier] = ACTIONS(176),
[sym_comment] = ACTIONS(3),
},
[STATE(31)] = {
[ts_builtin_sym_end] = ACTIONS(179),
[anon_sym_EQ] = ACTIONS(179),
[anon_sym_LBRACE] = ACTIONS(179),
[anon_sym_RBRACE] = ACTIONS(179),
[anon_sym_if] = ACTIONS(181),
[anon_sym_limit] = ACTIONS(181),
[anon_sym_trigger] = ACTIONS(181),
[anon_sym_potential] = ACTIONS(181),
[anon_sym_AND] = ACTIONS(181),
[anon_sym_OR] = ACTIONS(181),
[anon_sym_NOT] = ACTIONS(181),
[anon_sym_LBRACK_LBRACK] = ACTIONS(179),
[anon_sym_RBRACK] = ACTIONS(179),
[sym_template_string] = ACTIONS(179),
[sym_string] = ACTIONS(181),
[sym_number] = ACTIONS(181),
[anon_sym_yes] = ACTIONS(181),
[anon_sym_no] = ACTIONS(181),
[anon_sym_true] = ACTIONS(181),
[anon_sym_false] = ACTIONS(181),
[anon_sym_DOLLAR] = ACTIONS(179),
[sym_identifier] = ACTIONS(181),
[sym_comment] = ACTIONS(3),
},
[STATE(32)] = {
[anon_sym_EQ] = ACTIONS(117),
[anon_sym_LBRACE] = ACTIONS(117),
[anon_sym_RBRACE] = ACTIONS(183),
[anon_sym_if] = ACTIONS(122),
[anon_sym_limit] = ACTIONS(122),
[anon_sym_trigger] = ACTIONS(122),
[anon_sym_potential] = ACTIONS(122),
[anon_sym_AND] = ACTIONS(122),
[anon_sym_OR] = ACTIONS(122),
[anon_sym_NOT] = ACTIONS(122),
[anon_sym_LBRACK_LBRACK] = ACTIONS(117),
[sym_template_string] = ACTIONS(117),
[sym_string] = ACTIONS(186),
[sym_number] = ACTIONS(186),
[anon_sym_yes] = ACTIONS(186),
[anon_sym_no] = ACTIONS(186),
[anon_sym_true] = ACTIONS(186),
[anon_sym_false] = ACTIONS(186),
[anon_sym_DOLLAR] = ACTIONS(183),
[sym_identifier] = ACTIONS(186),
[sym_comment] = ACTIONS(3),
},
[STATE(33)] = {
[anon_sym_EQ] = ACTIONS(119),
[anon_sym_LBRACE] = ACTIONS(117),
[anon_sym_RBRACE] = ACTIONS(183),
[anon_sym_if] = ACTIONS(122),
[anon_sym_limit] = ACTIONS(122),
[anon_sym_trigger] = ACTIONS(122),
[anon_sym_potential] = ACTIONS(122),
[anon_sym_AND] = ACTIONS(122),
[anon_sym_OR] = ACTIONS(122),
[anon_sym_NOT] = ACTIONS(122),
[anon_sym_LBRACK_LBRACK] = ACTIONS(117),
[sym_template_string] = ACTIONS(117),
[sym_string] = ACTIONS(186),
[sym_number] = ACTIONS(189),
[anon_sym_yes] = ACTIONS(186),
[anon_sym_no] = ACTIONS(186),
[anon_sym_true] = ACTIONS(186),
[anon_sym_false] = ACTIONS(186),
[anon_sym_DOLLAR] = ACTIONS(183),
[sym_identifier] = ACTIONS(189),
[sym_comment] = ACTIONS(3),
},
[STATE(34)] = {
[anon_sym_EQ] = ACTIONS(119),
[anon_sym_LBRACE] = ACTIONS(117),
[anon_sym_RBRACE] = ACTIONS(183),
[anon_sym_if] = ACTIONS(122),
[anon_sym_limit] = ACTIONS(122),
[anon_sym_trigger] = ACTIONS(122),
[anon_sym_potential] = ACTIONS(122),
[anon_sym_AND] = ACTIONS(122),
[anon_sym_OR] = ACTIONS(122),
[anon_sym_NOT] = ACTIONS(122),
[anon_sym_LBRACK_LBRACK] = ACTIONS(117),
[sym_template_string] = ACTIONS(117),
[sym_string] = ACTIONS(186),
[sym_number] = ACTIONS(186),
[anon_sym_yes] = ACTIONS(186),
[anon_sym_no] = ACTIONS(186),
[anon_sym_true] = ACTIONS(186),
[anon_sym_false] = ACTIONS(186),
[anon_sym_DOLLAR] = ACTIONS(183),
[sym_identifier] = ACTIONS(186),
[sym_comment] = ACTIONS(3),
},
[STATE(35)] = {
[ts_builtin_sym_end] = ACTIONS(193),
[anon_sym_EQ] = ACTIONS(193),
[anon_sym_LBRACE] = ACTIONS(193),
[anon_sym_if] = ACTIONS(195),
[anon_sym_limit] = ACTIONS(195),
[anon_sym_trigger] = ACTIONS(195),
[anon_sym_potential] = ACTIONS(195),
[anon_sym_AND] = ACTIONS(195),
[anon_sym_OR] = ACTIONS(195),
[anon_sym_NOT] = ACTIONS(195),
[anon_sym_LBRACK_LBRACK] = ACTIONS(193),
[sym_template_string] = ACTIONS(193),
[sym_string] = ACTIONS(195),
[sym_number] = ACTIONS(195),
[anon_sym_yes] = ACTIONS(195),
[anon_sym_no] = ACTIONS(195),
[anon_sym_true] = ACTIONS(195),
[anon_sym_false] = ACTIONS(195),
[anon_sym_DOLLAR] = ACTIONS(193),
[sym_identifier] = ACTIONS(195),
[sym_comment] = ACTIONS(3),
},
};
static const uint16_t ts_small_parse_table[] = {
[0] = 9,
ACTIONS(3), 1,
sym_comment,
ACTIONS(25), 1,
anon_sym_DOLLAR,
ACTIONS(197), 1,
anon_sym_LBRACE,
ACTIONS(199), 1,
sym_string,
STATE(13), 1,
sym_boolean,
STATE(25), 1,
sym_variable,
ACTIONS(201), 2,
sym_number,
sym_identifier,
ACTIONS(23), 4,
anon_sym_yes,
anon_sym_no,
anon_sym_true,
anon_sym_false,
STATE(24), 4,
sym_map,
sym_array,
sym_simple_value,
sym_variable_embedded_identifier,
[35] = 9,
ACTIONS(3), 1,
sym_comment,
ACTIONS(203), 1,
anon_sym_RBRACE,
ACTIONS(205), 1,
sym_string,
ACTIONS(211), 1,
anon_sym_DOLLAR,
STATE(44), 1,
sym_boolean,
STATE(45), 1,
sym_variable,
ACTIONS(207), 2,
sym_number,
sym_identifier,
STATE(38), 3,
sym_simple_value,
sym_variable_embedded_identifier,
aux_sym_array_repeat1,
ACTIONS(209), 4,
anon_sym_yes,
anon_sym_no,
anon_sym_true,
anon_sym_false,
[69] = 9,
ACTIONS(3), 1,
sym_comment,
ACTIONS(213), 1,
anon_sym_RBRACE,
ACTIONS(215), 1,
sym_string,
ACTIONS(224), 1,
anon_sym_DOLLAR,
STATE(44), 1,
sym_boolean,
STATE(45), 1,
sym_variable,
ACTIONS(218), 2,
sym_number,
sym_identifier,
STATE(38), 3,
sym_simple_value,
sym_variable_embedded_identifier,
aux_sym_array_repeat1,
ACTIONS(221), 4,
anon_sym_yes,
anon_sym_no,
anon_sym_true,
anon_sym_false,
[103] = 5,
ACTIONS(3), 1,
sym_comment,
ACTIONS(227), 1,
anon_sym_DOLLAR,
STATE(43), 1,
sym_variable,
ACTIONS(103), 2,
anon_sym_RBRACE,
sym_string,
ACTIONS(108), 6,
sym_number,
anon_sym_yes,
anon_sym_no,
anon_sym_true,
anon_sym_false,
sym_identifier,
[125] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(131), 3,
anon_sym_RBRACE,
sym_string,
anon_sym_DOLLAR,
ACTIONS(133), 6,
sym_number,
anon_sym_yes,
anon_sym_no,
anon_sym_true,
anon_sym_false,
sym_identifier,
[142] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(161), 3,
anon_sym_RBRACE,
sym_string,
anon_sym_DOLLAR,
ACTIONS(163), 6,
sym_number,
anon_sym_yes,
anon_sym_no,
anon_sym_true,
anon_sym_false,
sym_identifier,
[159] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(135), 3,
anon_sym_RBRACE,
sym_string,
anon_sym_DOLLAR,
ACTIONS(137), 6,
sym_number,
anon_sym_yes,
anon_sym_no,
anon_sym_true,
anon_sym_false,
sym_identifier,
[176] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(230), 2,
sym_number,
sym_identifier,
ACTIONS(135), 3,
anon_sym_RBRACE,
sym_string,
anon_sym_DOLLAR,
ACTIONS(137), 4,
anon_sym_yes,
anon_sym_no,
anon_sym_true,
anon_sym_false,
[195] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(103), 3,
anon_sym_RBRACE,
sym_string,
anon_sym_DOLLAR,
ACTIONS(108), 6,
sym_number,
anon_sym_yes,
anon_sym_no,
anon_sym_true,
anon_sym_false,
sym_identifier,
[212] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(235), 2,
sym_number,
sym_identifier,
ACTIONS(233), 3,
anon_sym_RBRACE,
sym_string,
anon_sym_DOLLAR,
ACTIONS(238), 4,
anon_sym_yes,
anon_sym_no,
anon_sym_true,
anon_sym_false,
[231] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(165), 3,
anon_sym_RBRACE,
sym_string,
anon_sym_DOLLAR,
ACTIONS(167), 6,
sym_number,
anon_sym_yes,
anon_sym_no,
anon_sym_true,
anon_sym_false,
sym_identifier,
[248] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(9), 1,
anon_sym_LBRACE,
STATE(23), 1,
sym_map,
[258] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(240), 1,
anon_sym_RBRACK,
[265] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(242), 1,
sym_identifier,
[272] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(244), 1,
anon_sym_EQ,
[279] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(246), 1,
anon_sym_DOLLAR,
[286] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(248), 1,
ts_builtin_sym_end,
[293] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(250), 1,
sym_identifier,
[300] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(252), 1,
anon_sym_EQ,
[307] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(254), 1,
anon_sym_DOLLAR,
[314] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(256), 1,
sym_identifier,
};
static const uint32_t ts_small_parse_table_map[] = {
[SMALL_STATE(36)] = 0,
[SMALL_STATE(37)] = 35,
[SMALL_STATE(38)] = 69,
[SMALL_STATE(39)] = 103,
[SMALL_STATE(40)] = 125,
[SMALL_STATE(41)] = 142,
[SMALL_STATE(42)] = 159,
[SMALL_STATE(43)] = 176,
[SMALL_STATE(44)] = 195,
[SMALL_STATE(45)] = 212,
[SMALL_STATE(46)] = 231,
[SMALL_STATE(47)] = 248,
[SMALL_STATE(48)] = 258,
[SMALL_STATE(49)] = 265,
[SMALL_STATE(50)] = 272,
[SMALL_STATE(51)] = 279,
[SMALL_STATE(52)] = 286,
[SMALL_STATE(53)] = 293,
[SMALL_STATE(54)] = 300,
[SMALL_STATE(55)] = 307,
[SMALL_STATE(56)] = 314,
};
static const TSParseActionEntry ts_parse_actions[] = {
[0] = {.entry = {.count = 0, .reusable = false}},
[1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(),
[3] = {.entry = {.count = 1, .reusable = true}}, SHIFT_EXTRA(),
[5] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0, 0, 0),
[7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22),
[9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4),
[11] = {.entry = {.count = 1, .reusable = false}}, SHIFT(22),
[13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(50),
[15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53),
[17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54),
[19] = {.entry = {.count = 1, .reusable = false}}, SHIFT(17),
[21] = {.entry = {.count = 1, .reusable = false}}, SHIFT(10),
[23] = {.entry = {.count = 1, .reusable = false}}, SHIFT(18),
[25] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49),
[27] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0), SHIFT_REPEAT(22),
[30] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0), SHIFT_REPEAT(4),
[33] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0),
[35] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0), SHIFT_REPEAT(22),
[38] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0), SHIFT_REPEAT(50),
[41] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0), SHIFT_REPEAT(53),
[44] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0), SHIFT_REPEAT(54),
[47] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0), SHIFT_REPEAT(17),
[50] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0), SHIFT_REPEAT(10),
[53] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0), SHIFT_REPEAT(18),
[56] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0), SHIFT_REPEAT(49),
[59] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30),
[61] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16),
[63] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1, 0, 2),
[65] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28),
[67] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21),
[69] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3),
[71] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(22),
[74] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(4),
[77] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(22),
[80] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(50),
[83] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(53),
[86] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(54),
[89] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(17),
[92] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(10),
[95] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(18),
[98] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(49),
[101] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31),
[103] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_simple_value, 1, 0, 0),
[105] = {.entry = {.count = 2, .reusable = true}}, REDUCE(sym_simple_value, 1, 0, 0), SHIFT(36),
[108] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_simple_value, 1, 0, 0),
[110] = {.entry = {.count = 2, .reusable = true}}, REDUCE(sym_simple_value, 1, 0, 0), SHIFT(49),
[113] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 3, 0, 0),
[115] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_array, 3, 0, 0),
[117] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_statement, 1, 0, 0),
[119] = {.entry = {.count = 2, .reusable = true}}, REDUCE(sym_statement, 1, 0, 0), SHIFT(36),
[122] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_statement, 1, 0, 0),
[124] = {.entry = {.count = 2, .reusable = false}}, REDUCE(sym_statement, 1, 0, 0), SHIFT(20),
[127] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map, 2, 0, 0),
[129] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_map, 2, 0, 0),
[131] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean, 1, 0, 0),
[133] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_boolean, 1, 0, 0),
[135] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_variable_embedded_identifier, 2, 0, 0),
[137] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_variable_embedded_identifier, 2, 0, 0),
[139] = {.entry = {.count = 2, .reusable = false}}, REDUCE(sym_variable_embedded_identifier, 2, 0, 0), SHIFT(26),
[142] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map, 3, 0, 0),
[144] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_map, 3, 0, 0),
[146] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition_statement, 1, 0, 0),
[148] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_condition_statement, 1, 0, 0),
[150] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_logical_statement, 3, 0, 0),
[152] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_logical_statement, 3, 0, 0),
[154] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, 0, 4),
[156] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_assignment, 3, 0, 4),
[158] = {.entry = {.count = 2, .reusable = false}}, REDUCE(sym_assignment, 3, 0, 4), SHIFT(20),
[161] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_variable_embedded_identifier, 3, 0, 0),
[163] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_variable_embedded_identifier, 3, 0, 0),
[165] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_variable, 3, 0, 0),
[167] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_variable, 3, 0, 0),
[169] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_macro_map, 4, 0, 5),
[171] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_macro_map, 4, 0, 5),
[173] = {.entry = {.count = 2, .reusable = true}}, REDUCE(sym_map, 2, 0, 0), REDUCE(sym_array, 2, 0, 0),
[176] = {.entry = {.count = 2, .reusable = false}}, REDUCE(sym_map, 2, 0, 0), REDUCE(sym_array, 2, 0, 0),
[179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_macro_map, 5, 0, 5),
[181] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_macro_map, 5, 0, 5),
[183] = {.entry = {.count = 2, .reusable = true}}, REDUCE(sym_statement, 1, 0, 0), REDUCE(aux_sym_array_repeat1, 1, 0, 0),
[186] = {.entry = {.count = 2, .reusable = false}}, REDUCE(sym_statement, 1, 0, 0), REDUCE(aux_sym_array_repeat1, 1, 0, 0),
[189] = {.entry = {.count = 3, .reusable = false}}, REDUCE(sym_statement, 1, 0, 0), REDUCE(aux_sym_array_repeat1, 1, 0, 0), SHIFT(20),
[193] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1, 0, 1),
[195] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 1, 0, 1),
[197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3),
[199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13),
[201] = {.entry = {.count = 1, .reusable = false}}, SHIFT(11),
[203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12),
[205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44),
[207] = {.entry = {.count = 1, .reusable = false}}, SHIFT(39),
[209] = {.entry = {.count = 1, .reusable = false}}, SHIFT(40),
[211] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56),
[213] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2, 0, 0),
[215] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2, 0, 0), SHIFT_REPEAT(44),
[218] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_array_repeat1, 2, 0, 0), SHIFT_REPEAT(39),
[221] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_array_repeat1, 2, 0, 0), SHIFT_REPEAT(40),
[224] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2, 0, 0), SHIFT_REPEAT(56),
[227] = {.entry = {.count = 2, .reusable = true}}, REDUCE(sym_simple_value, 1, 0, 0), SHIFT(56),
[230] = {.entry = {.count = 2, .reusable = false}}, REDUCE(sym_variable_embedded_identifier, 2, 0, 0), SHIFT(41),
[233] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 1, 0, 0),
[235] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_array_repeat1, 1, 0, 0), SHIFT(42),
[238] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_array_repeat1, 1, 0, 0),
[240] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6),
[242] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51),
[244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47),
[246] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27),
[248] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(),
[250] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48),
[252] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36),
[254] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46),
[256] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55),
};
#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_paradox(void) {
static const TSLanguage language = {
.abi_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,
.supertype_count = SUPERTYPE_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 = (const void*)ts_lex_modes,
.lex_fn = ts_lex,
.primary_state_ids = ts_primary_state_ids,
.name = "paradox",
.max_reserved_word_set_size = 0,
.metadata = {
.major_version = 0,
.minor_version = 2,
.patch_version = 0,
},
};
return &language;
}
#ifdef __cplusplus
}
#endif