#include <tree_sitter/parser.h>

#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif

#define LANGUAGE_VERSION 14
#define STATE_COUNT 366
#define LARGE_STATE_COUNT 2
#define SYMBOL_COUNT 153
#define ALIAS_COUNT 0
#define TOKEN_COUNT 74
#define EXTERNAL_TOKEN_COUNT 0
#define FIELD_COUNT 22
#define MAX_ALIAS_SEQUENCE_LENGTH 9
#define PRODUCTION_ID_COUNT 24

enum {
  sym_identifier = 1,
  sym_line_comment = 2,
  sym_block_comment = 3,
  anon_sym_use = 4,
  anon_sym_COLON_COLON = 5,
  anon_sym_LBRACE = 6,
  anon_sym_COMMA = 7,
  anon_sym_RBRACE = 8,
  anon_sym_STAR = 9,
  anon_sym_SEMI = 10,
  anon_sym_character = 11,
  anon_sym_COLON = 12,
  anon_sym_from = 13,
  anon_sym_template = 14,
  anon_sym_strict = 15,
  anon_sym_include = 16,
  anon_sym_DOT = 17,
  sym_integer = 18,
  sym_float = 19,
  sym_string = 20,
  anon_sym_true = 21,
  anon_sym_false = 22,
  anon_sym_DOT_DOT = 23,
  sym_time = 24,
  sym_duration = 25,
  anon_sym_LBRACK = 26,
  anon_sym_RBRACK = 27,
  anon_sym_AT = 28,
  anon_sym_remove = 29,
  anon_sym_append = 30,
  aux_sym_prose_block_token1 = 31,
  sym_prose_marker = 32,
  sym_prose_content = 33,
  anon_sym_life_arc = 34,
  anon_sym_state = 35,
  anon_sym_on = 36,
  anon_sym_enter = 37,
  anon_sym_DASH_GT = 38,
  anon_sym_schedule = 39,
  anon_sym_behavior = 40,
  anon_sym_choose = 41,
  anon_sym_then = 42,
  anon_sym_if = 43,
  anon_sym_when = 44,
  anon_sym_LPAREN = 45,
  anon_sym_RPAREN = 46,
  anon_sym_repeat = 47,
  anon_sym_invert = 48,
  anon_sym_retry = 49,
  anon_sym_timeout = 50,
  anon_sym_cooldown = 51,
  anon_sym_succeed_always = 52,
  anon_sym_fail_always = 53,
  anon_sym_institution = 54,
  anon_sym_relationship = 55,
  anon_sym_as = 56,
  anon_sym_location = 57,
  anon_sym_species = 58,
  anon_sym_enum = 59,
  anon_sym_concept = 60,
  anon_sym_sub_concept = 61,
  sym_any_type = 62,
  anon_sym_concept_comparison = 63,
  anon_sym_is = 64,
  anon_sym_or = 65,
  anon_sym_and = 66,
  anon_sym_not = 67,
  anon_sym_GT = 68,
  anon_sym_GT_EQ = 69,
  anon_sym_LT = 70,
  anon_sym_LT_EQ = 71,
  anon_sym_self = 72,
  anon_sym_other = 73,
  sym_source_file = 74,
  sym_declaration = 75,
  sym_use_declaration = 76,
  sym_path = 77,
  sym_path_segments = 78,
  sym_character = 79,
  sym_template_clause = 80,
  sym_template = 81,
  sym_include = 82,
  sym_field = 83,
  sym_dotted_path = 84,
  sym_value = 85,
  sym_boolean = 86,
  sym_range = 87,
  sym_list = 88,
  sym_object = 89,
  sym_block = 90,
  sym_override = 91,
  sym_override_op = 92,
  sym_prose_block = 93,
  sym_life_arc = 94,
  sym_arc_state = 95,
  sym_on_enter = 96,
  sym_transition = 97,
  sym_schedule = 98,
  sym_schedule_block = 99,
  sym_behavior = 100,
  sym_behavior_node = 101,
  sym_selector_node = 102,
  sym_sequence_node = 103,
  sym_condition_node = 104,
  sym_if_decorator_node = 105,
  sym_decorator_node = 106,
  sym_decorator_keyword = 107,
  sym_decorator_params = 108,
  sym_action_node = 109,
  sym_action_param = 110,
  sym_subtree_node = 111,
  sym_institution = 112,
  sym_relationship = 113,
  sym_participant = 114,
  sym_location = 115,
  sym_species = 116,
  sym_enum_declaration = 117,
  sym_concept_declaration = 118,
  sym_sub_concept = 119,
  sym_sub_concept_enum_body = 120,
  sym_sub_concept_record_body = 121,
  sym_sub_concept_field = 122,
  sym_concept_comparison = 123,
  sym_variant_pattern = 124,
  sym_field_condition = 125,
  sym_condition_expr = 126,
  sym_is_condition = 127,
  sym_expression = 128,
  sym_or_expression = 129,
  sym_and_expression = 130,
  sym_not_expression = 131,
  sym_comparison = 132,
  sym_field_access = 133,
  sym_primary_expression = 134,
  aux_sym_source_file_repeat1 = 135,
  aux_sym_use_declaration_repeat1 = 136,
  aux_sym_path_segments_repeat1 = 137,
  aux_sym_template_repeat1 = 138,
  aux_sym_template_repeat2 = 139,
  aux_sym_dotted_path_repeat1 = 140,
  aux_sym_list_repeat1 = 141,
  aux_sym_override_repeat1 = 142,
  aux_sym_life_arc_repeat1 = 143,
  aux_sym_arc_state_repeat1 = 144,
  aux_sym_schedule_repeat1 = 145,
  aux_sym_selector_node_repeat1 = 146,
  aux_sym_action_node_repeat1 = 147,
  aux_sym_relationship_repeat1 = 148,
  aux_sym_sub_concept_record_body_repeat1 = 149,
  aux_sym_concept_comparison_repeat1 = 150,
  aux_sym_variant_pattern_repeat1 = 151,
  aux_sym_is_condition_repeat1 = 152,
};

static const char * const ts_symbol_names[] = {
  [ts_builtin_sym_end] = "end",
  [sym_identifier] = "identifier",
  [sym_line_comment] = "line_comment",
  [sym_block_comment] = "block_comment",
  [anon_sym_use] = "use",
  [anon_sym_COLON_COLON] = "::",
  [anon_sym_LBRACE] = "{",
  [anon_sym_COMMA] = ",",
  [anon_sym_RBRACE] = "}",
  [anon_sym_STAR] = "*",
  [anon_sym_SEMI] = ";",
  [anon_sym_character] = "character",
  [anon_sym_COLON] = ":",
  [anon_sym_from] = "from",
  [anon_sym_template] = "template",
  [anon_sym_strict] = "strict",
  [anon_sym_include] = "include",
  [anon_sym_DOT] = ".",
  [sym_integer] = "integer",
  [sym_float] = "float",
  [sym_string] = "string",
  [anon_sym_true] = "true",
  [anon_sym_false] = "false",
  [anon_sym_DOT_DOT] = "..",
  [sym_time] = "time",
  [sym_duration] = "duration",
  [anon_sym_LBRACK] = "[",
  [anon_sym_RBRACK] = "]",
  [anon_sym_AT] = "@",
  [anon_sym_remove] = "remove",
  [anon_sym_append] = "append",
  [aux_sym_prose_block_token1] = "prose_block_token1",
  [sym_prose_marker] = "prose_marker",
  [sym_prose_content] = "prose_content",
  [anon_sym_life_arc] = "life_arc",
  [anon_sym_state] = "state",
  [anon_sym_on] = "on",
  [anon_sym_enter] = "enter",
  [anon_sym_DASH_GT] = "->",
  [anon_sym_schedule] = "schedule",
  [anon_sym_behavior] = "behavior",
  [anon_sym_choose] = "choose",
  [anon_sym_then] = "then",
  [anon_sym_if] = "if",
  [anon_sym_when] = "when",
  [anon_sym_LPAREN] = "(",
  [anon_sym_RPAREN] = ")",
  [anon_sym_repeat] = "repeat",
  [anon_sym_invert] = "invert",
  [anon_sym_retry] = "retry",
  [anon_sym_timeout] = "timeout",
  [anon_sym_cooldown] = "cooldown",
  [anon_sym_succeed_always] = "succeed_always",
  [anon_sym_fail_always] = "fail_always",
  [anon_sym_institution] = "institution",
  [anon_sym_relationship] = "relationship",
  [anon_sym_as] = "as",
  [anon_sym_location] = "location",
  [anon_sym_species] = "species",
  [anon_sym_enum] = "enum",
  [anon_sym_concept] = "concept",
  [anon_sym_sub_concept] = "sub_concept",
  [sym_any_type] = "any_type",
  [anon_sym_concept_comparison] = "concept_comparison",
  [anon_sym_is] = "is",
  [anon_sym_or] = "or",
  [anon_sym_and] = "and",
  [anon_sym_not] = "not",
  [anon_sym_GT] = ">",
  [anon_sym_GT_EQ] = ">=",
  [anon_sym_LT] = "<",
  [anon_sym_LT_EQ] = "<=",
  [anon_sym_self] = "self",
  [anon_sym_other] = "other",
  [sym_source_file] = "source_file",
  [sym_declaration] = "declaration",
  [sym_use_declaration] = "use_declaration",
  [sym_path] = "path",
  [sym_path_segments] = "path_segments",
  [sym_character] = "character",
  [sym_template_clause] = "template_clause",
  [sym_template] = "template",
  [sym_include] = "include",
  [sym_field] = "field",
  [sym_dotted_path] = "dotted_path",
  [sym_value] = "value",
  [sym_boolean] = "boolean",
  [sym_range] = "range",
  [sym_list] = "list",
  [sym_object] = "object",
  [sym_block] = "block",
  [sym_override] = "override",
  [sym_override_op] = "override_op",
  [sym_prose_block] = "prose_block",
  [sym_life_arc] = "life_arc",
  [sym_arc_state] = "arc_state",
  [sym_on_enter] = "on_enter",
  [sym_transition] = "transition",
  [sym_schedule] = "schedule",
  [sym_schedule_block] = "schedule_block",
  [sym_behavior] = "behavior",
  [sym_behavior_node] = "behavior_node",
  [sym_selector_node] = "selector_node",
  [sym_sequence_node] = "sequence_node",
  [sym_condition_node] = "condition_node",
  [sym_if_decorator_node] = "if_decorator_node",
  [sym_decorator_node] = "decorator_node",
  [sym_decorator_keyword] = "decorator_keyword",
  [sym_decorator_params] = "decorator_params",
  [sym_action_node] = "action_node",
  [sym_action_param] = "action_param",
  [sym_subtree_node] = "subtree_node",
  [sym_institution] = "institution",
  [sym_relationship] = "relationship",
  [sym_participant] = "participant",
  [sym_location] = "location",
  [sym_species] = "species",
  [sym_enum_declaration] = "enum_declaration",
  [sym_concept_declaration] = "concept_declaration",
  [sym_sub_concept] = "sub_concept",
  [sym_sub_concept_enum_body] = "sub_concept_enum_body",
  [sym_sub_concept_record_body] = "sub_concept_record_body",
  [sym_sub_concept_field] = "sub_concept_field",
  [sym_concept_comparison] = "concept_comparison",
  [sym_variant_pattern] = "variant_pattern",
  [sym_field_condition] = "field_condition",
  [sym_condition_expr] = "condition_expr",
  [sym_is_condition] = "is_condition",
  [sym_expression] = "expression",
  [sym_or_expression] = "or_expression",
  [sym_and_expression] = "and_expression",
  [sym_not_expression] = "not_expression",
  [sym_comparison] = "comparison",
  [sym_field_access] = "field_access",
  [sym_primary_expression] = "primary_expression",
  [aux_sym_source_file_repeat1] = "source_file_repeat1",
  [aux_sym_use_declaration_repeat1] = "use_declaration_repeat1",
  [aux_sym_path_segments_repeat1] = "path_segments_repeat1",
  [aux_sym_template_repeat1] = "template_repeat1",
  [aux_sym_template_repeat2] = "template_repeat2",
  [aux_sym_dotted_path_repeat1] = "dotted_path_repeat1",
  [aux_sym_list_repeat1] = "list_repeat1",
  [aux_sym_override_repeat1] = "override_repeat1",
  [aux_sym_life_arc_repeat1] = "life_arc_repeat1",
  [aux_sym_arc_state_repeat1] = "arc_state_repeat1",
  [aux_sym_schedule_repeat1] = "schedule_repeat1",
  [aux_sym_selector_node_repeat1] = "selector_node_repeat1",
  [aux_sym_action_node_repeat1] = "action_node_repeat1",
  [aux_sym_relationship_repeat1] = "relationship_repeat1",
  [aux_sym_sub_concept_record_body_repeat1] = "sub_concept_record_body_repeat1",
  [aux_sym_concept_comparison_repeat1] = "concept_comparison_repeat1",
  [aux_sym_variant_pattern_repeat1] = "variant_pattern_repeat1",
  [aux_sym_is_condition_repeat1] = "is_condition_repeat1",
};

static const TSSymbol ts_symbol_map[] = {
  [ts_builtin_sym_end] = ts_builtin_sym_end,
  [sym_identifier] = sym_identifier,
  [sym_line_comment] = sym_line_comment,
  [sym_block_comment] = sym_block_comment,
  [anon_sym_use] = anon_sym_use,
  [anon_sym_COLON_COLON] = anon_sym_COLON_COLON,
  [anon_sym_LBRACE] = anon_sym_LBRACE,
  [anon_sym_COMMA] = anon_sym_COMMA,
  [anon_sym_RBRACE] = anon_sym_RBRACE,
  [anon_sym_STAR] = anon_sym_STAR,
  [anon_sym_SEMI] = anon_sym_SEMI,
  [anon_sym_character] = anon_sym_character,
  [anon_sym_COLON] = anon_sym_COLON,
  [anon_sym_from] = anon_sym_from,
  [anon_sym_template] = anon_sym_template,
  [anon_sym_strict] = anon_sym_strict,
  [anon_sym_include] = anon_sym_include,
  [anon_sym_DOT] = anon_sym_DOT,
  [sym_integer] = sym_integer,
  [sym_float] = sym_float,
  [sym_string] = sym_string,
  [anon_sym_true] = anon_sym_true,
  [anon_sym_false] = anon_sym_false,
  [anon_sym_DOT_DOT] = anon_sym_DOT_DOT,
  [sym_time] = sym_time,
  [sym_duration] = sym_duration,
  [anon_sym_LBRACK] = anon_sym_LBRACK,
  [anon_sym_RBRACK] = anon_sym_RBRACK,
  [anon_sym_AT] = anon_sym_AT,
  [anon_sym_remove] = anon_sym_remove,
  [anon_sym_append] = anon_sym_append,
  [aux_sym_prose_block_token1] = aux_sym_prose_block_token1,
  [sym_prose_marker] = sym_prose_marker,
  [sym_prose_content] = sym_prose_content,
  [anon_sym_life_arc] = anon_sym_life_arc,
  [anon_sym_state] = anon_sym_state,
  [anon_sym_on] = anon_sym_on,
  [anon_sym_enter] = anon_sym_enter,
  [anon_sym_DASH_GT] = anon_sym_DASH_GT,
  [anon_sym_schedule] = anon_sym_schedule,
  [anon_sym_behavior] = anon_sym_behavior,
  [anon_sym_choose] = anon_sym_choose,
  [anon_sym_then] = anon_sym_then,
  [anon_sym_if] = anon_sym_if,
  [anon_sym_when] = anon_sym_when,
  [anon_sym_LPAREN] = anon_sym_LPAREN,
  [anon_sym_RPAREN] = anon_sym_RPAREN,
  [anon_sym_repeat] = anon_sym_repeat,
  [anon_sym_invert] = anon_sym_invert,
  [anon_sym_retry] = anon_sym_retry,
  [anon_sym_timeout] = anon_sym_timeout,
  [anon_sym_cooldown] = anon_sym_cooldown,
  [anon_sym_succeed_always] = anon_sym_succeed_always,
  [anon_sym_fail_always] = anon_sym_fail_always,
  [anon_sym_institution] = anon_sym_institution,
  [anon_sym_relationship] = anon_sym_relationship,
  [anon_sym_as] = anon_sym_as,
  [anon_sym_location] = anon_sym_location,
  [anon_sym_species] = anon_sym_species,
  [anon_sym_enum] = anon_sym_enum,
  [anon_sym_concept] = anon_sym_concept,
  [anon_sym_sub_concept] = anon_sym_sub_concept,
  [sym_any_type] = sym_any_type,
  [anon_sym_concept_comparison] = anon_sym_concept_comparison,
  [anon_sym_is] = anon_sym_is,
  [anon_sym_or] = anon_sym_or,
  [anon_sym_and] = anon_sym_and,
  [anon_sym_not] = anon_sym_not,
  [anon_sym_GT] = anon_sym_GT,
  [anon_sym_GT_EQ] = anon_sym_GT_EQ,
  [anon_sym_LT] = anon_sym_LT,
  [anon_sym_LT_EQ] = anon_sym_LT_EQ,
  [anon_sym_self] = anon_sym_self,
  [anon_sym_other] = anon_sym_other,
  [sym_source_file] = sym_source_file,
  [sym_declaration] = sym_declaration,
  [sym_use_declaration] = sym_use_declaration,
  [sym_path] = sym_path,
  [sym_path_segments] = sym_path_segments,
  [sym_character] = sym_character,
  [sym_template_clause] = sym_template_clause,
  [sym_template] = sym_template,
  [sym_include] = sym_include,
  [sym_field] = sym_field,
  [sym_dotted_path] = sym_dotted_path,
  [sym_value] = sym_value,
  [sym_boolean] = sym_boolean,
  [sym_range] = sym_range,
  [sym_list] = sym_list,
  [sym_object] = sym_object,
  [sym_block] = sym_block,
  [sym_override] = sym_override,
  [sym_override_op] = sym_override_op,
  [sym_prose_block] = sym_prose_block,
  [sym_life_arc] = sym_life_arc,
  [sym_arc_state] = sym_arc_state,
  [sym_on_enter] = sym_on_enter,
  [sym_transition] = sym_transition,
  [sym_schedule] = sym_schedule,
  [sym_schedule_block] = sym_schedule_block,
  [sym_behavior] = sym_behavior,
  [sym_behavior_node] = sym_behavior_node,
  [sym_selector_node] = sym_selector_node,
  [sym_sequence_node] = sym_sequence_node,
  [sym_condition_node] = sym_condition_node,
  [sym_if_decorator_node] = sym_if_decorator_node,
  [sym_decorator_node] = sym_decorator_node,
  [sym_decorator_keyword] = sym_decorator_keyword,
  [sym_decorator_params] = sym_decorator_params,
  [sym_action_node] = sym_action_node,
  [sym_action_param] = sym_action_param,
  [sym_subtree_node] = sym_subtree_node,
  [sym_institution] = sym_institution,
  [sym_relationship] = sym_relationship,
  [sym_participant] = sym_participant,
  [sym_location] = sym_location,
  [sym_species] = sym_species,
  [sym_enum_declaration] = sym_enum_declaration,
  [sym_concept_declaration] = sym_concept_declaration,
  [sym_sub_concept] = sym_sub_concept,
  [sym_sub_concept_enum_body] = sym_sub_concept_enum_body,
  [sym_sub_concept_record_body] = sym_sub_concept_record_body,
  [sym_sub_concept_field] = sym_sub_concept_field,
  [sym_concept_comparison] = sym_concept_comparison,
  [sym_variant_pattern] = sym_variant_pattern,
  [sym_field_condition] = sym_field_condition,
  [sym_condition_expr] = sym_condition_expr,
  [sym_is_condition] = sym_is_condition,
  [sym_expression] = sym_expression,
  [sym_or_expression] = sym_or_expression,
  [sym_and_expression] = sym_and_expression,
  [sym_not_expression] = sym_not_expression,
  [sym_comparison] = sym_comparison,
  [sym_field_access] = sym_field_access,
  [sym_primary_expression] = sym_primary_expression,
  [aux_sym_source_file_repeat1] = aux_sym_source_file_repeat1,
  [aux_sym_use_declaration_repeat1] = aux_sym_use_declaration_repeat1,
  [aux_sym_path_segments_repeat1] = aux_sym_path_segments_repeat1,
  [aux_sym_template_repeat1] = aux_sym_template_repeat1,
  [aux_sym_template_repeat2] = aux_sym_template_repeat2,
  [aux_sym_dotted_path_repeat1] = aux_sym_dotted_path_repeat1,
  [aux_sym_list_repeat1] = aux_sym_list_repeat1,
  [aux_sym_override_repeat1] = aux_sym_override_repeat1,
  [aux_sym_life_arc_repeat1] = aux_sym_life_arc_repeat1,
  [aux_sym_arc_state_repeat1] = aux_sym_arc_state_repeat1,
  [aux_sym_schedule_repeat1] = aux_sym_schedule_repeat1,
  [aux_sym_selector_node_repeat1] = aux_sym_selector_node_repeat1,
  [aux_sym_action_node_repeat1] = aux_sym_action_node_repeat1,
  [aux_sym_relationship_repeat1] = aux_sym_relationship_repeat1,
  [aux_sym_sub_concept_record_body_repeat1] = aux_sym_sub_concept_record_body_repeat1,
  [aux_sym_concept_comparison_repeat1] = aux_sym_concept_comparison_repeat1,
  [aux_sym_variant_pattern_repeat1] = aux_sym_variant_pattern_repeat1,
  [aux_sym_is_condition_repeat1] = aux_sym_is_condition_repeat1,
};

static const TSSymbolMetadata ts_symbol_metadata[] = {
  [ts_builtin_sym_end] = {
    .visible = false,
    .named = true,
  },
  [sym_identifier] = {
    .visible = true,
    .named = true,
  },
  [sym_line_comment] = {
    .visible = true,
    .named = true,
  },
  [sym_block_comment] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_use] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COLON_COLON] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LBRACE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COMMA] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RBRACE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_STAR] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_SEMI] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_character] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COLON] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_from] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_template] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_strict] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_include] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DOT] = {
    .visible = true,
    .named = false,
  },
  [sym_integer] = {
    .visible = true,
    .named = true,
  },
  [sym_float] = {
    .visible = true,
    .named = true,
  },
  [sym_string] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_true] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_false] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DOT_DOT] = {
    .visible = true,
    .named = false,
  },
  [sym_time] = {
    .visible = true,
    .named = true,
  },
  [sym_duration] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_LBRACK] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RBRACK] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_AT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_remove] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_append] = {
    .visible = true,
    .named = false,
  },
  [aux_sym_prose_block_token1] = {
    .visible = false,
    .named = false,
  },
  [sym_prose_marker] = {
    .visible = true,
    .named = true,
  },
  [sym_prose_content] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_life_arc] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_state] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_on] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_enter] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DASH_GT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_schedule] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_behavior] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_choose] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_then] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_if] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_when] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LPAREN] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RPAREN] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_repeat] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_invert] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_retry] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_timeout] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_cooldown] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_succeed_always] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_fail_always] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_institution] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_relationship] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_as] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_location] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_species] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_enum] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_concept] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_sub_concept] = {
    .visible = true,
    .named = false,
  },
  [sym_any_type] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_concept_comparison] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_is] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_or] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_and] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_not] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_GT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_GT_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LT_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_self] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_other] = {
    .visible = true,
    .named = false,
  },
  [sym_source_file] = {
    .visible = true,
    .named = true,
  },
  [sym_declaration] = {
    .visible = true,
    .named = true,
  },
  [sym_use_declaration] = {
    .visible = true,
    .named = true,
  },
  [sym_path] = {
    .visible = true,
    .named = true,
  },
  [sym_path_segments] = {
    .visible = true,
    .named = true,
  },
  [sym_character] = {
    .visible = true,
    .named = true,
  },
  [sym_template_clause] = {
    .visible = true,
    .named = true,
  },
  [sym_template] = {
    .visible = true,
    .named = true,
  },
  [sym_include] = {
    .visible = true,
    .named = true,
  },
  [sym_field] = {
    .visible = true,
    .named = true,
  },
  [sym_dotted_path] = {
    .visible = true,
    .named = true,
  },
  [sym_value] = {
    .visible = true,
    .named = true,
  },
  [sym_boolean] = {
    .visible = true,
    .named = true,
  },
  [sym_range] = {
    .visible = true,
    .named = true,
  },
  [sym_list] = {
    .visible = true,
    .named = true,
  },
  [sym_object] = {
    .visible = true,
    .named = true,
  },
  [sym_block] = {
    .visible = true,
    .named = true,
  },
  [sym_override] = {
    .visible = true,
    .named = true,
  },
  [sym_override_op] = {
    .visible = true,
    .named = true,
  },
  [sym_prose_block] = {
    .visible = true,
    .named = true,
  },
  [sym_life_arc] = {
    .visible = true,
    .named = true,
  },
  [sym_arc_state] = {
    .visible = true,
    .named = true,
  },
  [sym_on_enter] = {
    .visible = true,
    .named = true,
  },
  [sym_transition] = {
    .visible = true,
    .named = true,
  },
  [sym_schedule] = {
    .visible = true,
    .named = true,
  },
  [sym_schedule_block] = {
    .visible = true,
    .named = true,
  },
  [sym_behavior] = {
    .visible = true,
    .named = true,
  },
  [sym_behavior_node] = {
    .visible = true,
    .named = true,
  },
  [sym_selector_node] = {
    .visible = true,
    .named = true,
  },
  [sym_sequence_node] = {
    .visible = true,
    .named = true,
  },
  [sym_condition_node] = {
    .visible = true,
    .named = true,
  },
  [sym_if_decorator_node] = {
    .visible = true,
    .named = true,
  },
  [sym_decorator_node] = {
    .visible = true,
    .named = true,
  },
  [sym_decorator_keyword] = {
    .visible = true,
    .named = true,
  },
  [sym_decorator_params] = {
    .visible = true,
    .named = true,
  },
  [sym_action_node] = {
    .visible = true,
    .named = true,
  },
  [sym_action_param] = {
    .visible = true,
    .named = true,
  },
  [sym_subtree_node] = {
    .visible = true,
    .named = true,
  },
  [sym_institution] = {
    .visible = true,
    .named = true,
  },
  [sym_relationship] = {
    .visible = true,
    .named = true,
  },
  [sym_participant] = {
    .visible = true,
    .named = true,
  },
  [sym_location] = {
    .visible = true,
    .named = true,
  },
  [sym_species] = {
    .visible = true,
    .named = true,
  },
  [sym_enum_declaration] = {
    .visible = true,
    .named = true,
  },
  [sym_concept_declaration] = {
    .visible = true,
    .named = true,
  },
  [sym_sub_concept] = {
    .visible = true,
    .named = true,
  },
  [sym_sub_concept_enum_body] = {
    .visible = true,
    .named = true,
  },
  [sym_sub_concept_record_body] = {
    .visible = true,
    .named = true,
  },
  [sym_sub_concept_field] = {
    .visible = true,
    .named = true,
  },
  [sym_concept_comparison] = {
    .visible = true,
    .named = true,
  },
  [sym_variant_pattern] = {
    .visible = true,
    .named = true,
  },
  [sym_field_condition] = {
    .visible = true,
    .named = true,
  },
  [sym_condition_expr] = {
    .visible = true,
    .named = true,
  },
  [sym_is_condition] = {
    .visible = true,
    .named = true,
  },
  [sym_expression] = {
    .visible = true,
    .named = true,
  },
  [sym_or_expression] = {
    .visible = true,
    .named = true,
  },
  [sym_and_expression] = {
    .visible = true,
    .named = true,
  },
  [sym_not_expression] = {
    .visible = true,
    .named = true,
  },
  [sym_comparison] = {
    .visible = true,
    .named = true,
  },
  [sym_field_access] = {
    .visible = true,
    .named = true,
  },
  [sym_primary_expression] = {
    .visible = true,
    .named = true,
  },
  [aux_sym_source_file_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_use_declaration_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_path_segments_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_template_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_template_repeat2] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_dotted_path_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_list_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_override_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_life_arc_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_arc_state_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_schedule_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_selector_node_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_action_node_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_relationship_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_sub_concept_record_body_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_concept_comparison_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_variant_pattern_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_is_condition_repeat1] = {
    .visible = false,
    .named = false,
  },
};

enum {
  field_activity = 1,
  field_body = 2,
  field_child = 3,
  field_condition = 4,
  field_content = 5,
  field_decorator = 6,
  field_end = 7,
  field_label = 8,
  field_marker = 9,
  field_name = 10,
  field_operator = 11,
  field_params = 12,
  field_parent = 13,
  field_root = 14,
  field_species = 15,
  field_start = 16,
  field_sub_concept = 17,
  field_tag = 18,
  field_target = 19,
  field_template = 20,
  field_type = 21,
  field_value = 22,
};

static const char * const ts_field_names[] = {
  [0] = NULL,
  [field_activity] = "activity",
  [field_body] = "body",
  [field_child] = "child",
  [field_condition] = "condition",
  [field_content] = "content",
  [field_decorator] = "decorator",
  [field_end] = "end",
  [field_label] = "label",
  [field_marker] = "marker",
  [field_name] = "name",
  [field_operator] = "operator",
  [field_params] = "params",
  [field_parent] = "parent",
  [field_root] = "root",
  [field_species] = "species",
  [field_start] = "start",
  [field_sub_concept] = "sub_concept",
  [field_tag] = "tag",
  [field_target] = "target",
  [field_template] = "template",
  [field_type] = "type",
  [field_value] = "value",
};

static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = {
  [1] = {.index = 0, .length = 2},
  [2] = {.index = 2, .length = 1},
  [3] = {.index = 3, .length = 3},
  [4] = {.index = 6, .length = 3},
  [5] = {.index = 9, .length = 2},
  [6] = {.index = 11, .length = 2},
  [7] = {.index = 13, .length = 4},
  [8] = {.index = 17, .length = 2},
  [9] = {.index = 19, .length = 2},
  [10] = {.index = 21, .length = 4},
  [11] = {.index = 25, .length = 1},
  [12] = {.index = 26, .length = 2},
  [13] = {.index = 28, .length = 3},
  [14] = {.index = 31, .length = 4},
  [15] = {.index = 35, .length = 1},
  [16] = {.index = 36, .length = 1},
  [17] = {.index = 37, .length = 3},
  [18] = {.index = 40, .length = 2},
  [19] = {.index = 42, .length = 1},
  [20] = {.index = 43, .length = 3},
  [21] = {.index = 46, .length = 2},
  [22] = {.index = 48, .length = 2},
  [23] = {.index = 50, .length = 2},
};

static const TSFieldMapEntry ts_field_map_entries[] = {
  [0] =
    {field_body, 2},
    {field_name, 1},
  [2] =
    {field_name, 1},
  [3] =
    {field_body, 3},
    {field_name, 1},
    {field_template, 2},
  [6] =
    {field_body, 4},
    {field_name, 1},
    {field_species, 3},
  [9] =
    {field_name, 1},
    {field_root, 3},
  [11] =
    {field_name, 0},
    {field_value, 2},
  [13] =
    {field_body, 5},
    {field_name, 1},
    {field_species, 3},
    {field_template, 4},
  [17] =
    {field_name, 1},
    {field_species, 3},
  [19] =
    {field_name, 1},
    {field_root, 4},
  [21] =
    {field_content, 2},
    {field_end, 3},
    {field_marker, 0},
    {field_tag, 1},
  [25] =
    {field_condition, 2},
  [26] =
    {field_child, 2},
    {field_decorator, 0},
  [28] =
    {field_body, 5},
    {field_name, 3},
    {field_parent, 1},
  [31] =
    {field_content, 3},
    {field_end, 4},
    {field_marker, 0},
    {field_tag, 1},
  [35] =
    {field_label, 1},
  [36] =
    {field_operator, 1},
  [37] =
    {field_child, 3},
    {field_decorator, 0},
    {field_params, 1},
  [40] =
    {field_name, 0},
    {field_type, 2},
  [42] =
    {field_name, 0},
  [43] =
    {field_activity, 4},
    {field_end, 2},
    {field_start, 0},
  [46] =
    {field_condition, 2},
    {field_sub_concept, 0},
  [48] =
    {field_condition, 1},
    {field_target, 3},
  [50] =
    {field_child, 5},
    {field_condition, 2},
};

static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH] = {
  [0] = {0},
};

static const uint16_t ts_non_terminal_alias_map[] = {
  0,
};

static const TSStateId ts_primary_state_ids[STATE_COUNT] = {
  [0] = 0,
  [1] = 1,
  [2] = 2,
  [3] = 3,
  [4] = 4,
  [5] = 5,
  [6] = 6,
  [7] = 7,
  [8] = 8,
  [9] = 9,
  [10] = 10,
  [11] = 11,
  [12] = 12,
  [13] = 13,
  [14] = 14,
  [15] = 15,
  [16] = 16,
  [17] = 17,
  [18] = 18,
  [19] = 19,
  [20] = 20,
  [21] = 21,
  [22] = 22,
  [23] = 23,
  [24] = 24,
  [25] = 25,
  [26] = 26,
  [27] = 27,
  [28] = 28,
  [29] = 29,
  [30] = 30,
  [31] = 31,
  [32] = 32,
  [33] = 33,
  [34] = 34,
  [35] = 35,
  [36] = 36,
  [37] = 37,
  [38] = 38,
  [39] = 39,
  [40] = 40,
  [41] = 41,
  [42] = 42,
  [43] = 43,
  [44] = 44,
  [45] = 45,
  [46] = 46,
  [47] = 47,
  [48] = 48,
  [49] = 49,
  [50] = 50,
  [51] = 51,
  [52] = 52,
  [53] = 53,
  [54] = 54,
  [55] = 55,
  [56] = 56,
  [57] = 57,
  [58] = 58,
  [59] = 59,
  [60] = 60,
  [61] = 61,
  [62] = 62,
  [63] = 63,
  [64] = 64,
  [65] = 65,
  [66] = 66,
  [67] = 67,
  [68] = 68,
  [69] = 69,
  [70] = 70,
  [71] = 71,
  [72] = 72,
  [73] = 73,
  [74] = 74,
  [75] = 75,
  [76] = 76,
  [77] = 77,
  [78] = 78,
  [79] = 79,
  [80] = 80,
  [81] = 81,
  [82] = 82,
  [83] = 83,
  [84] = 84,
  [85] = 85,
  [86] = 86,
  [87] = 87,
  [88] = 88,
  [89] = 89,
  [90] = 90,
  [91] = 91,
  [92] = 92,
  [93] = 93,
  [94] = 94,
  [95] = 95,
  [96] = 96,
  [97] = 97,
  [98] = 98,
  [99] = 99,
  [100] = 100,
  [101] = 101,
  [102] = 102,
  [103] = 103,
  [104] = 104,
  [105] = 105,
  [106] = 106,
  [107] = 107,
  [108] = 108,
  [109] = 109,
  [110] = 110,
  [111] = 111,
  [112] = 112,
  [113] = 113,
  [114] = 114,
  [115] = 115,
  [116] = 116,
  [117] = 117,
  [118] = 118,
  [119] = 119,
  [120] = 120,
  [121] = 121,
  [122] = 122,
  [123] = 123,
  [124] = 124,
  [125] = 125,
  [126] = 126,
  [127] = 127,
  [128] = 128,
  [129] = 129,
  [130] = 130,
  [131] = 131,
  [132] = 132,
  [133] = 133,
  [134] = 134,
  [135] = 135,
  [136] = 136,
  [137] = 137,
  [138] = 138,
  [139] = 139,
  [140] = 140,
  [141] = 141,
  [142] = 142,
  [143] = 143,
  [144] = 144,
  [145] = 145,
  [146] = 146,
  [147] = 147,
  [148] = 148,
  [149] = 149,
  [150] = 150,
  [151] = 151,
  [152] = 152,
  [153] = 153,
  [154] = 154,
  [155] = 155,
  [156] = 156,
  [157] = 157,
  [158] = 158,
  [159] = 159,
  [160] = 160,
  [161] = 161,
  [162] = 162,
  [163] = 163,
  [164] = 164,
  [165] = 165,
  [166] = 166,
  [167] = 167,
  [168] = 168,
  [169] = 169,
  [170] = 170,
  [171] = 171,
  [172] = 172,
  [173] = 173,
  [174] = 174,
  [175] = 175,
  [176] = 176,
  [177] = 177,
  [178] = 178,
  [179] = 179,
  [180] = 180,
  [181] = 181,
  [182] = 182,
  [183] = 183,
  [184] = 184,
  [185] = 185,
  [186] = 186,
  [187] = 187,
  [188] = 188,
  [189] = 189,
  [190] = 190,
  [191] = 191,
  [192] = 192,
  [193] = 193,
  [194] = 194,
  [195] = 195,
  [196] = 196,
  [197] = 197,
  [198] = 198,
  [199] = 199,
  [200] = 200,
  [201] = 201,
  [202] = 202,
  [203] = 203,
  [204] = 204,
  [205] = 205,
  [206] = 206,
  [207] = 207,
  [208] = 208,
  [209] = 5,
  [210] = 210,
  [211] = 211,
  [212] = 212,
  [213] = 213,
  [214] = 214,
  [215] = 215,
  [216] = 216,
  [217] = 217,
  [218] = 218,
  [219] = 219,
  [220] = 220,
  [221] = 221,
  [222] = 222,
  [223] = 223,
  [224] = 224,
  [225] = 225,
  [226] = 226,
  [227] = 227,
  [228] = 228,
  [229] = 229,
  [230] = 230,
  [231] = 231,
  [232] = 6,
  [233] = 233,
  [234] = 234,
  [235] = 235,
  [236] = 236,
  [237] = 237,
  [238] = 238,
  [239] = 239,
  [240] = 240,
  [241] = 241,
  [242] = 242,
  [243] = 243,
  [244] = 244,
  [245] = 245,
  [246] = 246,
  [247] = 247,
  [248] = 248,
  [249] = 249,
  [250] = 250,
  [251] = 251,
  [252] = 252,
  [253] = 253,
  [254] = 254,
  [255] = 255,
  [256] = 256,
  [257] = 257,
  [258] = 258,
  [259] = 259,
  [260] = 260,
  [261] = 261,
  [262] = 262,
  [263] = 263,
  [264] = 264,
  [265] = 265,
  [266] = 266,
  [267] = 267,
  [268] = 268,
  [269] = 269,
  [270] = 270,
  [271] = 271,
  [272] = 272,
  [273] = 273,
  [274] = 274,
  [275] = 275,
  [276] = 276,
  [277] = 277,
  [278] = 278,
  [279] = 279,
  [280] = 280,
  [281] = 281,
  [282] = 282,
  [283] = 283,
  [284] = 284,
  [285] = 285,
  [286] = 286,
  [287] = 287,
  [288] = 288,
  [289] = 289,
  [290] = 290,
  [291] = 291,
  [292] = 292,
  [293] = 293,
  [294] = 294,
  [295] = 295,
  [296] = 296,
  [297] = 297,
  [298] = 298,
  [299] = 299,
  [300] = 300,
  [301] = 301,
  [302] = 302,
  [303] = 303,
  [304] = 304,
  [305] = 305,
  [306] = 306,
  [307] = 307,
  [308] = 308,
  [309] = 309,
  [310] = 310,
  [311] = 311,
  [312] = 312,
  [313] = 313,
  [314] = 314,
  [315] = 315,
  [316] = 316,
  [317] = 317,
  [318] = 318,
  [319] = 319,
  [320] = 320,
  [321] = 321,
  [322] = 322,
  [323] = 323,
  [324] = 324,
  [325] = 325,
  [326] = 326,
  [327] = 327,
  [328] = 328,
  [329] = 329,
  [330] = 330,
  [331] = 331,
  [332] = 332,
  [333] = 333,
  [334] = 334,
  [335] = 335,
  [336] = 336,
  [337] = 337,
  [338] = 338,
  [339] = 339,
  [340] = 340,
  [341] = 341,
  [342] = 342,
  [343] = 343,
  [344] = 344,
  [345] = 345,
  [346] = 346,
  [347] = 347,
  [348] = 348,
  [349] = 349,
  [350] = 350,
  [351] = 351,
  [352] = 352,
  [353] = 353,
  [354] = 354,
  [355] = 355,
  [356] = 356,
  [357] = 357,
  [358] = 358,
  [359] = 359,
  [360] = 360,
  [361] = 361,
  [362] = 362,
  [363] = 363,
  [364] = 364,
  [365] = 365,
};

static bool ts_lex(TSLexer *lexer, TSStateId state) {
  START_LEXER();
  eof = lexer->eof(lexer);
  switch (state) {
    case 0:
      if (eof) ADVANCE(25);
      if (lookahead == '"') ADVANCE(2);
      if (lookahead == '(') ADVANCE(80);
      if (lookahead == ')') ADVANCE(81);
      if (lookahead == '*') ADVANCE(37);
      if (lookahead == ',') ADVANCE(35);
      if (lookahead == '-') ADVANCE(9);
      if (lookahead == '.') ADVANCE(41);
      if (lookahead == '/') ADVANCE(4);
      if (lookahead == ':') ADVANCE(39);
      if (lookahead == ';') ADVANCE(38);
      if (lookahead == '<') ADVANCE(84);
      if (lookahead == '>') ADVANCE(82);
      if (lookahead == '@') ADVANCE(60);
      if (lookahead == '[') ADVANCE(58);
      if (lookahead == ']') ADVANCE(59);
      if (lookahead == '{') ADVANCE(34);
      if (lookahead == '}') ADVANCE(36);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(0)
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(44);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(86);
      END_STATE();
    case 1:
      if (lookahead == '"') ADVANCE(2);
      if (lookahead == '(') ADVANCE(80);
      if (lookahead == ')') ADVANCE(81);
      if (lookahead == ',') ADVANCE(35);
      if (lookahead == '-') ADVANCE(9);
      if (lookahead == '.') ADVANCE(40);
      if (lookahead == '/') ADVANCE(4);
      if (lookahead == ':') ADVANCE(39);
      if (lookahead == ';') ADVANCE(38);
      if (lookahead == '<') ADVANCE(84);
      if (lookahead == '>') ADVANCE(82);
      if (lookahead == ']') ADVANCE(59);
      if (lookahead == '{') ADVANCE(34);
      if (lookahead == '}') ADVANCE(36);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(1)
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(47);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(86);
      END_STATE();
    case 2:
      if (lookahead == '"') ADVANCE(53);
      if (lookahead == '\\') ADVANCE(23);
      if (lookahead != 0) ADVANCE(2);
      END_STATE();
    case 3:
      if (lookahead == ')') ADVANCE(81);
      if (lookahead == ',') ADVANCE(35);
      if (lookahead == '-') ADVANCE(10);
      if (lookahead == '.') ADVANCE(15);
      if (lookahead == '/') ADVANCE(4);
      if (lookahead == ']') ADVANCE(59);
      if (lookahead == '}') ADVANCE(36);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(3)
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(49);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(86);
      END_STATE();
    case 4:
      if (lookahead == '*') ADVANCE(6);
      if (lookahead == '/') ADVANCE(29);
      END_STATE();
    case 5:
      if (lookahead == '*') ADVANCE(5);
      if (lookahead == '/') ADVANCE(30);
      if (lookahead != 0) ADVANCE(6);
      END_STATE();
    case 6:
      if (lookahead == '*') ADVANCE(5);
      if (lookahead != 0) ADVANCE(6);
      END_STATE();
    case 7:
      if (lookahead == '*') ADVANCE(75);
      if (lookahead == '-') ADVANCE(6);
      if (lookahead != 0) ADVANCE(76);
      END_STATE();
    case 8:
      if (lookahead == '*') ADVANCE(75);
      if (lookahead == '-') ADVANCE(7);
      if (lookahead != 0) ADVANCE(76);
      END_STATE();
    case 9:
      if (lookahead == '-') ADVANCE(11);
      if (lookahead == '>') ADVANCE(79);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(46);
      END_STATE();
    case 10:
      if (lookahead == '-') ADVANCE(11);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(51);
      END_STATE();
    case 11:
      if (lookahead == '-') ADVANCE(73);
      END_STATE();
    case 12:
      if (lookahead == '-') ADVANCE(13);
      if (lookahead == '/') ADVANCE(74);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') ADVANCE(77);
      if (lookahead != 0) ADVANCE(78);
      END_STATE();
    case 13:
      if (lookahead == '-') ADVANCE(24);
      if (lookahead != 0) ADVANCE(78);
      END_STATE();
    case 14:
      if (lookahead == '-') ADVANCE(20);
      if (lookahead == '/') ADVANCE(4);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(14)
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(51);
      END_STATE();
    case 15:
      if (lookahead == '.') ADVANCE(54);
      END_STATE();
    case 16:
      if (lookahead == 'd' ||
          lookahead == 'h' ||
          lookahead == 'm' ||
          lookahead == 's') ADVANCE(57);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(16);
      END_STATE();
    case 17:
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(52);
      END_STATE();
    case 18:
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(56);
      END_STATE();
    case 19:
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(55);
      END_STATE();
    case 20:
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(51);
      END_STATE();
    case 21:
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(18);
      END_STATE();
    case 22:
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(19);
      END_STATE();
    case 23:
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(2);
      END_STATE();
    case 24:
      if (lookahead != 0 &&
          lookahead != '-') ADVANCE(78);
      END_STATE();
    case 25:
      ACCEPT_TOKEN(ts_builtin_sym_end);
      END_STATE();
    case 26:
      ACCEPT_TOKEN(sym_line_comment);
      if (lookahead == '-') ADVANCE(29);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(28);
      END_STATE();
    case 27:
      ACCEPT_TOKEN(sym_line_comment);
      if (lookahead == '-') ADVANCE(26);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(28);
      END_STATE();
    case 28:
      ACCEPT_TOKEN(sym_line_comment);
      if (lookahead == '-') ADVANCE(27);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(28);
      END_STATE();
    case 29:
      ACCEPT_TOKEN(sym_line_comment);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(29);
      END_STATE();
    case 30:
      ACCEPT_TOKEN(sym_block_comment);
      END_STATE();
    case 31:
      ACCEPT_TOKEN(sym_block_comment);
      if (lookahead == '-') ADVANCE(71);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(69);
      END_STATE();
    case 32:
      ACCEPT_TOKEN(sym_block_comment);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(72);
      END_STATE();
    case 33:
      ACCEPT_TOKEN(anon_sym_COLON_COLON);
      END_STATE();
    case 34:
      ACCEPT_TOKEN(anon_sym_LBRACE);
      END_STATE();
    case 35:
      ACCEPT_TOKEN(anon_sym_COMMA);
      END_STATE();
    case 36:
      ACCEPT_TOKEN(anon_sym_RBRACE);
      END_STATE();
    case 37:
      ACCEPT_TOKEN(anon_sym_STAR);
      END_STATE();
    case 38:
      ACCEPT_TOKEN(anon_sym_SEMI);
      END_STATE();
    case 39:
      ACCEPT_TOKEN(anon_sym_COLON);
      if (lookahead == ':') ADVANCE(33);
      END_STATE();
    case 40:
      ACCEPT_TOKEN(anon_sym_DOT);
      END_STATE();
    case 41:
      ACCEPT_TOKEN(anon_sym_DOT);
      if (lookahead == '.') ADVANCE(54);
      END_STATE();
    case 42:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == '.') ADVANCE(17);
      if (lookahead == ':') ADVANCE(21);
      if (lookahead == 'd' ||
          lookahead == 'h' ||
          lookahead == 'm' ||
          lookahead == 's') ADVANCE(57);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(45);
      END_STATE();
    case 43:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == '.') ADVANCE(17);
      if (lookahead == ':') ADVANCE(21);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(46);
      END_STATE();
    case 44:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == '.') ADVANCE(17);
      if (lookahead == 'd' ||
          lookahead == 'h' ||
          lookahead == 'm' ||
          lookahead == 's') ADVANCE(57);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(42);
      END_STATE();
    case 45:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == '.') ADVANCE(17);
      if (lookahead == 'd' ||
          lookahead == 'h' ||
          lookahead == 'm' ||
          lookahead == 's') ADVANCE(57);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(45);
      END_STATE();
    case 46:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == '.') ADVANCE(17);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(46);
      END_STATE();
    case 47:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == '.') ADVANCE(17);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(43);
      END_STATE();
    case 48:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == ':') ADVANCE(21);
      if (lookahead == 'd' ||
          lookahead == 'h' ||
          lookahead == 'm' ||
          lookahead == 's') ADVANCE(57);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(50);
      END_STATE();
    case 49:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == 'd' ||
          lookahead == 'h' ||
          lookahead == 'm' ||
          lookahead == 's') ADVANCE(57);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(48);
      END_STATE();
    case 50:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == 'd' ||
          lookahead == 'h' ||
          lookahead == 'm' ||
          lookahead == 's') ADVANCE(57);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(50);
      END_STATE();
    case 51:
      ACCEPT_TOKEN(sym_integer);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(51);
      END_STATE();
    case 52:
      ACCEPT_TOKEN(sym_float);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(52);
      END_STATE();
    case 53:
      ACCEPT_TOKEN(sym_string);
      END_STATE();
    case 54:
      ACCEPT_TOKEN(anon_sym_DOT_DOT);
      END_STATE();
    case 55:
      ACCEPT_TOKEN(sym_time);
      END_STATE();
    case 56:
      ACCEPT_TOKEN(sym_time);
      if (lookahead == ':') ADVANCE(22);
      END_STATE();
    case 57:
      ACCEPT_TOKEN(sym_duration);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(16);
      END_STATE();
    case 58:
      ACCEPT_TOKEN(anon_sym_LBRACK);
      END_STATE();
    case 59:
      ACCEPT_TOKEN(anon_sym_RBRACK);
      END_STATE();
    case 60:
      ACCEPT_TOKEN(anon_sym_AT);
      END_STATE();
    case 61:
      ACCEPT_TOKEN(aux_sym_prose_block_token1);
      if (lookahead == '\n') ADVANCE(6);
      if (lookahead == '*') ADVANCE(61);
      if (lookahead == '/') ADVANCE(32);
      if (lookahead != 0) ADVANCE(62);
      END_STATE();
    case 62:
      ACCEPT_TOKEN(aux_sym_prose_block_token1);
      if (lookahead == '\n') ADVANCE(6);
      if (lookahead == '*') ADVANCE(61);
      if (lookahead != 0) ADVANCE(62);
      END_STATE();
    case 63:
      ACCEPT_TOKEN(aux_sym_prose_block_token1);
      if (lookahead == '\n') ADVANCE(63);
      if (lookahead == '-') ADVANCE(71);
      if (lookahead == '/') ADVANCE(68);
      if (lookahead == '\t' ||
          lookahead == '\r' ||
          lookahead == ' ') ADVANCE(63);
      if (lookahead != 0) ADVANCE(69);
      END_STATE();
    case 64:
      ACCEPT_TOKEN(aux_sym_prose_block_token1);
      if (lookahead == '\n') ADVANCE(76);
      if (lookahead == '*') ADVANCE(66);
      if (lookahead == '-') ADVANCE(62);
      if (lookahead != 0) ADVANCE(67);
      END_STATE();
    case 65:
      ACCEPT_TOKEN(aux_sym_prose_block_token1);
      if (lookahead == '\n') ADVANCE(76);
      if (lookahead == '*') ADVANCE(66);
      if (lookahead == '-') ADVANCE(64);
      if (lookahead != 0) ADVANCE(67);
      END_STATE();
    case 66:
      ACCEPT_TOKEN(aux_sym_prose_block_token1);
      if (lookahead == '\n') ADVANCE(76);
      if (lookahead == '*') ADVANCE(66);
      if (lookahead == '-') ADVANCE(65);
      if (lookahead == '/') ADVANCE(31);
      if (lookahead != 0) ADVANCE(67);
      END_STATE();
    case 67:
      ACCEPT_TOKEN(aux_sym_prose_block_token1);
      if (lookahead == '\n') ADVANCE(76);
      if (lookahead == '*') ADVANCE(66);
      if (lookahead == '-') ADVANCE(65);
      if (lookahead != 0) ADVANCE(67);
      END_STATE();
    case 68:
      ACCEPT_TOKEN(aux_sym_prose_block_token1);
      if (lookahead == '*') ADVANCE(67);
      if (lookahead == '-') ADVANCE(71);
      if (lookahead == '/') ADVANCE(28);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(69);
      END_STATE();
    case 69:
      ACCEPT_TOKEN(aux_sym_prose_block_token1);
      if (lookahead == '-') ADVANCE(71);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(69);
      END_STATE();
    case 70:
      ACCEPT_TOKEN(aux_sym_prose_block_token1);
      if (lookahead == '-') ADVANCE(72);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(69);
      END_STATE();
    case 71:
      ACCEPT_TOKEN(aux_sym_prose_block_token1);
      if (lookahead == '-') ADVANCE(70);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(69);
      END_STATE();
    case 72:
      ACCEPT_TOKEN(aux_sym_prose_block_token1);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(72);
      END_STATE();
    case 73:
      ACCEPT_TOKEN(sym_prose_marker);
      END_STATE();
    case 74:
      ACCEPT_TOKEN(sym_prose_content);
      if (lookahead == '*') ADVANCE(76);
      if (lookahead == '-') ADVANCE(13);
      if (lookahead == '/') ADVANCE(28);
      if (lookahead != 0) ADVANCE(78);
      END_STATE();
    case 75:
      ACCEPT_TOKEN(sym_prose_content);
      if (lookahead == '*') ADVANCE(75);
      if (lookahead == '-') ADVANCE(8);
      if (lookahead == '/') ADVANCE(30);
      if (lookahead != 0) ADVANCE(76);
      END_STATE();
    case 76:
      ACCEPT_TOKEN(sym_prose_content);
      if (lookahead == '*') ADVANCE(75);
      if (lookahead == '-') ADVANCE(8);
      if (lookahead != 0) ADVANCE(76);
      END_STATE();
    case 77:
      ACCEPT_TOKEN(sym_prose_content);
      if (lookahead == '-') ADVANCE(13);
      if (lookahead == '/') ADVANCE(74);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') ADVANCE(77);
      if (lookahead != 0) ADVANCE(78);
      END_STATE();
    case 78:
      ACCEPT_TOKEN(sym_prose_content);
      if (lookahead == '-') ADVANCE(13);
      if (lookahead != 0) ADVANCE(78);
      END_STATE();
    case 79:
      ACCEPT_TOKEN(anon_sym_DASH_GT);
      END_STATE();
    case 80:
      ACCEPT_TOKEN(anon_sym_LPAREN);
      END_STATE();
    case 81:
      ACCEPT_TOKEN(anon_sym_RPAREN);
      END_STATE();
    case 82:
      ACCEPT_TOKEN(anon_sym_GT);
      if (lookahead == '=') ADVANCE(83);
      END_STATE();
    case 83:
      ACCEPT_TOKEN(anon_sym_GT_EQ);
      END_STATE();
    case 84:
      ACCEPT_TOKEN(anon_sym_LT);
      if (lookahead == '=') ADVANCE(85);
      END_STATE();
    case 85:
      ACCEPT_TOKEN(anon_sym_LT_EQ);
      END_STATE();
    case 86:
      ACCEPT_TOKEN(sym_identifier);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(86);
      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 == 'a') ADVANCE(1);
      if (lookahead == 'b') ADVANCE(2);
      if (lookahead == 'c') ADVANCE(3);
      if (lookahead == 'e') ADVANCE(4);
      if (lookahead == 'f') ADVANCE(5);
      if (lookahead == 'i') ADVANCE(6);
      if (lookahead == 'l') ADVANCE(7);
      if (lookahead == 'n') ADVANCE(8);
      if (lookahead == 'o') ADVANCE(9);
      if (lookahead == 'r') ADVANCE(10);
      if (lookahead == 's') ADVANCE(11);
      if (lookahead == 't') ADVANCE(12);
      if (lookahead == 'u') ADVANCE(13);
      if (lookahead == 'w') ADVANCE(14);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(0)
      END_STATE();
    case 1:
      if (lookahead == 'n') ADVANCE(15);
      if (lookahead == 'p') ADVANCE(16);
      if (lookahead == 's') ADVANCE(17);
      END_STATE();
    case 2:
      if (lookahead == 'e') ADVANCE(18);
      END_STATE();
    case 3:
      if (lookahead == 'h') ADVANCE(19);
      if (lookahead == 'o') ADVANCE(20);
      END_STATE();
    case 4:
      if (lookahead == 'n') ADVANCE(21);
      END_STATE();
    case 5:
      if (lookahead == 'a') ADVANCE(22);
      if (lookahead == 'r') ADVANCE(23);
      END_STATE();
    case 6:
      if (lookahead == 'f') ADVANCE(24);
      if (lookahead == 'n') ADVANCE(25);
      if (lookahead == 's') ADVANCE(26);
      END_STATE();
    case 7:
      if (lookahead == 'i') ADVANCE(27);
      if (lookahead == 'o') ADVANCE(28);
      END_STATE();
    case 8:
      if (lookahead == 'o') ADVANCE(29);
      END_STATE();
    case 9:
      if (lookahead == 'n') ADVANCE(30);
      if (lookahead == 'r') ADVANCE(31);
      if (lookahead == 't') ADVANCE(32);
      END_STATE();
    case 10:
      if (lookahead == 'e') ADVANCE(33);
      END_STATE();
    case 11:
      if (lookahead == 'c') ADVANCE(34);
      if (lookahead == 'e') ADVANCE(35);
      if (lookahead == 'p') ADVANCE(36);
      if (lookahead == 't') ADVANCE(37);
      if (lookahead == 'u') ADVANCE(38);
      END_STATE();
    case 12:
      if (lookahead == 'e') ADVANCE(39);
      if (lookahead == 'h') ADVANCE(40);
      if (lookahead == 'i') ADVANCE(41);
      if (lookahead == 'r') ADVANCE(42);
      END_STATE();
    case 13:
      if (lookahead == 's') ADVANCE(43);
      END_STATE();
    case 14:
      if (lookahead == 'h') ADVANCE(44);
      END_STATE();
    case 15:
      if (lookahead == 'd') ADVANCE(45);
      if (lookahead == 'y') ADVANCE(46);
      END_STATE();
    case 16:
      if (lookahead == 'p') ADVANCE(47);
      END_STATE();
    case 17:
      ACCEPT_TOKEN(anon_sym_as);
      END_STATE();
    case 18:
      if (lookahead == 'h') ADVANCE(48);
      END_STATE();
    case 19:
      if (lookahead == 'a') ADVANCE(49);
      if (lookahead == 'o') ADVANCE(50);
      END_STATE();
    case 20:
      if (lookahead == 'n') ADVANCE(51);
      if (lookahead == 'o') ADVANCE(52);
      END_STATE();
    case 21:
      if (lookahead == 't') ADVANCE(53);
      if (lookahead == 'u') ADVANCE(54);
      END_STATE();
    case 22:
      if (lookahead == 'i') ADVANCE(55);
      if (lookahead == 'l') ADVANCE(56);
      END_STATE();
    case 23:
      if (lookahead == 'o') ADVANCE(57);
      END_STATE();
    case 24:
      ACCEPT_TOKEN(anon_sym_if);
      END_STATE();
    case 25:
      if (lookahead == 'c') ADVANCE(58);
      if (lookahead == 's') ADVANCE(59);
      if (lookahead == 'v') ADVANCE(60);
      END_STATE();
    case 26:
      ACCEPT_TOKEN(anon_sym_is);
      END_STATE();
    case 27:
      if (lookahead == 'f') ADVANCE(61);
      END_STATE();
    case 28:
      if (lookahead == 'c') ADVANCE(62);
      END_STATE();
    case 29:
      if (lookahead == 't') ADVANCE(63);
      END_STATE();
    case 30:
      ACCEPT_TOKEN(anon_sym_on);
      END_STATE();
    case 31:
      ACCEPT_TOKEN(anon_sym_or);
      END_STATE();
    case 32:
      if (lookahead == 'h') ADVANCE(64);
      END_STATE();
    case 33:
      if (lookahead == 'l') ADVANCE(65);
      if (lookahead == 'm') ADVANCE(66);
      if (lookahead == 'p') ADVANCE(67);
      if (lookahead == 't') ADVANCE(68);
      END_STATE();
    case 34:
      if (lookahead == 'h') ADVANCE(69);
      END_STATE();
    case 35:
      if (lookahead == 'l') ADVANCE(70);
      END_STATE();
    case 36:
      if (lookahead == 'e') ADVANCE(71);
      END_STATE();
    case 37:
      if (lookahead == 'a') ADVANCE(72);
      if (lookahead == 'r') ADVANCE(73);
      END_STATE();
    case 38:
      if (lookahead == 'b') ADVANCE(74);
      if (lookahead == 'c') ADVANCE(75);
      END_STATE();
    case 39:
      if (lookahead == 'm') ADVANCE(76);
      END_STATE();
    case 40:
      if (lookahead == 'e') ADVANCE(77);
      END_STATE();
    case 41:
      if (lookahead == 'm') ADVANCE(78);
      END_STATE();
    case 42:
      if (lookahead == 'u') ADVANCE(79);
      END_STATE();
    case 43:
      if (lookahead == 'e') ADVANCE(80);
      END_STATE();
    case 44:
      if (lookahead == 'e') ADVANCE(81);
      END_STATE();
    case 45:
      ACCEPT_TOKEN(anon_sym_and);
      END_STATE();
    case 46:
      ACCEPT_TOKEN(sym_any_type);
      END_STATE();
    case 47:
      if (lookahead == 'e') ADVANCE(82);
      END_STATE();
    case 48:
      if (lookahead == 'a') ADVANCE(83);
      END_STATE();
    case 49:
      if (lookahead == 'r') ADVANCE(84);
      END_STATE();
    case 50:
      if (lookahead == 'o') ADVANCE(85);
      END_STATE();
    case 51:
      if (lookahead == 'c') ADVANCE(86);
      END_STATE();
    case 52:
      if (lookahead == 'l') ADVANCE(87);
      END_STATE();
    case 53:
      if (lookahead == 'e') ADVANCE(88);
      END_STATE();
    case 54:
      if (lookahead == 'm') ADVANCE(89);
      END_STATE();
    case 55:
      if (lookahead == 'l') ADVANCE(90);
      END_STATE();
    case 56:
      if (lookahead == 's') ADVANCE(91);
      END_STATE();
    case 57:
      if (lookahead == 'm') ADVANCE(92);
      END_STATE();
    case 58:
      if (lookahead == 'l') ADVANCE(93);
      END_STATE();
    case 59:
      if (lookahead == 't') ADVANCE(94);
      END_STATE();
    case 60:
      if (lookahead == 'e') ADVANCE(95);
      END_STATE();
    case 61:
      if (lookahead == 'e') ADVANCE(96);
      END_STATE();
    case 62:
      if (lookahead == 'a') ADVANCE(97);
      END_STATE();
    case 63:
      ACCEPT_TOKEN(anon_sym_not);
      END_STATE();
    case 64:
      if (lookahead == 'e') ADVANCE(98);
      END_STATE();
    case 65:
      if (lookahead == 'a') ADVANCE(99);
      END_STATE();
    case 66:
      if (lookahead == 'o') ADVANCE(100);
      END_STATE();
    case 67:
      if (lookahead == 'e') ADVANCE(101);
      END_STATE();
    case 68:
      if (lookahead == 'r') ADVANCE(102);
      END_STATE();
    case 69:
      if (lookahead == 'e') ADVANCE(103);
      END_STATE();
    case 70:
      if (lookahead == 'f') ADVANCE(104);
      END_STATE();
    case 71:
      if (lookahead == 'c') ADVANCE(105);
      END_STATE();
    case 72:
      if (lookahead == 't') ADVANCE(106);
      END_STATE();
    case 73:
      if (lookahead == 'i') ADVANCE(107);
      END_STATE();
    case 74:
      if (lookahead == '_') ADVANCE(108);
      END_STATE();
    case 75:
      if (lookahead == 'c') ADVANCE(109);
      END_STATE();
    case 76:
      if (lookahead == 'p') ADVANCE(110);
      END_STATE();
    case 77:
      if (lookahead == 'n') ADVANCE(111);
      END_STATE();
    case 78:
      if (lookahead == 'e') ADVANCE(112);
      END_STATE();
    case 79:
      if (lookahead == 'e') ADVANCE(113);
      END_STATE();
    case 80:
      ACCEPT_TOKEN(anon_sym_use);
      END_STATE();
    case 81:
      if (lookahead == 'n') ADVANCE(114);
      END_STATE();
    case 82:
      if (lookahead == 'n') ADVANCE(115);
      END_STATE();
    case 83:
      if (lookahead == 'v') ADVANCE(116);
      END_STATE();
    case 84:
      if (lookahead == 'a') ADVANCE(117);
      END_STATE();
    case 85:
      if (lookahead == 's') ADVANCE(118);
      END_STATE();
    case 86:
      if (lookahead == 'e') ADVANCE(119);
      END_STATE();
    case 87:
      if (lookahead == 'd') ADVANCE(120);
      END_STATE();
    case 88:
      if (lookahead == 'r') ADVANCE(121);
      END_STATE();
    case 89:
      ACCEPT_TOKEN(anon_sym_enum);
      END_STATE();
    case 90:
      if (lookahead == '_') ADVANCE(122);
      END_STATE();
    case 91:
      if (lookahead == 'e') ADVANCE(123);
      END_STATE();
    case 92:
      ACCEPT_TOKEN(anon_sym_from);
      END_STATE();
    case 93:
      if (lookahead == 'u') ADVANCE(124);
      END_STATE();
    case 94:
      if (lookahead == 'i') ADVANCE(125);
      END_STATE();
    case 95:
      if (lookahead == 'r') ADVANCE(126);
      END_STATE();
    case 96:
      if (lookahead == '_') ADVANCE(127);
      END_STATE();
    case 97:
      if (lookahead == 't') ADVANCE(128);
      END_STATE();
    case 98:
      if (lookahead == 'r') ADVANCE(129);
      END_STATE();
    case 99:
      if (lookahead == 't') ADVANCE(130);
      END_STATE();
    case 100:
      if (lookahead == 'v') ADVANCE(131);
      END_STATE();
    case 101:
      if (lookahead == 'a') ADVANCE(132);
      END_STATE();
    case 102:
      if (lookahead == 'y') ADVANCE(133);
      END_STATE();
    case 103:
      if (lookahead == 'd') ADVANCE(134);
      END_STATE();
    case 104:
      ACCEPT_TOKEN(anon_sym_self);
      END_STATE();
    case 105:
      if (lookahead == 'i') ADVANCE(135);
      END_STATE();
    case 106:
      if (lookahead == 'e') ADVANCE(136);
      END_STATE();
    case 107:
      if (lookahead == 'c') ADVANCE(137);
      END_STATE();
    case 108:
      if (lookahead == 'c') ADVANCE(138);
      END_STATE();
    case 109:
      if (lookahead == 'e') ADVANCE(139);
      END_STATE();
    case 110:
      if (lookahead == 'l') ADVANCE(140);
      END_STATE();
    case 111:
      ACCEPT_TOKEN(anon_sym_then);
      END_STATE();
    case 112:
      if (lookahead == 'o') ADVANCE(141);
      END_STATE();
    case 113:
      ACCEPT_TOKEN(anon_sym_true);
      END_STATE();
    case 114:
      ACCEPT_TOKEN(anon_sym_when);
      END_STATE();
    case 115:
      if (lookahead == 'd') ADVANCE(142);
      END_STATE();
    case 116:
      if (lookahead == 'i') ADVANCE(143);
      END_STATE();
    case 117:
      if (lookahead == 'c') ADVANCE(144);
      END_STATE();
    case 118:
      if (lookahead == 'e') ADVANCE(145);
      END_STATE();
    case 119:
      if (lookahead == 'p') ADVANCE(146);
      END_STATE();
    case 120:
      if (lookahead == 'o') ADVANCE(147);
      END_STATE();
    case 121:
      ACCEPT_TOKEN(anon_sym_enter);
      END_STATE();
    case 122:
      if (lookahead == 'a') ADVANCE(148);
      END_STATE();
    case 123:
      ACCEPT_TOKEN(anon_sym_false);
      END_STATE();
    case 124:
      if (lookahead == 'd') ADVANCE(149);
      END_STATE();
    case 125:
      if (lookahead == 't') ADVANCE(150);
      END_STATE();
    case 126:
      if (lookahead == 't') ADVANCE(151);
      END_STATE();
    case 127:
      if (lookahead == 'a') ADVANCE(152);
      END_STATE();
    case 128:
      if (lookahead == 'i') ADVANCE(153);
      END_STATE();
    case 129:
      ACCEPT_TOKEN(anon_sym_other);
      END_STATE();
    case 130:
      if (lookahead == 'i') ADVANCE(154);
      END_STATE();
    case 131:
      if (lookahead == 'e') ADVANCE(155);
      END_STATE();
    case 132:
      if (lookahead == 't') ADVANCE(156);
      END_STATE();
    case 133:
      ACCEPT_TOKEN(anon_sym_retry);
      END_STATE();
    case 134:
      if (lookahead == 'u') ADVANCE(157);
      END_STATE();
    case 135:
      if (lookahead == 'e') ADVANCE(158);
      END_STATE();
    case 136:
      ACCEPT_TOKEN(anon_sym_state);
      END_STATE();
    case 137:
      if (lookahead == 't') ADVANCE(159);
      END_STATE();
    case 138:
      if (lookahead == 'o') ADVANCE(160);
      END_STATE();
    case 139:
      if (lookahead == 'e') ADVANCE(161);
      END_STATE();
    case 140:
      if (lookahead == 'a') ADVANCE(162);
      END_STATE();
    case 141:
      if (lookahead == 'u') ADVANCE(163);
      END_STATE();
    case 142:
      ACCEPT_TOKEN(anon_sym_append);
      END_STATE();
    case 143:
      if (lookahead == 'o') ADVANCE(164);
      END_STATE();
    case 144:
      if (lookahead == 't') ADVANCE(165);
      END_STATE();
    case 145:
      ACCEPT_TOKEN(anon_sym_choose);
      END_STATE();
    case 146:
      if (lookahead == 't') ADVANCE(166);
      END_STATE();
    case 147:
      if (lookahead == 'w') ADVANCE(167);
      END_STATE();
    case 148:
      if (lookahead == 'l') ADVANCE(168);
      END_STATE();
    case 149:
      if (lookahead == 'e') ADVANCE(169);
      END_STATE();
    case 150:
      if (lookahead == 'u') ADVANCE(170);
      END_STATE();
    case 151:
      ACCEPT_TOKEN(anon_sym_invert);
      END_STATE();
    case 152:
      if (lookahead == 'r') ADVANCE(171);
      END_STATE();
    case 153:
      if (lookahead == 'o') ADVANCE(172);
      END_STATE();
    case 154:
      if (lookahead == 'o') ADVANCE(173);
      END_STATE();
    case 155:
      ACCEPT_TOKEN(anon_sym_remove);
      END_STATE();
    case 156:
      ACCEPT_TOKEN(anon_sym_repeat);
      END_STATE();
    case 157:
      if (lookahead == 'l') ADVANCE(174);
      END_STATE();
    case 158:
      if (lookahead == 's') ADVANCE(175);
      END_STATE();
    case 159:
      ACCEPT_TOKEN(anon_sym_strict);
      END_STATE();
    case 160:
      if (lookahead == 'n') ADVANCE(176);
      END_STATE();
    case 161:
      if (lookahead == 'd') ADVANCE(177);
      END_STATE();
    case 162:
      if (lookahead == 't') ADVANCE(178);
      END_STATE();
    case 163:
      if (lookahead == 't') ADVANCE(179);
      END_STATE();
    case 164:
      if (lookahead == 'r') ADVANCE(180);
      END_STATE();
    case 165:
      if (lookahead == 'e') ADVANCE(181);
      END_STATE();
    case 166:
      ACCEPT_TOKEN(anon_sym_concept);
      if (lookahead == '_') ADVANCE(182);
      END_STATE();
    case 167:
      if (lookahead == 'n') ADVANCE(183);
      END_STATE();
    case 168:
      if (lookahead == 'w') ADVANCE(184);
      END_STATE();
    case 169:
      ACCEPT_TOKEN(anon_sym_include);
      END_STATE();
    case 170:
      if (lookahead == 't') ADVANCE(185);
      END_STATE();
    case 171:
      if (lookahead == 'c') ADVANCE(186);
      END_STATE();
    case 172:
      if (lookahead == 'n') ADVANCE(187);
      END_STATE();
    case 173:
      if (lookahead == 'n') ADVANCE(188);
      END_STATE();
    case 174:
      if (lookahead == 'e') ADVANCE(189);
      END_STATE();
    case 175:
      ACCEPT_TOKEN(anon_sym_species);
      END_STATE();
    case 176:
      if (lookahead == 'c') ADVANCE(190);
      END_STATE();
    case 177:
      if (lookahead == '_') ADVANCE(191);
      END_STATE();
    case 178:
      if (lookahead == 'e') ADVANCE(192);
      END_STATE();
    case 179:
      ACCEPT_TOKEN(anon_sym_timeout);
      END_STATE();
    case 180:
      ACCEPT_TOKEN(anon_sym_behavior);
      END_STATE();
    case 181:
      if (lookahead == 'r') ADVANCE(193);
      END_STATE();
    case 182:
      if (lookahead == 'c') ADVANCE(194);
      END_STATE();
    case 183:
      ACCEPT_TOKEN(anon_sym_cooldown);
      END_STATE();
    case 184:
      if (lookahead == 'a') ADVANCE(195);
      END_STATE();
    case 185:
      if (lookahead == 'i') ADVANCE(196);
      END_STATE();
    case 186:
      ACCEPT_TOKEN(anon_sym_life_arc);
      END_STATE();
    case 187:
      ACCEPT_TOKEN(anon_sym_location);
      END_STATE();
    case 188:
      if (lookahead == 's') ADVANCE(197);
      END_STATE();
    case 189:
      ACCEPT_TOKEN(anon_sym_schedule);
      END_STATE();
    case 190:
      if (lookahead == 'e') ADVANCE(198);
      END_STATE();
    case 191:
      if (lookahead == 'a') ADVANCE(199);
      END_STATE();
    case 192:
      ACCEPT_TOKEN(anon_sym_template);
      END_STATE();
    case 193:
      ACCEPT_TOKEN(anon_sym_character);
      END_STATE();
    case 194:
      if (lookahead == 'o') ADVANCE(200);
      END_STATE();
    case 195:
      if (lookahead == 'y') ADVANCE(201);
      END_STATE();
    case 196:
      if (lookahead == 'o') ADVANCE(202);
      END_STATE();
    case 197:
      if (lookahead == 'h') ADVANCE(203);
      END_STATE();
    case 198:
      if (lookahead == 'p') ADVANCE(204);
      END_STATE();
    case 199:
      if (lookahead == 'l') ADVANCE(205);
      END_STATE();
    case 200:
      if (lookahead == 'm') ADVANCE(206);
      END_STATE();
    case 201:
      if (lookahead == 's') ADVANCE(207);
      END_STATE();
    case 202:
      if (lookahead == 'n') ADVANCE(208);
      END_STATE();
    case 203:
      if (lookahead == 'i') ADVANCE(209);
      END_STATE();
    case 204:
      if (lookahead == 't') ADVANCE(210);
      END_STATE();
    case 205:
      if (lookahead == 'w') ADVANCE(211);
      END_STATE();
    case 206:
      if (lookahead == 'p') ADVANCE(212);
      END_STATE();
    case 207:
      ACCEPT_TOKEN(anon_sym_fail_always);
      END_STATE();
    case 208:
      ACCEPT_TOKEN(anon_sym_institution);
      END_STATE();
    case 209:
      if (lookahead == 'p') ADVANCE(213);
      END_STATE();
    case 210:
      ACCEPT_TOKEN(anon_sym_sub_concept);
      END_STATE();
    case 211:
      if (lookahead == 'a') ADVANCE(214);
      END_STATE();
    case 212:
      if (lookahead == 'a') ADVANCE(215);
      END_STATE();
    case 213:
      ACCEPT_TOKEN(anon_sym_relationship);
      END_STATE();
    case 214:
      if (lookahead == 'y') ADVANCE(216);
      END_STATE();
    case 215:
      if (lookahead == 'r') ADVANCE(217);
      END_STATE();
    case 216:
      if (lookahead == 's') ADVANCE(218);
      END_STATE();
    case 217:
      if (lookahead == 'i') ADVANCE(219);
      END_STATE();
    case 218:
      ACCEPT_TOKEN(anon_sym_succeed_always);
      END_STATE();
    case 219:
      if (lookahead == 's') ADVANCE(220);
      END_STATE();
    case 220:
      if (lookahead == 'o') ADVANCE(221);
      END_STATE();
    case 221:
      if (lookahead == 'n') ADVANCE(222);
      END_STATE();
    case 222:
      ACCEPT_TOKEN(anon_sym_concept_comparison);
      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 = 1},
  [5] = {.lex_state = 1},
  [6] = {.lex_state = 1},
  [7] = {.lex_state = 1},
  [8] = {.lex_state = 1},
  [9] = {.lex_state = 1},
  [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 = 3},
  [20] = {.lex_state = 0},
  [21] = {.lex_state = 3},
  [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 = 0},
  [37] = {.lex_state = 0},
  [38] = {.lex_state = 0},
  [39] = {.lex_state = 0},
  [40] = {.lex_state = 0},
  [41] = {.lex_state = 0},
  [42] = {.lex_state = 0},
  [43] = {.lex_state = 0},
  [44] = {.lex_state = 0},
  [45] = {.lex_state = 0},
  [46] = {.lex_state = 0},
  [47] = {.lex_state = 0},
  [48] = {.lex_state = 0},
  [49] = {.lex_state = 0},
  [50] = {.lex_state = 0},
  [51] = {.lex_state = 0},
  [52] = {.lex_state = 1},
  [53] = {.lex_state = 1},
  [54] = {.lex_state = 1},
  [55] = {.lex_state = 1},
  [56] = {.lex_state = 1},
  [57] = {.lex_state = 1},
  [58] = {.lex_state = 1},
  [59] = {.lex_state = 1},
  [60] = {.lex_state = 0},
  [61] = {.lex_state = 0},
  [62] = {.lex_state = 0},
  [63] = {.lex_state = 0},
  [64] = {.lex_state = 0},
  [65] = {.lex_state = 0},
  [66] = {.lex_state = 0},
  [67] = {.lex_state = 0},
  [68] = {.lex_state = 0},
  [69] = {.lex_state = 0},
  [70] = {.lex_state = 0},
  [71] = {.lex_state = 0},
  [72] = {.lex_state = 0},
  [73] = {.lex_state = 0},
  [74] = {.lex_state = 0},
  [75] = {.lex_state = 0},
  [76] = {.lex_state = 0},
  [77] = {.lex_state = 0},
  [78] = {.lex_state = 0},
  [79] = {.lex_state = 0},
  [80] = {.lex_state = 0},
  [81] = {.lex_state = 0},
  [82] = {.lex_state = 0},
  [83] = {.lex_state = 0},
  [84] = {.lex_state = 0},
  [85] = {.lex_state = 0},
  [86] = {.lex_state = 0},
  [87] = {.lex_state = 0},
  [88] = {.lex_state = 0},
  [89] = {.lex_state = 0},
  [90] = {.lex_state = 0},
  [91] = {.lex_state = 0},
  [92] = {.lex_state = 0},
  [93] = {.lex_state = 0},
  [94] = {.lex_state = 0},
  [95] = {.lex_state = 0},
  [96] = {.lex_state = 0},
  [97] = {.lex_state = 0},
  [98] = {.lex_state = 0},
  [99] = {.lex_state = 0},
  [100] = {.lex_state = 0},
  [101] = {.lex_state = 0},
  [102] = {.lex_state = 0},
  [103] = {.lex_state = 0},
  [104] = {.lex_state = 0},
  [105] = {.lex_state = 0},
  [106] = {.lex_state = 0},
  [107] = {.lex_state = 0},
  [108] = {.lex_state = 0},
  [109] = {.lex_state = 0},
  [110] = {.lex_state = 0},
  [111] = {.lex_state = 0},
  [112] = {.lex_state = 0},
  [113] = {.lex_state = 0},
  [114] = {.lex_state = 0},
  [115] = {.lex_state = 0},
  [116] = {.lex_state = 0},
  [117] = {.lex_state = 0},
  [118] = {.lex_state = 0},
  [119] = {.lex_state = 0},
  [120] = {.lex_state = 0},
  [121] = {.lex_state = 0},
  [122] = {.lex_state = 0},
  [123] = {.lex_state = 0},
  [124] = {.lex_state = 0},
  [125] = {.lex_state = 0},
  [126] = {.lex_state = 0},
  [127] = {.lex_state = 0},
  [128] = {.lex_state = 0},
  [129] = {.lex_state = 0},
  [130] = {.lex_state = 1},
  [131] = {.lex_state = 0},
  [132] = {.lex_state = 0},
  [133] = {.lex_state = 1},
  [134] = {.lex_state = 0},
  [135] = {.lex_state = 1},
  [136] = {.lex_state = 1},
  [137] = {.lex_state = 0},
  [138] = {.lex_state = 1},
  [139] = {.lex_state = 0},
  [140] = {.lex_state = 0},
  [141] = {.lex_state = 0},
  [142] = {.lex_state = 0},
  [143] = {.lex_state = 1},
  [144] = {.lex_state = 0},
  [145] = {.lex_state = 1},
  [146] = {.lex_state = 1},
  [147] = {.lex_state = 1},
  [148] = {.lex_state = 1},
  [149] = {.lex_state = 1},
  [150] = {.lex_state = 0},
  [151] = {.lex_state = 0},
  [152] = {.lex_state = 0},
  [153] = {.lex_state = 0},
  [154] = {.lex_state = 0},
  [155] = {.lex_state = 0},
  [156] = {.lex_state = 0},
  [157] = {.lex_state = 0},
  [158] = {.lex_state = 0},
  [159] = {.lex_state = 0},
  [160] = {.lex_state = 0},
  [161] = {.lex_state = 0},
  [162] = {.lex_state = 0},
  [163] = {.lex_state = 1},
  [164] = {.lex_state = 0},
  [165] = {.lex_state = 0},
  [166] = {.lex_state = 0},
  [167] = {.lex_state = 0},
  [168] = {.lex_state = 0},
  [169] = {.lex_state = 0},
  [170] = {.lex_state = 0},
  [171] = {.lex_state = 1},
  [172] = {.lex_state = 1},
  [173] = {.lex_state = 0},
  [174] = {.lex_state = 0},
  [175] = {.lex_state = 0},
  [176] = {.lex_state = 0},
  [177] = {.lex_state = 0},
  [178] = {.lex_state = 0},
  [179] = {.lex_state = 1},
  [180] = {.lex_state = 0},
  [181] = {.lex_state = 0},
  [182] = {.lex_state = 0},
  [183] = {.lex_state = 0},
  [184] = {.lex_state = 0},
  [185] = {.lex_state = 0},
  [186] = {.lex_state = 0},
  [187] = {.lex_state = 0},
  [188] = {.lex_state = 0},
  [189] = {.lex_state = 0},
  [190] = {.lex_state = 0},
  [191] = {.lex_state = 0},
  [192] = {.lex_state = 0},
  [193] = {.lex_state = 0},
  [194] = {.lex_state = 0},
  [195] = {.lex_state = 0},
  [196] = {.lex_state = 0},
  [197] = {.lex_state = 0},
  [198] = {.lex_state = 0},
  [199] = {.lex_state = 0},
  [200] = {.lex_state = 0},
  [201] = {.lex_state = 0},
  [202] = {.lex_state = 0},
  [203] = {.lex_state = 0},
  [204] = {.lex_state = 0},
  [205] = {.lex_state = 0},
  [206] = {.lex_state = 0},
  [207] = {.lex_state = 0},
  [208] = {.lex_state = 0},
  [209] = {.lex_state = 0},
  [210] = {.lex_state = 0},
  [211] = {.lex_state = 1},
  [212] = {.lex_state = 0},
  [213] = {.lex_state = 0},
  [214] = {.lex_state = 0},
  [215] = {.lex_state = 0},
  [216] = {.lex_state = 0},
  [217] = {.lex_state = 0},
  [218] = {.lex_state = 0},
  [219] = {.lex_state = 0},
  [220] = {.lex_state = 0},
  [221] = {.lex_state = 0},
  [222] = {.lex_state = 0},
  [223] = {.lex_state = 0},
  [224] = {.lex_state = 0},
  [225] = {.lex_state = 0},
  [226] = {.lex_state = 0},
  [227] = {.lex_state = 0},
  [228] = {.lex_state = 0},
  [229] = {.lex_state = 0},
  [230] = {.lex_state = 0},
  [231] = {.lex_state = 0},
  [232] = {.lex_state = 0},
  [233] = {.lex_state = 0},
  [234] = {.lex_state = 0},
  [235] = {.lex_state = 0},
  [236] = {.lex_state = 0},
  [237] = {.lex_state = 0},
  [238] = {.lex_state = 0},
  [239] = {.lex_state = 3},
  [240] = {.lex_state = 0},
  [241] = {.lex_state = 0},
  [242] = {.lex_state = 0},
  [243] = {.lex_state = 0},
  [244] = {.lex_state = 0},
  [245] = {.lex_state = 0},
  [246] = {.lex_state = 0},
  [247] = {.lex_state = 0},
  [248] = {.lex_state = 0},
  [249] = {.lex_state = 63},
  [250] = {.lex_state = 0},
  [251] = {.lex_state = 0},
  [252] = {.lex_state = 0},
  [253] = {.lex_state = 0},
  [254] = {.lex_state = 0},
  [255] = {.lex_state = 0},
  [256] = {.lex_state = 3},
  [257] = {.lex_state = 0},
  [258] = {.lex_state = 0},
  [259] = {.lex_state = 0},
  [260] = {.lex_state = 0},
  [261] = {.lex_state = 0},
  [262] = {.lex_state = 0},
  [263] = {.lex_state = 0},
  [264] = {.lex_state = 0},
  [265] = {.lex_state = 0},
  [266] = {.lex_state = 0},
  [267] = {.lex_state = 0},
  [268] = {.lex_state = 0},
  [269] = {.lex_state = 0},
  [270] = {.lex_state = 0},
  [271] = {.lex_state = 0},
  [272] = {.lex_state = 0},
  [273] = {.lex_state = 0},
  [274] = {.lex_state = 0},
  [275] = {.lex_state = 0},
  [276] = {.lex_state = 0},
  [277] = {.lex_state = 0},
  [278] = {.lex_state = 0},
  [279] = {.lex_state = 0},
  [280] = {.lex_state = 0},
  [281] = {.lex_state = 0},
  [282] = {.lex_state = 0},
  [283] = {.lex_state = 0},
  [284] = {.lex_state = 0},
  [285] = {.lex_state = 0},
  [286] = {.lex_state = 0},
  [287] = {.lex_state = 0},
  [288] = {.lex_state = 0},
  [289] = {.lex_state = 0},
  [290] = {.lex_state = 0},
  [291] = {.lex_state = 0},
  [292] = {.lex_state = 0},
  [293] = {.lex_state = 0},
  [294] = {.lex_state = 0},
  [295] = {.lex_state = 0},
  [296] = {.lex_state = 0},
  [297] = {.lex_state = 0},
  [298] = {.lex_state = 0},
  [299] = {.lex_state = 0},
  [300] = {.lex_state = 0},
  [301] = {.lex_state = 0},
  [302] = {.lex_state = 0},
  [303] = {.lex_state = 0},
  [304] = {.lex_state = 0},
  [305] = {.lex_state = 0},
  [306] = {.lex_state = 0},
  [307] = {.lex_state = 1},
  [308] = {.lex_state = 14},
  [309] = {.lex_state = 0},
  [310] = {.lex_state = 0},
  [311] = {.lex_state = 0},
  [312] = {.lex_state = 0},
  [313] = {.lex_state = 0},
  [314] = {.lex_state = 0},
  [315] = {.lex_state = 0},
  [316] = {.lex_state = 0},
  [317] = {.lex_state = 0},
  [318] = {.lex_state = 0},
  [319] = {.lex_state = 0},
  [320] = {.lex_state = 0},
  [321] = {.lex_state = 0},
  [322] = {.lex_state = 0},
  [323] = {.lex_state = 0},
  [324] = {.lex_state = 0},
  [325] = {.lex_state = 0},
  [326] = {.lex_state = 0},
  [327] = {.lex_state = 0},
  [328] = {.lex_state = 0},
  [329] = {.lex_state = 0},
  [330] = {.lex_state = 0},
  [331] = {.lex_state = 0},
  [332] = {.lex_state = 14},
  [333] = {.lex_state = 0},
  [334] = {.lex_state = 0},
  [335] = {.lex_state = 0},
  [336] = {.lex_state = 0},
  [337] = {.lex_state = 0},
  [338] = {.lex_state = 0},
  [339] = {.lex_state = 0},
  [340] = {.lex_state = 0},
  [341] = {.lex_state = 0},
  [342] = {.lex_state = 0},
  [343] = {.lex_state = 0},
  [344] = {.lex_state = 0},
  [345] = {.lex_state = 0},
  [346] = {.lex_state = 0},
  [347] = {.lex_state = 0},
  [348] = {.lex_state = 0},
  [349] = {.lex_state = 0},
  [350] = {.lex_state = 0},
  [351] = {.lex_state = 0},
  [352] = {.lex_state = 12},
  [353] = {.lex_state = 0},
  [354] = {.lex_state = 0},
  [355] = {.lex_state = 0},
  [356] = {.lex_state = 0},
  [357] = {.lex_state = 0},
  [358] = {.lex_state = 0},
  [359] = {.lex_state = 0},
  [360] = {.lex_state = 0},
  [361] = {.lex_state = 0},
  [362] = {.lex_state = 0},
  [363] = {.lex_state = 0},
  [364] = {.lex_state = 0},
  [365] = {.lex_state = 0},
};

static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
  [0] = {
    [ts_builtin_sym_end] = ACTIONS(1),
    [sym_identifier] = ACTIONS(1),
    [sym_line_comment] = ACTIONS(3),
    [sym_block_comment] = ACTIONS(3),
    [anon_sym_use] = ACTIONS(1),
    [anon_sym_COLON_COLON] = ACTIONS(1),
    [anon_sym_LBRACE] = ACTIONS(1),
    [anon_sym_COMMA] = ACTIONS(1),
    [anon_sym_RBRACE] = ACTIONS(1),
    [anon_sym_STAR] = ACTIONS(1),
    [anon_sym_SEMI] = ACTIONS(1),
    [anon_sym_character] = ACTIONS(1),
    [anon_sym_COLON] = ACTIONS(1),
    [anon_sym_from] = ACTIONS(1),
    [anon_sym_template] = ACTIONS(1),
    [anon_sym_strict] = ACTIONS(1),
    [anon_sym_include] = ACTIONS(1),
    [anon_sym_DOT] = ACTIONS(1),
    [sym_integer] = ACTIONS(1),
    [sym_float] = ACTIONS(1),
    [sym_string] = ACTIONS(1),
    [anon_sym_true] = ACTIONS(1),
    [anon_sym_false] = ACTIONS(1),
    [anon_sym_DOT_DOT] = ACTIONS(1),
    [sym_time] = ACTIONS(1),
    [sym_duration] = ACTIONS(1),
    [anon_sym_LBRACK] = ACTIONS(1),
    [anon_sym_RBRACK] = ACTIONS(1),
    [anon_sym_AT] = ACTIONS(1),
    [anon_sym_remove] = ACTIONS(1),
    [anon_sym_append] = ACTIONS(1),
    [sym_prose_marker] = ACTIONS(1),
    [anon_sym_life_arc] = ACTIONS(1),
    [anon_sym_state] = ACTIONS(1),
    [anon_sym_on] = ACTIONS(1),
    [anon_sym_enter] = ACTIONS(1),
    [anon_sym_DASH_GT] = ACTIONS(1),
    [anon_sym_schedule] = ACTIONS(1),
    [anon_sym_behavior] = ACTIONS(1),
    [anon_sym_choose] = ACTIONS(1),
    [anon_sym_then] = ACTIONS(1),
    [anon_sym_if] = ACTIONS(1),
    [anon_sym_when] = ACTIONS(1),
    [anon_sym_LPAREN] = ACTIONS(1),
    [anon_sym_RPAREN] = ACTIONS(1),
    [anon_sym_repeat] = ACTIONS(1),
    [anon_sym_invert] = ACTIONS(1),
    [anon_sym_retry] = ACTIONS(1),
    [anon_sym_timeout] = ACTIONS(1),
    [anon_sym_cooldown] = ACTIONS(1),
    [anon_sym_succeed_always] = ACTIONS(1),
    [anon_sym_fail_always] = ACTIONS(1),
    [anon_sym_institution] = ACTIONS(1),
    [anon_sym_relationship] = ACTIONS(1),
    [anon_sym_as] = ACTIONS(1),
    [anon_sym_location] = ACTIONS(1),
    [anon_sym_species] = ACTIONS(1),
    [anon_sym_enum] = ACTIONS(1),
    [anon_sym_concept] = ACTIONS(1),
    [anon_sym_sub_concept] = ACTIONS(1),
    [sym_any_type] = ACTIONS(1),
    [anon_sym_concept_comparison] = ACTIONS(1),
    [anon_sym_is] = ACTIONS(1),
    [anon_sym_or] = ACTIONS(1),
    [anon_sym_and] = ACTIONS(1),
    [anon_sym_not] = ACTIONS(1),
    [anon_sym_GT] = ACTIONS(1),
    [anon_sym_GT_EQ] = ACTIONS(1),
    [anon_sym_LT] = ACTIONS(1),
    [anon_sym_LT_EQ] = ACTIONS(1),
    [anon_sym_self] = ACTIONS(1),
    [anon_sym_other] = ACTIONS(1),
  },
  [1] = {
    [sym_source_file] = STATE(335),
    [sym_declaration] = STATE(10),
    [sym_use_declaration] = STATE(94),
    [sym_character] = STATE(94),
    [sym_template] = STATE(94),
    [sym_life_arc] = STATE(94),
    [sym_schedule] = STATE(94),
    [sym_behavior] = STATE(94),
    [sym_institution] = STATE(94),
    [sym_relationship] = STATE(94),
    [sym_location] = STATE(94),
    [sym_species] = STATE(94),
    [sym_enum_declaration] = STATE(94),
    [sym_concept_declaration] = STATE(94),
    [sym_sub_concept] = STATE(94),
    [sym_concept_comparison] = STATE(94),
    [aux_sym_source_file_repeat1] = STATE(10),
    [ts_builtin_sym_end] = ACTIONS(5),
    [sym_line_comment] = ACTIONS(3),
    [sym_block_comment] = ACTIONS(3),
    [anon_sym_use] = ACTIONS(7),
    [anon_sym_character] = ACTIONS(9),
    [anon_sym_template] = ACTIONS(11),
    [anon_sym_life_arc] = ACTIONS(13),
    [anon_sym_schedule] = ACTIONS(15),
    [anon_sym_behavior] = ACTIONS(17),
    [anon_sym_institution] = ACTIONS(19),
    [anon_sym_relationship] = ACTIONS(21),
    [anon_sym_location] = ACTIONS(23),
    [anon_sym_species] = ACTIONS(25),
    [anon_sym_enum] = ACTIONS(27),
    [anon_sym_concept] = ACTIONS(29),
    [anon_sym_sub_concept] = ACTIONS(31),
    [anon_sym_concept_comparison] = ACTIONS(33),
  },
};

static const uint16_t ts_small_parse_table[] = {
  [0] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(35), 7,
      ts_builtin_sym_end,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_RPAREN,
    ACTIONS(37), 31,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_life_arc,
      anon_sym_state,
      anon_sym_on,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_concept,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
      sym_identifier,
  [47] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(39), 7,
      ts_builtin_sym_end,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_RPAREN,
    ACTIONS(41), 31,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_life_arc,
      anon_sym_state,
      anon_sym_on,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_concept,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
      sym_identifier,
  [94] = 5,
    ACTIONS(45), 1,
      anon_sym_COLON_COLON,
    STATE(4), 1,
      aux_sym_path_segments_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(48), 12,
      anon_sym_LBRACE,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      anon_sym_SEMI,
      anon_sym_DOT,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_DASH_GT,
      anon_sym_RPAREN,
      anon_sym_GT_EQ,
      anon_sym_LT_EQ,
    ACTIONS(43), 23,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      anon_sym_as,
      anon_sym_is,
      anon_sym_or,
      anon_sym_and,
      anon_sym_GT,
      anon_sym_LT,
      sym_identifier,
  [144] = 5,
    ACTIONS(52), 1,
      anon_sym_COLON_COLON,
    STATE(4), 1,
      aux_sym_path_segments_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(54), 11,
      anon_sym_LBRACE,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      anon_sym_DOT,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_DASH_GT,
      anon_sym_RPAREN,
      anon_sym_GT_EQ,
      anon_sym_LT_EQ,
    ACTIONS(50), 23,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      anon_sym_as,
      anon_sym_is,
      anon_sym_or,
      anon_sym_and,
      anon_sym_GT,
      anon_sym_LT,
      sym_identifier,
  [193] = 5,
    ACTIONS(52), 1,
      anon_sym_COLON_COLON,
    STATE(5), 1,
      aux_sym_path_segments_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(58), 11,
      anon_sym_LBRACE,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      anon_sym_DOT,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_DASH_GT,
      anon_sym_RPAREN,
      anon_sym_GT_EQ,
      anon_sym_LT_EQ,
    ACTIONS(56), 23,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      anon_sym_as,
      anon_sym_is,
      anon_sym_or,
      anon_sym_and,
      anon_sym_GT,
      anon_sym_LT,
      sym_identifier,
  [242] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(48), 13,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      anon_sym_SEMI,
      anon_sym_DOT,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_DASH_GT,
      anon_sym_RPAREN,
      anon_sym_GT_EQ,
      anon_sym_LT_EQ,
    ACTIONS(43), 23,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      anon_sym_as,
      anon_sym_is,
      anon_sym_or,
      anon_sym_and,
      anon_sym_GT,
      anon_sym_LT,
      sym_identifier,
  [287] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(62), 11,
      anon_sym_LBRACE,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      anon_sym_DOT,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_DASH_GT,
      anon_sym_RPAREN,
      anon_sym_GT_EQ,
      anon_sym_LT_EQ,
    ACTIONS(60), 23,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      anon_sym_as,
      anon_sym_is,
      anon_sym_or,
      anon_sym_and,
      anon_sym_GT,
      anon_sym_LT,
      sym_identifier,
  [330] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(66), 10,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      anon_sym_DOT,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_DASH_GT,
      anon_sym_RPAREN,
      anon_sym_GT_EQ,
      anon_sym_LT_EQ,
    ACTIONS(64), 22,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      anon_sym_is,
      anon_sym_or,
      anon_sym_and,
      anon_sym_GT,
      anon_sym_LT,
      sym_identifier,
  [371] = 18,
    ACTIONS(7), 1,
      anon_sym_use,
    ACTIONS(9), 1,
      anon_sym_character,
    ACTIONS(11), 1,
      anon_sym_template,
    ACTIONS(13), 1,
      anon_sym_life_arc,
    ACTIONS(15), 1,
      anon_sym_schedule,
    ACTIONS(17), 1,
      anon_sym_behavior,
    ACTIONS(19), 1,
      anon_sym_institution,
    ACTIONS(21), 1,
      anon_sym_relationship,
    ACTIONS(23), 1,
      anon_sym_location,
    ACTIONS(25), 1,
      anon_sym_species,
    ACTIONS(27), 1,
      anon_sym_enum,
    ACTIONS(29), 1,
      anon_sym_concept,
    ACTIONS(31), 1,
      anon_sym_sub_concept,
    ACTIONS(33), 1,
      anon_sym_concept_comparison,
    ACTIONS(68), 1,
      ts_builtin_sym_end,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(11), 2,
      sym_declaration,
      aux_sym_source_file_repeat1,
    STATE(94), 14,
      sym_use_declaration,
      sym_character,
      sym_template,
      sym_life_arc,
      sym_schedule,
      sym_behavior,
      sym_institution,
      sym_relationship,
      sym_location,
      sym_species,
      sym_enum_declaration,
      sym_concept_declaration,
      sym_sub_concept,
      sym_concept_comparison,
  [441] = 18,
    ACTIONS(70), 1,
      ts_builtin_sym_end,
    ACTIONS(72), 1,
      anon_sym_use,
    ACTIONS(75), 1,
      anon_sym_character,
    ACTIONS(78), 1,
      anon_sym_template,
    ACTIONS(81), 1,
      anon_sym_life_arc,
    ACTIONS(84), 1,
      anon_sym_schedule,
    ACTIONS(87), 1,
      anon_sym_behavior,
    ACTIONS(90), 1,
      anon_sym_institution,
    ACTIONS(93), 1,
      anon_sym_relationship,
    ACTIONS(96), 1,
      anon_sym_location,
    ACTIONS(99), 1,
      anon_sym_species,
    ACTIONS(102), 1,
      anon_sym_enum,
    ACTIONS(105), 1,
      anon_sym_concept,
    ACTIONS(108), 1,
      anon_sym_sub_concept,
    ACTIONS(111), 1,
      anon_sym_concept_comparison,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(11), 2,
      sym_declaration,
      aux_sym_source_file_repeat1,
    STATE(94), 14,
      sym_use_declaration,
      sym_character,
      sym_template,
      sym_life_arc,
      sym_schedule,
      sym_behavior,
      sym_institution,
      sym_relationship,
      sym_location,
      sym_species,
      sym_enum_declaration,
      sym_concept_declaration,
      sym_sub_concept,
      sym_concept_comparison,
  [511] = 15,
    ACTIONS(114), 1,
      sym_identifier,
    ACTIONS(116), 1,
      anon_sym_include,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(120), 1,
      anon_sym_choose,
    ACTIONS(122), 1,
      anon_sym_then,
    ACTIONS(124), 1,
      anon_sym_if,
    ACTIONS(126), 1,
      anon_sym_when,
    STATE(50), 1,
      sym_prose_block,
    STATE(217), 1,
      sym_decorator_keyword,
    STATE(284), 1,
      sym_dotted_path,
    STATE(309), 1,
      sym_behavior_node,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(13), 2,
      sym_field,
      aux_sym_template_repeat2,
    ACTIONS(128), 7,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
    STATE(106), 7,
      sym_selector_node,
      sym_sequence_node,
      sym_condition_node,
      sym_if_decorator_node,
      sym_decorator_node,
      sym_action_node,
      sym_subtree_node,
  [571] = 15,
    ACTIONS(114), 1,
      sym_identifier,
    ACTIONS(116), 1,
      anon_sym_include,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(120), 1,
      anon_sym_choose,
    ACTIONS(122), 1,
      anon_sym_then,
    ACTIONS(124), 1,
      anon_sym_if,
    ACTIONS(126), 1,
      anon_sym_when,
    STATE(50), 1,
      sym_prose_block,
    STATE(217), 1,
      sym_decorator_keyword,
    STATE(284), 1,
      sym_dotted_path,
    STATE(363), 1,
      sym_behavior_node,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(46), 2,
      sym_field,
      aux_sym_template_repeat2,
    ACTIONS(128), 7,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
    STATE(106), 7,
      sym_selector_node,
      sym_sequence_node,
      sym_condition_node,
      sym_if_decorator_node,
      sym_decorator_node,
      sym_action_node,
      sym_subtree_node,
  [631] = 17,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(130), 1,
      sym_identifier,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    ACTIONS(134), 1,
      sym_integer,
    ACTIONS(136), 1,
      sym_float,
    ACTIONS(142), 1,
      anon_sym_LBRACK,
    ACTIONS(144), 1,
      anon_sym_AT,
    ACTIONS(146), 1,
      anon_sym_RPAREN,
    STATE(8), 1,
      sym_path_segments,
    STATE(34), 1,
      sym_block,
    STATE(218), 1,
      sym_action_param,
    STATE(235), 1,
      sym_value,
    STATE(343), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(138), 3,
      sym_string,
      sym_time,
      sym_duration,
    STATE(37), 7,
      sym_path,
      sym_boolean,
      sym_range,
      sym_list,
      sym_object,
      sym_override,
      sym_prose_block,
  [693] = 17,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(130), 1,
      sym_identifier,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    ACTIONS(134), 1,
      sym_integer,
    ACTIONS(136), 1,
      sym_float,
    ACTIONS(142), 1,
      anon_sym_LBRACK,
    ACTIONS(144), 1,
      anon_sym_AT,
    ACTIONS(148), 1,
      anon_sym_RPAREN,
    STATE(8), 1,
      sym_path_segments,
    STATE(34), 1,
      sym_block,
    STATE(235), 1,
      sym_value,
    STATE(262), 1,
      sym_action_param,
    STATE(343), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(138), 3,
      sym_string,
      sym_time,
      sym_duration,
    STATE(37), 7,
      sym_path,
      sym_boolean,
      sym_range,
      sym_list,
      sym_object,
      sym_override,
      sym_prose_block,
  [755] = 17,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(130), 1,
      sym_identifier,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    ACTIONS(134), 1,
      sym_integer,
    ACTIONS(136), 1,
      sym_float,
    ACTIONS(142), 1,
      anon_sym_LBRACK,
    ACTIONS(144), 1,
      anon_sym_AT,
    ACTIONS(150), 1,
      anon_sym_RPAREN,
    STATE(8), 1,
      sym_path_segments,
    STATE(34), 1,
      sym_block,
    STATE(235), 1,
      sym_value,
    STATE(262), 1,
      sym_action_param,
    STATE(343), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(138), 3,
      sym_string,
      sym_time,
      sym_duration,
    STATE(37), 7,
      sym_path,
      sym_boolean,
      sym_range,
      sym_list,
      sym_object,
      sym_override,
      sym_prose_block,
  [817] = 12,
    ACTIONS(116), 1,
      anon_sym_include,
    ACTIONS(120), 1,
      anon_sym_choose,
    ACTIONS(122), 1,
      anon_sym_then,
    ACTIONS(124), 1,
      anon_sym_if,
    ACTIONS(126), 1,
      anon_sym_when,
    ACTIONS(152), 1,
      sym_identifier,
    ACTIONS(154), 1,
      anon_sym_RBRACE,
    STATE(217), 1,
      sym_decorator_keyword,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(24), 2,
      sym_behavior_node,
      aux_sym_selector_node_repeat1,
    ACTIONS(128), 7,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
    STATE(106), 7,
      sym_selector_node,
      sym_sequence_node,
      sym_condition_node,
      sym_if_decorator_node,
      sym_decorator_node,
      sym_action_node,
      sym_subtree_node,
  [868] = 16,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(130), 1,
      sym_identifier,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    ACTIONS(134), 1,
      sym_integer,
    ACTIONS(136), 1,
      sym_float,
    ACTIONS(142), 1,
      anon_sym_LBRACK,
    ACTIONS(144), 1,
      anon_sym_AT,
    STATE(8), 1,
      sym_path_segments,
    STATE(34), 1,
      sym_block,
    STATE(235), 1,
      sym_value,
    STATE(262), 1,
      sym_action_param,
    STATE(343), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(138), 3,
      sym_string,
      sym_time,
      sym_duration,
    STATE(37), 7,
      sym_path,
      sym_boolean,
      sym_range,
      sym_list,
      sym_object,
      sym_override,
      sym_prose_block,
  [927] = 4,
    ACTIONS(160), 1,
      anon_sym_DOT_DOT,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(158), 6,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_RPAREN,
    ACTIONS(156), 17,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [962] = 12,
    ACTIONS(116), 1,
      anon_sym_include,
    ACTIONS(120), 1,
      anon_sym_choose,
    ACTIONS(122), 1,
      anon_sym_then,
    ACTIONS(124), 1,
      anon_sym_if,
    ACTIONS(126), 1,
      anon_sym_when,
    ACTIONS(152), 1,
      sym_identifier,
    ACTIONS(162), 1,
      anon_sym_RBRACE,
    STATE(217), 1,
      sym_decorator_keyword,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(24), 2,
      sym_behavior_node,
      aux_sym_selector_node_repeat1,
    ACTIONS(128), 7,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
    STATE(106), 7,
      sym_selector_node,
      sym_sequence_node,
      sym_condition_node,
      sym_if_decorator_node,
      sym_decorator_node,
      sym_action_node,
      sym_subtree_node,
  [1013] = 4,
    ACTIONS(164), 1,
      anon_sym_DOT_DOT,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(158), 6,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_RPAREN,
    ACTIONS(156), 17,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [1048] = 12,
    ACTIONS(116), 1,
      anon_sym_include,
    ACTIONS(120), 1,
      anon_sym_choose,
    ACTIONS(122), 1,
      anon_sym_then,
    ACTIONS(124), 1,
      anon_sym_if,
    ACTIONS(126), 1,
      anon_sym_when,
    ACTIONS(152), 1,
      sym_identifier,
    ACTIONS(166), 1,
      anon_sym_RBRACE,
    STATE(217), 1,
      sym_decorator_keyword,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(24), 2,
      sym_behavior_node,
      aux_sym_selector_node_repeat1,
    ACTIONS(128), 7,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
    STATE(106), 7,
      sym_selector_node,
      sym_sequence_node,
      sym_condition_node,
      sym_if_decorator_node,
      sym_decorator_node,
      sym_action_node,
      sym_subtree_node,
  [1099] = 12,
    ACTIONS(116), 1,
      anon_sym_include,
    ACTIONS(120), 1,
      anon_sym_choose,
    ACTIONS(122), 1,
      anon_sym_then,
    ACTIONS(124), 1,
      anon_sym_if,
    ACTIONS(126), 1,
      anon_sym_when,
    ACTIONS(152), 1,
      sym_identifier,
    ACTIONS(168), 1,
      anon_sym_RBRACE,
    STATE(217), 1,
      sym_decorator_keyword,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(24), 2,
      sym_behavior_node,
      aux_sym_selector_node_repeat1,
    ACTIONS(128), 7,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
    STATE(106), 7,
      sym_selector_node,
      sym_sequence_node,
      sym_condition_node,
      sym_if_decorator_node,
      sym_decorator_node,
      sym_action_node,
      sym_subtree_node,
  [1150] = 12,
    ACTIONS(170), 1,
      sym_identifier,
    ACTIONS(173), 1,
      anon_sym_RBRACE,
    ACTIONS(175), 1,
      anon_sym_include,
    ACTIONS(178), 1,
      anon_sym_choose,
    ACTIONS(181), 1,
      anon_sym_then,
    ACTIONS(184), 1,
      anon_sym_if,
    ACTIONS(187), 1,
      anon_sym_when,
    STATE(217), 1,
      sym_decorator_keyword,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(24), 2,
      sym_behavior_node,
      aux_sym_selector_node_repeat1,
    ACTIONS(190), 7,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
    STATE(106), 7,
      sym_selector_node,
      sym_sequence_node,
      sym_condition_node,
      sym_if_decorator_node,
      sym_decorator_node,
      sym_action_node,
      sym_subtree_node,
  [1201] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(195), 6,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_RPAREN,
    ACTIONS(193), 17,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [1233] = 11,
    ACTIONS(116), 1,
      anon_sym_include,
    ACTIONS(120), 1,
      anon_sym_choose,
    ACTIONS(122), 1,
      anon_sym_then,
    ACTIONS(124), 1,
      anon_sym_if,
    ACTIONS(126), 1,
      anon_sym_when,
    ACTIONS(152), 1,
      sym_identifier,
    STATE(217), 1,
      sym_decorator_keyword,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(20), 2,
      sym_behavior_node,
      aux_sym_selector_node_repeat1,
    ACTIONS(128), 7,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
    STATE(106), 7,
      sym_selector_node,
      sym_sequence_node,
      sym_condition_node,
      sym_if_decorator_node,
      sym_decorator_node,
      sym_action_node,
      sym_subtree_node,
  [1281] = 15,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    ACTIONS(134), 1,
      sym_integer,
    ACTIONS(136), 1,
      sym_float,
    ACTIONS(142), 1,
      anon_sym_LBRACK,
    ACTIONS(144), 1,
      anon_sym_AT,
    ACTIONS(197), 1,
      sym_identifier,
    ACTIONS(199), 1,
      anon_sym_RBRACK,
    STATE(8), 1,
      sym_path_segments,
    STATE(34), 1,
      sym_block,
    STATE(241), 1,
      sym_value,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(138), 3,
      sym_string,
      sym_time,
      sym_duration,
    STATE(37), 7,
      sym_path,
      sym_boolean,
      sym_range,
      sym_list,
      sym_object,
      sym_override,
      sym_prose_block,
  [1337] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(203), 6,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_RPAREN,
    ACTIONS(201), 17,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [1369] = 11,
    ACTIONS(116), 1,
      anon_sym_include,
    ACTIONS(120), 1,
      anon_sym_choose,
    ACTIONS(122), 1,
      anon_sym_then,
    ACTIONS(124), 1,
      anon_sym_if,
    ACTIONS(126), 1,
      anon_sym_when,
    ACTIONS(152), 1,
      sym_identifier,
    STATE(217), 1,
      sym_decorator_keyword,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(22), 2,
      sym_behavior_node,
      aux_sym_selector_node_repeat1,
    ACTIONS(128), 7,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
    STATE(106), 7,
      sym_selector_node,
      sym_sequence_node,
      sym_condition_node,
      sym_if_decorator_node,
      sym_decorator_node,
      sym_action_node,
      sym_subtree_node,
  [1417] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(207), 6,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_RPAREN,
    ACTIONS(205), 17,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [1449] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(211), 6,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_RPAREN,
    ACTIONS(209), 17,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [1481] = 11,
    ACTIONS(116), 1,
      anon_sym_include,
    ACTIONS(120), 1,
      anon_sym_choose,
    ACTIONS(122), 1,
      anon_sym_then,
    ACTIONS(124), 1,
      anon_sym_if,
    ACTIONS(126), 1,
      anon_sym_when,
    ACTIONS(152), 1,
      sym_identifier,
    STATE(217), 1,
      sym_decorator_keyword,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(23), 2,
      sym_behavior_node,
      aux_sym_selector_node_repeat1,
    ACTIONS(128), 7,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
    STATE(106), 7,
      sym_selector_node,
      sym_sequence_node,
      sym_condition_node,
      sym_if_decorator_node,
      sym_decorator_node,
      sym_action_node,
      sym_subtree_node,
  [1529] = 11,
    ACTIONS(116), 1,
      anon_sym_include,
    ACTIONS(120), 1,
      anon_sym_choose,
    ACTIONS(122), 1,
      anon_sym_then,
    ACTIONS(124), 1,
      anon_sym_if,
    ACTIONS(126), 1,
      anon_sym_when,
    ACTIONS(152), 1,
      sym_identifier,
    STATE(217), 1,
      sym_decorator_keyword,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(17), 2,
      sym_behavior_node,
      aux_sym_selector_node_repeat1,
    ACTIONS(128), 7,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
    STATE(106), 7,
      sym_selector_node,
      sym_sequence_node,
      sym_condition_node,
      sym_if_decorator_node,
      sym_decorator_node,
      sym_action_node,
      sym_subtree_node,
  [1577] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(215), 6,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_RPAREN,
    ACTIONS(213), 17,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [1609] = 15,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    ACTIONS(134), 1,
      sym_integer,
    ACTIONS(136), 1,
      sym_float,
    ACTIONS(142), 1,
      anon_sym_LBRACK,
    ACTIONS(144), 1,
      anon_sym_AT,
    ACTIONS(197), 1,
      sym_identifier,
    ACTIONS(217), 1,
      anon_sym_RBRACK,
    STATE(8), 1,
      sym_path_segments,
    STATE(34), 1,
      sym_block,
    STATE(233), 1,
      sym_value,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(138), 3,
      sym_string,
      sym_time,
      sym_duration,
    STATE(37), 7,
      sym_path,
      sym_boolean,
      sym_range,
      sym_list,
      sym_object,
      sym_override,
      sym_prose_block,
  [1665] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(221), 6,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_RPAREN,
    ACTIONS(219), 17,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [1697] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(158), 6,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_RPAREN,
    ACTIONS(156), 17,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [1729] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(225), 6,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_RPAREN,
    ACTIONS(223), 17,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [1761] = 15,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    ACTIONS(134), 1,
      sym_integer,
    ACTIONS(136), 1,
      sym_float,
    ACTIONS(142), 1,
      anon_sym_LBRACK,
    ACTIONS(144), 1,
      anon_sym_AT,
    ACTIONS(197), 1,
      sym_identifier,
    ACTIONS(227), 1,
      anon_sym_RBRACK,
    STATE(8), 1,
      sym_path_segments,
    STATE(34), 1,
      sym_block,
    STATE(241), 1,
      sym_value,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(138), 3,
      sym_string,
      sym_time,
      sym_duration,
    STATE(37), 7,
      sym_path,
      sym_boolean,
      sym_range,
      sym_list,
      sym_object,
      sym_override,
      sym_prose_block,
  [1817] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(231), 6,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_RPAREN,
    ACTIONS(229), 17,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [1849] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(235), 6,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_RPAREN,
    ACTIONS(233), 17,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [1881] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(239), 6,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      sym_time,
      anon_sym_RBRACK,
      sym_prose_marker,
      anon_sym_RPAREN,
    ACTIONS(237), 17,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [1913] = 14,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    ACTIONS(134), 1,
      sym_integer,
    ACTIONS(136), 1,
      sym_float,
    ACTIONS(142), 1,
      anon_sym_LBRACK,
    ACTIONS(144), 1,
      anon_sym_AT,
    ACTIONS(197), 1,
      sym_identifier,
    STATE(8), 1,
      sym_path_segments,
    STATE(34), 1,
      sym_block,
    STATE(51), 1,
      sym_value,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(138), 3,
      sym_string,
      sym_time,
      sym_duration,
    STATE(37), 7,
      sym_path,
      sym_boolean,
      sym_range,
      sym_list,
      sym_object,
      sym_override,
      sym_prose_block,
  [1966] = 14,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    ACTIONS(134), 1,
      sym_integer,
    ACTIONS(136), 1,
      sym_float,
    ACTIONS(142), 1,
      anon_sym_LBRACK,
    ACTIONS(144), 1,
      anon_sym_AT,
    ACTIONS(197), 1,
      sym_identifier,
    STATE(8), 1,
      sym_path_segments,
    STATE(34), 1,
      sym_block,
    STATE(241), 1,
      sym_value,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(138), 3,
      sym_string,
      sym_time,
      sym_duration,
    STATE(37), 7,
      sym_path,
      sym_boolean,
      sym_range,
      sym_list,
      sym_object,
      sym_override,
      sym_prose_block,
  [2019] = 11,
    ACTIONS(116), 1,
      anon_sym_include,
    ACTIONS(120), 1,
      anon_sym_choose,
    ACTIONS(122), 1,
      anon_sym_then,
    ACTIONS(124), 1,
      anon_sym_if,
    ACTIONS(126), 1,
      anon_sym_when,
    ACTIONS(152), 1,
      sym_identifier,
    STATE(217), 1,
      sym_decorator_keyword,
    STATE(334), 1,
      sym_behavior_node,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(128), 7,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
    STATE(106), 7,
      sym_selector_node,
      sym_sequence_node,
      sym_condition_node,
      sym_if_decorator_node,
      sym_decorator_node,
      sym_action_node,
      sym_subtree_node,
  [2066] = 8,
    ACTIONS(241), 1,
      sym_identifier,
    ACTIONS(248), 1,
      sym_prose_marker,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(244), 2,
      anon_sym_RBRACE,
      sym_time,
    STATE(46), 2,
      sym_field,
      aux_sym_template_repeat2,
    ACTIONS(246), 14,
      anon_sym_include,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
  [2107] = 11,
    ACTIONS(116), 1,
      anon_sym_include,
    ACTIONS(120), 1,
      anon_sym_choose,
    ACTIONS(122), 1,
      anon_sym_then,
    ACTIONS(124), 1,
      anon_sym_if,
    ACTIONS(126), 1,
      anon_sym_when,
    ACTIONS(152), 1,
      sym_identifier,
    STATE(217), 1,
      sym_decorator_keyword,
    STATE(342), 1,
      sym_behavior_node,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(128), 7,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
    STATE(106), 7,
      sym_selector_node,
      sym_sequence_node,
      sym_condition_node,
      sym_if_decorator_node,
      sym_decorator_node,
      sym_action_node,
      sym_subtree_node,
  [2154] = 11,
    ACTIONS(116), 1,
      anon_sym_include,
    ACTIONS(120), 1,
      anon_sym_choose,
    ACTIONS(122), 1,
      anon_sym_then,
    ACTIONS(124), 1,
      anon_sym_if,
    ACTIONS(126), 1,
      anon_sym_when,
    ACTIONS(152), 1,
      sym_identifier,
    STATE(217), 1,
      sym_decorator_keyword,
    STATE(303), 1,
      sym_behavior_node,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(128), 7,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
    STATE(106), 7,
      sym_selector_node,
      sym_sequence_node,
      sym_condition_node,
      sym_if_decorator_node,
      sym_decorator_node,
      sym_action_node,
      sym_subtree_node,
  [2201] = 14,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    ACTIONS(134), 1,
      sym_integer,
    ACTIONS(136), 1,
      sym_float,
    ACTIONS(142), 1,
      anon_sym_LBRACK,
    ACTIONS(144), 1,
      anon_sym_AT,
    ACTIONS(197), 1,
      sym_identifier,
    STATE(8), 1,
      sym_path_segments,
    STATE(34), 1,
      sym_block,
    STATE(263), 1,
      sym_value,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(138), 3,
      sym_string,
      sym_time,
      sym_duration,
    STATE(37), 7,
      sym_path,
      sym_boolean,
      sym_range,
      sym_list,
      sym_object,
      sym_override,
      sym_prose_block,
  [2254] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(253), 3,
      anon_sym_RBRACE,
      sym_time,
      sym_prose_marker,
    ACTIONS(251), 17,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [2283] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(257), 3,
      anon_sym_RBRACE,
      sym_time,
      sym_prose_marker,
    ACTIONS(255), 17,
      anon_sym_include,
      anon_sym_remove,
      anon_sym_append,
      anon_sym_state,
      anon_sym_on,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [2312] = 11,
    ACTIONS(197), 1,
      sym_identifier,
    ACTIONS(263), 1,
      anon_sym_enter,
    ACTIONS(265), 1,
      anon_sym_not,
    STATE(8), 1,
      sym_path_segments,
    STATE(149), 1,
      sym_expression,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(261), 2,
      sym_float,
      sym_string,
    STATE(143), 2,
      sym_path,
      sym_boolean,
    ACTIONS(259), 3,
      sym_integer,
      anon_sym_self,
      anon_sym_other,
    STATE(145), 6,
      sym_or_expression,
      sym_and_expression,
      sym_not_expression,
      sym_comparison,
      sym_field_access,
      sym_primary_expression,
  [2357] = 10,
    ACTIONS(197), 1,
      sym_identifier,
    ACTIONS(265), 1,
      anon_sym_not,
    STATE(8), 1,
      sym_path_segments,
    STATE(147), 1,
      sym_expression,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(261), 2,
      sym_float,
      sym_string,
    STATE(143), 2,
      sym_path,
      sym_boolean,
    ACTIONS(259), 3,
      sym_integer,
      anon_sym_self,
      anon_sym_other,
    STATE(145), 6,
      sym_or_expression,
      sym_and_expression,
      sym_not_expression,
      sym_comparison,
      sym_field_access,
      sym_primary_expression,
  [2399] = 10,
    ACTIONS(197), 1,
      sym_identifier,
    ACTIONS(265), 1,
      anon_sym_not,
    STATE(8), 1,
      sym_path_segments,
    STATE(146), 1,
      sym_expression,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(261), 2,
      sym_float,
      sym_string,
    STATE(143), 2,
      sym_path,
      sym_boolean,
    ACTIONS(259), 3,
      sym_integer,
      anon_sym_self,
      anon_sym_other,
    STATE(145), 6,
      sym_or_expression,
      sym_and_expression,
      sym_not_expression,
      sym_comparison,
      sym_field_access,
      sym_primary_expression,
  [2441] = 10,
    ACTIONS(197), 1,
      sym_identifier,
    ACTIONS(265), 1,
      anon_sym_not,
    STATE(8), 1,
      sym_path_segments,
    STATE(138), 1,
      sym_expression,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(261), 2,
      sym_float,
      sym_string,
    STATE(143), 2,
      sym_path,
      sym_boolean,
    ACTIONS(259), 3,
      sym_integer,
      anon_sym_self,
      anon_sym_other,
    STATE(145), 6,
      sym_or_expression,
      sym_and_expression,
      sym_not_expression,
      sym_comparison,
      sym_field_access,
      sym_primary_expression,
  [2483] = 10,
    ACTIONS(197), 1,
      sym_identifier,
    ACTIONS(265), 1,
      anon_sym_not,
    STATE(8), 1,
      sym_path_segments,
    STATE(133), 1,
      sym_expression,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(261), 2,
      sym_float,
      sym_string,
    STATE(143), 2,
      sym_path,
      sym_boolean,
    ACTIONS(259), 3,
      sym_integer,
      anon_sym_self,
      anon_sym_other,
    STATE(145), 6,
      sym_or_expression,
      sym_and_expression,
      sym_not_expression,
      sym_comparison,
      sym_field_access,
      sym_primary_expression,
  [2525] = 10,
    ACTIONS(197), 1,
      sym_identifier,
    ACTIONS(265), 1,
      anon_sym_not,
    STATE(8), 1,
      sym_path_segments,
    STATE(136), 1,
      sym_expression,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(261), 2,
      sym_float,
      sym_string,
    STATE(143), 2,
      sym_path,
      sym_boolean,
    ACTIONS(259), 3,
      sym_integer,
      anon_sym_self,
      anon_sym_other,
    STATE(145), 6,
      sym_or_expression,
      sym_and_expression,
      sym_not_expression,
      sym_comparison,
      sym_field_access,
      sym_primary_expression,
  [2567] = 10,
    ACTIONS(197), 1,
      sym_identifier,
    ACTIONS(265), 1,
      anon_sym_not,
    STATE(8), 1,
      sym_path_segments,
    STATE(135), 1,
      sym_expression,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(261), 2,
      sym_float,
      sym_string,
    STATE(143), 2,
      sym_path,
      sym_boolean,
    ACTIONS(259), 3,
      sym_integer,
      anon_sym_self,
      anon_sym_other,
    STATE(145), 6,
      sym_or_expression,
      sym_and_expression,
      sym_not_expression,
      sym_comparison,
      sym_field_access,
      sym_primary_expression,
  [2609] = 10,
    ACTIONS(197), 1,
      sym_identifier,
    ACTIONS(265), 1,
      anon_sym_not,
    STATE(8), 1,
      sym_path_segments,
    STATE(149), 1,
      sym_expression,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(140), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(261), 2,
      sym_float,
      sym_string,
    STATE(143), 2,
      sym_path,
      sym_boolean,
    ACTIONS(259), 3,
      sym_integer,
      anon_sym_self,
      anon_sym_other,
    STATE(145), 6,
      sym_or_expression,
      sym_and_expression,
      sym_not_expression,
      sym_comparison,
      sym_field_access,
      sym_primary_expression,
  [2651] = 3,
    ACTIONS(269), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(267), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [2675] = 4,
    ACTIONS(273), 1,
      anon_sym_LBRACE,
    ACTIONS(275), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(271), 13,
      anon_sym_include,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [2701] = 4,
    ACTIONS(279), 1,
      anon_sym_RBRACE,
    ACTIONS(281), 1,
      anon_sym_LPAREN,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(277), 13,
      anon_sym_include,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [2727] = 3,
    ACTIONS(285), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(283), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [2751] = 3,
    ACTIONS(289), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(287), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [2775] = 3,
    ACTIONS(293), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(291), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [2799] = 3,
    ACTIONS(297), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(295), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [2823] = 3,
    ACTIONS(301), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(299), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [2847] = 3,
    ACTIONS(305), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(303), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [2871] = 3,
    ACTIONS(309), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(307), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [2895] = 3,
    ACTIONS(313), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(311), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [2919] = 3,
    ACTIONS(317), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(315), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [2943] = 3,
    ACTIONS(321), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(319), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [2967] = 3,
    ACTIONS(325), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(323), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [2991] = 3,
    ACTIONS(329), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(327), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3015] = 3,
    ACTIONS(333), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(331), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3039] = 3,
    ACTIONS(337), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(335), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3063] = 3,
    ACTIONS(341), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(339), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3087] = 3,
    ACTIONS(345), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(343), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3111] = 3,
    ACTIONS(349), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(347), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3135] = 3,
    ACTIONS(353), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(351), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3159] = 3,
    ACTIONS(357), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(355), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3183] = 3,
    ACTIONS(361), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(359), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3207] = 3,
    ACTIONS(365), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(363), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3231] = 3,
    ACTIONS(369), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(367), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3255] = 3,
    ACTIONS(373), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(371), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3279] = 3,
    ACTIONS(377), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(375), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3303] = 3,
    ACTIONS(381), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(379), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3327] = 3,
    ACTIONS(385), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(383), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3351] = 3,
    ACTIONS(389), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(387), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3375] = 3,
    ACTIONS(393), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(391), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3399] = 3,
    ACTIONS(397), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(395), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3423] = 3,
    ACTIONS(401), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(399), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3447] = 3,
    ACTIONS(405), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(403), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3471] = 3,
    ACTIONS(409), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(407), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3495] = 3,
    ACTIONS(413), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(411), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3519] = 3,
    ACTIONS(417), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(415), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3543] = 3,
    ACTIONS(421), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(419), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3567] = 3,
    ACTIONS(425), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(423), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3591] = 3,
    ACTIONS(429), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(427), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3615] = 3,
    ACTIONS(433), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(431), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3639] = 3,
    ACTIONS(437), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(435), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3663] = 3,
    ACTIONS(441), 1,
      anon_sym_concept,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(439), 14,
      ts_builtin_sym_end,
      anon_sym_use,
      anon_sym_character,
      anon_sym_template,
      anon_sym_life_arc,
      anon_sym_schedule,
      anon_sym_behavior,
      anon_sym_institution,
      anon_sym_relationship,
      anon_sym_location,
      anon_sym_species,
      anon_sym_enum,
      anon_sym_sub_concept,
      anon_sym_concept_comparison,
  [3687] = 3,
    ACTIONS(275), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(271), 13,
      anon_sym_include,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [3710] = 3,
    ACTIONS(445), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(443), 13,
      anon_sym_include,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [3733] = 3,
    ACTIONS(449), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(447), 13,
      anon_sym_include,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [3756] = 3,
    ACTIONS(453), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(451), 13,
      anon_sym_include,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [3779] = 3,
    ACTIONS(457), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(455), 13,
      anon_sym_include,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [3802] = 3,
    ACTIONS(461), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(459), 13,
      anon_sym_include,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [3825] = 3,
    ACTIONS(465), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(463), 13,
      anon_sym_include,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [3848] = 3,
    ACTIONS(469), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(467), 13,
      anon_sym_include,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [3871] = 3,
    ACTIONS(473), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(471), 13,
      anon_sym_include,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [3894] = 3,
    ACTIONS(477), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(475), 13,
      anon_sym_include,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [3917] = 3,
    ACTIONS(481), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(479), 13,
      anon_sym_include,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [3940] = 3,
    ACTIONS(485), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(483), 13,
      anon_sym_include,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [3963] = 3,
    ACTIONS(489), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(487), 13,
      anon_sym_include,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [3986] = 3,
    ACTIONS(493), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(491), 13,
      anon_sym_include,
      anon_sym_choose,
      anon_sym_then,
      anon_sym_if,
      anon_sym_when,
      anon_sym_repeat,
      anon_sym_invert,
      anon_sym_retry,
      anon_sym_timeout,
      anon_sym_cooldown,
      anon_sym_succeed_always,
      anon_sym_fail_always,
      sym_identifier,
  [4009] = 10,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(495), 1,
      sym_identifier,
    ACTIONS(497), 1,
      anon_sym_RBRACE,
    STATE(8), 1,
      sym_path_segments,
    STATE(50), 1,
      sym_prose_block,
    STATE(219), 1,
      sym_path,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(151), 2,
      sym_participant,
      aux_sym_relationship_repeat1,
    STATE(155), 2,
      sym_field,
      aux_sym_template_repeat2,
  [4043] = 10,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(501), 1,
      anon_sym_RBRACE,
    ACTIONS(503), 1,
      anon_sym_on,
    STATE(50), 1,
      sym_prose_block,
    STATE(129), 1,
      sym_on_enter,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(125), 2,
      sym_field,
      aux_sym_template_repeat2,
    STATE(181), 2,
      sym_transition,
      aux_sym_arc_state_repeat1,
  [4077] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(505), 1,
      anon_sym_RBRACE,
    ACTIONS(507), 1,
      anon_sym_state,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(141), 2,
      sym_field,
      aux_sym_template_repeat2,
    STATE(174), 2,
      sym_arc_state,
      aux_sym_life_arc_repeat1,
  [4108] = 10,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(509), 1,
      anon_sym_RBRACE,
    ACTIONS(511), 1,
      anon_sym_remove,
    ACTIONS(513), 1,
      anon_sym_append,
    STATE(50), 1,
      sym_prose_block,
    STATE(168), 1,
      sym_field,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(123), 2,
      sym_override_op,
      aux_sym_override_repeat1,
  [4141] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(515), 1,
      anon_sym_RBRACE,
    ACTIONS(517), 1,
      anon_sym_include,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(126), 2,
      sym_include,
      aux_sym_template_repeat1,
    STATE(160), 2,
      sym_field,
      aux_sym_template_repeat2,
  [4172] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(517), 1,
      anon_sym_include,
    ACTIONS(519), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(132), 2,
      sym_include,
      aux_sym_template_repeat1,
    STATE(159), 2,
      sym_field,
      aux_sym_template_repeat2,
  [4203] = 10,
    ACTIONS(521), 1,
      sym_identifier,
    ACTIONS(524), 1,
      anon_sym_RBRACE,
    ACTIONS(526), 1,
      anon_sym_remove,
    ACTIONS(529), 1,
      anon_sym_append,
    ACTIONS(532), 1,
      sym_prose_marker,
    STATE(50), 1,
      sym_prose_block,
    STATE(168), 1,
      sym_field,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(123), 2,
      sym_override_op,
      aux_sym_override_repeat1,
  [4236] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(517), 1,
      anon_sym_include,
    ACTIONS(535), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(161), 2,
      sym_field,
      aux_sym_template_repeat2,
    STATE(162), 2,
      sym_include,
      aux_sym_template_repeat1,
  [4267] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_RBRACE,
    ACTIONS(539), 1,
      anon_sym_on,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(46), 2,
      sym_field,
      aux_sym_template_repeat2,
    STATE(178), 2,
      sym_transition,
      aux_sym_arc_state_repeat1,
  [4298] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(517), 1,
      anon_sym_include,
    ACTIONS(541), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(153), 2,
      sym_field,
      aux_sym_template_repeat2,
    STATE(162), 2,
      sym_include,
      aux_sym_template_repeat1,
  [4329] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(539), 1,
      anon_sym_on,
    ACTIONS(543), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(46), 2,
      sym_field,
      aux_sym_template_repeat2,
    STATE(187), 2,
      sym_transition,
      aux_sym_arc_state_repeat1,
  [4360] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(517), 1,
      anon_sym_include,
    ACTIONS(545), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(131), 2,
      sym_include,
      aux_sym_template_repeat1,
    STATE(157), 2,
      sym_field,
      aux_sym_template_repeat2,
  [4391] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(537), 1,
      anon_sym_RBRACE,
    ACTIONS(539), 1,
      anon_sym_on,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(127), 2,
      sym_field,
      aux_sym_template_repeat2,
    STATE(178), 2,
      sym_transition,
      aux_sym_arc_state_repeat1,
  [4422] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(549), 2,
      anon_sym_GT,
      anon_sym_LT,
    ACTIONS(547), 8,
      anon_sym_DOT,
      anon_sym_DASH_GT,
      anon_sym_RPAREN,
      anon_sym_is,
      anon_sym_or,
      anon_sym_and,
      anon_sym_GT_EQ,
      anon_sym_LT_EQ,
  [4441] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(517), 1,
      anon_sym_include,
    ACTIONS(551), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(158), 2,
      sym_field,
      aux_sym_template_repeat2,
    STATE(162), 2,
      sym_include,
      aux_sym_template_repeat1,
  [4472] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(517), 1,
      anon_sym_include,
    ACTIONS(545), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(157), 2,
      sym_field,
      aux_sym_template_repeat2,
    STATE(162), 2,
      sym_include,
      aux_sym_template_repeat1,
  [4503] = 5,
    ACTIONS(553), 1,
      anon_sym_DOT,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(559), 2,
      anon_sym_GT,
      anon_sym_LT,
    ACTIONS(557), 3,
      anon_sym_is,
      anon_sym_GT_EQ,
      anon_sym_LT_EQ,
    ACTIONS(555), 4,
      anon_sym_DASH_GT,
      anon_sym_RPAREN,
      anon_sym_or,
      anon_sym_and,
  [4526] = 10,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(511), 1,
      anon_sym_remove,
    ACTIONS(513), 1,
      anon_sym_append,
    ACTIONS(561), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(168), 1,
      sym_field,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(120), 2,
      sym_override_op,
      aux_sym_override_repeat1,
  [4559] = 5,
    ACTIONS(553), 1,
      anon_sym_DOT,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(559), 2,
      anon_sym_GT,
      anon_sym_LT,
    ACTIONS(557), 3,
      anon_sym_is,
      anon_sym_GT_EQ,
      anon_sym_LT_EQ,
    ACTIONS(563), 4,
      anon_sym_DASH_GT,
      anon_sym_RPAREN,
      anon_sym_or,
      anon_sym_and,
  [4582] = 6,
    ACTIONS(553), 1,
      anon_sym_DOT,
    ACTIONS(567), 1,
      anon_sym_and,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(559), 2,
      anon_sym_GT,
      anon_sym_LT,
    ACTIONS(557), 3,
      anon_sym_is,
      anon_sym_GT_EQ,
      anon_sym_LT_EQ,
    ACTIONS(565), 3,
      anon_sym_DASH_GT,
      anon_sym_RPAREN,
      anon_sym_or,
  [4607] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(517), 1,
      anon_sym_include,
    ACTIONS(569), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(144), 2,
      sym_include,
      aux_sym_template_repeat1,
    STATE(152), 2,
      sym_field,
      aux_sym_template_repeat2,
  [4638] = 4,
    ACTIONS(553), 1,
      anon_sym_DOT,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(573), 2,
      anon_sym_GT,
      anon_sym_LT,
    ACTIONS(571), 7,
      anon_sym_DASH_GT,
      anon_sym_RPAREN,
      anon_sym_is,
      anon_sym_or,
      anon_sym_and,
      anon_sym_GT_EQ,
      anon_sym_LT_EQ,
  [4659] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(575), 1,
      sym_identifier,
    ACTIONS(577), 1,
      anon_sym_RBRACE,
    ACTIONS(579), 1,
      sym_time,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(46), 2,
      sym_field,
      aux_sym_template_repeat2,
    STATE(185), 2,
      sym_schedule_block,
      aux_sym_schedule_repeat1,
  [4690] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(575), 1,
      sym_identifier,
    ACTIONS(579), 1,
      sym_time,
    ACTIONS(581), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(139), 2,
      sym_field,
      aux_sym_template_repeat2,
    STATE(175), 2,
      sym_schedule_block,
      aux_sym_schedule_repeat1,
  [4721] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(507), 1,
      anon_sym_state,
    ACTIONS(583), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(46), 2,
      sym_field,
      aux_sym_template_repeat2,
    STATE(191), 2,
      sym_arc_state,
      aux_sym_life_arc_repeat1,
  [4752] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(517), 1,
      anon_sym_include,
    ACTIONS(585), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(124), 2,
      sym_include,
      aux_sym_template_repeat1,
    STATE(156), 2,
      sym_field,
      aux_sym_template_repeat2,
  [4783] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(589), 2,
      anon_sym_GT,
      anon_sym_LT,
    ACTIONS(587), 8,
      anon_sym_DOT,
      anon_sym_DASH_GT,
      anon_sym_RPAREN,
      anon_sym_is,
      anon_sym_or,
      anon_sym_and,
      anon_sym_GT_EQ,
      anon_sym_LT_EQ,
  [4802] = 9,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(517), 1,
      anon_sym_include,
    ACTIONS(585), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(156), 2,
      sym_field,
      aux_sym_template_repeat2,
    STATE(162), 2,
      sym_include,
      aux_sym_template_repeat1,
  [4833] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(593), 2,
      anon_sym_GT,
      anon_sym_LT,
    ACTIONS(591), 8,
      anon_sym_DOT,
      anon_sym_DASH_GT,
      anon_sym_RPAREN,
      anon_sym_is,
      anon_sym_or,
      anon_sym_and,
      anon_sym_GT_EQ,
      anon_sym_LT_EQ,
  [4852] = 7,
    ACTIONS(553), 1,
      anon_sym_DOT,
    ACTIONS(567), 1,
      anon_sym_and,
    ACTIONS(595), 1,
      anon_sym_RPAREN,
    ACTIONS(597), 1,
      anon_sym_or,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(559), 2,
      anon_sym_GT,
      anon_sym_LT,
    ACTIONS(557), 3,
      anon_sym_is,
      anon_sym_GT_EQ,
      anon_sym_LT_EQ,
  [4878] = 7,
    ACTIONS(553), 1,
      anon_sym_DOT,
    ACTIONS(567), 1,
      anon_sym_and,
    ACTIONS(597), 1,
      anon_sym_or,
    ACTIONS(599), 1,
      anon_sym_RPAREN,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(559), 2,
      anon_sym_GT,
      anon_sym_LT,
    ACTIONS(557), 3,
      anon_sym_is,
      anon_sym_GT_EQ,
      anon_sym_LT_EQ,
  [4904] = 7,
    ACTIONS(52), 1,
      anon_sym_COLON_COLON,
    ACTIONS(601), 1,
      anon_sym_COLON,
    ACTIONS(603), 1,
      anon_sym_DOT,
    STATE(5), 1,
      aux_sym_path_segments_repeat1,
    STATE(179), 1,
      aux_sym_dotted_path_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(58), 4,
      anon_sym_LBRACE,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_as,
  [4930] = 7,
    ACTIONS(553), 1,
      anon_sym_DOT,
    ACTIONS(567), 1,
      anon_sym_and,
    ACTIONS(597), 1,
      anon_sym_or,
    ACTIONS(605), 1,
      anon_sym_DASH_GT,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(559), 2,
      anon_sym_GT,
      anon_sym_LT,
    ACTIONS(557), 3,
      anon_sym_is,
      anon_sym_GT_EQ,
      anon_sym_LT_EQ,
  [4956] = 7,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(575), 1,
      sym_identifier,
    ACTIONS(607), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(154), 2,
      sym_field,
      aux_sym_template_repeat2,
  [4980] = 6,
    ACTIONS(609), 1,
      sym_identifier,
    STATE(8), 1,
      sym_path_segments,
    STATE(219), 1,
      sym_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(612), 2,
      anon_sym_RBRACE,
      sym_prose_marker,
    STATE(151), 2,
      sym_participant,
      aux_sym_relationship_repeat1,
  [5002] = 7,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(575), 1,
      sym_identifier,
    ACTIONS(585), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(46), 2,
      sym_field,
      aux_sym_template_repeat2,
  [5026] = 7,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(575), 1,
      sym_identifier,
    ACTIONS(614), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(46), 2,
      sym_field,
      aux_sym_template_repeat2,
  [5050] = 7,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(575), 1,
      sym_identifier,
    ACTIONS(616), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(46), 2,
      sym_field,
      aux_sym_template_repeat2,
  [5074] = 7,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(575), 1,
      sym_identifier,
    ACTIONS(618), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(46), 2,
      sym_field,
      aux_sym_template_repeat2,
  [5098] = 7,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(535), 1,
      anon_sym_RBRACE,
    ACTIONS(575), 1,
      sym_identifier,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(46), 2,
      sym_field,
      aux_sym_template_repeat2,
  [5122] = 7,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(551), 1,
      anon_sym_RBRACE,
    ACTIONS(575), 1,
      sym_identifier,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(46), 2,
      sym_field,
      aux_sym_template_repeat2,
  [5146] = 7,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(575), 1,
      sym_identifier,
    ACTIONS(620), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(46), 2,
      sym_field,
      aux_sym_template_repeat2,
  [5170] = 7,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(545), 1,
      anon_sym_RBRACE,
    ACTIONS(575), 1,
      sym_identifier,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(46), 2,
      sym_field,
      aux_sym_template_repeat2,
  [5194] = 7,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(541), 1,
      anon_sym_RBRACE,
    ACTIONS(575), 1,
      sym_identifier,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(46), 2,
      sym_field,
      aux_sym_template_repeat2,
  [5218] = 7,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(575), 1,
      sym_identifier,
    ACTIONS(622), 1,
      anon_sym_RBRACE,
    STATE(50), 1,
      sym_prose_block,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(46), 2,
      sym_field,
      aux_sym_template_repeat2,
  [5242] = 5,
    ACTIONS(624), 1,
      sym_identifier,
    ACTIONS(628), 1,
      anon_sym_include,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(626), 2,
      anon_sym_RBRACE,
      sym_prose_marker,
    STATE(162), 2,
      sym_include,
      aux_sym_template_repeat1,
  [5261] = 6,
    ACTIONS(279), 1,
      anon_sym_RBRACE,
    ACTIONS(281), 1,
      anon_sym_LPAREN,
    ACTIONS(603), 1,
      anon_sym_DOT,
    ACTIONS(631), 1,
      anon_sym_COLON,
    STATE(179), 1,
      aux_sym_dotted_path_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5281] = 6,
    ACTIONS(118), 1,
      sym_prose_marker,
    ACTIONS(575), 1,
      sym_identifier,
    STATE(50), 1,
      sym_prose_block,
    STATE(166), 1,
      sym_field,
    STATE(284), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5301] = 5,
    ACTIONS(633), 1,
      sym_identifier,
    STATE(8), 1,
      sym_path_segments,
    STATE(219), 1,
      sym_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(117), 2,
      sym_participant,
      aux_sym_relationship_repeat1,
  [5319] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(637), 2,
      anon_sym_RBRACE,
      sym_prose_marker,
    ACTIONS(635), 3,
      anon_sym_remove,
      anon_sym_append,
      sym_identifier,
  [5333] = 6,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    ACTIONS(639), 1,
      anon_sym_COLON,
    ACTIONS(641), 1,
      anon_sym_from,
    STATE(84), 1,
      sym_block,
    STATE(272), 1,
      sym_template_clause,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5353] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(645), 2,
      anon_sym_RBRACE,
      sym_prose_marker,
    ACTIONS(643), 3,
      anon_sym_remove,
      anon_sym_append,
      sym_identifier,
  [5367] = 6,
    ACTIONS(499), 1,
      sym_identifier,
    ACTIONS(647), 1,
      sym_any_type,
    STATE(255), 1,
      sym_is_condition,
    STATE(257), 1,
      sym_condition_expr,
    STATE(340), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5387] = 5,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    ACTIONS(641), 1,
      anon_sym_from,
    STATE(90), 1,
      sym_block,
    STATE(247), 1,
      sym_template_clause,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5404] = 4,
    ACTIONS(651), 1,
      anon_sym_DOT,
    STATE(171), 1,
      aux_sym_dotted_path_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(649), 2,
      anon_sym_COLON,
      anon_sym_is,
  [5419] = 4,
    ACTIONS(603), 1,
      anon_sym_DOT,
    STATE(179), 1,
      aux_sym_dotted_path_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(631), 2,
      anon_sym_COLON,
      anon_sym_is,
  [5434] = 4,
    ACTIONS(654), 1,
      sym_identifier,
    STATE(225), 1,
      sym_sub_concept_field,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(339), 2,
      sym_sub_concept_enum_body,
      sym_sub_concept_record_body,
  [5449] = 4,
    ACTIONS(583), 1,
      anon_sym_RBRACE,
    ACTIONS(656), 1,
      anon_sym_state,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(186), 2,
      sym_arc_state,
      aux_sym_life_arc_repeat1,
  [5464] = 4,
    ACTIONS(577), 1,
      anon_sym_RBRACE,
    ACTIONS(579), 1,
      sym_time,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(184), 2,
      sym_schedule_block,
      aux_sym_schedule_repeat1,
  [5479] = 4,
    ACTIONS(660), 1,
      anon_sym_or,
    STATE(176), 1,
      aux_sym_is_condition_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(658), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [5494] = 5,
    ACTIONS(575), 1,
      sym_identifier,
    ACTIONS(663), 1,
      anon_sym_RBRACE,
    STATE(264), 1,
      sym_field_condition,
    STATE(299), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5511] = 4,
    ACTIONS(543), 1,
      anon_sym_RBRACE,
    ACTIONS(665), 1,
      anon_sym_on,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(190), 2,
      sym_transition,
      aux_sym_arc_state_repeat1,
  [5526] = 4,
    ACTIONS(603), 1,
      anon_sym_DOT,
    STATE(171), 1,
      aux_sym_dotted_path_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(667), 2,
      anon_sym_COLON,
      anon_sym_is,
  [5541] = 4,
    ACTIONS(671), 1,
      anon_sym_COMMA,
    STATE(180), 1,
      aux_sym_use_declaration_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(669), 2,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
  [5556] = 4,
    ACTIONS(537), 1,
      anon_sym_RBRACE,
    ACTIONS(665), 1,
      anon_sym_on,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(190), 2,
      sym_transition,
      aux_sym_arc_state_repeat1,
  [5571] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(674), 2,
      anon_sym_on,
      sym_identifier,
    ACTIONS(676), 2,
      anon_sym_RBRACE,
      sym_prose_marker,
  [5584] = 3,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(678), 2,
      anon_sym_include,
      sym_identifier,
    ACTIONS(680), 2,
      anon_sym_RBRACE,
      sym_prose_marker,
  [5597] = 4,
    ACTIONS(682), 1,
      anon_sym_RBRACE,
    ACTIONS(684), 1,
      sym_time,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(184), 2,
      sym_schedule_block,
      aux_sym_schedule_repeat1,
  [5612] = 4,
    ACTIONS(579), 1,
      sym_time,
    ACTIONS(687), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(184), 2,
      sym_schedule_block,
      aux_sym_schedule_repeat1,
  [5627] = 4,
    ACTIONS(689), 1,
      anon_sym_RBRACE,
    ACTIONS(691), 1,
      anon_sym_state,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(186), 2,
      sym_arc_state,
      aux_sym_life_arc_repeat1,
  [5642] = 4,
    ACTIONS(665), 1,
      anon_sym_on,
    ACTIONS(694), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(190), 2,
      sym_transition,
      aux_sym_arc_state_repeat1,
  [5657] = 5,
    ACTIONS(575), 1,
      sym_identifier,
    ACTIONS(696), 1,
      anon_sym_RBRACE,
    STATE(264), 1,
      sym_field_condition,
    STATE(299), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5674] = 5,
    ACTIONS(698), 1,
      anon_sym_COMMA,
    ACTIONS(700), 1,
      anon_sym_RBRACE,
    ACTIONS(702), 1,
      anon_sym_COLON,
    STATE(207), 1,
      aux_sym_use_declaration_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5691] = 4,
    ACTIONS(704), 1,
      anon_sym_RBRACE,
    ACTIONS(706), 1,
      anon_sym_on,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(190), 2,
      sym_transition,
      aux_sym_arc_state_repeat1,
  [5706] = 4,
    ACTIONS(656), 1,
      anon_sym_state,
    ACTIONS(709), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    STATE(186), 2,
      sym_arc_state,
      aux_sym_life_arc_repeat1,
  [5721] = 4,
    ACTIONS(713), 1,
      anon_sym_or,
    STATE(193), 1,
      aux_sym_is_condition_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(711), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [5736] = 4,
    ACTIONS(713), 1,
      anon_sym_or,
    STATE(176), 1,
      aux_sym_is_condition_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(715), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [5751] = 4,
    ACTIONS(717), 1,
      anon_sym_COMMA,
    ACTIONS(719), 1,
      anon_sym_RBRACE,
    STATE(230), 1,
      aux_sym_variant_pattern_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5765] = 4,
    ACTIONS(721), 1,
      anon_sym_LBRACE,
    ACTIONS(723), 1,
      anon_sym_COLON,
    ACTIONS(725), 1,
      anon_sym_strict,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5779] = 4,
    ACTIONS(727), 1,
      anon_sym_LBRACE,
    ACTIONS(729), 1,
      anon_sym_COMMA,
    STATE(227), 1,
      aux_sym_use_declaration_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5793] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(731), 3,
      anon_sym_COMMA,
      anon_sym_RBRACE,
      anon_sym_or,
  [5803] = 4,
    ACTIONS(227), 1,
      anon_sym_RBRACK,
    ACTIONS(733), 1,
      anon_sym_COMMA,
    STATE(231), 1,
      aux_sym_list_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5817] = 4,
    ACTIONS(575), 1,
      sym_identifier,
    STATE(264), 1,
      sym_field_condition,
    STATE(299), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5831] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(735), 3,
      anon_sym_RBRACE,
      sym_prose_marker,
      sym_identifier,
  [5841] = 4,
    ACTIONS(633), 1,
      sym_identifier,
    STATE(8), 1,
      sym_path_segments,
    STATE(115), 1,
      sym_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5855] = 4,
    ACTIONS(737), 1,
      anon_sym_COMMA,
    ACTIONS(739), 1,
      anon_sym_RBRACE,
    STATE(180), 1,
      aux_sym_use_declaration_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5869] = 4,
    ACTIONS(741), 1,
      anon_sym_COMMA,
    ACTIONS(743), 1,
      anon_sym_RBRACE,
    STATE(224), 1,
      aux_sym_sub_concept_record_body_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5883] = 4,
    ACTIONS(745), 1,
      sym_identifier,
    ACTIONS(747), 1,
      anon_sym_RBRACE,
    STATE(248), 1,
      sym_variant_pattern,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5897] = 4,
    ACTIONS(747), 1,
      anon_sym_RBRACE,
    ACTIONS(749), 1,
      anon_sym_COMMA,
    STATE(229), 1,
      aux_sym_concept_comparison_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5911] = 4,
    ACTIONS(743), 1,
      anon_sym_RBRACE,
    ACTIONS(751), 1,
      sym_identifier,
    STATE(253), 1,
      sym_sub_concept_field,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5925] = 4,
    ACTIONS(753), 1,
      anon_sym_COMMA,
    ACTIONS(755), 1,
      anon_sym_RBRACE,
    STATE(180), 1,
      aux_sym_use_declaration_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5939] = 4,
    ACTIONS(757), 1,
      anon_sym_COMMA,
    ACTIONS(759), 1,
      anon_sym_RBRACE,
    STATE(180), 1,
      aux_sym_use_declaration_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5953] = 4,
    ACTIONS(54), 1,
      anon_sym_SEMI,
    ACTIONS(761), 1,
      anon_sym_COLON_COLON,
    STATE(4), 1,
      aux_sym_path_segments_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5967] = 4,
    ACTIONS(764), 1,
      anon_sym_COMMA,
    ACTIONS(767), 1,
      anon_sym_RBRACE,
    STATE(210), 1,
      aux_sym_variant_pattern_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [5981] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(649), 3,
      anon_sym_COLON,
      anon_sym_DOT,
      anon_sym_is,
  [5991] = 4,
    ACTIONS(633), 1,
      sym_identifier,
    STATE(8), 1,
      sym_path_segments,
    STATE(283), 1,
      sym_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6005] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(669), 3,
      anon_sym_LBRACE,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [6015] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(769), 3,
      anon_sym_RBRACE,
      sym_prose_marker,
      sym_identifier,
  [6025] = 4,
    ACTIONS(771), 1,
      anon_sym_COMMA,
    ACTIONS(774), 1,
      anon_sym_RPAREN,
    STATE(215), 1,
      aux_sym_action_node_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6039] = 4,
    ACTIONS(148), 1,
      anon_sym_RPAREN,
    ACTIONS(776), 1,
      anon_sym_COMMA,
    STATE(215), 1,
      aux_sym_action_node_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6053] = 4,
    ACTIONS(778), 1,
      anon_sym_LBRACE,
    ACTIONS(780), 1,
      anon_sym_LPAREN,
    STATE(288), 1,
      sym_decorator_params,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6067] = 4,
    ACTIONS(782), 1,
      anon_sym_COMMA,
    ACTIONS(784), 1,
      anon_sym_RPAREN,
    STATE(216), 1,
      aux_sym_action_node_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6081] = 4,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    ACTIONS(786), 1,
      anon_sym_as,
    STATE(200), 1,
      sym_block,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6095] = 4,
    ACTIONS(788), 1,
      anon_sym_COMMA,
    ACTIONS(790), 1,
      anon_sym_RBRACE,
    STATE(202), 1,
      aux_sym_use_declaration_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6109] = 4,
    ACTIONS(792), 1,
      anon_sym_COMMA,
    ACTIONS(794), 1,
      anon_sym_RBRACE,
    STATE(205), 1,
      aux_sym_concept_comparison_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6123] = 4,
    ACTIONS(796), 1,
      anon_sym_COMMA,
    ACTIONS(798), 1,
      anon_sym_RBRACE,
    STATE(208), 1,
      aux_sym_use_declaration_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6137] = 4,
    ACTIONS(751), 1,
      sym_identifier,
    ACTIONS(800), 1,
      anon_sym_RBRACE,
    STATE(253), 1,
      sym_sub_concept_field,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6151] = 4,
    ACTIONS(802), 1,
      anon_sym_COMMA,
    ACTIONS(805), 1,
      anon_sym_RBRACE,
    STATE(224), 1,
      aux_sym_sub_concept_record_body_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6165] = 4,
    ACTIONS(807), 1,
      anon_sym_COMMA,
    ACTIONS(809), 1,
      anon_sym_RBRACE,
    STATE(203), 1,
      aux_sym_sub_concept_record_body_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6179] = 4,
    ACTIONS(575), 1,
      sym_identifier,
    STATE(194), 1,
      sym_field_condition,
    STATE(299), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6193] = 4,
    ACTIONS(811), 1,
      anon_sym_LBRACE,
    ACTIONS(813), 1,
      anon_sym_COMMA,
    STATE(180), 1,
      aux_sym_use_declaration_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6207] = 4,
    ACTIONS(745), 1,
      sym_identifier,
    ACTIONS(815), 1,
      anon_sym_RBRACE,
    STATE(248), 1,
      sym_variant_pattern,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6221] = 4,
    ACTIONS(817), 1,
      anon_sym_COMMA,
    ACTIONS(820), 1,
      anon_sym_RBRACE,
    STATE(229), 1,
      aux_sym_concept_comparison_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6235] = 4,
    ACTIONS(663), 1,
      anon_sym_RBRACE,
    ACTIONS(822), 1,
      anon_sym_COMMA,
    STATE(210), 1,
      aux_sym_variant_pattern_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6249] = 4,
    ACTIONS(824), 1,
      anon_sym_COMMA,
    ACTIONS(827), 1,
      anon_sym_RBRACK,
    STATE(231), 1,
      aux_sym_list_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6263] = 4,
    ACTIONS(58), 1,
      anon_sym_SEMI,
    ACTIONS(829), 1,
      anon_sym_COLON_COLON,
    STATE(209), 1,
      aux_sym_path_segments_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6277] = 4,
    ACTIONS(832), 1,
      anon_sym_COMMA,
    ACTIONS(834), 1,
      anon_sym_RBRACK,
    STATE(198), 1,
      aux_sym_list_repeat1,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6291] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(836), 2,
      anon_sym_RBRACE,
      anon_sym_state,
  [6300] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(838), 2,
      anon_sym_COMMA,
      anon_sym_RPAREN,
  [6309] = 3,
    ACTIONS(840), 1,
      anon_sym_COLON_COLON,
    ACTIONS(842), 1,
      anon_sym_SEMI,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6320] = 3,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    STATE(75), 1,
      sym_block,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6331] = 3,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    STATE(182), 1,
      sym_block,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6342] = 3,
    ACTIONS(844), 1,
      sym_integer,
    ACTIONS(846), 1,
      sym_duration,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6353] = 3,
    ACTIONS(848), 1,
      sym_identifier,
    STATE(236), 1,
      sym_path_segments,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6364] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(827), 2,
      anon_sym_COMMA,
      anon_sym_RBRACK,
  [6373] = 3,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    STATE(74), 1,
      sym_block,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6384] = 3,
    ACTIONS(850), 1,
      sym_identifier,
    ACTIONS(852), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6395] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(854), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [6404] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(856), 2,
      anon_sym_RBRACE,
      sym_time,
  [6413] = 3,
    ACTIONS(811), 1,
      anon_sym_LBRACE,
    ACTIONS(850), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6424] = 3,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    STATE(97), 1,
      sym_block,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6435] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(820), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [6444] = 3,
    ACTIONS(860), 1,
      aux_sym_prose_block_token1,
    ACTIONS(862), 1,
      sym_prose_content,
    ACTIONS(858), 2,
      sym_line_comment,
      sym_block_comment,
  [6455] = 3,
    ACTIONS(751), 1,
      sym_identifier,
    STATE(253), 1,
      sym_sub_concept_field,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6466] = 3,
    ACTIONS(850), 1,
      sym_identifier,
    ACTIONS(864), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6477] = 3,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    STATE(214), 1,
      sym_block,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6488] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(805), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [6497] = 3,
    ACTIONS(850), 1,
      sym_identifier,
    ACTIONS(866), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6508] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(868), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [6517] = 3,
    ACTIONS(870), 1,
      anon_sym_DOT_DOT,
    ACTIONS(872), 1,
      anon_sym_RPAREN,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6528] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(874), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [6537] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(876), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [6546] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(878), 2,
      anon_sym_RBRACE,
      anon_sym_state,
  [6555] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(880), 2,
      anon_sym_LBRACE,
      anon_sym_LPAREN,
  [6564] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(882), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [6573] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(774), 2,
      anon_sym_COMMA,
      anon_sym_RPAREN,
  [6582] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(884), 2,
      anon_sym_COMMA,
      anon_sym_RPAREN,
  [6591] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(767), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [6600] = 3,
    ACTIONS(850), 1,
      sym_identifier,
    ACTIONS(886), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6611] = 3,
    ACTIONS(755), 1,
      anon_sym_RBRACE,
    ACTIONS(850), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6622] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(888), 2,
      sym_any_type,
      sym_identifier,
  [6631] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(890), 2,
      anon_sym_RBRACE,
      anon_sym_on,
  [6640] = 3,
    ACTIONS(892), 1,
      anon_sym_LBRACE,
    ACTIONS(894), 1,
      anon_sym_STAR,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6651] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(896), 2,
      anon_sym_RBRACE,
      anon_sym_state,
  [6660] = 3,
    ACTIONS(759), 1,
      anon_sym_RBRACE,
    ACTIONS(850), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6671] = 3,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    STATE(70), 1,
      sym_block,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6682] = 3,
    ACTIONS(898), 1,
      sym_identifier,
    ACTIONS(900), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6693] = 3,
    ACTIONS(902), 1,
      sym_identifier,
    ACTIONS(904), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6704] = 3,
    ACTIONS(745), 1,
      sym_identifier,
    STATE(248), 1,
      sym_variant_pattern,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6715] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(906), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [6724] = 3,
    ACTIONS(132), 1,
      anon_sym_LBRACE,
    STATE(245), 1,
      sym_block,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6735] = 3,
    ACTIONS(745), 1,
      sym_identifier,
    STATE(221), 1,
      sym_variant_pattern,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6746] = 2,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
    ACTIONS(908), 2,
      anon_sym_RBRACE,
      anon_sym_state,
  [6755] = 3,
    ACTIONS(910), 1,
      anon_sym_LBRACE,
    ACTIONS(912), 1,
      anon_sym_strict,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6766] = 3,
    ACTIONS(739), 1,
      anon_sym_RBRACE,
    ACTIONS(850), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6777] = 3,
    ACTIONS(575), 1,
      sym_identifier,
    STATE(360), 1,
      sym_dotted_path,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6788] = 2,
    ACTIONS(914), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6796] = 2,
    ACTIONS(916), 1,
      anon_sym_COLON,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6804] = 2,
    ACTIONS(918), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6812] = 2,
    ACTIONS(920), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6820] = 2,
    ACTIONS(922), 1,
      anon_sym_SEMI,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6828] = 2,
    ACTIONS(924), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6836] = 2,
    ACTIONS(926), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6844] = 2,
    ACTIONS(928), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6852] = 2,
    ACTIONS(930), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6860] = 2,
    ACTIONS(932), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6868] = 2,
    ACTIONS(934), 1,
      anon_sym_DASH_GT,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6876] = 2,
    ACTIONS(936), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6884] = 2,
    ACTIONS(938), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6892] = 2,
    ACTIONS(940), 1,
      anon_sym_SEMI,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6900] = 2,
    ACTIONS(942), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6908] = 2,
    ACTIONS(944), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6916] = 2,
    ACTIONS(946), 1,
      anon_sym_COLON,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6924] = 2,
    ACTIONS(948), 1,
      anon_sym_LPAREN,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6932] = 2,
    ACTIONS(950), 1,
      anon_sym_LPAREN,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6940] = 2,
    ACTIONS(952), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6948] = 2,
    ACTIONS(954), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6956] = 2,
    ACTIONS(956), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6964] = 2,
    ACTIONS(958), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6972] = 2,
    ACTIONS(960), 1,
      anon_sym_RPAREN,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6980] = 2,
    ACTIONS(962), 1,
      anon_sym_DOT,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6988] = 2,
    ACTIONS(964), 1,
      sym_integer,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [6996] = 2,
    ACTIONS(966), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7004] = 2,
    ACTIONS(702), 1,
      anon_sym_COLON,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7012] = 2,
    ACTIONS(968), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7020] = 2,
    ACTIONS(970), 1,
      anon_sym_COLON,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7028] = 2,
    ACTIONS(972), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7036] = 2,
    ACTIONS(974), 1,
      anon_sym_SEMI,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7044] = 2,
    ACTIONS(976), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7052] = 2,
    ACTIONS(978), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7060] = 2,
    ACTIONS(980), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7068] = 2,
    ACTIONS(982), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7076] = 2,
    ACTIONS(984), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7084] = 2,
    ACTIONS(986), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7092] = 2,
    ACTIONS(988), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7100] = 2,
    ACTIONS(990), 1,
      sym_time,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7108] = 2,
    ACTIONS(992), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7116] = 2,
    ACTIONS(994), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7124] = 2,
    ACTIONS(996), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7132] = 2,
    ACTIONS(998), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7140] = 2,
    ACTIONS(1000), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7148] = 2,
    ACTIONS(850), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7156] = 2,
    ACTIONS(1002), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7164] = 2,
    ACTIONS(1004), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7172] = 2,
    ACTIONS(1006), 1,
      sym_float,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7180] = 2,
    ACTIONS(1006), 1,
      sym_integer,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7188] = 2,
    ACTIONS(1008), 1,
      sym_prose_marker,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7196] = 2,
    ACTIONS(1010), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7204] = 2,
    ACTIONS(1012), 1,
      ts_builtin_sym_end,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7212] = 2,
    ACTIONS(1014), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7220] = 2,
    ACTIONS(1016), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7228] = 2,
    ACTIONS(1018), 1,
      anon_sym_SEMI,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7236] = 2,
    ACTIONS(1020), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7244] = 2,
    ACTIONS(1022), 1,
      anon_sym_is,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7252] = 2,
    ACTIONS(872), 1,
      anon_sym_RPAREN,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7260] = 2,
    ACTIONS(1024), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7268] = 2,
    ACTIONS(1026), 1,
      anon_sym_COLON,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7276] = 2,
    ACTIONS(1028), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7284] = 2,
    ACTIONS(1030), 1,
      anon_sym_COLON,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7292] = 2,
    ACTIONS(1032), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7300] = 2,
    ACTIONS(1034), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7308] = 2,
    ACTIONS(1036), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7316] = 2,
    ACTIONS(1038), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7324] = 2,
    ACTIONS(1040), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7332] = 2,
    ACTIONS(1042), 1,
      sym_prose_marker,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7340] = 2,
    ACTIONS(1044), 1,
      sym_prose_content,
    ACTIONS(858), 2,
      sym_line_comment,
      sym_block_comment,
  [7348] = 2,
    ACTIONS(1046), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7356] = 2,
    ACTIONS(1048), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7364] = 2,
    ACTIONS(1050), 1,
      anon_sym_SEMI,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7372] = 2,
    ACTIONS(1052), 1,
      anon_sym_LBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7380] = 2,
    ACTIONS(1054), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7388] = 2,
    ACTIONS(1056), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7396] = 2,
    ACTIONS(1058), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7404] = 2,
    ACTIONS(1060), 1,
      anon_sym_is,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7412] = 2,
    ACTIONS(1062), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7420] = 2,
    ACTIONS(1064), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7428] = 2,
    ACTIONS(1066), 1,
      anon_sym_RBRACE,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7436] = 2,
    ACTIONS(1068), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
  [7444] = 2,
    ACTIONS(1070), 1,
      sym_identifier,
    ACTIONS(3), 2,
      sym_line_comment,
      sym_block_comment,
};

static const uint32_t ts_small_parse_table_map[] = {
  [SMALL_STATE(2)] = 0,
  [SMALL_STATE(3)] = 47,
  [SMALL_STATE(4)] = 94,
  [SMALL_STATE(5)] = 144,
  [SMALL_STATE(6)] = 193,
  [SMALL_STATE(7)] = 242,
  [SMALL_STATE(8)] = 287,
  [SMALL_STATE(9)] = 330,
  [SMALL_STATE(10)] = 371,
  [SMALL_STATE(11)] = 441,
  [SMALL_STATE(12)] = 511,
  [SMALL_STATE(13)] = 571,
  [SMALL_STATE(14)] = 631,
  [SMALL_STATE(15)] = 693,
  [SMALL_STATE(16)] = 755,
  [SMALL_STATE(17)] = 817,
  [SMALL_STATE(18)] = 868,
  [SMALL_STATE(19)] = 927,
  [SMALL_STATE(20)] = 962,
  [SMALL_STATE(21)] = 1013,
  [SMALL_STATE(22)] = 1048,
  [SMALL_STATE(23)] = 1099,
  [SMALL_STATE(24)] = 1150,
  [SMALL_STATE(25)] = 1201,
  [SMALL_STATE(26)] = 1233,
  [SMALL_STATE(27)] = 1281,
  [SMALL_STATE(28)] = 1337,
  [SMALL_STATE(29)] = 1369,
  [SMALL_STATE(30)] = 1417,
  [SMALL_STATE(31)] = 1449,
  [SMALL_STATE(32)] = 1481,
  [SMALL_STATE(33)] = 1529,
  [SMALL_STATE(34)] = 1577,
  [SMALL_STATE(35)] = 1609,
  [SMALL_STATE(36)] = 1665,
  [SMALL_STATE(37)] = 1697,
  [SMALL_STATE(38)] = 1729,
  [SMALL_STATE(39)] = 1761,
  [SMALL_STATE(40)] = 1817,
  [SMALL_STATE(41)] = 1849,
  [SMALL_STATE(42)] = 1881,
  [SMALL_STATE(43)] = 1913,
  [SMALL_STATE(44)] = 1966,
  [SMALL_STATE(45)] = 2019,
  [SMALL_STATE(46)] = 2066,
  [SMALL_STATE(47)] = 2107,
  [SMALL_STATE(48)] = 2154,
  [SMALL_STATE(49)] = 2201,
  [SMALL_STATE(50)] = 2254,
  [SMALL_STATE(51)] = 2283,
  [SMALL_STATE(52)] = 2312,
  [SMALL_STATE(53)] = 2357,
  [SMALL_STATE(54)] = 2399,
  [SMALL_STATE(55)] = 2441,
  [SMALL_STATE(56)] = 2483,
  [SMALL_STATE(57)] = 2525,
  [SMALL_STATE(58)] = 2567,
  [SMALL_STATE(59)] = 2609,
  [SMALL_STATE(60)] = 2651,
  [SMALL_STATE(61)] = 2675,
  [SMALL_STATE(62)] = 2701,
  [SMALL_STATE(63)] = 2727,
  [SMALL_STATE(64)] = 2751,
  [SMALL_STATE(65)] = 2775,
  [SMALL_STATE(66)] = 2799,
  [SMALL_STATE(67)] = 2823,
  [SMALL_STATE(68)] = 2847,
  [SMALL_STATE(69)] = 2871,
  [SMALL_STATE(70)] = 2895,
  [SMALL_STATE(71)] = 2919,
  [SMALL_STATE(72)] = 2943,
  [SMALL_STATE(73)] = 2967,
  [SMALL_STATE(74)] = 2991,
  [SMALL_STATE(75)] = 3015,
  [SMALL_STATE(76)] = 3039,
  [SMALL_STATE(77)] = 3063,
  [SMALL_STATE(78)] = 3087,
  [SMALL_STATE(79)] = 3111,
  [SMALL_STATE(80)] = 3135,
  [SMALL_STATE(81)] = 3159,
  [SMALL_STATE(82)] = 3183,
  [SMALL_STATE(83)] = 3207,
  [SMALL_STATE(84)] = 3231,
  [SMALL_STATE(85)] = 3255,
  [SMALL_STATE(86)] = 3279,
  [SMALL_STATE(87)] = 3303,
  [SMALL_STATE(88)] = 3327,
  [SMALL_STATE(89)] = 3351,
  [SMALL_STATE(90)] = 3375,
  [SMALL_STATE(91)] = 3399,
  [SMALL_STATE(92)] = 3423,
  [SMALL_STATE(93)] = 3447,
  [SMALL_STATE(94)] = 3471,
  [SMALL_STATE(95)] = 3495,
  [SMALL_STATE(96)] = 3519,
  [SMALL_STATE(97)] = 3543,
  [SMALL_STATE(98)] = 3567,
  [SMALL_STATE(99)] = 3591,
  [SMALL_STATE(100)] = 3615,
  [SMALL_STATE(101)] = 3639,
  [SMALL_STATE(102)] = 3663,
  [SMALL_STATE(103)] = 3687,
  [SMALL_STATE(104)] = 3710,
  [SMALL_STATE(105)] = 3733,
  [SMALL_STATE(106)] = 3756,
  [SMALL_STATE(107)] = 3779,
  [SMALL_STATE(108)] = 3802,
  [SMALL_STATE(109)] = 3825,
  [SMALL_STATE(110)] = 3848,
  [SMALL_STATE(111)] = 3871,
  [SMALL_STATE(112)] = 3894,
  [SMALL_STATE(113)] = 3917,
  [SMALL_STATE(114)] = 3940,
  [SMALL_STATE(115)] = 3963,
  [SMALL_STATE(116)] = 3986,
  [SMALL_STATE(117)] = 4009,
  [SMALL_STATE(118)] = 4043,
  [SMALL_STATE(119)] = 4077,
  [SMALL_STATE(120)] = 4108,
  [SMALL_STATE(121)] = 4141,
  [SMALL_STATE(122)] = 4172,
  [SMALL_STATE(123)] = 4203,
  [SMALL_STATE(124)] = 4236,
  [SMALL_STATE(125)] = 4267,
  [SMALL_STATE(126)] = 4298,
  [SMALL_STATE(127)] = 4329,
  [SMALL_STATE(128)] = 4360,
  [SMALL_STATE(129)] = 4391,
  [SMALL_STATE(130)] = 4422,
  [SMALL_STATE(131)] = 4441,
  [SMALL_STATE(132)] = 4472,
  [SMALL_STATE(133)] = 4503,
  [SMALL_STATE(134)] = 4526,
  [SMALL_STATE(135)] = 4559,
  [SMALL_STATE(136)] = 4582,
  [SMALL_STATE(137)] = 4607,
  [SMALL_STATE(138)] = 4638,
  [SMALL_STATE(139)] = 4659,
  [SMALL_STATE(140)] = 4690,
  [SMALL_STATE(141)] = 4721,
  [SMALL_STATE(142)] = 4752,
  [SMALL_STATE(143)] = 4783,
  [SMALL_STATE(144)] = 4802,
  [SMALL_STATE(145)] = 4833,
  [SMALL_STATE(146)] = 4852,
  [SMALL_STATE(147)] = 4878,
  [SMALL_STATE(148)] = 4904,
  [SMALL_STATE(149)] = 4930,
  [SMALL_STATE(150)] = 4956,
  [SMALL_STATE(151)] = 4980,
  [SMALL_STATE(152)] = 5002,
  [SMALL_STATE(153)] = 5026,
  [SMALL_STATE(154)] = 5050,
  [SMALL_STATE(155)] = 5074,
  [SMALL_STATE(156)] = 5098,
  [SMALL_STATE(157)] = 5122,
  [SMALL_STATE(158)] = 5146,
  [SMALL_STATE(159)] = 5170,
  [SMALL_STATE(160)] = 5194,
  [SMALL_STATE(161)] = 5218,
  [SMALL_STATE(162)] = 5242,
  [SMALL_STATE(163)] = 5261,
  [SMALL_STATE(164)] = 5281,
  [SMALL_STATE(165)] = 5301,
  [SMALL_STATE(166)] = 5319,
  [SMALL_STATE(167)] = 5333,
  [SMALL_STATE(168)] = 5353,
  [SMALL_STATE(169)] = 5367,
  [SMALL_STATE(170)] = 5387,
  [SMALL_STATE(171)] = 5404,
  [SMALL_STATE(172)] = 5419,
  [SMALL_STATE(173)] = 5434,
  [SMALL_STATE(174)] = 5449,
  [SMALL_STATE(175)] = 5464,
  [SMALL_STATE(176)] = 5479,
  [SMALL_STATE(177)] = 5494,
  [SMALL_STATE(178)] = 5511,
  [SMALL_STATE(179)] = 5526,
  [SMALL_STATE(180)] = 5541,
  [SMALL_STATE(181)] = 5556,
  [SMALL_STATE(182)] = 5571,
  [SMALL_STATE(183)] = 5584,
  [SMALL_STATE(184)] = 5597,
  [SMALL_STATE(185)] = 5612,
  [SMALL_STATE(186)] = 5627,
  [SMALL_STATE(187)] = 5642,
  [SMALL_STATE(188)] = 5657,
  [SMALL_STATE(189)] = 5674,
  [SMALL_STATE(190)] = 5691,
  [SMALL_STATE(191)] = 5706,
  [SMALL_STATE(192)] = 5721,
  [SMALL_STATE(193)] = 5736,
  [SMALL_STATE(194)] = 5751,
  [SMALL_STATE(195)] = 5765,
  [SMALL_STATE(196)] = 5779,
  [SMALL_STATE(197)] = 5793,
  [SMALL_STATE(198)] = 5803,
  [SMALL_STATE(199)] = 5817,
  [SMALL_STATE(200)] = 5831,
  [SMALL_STATE(201)] = 5841,
  [SMALL_STATE(202)] = 5855,
  [SMALL_STATE(203)] = 5869,
  [SMALL_STATE(204)] = 5883,
  [SMALL_STATE(205)] = 5897,
  [SMALL_STATE(206)] = 5911,
  [SMALL_STATE(207)] = 5925,
  [SMALL_STATE(208)] = 5939,
  [SMALL_STATE(209)] = 5953,
  [SMALL_STATE(210)] = 5967,
  [SMALL_STATE(211)] = 5981,
  [SMALL_STATE(212)] = 5991,
  [SMALL_STATE(213)] = 6005,
  [SMALL_STATE(214)] = 6015,
  [SMALL_STATE(215)] = 6025,
  [SMALL_STATE(216)] = 6039,
  [SMALL_STATE(217)] = 6053,
  [SMALL_STATE(218)] = 6067,
  [SMALL_STATE(219)] = 6081,
  [SMALL_STATE(220)] = 6095,
  [SMALL_STATE(221)] = 6109,
  [SMALL_STATE(222)] = 6123,
  [SMALL_STATE(223)] = 6137,
  [SMALL_STATE(224)] = 6151,
  [SMALL_STATE(225)] = 6165,
  [SMALL_STATE(226)] = 6179,
  [SMALL_STATE(227)] = 6193,
  [SMALL_STATE(228)] = 6207,
  [SMALL_STATE(229)] = 6221,
  [SMALL_STATE(230)] = 6235,
  [SMALL_STATE(231)] = 6249,
  [SMALL_STATE(232)] = 6263,
  [SMALL_STATE(233)] = 6277,
  [SMALL_STATE(234)] = 6291,
  [SMALL_STATE(235)] = 6300,
  [SMALL_STATE(236)] = 6309,
  [SMALL_STATE(237)] = 6320,
  [SMALL_STATE(238)] = 6331,
  [SMALL_STATE(239)] = 6342,
  [SMALL_STATE(240)] = 6353,
  [SMALL_STATE(241)] = 6364,
  [SMALL_STATE(242)] = 6373,
  [SMALL_STATE(243)] = 6384,
  [SMALL_STATE(244)] = 6395,
  [SMALL_STATE(245)] = 6404,
  [SMALL_STATE(246)] = 6413,
  [SMALL_STATE(247)] = 6424,
  [SMALL_STATE(248)] = 6435,
  [SMALL_STATE(249)] = 6444,
  [SMALL_STATE(250)] = 6455,
  [SMALL_STATE(251)] = 6466,
  [SMALL_STATE(252)] = 6477,
  [SMALL_STATE(253)] = 6488,
  [SMALL_STATE(254)] = 6497,
  [SMALL_STATE(255)] = 6508,
  [SMALL_STATE(256)] = 6517,
  [SMALL_STATE(257)] = 6528,
  [SMALL_STATE(258)] = 6537,
  [SMALL_STATE(259)] = 6546,
  [SMALL_STATE(260)] = 6555,
  [SMALL_STATE(261)] = 6564,
  [SMALL_STATE(262)] = 6573,
  [SMALL_STATE(263)] = 6582,
  [SMALL_STATE(264)] = 6591,
  [SMALL_STATE(265)] = 6600,
  [SMALL_STATE(266)] = 6611,
  [SMALL_STATE(267)] = 6622,
  [SMALL_STATE(268)] = 6631,
  [SMALL_STATE(269)] = 6640,
  [SMALL_STATE(270)] = 6651,
  [SMALL_STATE(271)] = 6660,
  [SMALL_STATE(272)] = 6671,
  [SMALL_STATE(273)] = 6682,
  [SMALL_STATE(274)] = 6693,
  [SMALL_STATE(275)] = 6704,
  [SMALL_STATE(276)] = 6715,
  [SMALL_STATE(277)] = 6724,
  [SMALL_STATE(278)] = 6735,
  [SMALL_STATE(279)] = 6746,
  [SMALL_STATE(280)] = 6755,
  [SMALL_STATE(281)] = 6766,
  [SMALL_STATE(282)] = 6777,
  [SMALL_STATE(283)] = 6788,
  [SMALL_STATE(284)] = 6796,
  [SMALL_STATE(285)] = 6804,
  [SMALL_STATE(286)] = 6812,
  [SMALL_STATE(287)] = 6820,
  [SMALL_STATE(288)] = 6828,
  [SMALL_STATE(289)] = 6836,
  [SMALL_STATE(290)] = 6844,
  [SMALL_STATE(291)] = 6852,
  [SMALL_STATE(292)] = 6860,
  [SMALL_STATE(293)] = 6868,
  [SMALL_STATE(294)] = 6876,
  [SMALL_STATE(295)] = 6884,
  [SMALL_STATE(296)] = 6892,
  [SMALL_STATE(297)] = 6900,
  [SMALL_STATE(298)] = 6908,
  [SMALL_STATE(299)] = 6916,
  [SMALL_STATE(300)] = 6924,
  [SMALL_STATE(301)] = 6932,
  [SMALL_STATE(302)] = 6940,
  [SMALL_STATE(303)] = 6948,
  [SMALL_STATE(304)] = 6956,
  [SMALL_STATE(305)] = 6964,
  [SMALL_STATE(306)] = 6972,
  [SMALL_STATE(307)] = 6980,
  [SMALL_STATE(308)] = 6988,
  [SMALL_STATE(309)] = 6996,
  [SMALL_STATE(310)] = 7004,
  [SMALL_STATE(311)] = 7012,
  [SMALL_STATE(312)] = 7020,
  [SMALL_STATE(313)] = 7028,
  [SMALL_STATE(314)] = 7036,
  [SMALL_STATE(315)] = 7044,
  [SMALL_STATE(316)] = 7052,
  [SMALL_STATE(317)] = 7060,
  [SMALL_STATE(318)] = 7068,
  [SMALL_STATE(319)] = 7076,
  [SMALL_STATE(320)] = 7084,
  [SMALL_STATE(321)] = 7092,
  [SMALL_STATE(322)] = 7100,
  [SMALL_STATE(323)] = 7108,
  [SMALL_STATE(324)] = 7116,
  [SMALL_STATE(325)] = 7124,
  [SMALL_STATE(326)] = 7132,
  [SMALL_STATE(327)] = 7140,
  [SMALL_STATE(328)] = 7148,
  [SMALL_STATE(329)] = 7156,
  [SMALL_STATE(330)] = 7164,
  [SMALL_STATE(331)] = 7172,
  [SMALL_STATE(332)] = 7180,
  [SMALL_STATE(333)] = 7188,
  [SMALL_STATE(334)] = 7196,
  [SMALL_STATE(335)] = 7204,
  [SMALL_STATE(336)] = 7212,
  [SMALL_STATE(337)] = 7220,
  [SMALL_STATE(338)] = 7228,
  [SMALL_STATE(339)] = 7236,
  [SMALL_STATE(340)] = 7244,
  [SMALL_STATE(341)] = 7252,
  [SMALL_STATE(342)] = 7260,
  [SMALL_STATE(343)] = 7268,
  [SMALL_STATE(344)] = 7276,
  [SMALL_STATE(345)] = 7284,
  [SMALL_STATE(346)] = 7292,
  [SMALL_STATE(347)] = 7300,
  [SMALL_STATE(348)] = 7308,
  [SMALL_STATE(349)] = 7316,
  [SMALL_STATE(350)] = 7324,
  [SMALL_STATE(351)] = 7332,
  [SMALL_STATE(352)] = 7340,
  [SMALL_STATE(353)] = 7348,
  [SMALL_STATE(354)] = 7356,
  [SMALL_STATE(355)] = 7364,
  [SMALL_STATE(356)] = 7372,
  [SMALL_STATE(357)] = 7380,
  [SMALL_STATE(358)] = 7388,
  [SMALL_STATE(359)] = 7396,
  [SMALL_STATE(360)] = 7404,
  [SMALL_STATE(361)] = 7412,
  [SMALL_STATE(362)] = 7420,
  [SMALL_STATE(363)] = 7428,
  [SMALL_STATE(364)] = 7436,
  [SMALL_STATE(365)] = 7444,
};

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),
  [7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(240),
  [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(365),
  [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(364),
  [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(361),
  [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(359),
  [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(357),
  [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(353),
  [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(350),
  [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(349),
  [25] = {.entry = {.count = 1, .reusable = true}}, SHIFT(348),
  [27] = {.entry = {.count = 1, .reusable = true}}, SHIFT(347),
  [29] = {.entry = {.count = 1, .reusable = false}}, SHIFT(346),
  [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(344),
  [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(336),
  [35] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_block, 3),
  [37] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_block, 3),
  [39] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_block, 2),
  [41] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_block, 2),
  [43] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_path_segments_repeat1, 2),
  [45] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_path_segments_repeat1, 2), SHIFT_REPEAT(302),
  [48] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_path_segments_repeat1, 2),
  [50] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_path_segments, 2),
  [52] = {.entry = {.count = 1, .reusable = true}}, SHIFT(302),
  [54] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_path_segments, 2),
  [56] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_path_segments, 1),
  [58] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_path_segments, 1),
  [60] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_path, 1),
  [62] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_path, 1),
  [64] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_boolean, 1),
  [66] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean, 1),
  [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1),
  [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2),
  [72] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(240),
  [75] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(365),
  [78] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(364),
  [81] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(361),
  [84] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(359),
  [87] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(357),
  [90] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(353),
  [93] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(350),
  [96] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(349),
  [99] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(348),
  [102] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(347),
  [105] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(346),
  [108] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(344),
  [111] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(336),
  [114] = {.entry = {.count = 1, .reusable = false}}, SHIFT(163),
  [116] = {.entry = {.count = 1, .reusable = false}}, SHIFT(201),
  [118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(285),
  [120] = {.entry = {.count = 1, .reusable = false}}, SHIFT(274),
  [122] = {.entry = {.count = 1, .reusable = false}}, SHIFT(273),
  [124] = {.entry = {.count = 1, .reusable = false}}, SHIFT(300),
  [126] = {.entry = {.count = 1, .reusable = false}}, SHIFT(301),
  [128] = {.entry = {.count = 1, .reusable = false}}, SHIFT(260),
  [130] = {.entry = {.count = 1, .reusable = false}}, SHIFT(148),
  [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(150),
  [134] = {.entry = {.count = 1, .reusable = false}}, SHIFT(19),
  [136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21),
  [138] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37),
  [140] = {.entry = {.count = 1, .reusable = false}}, SHIFT(9),
  [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35),
  [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(212),
  [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114),
  [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108),
  [150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107),
  [152] = {.entry = {.count = 1, .reusable = false}}, SHIFT(62),
  [154] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105),
  [156] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_value, 1),
  [158] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_value, 1),
  [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(332),
  [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112),
  [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(331),
  [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111),
  [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113),
  [170] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_selector_node_repeat1, 2), SHIFT_REPEAT(62),
  [173] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_selector_node_repeat1, 2),
  [175] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_selector_node_repeat1, 2), SHIFT_REPEAT(201),
  [178] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_selector_node_repeat1, 2), SHIFT_REPEAT(274),
  [181] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_selector_node_repeat1, 2), SHIFT_REPEAT(273),
  [184] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_selector_node_repeat1, 2), SHIFT_REPEAT(300),
  [187] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_selector_node_repeat1, 2), SHIFT_REPEAT(301),
  [190] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_selector_node_repeat1, 2), SHIFT_REPEAT(260),
  [193] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_prose_block, 5, .production_id = 14),
  [195] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_prose_block, 5, .production_id = 14),
  [197] = {.entry = {.count = 1, .reusable = false}}, SHIFT(6),
  [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41),
  [201] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_list, 4),
  [203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list, 4),
  [205] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_override, 5),
  [207] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_override, 5),
  [209] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_list, 3),
  [211] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list, 3),
  [213] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_object, 1),
  [215] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_object, 1),
  [217] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36),
  [219] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_list, 2),
  [221] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list, 2),
  [223] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_prose_block, 4, .production_id = 10),
  [225] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_prose_block, 4, .production_id = 10),
  [227] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28),
  [229] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_range, 3),
  [231] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_range, 3),
  [233] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_list, 5),
  [235] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list, 5),
  [237] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_override, 4),
  [239] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_override, 4),
  [241] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_template_repeat2, 2), SHIFT_REPEAT(172),
  [244] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_template_repeat2, 2),
  [246] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_template_repeat2, 2),
  [248] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_template_repeat2, 2), SHIFT_REPEAT(285),
  [251] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_field, 1),
  [253] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_field, 1),
  [255] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_field, 3, .production_id = 6),
  [257] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_field, 3, .production_id = 6),
  [259] = {.entry = {.count = 1, .reusable = false}}, SHIFT(143),
  [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(143),
  [263] = {.entry = {.count = 1, .reusable = false}}, SHIFT(238),
  [265] = {.entry = {.count = 1, .reusable = false}}, SHIFT(56),
  [267] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_use_declaration, 9),
  [269] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_use_declaration, 9),
  [271] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_condition_node, 4, .production_id = 11),
  [273] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45),
  [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition_node, 4, .production_id = 11),
  [277] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_action_node, 1),
  [279] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_node, 1),
  [281] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14),
  [283] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template, 8, .production_id = 8),
  [285] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_template, 8, .production_id = 8),
  [287] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_enum_declaration, 5, .production_id = 2),
  [289] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_enum_declaration, 5, .production_id = 2),
  [291] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_schedule, 5, .production_id = 2),
  [293] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_schedule, 5, .production_id = 2),
  [295] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_concept_comparison, 5, .production_id = 2),
  [297] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_concept_comparison, 5, .production_id = 2),
  [299] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_species, 5, .production_id = 2),
  [301] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_species, 5, .production_id = 2),
  [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_relationship, 5, .production_id = 2),
  [305] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_relationship, 5, .production_id = 2),
  [307] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_concept_comparison, 6, .production_id = 2),
  [309] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_concept_comparison, 6, .production_id = 2),
  [311] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_character, 4, .production_id = 3),
  [313] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_character, 4, .production_id = 3),
  [315] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template, 4, .production_id = 2),
  [317] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_template, 4, .production_id = 2),
  [319] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_concept_declaration, 3, .production_id = 2),
  [321] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_concept_declaration, 3, .production_id = 2),
  [323] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template, 7, .production_id = 2),
  [325] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_template, 7, .production_id = 2),
  [327] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_location, 3, .production_id = 2),
  [329] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_location, 3, .production_id = 2),
  [331] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_institution, 3, .production_id = 2),
  [333] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_institution, 3, .production_id = 2),
  [335] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_behavior, 5, .production_id = 5),
  [337] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_behavior, 5, .production_id = 5),
  [339] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_life_arc, 4, .production_id = 2),
  [341] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_life_arc, 4, .production_id = 2),
  [343] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_behavior, 6, .production_id = 9),
  [345] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_behavior, 6, .production_id = 9),
  [347] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template, 7, .production_id = 8),
  [349] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_template, 7, .production_id = 8),
  [351] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_life_arc, 5, .production_id = 2),
  [353] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_life_arc, 5, .production_id = 2),
  [355] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_schedule, 4, .production_id = 2),
  [357] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_schedule, 4, .production_id = 2),
  [359] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_use_declaration, 8),
  [361] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_use_declaration, 8),
  [363] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_relationship, 6, .production_id = 2),
  [365] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_relationship, 6, .production_id = 2),
  [367] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_character, 3, .production_id = 1),
  [369] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_character, 3, .production_id = 1),
  [371] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_concept_comparison, 7, .production_id = 2),
  [373] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_concept_comparison, 7, .production_id = 2),
  [375] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template, 5, .production_id = 2),
  [377] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_template, 5, .production_id = 2),
  [379] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_sub_concept, 7, .production_id = 13),
  [381] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_sub_concept, 7, .production_id = 13),
  [383] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_enum_declaration, 7, .production_id = 2),
  [385] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_enum_declaration, 7, .production_id = 2),
  [387] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_schedule, 6, .production_id = 2),
  [389] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_schedule, 6, .production_id = 2),
  [391] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_character, 5, .production_id = 4),
  [393] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_character, 5, .production_id = 4),
  [395] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_use_declaration, 3),
  [397] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_use_declaration, 3),
  [399] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_life_arc, 6, .production_id = 2),
  [401] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_life_arc, 6, .production_id = 2),
  [403] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template, 6, .production_id = 8),
  [405] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_template, 6, .production_id = 8),
  [407] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 1),
  [409] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_declaration, 1),
  [411] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_species, 6, .production_id = 2),
  [413] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_species, 6, .production_id = 2),
  [415] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_use_declaration, 5),
  [417] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_use_declaration, 5),
  [419] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_character, 6, .production_id = 7),
  [421] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_character, 6, .production_id = 7),
  [423] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_use_declaration, 7),
  [425] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_use_declaration, 7),
  [427] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_species, 4, .production_id = 2),
  [429] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_species, 4, .production_id = 2),
  [431] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_enum_declaration, 6, .production_id = 2),
  [433] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_enum_declaration, 6, .production_id = 2),
  [435] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template, 9, .production_id = 8),
  [437] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_template, 9, .production_id = 8),
  [439] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template, 6, .production_id = 2),
  [441] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_template, 6, .production_id = 2),
  [443] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_decorator_node, 5, .production_id = 17),
  [445] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_decorator_node, 5, .production_id = 17),
  [447] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_sequence_node, 4),
  [449] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_sequence_node, 4),
  [451] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_behavior_node, 1),
  [453] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_behavior_node, 1),
  [455] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_action_node, 6),
  [457] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_node, 6),
  [459] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_action_node, 5),
  [461] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_node, 5),
  [463] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_action_node, 4),
  [465] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_node, 4),
  [467] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_decorator_node, 4, .production_id = 12),
  [469] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_decorator_node, 4, .production_id = 12),
  [471] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_selector_node, 4),
  [473] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_selector_node, 4),
  [475] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_sequence_node, 5, .production_id = 15),
  [477] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_sequence_node, 5, .production_id = 15),
  [479] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_selector_node, 5, .production_id = 15),
  [481] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_selector_node, 5, .production_id = 15),
  [483] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_action_node, 3),
  [485] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_node, 3),
  [487] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_subtree_node, 2),
  [489] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subtree_node, 2),
  [491] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_if_decorator_node, 7, .production_id = 23),
  [493] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_if_decorator_node, 7, .production_id = 23),
  [495] = {.entry = {.count = 1, .reusable = true}}, SHIFT(148),
  [497] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68),
  [499] = {.entry = {.count = 1, .reusable = false}}, SHIFT(172),
  [501] = {.entry = {.count = 1, .reusable = true}}, SHIFT(234),
  [503] = {.entry = {.count = 1, .reusable = false}}, SHIFT(52),
  [505] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77),
  [507] = {.entry = {.count = 1, .reusable = false}}, SHIFT(290),
  [509] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30),
  [511] = {.entry = {.count = 1, .reusable = false}}, SHIFT(324),
  [513] = {.entry = {.count = 1, .reusable = false}}, SHIFT(164),
  [515] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99),
  [517] = {.entry = {.count = 1, .reusable = false}}, SHIFT(286),
  [519] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93),
  [521] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_override_repeat1, 2), SHIFT_REPEAT(172),
  [524] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_override_repeat1, 2),
  [526] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_override_repeat1, 2), SHIFT_REPEAT(324),
  [529] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_override_repeat1, 2), SHIFT_REPEAT(164),
  [532] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_override_repeat1, 2), SHIFT_REPEAT(285),
  [535] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102),
  [537] = {.entry = {.count = 1, .reusable = true}}, SHIFT(279),
  [539] = {.entry = {.count = 1, .reusable = false}}, SHIFT(59),
  [541] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67),
  [543] = {.entry = {.count = 1, .reusable = true}}, SHIFT(259),
  [545] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79),
  [547] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_field_access, 3),
  [549] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_field_access, 3),
  [551] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63),
  [553] = {.entry = {.count = 1, .reusable = true}}, SHIFT(313),
  [555] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_not_expression, 2),
  [557] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55),
  [559] = {.entry = {.count = 1, .reusable = false}}, SHIFT(55),
  [561] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42),
  [563] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_and_expression, 3),
  [565] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_or_expression, 3),
  [567] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58),
  [569] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71),
  [571] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comparison, 3, .production_id = 16),
  [573] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_comparison, 3, .production_id = 16),
  [575] = {.entry = {.count = 1, .reusable = true}}, SHIFT(172),
  [577] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65),
  [579] = {.entry = {.count = 1, .reusable = true}}, SHIFT(293),
  [581] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81),
  [583] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80),
  [585] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86),
  [587] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_primary_expression, 1),
  [589] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_primary_expression, 1),
  [591] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_expression, 1),
  [593] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_expression, 1),
  [595] = {.entry = {.count = 1, .reusable = true}}, SHIFT(103),
  [597] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57),
  [599] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61),
  [601] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_dotted_path, 1),
  [603] = {.entry = {.count = 1, .reusable = true}}, SHIFT(316),
  [605] = {.entry = {.count = 1, .reusable = true}}, SHIFT(330),
  [607] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3),
  [609] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_relationship_repeat1, 2), SHIFT_REPEAT(6),
  [612] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_relationship_repeat1, 2),
  [614] = {.entry = {.count = 1, .reusable = true}}, SHIFT(95),
  [616] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2),
  [618] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83),
  [620] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101),
  [622] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73),
  [624] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_template_repeat1, 2),
  [626] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_template_repeat1, 2),
  [628] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_template_repeat1, 2), SHIFT_REPEAT(286),
  [631] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_dotted_path, 1),
  [633] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6),
  [635] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_override_op, 2),
  [637] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_override_op, 2),
  [639] = {.entry = {.count = 1, .reusable = true}}, SHIFT(298),
  [641] = {.entry = {.count = 1, .reusable = true}}, SHIFT(297),
  [643] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_override_op, 1),
  [645] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_override_op, 1),
  [647] = {.entry = {.count = 1, .reusable = false}}, SHIFT(255),
  [649] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_dotted_path_repeat1, 2),
  [651] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_dotted_path_repeat1, 2), SHIFT_REPEAT(316),
  [654] = {.entry = {.count = 1, .reusable = true}}, SHIFT(189),
  [656] = {.entry = {.count = 1, .reusable = true}}, SHIFT(290),
  [658] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_is_condition_repeat1, 2),
  [660] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_is_condition_repeat1, 2), SHIFT_REPEAT(282),
  [663] = {.entry = {.count = 1, .reusable = true}}, SHIFT(261),
  [665] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59),
  [667] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_dotted_path, 2),
  [669] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_use_declaration_repeat1, 2),
  [671] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_use_declaration_repeat1, 2), SHIFT_REPEAT(328),
  [674] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_on_enter, 3),
  [676] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_on_enter, 3),
  [678] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_include, 2),
  [680] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_include, 2),
  [682] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_schedule_repeat1, 2),
  [684] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_schedule_repeat1, 2), SHIFT_REPEAT(293),
  [687] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89),
  [689] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_life_arc_repeat1, 2),
  [691] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_life_arc_repeat1, 2), SHIFT_REPEAT(290),
  [694] = {.entry = {.count = 1, .reusable = true}}, SHIFT(270),
  [696] = {.entry = {.count = 1, .reusable = true}}, SHIFT(276),
  [698] = {.entry = {.count = 1, .reusable = true}}, SHIFT(266),
  [700] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_sub_concept_enum_body, 1),
  [702] = {.entry = {.count = 1, .reusable = true}}, SHIFT(267),
  [704] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_arc_state_repeat1, 2),
  [706] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_arc_state_repeat1, 2), SHIFT_REPEAT(59),
  [709] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92),
  [711] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_is_condition, 3),
  [713] = {.entry = {.count = 1, .reusable = true}}, SHIFT(282),
  [715] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_is_condition, 4),
  [717] = {.entry = {.count = 1, .reusable = true}}, SHIFT(177),
  [719] = {.entry = {.count = 1, .reusable = true}}, SHIFT(244),
  [721] = {.entry = {.count = 1, .reusable = true}}, SHIFT(137),
  [723] = {.entry = {.count = 1, .reusable = true}}, SHIFT(295),
  [725] = {.entry = {.count = 1, .reusable = true}}, SHIFT(294),
  [727] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template_clause, 2),
  [729] = {.entry = {.count = 1, .reusable = true}}, SHIFT(246),
  [731] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_is_condition_repeat1, 4),
  [733] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27),
  [735] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_participant, 2),
  [737] = {.entry = {.count = 1, .reusable = true}}, SHIFT(251),
  [739] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100),
  [741] = {.entry = {.count = 1, .reusable = true}}, SHIFT(223),
  [743] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_sub_concept_record_body, 2),
  [745] = {.entry = {.count = 1, .reusable = true}}, SHIFT(312),
  [747] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69),
  [749] = {.entry = {.count = 1, .reusable = true}}, SHIFT(228),
  [751] = {.entry = {.count = 1, .reusable = true}}, SHIFT(310),
  [753] = {.entry = {.count = 1, .reusable = true}}, SHIFT(254),
  [755] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_sub_concept_enum_body, 2),
  [757] = {.entry = {.count = 1, .reusable = true}}, SHIFT(243),
  [759] = {.entry = {.count = 1, .reusable = true}}, SHIFT(338),
  [761] = {.entry = {.count = 2, .reusable = true}}, REDUCE(sym_path_segments, 2), SHIFT(302),
  [764] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_variant_pattern_repeat1, 2), SHIFT_REPEAT(199),
  [767] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_variant_pattern_repeat1, 2),
  [769] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_participant, 4),
  [771] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_action_node_repeat1, 2), SHIFT_REPEAT(18),
  [774] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_action_node_repeat1, 2),
  [776] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16),
  [778] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47),
  [780] = {.entry = {.count = 1, .reusable = true}}, SHIFT(239),
  [782] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15),
  [784] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109),
  [786] = {.entry = {.count = 1, .reusable = true}}, SHIFT(358),
  [788] = {.entry = {.count = 1, .reusable = true}}, SHIFT(281),
  [790] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64),
  [792] = {.entry = {.count = 1, .reusable = true}}, SHIFT(204),
  [794] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66),
  [796] = {.entry = {.count = 1, .reusable = true}}, SHIFT(271),
  [798] = {.entry = {.count = 1, .reusable = true}}, SHIFT(355),
  [800] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_sub_concept_record_body, 3),
  [802] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_sub_concept_record_body_repeat1, 2), SHIFT_REPEAT(250),
  [805] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_sub_concept_record_body_repeat1, 2),
  [807] = {.entry = {.count = 1, .reusable = true}}, SHIFT(206),
  [809] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_sub_concept_record_body, 1),
  [811] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template_clause, 3),
  [813] = {.entry = {.count = 1, .reusable = true}}, SHIFT(265),
  [815] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85),
  [817] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_concept_comparison_repeat1, 2), SHIFT_REPEAT(275),
  [820] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_concept_comparison_repeat1, 2),
  [822] = {.entry = {.count = 1, .reusable = true}}, SHIFT(188),
  [824] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_repeat1, 2), SHIFT_REPEAT(44),
  [827] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_repeat1, 2),
  [829] = {.entry = {.count = 2, .reusable = true}}, REDUCE(sym_path_segments, 1), SHIFT(302),
  [832] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39),
  [834] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31),
  [836] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_arc_state, 4, .production_id = 2),
  [838] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_param, 1),
  [840] = {.entry = {.count = 1, .reusable = true}}, SHIFT(269),
  [842] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91),
  [844] = {.entry = {.count = 1, .reusable = false}}, SHIFT(256),
  [846] = {.entry = {.count = 1, .reusable = true}}, SHIFT(341),
  [848] = {.entry = {.count = 1, .reusable = true}}, SHIFT(232),
  [850] = {.entry = {.count = 1, .reusable = true}}, SHIFT(213),
  [852] = {.entry = {.count = 1, .reusable = true}}, SHIFT(296),
  [854] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_variant_pattern, 5, .production_id = 19),
  [856] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_schedule_block, 6, .production_id = 20),
  [858] = {.entry = {.count = 1, .reusable = false}}, SHIFT_EXTRA(),
  [860] = {.entry = {.count = 1, .reusable = false}}, SHIFT(352),
  [862] = {.entry = {.count = 1, .reusable = false}}, SHIFT(351),
  [864] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88),
  [866] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_sub_concept_enum_body, 3),
  [868] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition_expr, 1),
  [870] = {.entry = {.count = 1, .reusable = true}}, SHIFT(308),
  [872] = {.entry = {.count = 1, .reusable = true}}, SHIFT(305),
  [874] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_field_condition, 3, .production_id = 21),
  [876] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_sub_concept_field, 3, .production_id = 18),
  [878] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_arc_state, 6, .production_id = 2),
  [880] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_decorator_keyword, 1),
  [882] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_variant_pattern, 6, .production_id = 19),
  [884] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_param, 3),
  [886] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template_clause, 4),
  [888] = {.entry = {.count = 1, .reusable = false}}, SHIFT(258),
  [890] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_transition, 4, .production_id = 22),
  [892] = {.entry = {.count = 1, .reusable = true}}, SHIFT(289),
  [894] = {.entry = {.count = 1, .reusable = true}}, SHIFT(287),
  [896] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_arc_state, 7, .production_id = 2),
  [898] = {.entry = {.count = 1, .reusable = true}}, SHIFT(329),
  [900] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33),
  [902] = {.entry = {.count = 1, .reusable = true}}, SHIFT(323),
  [904] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29),
  [906] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_variant_pattern, 7, .production_id = 19),
  [908] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_arc_state, 5, .production_id = 2),
  [910] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122),
  [912] = {.entry = {.count = 1, .reusable = true}}, SHIFT(317),
  [914] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134),
  [916] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43),
  [918] = {.entry = {.count = 1, .reusable = true}}, SHIFT(249),
  [920] = {.entry = {.count = 1, .reusable = true}}, SHIFT(183),
  [922] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96),
  [924] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48),
  [926] = {.entry = {.count = 1, .reusable = true}}, SHIFT(222),
  [928] = {.entry = {.count = 1, .reusable = true}}, SHIFT(320),
  [930] = {.entry = {.count = 1, .reusable = true}}, SHIFT(311),
  [932] = {.entry = {.count = 1, .reusable = true}}, SHIFT(220),
  [934] = {.entry = {.count = 1, .reusable = true}}, SHIFT(322),
  [936] = {.entry = {.count = 1, .reusable = true}}, SHIFT(142),
  [938] = {.entry = {.count = 1, .reusable = true}}, SHIFT(280),
  [940] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60),
  [942] = {.entry = {.count = 1, .reusable = true}}, SHIFT(196),
  [944] = {.entry = {.count = 1, .reusable = true}}, SHIFT(170),
  [946] = {.entry = {.count = 1, .reusable = true}}, SHIFT(169),
  [948] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53),
  [950] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54),
  [952] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7),
  [954] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104),
  [956] = {.entry = {.count = 1, .reusable = true}}, SHIFT(278),
  [958] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_decorator_params, 3),
  [960] = {.entry = {.count = 1, .reusable = true}}, SHIFT(337),
  [962] = {.entry = {.count = 1, .reusable = true}}, SHIFT(291),
  [964] = {.entry = {.count = 1, .reusable = true}}, SHIFT(306),
  [966] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76),
  [968] = {.entry = {.count = 1, .reusable = true}}, SHIFT(173),
  [970] = {.entry = {.count = 1, .reusable = true}}, SHIFT(356),
  [972] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130),
  [974] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72),
  [976] = {.entry = {.count = 1, .reusable = true}}, SHIFT(292),
  [978] = {.entry = {.count = 1, .reusable = true}}, SHIFT(211),
  [980] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128),
  [982] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121),
  [984] = {.entry = {.count = 1, .reusable = true}}, SHIFT(277),
  [986] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118),
  [988] = {.entry = {.count = 1, .reusable = true}}, SHIFT(165),
  [990] = {.entry = {.count = 1, .reusable = true}}, SHIFT(345),
  [992] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32),
  [994] = {.entry = {.count = 1, .reusable = true}}, SHIFT(166),
  [996] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12),
  [998] = {.entry = {.count = 1, .reusable = true}}, SHIFT(140),
  [1000] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119),
  [1002] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26),
  [1004] = {.entry = {.count = 1, .reusable = true}}, SHIFT(268),
  [1006] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40),
  [1008] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25),
  [1010] = {.entry = {.count = 1, .reusable = true}}, SHIFT(116),
  [1012] = {.entry = {.count = 1, .reusable = true}},  ACCEPT_INPUT(),
  [1014] = {.entry = {.count = 1, .reusable = true}}, SHIFT(304),
  [1016] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_decorator_params, 5),
  [1018] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82),
  [1020] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87),
  [1022] = {.entry = {.count = 1, .reusable = true}}, SHIFT(354),
  [1024] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110),
  [1026] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49),
  [1028] = {.entry = {.count = 1, .reusable = true}}, SHIFT(307),
  [1030] = {.entry = {.count = 1, .reusable = true}}, SHIFT(319),
  [1032] = {.entry = {.count = 1, .reusable = true}}, SHIFT(314),
  [1034] = {.entry = {.count = 1, .reusable = true}}, SHIFT(315),
  [1036] = {.entry = {.count = 1, .reusable = true}}, SHIFT(318),
  [1038] = {.entry = {.count = 1, .reusable = true}}, SHIFT(242),
  [1040] = {.entry = {.count = 1, .reusable = true}}, SHIFT(321),
  [1042] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38),
  [1044] = {.entry = {.count = 1, .reusable = false}}, SHIFT(333),
  [1046] = {.entry = {.count = 1, .reusable = true}}, SHIFT(237),
  [1048] = {.entry = {.count = 1, .reusable = true}}, SHIFT(192),
  [1050] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98),
  [1052] = {.entry = {.count = 1, .reusable = true}}, SHIFT(226),
  [1054] = {.entry = {.count = 1, .reusable = true}}, SHIFT(325),
  [1056] = {.entry = {.count = 1, .reusable = true}}, SHIFT(252),
  [1058] = {.entry = {.count = 1, .reusable = true}}, SHIFT(326),
  [1060] = {.entry = {.count = 1, .reusable = true}}, SHIFT(362),
  [1062] = {.entry = {.count = 1, .reusable = true}}, SHIFT(327),
  [1064] = {.entry = {.count = 1, .reusable = true}}, SHIFT(197),
  [1066] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78),
  [1068] = {.entry = {.count = 1, .reusable = true}}, SHIFT(195),
  [1070] = {.entry = {.count = 1, .reusable = true}}, SHIFT(167),
};

#ifdef __cplusplus
extern "C" {
#endif
#ifdef _WIN32
#define extern __declspec(dllexport)
#endif

extern const TSLanguage *tree_sitter_storybook(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,
    .primary_state_ids = ts_primary_state_ids,
  };
  return &language;
}
#ifdef __cplusplus
}
#endif
