#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 13
#define STATE_COUNT 939
#define LARGE_STATE_COUNT 646
#define SYMBOL_COUNT 72
#define ALIAS_COUNT 0
#define TOKEN_COUNT 51
#define EXTERNAL_TOKEN_COUNT 0
#define FIELD_COUNT 0
#define MAX_ALIAS_SEQUENCE_LENGTH 8
#define PRODUCTION_ID_COUNT 1

enum {
  sym_semicolon = 1,
  anon_sym_LBRACK = 2,
  anon_sym_RBRACK = 3,
  sym_symbol = 4,
  sym_string = 5,
  sym_any = 6,
  sym_zero = 7,
  sym_boundary = 8,
  sym_symbol_group = 9,
  anon_sym_LPAREN = 10,
  anon_sym_RPAREN = 11,
  anon_sym_BQUOTE = 12,
  anon_sym_COMMA = 13,
  sym_colon = 14,
  sym_complement = 15,
  sym_term_complement = 16,
  sym_contains = 17,
  sym_plus = 18,
  sym_star = 19,
  sym_repeat = 20,
  sym_upper = 21,
  sym_lower = 22,
  sym_reverse = 23,
  sym_inverse = 24,
  sym_ignore = 25,
  sym_ignore_inside = 26,
  sym_union = 27,
  sym_intersect = 28,
  sym_subtract = 29,
  anon_sym__ = 30,
  anon_sym_EQ_GT = 31,
  anon_sym_DASH_GT = 32,
  anon_sym_LT_DASH = 33,
  anon_sym_LPAREN_DASH_GT_RPAREN = 34,
  anon_sym_LPAREN_LT_DASH_RPAREN = 35,
  anon_sym_AT_DASH_GT = 36,
  anon_sym_DASH_GT_AT = 37,
  anon_sym_AT_GT = 38,
  anon_sym_GT_AT = 39,
  anon_sym_LBRACK_DOT = 40,
  anon_sym_DOT_RBRACK = 41,
  anon_sym_DOT_DOT_DOT = 42,
  anon_sym_PIPE_PIPE = 43,
  anon_sym_SLASH_SLASH = 44,
  anon_sym_BSLASH_BSLASH = 45,
  anon_sym_BSLASH_SLASH = 46,
  anon_sym_COMMA_COMMA = 47,
  sym_crossproduct = 48,
  sym_compose = 49,
  sym_comment = 50,
  sym_source_file = 51,
  sym_expression = 52,
  sym_optional = 53,
  sym_substitute = 54,
  sym_context = 55,
  sym_context_list = 56,
  sym_restrict = 57,
  sym_arrow = 58,
  sym_simple_replace = 59,
  sym_single_replace = 60,
  sym_mark = 61,
  sym_parallel_replace = 62,
  sym_condition_operators = 63,
  sym_conditional_replace = 64,
  sym_parallel_conditional_replace = 65,
  aux_sym_source_file_repeat1 = 66,
  aux_sym_optional_repeat1 = 67,
  aux_sym_substitute_repeat1 = 68,
  aux_sym_context_list_repeat1 = 69,
  aux_sym_parallel_replace_repeat1 = 70,
  aux_sym_parallel_conditional_replace_repeat1 = 71,
};

static const char *ts_symbol_names[] = {
  [ts_builtin_sym_end] = "end",
  [sym_semicolon] = "semicolon",
  [anon_sym_LBRACK] = "[",
  [anon_sym_RBRACK] = "]",
  [sym_symbol] = "symbol",
  [sym_string] = "string",
  [sym_any] = "any",
  [sym_zero] = "zero",
  [sym_boundary] = "boundary",
  [sym_symbol_group] = "symbol_group",
  [anon_sym_LPAREN] = "(",
  [anon_sym_RPAREN] = ")",
  [anon_sym_BQUOTE] = "`",
  [anon_sym_COMMA] = ",",
  [sym_colon] = "colon",
  [sym_complement] = "complement",
  [sym_term_complement] = "term_complement",
  [sym_contains] = "contains",
  [sym_plus] = "plus",
  [sym_star] = "star",
  [sym_repeat] = "repeat",
  [sym_upper] = "upper",
  [sym_lower] = "lower",
  [sym_reverse] = "reverse",
  [sym_inverse] = "inverse",
  [sym_ignore] = "ignore",
  [sym_ignore_inside] = "ignore_inside",
  [sym_union] = "union",
  [sym_intersect] = "intersect",
  [sym_subtract] = "subtract",
  [anon_sym__] = "_",
  [anon_sym_EQ_GT] = "=>",
  [anon_sym_DASH_GT] = "->",
  [anon_sym_LT_DASH] = "<-",
  [anon_sym_LPAREN_DASH_GT_RPAREN] = "(->)",
  [anon_sym_LPAREN_LT_DASH_RPAREN] = "(<-)",
  [anon_sym_AT_DASH_GT] = "@->",
  [anon_sym_DASH_GT_AT] = "->@",
  [anon_sym_AT_GT] = "@>",
  [anon_sym_GT_AT] = ">@",
  [anon_sym_LBRACK_DOT] = "[.",
  [anon_sym_DOT_RBRACK] = ".]",
  [anon_sym_DOT_DOT_DOT] = "...",
  [anon_sym_PIPE_PIPE] = "||",
  [anon_sym_SLASH_SLASH] = "//",
  [anon_sym_BSLASH_BSLASH] = "\\\\",
  [anon_sym_BSLASH_SLASH] = "\\/",
  [anon_sym_COMMA_COMMA] = ",,",
  [sym_crossproduct] = "crossproduct",
  [sym_compose] = "compose",
  [sym_comment] = "comment",
  [sym_source_file] = "source_file",
  [sym_expression] = "expression",
  [sym_optional] = "optional",
  [sym_substitute] = "substitute",
  [sym_context] = "context",
  [sym_context_list] = "context_list",
  [sym_restrict] = "restrict",
  [sym_arrow] = "arrow",
  [sym_simple_replace] = "simple_replace",
  [sym_single_replace] = "single_replace",
  [sym_mark] = "mark",
  [sym_parallel_replace] = "parallel_replace",
  [sym_condition_operators] = "condition_operators",
  [sym_conditional_replace] = "conditional_replace",
  [sym_parallel_conditional_replace] = "parallel_conditional_replace",
  [aux_sym_source_file_repeat1] = "source_file_repeat1",
  [aux_sym_optional_repeat1] = "optional_repeat1",
  [aux_sym_substitute_repeat1] = "substitute_repeat1",
  [aux_sym_context_list_repeat1] = "context_list_repeat1",
  [aux_sym_parallel_replace_repeat1] = "parallel_replace_repeat1",
  [aux_sym_parallel_conditional_replace_repeat1] = "parallel_conditional_replace_repeat1",
};

static TSSymbol ts_symbol_map[] = {
  [ts_builtin_sym_end] = ts_builtin_sym_end,
  [sym_semicolon] = sym_semicolon,
  [anon_sym_LBRACK] = anon_sym_LBRACK,
  [anon_sym_RBRACK] = anon_sym_RBRACK,
  [sym_symbol] = sym_symbol,
  [sym_string] = sym_string,
  [sym_any] = sym_any,
  [sym_zero] = sym_zero,
  [sym_boundary] = sym_boundary,
  [sym_symbol_group] = sym_symbol_group,
  [anon_sym_LPAREN] = anon_sym_LPAREN,
  [anon_sym_RPAREN] = anon_sym_RPAREN,
  [anon_sym_BQUOTE] = anon_sym_BQUOTE,
  [anon_sym_COMMA] = anon_sym_COMMA,
  [sym_colon] = sym_colon,
  [sym_complement] = sym_complement,
  [sym_term_complement] = sym_term_complement,
  [sym_contains] = sym_contains,
  [sym_plus] = sym_plus,
  [sym_star] = sym_star,
  [sym_repeat] = sym_repeat,
  [sym_upper] = sym_upper,
  [sym_lower] = sym_lower,
  [sym_reverse] = sym_reverse,
  [sym_inverse] = sym_inverse,
  [sym_ignore] = sym_ignore,
  [sym_ignore_inside] = sym_ignore_inside,
  [sym_union] = sym_union,
  [sym_intersect] = sym_intersect,
  [sym_subtract] = sym_subtract,
  [anon_sym__] = anon_sym__,
  [anon_sym_EQ_GT] = anon_sym_EQ_GT,
  [anon_sym_DASH_GT] = anon_sym_DASH_GT,
  [anon_sym_LT_DASH] = anon_sym_LT_DASH,
  [anon_sym_LPAREN_DASH_GT_RPAREN] = anon_sym_LPAREN_DASH_GT_RPAREN,
  [anon_sym_LPAREN_LT_DASH_RPAREN] = anon_sym_LPAREN_LT_DASH_RPAREN,
  [anon_sym_AT_DASH_GT] = anon_sym_AT_DASH_GT,
  [anon_sym_DASH_GT_AT] = anon_sym_DASH_GT_AT,
  [anon_sym_AT_GT] = anon_sym_AT_GT,
  [anon_sym_GT_AT] = anon_sym_GT_AT,
  [anon_sym_LBRACK_DOT] = anon_sym_LBRACK_DOT,
  [anon_sym_DOT_RBRACK] = anon_sym_DOT_RBRACK,
  [anon_sym_DOT_DOT_DOT] = anon_sym_DOT_DOT_DOT,
  [anon_sym_PIPE_PIPE] = anon_sym_PIPE_PIPE,
  [anon_sym_SLASH_SLASH] = anon_sym_SLASH_SLASH,
  [anon_sym_BSLASH_BSLASH] = anon_sym_BSLASH_BSLASH,
  [anon_sym_BSLASH_SLASH] = anon_sym_BSLASH_SLASH,
  [anon_sym_COMMA_COMMA] = anon_sym_COMMA_COMMA,
  [sym_crossproduct] = sym_crossproduct,
  [sym_compose] = sym_compose,
  [sym_comment] = sym_comment,
  [sym_source_file] = sym_source_file,
  [sym_expression] = sym_expression,
  [sym_optional] = sym_optional,
  [sym_substitute] = sym_substitute,
  [sym_context] = sym_context,
  [sym_context_list] = sym_context_list,
  [sym_restrict] = sym_restrict,
  [sym_arrow] = sym_arrow,
  [sym_simple_replace] = sym_simple_replace,
  [sym_single_replace] = sym_single_replace,
  [sym_mark] = sym_mark,
  [sym_parallel_replace] = sym_parallel_replace,
  [sym_condition_operators] = sym_condition_operators,
  [sym_conditional_replace] = sym_conditional_replace,
  [sym_parallel_conditional_replace] = sym_parallel_conditional_replace,
  [aux_sym_source_file_repeat1] = aux_sym_source_file_repeat1,
  [aux_sym_optional_repeat1] = aux_sym_optional_repeat1,
  [aux_sym_substitute_repeat1] = aux_sym_substitute_repeat1,
  [aux_sym_context_list_repeat1] = aux_sym_context_list_repeat1,
  [aux_sym_parallel_replace_repeat1] = aux_sym_parallel_replace_repeat1,
  [aux_sym_parallel_conditional_replace_repeat1] = aux_sym_parallel_conditional_replace_repeat1,
};

static const TSSymbolMetadata ts_symbol_metadata[] = {
  [ts_builtin_sym_end] = {
    .visible = false,
    .named = true,
  },
  [sym_semicolon] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_LBRACK] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RBRACK] = {
    .visible = true,
    .named = false,
  },
  [sym_symbol] = {
    .visible = true,
    .named = true,
  },
  [sym_string] = {
    .visible = true,
    .named = true,
  },
  [sym_any] = {
    .visible = true,
    .named = true,
  },
  [sym_zero] = {
    .visible = true,
    .named = true,
  },
  [sym_boundary] = {
    .visible = true,
    .named = true,
  },
  [sym_symbol_group] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_LPAREN] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RPAREN] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_BQUOTE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COMMA] = {
    .visible = true,
    .named = false,
  },
  [sym_colon] = {
    .visible = true,
    .named = true,
  },
  [sym_complement] = {
    .visible = true,
    .named = true,
  },
  [sym_term_complement] = {
    .visible = true,
    .named = true,
  },
  [sym_contains] = {
    .visible = true,
    .named = true,
  },
  [sym_plus] = {
    .visible = true,
    .named = true,
  },
  [sym_star] = {
    .visible = true,
    .named = true,
  },
  [sym_repeat] = {
    .visible = true,
    .named = true,
  },
  [sym_upper] = {
    .visible = true,
    .named = true,
  },
  [sym_lower] = {
    .visible = true,
    .named = true,
  },
  [sym_reverse] = {
    .visible = true,
    .named = true,
  },
  [sym_inverse] = {
    .visible = true,
    .named = true,
  },
  [sym_ignore] = {
    .visible = true,
    .named = true,
  },
  [sym_ignore_inside] = {
    .visible = true,
    .named = true,
  },
  [sym_union] = {
    .visible = true,
    .named = true,
  },
  [sym_intersect] = {
    .visible = true,
    .named = true,
  },
  [sym_subtract] = {
    .visible = true,
    .named = true,
  },
  [anon_sym__] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_EQ_GT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DASH_GT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LT_DASH] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LPAREN_DASH_GT_RPAREN] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LPAREN_LT_DASH_RPAREN] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_AT_DASH_GT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DASH_GT_AT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_AT_GT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_GT_AT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LBRACK_DOT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DOT_RBRACK] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DOT_DOT_DOT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_PIPE_PIPE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_SLASH_SLASH] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_BSLASH_BSLASH] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_BSLASH_SLASH] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COMMA_COMMA] = {
    .visible = true,
    .named = false,
  },
  [sym_crossproduct] = {
    .visible = true,
    .named = true,
  },
  [sym_compose] = {
    .visible = true,
    .named = true,
  },
  [sym_comment] = {
    .visible = true,
    .named = true,
  },
  [sym_source_file] = {
    .visible = true,
    .named = true,
  },
  [sym_expression] = {
    .visible = true,
    .named = true,
  },
  [sym_optional] = {
    .visible = true,
    .named = true,
  },
  [sym_substitute] = {
    .visible = true,
    .named = true,
  },
  [sym_context] = {
    .visible = true,
    .named = true,
  },
  [sym_context_list] = {
    .visible = true,
    .named = true,
  },
  [sym_restrict] = {
    .visible = true,
    .named = true,
  },
  [sym_arrow] = {
    .visible = true,
    .named = true,
  },
  [sym_simple_replace] = {
    .visible = true,
    .named = true,
  },
  [sym_single_replace] = {
    .visible = true,
    .named = true,
  },
  [sym_mark] = {
    .visible = true,
    .named = true,
  },
  [sym_parallel_replace] = {
    .visible = true,
    .named = true,
  },
  [sym_condition_operators] = {
    .visible = true,
    .named = true,
  },
  [sym_conditional_replace] = {
    .visible = true,
    .named = true,
  },
  [sym_parallel_conditional_replace] = {
    .visible = true,
    .named = true,
  },
  [aux_sym_source_file_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_optional_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_substitute_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_context_list_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_parallel_replace_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_parallel_conditional_replace_repeat1] = {
    .visible = false,
    .named = false,
  },
};

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

static uint16_t ts_non_terminal_alias_map[] = {
  0,
};

static inline bool sym_symbol_character_set_3(int32_t c) {
  return (c < ':'
    ? (c < ' '
      ? (c < '\t'
        ? c == 0
        : (c <= '\n' || c == '\r'))
      : (c <= ' ' || (c < '('
        ? (c >= '"' && c <= '&')
        : c <= '0')))
    : (c <= ':' || (c < '['
      ? (c < '>'
        ? c == '<'
        : c <= '?')
      : (c <= '^' || (c < '{'
        ? c == '`'
        : c <= '~')))));
}

static bool ts_lex(TSLexer *lexer, TSStateId state) {
  START_LEXER();
  eof = lexer->eof(lexer);
  switch (state) {
    case 0:
      if (eof) ADVANCE(42);
      if (lookahead == '!') ADVANCE(50);
      if (lookahead == '"') ADVANCE(36);
      if (lookahead == '#') ADVANCE(104);
      if (lookahead == '$') ADVANCE(66);
      if (lookahead == '%') ADVANCE(35);
      if (lookahead == '&') ADVANCE(81);
      if (lookahead == '(') ADVANCE(57);
      if (lookahead == ')') ADVANCE(58);
      if (lookahead == '*') ADVANCE(68);
      if (lookahead == '+') ADVANCE(67);
      if (lookahead == ',') ADVANCE(61);
      if (lookahead == '-') ADVANCE(82);
      if (lookahead == '.') ADVANCE(9);
      if (lookahead == '/') ADVANCE(77);
      if (lookahead == '0') ADVANCE(53);
      if (lookahead == ':') ADVANCE(62);
      if (lookahead == ';') ADVANCE(43);
      if (lookahead == '<') ADVANCE(17);
      if (lookahead == '=') ADVANCE(49);
      if (lookahead == '>') ADVANCE(28);
      if (lookahead == '?') ADVANCE(52);
      if (lookahead == '@') ADVANCE(47);
      if (lookahead == '[') ADVANCE(45);
      if (lookahead == '\\') ADVANCE(65);
      if (lookahead == ']') ADVANCE(46);
      if (lookahead == '^') ADVANCE(29);
      if (lookahead == '_') ADVANCE(83);
      if (lookahead == '`') ADVANCE(59);
      if (lookahead == '{') ADVANCE(37);
      if (lookahead == '|') ADVANCE(80);
      if (lookahead == '~') ADVANCE(63);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(0)
      if (lookahead != 0 &&
          lookahead != '}') ADVANCE(48);
      END_STATE();
    case 1:
      if (lookahead == '!') ADVANCE(50);
      if (lookahead == '"') ADVANCE(36);
      if (lookahead == '#') ADVANCE(104);
      if (lookahead == '$') ADVANCE(66);
      if (lookahead == '%') ADVANCE(35);
      if (lookahead == '&') ADVANCE(81);
      if (lookahead == '(') ADVANCE(57);
      if (lookahead == ')') ADVANCE(58);
      if (lookahead == '*') ADVANCE(68);
      if (lookahead == '+') ADVANCE(67);
      if (lookahead == ',') ADVANCE(61);
      if (lookahead == '-') ADVANCE(82);
      if (lookahead == '.') ADVANCE(9);
      if (lookahead == '/') ADVANCE(77);
      if (lookahead == '0') ADVANCE(53);
      if (lookahead == ':') ADVANCE(62);
      if (lookahead == '<') ADVANCE(17);
      if (lookahead == '=') ADVANCE(49);
      if (lookahead == '>') ADVANCE(28);
      if (lookahead == '?') ADVANCE(52);
      if (lookahead == '@') ADVANCE(47);
      if (lookahead == '[') ADVANCE(45);
      if (lookahead == '\\') ADVANCE(65);
      if (lookahead == ']') ADVANCE(46);
      if (lookahead == '^') ADVANCE(29);
      if (lookahead == '`') ADVANCE(59);
      if (lookahead == '{') ADVANCE(37);
      if (lookahead == '|') ADVANCE(80);
      if (lookahead == '~') ADVANCE(63);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(1)
      if (lookahead != 0 &&
          lookahead != '}') ADVANCE(48);
      END_STATE();
    case 2:
      if (lookahead == '!') ADVANCE(50);
      if (lookahead == '"') ADVANCE(36);
      if (lookahead == '#') ADVANCE(104);
      if (lookahead == '$') ADVANCE(66);
      if (lookahead == '%') ADVANCE(35);
      if (lookahead == '&') ADVANCE(81);
      if (lookahead == '(') ADVANCE(57);
      if (lookahead == ')') ADVANCE(58);
      if (lookahead == '*') ADVANCE(68);
      if (lookahead == '+') ADVANCE(67);
      if (lookahead == ',') ADVANCE(61);
      if (lookahead == '-') ADVANCE(82);
      if (lookahead == '.') ADVANCE(11);
      if (lookahead == '/') ADVANCE(76);
      if (lookahead == '0') ADVANCE(53);
      if (lookahead == ':') ADVANCE(62);
      if (lookahead == '<') ADVANCE(17);
      if (lookahead == '=') ADVANCE(49);
      if (lookahead == '>') ADVANCE(28);
      if (lookahead == '?') ADVANCE(52);
      if (lookahead == '@') ADVANCE(47);
      if (lookahead == '[') ADVANCE(45);
      if (lookahead == '\\') ADVANCE(64);
      if (lookahead == ']') ADVANCE(46);
      if (lookahead == '^') ADVANCE(29);
      if (lookahead == '`') ADVANCE(59);
      if (lookahead == '{') ADVANCE(37);
      if (lookahead == '|') ADVANCE(79);
      if (lookahead == '~') ADVANCE(63);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(2)
      if (lookahead != 0 &&
          lookahead != '}') ADVANCE(48);
      END_STATE();
    case 3:
      if (lookahead == '!') ADVANCE(50);
      if (lookahead == '"') ADVANCE(36);
      if (lookahead == '#') ADVANCE(104);
      if (lookahead == '$') ADVANCE(66);
      if (lookahead == '%') ADVANCE(35);
      if (lookahead == '&') ADVANCE(81);
      if (lookahead == '(') ADVANCE(57);
      if (lookahead == '*') ADVANCE(68);
      if (lookahead == '+') ADVANCE(67);
      if (lookahead == ',') ADVANCE(61);
      if (lookahead == '-') ADVANCE(82);
      if (lookahead == '.') ADVANCE(10);
      if (lookahead == '/') ADVANCE(77);
      if (lookahead == '0') ADVANCE(53);
      if (lookahead == ':') ADVANCE(62);
      if (lookahead == '<') ADVANCE(17);
      if (lookahead == '=') ADVANCE(49);
      if (lookahead == '>') ADVANCE(28);
      if (lookahead == '?') ADVANCE(52);
      if (lookahead == '@') ADVANCE(47);
      if (lookahead == '[') ADVANCE(45);
      if (lookahead == '\\') ADVANCE(65);
      if (lookahead == '^') ADVANCE(29);
      if (lookahead == '_') ADVANCE(83);
      if (lookahead == '`') ADVANCE(59);
      if (lookahead == '{') ADVANCE(37);
      if (lookahead == '|') ADVANCE(80);
      if (lookahead == '~') ADVANCE(63);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(3)
      if (lookahead != 0 &&
          lookahead != ')' &&
          lookahead != ']' &&
          lookahead != '}') ADVANCE(48);
      END_STATE();
    case 4:
      if (lookahead == '!') ADVANCE(50);
      if (lookahead == '"') ADVANCE(36);
      if (lookahead == '#') ADVANCE(104);
      if (lookahead == '$') ADVANCE(66);
      if (lookahead == '%') ADVANCE(35);
      if (lookahead == '&') ADVANCE(81);
      if (lookahead == '(') ADVANCE(57);
      if (lookahead == '*') ADVANCE(68);
      if (lookahead == '+') ADVANCE(67);
      if (lookahead == ',') ADVANCE(61);
      if (lookahead == '-') ADVANCE(82);
      if (lookahead == '.') ADVANCE(12);
      if (lookahead == '/') ADVANCE(76);
      if (lookahead == '0') ADVANCE(53);
      if (lookahead == ':') ADVANCE(62);
      if (lookahead == '<') ADVANCE(17);
      if (lookahead == '=') ADVANCE(49);
      if (lookahead == '>') ADVANCE(28);
      if (lookahead == '?') ADVANCE(52);
      if (lookahead == '@') ADVANCE(47);
      if (lookahead == '[') ADVANCE(45);
      if (lookahead == '\\') ADVANCE(64);
      if (lookahead == '^') ADVANCE(29);
      if (lookahead == '_') ADVANCE(83);
      if (lookahead == '`') ADVANCE(59);
      if (lookahead == '{') ADVANCE(37);
      if (lookahead == '|') ADVANCE(79);
      if (lookahead == '~') ADVANCE(63);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(4)
      if (lookahead != 0 &&
          lookahead != ')' &&
          lookahead != ']' &&
          lookahead != '}') ADVANCE(48);
      END_STATE();
    case 5:
      if (lookahead == '!') ADVANCE(50);
      if (lookahead == '"') ADVANCE(36);
      if (lookahead == '#') ADVANCE(104);
      if (lookahead == '$') ADVANCE(66);
      if (lookahead == '%') ADVANCE(35);
      if (lookahead == '(') ADVANCE(56);
      if (lookahead == '.') ADVANCE(7);
      if (lookahead == '0') ADVANCE(53);
      if (lookahead != 0 &&
          lookahead != '\t' &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          (lookahead < ' ' || '&' < lookahead) &&
          (lookahead < ')' || '/' < lookahead) &&
          lookahead != ':' &&
          lookahead != '<' &&
          lookahead != '>' &&
          lookahead != '?' &&
          (lookahead < '[' || '`' < lookahead) &&
          (lookahead < '{' || '~' < lookahead)) ADVANCE(48);
      if (lookahead == '?') ADVANCE(52);
      if (lookahead == '[') ADVANCE(45);
      if (lookahead == '\\') ADVANCE(64);
      if (lookahead == '_') ADVANCE(83);
      if (lookahead == '`') ADVANCE(59);
      if (lookahead == '{') ADVANCE(37);
      if (lookahead == '~') ADVANCE(63);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(5)
      END_STATE();
    case 6:
      if (lookahead == '"') ADVANCE(51);
      if (lookahead != 0) ADVANCE(6);
      END_STATE();
    case 7:
      if (lookahead == '#') ADVANCE(20);
      END_STATE();
    case 8:
      if (lookahead == '#') ADVANCE(20);
      if (lookahead == '.') ADVANCE(21);
      END_STATE();
    case 9:
      if (lookahead == '#') ADVANCE(20);
      if (lookahead == '.') ADVANCE(21);
      if (lookahead == '/') ADVANCE(22);
      if (lookahead == ']') ADVANCE(94);
      if (lookahead == 'i') ADVANCE(75);
      if (lookahead == 'l') ADVANCE(73);
      if (lookahead == 'o') ADVANCE(23);
      if (lookahead == 'r') ADVANCE(74);
      if (lookahead == 'u') ADVANCE(72);
      if (lookahead == 'x') ADVANCE(24);
      END_STATE();
    case 10:
      if (lookahead == '#') ADVANCE(20);
      if (lookahead == '.') ADVANCE(21);
      if (lookahead == '/') ADVANCE(22);
      if (lookahead == 'i') ADVANCE(75);
      if (lookahead == 'l') ADVANCE(73);
      if (lookahead == 'o') ADVANCE(23);
      if (lookahead == 'r') ADVANCE(74);
      if (lookahead == 'u') ADVANCE(72);
      if (lookahead == 'x') ADVANCE(24);
      END_STATE();
    case 11:
      if (lookahead == '#') ADVANCE(20);
      if (lookahead == '/') ADVANCE(22);
      if (lookahead == ']') ADVANCE(94);
      if (lookahead == 'i') ADVANCE(75);
      if (lookahead == 'l') ADVANCE(73);
      if (lookahead == 'o') ADVANCE(23);
      if (lookahead == 'r') ADVANCE(74);
      if (lookahead == 'u') ADVANCE(72);
      if (lookahead == 'x') ADVANCE(24);
      END_STATE();
    case 12:
      if (lookahead == '#') ADVANCE(20);
      if (lookahead == '/') ADVANCE(22);
      if (lookahead == 'i') ADVANCE(75);
      if (lookahead == 'l') ADVANCE(73);
      if (lookahead == 'o') ADVANCE(23);
      if (lookahead == 'r') ADVANCE(74);
      if (lookahead == 'u') ADVANCE(72);
      if (lookahead == 'x') ADVANCE(24);
      END_STATE();
    case 13:
      if (lookahead == ')') ADVANCE(87);
      END_STATE();
    case 14:
      if (lookahead == ')') ADVANCE(88);
      END_STATE();
    case 15:
      if (lookahead == ',') ADVANCE(34);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(15);
      END_STATE();
    case 16:
      if (lookahead == '-') ADVANCE(26);
      if (lookahead == '<') ADVANCE(19);
      END_STATE();
    case 17:
      if (lookahead == '-') ADVANCE(86);
      END_STATE();
    case 18:
      if (lookahead == '-') ADVANCE(27);
      if (lookahead == '>') ADVANCE(91);
      END_STATE();
    case 19:
      if (lookahead == '-') ADVANCE(14);
      END_STATE();
    case 20:
      if (lookahead == '.') ADVANCE(54);
      END_STATE();
    case 21:
      if (lookahead == '.') ADVANCE(95);
      END_STATE();
    case 22:
      if (lookahead == '.') ADVANCE(78);
      END_STATE();
    case 23:
      if (lookahead == '.') ADVANCE(102);
      END_STATE();
    case 24:
      if (lookahead == '.') ADVANCE(101);
      END_STATE();
    case 25:
      if (lookahead == '>') ADVANCE(85);
      END_STATE();
    case 26:
      if (lookahead == '>') ADVANCE(13);
      END_STATE();
    case 27:
      if (lookahead == '>') ADVANCE(89);
      END_STATE();
    case 28:
      if (lookahead == '@') ADVANCE(92);
      END_STATE();
    case 29:
      if (lookahead == '{') ADVANCE(32);
      if (lookahead == '<' ||
          lookahead == '>') ADVANCE(33);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(70);
      END_STATE();
    case 30:
      if (lookahead == '}') ADVANCE(55);
      if (lookahead != 0) ADVANCE(30);
      END_STATE();
    case 31:
      if (lookahead == '}') ADVANCE(69);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(31);
      END_STATE();
    case 32:
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(15);
      END_STATE();
    case 33:
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(71);
      END_STATE();
    case 34:
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(31);
      END_STATE();
    case 35:
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(48);
      END_STATE();
    case 36:
      if (lookahead != 0 &&
          lookahead != '"') ADVANCE(6);
      END_STATE();
    case 37:
      if (lookahead != 0 &&
          lookahead != '}') ADVANCE(30);
      END_STATE();
    case 38:
      if (eof) ADVANCE(42);
      if (lookahead == '!') ADVANCE(50);
      if (lookahead == '"') ADVANCE(36);
      if (lookahead == '#') ADVANCE(104);
      if (lookahead == '$') ADVANCE(66);
      if (lookahead == '%') ADVANCE(35);
      if (lookahead == '&') ADVANCE(81);
      if (lookahead == '(') ADVANCE(57);
      if (lookahead == '*') ADVANCE(68);
      if (lookahead == '+') ADVANCE(67);
      if (lookahead == ',') ADVANCE(61);
      if (lookahead == '-') ADVANCE(82);
      if (lookahead == '.') ADVANCE(10);
      if (lookahead == '/') ADVANCE(77);
      if (lookahead == '0') ADVANCE(53);
      if (lookahead == ':') ADVANCE(62);
      if (lookahead == ';') ADVANCE(43);
      if (lookahead == '<') ADVANCE(17);
      if (lookahead == '=') ADVANCE(49);
      if (lookahead == '>') ADVANCE(28);
      if (lookahead == '?') ADVANCE(52);
      if (lookahead == '@') ADVANCE(47);
      if (lookahead == '[') ADVANCE(45);
      if (lookahead == '\\') ADVANCE(65);
      if (lookahead == '^') ADVANCE(29);
      if (lookahead == '`') ADVANCE(59);
      if (lookahead == '{') ADVANCE(37);
      if (lookahead == '|') ADVANCE(80);
      if (lookahead == '~') ADVANCE(63);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(38)
      if (lookahead != 0 &&
          lookahead != ')' &&
          lookahead != ']' &&
          lookahead != '}') ADVANCE(48);
      END_STATE();
    case 39:
      if (eof) ADVANCE(42);
      if (lookahead == '!') ADVANCE(50);
      if (lookahead == '"') ADVANCE(36);
      if (lookahead == '#') ADVANCE(104);
      if (lookahead == '$') ADVANCE(66);
      if (lookahead == '%') ADVANCE(35);
      if (lookahead == '&') ADVANCE(81);
      if (lookahead == '(') ADVANCE(57);
      if (lookahead == '*') ADVANCE(68);
      if (lookahead == '+') ADVANCE(67);
      if (lookahead == ',') ADVANCE(61);
      if (lookahead == '-') ADVANCE(82);
      if (lookahead == '.') ADVANCE(12);
      if (lookahead == '/') ADVANCE(76);
      if (lookahead == '0') ADVANCE(53);
      if (lookahead == ':') ADVANCE(62);
      if (lookahead == ';') ADVANCE(43);
      if (lookahead == '<') ADVANCE(17);
      if (lookahead == '=') ADVANCE(49);
      if (lookahead == '>') ADVANCE(28);
      if (lookahead == '?') ADVANCE(52);
      if (lookahead == '@') ADVANCE(47);
      if (lookahead == '[') ADVANCE(45);
      if (lookahead == '\\') ADVANCE(64);
      if (lookahead == '^') ADVANCE(29);
      if (lookahead == '`') ADVANCE(59);
      if (lookahead == '{') ADVANCE(37);
      if (lookahead == '|') ADVANCE(79);
      if (lookahead == '~') ADVANCE(63);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(39)
      if (lookahead != 0 &&
          lookahead != ')' &&
          lookahead != ']' &&
          lookahead != '}') ADVANCE(48);
      END_STATE();
    case 40:
      if (eof) ADVANCE(42);
      if (lookahead == '!') ADVANCE(50);
      if (lookahead == '"') ADVANCE(36);
      if (lookahead == '#') ADVANCE(104);
      if (lookahead == '$') ADVANCE(66);
      if (lookahead == '%') ADVANCE(35);
      if (lookahead == '(') ADVANCE(56);
      if (lookahead == ')') ADVANCE(58);
      if (lookahead == '.') ADVANCE(8);
      if (lookahead == '0') ADVANCE(53);
      if (lookahead != 0 &&
          lookahead != '\t' &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          (lookahead < ' ' || '&' < lookahead) &&
          (lookahead < '*' || '/' < lookahead) &&
          lookahead != ':' &&
          lookahead != '<' &&
          lookahead != '>' &&
          lookahead != '?' &&
          (lookahead < '[' || '^' < lookahead) &&
          lookahead != '`' &&
          (lookahead < '{' || '~' < lookahead)) ADVANCE(48);
      if (lookahead == '?') ADVANCE(52);
      if (lookahead == '[') ADVANCE(45);
      if (lookahead == '\\') ADVANCE(64);
      if (lookahead == ']') ADVANCE(46);
      if (lookahead == '`') ADVANCE(59);
      if (lookahead == '{') ADVANCE(37);
      if (lookahead == '~') ADVANCE(63);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(40)
      END_STATE();
    case 41:
      if (eof) ADVANCE(42);
      if (lookahead == '(') ADVANCE(16);
      if (lookahead == ',') ADVANCE(60);
      if (lookahead == '-') ADVANCE(25);
      if (lookahead == '<') ADVANCE(17);
      if (lookahead == '>') ADVANCE(28);
      if (lookahead == '@') ADVANCE(18);
      if (lookahead == '[') ADVANCE(44);
      if (lookahead == '!' ||
          lookahead == '#') ADVANCE(104);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(41)
      END_STATE();
    case 42:
      ACCEPT_TOKEN(ts_builtin_sym_end);
      END_STATE();
    case 43:
      ACCEPT_TOKEN(sym_semicolon);
      if (lookahead == '%') ADVANCE(35);
      if (!sym_symbol_character_set_3(lookahead)) ADVANCE(48);
      END_STATE();
    case 44:
      ACCEPT_TOKEN(anon_sym_LBRACK);
      END_STATE();
    case 45:
      ACCEPT_TOKEN(anon_sym_LBRACK);
      if (lookahead == '.') ADVANCE(93);
      END_STATE();
    case 46:
      ACCEPT_TOKEN(anon_sym_RBRACK);
      END_STATE();
    case 47:
      ACCEPT_TOKEN(sym_symbol);
      if (lookahead == '%') ADVANCE(35);
      if (lookahead == '-') ADVANCE(27);
      if (!sym_symbol_character_set_3(lookahead)) ADVANCE(48);
      if (lookahead == '>') ADVANCE(91);
      END_STATE();
    case 48:
      ACCEPT_TOKEN(sym_symbol);
      if (lookahead == '%') ADVANCE(35);
      if (!sym_symbol_character_set_3(lookahead)) ADVANCE(48);
      END_STATE();
    case 49:
      ACCEPT_TOKEN(sym_symbol);
      if (lookahead == '%') ADVANCE(35);
      if (!sym_symbol_character_set_3(lookahead)) ADVANCE(48);
      if (lookahead == '>') ADVANCE(84);
      END_STATE();
    case 50:
      ACCEPT_TOKEN(sym_symbol);
      if (lookahead == '%') ADVANCE(103);
      if (!sym_symbol_character_set_3(lookahead)) ADVANCE(50);
      if (lookahead == '\t' ||
          lookahead == '\r' ||
          lookahead == ' ' ||
          ('"' <= lookahead && lookahead <= '&') ||
          ('(' <= lookahead && lookahead <= '0') ||
          lookahead == ':' ||
          lookahead == '<' ||
          lookahead == '>' ||
          lookahead == '?' ||
          ('[' <= lookahead && lookahead <= '^') ||
          lookahead == '`' ||
          ('{' <= lookahead && lookahead <= '~')) ADVANCE(104);
      END_STATE();
    case 51:
      ACCEPT_TOKEN(sym_string);
      END_STATE();
    case 52:
      ACCEPT_TOKEN(sym_any);
      END_STATE();
    case 53:
      ACCEPT_TOKEN(sym_zero);
      END_STATE();
    case 54:
      ACCEPT_TOKEN(sym_boundary);
      END_STATE();
    case 55:
      ACCEPT_TOKEN(sym_symbol_group);
      END_STATE();
    case 56:
      ACCEPT_TOKEN(anon_sym_LPAREN);
      END_STATE();
    case 57:
      ACCEPT_TOKEN(anon_sym_LPAREN);
      if (lookahead == '-') ADVANCE(26);
      if (lookahead == '<') ADVANCE(19);
      END_STATE();
    case 58:
      ACCEPT_TOKEN(anon_sym_RPAREN);
      END_STATE();
    case 59:
      ACCEPT_TOKEN(anon_sym_BQUOTE);
      END_STATE();
    case 60:
      ACCEPT_TOKEN(anon_sym_COMMA);
      END_STATE();
    case 61:
      ACCEPT_TOKEN(anon_sym_COMMA);
      if (lookahead == ',') ADVANCE(100);
      END_STATE();
    case 62:
      ACCEPT_TOKEN(sym_colon);
      END_STATE();
    case 63:
      ACCEPT_TOKEN(sym_complement);
      END_STATE();
    case 64:
      ACCEPT_TOKEN(sym_term_complement);
      END_STATE();
    case 65:
      ACCEPT_TOKEN(sym_term_complement);
      if (lookahead == '/') ADVANCE(99);
      if (lookahead == '\\') ADVANCE(98);
      END_STATE();
    case 66:
      ACCEPT_TOKEN(sym_contains);
      END_STATE();
    case 67:
      ACCEPT_TOKEN(sym_plus);
      END_STATE();
    case 68:
      ACCEPT_TOKEN(sym_star);
      END_STATE();
    case 69:
      ACCEPT_TOKEN(sym_repeat);
      END_STATE();
    case 70:
      ACCEPT_TOKEN(sym_repeat);
      if (lookahead == ',') ADVANCE(33);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(70);
      END_STATE();
    case 71:
      ACCEPT_TOKEN(sym_repeat);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(71);
      END_STATE();
    case 72:
      ACCEPT_TOKEN(sym_upper);
      END_STATE();
    case 73:
      ACCEPT_TOKEN(sym_lower);
      END_STATE();
    case 74:
      ACCEPT_TOKEN(sym_reverse);
      END_STATE();
    case 75:
      ACCEPT_TOKEN(sym_inverse);
      END_STATE();
    case 76:
      ACCEPT_TOKEN(sym_ignore);
      END_STATE();
    case 77:
      ACCEPT_TOKEN(sym_ignore);
      if (lookahead == '/') ADVANCE(97);
      END_STATE();
    case 78:
      ACCEPT_TOKEN(sym_ignore_inside);
      END_STATE();
    case 79:
      ACCEPT_TOKEN(sym_union);
      END_STATE();
    case 80:
      ACCEPT_TOKEN(sym_union);
      if (lookahead == '|') ADVANCE(96);
      END_STATE();
    case 81:
      ACCEPT_TOKEN(sym_intersect);
      END_STATE();
    case 82:
      ACCEPT_TOKEN(sym_subtract);
      if (lookahead == '>') ADVANCE(85);
      END_STATE();
    case 83:
      ACCEPT_TOKEN(anon_sym__);
      if (lookahead == '%') ADVANCE(35);
      if (!sym_symbol_character_set_3(lookahead)) ADVANCE(48);
      END_STATE();
    case 84:
      ACCEPT_TOKEN(anon_sym_EQ_GT);
      END_STATE();
    case 85:
      ACCEPT_TOKEN(anon_sym_DASH_GT);
      if (lookahead == '@') ADVANCE(90);
      END_STATE();
    case 86:
      ACCEPT_TOKEN(anon_sym_LT_DASH);
      END_STATE();
    case 87:
      ACCEPT_TOKEN(anon_sym_LPAREN_DASH_GT_RPAREN);
      END_STATE();
    case 88:
      ACCEPT_TOKEN(anon_sym_LPAREN_LT_DASH_RPAREN);
      END_STATE();
    case 89:
      ACCEPT_TOKEN(anon_sym_AT_DASH_GT);
      END_STATE();
    case 90:
      ACCEPT_TOKEN(anon_sym_DASH_GT_AT);
      END_STATE();
    case 91:
      ACCEPT_TOKEN(anon_sym_AT_GT);
      END_STATE();
    case 92:
      ACCEPT_TOKEN(anon_sym_GT_AT);
      END_STATE();
    case 93:
      ACCEPT_TOKEN(anon_sym_LBRACK_DOT);
      END_STATE();
    case 94:
      ACCEPT_TOKEN(anon_sym_DOT_RBRACK);
      END_STATE();
    case 95:
      ACCEPT_TOKEN(anon_sym_DOT_DOT_DOT);
      END_STATE();
    case 96:
      ACCEPT_TOKEN(anon_sym_PIPE_PIPE);
      END_STATE();
    case 97:
      ACCEPT_TOKEN(anon_sym_SLASH_SLASH);
      END_STATE();
    case 98:
      ACCEPT_TOKEN(anon_sym_BSLASH_BSLASH);
      END_STATE();
    case 99:
      ACCEPT_TOKEN(anon_sym_BSLASH_SLASH);
      END_STATE();
    case 100:
      ACCEPT_TOKEN(anon_sym_COMMA_COMMA);
      END_STATE();
    case 101:
      ACCEPT_TOKEN(sym_crossproduct);
      END_STATE();
    case 102:
      ACCEPT_TOKEN(sym_compose);
      END_STATE();
    case 103:
      ACCEPT_TOKEN(sym_comment);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(50);
      END_STATE();
    case 104:
      ACCEPT_TOKEN(sym_comment);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(104);
      END_STATE();
    default:
      return false;
  }
}

static TSLexMode ts_lex_modes[STATE_COUNT] = {
  [0] = {.lex_state = 0},
  [1] = {.lex_state = 40},
  [2] = {.lex_state = 1},
  [3] = {.lex_state = 1},
  [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 = 1},
  [11] = {.lex_state = 1},
  [12] = {.lex_state = 1},
  [13] = {.lex_state = 1},
  [14] = {.lex_state = 1},
  [15] = {.lex_state = 1},
  [16] = {.lex_state = 1},
  [17] = {.lex_state = 38},
  [18] = {.lex_state = 1},
  [19] = {.lex_state = 38},
  [20] = {.lex_state = 38},
  [21] = {.lex_state = 38},
  [22] = {.lex_state = 38},
  [23] = {.lex_state = 38},
  [24] = {.lex_state = 38},
  [25] = {.lex_state = 1},
  [26] = {.lex_state = 38},
  [27] = {.lex_state = 38},
  [28] = {.lex_state = 38},
  [29] = {.lex_state = 38},
  [30] = {.lex_state = 1},
  [31] = {.lex_state = 1},
  [32] = {.lex_state = 38},
  [33] = {.lex_state = 1},
  [34] = {.lex_state = 1},
  [35] = {.lex_state = 38},
  [36] = {.lex_state = 1},
  [37] = {.lex_state = 1},
  [38] = {.lex_state = 38},
  [39] = {.lex_state = 1},
  [40] = {.lex_state = 1},
  [41] = {.lex_state = 1},
  [42] = {.lex_state = 1},
  [43] = {.lex_state = 1},
  [44] = {.lex_state = 1},
  [45] = {.lex_state = 1},
  [46] = {.lex_state = 1},
  [47] = {.lex_state = 1},
  [48] = {.lex_state = 1},
  [49] = {.lex_state = 1},
  [50] = {.lex_state = 1},
  [51] = {.lex_state = 1},
  [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 = 38},
  [61] = {.lex_state = 38},
  [62] = {.lex_state = 38},
  [63] = {.lex_state = 38},
  [64] = {.lex_state = 38},
  [65] = {.lex_state = 1},
  [66] = {.lex_state = 38},
  [67] = {.lex_state = 38},
  [68] = {.lex_state = 38},
  [69] = {.lex_state = 38},
  [70] = {.lex_state = 38},
  [71] = {.lex_state = 38},
  [72] = {.lex_state = 38},
  [73] = {.lex_state = 1},
  [74] = {.lex_state = 1},
  [75] = {.lex_state = 1},
  [76] = {.lex_state = 1},
  [77] = {.lex_state = 1},
  [78] = {.lex_state = 1},
  [79] = {.lex_state = 38},
  [80] = {.lex_state = 38},
  [81] = {.lex_state = 38},
  [82] = {.lex_state = 38},
  [83] = {.lex_state = 38},
  [84] = {.lex_state = 1},
  [85] = {.lex_state = 1},
  [86] = {.lex_state = 1},
  [87] = {.lex_state = 1},
  [88] = {.lex_state = 1},
  [89] = {.lex_state = 1},
  [90] = {.lex_state = 1},
  [91] = {.lex_state = 1},
  [92] = {.lex_state = 1},
  [93] = {.lex_state = 1},
  [94] = {.lex_state = 38},
  [95] = {.lex_state = 38},
  [96] = {.lex_state = 38},
  [97] = {.lex_state = 38},
  [98] = {.lex_state = 38},
  [99] = {.lex_state = 38},
  [100] = {.lex_state = 38},
  [101] = {.lex_state = 38},
  [102] = {.lex_state = 38},
  [103] = {.lex_state = 38},
  [104] = {.lex_state = 38},
  [105] = {.lex_state = 3},
  [106] = {.lex_state = 38},
  [107] = {.lex_state = 38},
  [108] = {.lex_state = 3},
  [109] = {.lex_state = 3},
  [110] = {.lex_state = 38},
  [111] = {.lex_state = 3},
  [112] = {.lex_state = 3},
  [113] = {.lex_state = 3},
  [114] = {.lex_state = 3},
  [115] = {.lex_state = 3},
  [116] = {.lex_state = 3},
  [117] = {.lex_state = 1},
  [118] = {.lex_state = 3},
  [119] = {.lex_state = 3},
  [120] = {.lex_state = 3},
  [121] = {.lex_state = 3},
  [122] = {.lex_state = 3},
  [123] = {.lex_state = 3},
  [124] = {.lex_state = 3},
  [125] = {.lex_state = 38},
  [126] = {.lex_state = 3},
  [127] = {.lex_state = 38},
  [128] = {.lex_state = 3},
  [129] = {.lex_state = 38},
  [130] = {.lex_state = 38},
  [131] = {.lex_state = 3},
  [132] = {.lex_state = 3},
  [133] = {.lex_state = 3},
  [134] = {.lex_state = 38},
  [135] = {.lex_state = 3},
  [136] = {.lex_state = 3},
  [137] = {.lex_state = 38},
  [138] = {.lex_state = 3},
  [139] = {.lex_state = 3},
  [140] = {.lex_state = 3},
  [141] = {.lex_state = 3},
  [142] = {.lex_state = 38},
  [143] = {.lex_state = 38},
  [144] = {.lex_state = 3},
  [145] = {.lex_state = 3},
  [146] = {.lex_state = 3},
  [147] = {.lex_state = 3},
  [148] = {.lex_state = 3},
  [149] = {.lex_state = 3},
  [150] = {.lex_state = 3},
  [151] = {.lex_state = 3},
  [152] = {.lex_state = 3},
  [153] = {.lex_state = 3},
  [154] = {.lex_state = 3},
  [155] = {.lex_state = 3},
  [156] = {.lex_state = 3},
  [157] = {.lex_state = 3},
  [158] = {.lex_state = 3},
  [159] = {.lex_state = 38},
  [160] = {.lex_state = 3},
  [161] = {.lex_state = 38},
  [162] = {.lex_state = 38},
  [163] = {.lex_state = 38},
  [164] = {.lex_state = 38},
  [165] = {.lex_state = 38},
  [166] = {.lex_state = 3},
  [167] = {.lex_state = 38},
  [168] = {.lex_state = 1},
  [169] = {.lex_state = 38},
  [170] = {.lex_state = 1},
  [171] = {.lex_state = 38},
  [172] = {.lex_state = 1},
  [173] = {.lex_state = 1},
  [174] = {.lex_state = 38},
  [175] = {.lex_state = 3},
  [176] = {.lex_state = 3},
  [177] = {.lex_state = 3},
  [178] = {.lex_state = 3},
  [179] = {.lex_state = 3},
  [180] = {.lex_state = 3},
  [181] = {.lex_state = 3},
  [182] = {.lex_state = 3},
  [183] = {.lex_state = 3},
  [184] = {.lex_state = 38},
  [185] = {.lex_state = 38},
  [186] = {.lex_state = 38},
  [187] = {.lex_state = 38},
  [188] = {.lex_state = 3},
  [189] = {.lex_state = 3},
  [190] = {.lex_state = 3},
  [191] = {.lex_state = 3},
  [192] = {.lex_state = 3},
  [193] = {.lex_state = 3},
  [194] = {.lex_state = 3},
  [195] = {.lex_state = 3},
  [196] = {.lex_state = 3},
  [197] = {.lex_state = 3},
  [198] = {.lex_state = 2},
  [199] = {.lex_state = 2},
  [200] = {.lex_state = 3},
  [201] = {.lex_state = 2},
  [202] = {.lex_state = 2},
  [203] = {.lex_state = 2},
  [204] = {.lex_state = 3},
  [205] = {.lex_state = 2},
  [206] = {.lex_state = 2},
  [207] = {.lex_state = 3},
  [208] = {.lex_state = 3},
  [209] = {.lex_state = 2},
  [210] = {.lex_state = 2},
  [211] = {.lex_state = 2},
  [212] = {.lex_state = 39},
  [213] = {.lex_state = 2},
  [214] = {.lex_state = 39},
  [215] = {.lex_state = 39},
  [216] = {.lex_state = 2},
  [217] = {.lex_state = 39},
  [218] = {.lex_state = 39},
  [219] = {.lex_state = 2},
  [220] = {.lex_state = 39},
  [221] = {.lex_state = 39},
  [222] = {.lex_state = 2},
  [223] = {.lex_state = 2},
  [224] = {.lex_state = 2},
  [225] = {.lex_state = 2},
  [226] = {.lex_state = 39},
  [227] = {.lex_state = 2},
  [228] = {.lex_state = 2},
  [229] = {.lex_state = 2},
  [230] = {.lex_state = 2},
  [231] = {.lex_state = 2},
  [232] = {.lex_state = 2},
  [233] = {.lex_state = 39},
  [234] = {.lex_state = 2},
  [235] = {.lex_state = 39},
  [236] = {.lex_state = 39},
  [237] = {.lex_state = 39},
  [238] = {.lex_state = 2},
  [239] = {.lex_state = 2},
  [240] = {.lex_state = 4},
  [241] = {.lex_state = 2},
  [242] = {.lex_state = 2},
  [243] = {.lex_state = 2},
  [244] = {.lex_state = 4},
  [245] = {.lex_state = 39},
  [246] = {.lex_state = 39},
  [247] = {.lex_state = 2},
  [248] = {.lex_state = 2},
  [249] = {.lex_state = 39},
  [250] = {.lex_state = 2},
  [251] = {.lex_state = 39},
  [252] = {.lex_state = 39},
  [253] = {.lex_state = 39},
  [254] = {.lex_state = 39},
  [255] = {.lex_state = 39},
  [256] = {.lex_state = 39},
  [257] = {.lex_state = 39},
  [258] = {.lex_state = 39},
  [259] = {.lex_state = 39},
  [260] = {.lex_state = 4},
  [261] = {.lex_state = 2},
  [262] = {.lex_state = 4},
  [263] = {.lex_state = 4},
  [264] = {.lex_state = 4},
  [265] = {.lex_state = 4},
  [266] = {.lex_state = 4},
  [267] = {.lex_state = 4},
  [268] = {.lex_state = 2},
  [269] = {.lex_state = 2},
  [270] = {.lex_state = 2},
  [271] = {.lex_state = 4},
  [272] = {.lex_state = 4},
  [273] = {.lex_state = 39},
  [274] = {.lex_state = 4},
  [275] = {.lex_state = 39},
  [276] = {.lex_state = 4},
  [277] = {.lex_state = 4},
  [278] = {.lex_state = 39},
  [279] = {.lex_state = 39},
  [280] = {.lex_state = 39},
  [281] = {.lex_state = 39},
  [282] = {.lex_state = 4},
  [283] = {.lex_state = 4},
  [284] = {.lex_state = 4},
  [285] = {.lex_state = 4},
  [286] = {.lex_state = 39},
  [287] = {.lex_state = 2},
  [288] = {.lex_state = 4},
  [289] = {.lex_state = 4},
  [290] = {.lex_state = 2},
  [291] = {.lex_state = 4},
  [292] = {.lex_state = 4},
  [293] = {.lex_state = 39},
  [294] = {.lex_state = 4},
  [295] = {.lex_state = 4},
  [296] = {.lex_state = 39},
  [297] = {.lex_state = 39},
  [298] = {.lex_state = 39},
  [299] = {.lex_state = 39},
  [300] = {.lex_state = 39},
  [301] = {.lex_state = 1},
  [302] = {.lex_state = 2},
  [303] = {.lex_state = 2},
  [304] = {.lex_state = 2},
  [305] = {.lex_state = 4},
  [306] = {.lex_state = 4},
  [307] = {.lex_state = 4},
  [308] = {.lex_state = 4},
  [309] = {.lex_state = 2},
  [310] = {.lex_state = 4},
  [311] = {.lex_state = 4},
  [312] = {.lex_state = 4},
  [313] = {.lex_state = 39},
  [314] = {.lex_state = 4},
  [315] = {.lex_state = 2},
  [316] = {.lex_state = 4},
  [317] = {.lex_state = 39},
  [318] = {.lex_state = 4},
  [319] = {.lex_state = 4},
  [320] = {.lex_state = 4},
  [321] = {.lex_state = 4},
  [322] = {.lex_state = 2},
  [323] = {.lex_state = 4},
  [324] = {.lex_state = 4},
  [325] = {.lex_state = 4},
  [326] = {.lex_state = 2},
  [327] = {.lex_state = 2},
  [328] = {.lex_state = 2},
  [329] = {.lex_state = 4},
  [330] = {.lex_state = 2},
  [331] = {.lex_state = 1},
  [332] = {.lex_state = 4},
  [333] = {.lex_state = 4},
  [334] = {.lex_state = 2},
  [335] = {.lex_state = 4},
  [336] = {.lex_state = 2},
  [337] = {.lex_state = 2},
  [338] = {.lex_state = 2},
  [339] = {.lex_state = 2},
  [340] = {.lex_state = 2},
  [341] = {.lex_state = 2},
  [342] = {.lex_state = 4},
  [343] = {.lex_state = 4},
  [344] = {.lex_state = 2},
  [345] = {.lex_state = 2},
  [346] = {.lex_state = 4},
  [347] = {.lex_state = 2},
  [348] = {.lex_state = 4},
  [349] = {.lex_state = 4},
  [350] = {.lex_state = 4},
  [351] = {.lex_state = 2},
  [352] = {.lex_state = 4},
  [353] = {.lex_state = 4},
  [354] = {.lex_state = 2},
  [355] = {.lex_state = 2},
  [356] = {.lex_state = 2},
  [357] = {.lex_state = 2},
  [358] = {.lex_state = 4},
  [359] = {.lex_state = 4},
  [360] = {.lex_state = 2},
  [361] = {.lex_state = 4},
  [362] = {.lex_state = 1},
  [363] = {.lex_state = 1},
  [364] = {.lex_state = 2},
  [365] = {.lex_state = 1},
  [366] = {.lex_state = 1},
  [367] = {.lex_state = 2},
  [368] = {.lex_state = 1},
  [369] = {.lex_state = 1},
  [370] = {.lex_state = 2},
  [371] = {.lex_state = 2},
  [372] = {.lex_state = 2},
  [373] = {.lex_state = 2},
  [374] = {.lex_state = 2},
  [375] = {.lex_state = 2},
  [376] = {.lex_state = 2},
  [377] = {.lex_state = 38},
  [378] = {.lex_state = 2},
  [379] = {.lex_state = 1},
  [380] = {.lex_state = 1},
  [381] = {.lex_state = 1},
  [382] = {.lex_state = 1},
  [383] = {.lex_state = 1},
  [384] = {.lex_state = 1},
  [385] = {.lex_state = 1},
  [386] = {.lex_state = 38},
  [387] = {.lex_state = 4},
  [388] = {.lex_state = 1},
  [389] = {.lex_state = 2},
  [390] = {.lex_state = 1},
  [391] = {.lex_state = 38},
  [392] = {.lex_state = 1},
  [393] = {.lex_state = 1},
  [394] = {.lex_state = 1},
  [395] = {.lex_state = 1},
  [396] = {.lex_state = 1},
  [397] = {.lex_state = 38},
  [398] = {.lex_state = 1},
  [399] = {.lex_state = 1},
  [400] = {.lex_state = 1},
  [401] = {.lex_state = 1},
  [402] = {.lex_state = 1},
  [403] = {.lex_state = 1},
  [404] = {.lex_state = 1},
  [405] = {.lex_state = 38},
  [406] = {.lex_state = 38},
  [407] = {.lex_state = 1},
  [408] = {.lex_state = 1},
  [409] = {.lex_state = 1},
  [410] = {.lex_state = 1},
  [411] = {.lex_state = 38},
  [412] = {.lex_state = 38},
  [413] = {.lex_state = 1},
  [414] = {.lex_state = 1},
  [415] = {.lex_state = 1},
  [416] = {.lex_state = 1},
  [417] = {.lex_state = 1},
  [418] = {.lex_state = 1},
  [419] = {.lex_state = 1},
  [420] = {.lex_state = 1},
  [421] = {.lex_state = 38},
  [422] = {.lex_state = 3},
  [423] = {.lex_state = 1},
  [424] = {.lex_state = 38},
  [425] = {.lex_state = 38},
  [426] = {.lex_state = 1},
  [427] = {.lex_state = 1},
  [428] = {.lex_state = 1},
  [429] = {.lex_state = 38},
  [430] = {.lex_state = 3},
  [431] = {.lex_state = 1},
  [432] = {.lex_state = 38},
  [433] = {.lex_state = 1},
  [434] = {.lex_state = 1},
  [435] = {.lex_state = 38},
  [436] = {.lex_state = 38},
  [437] = {.lex_state = 38},
  [438] = {.lex_state = 38},
  [439] = {.lex_state = 3},
  [440] = {.lex_state = 3},
  [441] = {.lex_state = 38},
  [442] = {.lex_state = 3},
  [443] = {.lex_state = 38},
  [444] = {.lex_state = 3},
  [445] = {.lex_state = 38},
  [446] = {.lex_state = 3},
  [447] = {.lex_state = 3},
  [448] = {.lex_state = 1},
  [449] = {.lex_state = 38},
  [450] = {.lex_state = 3},
  [451] = {.lex_state = 1},
  [452] = {.lex_state = 38},
  [453] = {.lex_state = 1},
  [454] = {.lex_state = 38},
  [455] = {.lex_state = 3},
  [456] = {.lex_state = 38},
  [457] = {.lex_state = 38},
  [458] = {.lex_state = 38},
  [459] = {.lex_state = 38},
  [460] = {.lex_state = 38},
  [461] = {.lex_state = 38},
  [462] = {.lex_state = 38},
  [463] = {.lex_state = 38},
  [464] = {.lex_state = 38},
  [465] = {.lex_state = 38},
  [466] = {.lex_state = 38},
  [467] = {.lex_state = 38},
  [468] = {.lex_state = 38},
  [469] = {.lex_state = 3},
  [470] = {.lex_state = 38},
  [471] = {.lex_state = 3},
  [472] = {.lex_state = 1},
  [473] = {.lex_state = 3},
  [474] = {.lex_state = 38},
  [475] = {.lex_state = 38},
  [476] = {.lex_state = 38},
  [477] = {.lex_state = 38},
  [478] = {.lex_state = 3},
  [479] = {.lex_state = 1},
  [480] = {.lex_state = 3},
  [481] = {.lex_state = 38},
  [482] = {.lex_state = 38},
  [483] = {.lex_state = 3},
  [484] = {.lex_state = 3},
  [485] = {.lex_state = 38},
  [486] = {.lex_state = 38},
  [487] = {.lex_state = 1},
  [488] = {.lex_state = 38},
  [489] = {.lex_state = 38},
  [490] = {.lex_state = 38},
  [491] = {.lex_state = 3},
  [492] = {.lex_state = 3},
  [493] = {.lex_state = 38},
  [494] = {.lex_state = 3},
  [495] = {.lex_state = 3},
  [496] = {.lex_state = 3},
  [497] = {.lex_state = 38},
  [498] = {.lex_state = 3},
  [499] = {.lex_state = 3},
  [500] = {.lex_state = 3},
  [501] = {.lex_state = 3},
  [502] = {.lex_state = 3},
  [503] = {.lex_state = 3},
  [504] = {.lex_state = 3},
  [505] = {.lex_state = 3},
  [506] = {.lex_state = 3},
  [507] = {.lex_state = 3},
  [508] = {.lex_state = 3},
  [509] = {.lex_state = 3},
  [510] = {.lex_state = 3},
  [511] = {.lex_state = 3},
  [512] = {.lex_state = 3},
  [513] = {.lex_state = 3},
  [514] = {.lex_state = 3},
  [515] = {.lex_state = 3},
  [516] = {.lex_state = 3},
  [517] = {.lex_state = 1},
  [518] = {.lex_state = 38},
  [519] = {.lex_state = 3},
  [520] = {.lex_state = 3},
  [521] = {.lex_state = 3},
  [522] = {.lex_state = 3},
  [523] = {.lex_state = 38},
  [524] = {.lex_state = 3},
  [525] = {.lex_state = 3},
  [526] = {.lex_state = 3},
  [527] = {.lex_state = 38},
  [528] = {.lex_state = 38},
  [529] = {.lex_state = 1},
  [530] = {.lex_state = 1},
  [531] = {.lex_state = 3},
  [532] = {.lex_state = 3},
  [533] = {.lex_state = 1},
  [534] = {.lex_state = 1},
  [535] = {.lex_state = 3},
  [536] = {.lex_state = 1},
  [537] = {.lex_state = 1},
  [538] = {.lex_state = 3},
  [539] = {.lex_state = 1},
  [540] = {.lex_state = 3},
  [541] = {.lex_state = 3},
  [542] = {.lex_state = 1},
  [543] = {.lex_state = 1},
  [544] = {.lex_state = 1},
  [545] = {.lex_state = 38},
  [546] = {.lex_state = 1},
  [547] = {.lex_state = 2},
  [548] = {.lex_state = 2},
  [549] = {.lex_state = 2},
  [550] = {.lex_state = 2},
  [551] = {.lex_state = 2},
  [552] = {.lex_state = 2},
  [553] = {.lex_state = 2},
  [554] = {.lex_state = 2},
  [555] = {.lex_state = 2},
  [556] = {.lex_state = 2},
  [557] = {.lex_state = 3},
  [558] = {.lex_state = 2},
  [559] = {.lex_state = 39},
  [560] = {.lex_state = 1},
  [561] = {.lex_state = 39},
  [562] = {.lex_state = 2},
  [563] = {.lex_state = 2},
  [564] = {.lex_state = 2},
  [565] = {.lex_state = 2},
  [566] = {.lex_state = 2},
  [567] = {.lex_state = 2},
  [568] = {.lex_state = 2},
  [569] = {.lex_state = 2},
  [570] = {.lex_state = 1},
  [571] = {.lex_state = 2},
  [572] = {.lex_state = 2},
  [573] = {.lex_state = 2},
  [574] = {.lex_state = 39},
  [575] = {.lex_state = 2},
  [576] = {.lex_state = 2},
  [577] = {.lex_state = 1},
  [578] = {.lex_state = 39},
  [579] = {.lex_state = 2},
  [580] = {.lex_state = 39},
  [581] = {.lex_state = 2},
  [582] = {.lex_state = 39},
  [583] = {.lex_state = 1},
  [584] = {.lex_state = 1},
  [585] = {.lex_state = 39},
  [586] = {.lex_state = 39},
  [587] = {.lex_state = 2},
  [588] = {.lex_state = 2},
  [589] = {.lex_state = 39},
  [590] = {.lex_state = 39},
  [591] = {.lex_state = 39},
  [592] = {.lex_state = 2},
  [593] = {.lex_state = 1},
  [594] = {.lex_state = 1},
  [595] = {.lex_state = 1},
  [596] = {.lex_state = 2},
  [597] = {.lex_state = 4},
  [598] = {.lex_state = 39},
  [599] = {.lex_state = 4},
  [600] = {.lex_state = 39},
  [601] = {.lex_state = 39},
  [602] = {.lex_state = 39},
  [603] = {.lex_state = 4},
  [604] = {.lex_state = 4},
  [605] = {.lex_state = 39},
  [606] = {.lex_state = 39},
  [607] = {.lex_state = 4},
  [608] = {.lex_state = 4},
  [609] = {.lex_state = 4},
  [610] = {.lex_state = 4},
  [611] = {.lex_state = 4},
  [612] = {.lex_state = 4},
  [613] = {.lex_state = 39},
  [614] = {.lex_state = 39},
  [615] = {.lex_state = 39},
  [616] = {.lex_state = 39},
  [617] = {.lex_state = 39},
  [618] = {.lex_state = 39},
  [619] = {.lex_state = 39},
  [620] = {.lex_state = 39},
  [621] = {.lex_state = 39},
  [622] = {.lex_state = 39},
  [623] = {.lex_state = 39},
  [624] = {.lex_state = 4},
  [625] = {.lex_state = 39},
  [626] = {.lex_state = 39},
  [627] = {.lex_state = 4},
  [628] = {.lex_state = 4},
  [629] = {.lex_state = 4},
  [630] = {.lex_state = 4},
  [631] = {.lex_state = 4},
  [632] = {.lex_state = 4},
  [633] = {.lex_state = 4},
  [634] = {.lex_state = 4},
  [635] = {.lex_state = 4},
  [636] = {.lex_state = 4},
  [637] = {.lex_state = 4},
  [638] = {.lex_state = 4},
  [639] = {.lex_state = 4},
  [640] = {.lex_state = 4},
  [641] = {.lex_state = 4},
  [642] = {.lex_state = 4},
  [643] = {.lex_state = 4},
  [644] = {.lex_state = 4},
  [645] = {.lex_state = 4},
  [646] = {.lex_state = 5},
  [647] = {.lex_state = 5},
  [648] = {.lex_state = 5},
  [649] = {.lex_state = 5},
  [650] = {.lex_state = 5},
  [651] = {.lex_state = 5},
  [652] = {.lex_state = 5},
  [653] = {.lex_state = 5},
  [654] = {.lex_state = 5},
  [655] = {.lex_state = 5},
  [656] = {.lex_state = 5},
  [657] = {.lex_state = 5},
  [658] = {.lex_state = 5},
  [659] = {.lex_state = 5},
  [660] = {.lex_state = 5},
  [661] = {.lex_state = 5},
  [662] = {.lex_state = 5},
  [663] = {.lex_state = 5},
  [664] = {.lex_state = 5},
  [665] = {.lex_state = 5},
  [666] = {.lex_state = 5},
  [667] = {.lex_state = 5},
  [668] = {.lex_state = 5},
  [669] = {.lex_state = 5},
  [670] = {.lex_state = 5},
  [671] = {.lex_state = 5},
  [672] = {.lex_state = 5},
  [673] = {.lex_state = 5},
  [674] = {.lex_state = 5},
  [675] = {.lex_state = 5},
  [676] = {.lex_state = 5},
  [677] = {.lex_state = 5},
  [678] = {.lex_state = 5},
  [679] = {.lex_state = 5},
  [680] = {.lex_state = 5},
  [681] = {.lex_state = 5},
  [682] = {.lex_state = 40},
  [683] = {.lex_state = 40},
  [684] = {.lex_state = 5},
  [685] = {.lex_state = 5},
  [686] = {.lex_state = 5},
  [687] = {.lex_state = 40},
  [688] = {.lex_state = 40},
  [689] = {.lex_state = 5},
  [690] = {.lex_state = 40},
  [691] = {.lex_state = 5},
  [692] = {.lex_state = 40},
  [693] = {.lex_state = 40},
  [694] = {.lex_state = 40},
  [695] = {.lex_state = 5},
  [696] = {.lex_state = 5},
  [697] = {.lex_state = 40},
  [698] = {.lex_state = 40},
  [699] = {.lex_state = 40},
  [700] = {.lex_state = 5},
  [701] = {.lex_state = 5},
  [702] = {.lex_state = 40},
  [703] = {.lex_state = 5},
  [704] = {.lex_state = 5},
  [705] = {.lex_state = 5},
  [706] = {.lex_state = 40},
  [707] = {.lex_state = 5},
  [708] = {.lex_state = 5},
  [709] = {.lex_state = 40},
  [710] = {.lex_state = 40},
  [711] = {.lex_state = 5},
  [712] = {.lex_state = 40},
  [713] = {.lex_state = 40},
  [714] = {.lex_state = 40},
  [715] = {.lex_state = 40},
  [716] = {.lex_state = 40},
  [717] = {.lex_state = 40},
  [718] = {.lex_state = 40},
  [719] = {.lex_state = 40},
  [720] = {.lex_state = 40},
  [721] = {.lex_state = 40},
  [722] = {.lex_state = 40},
  [723] = {.lex_state = 40},
  [724] = {.lex_state = 40},
  [725] = {.lex_state = 40},
  [726] = {.lex_state = 40},
  [727] = {.lex_state = 40},
  [728] = {.lex_state = 40},
  [729] = {.lex_state = 40},
  [730] = {.lex_state = 40},
  [731] = {.lex_state = 40},
  [732] = {.lex_state = 40},
  [733] = {.lex_state = 40},
  [734] = {.lex_state = 40},
  [735] = {.lex_state = 40},
  [736] = {.lex_state = 40},
  [737] = {.lex_state = 40},
  [738] = {.lex_state = 40},
  [739] = {.lex_state = 40},
  [740] = {.lex_state = 40},
  [741] = {.lex_state = 40},
  [742] = {.lex_state = 40},
  [743] = {.lex_state = 40},
  [744] = {.lex_state = 40},
  [745] = {.lex_state = 40},
  [746] = {.lex_state = 40},
  [747] = {.lex_state = 40},
  [748] = {.lex_state = 40},
  [749] = {.lex_state = 40},
  [750] = {.lex_state = 40},
  [751] = {.lex_state = 40},
  [752] = {.lex_state = 40},
  [753] = {.lex_state = 40},
  [754] = {.lex_state = 40},
  [755] = {.lex_state = 40},
  [756] = {.lex_state = 40},
  [757] = {.lex_state = 40},
  [758] = {.lex_state = 40},
  [759] = {.lex_state = 40},
  [760] = {.lex_state = 40},
  [761] = {.lex_state = 40},
  [762] = {.lex_state = 40},
  [763] = {.lex_state = 40},
  [764] = {.lex_state = 40},
  [765] = {.lex_state = 40},
  [766] = {.lex_state = 40},
  [767] = {.lex_state = 40},
  [768] = {.lex_state = 40},
  [769] = {.lex_state = 40},
  [770] = {.lex_state = 40},
  [771] = {.lex_state = 40},
  [772] = {.lex_state = 40},
  [773] = {.lex_state = 40},
  [774] = {.lex_state = 40},
  [775] = {.lex_state = 40},
  [776] = {.lex_state = 40},
  [777] = {.lex_state = 40},
  [778] = {.lex_state = 40},
  [779] = {.lex_state = 40},
  [780] = {.lex_state = 40},
  [781] = {.lex_state = 40},
  [782] = {.lex_state = 40},
  [783] = {.lex_state = 40},
  [784] = {.lex_state = 40},
  [785] = {.lex_state = 40},
  [786] = {.lex_state = 40},
  [787] = {.lex_state = 40},
  [788] = {.lex_state = 40},
  [789] = {.lex_state = 40},
  [790] = {.lex_state = 40},
  [791] = {.lex_state = 40},
  [792] = {.lex_state = 40},
  [793] = {.lex_state = 40},
  [794] = {.lex_state = 40},
  [795] = {.lex_state = 40},
  [796] = {.lex_state = 40},
  [797] = {.lex_state = 40},
  [798] = {.lex_state = 40},
  [799] = {.lex_state = 40},
  [800] = {.lex_state = 40},
  [801] = {.lex_state = 40},
  [802] = {.lex_state = 40},
  [803] = {.lex_state = 40},
  [804] = {.lex_state = 40},
  [805] = {.lex_state = 40},
  [806] = {.lex_state = 40},
  [807] = {.lex_state = 40},
  [808] = {.lex_state = 40},
  [809] = {.lex_state = 40},
  [810] = {.lex_state = 40},
  [811] = {.lex_state = 40},
  [812] = {.lex_state = 40},
  [813] = {.lex_state = 40},
  [814] = {.lex_state = 40},
  [815] = {.lex_state = 40},
  [816] = {.lex_state = 40},
  [817] = {.lex_state = 40},
  [818] = {.lex_state = 40},
  [819] = {.lex_state = 40},
  [820] = {.lex_state = 40},
  [821] = {.lex_state = 40},
  [822] = {.lex_state = 40},
  [823] = {.lex_state = 40},
  [824] = {.lex_state = 40},
  [825] = {.lex_state = 40},
  [826] = {.lex_state = 40},
  [827] = {.lex_state = 40},
  [828] = {.lex_state = 40},
  [829] = {.lex_state = 40},
  [830] = {.lex_state = 40},
  [831] = {.lex_state = 40},
  [832] = {.lex_state = 40},
  [833] = {.lex_state = 40},
  [834] = {.lex_state = 40},
  [835] = {.lex_state = 40},
  [836] = {.lex_state = 40},
  [837] = {.lex_state = 40},
  [838] = {.lex_state = 40},
  [839] = {.lex_state = 40},
  [840] = {.lex_state = 40},
  [841] = {.lex_state = 40},
  [842] = {.lex_state = 40},
  [843] = {.lex_state = 40},
  [844] = {.lex_state = 40},
  [845] = {.lex_state = 40},
  [846] = {.lex_state = 40},
  [847] = {.lex_state = 40},
  [848] = {.lex_state = 40},
  [849] = {.lex_state = 40},
  [850] = {.lex_state = 40},
  [851] = {.lex_state = 40},
  [852] = {.lex_state = 40},
  [853] = {.lex_state = 40},
  [854] = {.lex_state = 40},
  [855] = {.lex_state = 40},
  [856] = {.lex_state = 40},
  [857] = {.lex_state = 40},
  [858] = {.lex_state = 40},
  [859] = {.lex_state = 40},
  [860] = {.lex_state = 40},
  [861] = {.lex_state = 40},
  [862] = {.lex_state = 40},
  [863] = {.lex_state = 40},
  [864] = {.lex_state = 40},
  [865] = {.lex_state = 40},
  [866] = {.lex_state = 40},
  [867] = {.lex_state = 40},
  [868] = {.lex_state = 40},
  [869] = {.lex_state = 40},
  [870] = {.lex_state = 40},
  [871] = {.lex_state = 40},
  [872] = {.lex_state = 40},
  [873] = {.lex_state = 40},
  [874] = {.lex_state = 40},
  [875] = {.lex_state = 40},
  [876] = {.lex_state = 40},
  [877] = {.lex_state = 40},
  [878] = {.lex_state = 40},
  [879] = {.lex_state = 40},
  [880] = {.lex_state = 40},
  [881] = {.lex_state = 40},
  [882] = {.lex_state = 40},
  [883] = {.lex_state = 40},
  [884] = {.lex_state = 40},
  [885] = {.lex_state = 40},
  [886] = {.lex_state = 40},
  [887] = {.lex_state = 40},
  [888] = {.lex_state = 40},
  [889] = {.lex_state = 40},
  [890] = {.lex_state = 40},
  [891] = {.lex_state = 40},
  [892] = {.lex_state = 40},
  [893] = {.lex_state = 5},
  [894] = {.lex_state = 40},
  [895] = {.lex_state = 41},
  [896] = {.lex_state = 41},
  [897] = {.lex_state = 41},
  [898] = {.lex_state = 41},
  [899] = {.lex_state = 41},
  [900] = {.lex_state = 41},
  [901] = {.lex_state = 41},
  [902] = {.lex_state = 41},
  [903] = {.lex_state = 41},
  [904] = {.lex_state = 41},
  [905] = {.lex_state = 41},
  [906] = {.lex_state = 41},
  [907] = {.lex_state = 40},
  [908] = {.lex_state = 40},
  [909] = {.lex_state = 40},
  [910] = {.lex_state = 40},
  [911] = {.lex_state = 40},
  [912] = {.lex_state = 40},
  [913] = {.lex_state = 40},
  [914] = {.lex_state = 40},
  [915] = {.lex_state = 40},
  [916] = {.lex_state = 40},
  [917] = {.lex_state = 40},
  [918] = {.lex_state = 40},
  [919] = {.lex_state = 40},
  [920] = {.lex_state = 40},
  [921] = {.lex_state = 41},
  [922] = {.lex_state = 40},
  [923] = {.lex_state = 41},
  [924] = {.lex_state = 41},
  [925] = {.lex_state = 41},
  [926] = {.lex_state = 41},
  [927] = {.lex_state = 41},
  [928] = {.lex_state = 40},
  [929] = {.lex_state = 41},
  [930] = {.lex_state = 40},
  [931] = {.lex_state = 40},
  [932] = {.lex_state = 41},
  [933] = {.lex_state = 41},
  [934] = {.lex_state = 40},
  [935] = {.lex_state = 41},
  [936] = {.lex_state = 41},
  [937] = {.lex_state = 41},
  [938] = {.lex_state = 41},
};

static uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
  [0] = {
    [ts_builtin_sym_end] = ACTIONS(1),
    [sym_semicolon] = ACTIONS(1),
    [anon_sym_LBRACK] = ACTIONS(1),
    [anon_sym_RBRACK] = ACTIONS(1),
    [sym_symbol] = ACTIONS(1),
    [sym_string] = ACTIONS(1),
    [sym_any] = ACTIONS(1),
    [sym_zero] = ACTIONS(1),
    [sym_boundary] = ACTIONS(1),
    [sym_symbol_group] = ACTIONS(1),
    [anon_sym_LPAREN] = ACTIONS(1),
    [anon_sym_RPAREN] = ACTIONS(1),
    [anon_sym_BQUOTE] = ACTIONS(1),
    [anon_sym_COMMA] = ACTIONS(1),
    [sym_colon] = ACTIONS(1),
    [sym_complement] = ACTIONS(1),
    [sym_term_complement] = ACTIONS(1),
    [sym_contains] = ACTIONS(1),
    [sym_plus] = ACTIONS(1),
    [sym_star] = ACTIONS(1),
    [sym_repeat] = ACTIONS(1),
    [sym_upper] = ACTIONS(1),
    [sym_lower] = ACTIONS(1),
    [sym_reverse] = ACTIONS(1),
    [sym_inverse] = ACTIONS(1),
    [sym_ignore] = ACTIONS(1),
    [sym_ignore_inside] = ACTIONS(1),
    [sym_union] = ACTIONS(1),
    [sym_intersect] = ACTIONS(1),
    [sym_subtract] = ACTIONS(1),
    [anon_sym__] = ACTIONS(1),
    [anon_sym_EQ_GT] = ACTIONS(1),
    [anon_sym_DASH_GT] = ACTIONS(1),
    [anon_sym_LT_DASH] = ACTIONS(1),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(1),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(1),
    [anon_sym_AT_DASH_GT] = ACTIONS(1),
    [anon_sym_DASH_GT_AT] = ACTIONS(1),
    [anon_sym_AT_GT] = ACTIONS(1),
    [anon_sym_GT_AT] = ACTIONS(1),
    [anon_sym_LBRACK_DOT] = ACTIONS(1),
    [anon_sym_DOT_RBRACK] = ACTIONS(1),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(1),
    [anon_sym_PIPE_PIPE] = ACTIONS(1),
    [anon_sym_SLASH_SLASH] = ACTIONS(1),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(1),
    [anon_sym_BSLASH_SLASH] = ACTIONS(1),
    [anon_sym_COMMA_COMMA] = ACTIONS(1),
    [sym_crossproduct] = ACTIONS(1),
    [sym_compose] = ACTIONS(1),
    [sym_comment] = ACTIONS(3),
  },
  [1] = {
    [sym_source_file] = STATE(926),
    [sym_expression] = STATE(300),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_simple_replace] = STATE(454),
    [sym_single_replace] = STATE(454),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(545),
    [sym_conditional_replace] = STATE(620),
    [sym_parallel_conditional_replace] = STATE(625),
    [aux_sym_source_file_repeat1] = STATE(697),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(11),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [sym_complement] = ACTIONS(15),
    [sym_term_complement] = ACTIONS(15),
    [sym_contains] = ACTIONS(15),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [sym_comment] = ACTIONS(3),
  },
  [2] = {
    [sym_expression] = STATE(16),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(728),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(21),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(21),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(31),
    [sym_colon] = ACTIONS(33),
    [sym_complement] = ACTIONS(35),
    [sym_term_complement] = ACTIONS(37),
    [sym_contains] = ACTIONS(35),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(41),
    [sym_ignore_inside] = ACTIONS(43),
    [sym_union] = ACTIONS(45),
    [sym_intersect] = ACTIONS(47),
    [sym_subtract] = ACTIONS(45),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(49),
    [anon_sym_DOT_RBRACK] = ACTIONS(21),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(21),
    [anon_sym_PIPE_PIPE] = ACTIONS(21),
    [anon_sym_SLASH_SLASH] = ACTIONS(21),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(21),
    [anon_sym_BSLASH_SLASH] = ACTIONS(21),
    [anon_sym_COMMA_COMMA] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [3] = {
    [sym_expression] = STATE(16),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(728),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(33),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [4] = {
    [sym_expression] = STATE(16),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(728),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(55),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(55),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(57),
    [sym_colon] = ACTIONS(33),
    [sym_complement] = ACTIONS(35),
    [sym_term_complement] = ACTIONS(37),
    [sym_contains] = ACTIONS(35),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(41),
    [sym_ignore_inside] = ACTIONS(43),
    [sym_union] = ACTIONS(45),
    [sym_intersect] = ACTIONS(47),
    [sym_subtract] = ACTIONS(45),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(49),
    [anon_sym_DOT_RBRACK] = ACTIONS(55),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(59),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [anon_sym_COMMA_COMMA] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [5] = {
    [sym_expression] = STATE(16),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(728),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(61),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(61),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(63),
    [sym_colon] = ACTIONS(33),
    [sym_complement] = ACTIONS(35),
    [sym_term_complement] = ACTIONS(37),
    [sym_contains] = ACTIONS(35),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(41),
    [sym_ignore_inside] = ACTIONS(43),
    [sym_union] = ACTIONS(45),
    [sym_intersect] = ACTIONS(47),
    [sym_subtract] = ACTIONS(45),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(49),
    [anon_sym_DOT_RBRACK] = ACTIONS(61),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(61),
    [anon_sym_PIPE_PIPE] = ACTIONS(61),
    [anon_sym_SLASH_SLASH] = ACTIONS(61),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(61),
    [anon_sym_BSLASH_SLASH] = ACTIONS(61),
    [anon_sym_COMMA_COMMA] = ACTIONS(61),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [6] = {
    [sym_expression] = STATE(16),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(728),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(65),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(65),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(67),
    [sym_colon] = ACTIONS(33),
    [sym_complement] = ACTIONS(35),
    [sym_term_complement] = ACTIONS(37),
    [sym_contains] = ACTIONS(35),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(41),
    [sym_ignore_inside] = ACTIONS(43),
    [sym_union] = ACTIONS(45),
    [sym_intersect] = ACTIONS(47),
    [sym_subtract] = ACTIONS(45),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(49),
    [anon_sym_DOT_RBRACK] = ACTIONS(65),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(65),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [anon_sym_COMMA_COMMA] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [7] = {
    [sym_expression] = STATE(16),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(728),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(69),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(69),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(33),
    [sym_complement] = ACTIONS(35),
    [sym_term_complement] = ACTIONS(37),
    [sym_contains] = ACTIONS(35),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(41),
    [sym_ignore_inside] = ACTIONS(43),
    [sym_union] = ACTIONS(45),
    [sym_intersect] = ACTIONS(47),
    [sym_subtract] = ACTIONS(45),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(49),
    [anon_sym_DOT_RBRACK] = ACTIONS(69),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [8] = {
    [sym_expression] = STATE(16),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(728),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(73),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [9] = {
    [sym_expression] = STATE(16),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(728),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(55),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(55),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(57),
    [sym_colon] = ACTIONS(33),
    [sym_complement] = ACTIONS(35),
    [sym_term_complement] = ACTIONS(37),
    [sym_contains] = ACTIONS(35),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(41),
    [sym_ignore_inside] = ACTIONS(43),
    [sym_union] = ACTIONS(45),
    [sym_intersect] = ACTIONS(47),
    [sym_subtract] = ACTIONS(45),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(49),
    [anon_sym_DOT_RBRACK] = ACTIONS(55),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(55),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [anon_sym_COMMA_COMMA] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [10] = {
    [sym_expression] = STATE(16),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(728),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(33),
    [sym_complement] = ACTIONS(35),
    [sym_term_complement] = ACTIONS(37),
    [sym_contains] = ACTIONS(35),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(41),
    [sym_ignore_inside] = ACTIONS(43),
    [sym_union] = ACTIONS(45),
    [sym_intersect] = ACTIONS(47),
    [sym_subtract] = ACTIONS(45),
    [anon_sym_EQ_GT] = ACTIONS(77),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(49),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [11] = {
    [sym_expression] = STATE(16),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(728),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(33),
    [sym_complement] = ACTIONS(35),
    [sym_term_complement] = ACTIONS(37),
    [sym_contains] = ACTIONS(35),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(41),
    [sym_ignore_inside] = ACTIONS(43),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(49),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [12] = {
    [sym_expression] = STATE(16),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(728),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(55),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(55),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(57),
    [sym_colon] = ACTIONS(33),
    [sym_complement] = ACTIONS(35),
    [sym_term_complement] = ACTIONS(37),
    [sym_contains] = ACTIONS(35),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(41),
    [sym_ignore_inside] = ACTIONS(43),
    [sym_union] = ACTIONS(45),
    [sym_intersect] = ACTIONS(47),
    [sym_subtract] = ACTIONS(45),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(49),
    [anon_sym_DOT_RBRACK] = ACTIONS(55),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(83),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [anon_sym_COMMA_COMMA] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [13] = {
    [sym_expression] = STATE(16),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(728),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(73),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(33),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [14] = {
    [sym_expression] = STATE(16),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(728),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(55),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(55),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(57),
    [sym_colon] = ACTIONS(33),
    [sym_complement] = ACTIONS(35),
    [sym_term_complement] = ACTIONS(37),
    [sym_contains] = ACTIONS(35),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(41),
    [sym_ignore_inside] = ACTIONS(43),
    [sym_union] = ACTIONS(45),
    [sym_intersect] = ACTIONS(47),
    [sym_subtract] = ACTIONS(45),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(49),
    [anon_sym_DOT_RBRACK] = ACTIONS(55),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(85),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [anon_sym_COMMA_COMMA] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [15] = {
    [sym_expression] = STATE(16),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(728),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(87),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(87),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(89),
    [sym_colon] = ACTIONS(33),
    [sym_complement] = ACTIONS(35),
    [sym_term_complement] = ACTIONS(37),
    [sym_contains] = ACTIONS(35),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(41),
    [sym_ignore_inside] = ACTIONS(43),
    [sym_union] = ACTIONS(45),
    [sym_intersect] = ACTIONS(47),
    [sym_subtract] = ACTIONS(45),
    [anon_sym_EQ_GT] = ACTIONS(87),
    [anon_sym_DASH_GT] = ACTIONS(89),
    [anon_sym_LT_DASH] = ACTIONS(87),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(87),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(87),
    [anon_sym_AT_DASH_GT] = ACTIONS(87),
    [anon_sym_DASH_GT_AT] = ACTIONS(87),
    [anon_sym_AT_GT] = ACTIONS(87),
    [anon_sym_GT_AT] = ACTIONS(87),
    [anon_sym_LBRACK_DOT] = ACTIONS(49),
    [anon_sym_DOT_RBRACK] = ACTIONS(87),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(87),
    [anon_sym_PIPE_PIPE] = ACTIONS(87),
    [anon_sym_SLASH_SLASH] = ACTIONS(87),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(87),
    [anon_sym_BSLASH_SLASH] = ACTIONS(87),
    [anon_sym_COMMA_COMMA] = ACTIONS(87),
    [sym_crossproduct] = ACTIONS(87),
    [sym_compose] = ACTIONS(87),
    [sym_comment] = ACTIONS(3),
  },
  [16] = {
    [sym_expression] = STATE(16),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(728),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(33),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(41),
    [sym_ignore_inside] = ACTIONS(43),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [17] = {
    [sym_expression] = STATE(28),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(733),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(87),
    [sym_semicolon] = ACTIONS(89),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(89),
    [sym_colon] = ACTIONS(101),
    [sym_complement] = ACTIONS(103),
    [sym_term_complement] = ACTIONS(105),
    [sym_contains] = ACTIONS(103),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(109),
    [sym_ignore_inside] = ACTIONS(111),
    [sym_union] = ACTIONS(113),
    [sym_intersect] = ACTIONS(115),
    [sym_subtract] = ACTIONS(113),
    [anon_sym_EQ_GT] = ACTIONS(87),
    [anon_sym_DASH_GT] = ACTIONS(89),
    [anon_sym_LT_DASH] = ACTIONS(87),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(87),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(87),
    [anon_sym_AT_DASH_GT] = ACTIONS(87),
    [anon_sym_DASH_GT_AT] = ACTIONS(87),
    [anon_sym_AT_GT] = ACTIONS(87),
    [anon_sym_GT_AT] = ACTIONS(87),
    [anon_sym_LBRACK_DOT] = ACTIONS(117),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(87),
    [anon_sym_PIPE_PIPE] = ACTIONS(87),
    [anon_sym_SLASH_SLASH] = ACTIONS(87),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(87),
    [anon_sym_BSLASH_SLASH] = ACTIONS(87),
    [anon_sym_COMMA_COMMA] = ACTIONS(87),
    [sym_crossproduct] = ACTIONS(87),
    [sym_compose] = ACTIONS(87),
    [sym_comment] = ACTIONS(3),
  },
  [18] = {
    [sym_expression] = STATE(6),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(119),
    [anon_sym_RBRACK] = ACTIONS(121),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_RPAREN] = ACTIONS(121),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(119),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(119),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(119),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(119),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_DOT_RBRACK] = ACTIONS(121),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(121),
    [anon_sym_PIPE_PIPE] = ACTIONS(121),
    [anon_sym_SLASH_SLASH] = ACTIONS(121),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(121),
    [anon_sym_BSLASH_SLASH] = ACTIONS(121),
    [anon_sym_COMMA_COMMA] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [19] = {
    [sym_expression] = STATE(28),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(733),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(101),
    [sym_complement] = ACTIONS(103),
    [sym_term_complement] = ACTIONS(105),
    [sym_contains] = ACTIONS(103),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(109),
    [sym_ignore_inside] = ACTIONS(111),
    [sym_union] = ACTIONS(113),
    [sym_intersect] = ACTIONS(115),
    [sym_subtract] = ACTIONS(113),
    [anon_sym_EQ_GT] = ACTIONS(123),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(117),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [20] = {
    [sym_expression] = STATE(28),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(733),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(55),
    [sym_semicolon] = ACTIONS(57),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(57),
    [sym_colon] = ACTIONS(101),
    [sym_complement] = ACTIONS(103),
    [sym_term_complement] = ACTIONS(105),
    [sym_contains] = ACTIONS(103),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(109),
    [sym_ignore_inside] = ACTIONS(111),
    [sym_union] = ACTIONS(113),
    [sym_intersect] = ACTIONS(115),
    [sym_subtract] = ACTIONS(113),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(117),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(55),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [anon_sym_COMMA_COMMA] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [21] = {
    [sym_expression] = STATE(28),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(733),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(69),
    [sym_semicolon] = ACTIONS(71),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(101),
    [sym_complement] = ACTIONS(103),
    [sym_term_complement] = ACTIONS(105),
    [sym_contains] = ACTIONS(103),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(109),
    [sym_ignore_inside] = ACTIONS(111),
    [sym_union] = ACTIONS(113),
    [sym_intersect] = ACTIONS(115),
    [sym_subtract] = ACTIONS(113),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(117),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [22] = {
    [sym_expression] = STATE(28),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(733),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(65),
    [sym_semicolon] = ACTIONS(67),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(67),
    [sym_colon] = ACTIONS(101),
    [sym_complement] = ACTIONS(103),
    [sym_term_complement] = ACTIONS(105),
    [sym_contains] = ACTIONS(103),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(109),
    [sym_ignore_inside] = ACTIONS(111),
    [sym_union] = ACTIONS(113),
    [sym_intersect] = ACTIONS(115),
    [sym_subtract] = ACTIONS(113),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(117),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(65),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [anon_sym_COMMA_COMMA] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [23] = {
    [sym_expression] = STATE(28),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(733),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(61),
    [sym_semicolon] = ACTIONS(63),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(63),
    [sym_colon] = ACTIONS(101),
    [sym_complement] = ACTIONS(103),
    [sym_term_complement] = ACTIONS(105),
    [sym_contains] = ACTIONS(103),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(109),
    [sym_ignore_inside] = ACTIONS(111),
    [sym_union] = ACTIONS(113),
    [sym_intersect] = ACTIONS(115),
    [sym_subtract] = ACTIONS(113),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(117),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(61),
    [anon_sym_PIPE_PIPE] = ACTIONS(61),
    [anon_sym_SLASH_SLASH] = ACTIONS(61),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(61),
    [anon_sym_BSLASH_SLASH] = ACTIONS(61),
    [anon_sym_COMMA_COMMA] = ACTIONS(61),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [24] = {
    [sym_expression] = STATE(28),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(733),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(21),
    [sym_semicolon] = ACTIONS(31),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(31),
    [sym_colon] = ACTIONS(101),
    [sym_complement] = ACTIONS(103),
    [sym_term_complement] = ACTIONS(105),
    [sym_contains] = ACTIONS(103),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(109),
    [sym_ignore_inside] = ACTIONS(111),
    [sym_union] = ACTIONS(113),
    [sym_intersect] = ACTIONS(115),
    [sym_subtract] = ACTIONS(113),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(117),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(21),
    [anon_sym_PIPE_PIPE] = ACTIONS(21),
    [anon_sym_SLASH_SLASH] = ACTIONS(21),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(21),
    [anon_sym_BSLASH_SLASH] = ACTIONS(21),
    [anon_sym_COMMA_COMMA] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [25] = {
    [sym_expression] = STATE(37),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(720),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(65),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(65),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(65),
    [sym_colon] = ACTIONS(125),
    [sym_complement] = ACTIONS(127),
    [sym_term_complement] = ACTIONS(129),
    [sym_contains] = ACTIONS(127),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(131),
    [sym_ignore_inside] = ACTIONS(133),
    [sym_union] = ACTIONS(135),
    [sym_intersect] = ACTIONS(137),
    [sym_subtract] = ACTIONS(135),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(139),
    [anon_sym_DOT_RBRACK] = ACTIONS(65),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(65),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [26] = {
    [sym_expression] = STATE(28),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(733),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(101),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [27] = {
    [sym_expression] = STATE(28),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(733),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [28] = {
    [sym_expression] = STATE(28),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(733),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(101),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(109),
    [sym_ignore_inside] = ACTIONS(111),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [29] = {
    [sym_expression] = STATE(28),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(733),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(101),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [30] = {
    [sym_expression] = STATE(37),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(720),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(125),
    [sym_complement] = ACTIONS(127),
    [sym_term_complement] = ACTIONS(129),
    [sym_contains] = ACTIONS(127),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(131),
    [sym_ignore_inside] = ACTIONS(133),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(139),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [31] = {
    [sym_expression] = STATE(37),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(720),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(61),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(61),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(61),
    [sym_colon] = ACTIONS(125),
    [sym_complement] = ACTIONS(127),
    [sym_term_complement] = ACTIONS(129),
    [sym_contains] = ACTIONS(127),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(131),
    [sym_ignore_inside] = ACTIONS(133),
    [sym_union] = ACTIONS(135),
    [sym_intersect] = ACTIONS(137),
    [sym_subtract] = ACTIONS(135),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(139),
    [anon_sym_DOT_RBRACK] = ACTIONS(61),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(61),
    [anon_sym_PIPE_PIPE] = ACTIONS(61),
    [anon_sym_SLASH_SLASH] = ACTIONS(61),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(61),
    [anon_sym_BSLASH_SLASH] = ACTIONS(61),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [32] = {
    [sym_expression] = STATE(28),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(733),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(55),
    [sym_semicolon] = ACTIONS(57),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(57),
    [sym_colon] = ACTIONS(101),
    [sym_complement] = ACTIONS(103),
    [sym_term_complement] = ACTIONS(105),
    [sym_contains] = ACTIONS(103),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(109),
    [sym_ignore_inside] = ACTIONS(111),
    [sym_union] = ACTIONS(113),
    [sym_intersect] = ACTIONS(115),
    [sym_subtract] = ACTIONS(113),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(117),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(141),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [anon_sym_COMMA_COMMA] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [33] = {
    [sym_expression] = STATE(37),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(720),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(55),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(55),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(55),
    [sym_colon] = ACTIONS(125),
    [sym_complement] = ACTIONS(127),
    [sym_term_complement] = ACTIONS(129),
    [sym_contains] = ACTIONS(127),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(131),
    [sym_ignore_inside] = ACTIONS(133),
    [sym_union] = ACTIONS(135),
    [sym_intersect] = ACTIONS(137),
    [sym_subtract] = ACTIONS(135),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(139),
    [anon_sym_DOT_RBRACK] = ACTIONS(55),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(143),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [34] = {
    [sym_expression] = STATE(37),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(720),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(125),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [35] = {
    [sym_expression] = STATE(28),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(733),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(55),
    [sym_semicolon] = ACTIONS(57),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(57),
    [sym_colon] = ACTIONS(101),
    [sym_complement] = ACTIONS(103),
    [sym_term_complement] = ACTIONS(105),
    [sym_contains] = ACTIONS(103),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(109),
    [sym_ignore_inside] = ACTIONS(111),
    [sym_union] = ACTIONS(113),
    [sym_intersect] = ACTIONS(115),
    [sym_subtract] = ACTIONS(113),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(117),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(145),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [anon_sym_COMMA_COMMA] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [36] = {
    [sym_expression] = STATE(7),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(147),
    [anon_sym_RBRACK] = ACTIONS(149),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_RPAREN] = ACTIONS(149),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(147),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(147),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(147),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(147),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [anon_sym_DOT_RBRACK] = ACTIONS(149),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(149),
    [anon_sym_PIPE_PIPE] = ACTIONS(149),
    [anon_sym_SLASH_SLASH] = ACTIONS(149),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(149),
    [anon_sym_BSLASH_SLASH] = ACTIONS(149),
    [anon_sym_COMMA_COMMA] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [37] = {
    [sym_expression] = STATE(37),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(720),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(125),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(131),
    [sym_ignore_inside] = ACTIONS(133),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [38] = {
    [sym_expression] = STATE(28),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(733),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(101),
    [sym_complement] = ACTIONS(103),
    [sym_term_complement] = ACTIONS(105),
    [sym_contains] = ACTIONS(103),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(109),
    [sym_ignore_inside] = ACTIONS(111),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(117),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [39] = {
    [sym_expression] = STATE(37),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(720),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(73),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [40] = {
    [sym_expression] = STATE(37),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(720),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(73),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(125),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [41] = {
    [sym_expression] = STATE(5),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_simple_replace] = STATE(331),
    [sym_single_replace] = STATE(331),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(390),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(71),
    [anon_sym_RBRACK] = ACTIONS(69),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_RPAREN] = ACTIONS(69),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(71),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(71),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(71),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [anon_sym_DOT_RBRACK] = ACTIONS(69),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [42] = {
    [sym_expression] = STATE(37),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(720),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(21),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(21),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(21),
    [sym_colon] = ACTIONS(125),
    [sym_complement] = ACTIONS(127),
    [sym_term_complement] = ACTIONS(129),
    [sym_contains] = ACTIONS(127),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(131),
    [sym_ignore_inside] = ACTIONS(133),
    [sym_union] = ACTIONS(135),
    [sym_intersect] = ACTIONS(137),
    [sym_subtract] = ACTIONS(135),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(139),
    [anon_sym_DOT_RBRACK] = ACTIONS(21),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(21),
    [anon_sym_PIPE_PIPE] = ACTIONS(21),
    [anon_sym_SLASH_SLASH] = ACTIONS(21),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(21),
    [anon_sym_BSLASH_SLASH] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [43] = {
    [sym_expression] = STATE(37),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(720),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(125),
    [sym_complement] = ACTIONS(127),
    [sym_term_complement] = ACTIONS(129),
    [sym_contains] = ACTIONS(127),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(131),
    [sym_ignore_inside] = ACTIONS(133),
    [sym_union] = ACTIONS(135),
    [sym_intersect] = ACTIONS(137),
    [sym_subtract] = ACTIONS(135),
    [anon_sym_EQ_GT] = ACTIONS(151),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(139),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [44] = {
    [sym_expression] = STATE(37),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(720),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(55),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(55),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(55),
    [sym_colon] = ACTIONS(125),
    [sym_complement] = ACTIONS(127),
    [sym_term_complement] = ACTIONS(129),
    [sym_contains] = ACTIONS(127),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(131),
    [sym_ignore_inside] = ACTIONS(133),
    [sym_union] = ACTIONS(135),
    [sym_intersect] = ACTIONS(137),
    [sym_subtract] = ACTIONS(135),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(139),
    [anon_sym_DOT_RBRACK] = ACTIONS(55),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(55),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [45] = {
    [sym_expression] = STATE(37),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(720),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(69),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(69),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(125),
    [sym_complement] = ACTIONS(127),
    [sym_term_complement] = ACTIONS(129),
    [sym_contains] = ACTIONS(127),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(131),
    [sym_ignore_inside] = ACTIONS(133),
    [sym_union] = ACTIONS(135),
    [sym_intersect] = ACTIONS(137),
    [sym_subtract] = ACTIONS(135),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(139),
    [anon_sym_DOT_RBRACK] = ACTIONS(69),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [46] = {
    [sym_expression] = STATE(55),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(718),
    [sym_simple_replace] = STATE(385),
    [sym_single_replace] = STATE(385),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(426),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(21),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(21),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(31),
    [sym_colon] = ACTIONS(153),
    [sym_complement] = ACTIONS(155),
    [sym_term_complement] = ACTIONS(157),
    [sym_contains] = ACTIONS(155),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(159),
    [sym_ignore_inside] = ACTIONS(161),
    [sym_union] = ACTIONS(163),
    [sym_intersect] = ACTIONS(165),
    [sym_subtract] = ACTIONS(163),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(167),
    [anon_sym_DOT_RBRACK] = ACTIONS(21),
    [anon_sym_PIPE_PIPE] = ACTIONS(21),
    [anon_sym_SLASH_SLASH] = ACTIONS(21),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(21),
    [anon_sym_BSLASH_SLASH] = ACTIONS(21),
    [anon_sym_COMMA_COMMA] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [47] = {
    [sym_expression] = STATE(55),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(718),
    [sym_simple_replace] = STATE(385),
    [sym_single_replace] = STATE(385),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(426),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(61),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(61),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(63),
    [sym_colon] = ACTIONS(153),
    [sym_complement] = ACTIONS(155),
    [sym_term_complement] = ACTIONS(157),
    [sym_contains] = ACTIONS(155),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(159),
    [sym_ignore_inside] = ACTIONS(161),
    [sym_union] = ACTIONS(163),
    [sym_intersect] = ACTIONS(165),
    [sym_subtract] = ACTIONS(163),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(167),
    [anon_sym_DOT_RBRACK] = ACTIONS(61),
    [anon_sym_PIPE_PIPE] = ACTIONS(61),
    [anon_sym_SLASH_SLASH] = ACTIONS(61),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(61),
    [anon_sym_BSLASH_SLASH] = ACTIONS(61),
    [anon_sym_COMMA_COMMA] = ACTIONS(61),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [48] = {
    [sym_expression] = STATE(55),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(718),
    [sym_simple_replace] = STATE(385),
    [sym_single_replace] = STATE(385),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(426),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(65),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(65),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(67),
    [sym_colon] = ACTIONS(153),
    [sym_complement] = ACTIONS(155),
    [sym_term_complement] = ACTIONS(157),
    [sym_contains] = ACTIONS(155),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(159),
    [sym_ignore_inside] = ACTIONS(161),
    [sym_union] = ACTIONS(163),
    [sym_intersect] = ACTIONS(165),
    [sym_subtract] = ACTIONS(163),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(167),
    [anon_sym_DOT_RBRACK] = ACTIONS(65),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [anon_sym_COMMA_COMMA] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [49] = {
    [sym_expression] = STATE(55),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(718),
    [sym_simple_replace] = STATE(385),
    [sym_single_replace] = STATE(385),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(426),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(69),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(69),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(153),
    [sym_complement] = ACTIONS(155),
    [sym_term_complement] = ACTIONS(157),
    [sym_contains] = ACTIONS(155),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(159),
    [sym_ignore_inside] = ACTIONS(161),
    [sym_union] = ACTIONS(163),
    [sym_intersect] = ACTIONS(165),
    [sym_subtract] = ACTIONS(163),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(167),
    [anon_sym_DOT_RBRACK] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [50] = {
    [sym_expression] = STATE(55),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(718),
    [sym_simple_replace] = STATE(385),
    [sym_single_replace] = STATE(385),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(426),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(153),
    [sym_complement] = ACTIONS(155),
    [sym_term_complement] = ACTIONS(157),
    [sym_contains] = ACTIONS(155),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(159),
    [sym_ignore_inside] = ACTIONS(161),
    [sym_union] = ACTIONS(163),
    [sym_intersect] = ACTIONS(165),
    [sym_subtract] = ACTIONS(163),
    [anon_sym_EQ_GT] = ACTIONS(169),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(167),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [51] = {
    [sym_expression] = STATE(55),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(718),
    [sym_simple_replace] = STATE(385),
    [sym_single_replace] = STATE(385),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(426),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(153),
    [sym_complement] = ACTIONS(155),
    [sym_term_complement] = ACTIONS(157),
    [sym_contains] = ACTIONS(155),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(159),
    [sym_ignore_inside] = ACTIONS(161),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(167),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [52] = {
    [sym_expression] = STATE(55),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(718),
    [sym_simple_replace] = STATE(385),
    [sym_single_replace] = STATE(385),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(426),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(73),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(153),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [53] = {
    [sym_expression] = STATE(55),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(718),
    [sym_simple_replace] = STATE(385),
    [sym_single_replace] = STATE(385),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(426),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(87),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(87),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(89),
    [sym_colon] = ACTIONS(153),
    [sym_complement] = ACTIONS(155),
    [sym_term_complement] = ACTIONS(157),
    [sym_contains] = ACTIONS(155),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(159),
    [sym_ignore_inside] = ACTIONS(161),
    [sym_union] = ACTIONS(163),
    [sym_intersect] = ACTIONS(165),
    [sym_subtract] = ACTIONS(163),
    [anon_sym_EQ_GT] = ACTIONS(87),
    [anon_sym_DASH_GT] = ACTIONS(89),
    [anon_sym_LT_DASH] = ACTIONS(87),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(87),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(87),
    [anon_sym_AT_DASH_GT] = ACTIONS(87),
    [anon_sym_DASH_GT_AT] = ACTIONS(87),
    [anon_sym_AT_GT] = ACTIONS(87),
    [anon_sym_GT_AT] = ACTIONS(87),
    [anon_sym_LBRACK_DOT] = ACTIONS(167),
    [anon_sym_DOT_RBRACK] = ACTIONS(87),
    [anon_sym_PIPE_PIPE] = ACTIONS(87),
    [anon_sym_SLASH_SLASH] = ACTIONS(87),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(87),
    [anon_sym_BSLASH_SLASH] = ACTIONS(87),
    [anon_sym_COMMA_COMMA] = ACTIONS(87),
    [sym_crossproduct] = ACTIONS(87),
    [sym_compose] = ACTIONS(87),
    [sym_comment] = ACTIONS(3),
  },
  [54] = {
    [sym_expression] = STATE(55),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(718),
    [sym_simple_replace] = STATE(385),
    [sym_single_replace] = STATE(385),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(426),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(73),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [55] = {
    [sym_expression] = STATE(55),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(718),
    [sym_simple_replace] = STATE(385),
    [sym_single_replace] = STATE(385),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(426),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(153),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(159),
    [sym_ignore_inside] = ACTIONS(161),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [56] = {
    [sym_expression] = STATE(55),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(718),
    [sym_simple_replace] = STATE(385),
    [sym_single_replace] = STATE(385),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(426),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(153),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [57] = {
    [sym_expression] = STATE(37),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(720),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(55),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(55),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(55),
    [sym_colon] = ACTIONS(125),
    [sym_complement] = ACTIONS(127),
    [sym_term_complement] = ACTIONS(129),
    [sym_contains] = ACTIONS(127),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(131),
    [sym_ignore_inside] = ACTIONS(133),
    [sym_union] = ACTIONS(135),
    [sym_intersect] = ACTIONS(137),
    [sym_subtract] = ACTIONS(135),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(139),
    [anon_sym_DOT_RBRACK] = ACTIONS(55),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(85),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [58] = {
    [sym_expression] = STATE(37),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(720),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(87),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(87),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(87),
    [sym_colon] = ACTIONS(125),
    [sym_complement] = ACTIONS(127),
    [sym_term_complement] = ACTIONS(129),
    [sym_contains] = ACTIONS(127),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(131),
    [sym_ignore_inside] = ACTIONS(133),
    [sym_union] = ACTIONS(135),
    [sym_intersect] = ACTIONS(137),
    [sym_subtract] = ACTIONS(135),
    [anon_sym_EQ_GT] = ACTIONS(87),
    [anon_sym_DASH_GT] = ACTIONS(89),
    [anon_sym_LT_DASH] = ACTIONS(87),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(87),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(87),
    [anon_sym_AT_DASH_GT] = ACTIONS(87),
    [anon_sym_DASH_GT_AT] = ACTIONS(87),
    [anon_sym_AT_GT] = ACTIONS(87),
    [anon_sym_GT_AT] = ACTIONS(87),
    [anon_sym_LBRACK_DOT] = ACTIONS(139),
    [anon_sym_DOT_RBRACK] = ACTIONS(87),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(87),
    [anon_sym_PIPE_PIPE] = ACTIONS(87),
    [anon_sym_SLASH_SLASH] = ACTIONS(87),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(87),
    [anon_sym_BSLASH_SLASH] = ACTIONS(87),
    [sym_crossproduct] = ACTIONS(87),
    [sym_compose] = ACTIONS(87),
    [sym_comment] = ACTIONS(3),
  },
  [59] = {
    [sym_expression] = STATE(37),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(720),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(55),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(55),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(55),
    [sym_colon] = ACTIONS(125),
    [sym_complement] = ACTIONS(127),
    [sym_term_complement] = ACTIONS(129),
    [sym_contains] = ACTIONS(127),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(131),
    [sym_ignore_inside] = ACTIONS(133),
    [sym_union] = ACTIONS(135),
    [sym_intersect] = ACTIONS(137),
    [sym_subtract] = ACTIONS(135),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(139),
    [anon_sym_DOT_RBRACK] = ACTIONS(55),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(171),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [60] = {
    [sym_expression] = STATE(28),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(733),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(55),
    [sym_semicolon] = ACTIONS(57),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(57),
    [sym_colon] = ACTIONS(101),
    [sym_complement] = ACTIONS(103),
    [sym_term_complement] = ACTIONS(105),
    [sym_contains] = ACTIONS(103),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(109),
    [sym_ignore_inside] = ACTIONS(111),
    [sym_union] = ACTIONS(113),
    [sym_intersect] = ACTIONS(115),
    [sym_subtract] = ACTIONS(113),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(117),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(85),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [anon_sym_COMMA_COMMA] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [61] = {
    [sym_expression] = STATE(71),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(712),
    [sym_simple_replace] = STATE(429),
    [sym_single_replace] = STATE(429),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(464),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(65),
    [sym_semicolon] = ACTIONS(67),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(67),
    [sym_colon] = ACTIONS(173),
    [sym_complement] = ACTIONS(175),
    [sym_term_complement] = ACTIONS(177),
    [sym_contains] = ACTIONS(175),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(179),
    [sym_ignore_inside] = ACTIONS(181),
    [sym_union] = ACTIONS(183),
    [sym_intersect] = ACTIONS(185),
    [sym_subtract] = ACTIONS(183),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(187),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [anon_sym_COMMA_COMMA] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [62] = {
    [sym_expression] = STATE(99),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(713),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(55),
    [sym_semicolon] = ACTIONS(57),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(55),
    [sym_colon] = ACTIONS(189),
    [sym_complement] = ACTIONS(191),
    [sym_term_complement] = ACTIONS(193),
    [sym_contains] = ACTIONS(191),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(195),
    [sym_ignore_inside] = ACTIONS(197),
    [sym_union] = ACTIONS(199),
    [sym_intersect] = ACTIONS(201),
    [sym_subtract] = ACTIONS(199),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(203),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(205),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [63] = {
    [sym_expression] = STATE(71),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(712),
    [sym_simple_replace] = STATE(429),
    [sym_single_replace] = STATE(429),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(464),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(21),
    [sym_semicolon] = ACTIONS(31),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(31),
    [sym_colon] = ACTIONS(173),
    [sym_complement] = ACTIONS(175),
    [sym_term_complement] = ACTIONS(177),
    [sym_contains] = ACTIONS(175),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(179),
    [sym_ignore_inside] = ACTIONS(181),
    [sym_union] = ACTIONS(183),
    [sym_intersect] = ACTIONS(185),
    [sym_subtract] = ACTIONS(183),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(187),
    [anon_sym_PIPE_PIPE] = ACTIONS(21),
    [anon_sym_SLASH_SLASH] = ACTIONS(21),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(21),
    [anon_sym_BSLASH_SLASH] = ACTIONS(21),
    [anon_sym_COMMA_COMMA] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [64] = {
    [sym_expression] = STATE(71),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(712),
    [sym_simple_replace] = STATE(429),
    [sym_single_replace] = STATE(429),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(464),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(61),
    [sym_semicolon] = ACTIONS(63),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(63),
    [sym_colon] = ACTIONS(173),
    [sym_complement] = ACTIONS(175),
    [sym_term_complement] = ACTIONS(177),
    [sym_contains] = ACTIONS(175),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(179),
    [sym_ignore_inside] = ACTIONS(181),
    [sym_union] = ACTIONS(183),
    [sym_intersect] = ACTIONS(185),
    [sym_subtract] = ACTIONS(183),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(187),
    [anon_sym_PIPE_PIPE] = ACTIONS(61),
    [anon_sym_SLASH_SLASH] = ACTIONS(61),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(61),
    [anon_sym_BSLASH_SLASH] = ACTIONS(61),
    [anon_sym_COMMA_COMMA] = ACTIONS(61),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [65] = {
    [sym_expression] = STATE(31),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(71),
    [anon_sym_RBRACK] = ACTIONS(69),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_RPAREN] = ACTIONS(69),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(71),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(71),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(71),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [anon_sym_DOT_RBRACK] = ACTIONS(69),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [66] = {
    [sym_expression] = STATE(71),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(712),
    [sym_simple_replace] = STATE(429),
    [sym_single_replace] = STATE(429),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(464),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(69),
    [sym_semicolon] = ACTIONS(71),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(173),
    [sym_complement] = ACTIONS(175),
    [sym_term_complement] = ACTIONS(177),
    [sym_contains] = ACTIONS(175),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(179),
    [sym_ignore_inside] = ACTIONS(181),
    [sym_union] = ACTIONS(183),
    [sym_intersect] = ACTIONS(185),
    [sym_subtract] = ACTIONS(183),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(187),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [67] = {
    [sym_expression] = STATE(71),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(712),
    [sym_simple_replace] = STATE(429),
    [sym_single_replace] = STATE(429),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(464),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(173),
    [sym_complement] = ACTIONS(175),
    [sym_term_complement] = ACTIONS(177),
    [sym_contains] = ACTIONS(175),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(179),
    [sym_ignore_inside] = ACTIONS(181),
    [sym_union] = ACTIONS(183),
    [sym_intersect] = ACTIONS(185),
    [sym_subtract] = ACTIONS(183),
    [anon_sym_EQ_GT] = ACTIONS(207),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(187),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [68] = {
    [sym_expression] = STATE(71),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(712),
    [sym_simple_replace] = STATE(429),
    [sym_single_replace] = STATE(429),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(464),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(173),
    [sym_complement] = ACTIONS(175),
    [sym_term_complement] = ACTIONS(177),
    [sym_contains] = ACTIONS(175),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(179),
    [sym_ignore_inside] = ACTIONS(181),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(187),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [69] = {
    [sym_expression] = STATE(71),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(712),
    [sym_simple_replace] = STATE(429),
    [sym_single_replace] = STATE(429),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(464),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(173),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [70] = {
    [sym_expression] = STATE(71),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(712),
    [sym_simple_replace] = STATE(429),
    [sym_single_replace] = STATE(429),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(464),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [71] = {
    [sym_expression] = STATE(71),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(712),
    [sym_simple_replace] = STATE(429),
    [sym_single_replace] = STATE(429),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(464),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(173),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(179),
    [sym_ignore_inside] = ACTIONS(181),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [72] = {
    [sym_expression] = STATE(71),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(712),
    [sym_simple_replace] = STATE(429),
    [sym_single_replace] = STATE(429),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(464),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(173),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [73] = {
    [sym_expression] = STATE(46),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_simple_replace] = STATE(385),
    [sym_single_replace] = STATE(385),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(426),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(67),
    [anon_sym_RBRACK] = ACTIONS(65),
    [sym_symbol] = ACTIONS(67),
    [sym_string] = ACTIONS(65),
    [sym_any] = ACTIONS(65),
    [sym_zero] = ACTIONS(65),
    [sym_boundary] = ACTIONS(65),
    [sym_symbol_group] = ACTIONS(65),
    [anon_sym_LPAREN] = ACTIONS(67),
    [anon_sym_RPAREN] = ACTIONS(65),
    [anon_sym_BQUOTE] = ACTIONS(65),
    [anon_sym_COMMA] = ACTIONS(67),
    [sym_colon] = ACTIONS(65),
    [sym_complement] = ACTIONS(65),
    [sym_term_complement] = ACTIONS(67),
    [sym_contains] = ACTIONS(65),
    [sym_plus] = ACTIONS(65),
    [sym_star] = ACTIONS(65),
    [sym_repeat] = ACTIONS(65),
    [sym_upper] = ACTIONS(65),
    [sym_lower] = ACTIONS(65),
    [sym_reverse] = ACTIONS(65),
    [sym_inverse] = ACTIONS(65),
    [sym_ignore] = ACTIONS(67),
    [sym_ignore_inside] = ACTIONS(65),
    [sym_union] = ACTIONS(67),
    [sym_intersect] = ACTIONS(65),
    [sym_subtract] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(65),
    [anon_sym_DOT_RBRACK] = ACTIONS(65),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [anon_sym_COMMA_COMMA] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [74] = {
    [sym_expression] = STATE(25),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(119),
    [anon_sym_RBRACK] = ACTIONS(121),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_RPAREN] = ACTIONS(121),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(121),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(119),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(119),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(119),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_DOT_RBRACK] = ACTIONS(121),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(121),
    [anon_sym_PIPE_PIPE] = ACTIONS(121),
    [anon_sym_SLASH_SLASH] = ACTIONS(121),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(121),
    [anon_sym_BSLASH_SLASH] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [75] = {
    [sym_expression] = STATE(47),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_simple_replace] = STATE(385),
    [sym_single_replace] = STATE(385),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(426),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(71),
    [anon_sym_RBRACK] = ACTIONS(69),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_RPAREN] = ACTIONS(69),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(71),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(71),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(71),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [anon_sym_DOT_RBRACK] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [76] = {
    [sym_expression] = STATE(48),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_simple_replace] = STATE(385),
    [sym_single_replace] = STATE(385),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(426),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(119),
    [anon_sym_RBRACK] = ACTIONS(121),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_RPAREN] = ACTIONS(121),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(119),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(119),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(119),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(119),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_DOT_RBRACK] = ACTIONS(121),
    [anon_sym_PIPE_PIPE] = ACTIONS(121),
    [anon_sym_SLASH_SLASH] = ACTIONS(121),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(121),
    [anon_sym_BSLASH_SLASH] = ACTIONS(121),
    [anon_sym_COMMA_COMMA] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [77] = {
    [sym_expression] = STATE(45),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_simple_replace] = STATE(380),
    [sym_single_replace] = STATE(380),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(365),
    [sym_conditional_replace] = STATE(369),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(147),
    [anon_sym_RBRACK] = ACTIONS(149),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_RPAREN] = ACTIONS(149),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(149),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(147),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(147),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(147),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [anon_sym_DOT_RBRACK] = ACTIONS(149),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(149),
    [anon_sym_PIPE_PIPE] = ACTIONS(149),
    [anon_sym_SLASH_SLASH] = ACTIONS(149),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(149),
    [anon_sym_BSLASH_SLASH] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [78] = {
    [sym_expression] = STATE(49),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_simple_replace] = STATE(385),
    [sym_single_replace] = STATE(385),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(426),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(147),
    [anon_sym_RBRACK] = ACTIONS(149),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_RPAREN] = ACTIONS(149),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(147),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(147),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(147),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(147),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [anon_sym_DOT_RBRACK] = ACTIONS(149),
    [anon_sym_PIPE_PIPE] = ACTIONS(149),
    [anon_sym_SLASH_SLASH] = ACTIONS(149),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(149),
    [anon_sym_BSLASH_SLASH] = ACTIONS(149),
    [anon_sym_COMMA_COMMA] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [79] = {
    [sym_expression] = STATE(99),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(713),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(55),
    [sym_semicolon] = ACTIONS(57),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(55),
    [sym_colon] = ACTIONS(189),
    [sym_complement] = ACTIONS(191),
    [sym_term_complement] = ACTIONS(193),
    [sym_contains] = ACTIONS(191),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(195),
    [sym_ignore_inside] = ACTIONS(197),
    [sym_union] = ACTIONS(199),
    [sym_intersect] = ACTIONS(201),
    [sym_subtract] = ACTIONS(199),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(203),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(85),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [80] = {
    [sym_expression] = STATE(99),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(713),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(21),
    [sym_semicolon] = ACTIONS(31),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(21),
    [sym_colon] = ACTIONS(189),
    [sym_complement] = ACTIONS(191),
    [sym_term_complement] = ACTIONS(193),
    [sym_contains] = ACTIONS(191),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(195),
    [sym_ignore_inside] = ACTIONS(197),
    [sym_union] = ACTIONS(199),
    [sym_intersect] = ACTIONS(201),
    [sym_subtract] = ACTIONS(199),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(203),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(21),
    [anon_sym_PIPE_PIPE] = ACTIONS(21),
    [anon_sym_SLASH_SLASH] = ACTIONS(21),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(21),
    [anon_sym_BSLASH_SLASH] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [81] = {
    [sym_expression] = STATE(99),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(713),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(61),
    [sym_semicolon] = ACTIONS(63),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(61),
    [sym_colon] = ACTIONS(189),
    [sym_complement] = ACTIONS(191),
    [sym_term_complement] = ACTIONS(193),
    [sym_contains] = ACTIONS(191),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(195),
    [sym_ignore_inside] = ACTIONS(197),
    [sym_union] = ACTIONS(199),
    [sym_intersect] = ACTIONS(201),
    [sym_subtract] = ACTIONS(199),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(203),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(61),
    [anon_sym_PIPE_PIPE] = ACTIONS(61),
    [anon_sym_SLASH_SLASH] = ACTIONS(61),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(61),
    [anon_sym_BSLASH_SLASH] = ACTIONS(61),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [82] = {
    [sym_expression] = STATE(99),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(713),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(65),
    [sym_semicolon] = ACTIONS(67),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(65),
    [sym_colon] = ACTIONS(189),
    [sym_complement] = ACTIONS(191),
    [sym_term_complement] = ACTIONS(193),
    [sym_contains] = ACTIONS(191),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(195),
    [sym_ignore_inside] = ACTIONS(197),
    [sym_union] = ACTIONS(199),
    [sym_intersect] = ACTIONS(201),
    [sym_subtract] = ACTIONS(199),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(203),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(65),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [83] = {
    [sym_expression] = STATE(99),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(713),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(69),
    [sym_semicolon] = ACTIONS(71),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(189),
    [sym_complement] = ACTIONS(191),
    [sym_term_complement] = ACTIONS(193),
    [sym_contains] = ACTIONS(191),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(195),
    [sym_ignore_inside] = ACTIONS(197),
    [sym_union] = ACTIONS(199),
    [sym_intersect] = ACTIONS(201),
    [sym_subtract] = ACTIONS(199),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(203),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [84] = {
    [sym_expression] = STATE(92),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(738),
    [sym_simple_replace] = STATE(404),
    [sym_single_replace] = STATE(404),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(433),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(21),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(21),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(21),
    [sym_colon] = ACTIONS(209),
    [sym_complement] = ACTIONS(211),
    [sym_term_complement] = ACTIONS(213),
    [sym_contains] = ACTIONS(211),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(215),
    [sym_ignore_inside] = ACTIONS(217),
    [sym_union] = ACTIONS(219),
    [sym_intersect] = ACTIONS(221),
    [sym_subtract] = ACTIONS(219),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(21),
    [anon_sym_PIPE_PIPE] = ACTIONS(21),
    [anon_sym_SLASH_SLASH] = ACTIONS(21),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(21),
    [anon_sym_BSLASH_SLASH] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [85] = {
    [sym_expression] = STATE(92),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(738),
    [sym_simple_replace] = STATE(404),
    [sym_single_replace] = STATE(404),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(433),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(61),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(61),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(61),
    [sym_colon] = ACTIONS(209),
    [sym_complement] = ACTIONS(211),
    [sym_term_complement] = ACTIONS(213),
    [sym_contains] = ACTIONS(211),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(215),
    [sym_ignore_inside] = ACTIONS(217),
    [sym_union] = ACTIONS(219),
    [sym_intersect] = ACTIONS(221),
    [sym_subtract] = ACTIONS(219),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(61),
    [anon_sym_PIPE_PIPE] = ACTIONS(61),
    [anon_sym_SLASH_SLASH] = ACTIONS(61),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(61),
    [anon_sym_BSLASH_SLASH] = ACTIONS(61),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [86] = {
    [sym_expression] = STATE(92),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(738),
    [sym_simple_replace] = STATE(404),
    [sym_single_replace] = STATE(404),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(433),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(65),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(65),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(65),
    [sym_colon] = ACTIONS(209),
    [sym_complement] = ACTIONS(211),
    [sym_term_complement] = ACTIONS(213),
    [sym_contains] = ACTIONS(211),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(215),
    [sym_ignore_inside] = ACTIONS(217),
    [sym_union] = ACTIONS(219),
    [sym_intersect] = ACTIONS(221),
    [sym_subtract] = ACTIONS(219),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(65),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [87] = {
    [sym_expression] = STATE(92),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(738),
    [sym_simple_replace] = STATE(404),
    [sym_single_replace] = STATE(404),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(433),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(69),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(69),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(209),
    [sym_complement] = ACTIONS(211),
    [sym_term_complement] = ACTIONS(213),
    [sym_contains] = ACTIONS(211),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(215),
    [sym_ignore_inside] = ACTIONS(217),
    [sym_union] = ACTIONS(219),
    [sym_intersect] = ACTIONS(221),
    [sym_subtract] = ACTIONS(219),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [88] = {
    [sym_expression] = STATE(92),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(738),
    [sym_simple_replace] = STATE(404),
    [sym_single_replace] = STATE(404),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(433),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(209),
    [sym_complement] = ACTIONS(211),
    [sym_term_complement] = ACTIONS(213),
    [sym_contains] = ACTIONS(211),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(215),
    [sym_ignore_inside] = ACTIONS(217),
    [sym_union] = ACTIONS(219),
    [sym_intersect] = ACTIONS(221),
    [sym_subtract] = ACTIONS(219),
    [anon_sym_EQ_GT] = ACTIONS(225),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [89] = {
    [sym_expression] = STATE(92),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(738),
    [sym_simple_replace] = STATE(404),
    [sym_single_replace] = STATE(404),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(433),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(209),
    [sym_complement] = ACTIONS(211),
    [sym_term_complement] = ACTIONS(213),
    [sym_contains] = ACTIONS(211),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(215),
    [sym_ignore_inside] = ACTIONS(217),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [90] = {
    [sym_expression] = STATE(92),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(738),
    [sym_simple_replace] = STATE(404),
    [sym_single_replace] = STATE(404),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(433),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(73),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(209),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [91] = {
    [sym_expression] = STATE(92),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(738),
    [sym_simple_replace] = STATE(404),
    [sym_single_replace] = STATE(404),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(433),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(73),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [92] = {
    [sym_expression] = STATE(92),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(738),
    [sym_simple_replace] = STATE(404),
    [sym_single_replace] = STATE(404),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(433),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(209),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(215),
    [sym_ignore_inside] = ACTIONS(217),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [93] = {
    [sym_expression] = STATE(92),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(738),
    [sym_simple_replace] = STATE(404),
    [sym_single_replace] = STATE(404),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(433),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(209),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [94] = {
    [sym_expression] = STATE(99),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(713),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(55),
    [sym_semicolon] = ACTIONS(57),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(55),
    [sym_colon] = ACTIONS(189),
    [sym_complement] = ACTIONS(191),
    [sym_term_complement] = ACTIONS(193),
    [sym_contains] = ACTIONS(191),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(195),
    [sym_ignore_inside] = ACTIONS(197),
    [sym_union] = ACTIONS(199),
    [sym_intersect] = ACTIONS(201),
    [sym_subtract] = ACTIONS(199),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(203),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(55),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [95] = {
    [sym_expression] = STATE(99),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(713),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(189),
    [sym_complement] = ACTIONS(191),
    [sym_term_complement] = ACTIONS(193),
    [sym_contains] = ACTIONS(191),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(195),
    [sym_ignore_inside] = ACTIONS(197),
    [sym_union] = ACTIONS(199),
    [sym_intersect] = ACTIONS(201),
    [sym_subtract] = ACTIONS(199),
    [anon_sym_EQ_GT] = ACTIONS(227),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(203),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [96] = {
    [sym_expression] = STATE(99),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(713),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(189),
    [sym_complement] = ACTIONS(191),
    [sym_term_complement] = ACTIONS(193),
    [sym_contains] = ACTIONS(191),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(195),
    [sym_ignore_inside] = ACTIONS(197),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(203),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [97] = {
    [sym_expression] = STATE(99),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(713),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(189),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [98] = {
    [sym_expression] = STATE(99),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(713),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [99] = {
    [sym_expression] = STATE(99),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(713),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(189),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(195),
    [sym_ignore_inside] = ACTIONS(197),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [100] = {
    [sym_expression] = STATE(99),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(713),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(189),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [101] = {
    [sym_expression] = STATE(21),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(149),
    [sym_semicolon] = ACTIONS(147),
    [anon_sym_LBRACK] = ACTIONS(147),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(147),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(147),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(147),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(147),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(149),
    [anon_sym_PIPE_PIPE] = ACTIONS(149),
    [anon_sym_SLASH_SLASH] = ACTIONS(149),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(149),
    [anon_sym_BSLASH_SLASH] = ACTIONS(149),
    [anon_sym_COMMA_COMMA] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [102] = {
    [sym_expression] = STATE(22),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(121),
    [sym_semicolon] = ACTIONS(119),
    [anon_sym_LBRACK] = ACTIONS(119),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(119),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(119),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(119),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(119),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(121),
    [anon_sym_PIPE_PIPE] = ACTIONS(121),
    [anon_sym_SLASH_SLASH] = ACTIONS(121),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(121),
    [anon_sym_BSLASH_SLASH] = ACTIONS(121),
    [anon_sym_COMMA_COMMA] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [103] = {
    [sym_expression] = STATE(23),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_simple_replace] = STATE(386),
    [sym_single_replace] = STATE(386),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(436),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(69),
    [sym_semicolon] = ACTIONS(71),
    [anon_sym_LBRACK] = ACTIONS(71),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(71),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(71),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(71),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [104] = {
    [sym_expression] = STATE(99),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(713),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(55),
    [sym_semicolon] = ACTIONS(57),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(55),
    [sym_colon] = ACTIONS(189),
    [sym_complement] = ACTIONS(191),
    [sym_term_complement] = ACTIONS(193),
    [sym_contains] = ACTIONS(191),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(195),
    [sym_ignore_inside] = ACTIONS(197),
    [sym_union] = ACTIONS(199),
    [sym_intersect] = ACTIONS(201),
    [sym_subtract] = ACTIONS(199),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(203),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(229),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [105] = {
    [sym_expression] = STATE(113),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(715),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(89),
    [sym_colon] = ACTIONS(241),
    [sym_complement] = ACTIONS(243),
    [sym_term_complement] = ACTIONS(245),
    [sym_contains] = ACTIONS(243),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(249),
    [sym_ignore_inside] = ACTIONS(251),
    [sym_union] = ACTIONS(253),
    [sym_intersect] = ACTIONS(255),
    [sym_subtract] = ACTIONS(253),
    [anon_sym__] = ACTIONS(89),
    [anon_sym_EQ_GT] = ACTIONS(87),
    [anon_sym_DASH_GT] = ACTIONS(89),
    [anon_sym_LT_DASH] = ACTIONS(87),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(87),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(87),
    [anon_sym_AT_DASH_GT] = ACTIONS(87),
    [anon_sym_DASH_GT_AT] = ACTIONS(87),
    [anon_sym_AT_GT] = ACTIONS(87),
    [anon_sym_GT_AT] = ACTIONS(87),
    [anon_sym_LBRACK_DOT] = ACTIONS(257),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(87),
    [anon_sym_PIPE_PIPE] = ACTIONS(87),
    [anon_sym_SLASH_SLASH] = ACTIONS(87),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(87),
    [anon_sym_BSLASH_SLASH] = ACTIONS(87),
    [anon_sym_COMMA_COMMA] = ACTIONS(87),
    [sym_crossproduct] = ACTIONS(87),
    [sym_compose] = ACTIONS(87),
    [sym_comment] = ACTIONS(3),
  },
  [106] = {
    [sym_expression] = STATE(99),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(713),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(87),
    [sym_semicolon] = ACTIONS(89),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(87),
    [sym_colon] = ACTIONS(189),
    [sym_complement] = ACTIONS(191),
    [sym_term_complement] = ACTIONS(193),
    [sym_contains] = ACTIONS(191),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(195),
    [sym_ignore_inside] = ACTIONS(197),
    [sym_union] = ACTIONS(199),
    [sym_intersect] = ACTIONS(201),
    [sym_subtract] = ACTIONS(199),
    [anon_sym_EQ_GT] = ACTIONS(87),
    [anon_sym_DASH_GT] = ACTIONS(89),
    [anon_sym_LT_DASH] = ACTIONS(87),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(87),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(87),
    [anon_sym_AT_DASH_GT] = ACTIONS(87),
    [anon_sym_DASH_GT_AT] = ACTIONS(87),
    [anon_sym_AT_GT] = ACTIONS(87),
    [anon_sym_GT_AT] = ACTIONS(87),
    [anon_sym_LBRACK_DOT] = ACTIONS(203),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(87),
    [anon_sym_PIPE_PIPE] = ACTIONS(87),
    [anon_sym_SLASH_SLASH] = ACTIONS(87),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(87),
    [anon_sym_BSLASH_SLASH] = ACTIONS(87),
    [sym_crossproduct] = ACTIONS(87),
    [sym_compose] = ACTIONS(87),
    [sym_comment] = ACTIONS(3),
  },
  [107] = {
    [sym_expression] = STATE(99),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(713),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(55),
    [sym_semicolon] = ACTIONS(57),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(55),
    [sym_colon] = ACTIONS(189),
    [sym_complement] = ACTIONS(191),
    [sym_term_complement] = ACTIONS(193),
    [sym_contains] = ACTIONS(191),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(195),
    [sym_ignore_inside] = ACTIONS(197),
    [sym_union] = ACTIONS(199),
    [sym_intersect] = ACTIONS(201),
    [sym_subtract] = ACTIONS(199),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(203),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(259),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [108] = {
    [sym_expression] = STATE(113),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(715),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(57),
    [sym_colon] = ACTIONS(241),
    [sym_complement] = ACTIONS(243),
    [sym_term_complement] = ACTIONS(245),
    [sym_contains] = ACTIONS(243),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(249),
    [sym_ignore_inside] = ACTIONS(251),
    [sym_union] = ACTIONS(253),
    [sym_intersect] = ACTIONS(255),
    [sym_subtract] = ACTIONS(253),
    [anon_sym__] = ACTIONS(57),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(257),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(261),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [anon_sym_COMMA_COMMA] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [109] = {
    [sym_expression] = STATE(113),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(715),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(57),
    [sym_colon] = ACTIONS(241),
    [sym_complement] = ACTIONS(243),
    [sym_term_complement] = ACTIONS(245),
    [sym_contains] = ACTIONS(243),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(249),
    [sym_ignore_inside] = ACTIONS(251),
    [sym_union] = ACTIONS(253),
    [sym_intersect] = ACTIONS(255),
    [sym_subtract] = ACTIONS(253),
    [anon_sym__] = ACTIONS(57),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(257),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(263),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [anon_sym_COMMA_COMMA] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [110] = {
    [sym_expression] = STATE(71),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(712),
    [sym_simple_replace] = STATE(429),
    [sym_single_replace] = STATE(429),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(464),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(87),
    [sym_semicolon] = ACTIONS(89),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(89),
    [sym_colon] = ACTIONS(173),
    [sym_complement] = ACTIONS(175),
    [sym_term_complement] = ACTIONS(177),
    [sym_contains] = ACTIONS(175),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(179),
    [sym_ignore_inside] = ACTIONS(181),
    [sym_union] = ACTIONS(183),
    [sym_intersect] = ACTIONS(185),
    [sym_subtract] = ACTIONS(183),
    [anon_sym_EQ_GT] = ACTIONS(87),
    [anon_sym_DASH_GT] = ACTIONS(89),
    [anon_sym_LT_DASH] = ACTIONS(87),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(87),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(87),
    [anon_sym_AT_DASH_GT] = ACTIONS(87),
    [anon_sym_DASH_GT_AT] = ACTIONS(87),
    [anon_sym_AT_GT] = ACTIONS(87),
    [anon_sym_GT_AT] = ACTIONS(87),
    [anon_sym_LBRACK_DOT] = ACTIONS(187),
    [anon_sym_PIPE_PIPE] = ACTIONS(87),
    [anon_sym_SLASH_SLASH] = ACTIONS(87),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(87),
    [anon_sym_BSLASH_SLASH] = ACTIONS(87),
    [anon_sym_COMMA_COMMA] = ACTIONS(87),
    [sym_crossproduct] = ACTIONS(87),
    [sym_compose] = ACTIONS(87),
    [sym_comment] = ACTIONS(3),
  },
  [111] = {
    [sym_expression] = STATE(113),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(715),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(241),
    [sym_complement] = ACTIONS(243),
    [sym_term_complement] = ACTIONS(245),
    [sym_contains] = ACTIONS(243),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(249),
    [sym_ignore_inside] = ACTIONS(251),
    [sym_union] = ACTIONS(253),
    [sym_intersect] = ACTIONS(255),
    [sym_subtract] = ACTIONS(253),
    [anon_sym__] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(257),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [112] = {
    [sym_expression] = STATE(113),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(715),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(57),
    [sym_colon] = ACTIONS(241),
    [sym_complement] = ACTIONS(243),
    [sym_term_complement] = ACTIONS(245),
    [sym_contains] = ACTIONS(243),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(249),
    [sym_ignore_inside] = ACTIONS(251),
    [sym_union] = ACTIONS(253),
    [sym_intersect] = ACTIONS(255),
    [sym_subtract] = ACTIONS(253),
    [anon_sym__] = ACTIONS(57),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(257),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(55),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [anon_sym_COMMA_COMMA] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [113] = {
    [sym_expression] = STATE(113),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(715),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(241),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(249),
    [sym_ignore_inside] = ACTIONS(251),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [114] = {
    [sym_expression] = STATE(113),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(715),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(241),
    [sym_complement] = ACTIONS(243),
    [sym_term_complement] = ACTIONS(245),
    [sym_contains] = ACTIONS(243),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(249),
    [sym_ignore_inside] = ACTIONS(251),
    [sym_union] = ACTIONS(253),
    [sym_intersect] = ACTIONS(255),
    [sym_subtract] = ACTIONS(253),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(265),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(257),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [115] = {
    [sym_expression] = STATE(113),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(715),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(241),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [116] = {
    [sym_expression] = STATE(113),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(715),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(241),
    [sym_complement] = ACTIONS(243),
    [sym_term_complement] = ACTIONS(245),
    [sym_contains] = ACTIONS(243),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(249),
    [sym_ignore_inside] = ACTIONS(251),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(257),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [117] = {
    [sym_expression] = STATE(92),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_arrow] = STATE(738),
    [sym_simple_replace] = STATE(404),
    [sym_single_replace] = STATE(404),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(433),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(19),
    [anon_sym_RBRACK] = ACTIONS(87),
    [sym_symbol] = ACTIONS(23),
    [sym_string] = ACTIONS(25),
    [sym_any] = ACTIONS(25),
    [sym_zero] = ACTIONS(25),
    [sym_boundary] = ACTIONS(25),
    [sym_symbol_group] = ACTIONS(25),
    [anon_sym_LPAREN] = ACTIONS(27),
    [anon_sym_RPAREN] = ACTIONS(87),
    [anon_sym_BQUOTE] = ACTIONS(29),
    [anon_sym_COMMA] = ACTIONS(87),
    [sym_colon] = ACTIONS(209),
    [sym_complement] = ACTIONS(211),
    [sym_term_complement] = ACTIONS(213),
    [sym_contains] = ACTIONS(211),
    [sym_plus] = ACTIONS(39),
    [sym_star] = ACTIONS(39),
    [sym_repeat] = ACTIONS(39),
    [sym_upper] = ACTIONS(39),
    [sym_lower] = ACTIONS(39),
    [sym_reverse] = ACTIONS(39),
    [sym_inverse] = ACTIONS(39),
    [sym_ignore] = ACTIONS(215),
    [sym_ignore_inside] = ACTIONS(217),
    [sym_union] = ACTIONS(219),
    [sym_intersect] = ACTIONS(221),
    [sym_subtract] = ACTIONS(219),
    [anon_sym_EQ_GT] = ACTIONS(87),
    [anon_sym_DASH_GT] = ACTIONS(89),
    [anon_sym_LT_DASH] = ACTIONS(87),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(87),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(87),
    [anon_sym_AT_DASH_GT] = ACTIONS(87),
    [anon_sym_DASH_GT_AT] = ACTIONS(87),
    [anon_sym_AT_GT] = ACTIONS(87),
    [anon_sym_GT_AT] = ACTIONS(87),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(87),
    [anon_sym_PIPE_PIPE] = ACTIONS(87),
    [anon_sym_SLASH_SLASH] = ACTIONS(87),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(87),
    [anon_sym_BSLASH_SLASH] = ACTIONS(87),
    [sym_crossproduct] = ACTIONS(87),
    [sym_compose] = ACTIONS(87),
    [sym_comment] = ACTIONS(3),
  },
  [118] = {
    [sym_expression] = STATE(113),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(715),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(241),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [119] = {
    [sym_expression] = STATE(113),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(715),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(57),
    [sym_colon] = ACTIONS(241),
    [sym_complement] = ACTIONS(243),
    [sym_term_complement] = ACTIONS(245),
    [sym_contains] = ACTIONS(243),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(249),
    [sym_ignore_inside] = ACTIONS(251),
    [sym_union] = ACTIONS(253),
    [sym_intersect] = ACTIONS(255),
    [sym_subtract] = ACTIONS(253),
    [anon_sym__] = ACTIONS(57),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(257),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(85),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [anon_sym_COMMA_COMMA] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [120] = {
    [sym_expression] = STATE(113),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(715),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(31),
    [sym_colon] = ACTIONS(241),
    [sym_complement] = ACTIONS(243),
    [sym_term_complement] = ACTIONS(245),
    [sym_contains] = ACTIONS(243),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(249),
    [sym_ignore_inside] = ACTIONS(251),
    [sym_union] = ACTIONS(253),
    [sym_intersect] = ACTIONS(255),
    [sym_subtract] = ACTIONS(253),
    [anon_sym__] = ACTIONS(31),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(257),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(21),
    [anon_sym_PIPE_PIPE] = ACTIONS(21),
    [anon_sym_SLASH_SLASH] = ACTIONS(21),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(21),
    [anon_sym_BSLASH_SLASH] = ACTIONS(21),
    [anon_sym_COMMA_COMMA] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [121] = {
    [sym_expression] = STATE(113),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(715),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(63),
    [sym_colon] = ACTIONS(241),
    [sym_complement] = ACTIONS(243),
    [sym_term_complement] = ACTIONS(245),
    [sym_contains] = ACTIONS(243),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(249),
    [sym_ignore_inside] = ACTIONS(251),
    [sym_union] = ACTIONS(253),
    [sym_intersect] = ACTIONS(255),
    [sym_subtract] = ACTIONS(253),
    [anon_sym__] = ACTIONS(63),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(257),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(61),
    [anon_sym_PIPE_PIPE] = ACTIONS(61),
    [anon_sym_SLASH_SLASH] = ACTIONS(61),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(61),
    [anon_sym_BSLASH_SLASH] = ACTIONS(61),
    [anon_sym_COMMA_COMMA] = ACTIONS(61),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [122] = {
    [sym_expression] = STATE(113),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(715),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(67),
    [sym_colon] = ACTIONS(241),
    [sym_complement] = ACTIONS(243),
    [sym_term_complement] = ACTIONS(245),
    [sym_contains] = ACTIONS(243),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(249),
    [sym_ignore_inside] = ACTIONS(251),
    [sym_union] = ACTIONS(253),
    [sym_intersect] = ACTIONS(255),
    [sym_subtract] = ACTIONS(253),
    [anon_sym__] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(257),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(65),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [anon_sym_COMMA_COMMA] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [123] = {
    [sym_expression] = STATE(113),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(715),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [124] = {
    [sym_expression] = STATE(126),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(743),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(87),
    [sym_colon] = ACTIONS(267),
    [sym_complement] = ACTIONS(269),
    [sym_term_complement] = ACTIONS(271),
    [sym_contains] = ACTIONS(269),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(273),
    [sym_ignore_inside] = ACTIONS(275),
    [sym_union] = ACTIONS(277),
    [sym_intersect] = ACTIONS(279),
    [sym_subtract] = ACTIONS(277),
    [anon_sym__] = ACTIONS(89),
    [anon_sym_EQ_GT] = ACTIONS(87),
    [anon_sym_DASH_GT] = ACTIONS(89),
    [anon_sym_LT_DASH] = ACTIONS(87),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(87),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(87),
    [anon_sym_AT_DASH_GT] = ACTIONS(87),
    [anon_sym_DASH_GT_AT] = ACTIONS(87),
    [anon_sym_AT_GT] = ACTIONS(87),
    [anon_sym_GT_AT] = ACTIONS(87),
    [anon_sym_LBRACK_DOT] = ACTIONS(281),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(87),
    [anon_sym_PIPE_PIPE] = ACTIONS(87),
    [anon_sym_SLASH_SLASH] = ACTIONS(87),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(87),
    [anon_sym_BSLASH_SLASH] = ACTIONS(87),
    [sym_crossproduct] = ACTIONS(87),
    [sym_compose] = ACTIONS(87),
    [sym_comment] = ACTIONS(3),
  },
  [125] = {
    [sym_expression] = STATE(171),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(747),
    [sym_simple_replace] = STATE(463),
    [sym_single_replace] = STATE(463),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(449),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(283),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [126] = {
    [sym_expression] = STATE(126),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(743),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(267),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(273),
    [sym_ignore_inside] = ACTIONS(275),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [127] = {
    [sym_expression] = STATE(171),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(747),
    [sym_simple_replace] = STATE(463),
    [sym_single_replace] = STATE(463),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(449),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(87),
    [sym_semicolon] = ACTIONS(89),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(87),
    [sym_colon] = ACTIONS(283),
    [sym_complement] = ACTIONS(285),
    [sym_term_complement] = ACTIONS(287),
    [sym_contains] = ACTIONS(285),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(289),
    [sym_ignore_inside] = ACTIONS(291),
    [sym_union] = ACTIONS(293),
    [sym_intersect] = ACTIONS(295),
    [sym_subtract] = ACTIONS(293),
    [anon_sym_EQ_GT] = ACTIONS(87),
    [anon_sym_DASH_GT] = ACTIONS(89),
    [anon_sym_LT_DASH] = ACTIONS(87),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(87),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(87),
    [anon_sym_AT_DASH_GT] = ACTIONS(87),
    [anon_sym_DASH_GT_AT] = ACTIONS(87),
    [anon_sym_AT_GT] = ACTIONS(87),
    [anon_sym_GT_AT] = ACTIONS(87),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [anon_sym_PIPE_PIPE] = ACTIONS(87),
    [anon_sym_SLASH_SLASH] = ACTIONS(87),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(87),
    [anon_sym_BSLASH_SLASH] = ACTIONS(87),
    [sym_crossproduct] = ACTIONS(87),
    [sym_compose] = ACTIONS(87),
    [sym_comment] = ACTIONS(3),
  },
  [128] = {
    [sym_expression] = STATE(126),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(743),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [129] = {
    [sym_expression] = STATE(63),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_simple_replace] = STATE(429),
    [sym_single_replace] = STATE(429),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(464),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(65),
    [sym_semicolon] = ACTIONS(67),
    [anon_sym_LBRACK] = ACTIONS(67),
    [sym_symbol] = ACTIONS(67),
    [sym_string] = ACTIONS(65),
    [sym_any] = ACTIONS(65),
    [sym_zero] = ACTIONS(65),
    [sym_boundary] = ACTIONS(65),
    [sym_symbol_group] = ACTIONS(65),
    [anon_sym_LPAREN] = ACTIONS(67),
    [anon_sym_BQUOTE] = ACTIONS(65),
    [anon_sym_COMMA] = ACTIONS(67),
    [sym_colon] = ACTIONS(65),
    [sym_complement] = ACTIONS(65),
    [sym_term_complement] = ACTIONS(67),
    [sym_contains] = ACTIONS(65),
    [sym_plus] = ACTIONS(65),
    [sym_star] = ACTIONS(65),
    [sym_repeat] = ACTIONS(65),
    [sym_upper] = ACTIONS(65),
    [sym_lower] = ACTIONS(65),
    [sym_reverse] = ACTIONS(65),
    [sym_inverse] = ACTIONS(65),
    [sym_ignore] = ACTIONS(67),
    [sym_ignore_inside] = ACTIONS(65),
    [sym_union] = ACTIONS(67),
    [sym_intersect] = ACTIONS(65),
    [sym_subtract] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(65),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [anon_sym_COMMA_COMMA] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [130] = {
    [sym_expression] = STATE(64),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_simple_replace] = STATE(429),
    [sym_single_replace] = STATE(429),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(464),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(69),
    [sym_semicolon] = ACTIONS(71),
    [anon_sym_LBRACK] = ACTIONS(71),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(71),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(71),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(71),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [131] = {
    [sym_expression] = STATE(126),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(743),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(267),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [132] = {
    [sym_expression] = STATE(126),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(743),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(267),
    [sym_complement] = ACTIONS(269),
    [sym_term_complement] = ACTIONS(271),
    [sym_contains] = ACTIONS(269),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(273),
    [sym_ignore_inside] = ACTIONS(275),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(281),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [133] = {
    [sym_expression] = STATE(126),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(743),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(267),
    [sym_complement] = ACTIONS(269),
    [sym_term_complement] = ACTIONS(271),
    [sym_contains] = ACTIONS(269),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(273),
    [sym_ignore_inside] = ACTIONS(275),
    [sym_union] = ACTIONS(277),
    [sym_intersect] = ACTIONS(279),
    [sym_subtract] = ACTIONS(277),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(297),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(281),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [134] = {
    [sym_expression] = STATE(61),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_simple_replace] = STATE(429),
    [sym_single_replace] = STATE(429),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(464),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(121),
    [sym_semicolon] = ACTIONS(119),
    [anon_sym_LBRACK] = ACTIONS(119),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(119),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(119),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(119),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(119),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_PIPE_PIPE] = ACTIONS(121),
    [anon_sym_SLASH_SLASH] = ACTIONS(121),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(121),
    [anon_sym_BSLASH_SLASH] = ACTIONS(121),
    [anon_sym_COMMA_COMMA] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [135] = {
    [sym_expression] = STATE(126),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(743),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(55),
    [sym_colon] = ACTIONS(267),
    [sym_complement] = ACTIONS(269),
    [sym_term_complement] = ACTIONS(271),
    [sym_contains] = ACTIONS(269),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(273),
    [sym_ignore_inside] = ACTIONS(275),
    [sym_union] = ACTIONS(277),
    [sym_intersect] = ACTIONS(279),
    [sym_subtract] = ACTIONS(277),
    [anon_sym__] = ACTIONS(57),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(281),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(55),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [136] = {
    [sym_expression] = STATE(126),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(743),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(267),
    [sym_complement] = ACTIONS(269),
    [sym_term_complement] = ACTIONS(271),
    [sym_contains] = ACTIONS(269),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(273),
    [sym_ignore_inside] = ACTIONS(275),
    [sym_union] = ACTIONS(277),
    [sym_intersect] = ACTIONS(279),
    [sym_subtract] = ACTIONS(277),
    [anon_sym__] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(281),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [137] = {
    [sym_expression] = STATE(66),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_simple_replace] = STATE(429),
    [sym_single_replace] = STATE(429),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(464),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(149),
    [sym_semicolon] = ACTIONS(147),
    [anon_sym_LBRACK] = ACTIONS(147),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(147),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(147),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(147),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(147),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [anon_sym_PIPE_PIPE] = ACTIONS(149),
    [anon_sym_SLASH_SLASH] = ACTIONS(149),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(149),
    [anon_sym_BSLASH_SLASH] = ACTIONS(149),
    [anon_sym_COMMA_COMMA] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [138] = {
    [sym_expression] = STATE(126),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(743),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(65),
    [sym_colon] = ACTIONS(267),
    [sym_complement] = ACTIONS(269),
    [sym_term_complement] = ACTIONS(271),
    [sym_contains] = ACTIONS(269),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(273),
    [sym_ignore_inside] = ACTIONS(275),
    [sym_union] = ACTIONS(277),
    [sym_intersect] = ACTIONS(279),
    [sym_subtract] = ACTIONS(277),
    [anon_sym__] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(281),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(65),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [139] = {
    [sym_expression] = STATE(126),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(743),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(61),
    [sym_colon] = ACTIONS(267),
    [sym_complement] = ACTIONS(269),
    [sym_term_complement] = ACTIONS(271),
    [sym_contains] = ACTIONS(269),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(273),
    [sym_ignore_inside] = ACTIONS(275),
    [sym_union] = ACTIONS(277),
    [sym_intersect] = ACTIONS(279),
    [sym_subtract] = ACTIONS(277),
    [anon_sym__] = ACTIONS(63),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(281),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(61),
    [anon_sym_PIPE_PIPE] = ACTIONS(61),
    [anon_sym_SLASH_SLASH] = ACTIONS(61),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(61),
    [anon_sym_BSLASH_SLASH] = ACTIONS(61),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [140] = {
    [sym_expression] = STATE(126),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(743),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(21),
    [sym_colon] = ACTIONS(267),
    [sym_complement] = ACTIONS(269),
    [sym_term_complement] = ACTIONS(271),
    [sym_contains] = ACTIONS(269),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(273),
    [sym_ignore_inside] = ACTIONS(275),
    [sym_union] = ACTIONS(277),
    [sym_intersect] = ACTIONS(279),
    [sym_subtract] = ACTIONS(277),
    [anon_sym__] = ACTIONS(31),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(281),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(21),
    [anon_sym_PIPE_PIPE] = ACTIONS(21),
    [anon_sym_SLASH_SLASH] = ACTIONS(21),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(21),
    [anon_sym_BSLASH_SLASH] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [141] = {
    [sym_expression] = STATE(126),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(743),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(55),
    [sym_colon] = ACTIONS(267),
    [sym_complement] = ACTIONS(269),
    [sym_term_complement] = ACTIONS(271),
    [sym_contains] = ACTIONS(269),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(273),
    [sym_ignore_inside] = ACTIONS(275),
    [sym_union] = ACTIONS(277),
    [sym_intersect] = ACTIONS(279),
    [sym_subtract] = ACTIONS(277),
    [anon_sym__] = ACTIONS(57),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(281),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(85),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [142] = {
    [sym_expression] = STATE(81),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(69),
    [sym_semicolon] = ACTIONS(71),
    [anon_sym_LBRACK] = ACTIONS(71),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(71),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(71),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(71),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [143] = {
    [sym_expression] = STATE(171),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(747),
    [sym_simple_replace] = STATE(463),
    [sym_single_replace] = STATE(463),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(449),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(21),
    [sym_semicolon] = ACTIONS(31),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(21),
    [sym_colon] = ACTIONS(283),
    [sym_complement] = ACTIONS(285),
    [sym_term_complement] = ACTIONS(287),
    [sym_contains] = ACTIONS(285),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(289),
    [sym_ignore_inside] = ACTIONS(291),
    [sym_union] = ACTIONS(293),
    [sym_intersect] = ACTIONS(295),
    [sym_subtract] = ACTIONS(293),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [anon_sym_PIPE_PIPE] = ACTIONS(21),
    [anon_sym_SLASH_SLASH] = ACTIONS(21),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(21),
    [anon_sym_BSLASH_SLASH] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [144] = {
    [sym_expression] = STATE(121),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(71),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(71),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(71),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(71),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym__] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [145] = {
    [sym_expression] = STATE(122),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(119),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(119),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(119),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(119),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(119),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym__] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(121),
    [anon_sym_PIPE_PIPE] = ACTIONS(121),
    [anon_sym_SLASH_SLASH] = ACTIONS(121),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(121),
    [anon_sym_BSLASH_SLASH] = ACTIONS(121),
    [anon_sym_COMMA_COMMA] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [146] = {
    [sym_expression] = STATE(111),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_simple_replace] = STATE(430),
    [sym_single_replace] = STATE(430),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(439),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(147),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(147),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(147),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(147),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(147),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym__] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(149),
    [anon_sym_PIPE_PIPE] = ACTIONS(149),
    [anon_sym_SLASH_SLASH] = ACTIONS(149),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(149),
    [anon_sym_BSLASH_SLASH] = ACTIONS(149),
    [anon_sym_COMMA_COMMA] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [147] = {
    [sym_expression] = STATE(148),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(721),
    [sym_simple_replace] = STATE(447),
    [sym_single_replace] = STATE(447),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(506),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(299),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [148] = {
    [sym_expression] = STATE(148),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(721),
    [sym_simple_replace] = STATE(447),
    [sym_single_replace] = STATE(447),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(506),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(299),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(301),
    [sym_ignore_inside] = ACTIONS(303),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [149] = {
    [sym_expression] = STATE(148),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(721),
    [sym_simple_replace] = STATE(447),
    [sym_single_replace] = STATE(447),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(506),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [150] = {
    [sym_expression] = STATE(126),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(743),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(55),
    [sym_colon] = ACTIONS(267),
    [sym_complement] = ACTIONS(269),
    [sym_term_complement] = ACTIONS(271),
    [sym_contains] = ACTIONS(269),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(273),
    [sym_ignore_inside] = ACTIONS(275),
    [sym_union] = ACTIONS(277),
    [sym_intersect] = ACTIONS(279),
    [sym_subtract] = ACTIONS(277),
    [anon_sym__] = ACTIONS(57),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(281),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(305),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [151] = {
    [sym_expression] = STATE(148),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(721),
    [sym_simple_replace] = STATE(447),
    [sym_single_replace] = STATE(447),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(506),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(299),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [152] = {
    [sym_expression] = STATE(148),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(721),
    [sym_simple_replace] = STATE(447),
    [sym_single_replace] = STATE(447),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(506),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(299),
    [sym_complement] = ACTIONS(307),
    [sym_term_complement] = ACTIONS(309),
    [sym_contains] = ACTIONS(307),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(301),
    [sym_ignore_inside] = ACTIONS(303),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(311),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [153] = {
    [sym_expression] = STATE(148),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(721),
    [sym_simple_replace] = STATE(447),
    [sym_single_replace] = STATE(447),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(506),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(299),
    [sym_complement] = ACTIONS(307),
    [sym_term_complement] = ACTIONS(309),
    [sym_contains] = ACTIONS(307),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(301),
    [sym_ignore_inside] = ACTIONS(303),
    [sym_union] = ACTIONS(313),
    [sym_intersect] = ACTIONS(315),
    [sym_subtract] = ACTIONS(313),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(317),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(311),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [154] = {
    [sym_expression] = STATE(148),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(721),
    [sym_simple_replace] = STATE(447),
    [sym_single_replace] = STATE(447),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(506),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(299),
    [sym_complement] = ACTIONS(307),
    [sym_term_complement] = ACTIONS(309),
    [sym_contains] = ACTIONS(307),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(301),
    [sym_ignore_inside] = ACTIONS(303),
    [sym_union] = ACTIONS(313),
    [sym_intersect] = ACTIONS(315),
    [sym_subtract] = ACTIONS(313),
    [anon_sym__] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(311),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [155] = {
    [sym_expression] = STATE(148),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(721),
    [sym_simple_replace] = STATE(447),
    [sym_single_replace] = STATE(447),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(506),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(67),
    [sym_colon] = ACTIONS(299),
    [sym_complement] = ACTIONS(307),
    [sym_term_complement] = ACTIONS(309),
    [sym_contains] = ACTIONS(307),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(301),
    [sym_ignore_inside] = ACTIONS(303),
    [sym_union] = ACTIONS(313),
    [sym_intersect] = ACTIONS(315),
    [sym_subtract] = ACTIONS(313),
    [anon_sym__] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(311),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [anon_sym_COMMA_COMMA] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [156] = {
    [sym_expression] = STATE(148),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(721),
    [sym_simple_replace] = STATE(447),
    [sym_single_replace] = STATE(447),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(506),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(63),
    [sym_colon] = ACTIONS(299),
    [sym_complement] = ACTIONS(307),
    [sym_term_complement] = ACTIONS(309),
    [sym_contains] = ACTIONS(307),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(301),
    [sym_ignore_inside] = ACTIONS(303),
    [sym_union] = ACTIONS(313),
    [sym_intersect] = ACTIONS(315),
    [sym_subtract] = ACTIONS(313),
    [anon_sym__] = ACTIONS(63),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(311),
    [anon_sym_PIPE_PIPE] = ACTIONS(61),
    [anon_sym_SLASH_SLASH] = ACTIONS(61),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(61),
    [anon_sym_BSLASH_SLASH] = ACTIONS(61),
    [anon_sym_COMMA_COMMA] = ACTIONS(61),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [157] = {
    [sym_expression] = STATE(148),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(721),
    [sym_simple_replace] = STATE(447),
    [sym_single_replace] = STATE(447),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(506),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(31),
    [sym_colon] = ACTIONS(299),
    [sym_complement] = ACTIONS(307),
    [sym_term_complement] = ACTIONS(309),
    [sym_contains] = ACTIONS(307),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(301),
    [sym_ignore_inside] = ACTIONS(303),
    [sym_union] = ACTIONS(313),
    [sym_intersect] = ACTIONS(315),
    [sym_subtract] = ACTIONS(313),
    [anon_sym__] = ACTIONS(31),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(311),
    [anon_sym_PIPE_PIPE] = ACTIONS(21),
    [anon_sym_SLASH_SLASH] = ACTIONS(21),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(21),
    [anon_sym_BSLASH_SLASH] = ACTIONS(21),
    [anon_sym_COMMA_COMMA] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [158] = {
    [sym_expression] = STATE(126),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(743),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(267),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [159] = {
    [sym_expression] = STATE(171),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(747),
    [sym_simple_replace] = STATE(463),
    [sym_single_replace] = STATE(463),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(449),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(61),
    [sym_semicolon] = ACTIONS(63),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(61),
    [sym_colon] = ACTIONS(283),
    [sym_complement] = ACTIONS(285),
    [sym_term_complement] = ACTIONS(287),
    [sym_contains] = ACTIONS(285),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(289),
    [sym_ignore_inside] = ACTIONS(291),
    [sym_union] = ACTIONS(293),
    [sym_intersect] = ACTIONS(295),
    [sym_subtract] = ACTIONS(293),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [anon_sym_PIPE_PIPE] = ACTIONS(61),
    [anon_sym_SLASH_SLASH] = ACTIONS(61),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(61),
    [anon_sym_BSLASH_SLASH] = ACTIONS(61),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [160] = {
    [sym_expression] = STATE(148),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(721),
    [sym_simple_replace] = STATE(447),
    [sym_single_replace] = STATE(447),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(506),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(89),
    [sym_colon] = ACTIONS(299),
    [sym_complement] = ACTIONS(307),
    [sym_term_complement] = ACTIONS(309),
    [sym_contains] = ACTIONS(307),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(301),
    [sym_ignore_inside] = ACTIONS(303),
    [sym_union] = ACTIONS(313),
    [sym_intersect] = ACTIONS(315),
    [sym_subtract] = ACTIONS(313),
    [anon_sym__] = ACTIONS(89),
    [anon_sym_EQ_GT] = ACTIONS(87),
    [anon_sym_DASH_GT] = ACTIONS(89),
    [anon_sym_LT_DASH] = ACTIONS(87),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(87),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(87),
    [anon_sym_AT_DASH_GT] = ACTIONS(87),
    [anon_sym_DASH_GT_AT] = ACTIONS(87),
    [anon_sym_AT_GT] = ACTIONS(87),
    [anon_sym_GT_AT] = ACTIONS(87),
    [anon_sym_LBRACK_DOT] = ACTIONS(311),
    [anon_sym_PIPE_PIPE] = ACTIONS(87),
    [anon_sym_SLASH_SLASH] = ACTIONS(87),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(87),
    [anon_sym_BSLASH_SLASH] = ACTIONS(87),
    [anon_sym_COMMA_COMMA] = ACTIONS(87),
    [sym_crossproduct] = ACTIONS(87),
    [sym_compose] = ACTIONS(87),
    [sym_comment] = ACTIONS(3),
  },
  [161] = {
    [sym_expression] = STATE(82),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(121),
    [sym_semicolon] = ACTIONS(119),
    [anon_sym_LBRACK] = ACTIONS(119),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(121),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(119),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(119),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(119),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(121),
    [anon_sym_PIPE_PIPE] = ACTIONS(121),
    [anon_sym_SLASH_SLASH] = ACTIONS(121),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(121),
    [anon_sym_BSLASH_SLASH] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [162] = {
    [sym_expression] = STATE(171),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(747),
    [sym_simple_replace] = STATE(463),
    [sym_single_replace] = STATE(463),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(449),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(65),
    [sym_semicolon] = ACTIONS(67),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(65),
    [sym_colon] = ACTIONS(283),
    [sym_complement] = ACTIONS(285),
    [sym_term_complement] = ACTIONS(287),
    [sym_contains] = ACTIONS(285),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(289),
    [sym_ignore_inside] = ACTIONS(291),
    [sym_union] = ACTIONS(293),
    [sym_intersect] = ACTIONS(295),
    [sym_subtract] = ACTIONS(293),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [163] = {
    [sym_expression] = STATE(83),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_simple_replace] = STATE(437),
    [sym_single_replace] = STATE(437),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(412),
    [sym_conditional_replace] = STATE(397),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(149),
    [sym_semicolon] = ACTIONS(147),
    [anon_sym_LBRACK] = ACTIONS(147),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(149),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(147),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(147),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(147),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(149),
    [anon_sym_PIPE_PIPE] = ACTIONS(149),
    [anon_sym_SLASH_SLASH] = ACTIONS(149),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(149),
    [anon_sym_BSLASH_SLASH] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [164] = {
    [sym_expression] = STATE(171),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(747),
    [sym_simple_replace] = STATE(463),
    [sym_single_replace] = STATE(463),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(449),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(69),
    [sym_semicolon] = ACTIONS(71),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(283),
    [sym_complement] = ACTIONS(285),
    [sym_term_complement] = ACTIONS(287),
    [sym_contains] = ACTIONS(285),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(289),
    [sym_ignore_inside] = ACTIONS(291),
    [sym_union] = ACTIONS(293),
    [sym_intersect] = ACTIONS(295),
    [sym_subtract] = ACTIONS(293),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [165] = {
    [sym_expression] = STATE(171),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(747),
    [sym_simple_replace] = STATE(463),
    [sym_single_replace] = STATE(463),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(449),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(283),
    [sym_complement] = ACTIONS(285),
    [sym_term_complement] = ACTIONS(287),
    [sym_contains] = ACTIONS(285),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(289),
    [sym_ignore_inside] = ACTIONS(291),
    [sym_union] = ACTIONS(293),
    [sym_intersect] = ACTIONS(295),
    [sym_subtract] = ACTIONS(293),
    [anon_sym_EQ_GT] = ACTIONS(319),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [166] = {
    [sym_expression] = STATE(126),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(743),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(55),
    [sym_colon] = ACTIONS(267),
    [sym_complement] = ACTIONS(269),
    [sym_term_complement] = ACTIONS(271),
    [sym_contains] = ACTIONS(269),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(273),
    [sym_ignore_inside] = ACTIONS(275),
    [sym_union] = ACTIONS(277),
    [sym_intersect] = ACTIONS(279),
    [sym_subtract] = ACTIONS(277),
    [anon_sym__] = ACTIONS(57),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(281),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(321),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [167] = {
    [sym_expression] = STATE(171),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(747),
    [sym_simple_replace] = STATE(463),
    [sym_single_replace] = STATE(463),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(449),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(91),
    [sym_symbol] = ACTIONS(93),
    [sym_string] = ACTIONS(95),
    [sym_any] = ACTIONS(95),
    [sym_zero] = ACTIONS(95),
    [sym_boundary] = ACTIONS(95),
    [sym_symbol_group] = ACTIONS(95),
    [anon_sym_LPAREN] = ACTIONS(97),
    [anon_sym_BQUOTE] = ACTIONS(99),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(283),
    [sym_complement] = ACTIONS(285),
    [sym_term_complement] = ACTIONS(287),
    [sym_contains] = ACTIONS(285),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(289),
    [sym_ignore_inside] = ACTIONS(291),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [168] = {
    [sym_expression] = STATE(87),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_simple_replace] = STATE(404),
    [sym_single_replace] = STATE(404),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(433),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(147),
    [anon_sym_RBRACK] = ACTIONS(149),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_RPAREN] = ACTIONS(149),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(149),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(147),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(147),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(147),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [anon_sym_DOT_RBRACK] = ACTIONS(149),
    [anon_sym_PIPE_PIPE] = ACTIONS(149),
    [anon_sym_SLASH_SLASH] = ACTIONS(149),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(149),
    [anon_sym_BSLASH_SLASH] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [169] = {
    [sym_expression] = STATE(171),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(747),
    [sym_simple_replace] = STATE(463),
    [sym_single_replace] = STATE(463),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(449),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(283),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [170] = {
    [sym_expression] = STATE(86),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_simple_replace] = STATE(404),
    [sym_single_replace] = STATE(404),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(433),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(119),
    [anon_sym_RBRACK] = ACTIONS(121),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_RPAREN] = ACTIONS(121),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(121),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(119),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(119),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(119),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_DOT_RBRACK] = ACTIONS(121),
    [anon_sym_PIPE_PIPE] = ACTIONS(121),
    [anon_sym_SLASH_SLASH] = ACTIONS(121),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(121),
    [anon_sym_BSLASH_SLASH] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [171] = {
    [sym_expression] = STATE(171),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(747),
    [sym_simple_replace] = STATE(463),
    [sym_single_replace] = STATE(463),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(449),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(283),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(107),
    [sym_star] = ACTIONS(107),
    [sym_repeat] = ACTIONS(107),
    [sym_upper] = ACTIONS(107),
    [sym_lower] = ACTIONS(107),
    [sym_reverse] = ACTIONS(107),
    [sym_inverse] = ACTIONS(107),
    [sym_ignore] = ACTIONS(289),
    [sym_ignore_inside] = ACTIONS(291),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [172] = {
    [sym_expression] = STATE(85),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_simple_replace] = STATE(404),
    [sym_single_replace] = STATE(404),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(433),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(71),
    [anon_sym_RBRACK] = ACTIONS(69),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_RPAREN] = ACTIONS(69),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(71),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(71),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(71),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [anon_sym_DOT_RBRACK] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [173] = {
    [sym_expression] = STATE(84),
    [sym_optional] = STATE(420),
    [sym_substitute] = STATE(420),
    [sym_restrict] = STATE(420),
    [sym_simple_replace] = STATE(404),
    [sym_single_replace] = STATE(404),
    [sym_mark] = STATE(420),
    [sym_parallel_replace] = STATE(402),
    [sym_conditional_replace] = STATE(433),
    [sym_parallel_conditional_replace] = STATE(420),
    [anon_sym_LBRACK] = ACTIONS(67),
    [anon_sym_RBRACK] = ACTIONS(65),
    [sym_symbol] = ACTIONS(67),
    [sym_string] = ACTIONS(65),
    [sym_any] = ACTIONS(65),
    [sym_zero] = ACTIONS(65),
    [sym_boundary] = ACTIONS(65),
    [sym_symbol_group] = ACTIONS(65),
    [anon_sym_LPAREN] = ACTIONS(67),
    [anon_sym_RPAREN] = ACTIONS(65),
    [anon_sym_BQUOTE] = ACTIONS(65),
    [anon_sym_COMMA] = ACTIONS(65),
    [sym_colon] = ACTIONS(65),
    [sym_complement] = ACTIONS(65),
    [sym_term_complement] = ACTIONS(67),
    [sym_contains] = ACTIONS(65),
    [sym_plus] = ACTIONS(65),
    [sym_star] = ACTIONS(65),
    [sym_repeat] = ACTIONS(65),
    [sym_upper] = ACTIONS(65),
    [sym_lower] = ACTIONS(65),
    [sym_reverse] = ACTIONS(65),
    [sym_inverse] = ACTIONS(65),
    [sym_ignore] = ACTIONS(67),
    [sym_ignore_inside] = ACTIONS(65),
    [sym_union] = ACTIONS(67),
    [sym_intersect] = ACTIONS(65),
    [sym_subtract] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(65),
    [anon_sym_DOT_RBRACK] = ACTIONS(65),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [174] = {
    [sym_expression] = STATE(171),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_arrow] = STATE(747),
    [sym_simple_replace] = STATE(463),
    [sym_single_replace] = STATE(463),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(449),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [175] = {
    [sym_expression] = STATE(126),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(743),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(55),
    [sym_colon] = ACTIONS(267),
    [sym_complement] = ACTIONS(269),
    [sym_term_complement] = ACTIONS(271),
    [sym_contains] = ACTIONS(269),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(273),
    [sym_ignore_inside] = ACTIONS(275),
    [sym_union] = ACTIONS(277),
    [sym_intersect] = ACTIONS(279),
    [sym_subtract] = ACTIONS(277),
    [anon_sym__] = ACTIONS(57),
    [anon_sym_EQ_GT] = ACTIONS(55),
    [anon_sym_DASH_GT] = ACTIONS(57),
    [anon_sym_LT_DASH] = ACTIONS(55),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(55),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(55),
    [anon_sym_AT_DASH_GT] = ACTIONS(55),
    [anon_sym_DASH_GT_AT] = ACTIONS(55),
    [anon_sym_AT_GT] = ACTIONS(55),
    [anon_sym_GT_AT] = ACTIONS(55),
    [anon_sym_LBRACK_DOT] = ACTIONS(281),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(323),
    [anon_sym_PIPE_PIPE] = ACTIONS(55),
    [anon_sym_SLASH_SLASH] = ACTIONS(55),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(55),
    [anon_sym_BSLASH_SLASH] = ACTIONS(55),
    [sym_crossproduct] = ACTIONS(55),
    [sym_compose] = ACTIONS(55),
    [sym_comment] = ACTIONS(3),
  },
  [176] = {
    [sym_expression] = STATE(176),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(723),
    [sym_simple_replace] = STATE(508),
    [sym_single_replace] = STATE(508),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(498),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(325),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(327),
    [sym_ignore_inside] = ACTIONS(329),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [177] = {
    [sym_expression] = STATE(176),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(723),
    [sym_simple_replace] = STATE(508),
    [sym_single_replace] = STATE(508),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(498),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(21),
    [sym_colon] = ACTIONS(325),
    [sym_complement] = ACTIONS(331),
    [sym_term_complement] = ACTIONS(333),
    [sym_contains] = ACTIONS(331),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(327),
    [sym_ignore_inside] = ACTIONS(329),
    [sym_union] = ACTIONS(335),
    [sym_intersect] = ACTIONS(337),
    [sym_subtract] = ACTIONS(335),
    [anon_sym__] = ACTIONS(31),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [anon_sym_PIPE_PIPE] = ACTIONS(21),
    [anon_sym_SLASH_SLASH] = ACTIONS(21),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(21),
    [anon_sym_BSLASH_SLASH] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [178] = {
    [sym_expression] = STATE(156),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_simple_replace] = STATE(447),
    [sym_single_replace] = STATE(447),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(506),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(71),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(71),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(71),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(71),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym__] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [179] = {
    [sym_expression] = STATE(155),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_simple_replace] = STATE(447),
    [sym_single_replace] = STATE(447),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(506),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(119),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(119),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(119),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(119),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(119),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym__] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_PIPE_PIPE] = ACTIONS(121),
    [anon_sym_SLASH_SLASH] = ACTIONS(121),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(121),
    [anon_sym_BSLASH_SLASH] = ACTIONS(121),
    [anon_sym_COMMA_COMMA] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [180] = {
    [sym_expression] = STATE(154),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_simple_replace] = STATE(447),
    [sym_single_replace] = STATE(447),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(506),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(147),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(147),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(147),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(147),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(147),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym__] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [anon_sym_PIPE_PIPE] = ACTIONS(149),
    [anon_sym_SLASH_SLASH] = ACTIONS(149),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(149),
    [anon_sym_BSLASH_SLASH] = ACTIONS(149),
    [anon_sym_COMMA_COMMA] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [181] = {
    [sym_expression] = STATE(176),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(723),
    [sym_simple_replace] = STATE(508),
    [sym_single_replace] = STATE(508),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(498),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(61),
    [sym_colon] = ACTIONS(325),
    [sym_complement] = ACTIONS(331),
    [sym_term_complement] = ACTIONS(333),
    [sym_contains] = ACTIONS(331),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(327),
    [sym_ignore_inside] = ACTIONS(329),
    [sym_union] = ACTIONS(335),
    [sym_intersect] = ACTIONS(337),
    [sym_subtract] = ACTIONS(335),
    [anon_sym__] = ACTIONS(63),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [anon_sym_PIPE_PIPE] = ACTIONS(61),
    [anon_sym_SLASH_SLASH] = ACTIONS(61),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(61),
    [anon_sym_BSLASH_SLASH] = ACTIONS(61),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [182] = {
    [sym_expression] = STATE(176),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(723),
    [sym_simple_replace] = STATE(508),
    [sym_single_replace] = STATE(508),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(498),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(65),
    [sym_colon] = ACTIONS(325),
    [sym_complement] = ACTIONS(331),
    [sym_term_complement] = ACTIONS(333),
    [sym_contains] = ACTIONS(331),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(327),
    [sym_ignore_inside] = ACTIONS(329),
    [sym_union] = ACTIONS(335),
    [sym_intersect] = ACTIONS(337),
    [sym_subtract] = ACTIONS(335),
    [anon_sym__] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [183] = {
    [sym_expression] = STATE(176),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(723),
    [sym_simple_replace] = STATE(508),
    [sym_single_replace] = STATE(508),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(498),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(325),
    [sym_complement] = ACTIONS(331),
    [sym_term_complement] = ACTIONS(333),
    [sym_contains] = ACTIONS(331),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(327),
    [sym_ignore_inside] = ACTIONS(329),
    [sym_union] = ACTIONS(335),
    [sym_intersect] = ACTIONS(337),
    [sym_subtract] = ACTIONS(335),
    [anon_sym__] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [184] = {
    [sym_expression] = STATE(143),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_simple_replace] = STATE(463),
    [sym_single_replace] = STATE(463),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(449),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(65),
    [sym_semicolon] = ACTIONS(67),
    [anon_sym_LBRACK] = ACTIONS(67),
    [sym_symbol] = ACTIONS(67),
    [sym_string] = ACTIONS(65),
    [sym_any] = ACTIONS(65),
    [sym_zero] = ACTIONS(65),
    [sym_boundary] = ACTIONS(65),
    [sym_symbol_group] = ACTIONS(65),
    [anon_sym_LPAREN] = ACTIONS(67),
    [anon_sym_BQUOTE] = ACTIONS(65),
    [anon_sym_COMMA] = ACTIONS(65),
    [sym_colon] = ACTIONS(65),
    [sym_complement] = ACTIONS(65),
    [sym_term_complement] = ACTIONS(67),
    [sym_contains] = ACTIONS(65),
    [sym_plus] = ACTIONS(65),
    [sym_star] = ACTIONS(65),
    [sym_repeat] = ACTIONS(65),
    [sym_upper] = ACTIONS(65),
    [sym_lower] = ACTIONS(65),
    [sym_reverse] = ACTIONS(65),
    [sym_inverse] = ACTIONS(65),
    [sym_ignore] = ACTIONS(67),
    [sym_ignore_inside] = ACTIONS(65),
    [sym_union] = ACTIONS(67),
    [sym_intersect] = ACTIONS(65),
    [sym_subtract] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(65),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [185] = {
    [sym_expression] = STATE(159),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_simple_replace] = STATE(463),
    [sym_single_replace] = STATE(463),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(449),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(69),
    [sym_semicolon] = ACTIONS(71),
    [anon_sym_LBRACK] = ACTIONS(71),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(71),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(71),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(71),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [186] = {
    [sym_expression] = STATE(162),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_simple_replace] = STATE(463),
    [sym_single_replace] = STATE(463),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(449),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(121),
    [sym_semicolon] = ACTIONS(119),
    [anon_sym_LBRACK] = ACTIONS(119),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(121),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(119),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(119),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(119),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_PIPE_PIPE] = ACTIONS(121),
    [anon_sym_SLASH_SLASH] = ACTIONS(121),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(121),
    [anon_sym_BSLASH_SLASH] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [187] = {
    [sym_expression] = STATE(164),
    [sym_optional] = STATE(481),
    [sym_substitute] = STATE(481),
    [sym_restrict] = STATE(481),
    [sym_simple_replace] = STATE(463),
    [sym_single_replace] = STATE(463),
    [sym_mark] = STATE(481),
    [sym_parallel_replace] = STATE(474),
    [sym_conditional_replace] = STATE(449),
    [sym_parallel_conditional_replace] = STATE(481),
    [ts_builtin_sym_end] = ACTIONS(149),
    [sym_semicolon] = ACTIONS(147),
    [anon_sym_LBRACK] = ACTIONS(147),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(149),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(147),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(147),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(147),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [anon_sym_PIPE_PIPE] = ACTIONS(149),
    [anon_sym_SLASH_SLASH] = ACTIONS(149),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(149),
    [anon_sym_BSLASH_SLASH] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [188] = {
    [sym_expression] = STATE(176),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(723),
    [sym_simple_replace] = STATE(508),
    [sym_single_replace] = STATE(508),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(498),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(325),
    [sym_complement] = ACTIONS(331),
    [sym_term_complement] = ACTIONS(333),
    [sym_contains] = ACTIONS(331),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(327),
    [sym_ignore_inside] = ACTIONS(329),
    [sym_union] = ACTIONS(335),
    [sym_intersect] = ACTIONS(337),
    [sym_subtract] = ACTIONS(335),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(341),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [189] = {
    [sym_expression] = STATE(176),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(723),
    [sym_simple_replace] = STATE(508),
    [sym_single_replace] = STATE(508),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(498),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(325),
    [sym_complement] = ACTIONS(331),
    [sym_term_complement] = ACTIONS(333),
    [sym_contains] = ACTIONS(331),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(327),
    [sym_ignore_inside] = ACTIONS(329),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [190] = {
    [sym_expression] = STATE(176),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(723),
    [sym_simple_replace] = STATE(508),
    [sym_single_replace] = STATE(508),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(498),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(231),
    [sym_symbol] = ACTIONS(233),
    [sym_string] = ACTIONS(235),
    [sym_any] = ACTIONS(235),
    [sym_zero] = ACTIONS(235),
    [sym_boundary] = ACTIONS(235),
    [sym_symbol_group] = ACTIONS(235),
    [anon_sym_LPAREN] = ACTIONS(237),
    [anon_sym_BQUOTE] = ACTIONS(239),
    [anon_sym_COMMA] = ACTIONS(87),
    [sym_colon] = ACTIONS(325),
    [sym_complement] = ACTIONS(331),
    [sym_term_complement] = ACTIONS(333),
    [sym_contains] = ACTIONS(331),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(327),
    [sym_ignore_inside] = ACTIONS(329),
    [sym_union] = ACTIONS(335),
    [sym_intersect] = ACTIONS(337),
    [sym_subtract] = ACTIONS(335),
    [anon_sym__] = ACTIONS(89),
    [anon_sym_EQ_GT] = ACTIONS(87),
    [anon_sym_DASH_GT] = ACTIONS(89),
    [anon_sym_LT_DASH] = ACTIONS(87),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(87),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(87),
    [anon_sym_AT_DASH_GT] = ACTIONS(87),
    [anon_sym_DASH_GT_AT] = ACTIONS(87),
    [anon_sym_AT_GT] = ACTIONS(87),
    [anon_sym_GT_AT] = ACTIONS(87),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [anon_sym_PIPE_PIPE] = ACTIONS(87),
    [anon_sym_SLASH_SLASH] = ACTIONS(87),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(87),
    [anon_sym_BSLASH_SLASH] = ACTIONS(87),
    [sym_crossproduct] = ACTIONS(87),
    [sym_compose] = ACTIONS(87),
    [sym_comment] = ACTIONS(3),
  },
  [191] = {
    [sym_expression] = STATE(136),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(147),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(149),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(147),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(147),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(147),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym__] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(149),
    [anon_sym_PIPE_PIPE] = ACTIONS(149),
    [anon_sym_SLASH_SLASH] = ACTIONS(149),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(149),
    [anon_sym_BSLASH_SLASH] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [192] = {
    [sym_expression] = STATE(138),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(119),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(121),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(119),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(119),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(119),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym__] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(121),
    [anon_sym_PIPE_PIPE] = ACTIONS(121),
    [anon_sym_SLASH_SLASH] = ACTIONS(121),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(121),
    [anon_sym_BSLASH_SLASH] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [193] = {
    [sym_expression] = STATE(139),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_simple_replace] = STATE(440),
    [sym_single_replace] = STATE(440),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(480),
    [sym_conditional_replace] = STATE(473),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(71),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(71),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(71),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(71),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym__] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [194] = {
    [sym_expression] = STATE(157),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_simple_replace] = STATE(447),
    [sym_single_replace] = STATE(447),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(506),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(67),
    [sym_symbol] = ACTIONS(67),
    [sym_string] = ACTIONS(65),
    [sym_any] = ACTIONS(65),
    [sym_zero] = ACTIONS(65),
    [sym_boundary] = ACTIONS(65),
    [sym_symbol_group] = ACTIONS(65),
    [anon_sym_LPAREN] = ACTIONS(67),
    [anon_sym_BQUOTE] = ACTIONS(65),
    [anon_sym_COMMA] = ACTIONS(67),
    [sym_colon] = ACTIONS(65),
    [sym_complement] = ACTIONS(65),
    [sym_term_complement] = ACTIONS(67),
    [sym_contains] = ACTIONS(65),
    [sym_plus] = ACTIONS(65),
    [sym_star] = ACTIONS(65),
    [sym_repeat] = ACTIONS(65),
    [sym_upper] = ACTIONS(65),
    [sym_lower] = ACTIONS(65),
    [sym_reverse] = ACTIONS(65),
    [sym_inverse] = ACTIONS(65),
    [sym_ignore] = ACTIONS(67),
    [sym_ignore_inside] = ACTIONS(65),
    [sym_union] = ACTIONS(67),
    [sym_intersect] = ACTIONS(65),
    [sym_subtract] = ACTIONS(67),
    [anon_sym__] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(65),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [anon_sym_COMMA_COMMA] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [195] = {
    [sym_expression] = STATE(176),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(723),
    [sym_simple_replace] = STATE(508),
    [sym_single_replace] = STATE(508),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(498),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(325),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(247),
    [sym_star] = ACTIONS(247),
    [sym_repeat] = ACTIONS(247),
    [sym_upper] = ACTIONS(247),
    [sym_lower] = ACTIONS(247),
    [sym_reverse] = ACTIONS(247),
    [sym_inverse] = ACTIONS(247),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [196] = {
    [sym_expression] = STATE(176),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(723),
    [sym_simple_replace] = STATE(508),
    [sym_single_replace] = STATE(508),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(498),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [197] = {
    [sym_expression] = STATE(176),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_arrow] = STATE(723),
    [sym_simple_replace] = STATE(508),
    [sym_single_replace] = STATE(508),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(498),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(325),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [198] = {
    [sym_expression] = STATE(210),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(748),
    [sym_simple_replace] = STATE(381),
    [sym_single_replace] = STATE(381),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(547),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(73),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(343),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [199] = {
    [sym_expression] = STATE(210),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(748),
    [sym_simple_replace] = STATE(381),
    [sym_single_replace] = STATE(381),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(547),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(343),
    [sym_complement] = ACTIONS(357),
    [sym_term_complement] = ACTIONS(357),
    [sym_contains] = ACTIONS(357),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(359),
    [sym_ignore_inside] = ACTIONS(359),
    [sym_union] = ACTIONS(361),
    [sym_intersect] = ACTIONS(361),
    [sym_subtract] = ACTIONS(363),
    [anon_sym_EQ_GT] = ACTIONS(365),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(167),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [200] = {
    [sym_expression] = STATE(183),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_simple_replace] = STATE(508),
    [sym_single_replace] = STATE(508),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(498),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(147),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(149),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(147),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(147),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(147),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym__] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [anon_sym_PIPE_PIPE] = ACTIONS(149),
    [anon_sym_SLASH_SLASH] = ACTIONS(149),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(149),
    [anon_sym_BSLASH_SLASH] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [201] = {
    [sym_expression] = STATE(210),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(748),
    [sym_simple_replace] = STATE(381),
    [sym_single_replace] = STATE(381),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(547),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(65),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(65),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(67),
    [sym_colon] = ACTIONS(343),
    [sym_complement] = ACTIONS(357),
    [sym_term_complement] = ACTIONS(357),
    [sym_contains] = ACTIONS(357),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(359),
    [sym_ignore_inside] = ACTIONS(359),
    [sym_union] = ACTIONS(361),
    [sym_intersect] = ACTIONS(361),
    [sym_subtract] = ACTIONS(363),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(167),
    [anon_sym_DOT_RBRACK] = ACTIONS(65),
    [anon_sym_COMMA_COMMA] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [202] = {
    [sym_expression] = STATE(210),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(748),
    [sym_simple_replace] = STATE(381),
    [sym_single_replace] = STATE(381),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(547),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(61),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(61),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(63),
    [sym_colon] = ACTIONS(343),
    [sym_complement] = ACTIONS(357),
    [sym_term_complement] = ACTIONS(357),
    [sym_contains] = ACTIONS(357),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(359),
    [sym_ignore_inside] = ACTIONS(359),
    [sym_union] = ACTIONS(361),
    [sym_intersect] = ACTIONS(361),
    [sym_subtract] = ACTIONS(363),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(167),
    [anon_sym_DOT_RBRACK] = ACTIONS(61),
    [anon_sym_COMMA_COMMA] = ACTIONS(61),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [203] = {
    [sym_expression] = STATE(210),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(748),
    [sym_simple_replace] = STATE(381),
    [sym_single_replace] = STATE(381),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(547),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(69),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(69),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(343),
    [sym_complement] = ACTIONS(357),
    [sym_term_complement] = ACTIONS(357),
    [sym_contains] = ACTIONS(357),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(359),
    [sym_ignore_inside] = ACTIONS(359),
    [sym_union] = ACTIONS(361),
    [sym_intersect] = ACTIONS(361),
    [sym_subtract] = ACTIONS(363),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(167),
    [anon_sym_DOT_RBRACK] = ACTIONS(69),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [204] = {
    [sym_expression] = STATE(177),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_simple_replace] = STATE(508),
    [sym_single_replace] = STATE(508),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(498),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(67),
    [sym_symbol] = ACTIONS(67),
    [sym_string] = ACTIONS(65),
    [sym_any] = ACTIONS(65),
    [sym_zero] = ACTIONS(65),
    [sym_boundary] = ACTIONS(65),
    [sym_symbol_group] = ACTIONS(65),
    [anon_sym_LPAREN] = ACTIONS(67),
    [anon_sym_BQUOTE] = ACTIONS(65),
    [anon_sym_COMMA] = ACTIONS(65),
    [sym_colon] = ACTIONS(65),
    [sym_complement] = ACTIONS(65),
    [sym_term_complement] = ACTIONS(67),
    [sym_contains] = ACTIONS(65),
    [sym_plus] = ACTIONS(65),
    [sym_star] = ACTIONS(65),
    [sym_repeat] = ACTIONS(65),
    [sym_upper] = ACTIONS(65),
    [sym_lower] = ACTIONS(65),
    [sym_reverse] = ACTIONS(65),
    [sym_inverse] = ACTIONS(65),
    [sym_ignore] = ACTIONS(67),
    [sym_ignore_inside] = ACTIONS(65),
    [sym_union] = ACTIONS(67),
    [sym_intersect] = ACTIONS(65),
    [sym_subtract] = ACTIONS(67),
    [anon_sym__] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(65),
    [anon_sym_PIPE_PIPE] = ACTIONS(65),
    [anon_sym_SLASH_SLASH] = ACTIONS(65),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(65),
    [anon_sym_BSLASH_SLASH] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [205] = {
    [sym_expression] = STATE(210),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(748),
    [sym_simple_replace] = STATE(381),
    [sym_single_replace] = STATE(381),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(547),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(21),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(21),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(31),
    [sym_colon] = ACTIONS(343),
    [sym_complement] = ACTIONS(357),
    [sym_term_complement] = ACTIONS(357),
    [sym_contains] = ACTIONS(357),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(359),
    [sym_ignore_inside] = ACTIONS(359),
    [sym_union] = ACTIONS(361),
    [sym_intersect] = ACTIONS(361),
    [sym_subtract] = ACTIONS(363),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(167),
    [anon_sym_DOT_RBRACK] = ACTIONS(21),
    [anon_sym_COMMA_COMMA] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [206] = {
    [sym_expression] = STATE(210),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(748),
    [sym_simple_replace] = STATE(381),
    [sym_single_replace] = STATE(381),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(547),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(343),
    [sym_complement] = ACTIONS(357),
    [sym_term_complement] = ACTIONS(357),
    [sym_contains] = ACTIONS(357),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(359),
    [sym_ignore_inside] = ACTIONS(359),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(167),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [207] = {
    [sym_expression] = STATE(181),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_simple_replace] = STATE(508),
    [sym_single_replace] = STATE(508),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(498),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(71),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(71),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(71),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(71),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym__] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [anon_sym_PIPE_PIPE] = ACTIONS(69),
    [anon_sym_SLASH_SLASH] = ACTIONS(69),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(69),
    [anon_sym_BSLASH_SLASH] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [208] = {
    [sym_expression] = STATE(182),
    [sym_optional] = STATE(505),
    [sym_substitute] = STATE(505),
    [sym_restrict] = STATE(505),
    [sym_simple_replace] = STATE(508),
    [sym_single_replace] = STATE(508),
    [sym_mark] = STATE(505),
    [sym_parallel_replace] = STATE(502),
    [sym_conditional_replace] = STATE(498),
    [sym_parallel_conditional_replace] = STATE(505),
    [anon_sym_LBRACK] = ACTIONS(119),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(121),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(119),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(119),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(119),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym__] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_PIPE_PIPE] = ACTIONS(121),
    [anon_sym_SLASH_SLASH] = ACTIONS(121),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(121),
    [anon_sym_BSLASH_SLASH] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [209] = {
    [sym_expression] = STATE(210),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(748),
    [sym_simple_replace] = STATE(381),
    [sym_single_replace] = STATE(381),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(547),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(73),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [210] = {
    [sym_expression] = STATE(210),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(748),
    [sym_simple_replace] = STATE(381),
    [sym_single_replace] = STATE(381),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(547),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(343),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(359),
    [sym_ignore_inside] = ACTIONS(359),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [211] = {
    [sym_expression] = STATE(210),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(748),
    [sym_simple_replace] = STATE(381),
    [sym_single_replace] = STATE(381),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(547),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(343),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(53),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [212] = {
    [sym_expression] = STATE(235),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(749),
    [sym_simple_replace] = STATE(406),
    [sym_single_replace] = STATE(406),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(574),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(61),
    [sym_semicolon] = ACTIONS(63),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [anon_sym_COMMA] = ACTIONS(63),
    [sym_colon] = ACTIONS(369),
    [sym_complement] = ACTIONS(371),
    [sym_term_complement] = ACTIONS(371),
    [sym_contains] = ACTIONS(371),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(375),
    [sym_ignore_inside] = ACTIONS(375),
    [sym_union] = ACTIONS(377),
    [sym_intersect] = ACTIONS(377),
    [sym_subtract] = ACTIONS(379),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(187),
    [anon_sym_COMMA_COMMA] = ACTIONS(61),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [213] = {
    [sym_expression] = STATE(227),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(714),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(61),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(61),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(61),
    [sym_colon] = ACTIONS(381),
    [sym_complement] = ACTIONS(383),
    [sym_term_complement] = ACTIONS(383),
    [sym_contains] = ACTIONS(383),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(385),
    [sym_ignore_inside] = ACTIONS(385),
    [sym_union] = ACTIONS(387),
    [sym_intersect] = ACTIONS(387),
    [sym_subtract] = ACTIONS(389),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(61),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [214] = {
    [sym_expression] = STATE(235),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(749),
    [sym_simple_replace] = STATE(406),
    [sym_single_replace] = STATE(406),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(574),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(65),
    [sym_semicolon] = ACTIONS(67),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [anon_sym_COMMA] = ACTIONS(67),
    [sym_colon] = ACTIONS(369),
    [sym_complement] = ACTIONS(371),
    [sym_term_complement] = ACTIONS(371),
    [sym_contains] = ACTIONS(371),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(375),
    [sym_ignore_inside] = ACTIONS(375),
    [sym_union] = ACTIONS(377),
    [sym_intersect] = ACTIONS(377),
    [sym_subtract] = ACTIONS(379),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(187),
    [anon_sym_COMMA_COMMA] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [215] = {
    [sym_expression] = STATE(235),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(749),
    [sym_simple_replace] = STATE(406),
    [sym_single_replace] = STATE(406),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(574),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(21),
    [sym_semicolon] = ACTIONS(31),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [anon_sym_COMMA] = ACTIONS(31),
    [sym_colon] = ACTIONS(369),
    [sym_complement] = ACTIONS(371),
    [sym_term_complement] = ACTIONS(371),
    [sym_contains] = ACTIONS(371),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(375),
    [sym_ignore_inside] = ACTIONS(375),
    [sym_union] = ACTIONS(377),
    [sym_intersect] = ACTIONS(377),
    [sym_subtract] = ACTIONS(379),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(187),
    [anon_sym_COMMA_COMMA] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [216] = {
    [sym_expression] = STATE(227),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(714),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(381),
    [sym_complement] = ACTIONS(383),
    [sym_term_complement] = ACTIONS(383),
    [sym_contains] = ACTIONS(383),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(385),
    [sym_ignore_inside] = ACTIONS(385),
    [sym_union] = ACTIONS(387),
    [sym_intersect] = ACTIONS(387),
    [sym_subtract] = ACTIONS(389),
    [anon_sym_EQ_GT] = ACTIONS(391),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [217] = {
    [sym_expression] = STATE(235),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(749),
    [sym_simple_replace] = STATE(406),
    [sym_single_replace] = STATE(406),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(574),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(369),
    [sym_complement] = ACTIONS(371),
    [sym_term_complement] = ACTIONS(371),
    [sym_contains] = ACTIONS(371),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(375),
    [sym_ignore_inside] = ACTIONS(375),
    [sym_union] = ACTIONS(377),
    [sym_intersect] = ACTIONS(377),
    [sym_subtract] = ACTIONS(379),
    [anon_sym_EQ_GT] = ACTIONS(393),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(187),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [218] = {
    [sym_expression] = STATE(235),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(749),
    [sym_simple_replace] = STATE(406),
    [sym_single_replace] = STATE(406),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(574),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(369),
    [sym_complement] = ACTIONS(371),
    [sym_term_complement] = ACTIONS(371),
    [sym_contains] = ACTIONS(371),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(375),
    [sym_ignore_inside] = ACTIONS(375),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(187),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [219] = {
    [sym_expression] = STATE(205),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_simple_replace] = STATE(381),
    [sym_single_replace] = STATE(381),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(547),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(67),
    [anon_sym_RBRACK] = ACTIONS(65),
    [sym_symbol] = ACTIONS(67),
    [sym_string] = ACTIONS(65),
    [sym_any] = ACTIONS(65),
    [sym_zero] = ACTIONS(65),
    [sym_boundary] = ACTIONS(65),
    [sym_symbol_group] = ACTIONS(65),
    [anon_sym_LPAREN] = ACTIONS(67),
    [anon_sym_RPAREN] = ACTIONS(65),
    [anon_sym_BQUOTE] = ACTIONS(65),
    [anon_sym_COMMA] = ACTIONS(67),
    [sym_colon] = ACTIONS(65),
    [sym_complement] = ACTIONS(65),
    [sym_term_complement] = ACTIONS(65),
    [sym_contains] = ACTIONS(65),
    [sym_plus] = ACTIONS(65),
    [sym_star] = ACTIONS(65),
    [sym_repeat] = ACTIONS(65),
    [sym_upper] = ACTIONS(65),
    [sym_lower] = ACTIONS(65),
    [sym_reverse] = ACTIONS(65),
    [sym_inverse] = ACTIONS(65),
    [sym_ignore] = ACTIONS(65),
    [sym_ignore_inside] = ACTIONS(65),
    [sym_union] = ACTIONS(65),
    [sym_intersect] = ACTIONS(65),
    [sym_subtract] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(65),
    [anon_sym_DOT_RBRACK] = ACTIONS(65),
    [anon_sym_COMMA_COMMA] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [220] = {
    [sym_expression] = STATE(235),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(749),
    [sym_simple_replace] = STATE(406),
    [sym_single_replace] = STATE(406),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(574),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(369),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [221] = {
    [sym_expression] = STATE(235),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(749),
    [sym_simple_replace] = STATE(406),
    [sym_single_replace] = STATE(406),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(574),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(69),
    [sym_semicolon] = ACTIONS(71),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(369),
    [sym_complement] = ACTIONS(371),
    [sym_term_complement] = ACTIONS(371),
    [sym_contains] = ACTIONS(371),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(375),
    [sym_ignore_inside] = ACTIONS(375),
    [sym_union] = ACTIONS(377),
    [sym_intersect] = ACTIONS(377),
    [sym_subtract] = ACTIONS(379),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(187),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [222] = {
    [sym_expression] = STATE(227),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(714),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(69),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(69),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(381),
    [sym_complement] = ACTIONS(383),
    [sym_term_complement] = ACTIONS(383),
    [sym_contains] = ACTIONS(383),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(385),
    [sym_ignore_inside] = ACTIONS(385),
    [sym_union] = ACTIONS(387),
    [sym_intersect] = ACTIONS(387),
    [sym_subtract] = ACTIONS(389),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [223] = {
    [sym_expression] = STATE(203),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_simple_replace] = STATE(381),
    [sym_single_replace] = STATE(381),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(547),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(147),
    [anon_sym_RBRACK] = ACTIONS(149),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_RPAREN] = ACTIONS(149),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(147),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(149),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(149),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(149),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [anon_sym_DOT_RBRACK] = ACTIONS(149),
    [anon_sym_COMMA_COMMA] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [224] = {
    [sym_expression] = STATE(201),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_simple_replace] = STATE(381),
    [sym_single_replace] = STATE(381),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(547),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(119),
    [anon_sym_RBRACK] = ACTIONS(121),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_RPAREN] = ACTIONS(121),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(119),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(121),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(121),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(121),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_DOT_RBRACK] = ACTIONS(121),
    [anon_sym_COMMA_COMMA] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [225] = {
    [sym_expression] = STATE(227),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(714),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(381),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(53),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [226] = {
    [sym_expression] = STATE(235),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(749),
    [sym_simple_replace] = STATE(406),
    [sym_single_replace] = STATE(406),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(574),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(369),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(53),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [227] = {
    [sym_expression] = STATE(227),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(714),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(381),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(385),
    [sym_ignore_inside] = ACTIONS(385),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [228] = {
    [sym_expression] = STATE(202),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_simple_replace] = STATE(381),
    [sym_single_replace] = STATE(381),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(547),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(71),
    [anon_sym_RBRACK] = ACTIONS(69),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_RPAREN] = ACTIONS(69),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(69),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(69),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(69),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [anon_sym_DOT_RBRACK] = ACTIONS(69),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [229] = {
    [sym_expression] = STATE(227),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(714),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(381),
    [sym_complement] = ACTIONS(383),
    [sym_term_complement] = ACTIONS(383),
    [sym_contains] = ACTIONS(383),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(385),
    [sym_ignore_inside] = ACTIONS(385),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [230] = {
    [sym_expression] = STATE(227),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(714),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(65),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(65),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(65),
    [sym_colon] = ACTIONS(381),
    [sym_complement] = ACTIONS(383),
    [sym_term_complement] = ACTIONS(383),
    [sym_contains] = ACTIONS(383),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(385),
    [sym_ignore_inside] = ACTIONS(385),
    [sym_union] = ACTIONS(387),
    [sym_intersect] = ACTIONS(387),
    [sym_subtract] = ACTIONS(389),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [231] = {
    [sym_expression] = STATE(227),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(714),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(73),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [232] = {
    [sym_expression] = STATE(227),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(714),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(21),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(21),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(21),
    [sym_colon] = ACTIONS(381),
    [sym_complement] = ACTIONS(383),
    [sym_term_complement] = ACTIONS(383),
    [sym_contains] = ACTIONS(383),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(385),
    [sym_ignore_inside] = ACTIONS(385),
    [sym_union] = ACTIONS(387),
    [sym_intersect] = ACTIONS(387),
    [sym_subtract] = ACTIONS(389),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [233] = {
    [sym_expression] = STATE(235),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(749),
    [sym_simple_replace] = STATE(406),
    [sym_single_replace] = STATE(406),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(574),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [234] = {
    [sym_expression] = STATE(227),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(714),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(73),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(381),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [235] = {
    [sym_expression] = STATE(235),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(749),
    [sym_simple_replace] = STATE(406),
    [sym_single_replace] = STATE(406),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(574),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(369),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(375),
    [sym_ignore_inside] = ACTIONS(375),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [236] = {
    [sym_expression] = STATE(214),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_simple_replace] = STATE(406),
    [sym_single_replace] = STATE(406),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(574),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(121),
    [sym_semicolon] = ACTIONS(119),
    [anon_sym_LBRACK] = ACTIONS(119),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(119),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(121),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(121),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(121),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_COMMA_COMMA] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [237] = {
    [sym_expression] = STATE(215),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_simple_replace] = STATE(406),
    [sym_single_replace] = STATE(406),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(574),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(65),
    [sym_semicolon] = ACTIONS(67),
    [anon_sym_LBRACK] = ACTIONS(67),
    [sym_symbol] = ACTIONS(67),
    [sym_string] = ACTIONS(65),
    [sym_any] = ACTIONS(65),
    [sym_zero] = ACTIONS(65),
    [sym_boundary] = ACTIONS(65),
    [sym_symbol_group] = ACTIONS(65),
    [anon_sym_LPAREN] = ACTIONS(67),
    [anon_sym_BQUOTE] = ACTIONS(65),
    [anon_sym_COMMA] = ACTIONS(67),
    [sym_colon] = ACTIONS(65),
    [sym_complement] = ACTIONS(65),
    [sym_term_complement] = ACTIONS(65),
    [sym_contains] = ACTIONS(65),
    [sym_plus] = ACTIONS(65),
    [sym_star] = ACTIONS(65),
    [sym_repeat] = ACTIONS(65),
    [sym_upper] = ACTIONS(65),
    [sym_lower] = ACTIONS(65),
    [sym_reverse] = ACTIONS(65),
    [sym_inverse] = ACTIONS(65),
    [sym_ignore] = ACTIONS(65),
    [sym_ignore_inside] = ACTIONS(65),
    [sym_union] = ACTIONS(65),
    [sym_intersect] = ACTIONS(65),
    [sym_subtract] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(65),
    [anon_sym_COMMA_COMMA] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [238] = {
    [sym_expression] = STATE(232),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(67),
    [anon_sym_RBRACK] = ACTIONS(65),
    [sym_symbol] = ACTIONS(67),
    [sym_string] = ACTIONS(65),
    [sym_any] = ACTIONS(65),
    [sym_zero] = ACTIONS(65),
    [sym_boundary] = ACTIONS(65),
    [sym_symbol_group] = ACTIONS(65),
    [anon_sym_LPAREN] = ACTIONS(67),
    [anon_sym_RPAREN] = ACTIONS(65),
    [anon_sym_BQUOTE] = ACTIONS(65),
    [anon_sym_COMMA] = ACTIONS(65),
    [sym_colon] = ACTIONS(65),
    [sym_complement] = ACTIONS(65),
    [sym_term_complement] = ACTIONS(65),
    [sym_contains] = ACTIONS(65),
    [sym_plus] = ACTIONS(65),
    [sym_star] = ACTIONS(65),
    [sym_repeat] = ACTIONS(65),
    [sym_upper] = ACTIONS(65),
    [sym_lower] = ACTIONS(65),
    [sym_reverse] = ACTIONS(65),
    [sym_inverse] = ACTIONS(65),
    [sym_ignore] = ACTIONS(65),
    [sym_ignore_inside] = ACTIONS(65),
    [sym_union] = ACTIONS(65),
    [sym_intersect] = ACTIONS(65),
    [sym_subtract] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(65),
    [anon_sym_DOT_RBRACK] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [239] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(73),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [240] = {
    [sym_expression] = STATE(266),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(734),
    [sym_simple_replace] = STATE(478),
    [sym_single_replace] = STATE(478),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(610),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(407),
    [sym_complement] = ACTIONS(409),
    [sym_term_complement] = ACTIONS(409),
    [sym_contains] = ACTIONS(409),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(413),
    [sym_ignore_inside] = ACTIONS(413),
    [sym_union] = ACTIONS(415),
    [sym_intersect] = ACTIONS(415),
    [sym_subtract] = ACTIONS(417),
    [anon_sym__] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(311),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [241] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [242] = {
    [sym_expression] = STATE(230),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(119),
    [anon_sym_RBRACK] = ACTIONS(121),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_RPAREN] = ACTIONS(121),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(121),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(121),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(121),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(121),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_DOT_RBRACK] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [243] = {
    [sym_expression] = STATE(222),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(147),
    [anon_sym_RBRACK] = ACTIONS(149),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_RPAREN] = ACTIONS(149),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(149),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(149),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(149),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(149),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [anon_sym_DOT_RBRACK] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [244] = {
    [sym_expression] = STATE(266),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(734),
    [sym_simple_replace] = STATE(478),
    [sym_single_replace] = STATE(478),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(610),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [anon_sym_COMMA] = ACTIONS(63),
    [sym_colon] = ACTIONS(407),
    [sym_complement] = ACTIONS(409),
    [sym_term_complement] = ACTIONS(409),
    [sym_contains] = ACTIONS(409),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(413),
    [sym_ignore_inside] = ACTIONS(413),
    [sym_union] = ACTIONS(415),
    [sym_intersect] = ACTIONS(415),
    [sym_subtract] = ACTIONS(417),
    [anon_sym__] = ACTIONS(63),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(311),
    [anon_sym_COMMA_COMMA] = ACTIONS(61),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [245] = {
    [sym_expression] = STATE(257),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(725),
    [sym_simple_replace] = STATE(445),
    [sym_single_replace] = STATE(445),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(578),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(21),
    [sym_semicolon] = ACTIONS(31),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [anon_sym_COMMA] = ACTIONS(21),
    [sym_colon] = ACTIONS(423),
    [sym_complement] = ACTIONS(425),
    [sym_term_complement] = ACTIONS(425),
    [sym_contains] = ACTIONS(425),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(427),
    [sym_ignore_inside] = ACTIONS(427),
    [sym_union] = ACTIONS(429),
    [sym_intersect] = ACTIONS(429),
    [sym_subtract] = ACTIONS(431),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [246] = {
    [sym_expression] = STATE(257),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(725),
    [sym_simple_replace] = STATE(445),
    [sym_single_replace] = STATE(445),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(578),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(65),
    [sym_semicolon] = ACTIONS(67),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [anon_sym_COMMA] = ACTIONS(65),
    [sym_colon] = ACTIONS(423),
    [sym_complement] = ACTIONS(425),
    [sym_term_complement] = ACTIONS(425),
    [sym_contains] = ACTIONS(425),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(427),
    [sym_ignore_inside] = ACTIONS(427),
    [sym_union] = ACTIONS(429),
    [sym_intersect] = ACTIONS(429),
    [sym_subtract] = ACTIONS(431),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [247] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(53),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [248] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [249] = {
    [sym_expression] = STATE(212),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_simple_replace] = STATE(406),
    [sym_single_replace] = STATE(406),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(574),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(69),
    [sym_semicolon] = ACTIONS(71),
    [anon_sym_LBRACK] = ACTIONS(71),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(69),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(69),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(69),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [250] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(73),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [251] = {
    [sym_expression] = STATE(257),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(725),
    [sym_simple_replace] = STATE(445),
    [sym_single_replace] = STATE(445),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(578),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(423),
    [sym_complement] = ACTIONS(425),
    [sym_term_complement] = ACTIONS(425),
    [sym_contains] = ACTIONS(425),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(427),
    [sym_ignore_inside] = ACTIONS(427),
    [sym_union] = ACTIONS(429),
    [sym_intersect] = ACTIONS(429),
    [sym_subtract] = ACTIONS(431),
    [anon_sym_EQ_GT] = ACTIONS(433),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [252] = {
    [sym_expression] = STATE(221),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_simple_replace] = STATE(406),
    [sym_single_replace] = STATE(406),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(574),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(149),
    [sym_semicolon] = ACTIONS(147),
    [anon_sym_LBRACK] = ACTIONS(147),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(147),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(149),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(149),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(149),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [anon_sym_COMMA_COMMA] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [253] = {
    [sym_expression] = STATE(257),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(725),
    [sym_simple_replace] = STATE(445),
    [sym_single_replace] = STATE(445),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(578),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(61),
    [sym_semicolon] = ACTIONS(63),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [anon_sym_COMMA] = ACTIONS(61),
    [sym_colon] = ACTIONS(423),
    [sym_complement] = ACTIONS(425),
    [sym_term_complement] = ACTIONS(425),
    [sym_contains] = ACTIONS(425),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(427),
    [sym_ignore_inside] = ACTIONS(427),
    [sym_union] = ACTIONS(429),
    [sym_intersect] = ACTIONS(429),
    [sym_subtract] = ACTIONS(431),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [254] = {
    [sym_expression] = STATE(257),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(725),
    [sym_simple_replace] = STATE(445),
    [sym_single_replace] = STATE(445),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(578),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(423),
    [sym_complement] = ACTIONS(425),
    [sym_term_complement] = ACTIONS(425),
    [sym_contains] = ACTIONS(425),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(427),
    [sym_ignore_inside] = ACTIONS(427),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [255] = {
    [sym_expression] = STATE(257),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(725),
    [sym_simple_replace] = STATE(445),
    [sym_single_replace] = STATE(445),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(578),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(423),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [256] = {
    [sym_expression] = STATE(257),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(725),
    [sym_simple_replace] = STATE(445),
    [sym_single_replace] = STATE(445),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(578),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [257] = {
    [sym_expression] = STATE(257),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(725),
    [sym_simple_replace] = STATE(445),
    [sym_single_replace] = STATE(445),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(578),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(423),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(427),
    [sym_ignore_inside] = ACTIONS(427),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [258] = {
    [sym_expression] = STATE(257),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(725),
    [sym_simple_replace] = STATE(445),
    [sym_single_replace] = STATE(445),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(578),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(423),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(53),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [259] = {
    [sym_expression] = STATE(257),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(725),
    [sym_simple_replace] = STATE(445),
    [sym_single_replace] = STATE(445),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(578),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(69),
    [sym_semicolon] = ACTIONS(71),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(423),
    [sym_complement] = ACTIONS(425),
    [sym_term_complement] = ACTIONS(425),
    [sym_contains] = ACTIONS(425),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(427),
    [sym_ignore_inside] = ACTIONS(427),
    [sym_union] = ACTIONS(429),
    [sym_intersect] = ACTIONS(429),
    [sym_subtract] = ACTIONS(431),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [260] = {
    [sym_expression] = STATE(266),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(734),
    [sym_simple_replace] = STATE(478),
    [sym_single_replace] = STATE(478),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(610),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [anon_sym_COMMA] = ACTIONS(67),
    [sym_colon] = ACTIONS(407),
    [sym_complement] = ACTIONS(409),
    [sym_term_complement] = ACTIONS(409),
    [sym_contains] = ACTIONS(409),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(413),
    [sym_ignore_inside] = ACTIONS(413),
    [sym_union] = ACTIONS(415),
    [sym_intersect] = ACTIONS(415),
    [sym_subtract] = ACTIONS(417),
    [anon_sym__] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(311),
    [anon_sym_COMMA_COMMA] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [261] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(21),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(21),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [262] = {
    [sym_expression] = STATE(266),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(734),
    [sym_simple_replace] = STATE(478),
    [sym_single_replace] = STATE(478),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(610),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(407),
    [sym_complement] = ACTIONS(409),
    [sym_term_complement] = ACTIONS(409),
    [sym_contains] = ACTIONS(409),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(413),
    [sym_ignore_inside] = ACTIONS(413),
    [sym_union] = ACTIONS(415),
    [sym_intersect] = ACTIONS(415),
    [sym_subtract] = ACTIONS(417),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(439),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(311),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [263] = {
    [sym_expression] = STATE(266),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(734),
    [sym_simple_replace] = STATE(478),
    [sym_single_replace] = STATE(478),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(610),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(407),
    [sym_complement] = ACTIONS(409),
    [sym_term_complement] = ACTIONS(409),
    [sym_contains] = ACTIONS(409),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(413),
    [sym_ignore_inside] = ACTIONS(413),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(311),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [264] = {
    [sym_expression] = STATE(266),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(734),
    [sym_simple_replace] = STATE(478),
    [sym_single_replace] = STATE(478),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(610),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(407),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [265] = {
    [sym_expression] = STATE(266),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(734),
    [sym_simple_replace] = STATE(478),
    [sym_single_replace] = STATE(478),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(610),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [266] = {
    [sym_expression] = STATE(266),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(734),
    [sym_simple_replace] = STATE(478),
    [sym_single_replace] = STATE(478),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(610),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(407),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(413),
    [sym_ignore_inside] = ACTIONS(413),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [267] = {
    [sym_expression] = STATE(266),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(734),
    [sym_simple_replace] = STATE(478),
    [sym_single_replace] = STATE(478),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(610),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(407),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(53),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [268] = {
    [sym_expression] = STATE(213),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(71),
    [anon_sym_RBRACK] = ACTIONS(69),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_RPAREN] = ACTIONS(69),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(69),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(69),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(69),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [anon_sym_DOT_RBRACK] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [269] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [270] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(65),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(65),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [271] = {
    [sym_expression] = STATE(266),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(734),
    [sym_simple_replace] = STATE(478),
    [sym_single_replace] = STATE(478),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(610),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [anon_sym_COMMA] = ACTIONS(31),
    [sym_colon] = ACTIONS(407),
    [sym_complement] = ACTIONS(409),
    [sym_term_complement] = ACTIONS(409),
    [sym_contains] = ACTIONS(409),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(413),
    [sym_ignore_inside] = ACTIONS(413),
    [sym_union] = ACTIONS(415),
    [sym_intersect] = ACTIONS(415),
    [sym_subtract] = ACTIONS(417),
    [anon_sym__] = ACTIONS(31),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(311),
    [anon_sym_COMMA_COMMA] = ACTIONS(21),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [272] = {
    [sym_expression] = STATE(282),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(735),
    [sym_simple_replace] = STATE(492),
    [sym_single_replace] = STATE(492),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(608),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(443),
    [sym_complement] = ACTIONS(445),
    [sym_term_complement] = ACTIONS(445),
    [sym_contains] = ACTIONS(445),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(447),
    [sym_ignore_inside] = ACTIONS(447),
    [sym_union] = ACTIONS(449),
    [sym_intersect] = ACTIONS(449),
    [sym_subtract] = ACTIONS(451),
    [anon_sym__] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [273] = {
    [sym_expression] = STATE(286),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(737),
    [sym_simple_replace] = STATE(454),
    [sym_single_replace] = STATE(454),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(545),
    [sym_conditional_replace] = STATE(620),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(65),
    [sym_semicolon] = ACTIONS(67),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [sym_colon] = ACTIONS(453),
    [sym_complement] = ACTIONS(15),
    [sym_term_complement] = ACTIONS(15),
    [sym_contains] = ACTIONS(15),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(455),
    [sym_ignore_inside] = ACTIONS(455),
    [sym_union] = ACTIONS(457),
    [sym_intersect] = ACTIONS(457),
    [sym_subtract] = ACTIONS(459),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [274] = {
    [sym_expression] = STATE(282),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(735),
    [sym_simple_replace] = STATE(492),
    [sym_single_replace] = STATE(492),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(608),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(443),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(53),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [275] = {
    [sym_expression] = STATE(286),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(737),
    [sym_simple_replace] = STATE(454),
    [sym_single_replace] = STATE(454),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(545),
    [sym_conditional_replace] = STATE(620),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [sym_colon] = ACTIONS(453),
    [sym_complement] = ACTIONS(15),
    [sym_term_complement] = ACTIONS(15),
    [sym_contains] = ACTIONS(15),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(455),
    [sym_ignore_inside] = ACTIONS(455),
    [sym_union] = ACTIONS(457),
    [sym_intersect] = ACTIONS(457),
    [sym_subtract] = ACTIONS(459),
    [anon_sym_EQ_GT] = ACTIONS(461),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [276] = {
    [sym_expression] = STATE(282),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(735),
    [sym_simple_replace] = STATE(492),
    [sym_single_replace] = STATE(492),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(608),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(443),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [277] = {
    [sym_expression] = STATE(282),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(735),
    [sym_simple_replace] = STATE(492),
    [sym_single_replace] = STATE(492),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(608),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [278] = {
    [sym_expression] = STATE(259),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_simple_replace] = STATE(445),
    [sym_single_replace] = STATE(445),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(578),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(149),
    [sym_semicolon] = ACTIONS(147),
    [anon_sym_LBRACK] = ACTIONS(147),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(149),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(149),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(149),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(149),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [279] = {
    [sym_expression] = STATE(286),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(737),
    [sym_simple_replace] = STATE(454),
    [sym_single_replace] = STATE(454),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(545),
    [sym_conditional_replace] = STATE(620),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [sym_colon] = ACTIONS(453),
    [sym_complement] = ACTIONS(15),
    [sym_term_complement] = ACTIONS(15),
    [sym_contains] = ACTIONS(15),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(455),
    [sym_ignore_inside] = ACTIONS(455),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [280] = {
    [sym_expression] = STATE(286),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(737),
    [sym_simple_replace] = STATE(454),
    [sym_single_replace] = STATE(454),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(545),
    [sym_conditional_replace] = STATE(620),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [sym_colon] = ACTIONS(453),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [281] = {
    [sym_expression] = STATE(286),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(737),
    [sym_simple_replace] = STATE(454),
    [sym_single_replace] = STATE(454),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(545),
    [sym_conditional_replace] = STATE(620),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [282] = {
    [sym_expression] = STATE(282),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(735),
    [sym_simple_replace] = STATE(492),
    [sym_single_replace] = STATE(492),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(608),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(53),
    [sym_colon] = ACTIONS(443),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(447),
    [sym_ignore_inside] = ACTIONS(447),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [283] = {
    [sym_expression] = STATE(282),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(735),
    [sym_simple_replace] = STATE(492),
    [sym_single_replace] = STATE(492),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(608),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(443),
    [sym_complement] = ACTIONS(445),
    [sym_term_complement] = ACTIONS(445),
    [sym_contains] = ACTIONS(445),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(447),
    [sym_ignore_inside] = ACTIONS(447),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [284] = {
    [sym_expression] = STATE(271),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_simple_replace] = STATE(478),
    [sym_single_replace] = STATE(478),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(610),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(67),
    [sym_symbol] = ACTIONS(67),
    [sym_string] = ACTIONS(65),
    [sym_any] = ACTIONS(65),
    [sym_zero] = ACTIONS(65),
    [sym_boundary] = ACTIONS(65),
    [sym_symbol_group] = ACTIONS(65),
    [anon_sym_LPAREN] = ACTIONS(67),
    [anon_sym_BQUOTE] = ACTIONS(65),
    [anon_sym_COMMA] = ACTIONS(67),
    [sym_colon] = ACTIONS(65),
    [sym_complement] = ACTIONS(65),
    [sym_term_complement] = ACTIONS(65),
    [sym_contains] = ACTIONS(65),
    [sym_plus] = ACTIONS(65),
    [sym_star] = ACTIONS(65),
    [sym_repeat] = ACTIONS(65),
    [sym_upper] = ACTIONS(65),
    [sym_lower] = ACTIONS(65),
    [sym_reverse] = ACTIONS(65),
    [sym_inverse] = ACTIONS(65),
    [sym_ignore] = ACTIONS(65),
    [sym_ignore_inside] = ACTIONS(65),
    [sym_union] = ACTIONS(65),
    [sym_intersect] = ACTIONS(65),
    [sym_subtract] = ACTIONS(67),
    [anon_sym__] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(65),
    [anon_sym_COMMA_COMMA] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [285] = {
    [sym_expression] = STATE(260),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_simple_replace] = STATE(478),
    [sym_single_replace] = STATE(478),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(610),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(119),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(119),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(121),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(121),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(121),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym__] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_COMMA_COMMA] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [286] = {
    [sym_expression] = STATE(286),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(737),
    [sym_simple_replace] = STATE(454),
    [sym_single_replace] = STATE(454),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(545),
    [sym_conditional_replace] = STATE(620),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [sym_colon] = ACTIONS(453),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(455),
    [sym_ignore_inside] = ACTIONS(455),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [287] = {
    [sym_expression] = STATE(261),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(67),
    [anon_sym_RBRACK] = ACTIONS(65),
    [sym_symbol] = ACTIONS(67),
    [sym_string] = ACTIONS(65),
    [sym_any] = ACTIONS(65),
    [sym_zero] = ACTIONS(65),
    [sym_boundary] = ACTIONS(65),
    [sym_symbol_group] = ACTIONS(65),
    [anon_sym_LPAREN] = ACTIONS(67),
    [anon_sym_RPAREN] = ACTIONS(65),
    [anon_sym_BQUOTE] = ACTIONS(65),
    [sym_colon] = ACTIONS(65),
    [sym_complement] = ACTIONS(65),
    [sym_term_complement] = ACTIONS(65),
    [sym_contains] = ACTIONS(65),
    [sym_plus] = ACTIONS(65),
    [sym_star] = ACTIONS(65),
    [sym_repeat] = ACTIONS(65),
    [sym_upper] = ACTIONS(65),
    [sym_lower] = ACTIONS(65),
    [sym_reverse] = ACTIONS(65),
    [sym_inverse] = ACTIONS(65),
    [sym_ignore] = ACTIONS(65),
    [sym_ignore_inside] = ACTIONS(65),
    [sym_union] = ACTIONS(65),
    [sym_intersect] = ACTIONS(65),
    [sym_subtract] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(65),
    [anon_sym_DOT_RBRACK] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [288] = {
    [sym_expression] = STATE(240),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_simple_replace] = STATE(478),
    [sym_single_replace] = STATE(478),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(610),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(147),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(147),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(149),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(149),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(149),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym__] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [anon_sym_COMMA_COMMA] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [289] = {
    [sym_expression] = STATE(282),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(735),
    [sym_simple_replace] = STATE(492),
    [sym_single_replace] = STATE(492),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(608),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [anon_sym_COMMA] = ACTIONS(75),
    [sym_colon] = ACTIONS(443),
    [sym_complement] = ACTIONS(445),
    [sym_term_complement] = ACTIONS(445),
    [sym_contains] = ACTIONS(445),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(447),
    [sym_ignore_inside] = ACTIONS(447),
    [sym_union] = ACTIONS(449),
    [sym_intersect] = ACTIONS(449),
    [sym_subtract] = ACTIONS(451),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(463),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [290] = {
    [sym_expression] = STATE(270),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(119),
    [anon_sym_RBRACK] = ACTIONS(121),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_RPAREN] = ACTIONS(121),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(121),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(121),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(121),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [anon_sym_DOT_RBRACK] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [291] = {
    [sym_expression] = STATE(244),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_simple_replace] = STATE(478),
    [sym_single_replace] = STATE(478),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(610),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(71),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(71),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(69),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(69),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(69),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym__] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [anon_sym_COMMA_COMMA] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [292] = {
    [sym_expression] = STATE(282),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(735),
    [sym_simple_replace] = STATE(492),
    [sym_single_replace] = STATE(492),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(608),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [anon_sym_COMMA] = ACTIONS(65),
    [sym_colon] = ACTIONS(443),
    [sym_complement] = ACTIONS(445),
    [sym_term_complement] = ACTIONS(445),
    [sym_contains] = ACTIONS(445),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(447),
    [sym_ignore_inside] = ACTIONS(447),
    [sym_union] = ACTIONS(449),
    [sym_intersect] = ACTIONS(449),
    [sym_subtract] = ACTIONS(451),
    [anon_sym__] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [293] = {
    [sym_expression] = STATE(286),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(737),
    [sym_simple_replace] = STATE(454),
    [sym_single_replace] = STATE(454),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(545),
    [sym_conditional_replace] = STATE(620),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [sym_colon] = ACTIONS(453),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(53),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [294] = {
    [sym_expression] = STATE(282),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(735),
    [sym_simple_replace] = STATE(492),
    [sym_single_replace] = STATE(492),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(608),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [anon_sym_COMMA] = ACTIONS(21),
    [sym_colon] = ACTIONS(443),
    [sym_complement] = ACTIONS(445),
    [sym_term_complement] = ACTIONS(445),
    [sym_contains] = ACTIONS(445),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(447),
    [sym_ignore_inside] = ACTIONS(447),
    [sym_union] = ACTIONS(449),
    [sym_intersect] = ACTIONS(449),
    [sym_subtract] = ACTIONS(451),
    [anon_sym__] = ACTIONS(31),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [295] = {
    [sym_expression] = STATE(282),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(735),
    [sym_simple_replace] = STATE(492),
    [sym_single_replace] = STATE(492),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(608),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [anon_sym_COMMA] = ACTIONS(61),
    [sym_colon] = ACTIONS(443),
    [sym_complement] = ACTIONS(445),
    [sym_term_complement] = ACTIONS(445),
    [sym_contains] = ACTIONS(445),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(447),
    [sym_ignore_inside] = ACTIONS(447),
    [sym_union] = ACTIONS(449),
    [sym_intersect] = ACTIONS(449),
    [sym_subtract] = ACTIONS(451),
    [anon_sym__] = ACTIONS(63),
    [anon_sym_EQ_GT] = ACTIONS(61),
    [anon_sym_DASH_GT] = ACTIONS(63),
    [anon_sym_LT_DASH] = ACTIONS(61),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(61),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(61),
    [anon_sym_AT_DASH_GT] = ACTIONS(61),
    [anon_sym_DASH_GT_AT] = ACTIONS(61),
    [anon_sym_AT_GT] = ACTIONS(61),
    [anon_sym_GT_AT] = ACTIONS(61),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(61),
    [sym_compose] = ACTIONS(61),
    [sym_comment] = ACTIONS(3),
  },
  [296] = {
    [sym_expression] = STATE(245),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_simple_replace] = STATE(445),
    [sym_single_replace] = STATE(445),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(578),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(65),
    [sym_semicolon] = ACTIONS(67),
    [anon_sym_LBRACK] = ACTIONS(67),
    [sym_symbol] = ACTIONS(67),
    [sym_string] = ACTIONS(65),
    [sym_any] = ACTIONS(65),
    [sym_zero] = ACTIONS(65),
    [sym_boundary] = ACTIONS(65),
    [sym_symbol_group] = ACTIONS(65),
    [anon_sym_LPAREN] = ACTIONS(67),
    [anon_sym_BQUOTE] = ACTIONS(65),
    [anon_sym_COMMA] = ACTIONS(65),
    [sym_colon] = ACTIONS(65),
    [sym_complement] = ACTIONS(65),
    [sym_term_complement] = ACTIONS(65),
    [sym_contains] = ACTIONS(65),
    [sym_plus] = ACTIONS(65),
    [sym_star] = ACTIONS(65),
    [sym_repeat] = ACTIONS(65),
    [sym_upper] = ACTIONS(65),
    [sym_lower] = ACTIONS(65),
    [sym_reverse] = ACTIONS(65),
    [sym_inverse] = ACTIONS(65),
    [sym_ignore] = ACTIONS(65),
    [sym_ignore_inside] = ACTIONS(65),
    [sym_union] = ACTIONS(65),
    [sym_intersect] = ACTIONS(65),
    [sym_subtract] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [297] = {
    [sym_expression] = STATE(246),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_simple_replace] = STATE(445),
    [sym_single_replace] = STATE(445),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(578),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(121),
    [sym_semicolon] = ACTIONS(119),
    [anon_sym_LBRACK] = ACTIONS(119),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(121),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(121),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(121),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(121),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [298] = {
    [sym_expression] = STATE(286),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(737),
    [sym_simple_replace] = STATE(454),
    [sym_single_replace] = STATE(454),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(545),
    [sym_conditional_replace] = STATE(620),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(21),
    [sym_semicolon] = ACTIONS(31),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [sym_colon] = ACTIONS(453),
    [sym_complement] = ACTIONS(15),
    [sym_term_complement] = ACTIONS(15),
    [sym_contains] = ACTIONS(15),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(455),
    [sym_ignore_inside] = ACTIONS(455),
    [sym_union] = ACTIONS(457),
    [sym_intersect] = ACTIONS(457),
    [sym_subtract] = ACTIONS(459),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [299] = {
    [sym_expression] = STATE(253),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_simple_replace] = STATE(445),
    [sym_single_replace] = STATE(445),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(482),
    [sym_conditional_replace] = STATE(578),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(69),
    [sym_semicolon] = ACTIONS(71),
    [anon_sym_LBRACK] = ACTIONS(71),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(69),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(69),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(69),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [300] = {
    [sym_expression] = STATE(286),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_arrow] = STATE(737),
    [sym_simple_replace] = STATE(454),
    [sym_single_replace] = STATE(454),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(545),
    [sym_conditional_replace] = STATE(620),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(465),
    [sym_semicolon] = ACTIONS(467),
    [anon_sym_LBRACK] = ACTIONS(5),
    [sym_symbol] = ACTIONS(7),
    [sym_string] = ACTIONS(9),
    [sym_any] = ACTIONS(9),
    [sym_zero] = ACTIONS(9),
    [sym_boundary] = ACTIONS(9),
    [sym_symbol_group] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(367),
    [anon_sym_BQUOTE] = ACTIONS(13),
    [sym_colon] = ACTIONS(453),
    [sym_complement] = ACTIONS(15),
    [sym_term_complement] = ACTIONS(15),
    [sym_contains] = ACTIONS(15),
    [sym_plus] = ACTIONS(373),
    [sym_star] = ACTIONS(373),
    [sym_repeat] = ACTIONS(373),
    [sym_upper] = ACTIONS(373),
    [sym_lower] = ACTIONS(373),
    [sym_reverse] = ACTIONS(373),
    [sym_inverse] = ACTIONS(373),
    [sym_ignore] = ACTIONS(455),
    [sym_ignore_inside] = ACTIONS(455),
    [sym_union] = ACTIONS(457),
    [sym_intersect] = ACTIONS(457),
    [sym_subtract] = ACTIONS(459),
    [anon_sym_EQ_GT] = ACTIONS(461),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(17),
    [sym_crossproduct] = ACTIONS(469),
    [sym_compose] = ACTIONS(469),
    [sym_comment] = ACTIONS(3),
  },
  [301] = {
    [sym_condition_operators] = STATE(664),
    [aux_sym_parallel_replace_repeat1] = STATE(472),
    [anon_sym_LBRACK] = ACTIONS(471),
    [anon_sym_RBRACK] = ACTIONS(473),
    [sym_symbol] = ACTIONS(471),
    [sym_string] = ACTIONS(473),
    [sym_any] = ACTIONS(473),
    [sym_zero] = ACTIONS(473),
    [sym_boundary] = ACTIONS(473),
    [sym_symbol_group] = ACTIONS(473),
    [anon_sym_LPAREN] = ACTIONS(471),
    [anon_sym_RPAREN] = ACTIONS(473),
    [anon_sym_BQUOTE] = ACTIONS(473),
    [anon_sym_COMMA] = ACTIONS(471),
    [sym_colon] = ACTIONS(473),
    [sym_complement] = ACTIONS(473),
    [sym_term_complement] = ACTIONS(471),
    [sym_contains] = ACTIONS(473),
    [sym_plus] = ACTIONS(473),
    [sym_star] = ACTIONS(473),
    [sym_repeat] = ACTIONS(473),
    [sym_upper] = ACTIONS(473),
    [sym_lower] = ACTIONS(473),
    [sym_reverse] = ACTIONS(473),
    [sym_inverse] = ACTIONS(473),
    [sym_ignore] = ACTIONS(471),
    [sym_ignore_inside] = ACTIONS(473),
    [sym_union] = ACTIONS(471),
    [sym_intersect] = ACTIONS(473),
    [sym_subtract] = ACTIONS(471),
    [anon_sym_EQ_GT] = ACTIONS(473),
    [anon_sym_DASH_GT] = ACTIONS(471),
    [anon_sym_LT_DASH] = ACTIONS(473),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(473),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(473),
    [anon_sym_AT_DASH_GT] = ACTIONS(473),
    [anon_sym_DASH_GT_AT] = ACTIONS(473),
    [anon_sym_AT_GT] = ACTIONS(473),
    [anon_sym_GT_AT] = ACTIONS(473),
    [anon_sym_LBRACK_DOT] = ACTIONS(473),
    [anon_sym_DOT_RBRACK] = ACTIONS(473),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(473),
    [anon_sym_PIPE_PIPE] = ACTIONS(473),
    [anon_sym_SLASH_SLASH] = ACTIONS(473),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(473),
    [anon_sym_BSLASH_SLASH] = ACTIONS(473),
    [anon_sym_COMMA_COMMA] = ACTIONS(473),
    [sym_crossproduct] = ACTIONS(473),
    [sym_compose] = ACTIONS(473),
    [sym_comment] = ACTIONS(3),
  },
  [302] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(475),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [303] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(479),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [304] = {
    [sym_expression] = STATE(227),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(714),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(481),
    [sym_colon] = ACTIONS(381),
    [sym_complement] = ACTIONS(383),
    [sym_term_complement] = ACTIONS(383),
    [sym_contains] = ACTIONS(383),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(385),
    [sym_ignore_inside] = ACTIONS(385),
    [sym_union] = ACTIONS(387),
    [sym_intersect] = ACTIONS(387),
    [sym_subtract] = ACTIONS(389),
    [anon_sym_EQ_GT] = ACTIONS(391),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(483),
    [sym_compose] = ACTIONS(483),
    [sym_comment] = ACTIONS(3),
  },
  [305] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(495),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [306] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [307] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [308] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [309] = {
    [sym_expression] = STATE(227),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(714),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(501),
    [sym_colon] = ACTIONS(381),
    [sym_complement] = ACTIONS(383),
    [sym_term_complement] = ACTIONS(383),
    [sym_contains] = ACTIONS(383),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(385),
    [sym_ignore_inside] = ACTIONS(385),
    [sym_union] = ACTIONS(387),
    [sym_intersect] = ACTIONS(387),
    [sym_subtract] = ACTIONS(389),
    [anon_sym_EQ_GT] = ACTIONS(391),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(483),
    [sym_compose] = ACTIONS(483),
    [sym_comment] = ACTIONS(3),
  },
  [310] = {
    [sym_expression] = STATE(272),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_simple_replace] = STATE(492),
    [sym_single_replace] = STATE(492),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(608),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(147),
    [sym_symbol] = ACTIONS(147),
    [sym_string] = ACTIONS(149),
    [sym_any] = ACTIONS(149),
    [sym_zero] = ACTIONS(149),
    [sym_boundary] = ACTIONS(149),
    [sym_symbol_group] = ACTIONS(149),
    [anon_sym_LPAREN] = ACTIONS(147),
    [anon_sym_BQUOTE] = ACTIONS(149),
    [anon_sym_COMMA] = ACTIONS(149),
    [sym_colon] = ACTIONS(149),
    [sym_complement] = ACTIONS(149),
    [sym_term_complement] = ACTIONS(149),
    [sym_contains] = ACTIONS(149),
    [sym_plus] = ACTIONS(149),
    [sym_star] = ACTIONS(149),
    [sym_repeat] = ACTIONS(149),
    [sym_upper] = ACTIONS(149),
    [sym_lower] = ACTIONS(149),
    [sym_reverse] = ACTIONS(149),
    [sym_inverse] = ACTIONS(149),
    [sym_ignore] = ACTIONS(149),
    [sym_ignore_inside] = ACTIONS(149),
    [sym_union] = ACTIONS(149),
    [sym_intersect] = ACTIONS(149),
    [sym_subtract] = ACTIONS(147),
    [anon_sym__] = ACTIONS(147),
    [anon_sym_EQ_GT] = ACTIONS(149),
    [anon_sym_DASH_GT] = ACTIONS(147),
    [anon_sym_LT_DASH] = ACTIONS(149),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(149),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(149),
    [anon_sym_AT_DASH_GT] = ACTIONS(149),
    [anon_sym_DASH_GT_AT] = ACTIONS(149),
    [anon_sym_AT_GT] = ACTIONS(149),
    [anon_sym_GT_AT] = ACTIONS(149),
    [anon_sym_LBRACK_DOT] = ACTIONS(149),
    [sym_crossproduct] = ACTIONS(149),
    [sym_compose] = ACTIONS(149),
    [sym_comment] = ACTIONS(3),
  },
  [311] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(503),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [312] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(505),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [313] = {
    [sym_expression] = STATE(298),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_simple_replace] = STATE(454),
    [sym_single_replace] = STATE(454),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(545),
    [sym_conditional_replace] = STATE(620),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(65),
    [sym_semicolon] = ACTIONS(67),
    [anon_sym_LBRACK] = ACTIONS(67),
    [sym_symbol] = ACTIONS(67),
    [sym_string] = ACTIONS(65),
    [sym_any] = ACTIONS(65),
    [sym_zero] = ACTIONS(65),
    [sym_boundary] = ACTIONS(65),
    [sym_symbol_group] = ACTIONS(65),
    [anon_sym_LPAREN] = ACTIONS(67),
    [anon_sym_BQUOTE] = ACTIONS(65),
    [sym_colon] = ACTIONS(65),
    [sym_complement] = ACTIONS(65),
    [sym_term_complement] = ACTIONS(65),
    [sym_contains] = ACTIONS(65),
    [sym_plus] = ACTIONS(65),
    [sym_star] = ACTIONS(65),
    [sym_repeat] = ACTIONS(65),
    [sym_upper] = ACTIONS(65),
    [sym_lower] = ACTIONS(65),
    [sym_reverse] = ACTIONS(65),
    [sym_inverse] = ACTIONS(65),
    [sym_ignore] = ACTIONS(65),
    [sym_ignore_inside] = ACTIONS(65),
    [sym_union] = ACTIONS(65),
    [sym_intersect] = ACTIONS(65),
    [sym_subtract] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [314] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(507),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [315] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(509),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [316] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(511),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [317] = {
    [sym_expression] = STATE(273),
    [sym_optional] = STATE(625),
    [sym_substitute] = STATE(625),
    [sym_restrict] = STATE(625),
    [sym_simple_replace] = STATE(454),
    [sym_single_replace] = STATE(454),
    [sym_mark] = STATE(625),
    [sym_parallel_replace] = STATE(545),
    [sym_conditional_replace] = STATE(620),
    [sym_parallel_conditional_replace] = STATE(625),
    [ts_builtin_sym_end] = ACTIONS(121),
    [sym_semicolon] = ACTIONS(119),
    [anon_sym_LBRACK] = ACTIONS(119),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(121),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(121),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(121),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [318] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [319] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [320] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(513),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [321] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(515),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [322] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(517),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [323] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(519),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [324] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(521),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [325] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(523),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [326] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(525),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [327] = {
    [sym_expression] = STATE(227),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(714),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(527),
    [sym_colon] = ACTIONS(381),
    [sym_complement] = ACTIONS(383),
    [sym_term_complement] = ACTIONS(383),
    [sym_contains] = ACTIONS(383),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(385),
    [sym_ignore_inside] = ACTIONS(385),
    [sym_union] = ACTIONS(387),
    [sym_intersect] = ACTIONS(387),
    [sym_subtract] = ACTIONS(389),
    [anon_sym_EQ_GT] = ACTIONS(391),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(483),
    [sym_compose] = ACTIONS(483),
    [sym_comment] = ACTIONS(3),
  },
  [328] = {
    [sym_expression] = STATE(227),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(714),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(529),
    [sym_colon] = ACTIONS(381),
    [sym_complement] = ACTIONS(383),
    [sym_term_complement] = ACTIONS(383),
    [sym_contains] = ACTIONS(383),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(385),
    [sym_ignore_inside] = ACTIONS(385),
    [sym_union] = ACTIONS(387),
    [sym_intersect] = ACTIONS(387),
    [sym_subtract] = ACTIONS(389),
    [anon_sym_EQ_GT] = ACTIONS(391),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(483),
    [sym_compose] = ACTIONS(483),
    [sym_comment] = ACTIONS(3),
  },
  [329] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(531),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [330] = {
    [sym_expression] = STATE(227),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(714),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(533),
    [sym_colon] = ACTIONS(381),
    [sym_complement] = ACTIONS(383),
    [sym_term_complement] = ACTIONS(383),
    [sym_contains] = ACTIONS(383),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(385),
    [sym_ignore_inside] = ACTIONS(385),
    [sym_union] = ACTIONS(387),
    [sym_intersect] = ACTIONS(387),
    [sym_subtract] = ACTIONS(389),
    [anon_sym_EQ_GT] = ACTIONS(391),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(483),
    [sym_compose] = ACTIONS(483),
    [sym_comment] = ACTIONS(3),
  },
  [331] = {
    [sym_condition_operators] = STATE(653),
    [aux_sym_parallel_replace_repeat1] = STATE(383),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(539),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [332] = {
    [sym_expression] = STATE(295),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_simple_replace] = STATE(492),
    [sym_single_replace] = STATE(492),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(608),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(71),
    [sym_symbol] = ACTIONS(71),
    [sym_string] = ACTIONS(69),
    [sym_any] = ACTIONS(69),
    [sym_zero] = ACTIONS(69),
    [sym_boundary] = ACTIONS(69),
    [sym_symbol_group] = ACTIONS(69),
    [anon_sym_LPAREN] = ACTIONS(71),
    [anon_sym_BQUOTE] = ACTIONS(69),
    [anon_sym_COMMA] = ACTIONS(69),
    [sym_colon] = ACTIONS(69),
    [sym_complement] = ACTIONS(69),
    [sym_term_complement] = ACTIONS(69),
    [sym_contains] = ACTIONS(69),
    [sym_plus] = ACTIONS(69),
    [sym_star] = ACTIONS(69),
    [sym_repeat] = ACTIONS(69),
    [sym_upper] = ACTIONS(69),
    [sym_lower] = ACTIONS(69),
    [sym_reverse] = ACTIONS(69),
    [sym_inverse] = ACTIONS(69),
    [sym_ignore] = ACTIONS(69),
    [sym_ignore_inside] = ACTIONS(69),
    [sym_union] = ACTIONS(69),
    [sym_intersect] = ACTIONS(69),
    [sym_subtract] = ACTIONS(71),
    [anon_sym__] = ACTIONS(71),
    [anon_sym_EQ_GT] = ACTIONS(69),
    [anon_sym_DASH_GT] = ACTIONS(71),
    [anon_sym_LT_DASH] = ACTIONS(69),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(69),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(69),
    [anon_sym_AT_DASH_GT] = ACTIONS(69),
    [anon_sym_DASH_GT_AT] = ACTIONS(69),
    [anon_sym_AT_GT] = ACTIONS(69),
    [anon_sym_GT_AT] = ACTIONS(69),
    [anon_sym_LBRACK_DOT] = ACTIONS(69),
    [sym_crossproduct] = ACTIONS(69),
    [sym_compose] = ACTIONS(69),
    [sym_comment] = ACTIONS(3),
  },
  [333] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [334] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(543),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [335] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(31),
    [anon_sym_EQ_GT] = ACTIONS(21),
    [anon_sym_DASH_GT] = ACTIONS(31),
    [anon_sym_LT_DASH] = ACTIONS(21),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(21),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(21),
    [anon_sym_AT_DASH_GT] = ACTIONS(21),
    [anon_sym_DASH_GT_AT] = ACTIONS(21),
    [anon_sym_AT_GT] = ACTIONS(21),
    [anon_sym_GT_AT] = ACTIONS(21),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(21),
    [sym_compose] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
  [336] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(545),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [337] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(547),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [338] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(549),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [339] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(551),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [340] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_RPAREN] = ACTIONS(553),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [341] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(555),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [342] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(557),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [343] = {
    [sym_expression] = STATE(294),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_simple_replace] = STATE(492),
    [sym_single_replace] = STATE(492),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(608),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(67),
    [sym_symbol] = ACTIONS(67),
    [sym_string] = ACTIONS(65),
    [sym_any] = ACTIONS(65),
    [sym_zero] = ACTIONS(65),
    [sym_boundary] = ACTIONS(65),
    [sym_symbol_group] = ACTIONS(65),
    [anon_sym_LPAREN] = ACTIONS(67),
    [anon_sym_BQUOTE] = ACTIONS(65),
    [anon_sym_COMMA] = ACTIONS(65),
    [sym_colon] = ACTIONS(65),
    [sym_complement] = ACTIONS(65),
    [sym_term_complement] = ACTIONS(65),
    [sym_contains] = ACTIONS(65),
    [sym_plus] = ACTIONS(65),
    [sym_star] = ACTIONS(65),
    [sym_repeat] = ACTIONS(65),
    [sym_upper] = ACTIONS(65),
    [sym_lower] = ACTIONS(65),
    [sym_reverse] = ACTIONS(65),
    [sym_inverse] = ACTIONS(65),
    [sym_ignore] = ACTIONS(65),
    [sym_ignore_inside] = ACTIONS(65),
    [sym_union] = ACTIONS(65),
    [sym_intersect] = ACTIONS(65),
    [sym_subtract] = ACTIONS(67),
    [anon_sym__] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [344] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(559),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [345] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(561),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [346] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(563),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [347] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(565),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [348] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(567),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [349] = {
    [sym_expression] = STATE(292),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_simple_replace] = STATE(492),
    [sym_single_replace] = STATE(492),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(513),
    [sym_conditional_replace] = STATE(608),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(119),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [anon_sym_COMMA] = ACTIONS(121),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(121),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(121),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(121),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym__] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [350] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(53),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [351] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(569),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [352] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(571),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [353] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(573),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [354] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(575),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [355] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [anon_sym_DOT_RBRACK] = ACTIONS(577),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [356] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [anon_sym_RBRACK] = ACTIONS(579),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [357] = {
    [sym_expression] = STATE(227),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(714),
    [sym_simple_replace] = STATE(415),
    [sym_single_replace] = STATE(415),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(418),
    [sym_conditional_replace] = STATE(556),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [anon_sym_COMMA] = ACTIONS(581),
    [sym_colon] = ACTIONS(381),
    [sym_complement] = ACTIONS(383),
    [sym_term_complement] = ACTIONS(383),
    [sym_contains] = ACTIONS(383),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(385),
    [sym_ignore_inside] = ACTIONS(385),
    [sym_union] = ACTIONS(387),
    [sym_intersect] = ACTIONS(387),
    [sym_subtract] = ACTIONS(389),
    [anon_sym_EQ_GT] = ACTIONS(391),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(483),
    [sym_compose] = ACTIONS(483),
    [sym_comment] = ACTIONS(3),
  },
  [358] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(583),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [359] = {
    [sym_expression] = STATE(318),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_arrow] = STATE(727),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(397),
    [sym_symbol] = ACTIONS(399),
    [sym_string] = ACTIONS(401),
    [sym_any] = ACTIONS(401),
    [sym_zero] = ACTIONS(401),
    [sym_boundary] = ACTIONS(401),
    [sym_symbol_group] = ACTIONS(401),
    [anon_sym_LPAREN] = ACTIONS(403),
    [anon_sym_BQUOTE] = ACTIONS(405),
    [sym_colon] = ACTIONS(485),
    [sym_complement] = ACTIONS(487),
    [sym_term_complement] = ACTIONS(487),
    [sym_contains] = ACTIONS(487),
    [sym_plus] = ACTIONS(411),
    [sym_star] = ACTIONS(411),
    [sym_repeat] = ACTIONS(411),
    [sym_upper] = ACTIONS(411),
    [sym_lower] = ACTIONS(411),
    [sym_reverse] = ACTIONS(411),
    [sym_inverse] = ACTIONS(411),
    [sym_ignore] = ACTIONS(489),
    [sym_ignore_inside] = ACTIONS(489),
    [sym_union] = ACTIONS(491),
    [sym_intersect] = ACTIONS(491),
    [sym_subtract] = ACTIONS(493),
    [anon_sym__] = ACTIONS(585),
    [anon_sym_EQ_GT] = ACTIONS(497),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(339),
    [sym_crossproduct] = ACTIONS(499),
    [sym_compose] = ACTIONS(499),
    [sym_comment] = ACTIONS(3),
  },
  [360] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(729),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [361] = {
    [sym_expression] = STATE(335),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(67),
    [sym_symbol] = ACTIONS(67),
    [sym_string] = ACTIONS(65),
    [sym_any] = ACTIONS(65),
    [sym_zero] = ACTIONS(65),
    [sym_boundary] = ACTIONS(65),
    [sym_symbol_group] = ACTIONS(65),
    [anon_sym_LPAREN] = ACTIONS(67),
    [anon_sym_BQUOTE] = ACTIONS(65),
    [sym_colon] = ACTIONS(65),
    [sym_complement] = ACTIONS(65),
    [sym_term_complement] = ACTIONS(65),
    [sym_contains] = ACTIONS(65),
    [sym_plus] = ACTIONS(65),
    [sym_star] = ACTIONS(65),
    [sym_repeat] = ACTIONS(65),
    [sym_upper] = ACTIONS(65),
    [sym_lower] = ACTIONS(65),
    [sym_reverse] = ACTIONS(65),
    [sym_inverse] = ACTIONS(65),
    [sym_ignore] = ACTIONS(65),
    [sym_ignore_inside] = ACTIONS(65),
    [sym_union] = ACTIONS(65),
    [sym_intersect] = ACTIONS(65),
    [sym_subtract] = ACTIONS(67),
    [anon_sym__] = ACTIONS(67),
    [anon_sym_EQ_GT] = ACTIONS(65),
    [anon_sym_DASH_GT] = ACTIONS(67),
    [anon_sym_LT_DASH] = ACTIONS(65),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(65),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(65),
    [anon_sym_AT_DASH_GT] = ACTIONS(65),
    [anon_sym_DASH_GT_AT] = ACTIONS(65),
    [anon_sym_AT_GT] = ACTIONS(65),
    [anon_sym_GT_AT] = ACTIONS(65),
    [anon_sym_LBRACK_DOT] = ACTIONS(65),
    [sym_crossproduct] = ACTIONS(65),
    [sym_compose] = ACTIONS(65),
    [sym_comment] = ACTIONS(3),
  },
  [362] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(573),
    [anon_sym_LBRACK] = ACTIONS(587),
    [anon_sym_RBRACK] = ACTIONS(589),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_RPAREN] = ACTIONS(589),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [anon_sym_COMMA] = ACTIONS(587),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(587),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(587),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(587),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_DOT_RBRACK] = ACTIONS(589),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(589),
    [anon_sym_PIPE_PIPE] = ACTIONS(589),
    [anon_sym_SLASH_SLASH] = ACTIONS(589),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(589),
    [anon_sym_BSLASH_SLASH] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(589),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [363] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(368),
    [anon_sym_LBRACK] = ACTIONS(591),
    [anon_sym_RBRACK] = ACTIONS(593),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_RPAREN] = ACTIONS(593),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(591),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(591),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(591),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_DOT_RBRACK] = ACTIONS(593),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(593),
    [anon_sym_PIPE_PIPE] = ACTIONS(593),
    [anon_sym_SLASH_SLASH] = ACTIONS(593),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(593),
    [anon_sym_BSLASH_SLASH] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(595),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [364] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(741),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [365] = {
    [sym_condition_operators] = STATE(653),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [366] = {
    [aux_sym_parallel_replace_repeat1] = STATE(366),
    [anon_sym_LBRACK] = ACTIONS(471),
    [anon_sym_RBRACK] = ACTIONS(473),
    [sym_symbol] = ACTIONS(471),
    [sym_string] = ACTIONS(473),
    [sym_any] = ACTIONS(473),
    [sym_zero] = ACTIONS(473),
    [sym_boundary] = ACTIONS(473),
    [sym_symbol_group] = ACTIONS(473),
    [anon_sym_LPAREN] = ACTIONS(471),
    [anon_sym_RPAREN] = ACTIONS(473),
    [anon_sym_BQUOTE] = ACTIONS(473),
    [anon_sym_COMMA] = ACTIONS(597),
    [sym_colon] = ACTIONS(473),
    [sym_complement] = ACTIONS(473),
    [sym_term_complement] = ACTIONS(471),
    [sym_contains] = ACTIONS(473),
    [sym_plus] = ACTIONS(473),
    [sym_star] = ACTIONS(473),
    [sym_repeat] = ACTIONS(473),
    [sym_upper] = ACTIONS(473),
    [sym_lower] = ACTIONS(473),
    [sym_reverse] = ACTIONS(473),
    [sym_inverse] = ACTIONS(473),
    [sym_ignore] = ACTIONS(471),
    [sym_ignore_inside] = ACTIONS(473),
    [sym_union] = ACTIONS(471),
    [sym_intersect] = ACTIONS(473),
    [sym_subtract] = ACTIONS(471),
    [anon_sym_EQ_GT] = ACTIONS(473),
    [anon_sym_DASH_GT] = ACTIONS(471),
    [anon_sym_LT_DASH] = ACTIONS(473),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(473),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(473),
    [anon_sym_AT_DASH_GT] = ACTIONS(473),
    [anon_sym_DASH_GT_AT] = ACTIONS(473),
    [anon_sym_AT_GT] = ACTIONS(473),
    [anon_sym_GT_AT] = ACTIONS(473),
    [anon_sym_LBRACK_DOT] = ACTIONS(473),
    [anon_sym_DOT_RBRACK] = ACTIONS(473),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(473),
    [anon_sym_PIPE_PIPE] = ACTIONS(473),
    [anon_sym_SLASH_SLASH] = ACTIONS(473),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(473),
    [anon_sym_BSLASH_SLASH] = ACTIONS(473),
    [anon_sym_COMMA_COMMA] = ACTIONS(473),
    [sym_crossproduct] = ACTIONS(473),
    [sym_compose] = ACTIONS(473),
    [sym_comment] = ACTIONS(3),
  },
  [367] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(740),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [368] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(368),
    [anon_sym_LBRACK] = ACTIONS(587),
    [anon_sym_RBRACK] = ACTIONS(589),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_RPAREN] = ACTIONS(589),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [anon_sym_COMMA] = ACTIONS(587),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(587),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(587),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(587),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_DOT_RBRACK] = ACTIONS(589),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(589),
    [anon_sym_PIPE_PIPE] = ACTIONS(589),
    [anon_sym_SLASH_SLASH] = ACTIONS(589),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(589),
    [anon_sym_BSLASH_SLASH] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(600),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [369] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(363),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(537),
    [anon_sym_SLASH_SLASH] = ACTIONS(537),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(537),
    [anon_sym_BSLASH_SLASH] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(595),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [370] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(736),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [371] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(726),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [372] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(731),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [373] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(716),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [374] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(717),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [375] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(719),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [376] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(724),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [377] = {
    [sym_condition_operators] = STATE(664),
    [aux_sym_parallel_replace_repeat1] = STATE(472),
    [ts_builtin_sym_end] = ACTIONS(473),
    [sym_semicolon] = ACTIONS(471),
    [anon_sym_LBRACK] = ACTIONS(471),
    [sym_symbol] = ACTIONS(471),
    [sym_string] = ACTIONS(473),
    [sym_any] = ACTIONS(473),
    [sym_zero] = ACTIONS(473),
    [sym_boundary] = ACTIONS(473),
    [sym_symbol_group] = ACTIONS(473),
    [anon_sym_LPAREN] = ACTIONS(471),
    [anon_sym_BQUOTE] = ACTIONS(473),
    [anon_sym_COMMA] = ACTIONS(471),
    [sym_colon] = ACTIONS(473),
    [sym_complement] = ACTIONS(473),
    [sym_term_complement] = ACTIONS(471),
    [sym_contains] = ACTIONS(473),
    [sym_plus] = ACTIONS(473),
    [sym_star] = ACTIONS(473),
    [sym_repeat] = ACTIONS(473),
    [sym_upper] = ACTIONS(473),
    [sym_lower] = ACTIONS(473),
    [sym_reverse] = ACTIONS(473),
    [sym_inverse] = ACTIONS(473),
    [sym_ignore] = ACTIONS(471),
    [sym_ignore_inside] = ACTIONS(473),
    [sym_union] = ACTIONS(471),
    [sym_intersect] = ACTIONS(473),
    [sym_subtract] = ACTIONS(471),
    [anon_sym_EQ_GT] = ACTIONS(473),
    [anon_sym_DASH_GT] = ACTIONS(471),
    [anon_sym_LT_DASH] = ACTIONS(473),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(473),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(473),
    [anon_sym_AT_DASH_GT] = ACTIONS(473),
    [anon_sym_DASH_GT_AT] = ACTIONS(473),
    [anon_sym_AT_GT] = ACTIONS(473),
    [anon_sym_GT_AT] = ACTIONS(473),
    [anon_sym_LBRACK_DOT] = ACTIONS(473),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(473),
    [anon_sym_PIPE_PIPE] = ACTIONS(473),
    [anon_sym_SLASH_SLASH] = ACTIONS(473),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(473),
    [anon_sym_BSLASH_SLASH] = ACTIONS(473),
    [anon_sym_COMMA_COMMA] = ACTIONS(473),
    [sym_crossproduct] = ACTIONS(473),
    [sym_compose] = ACTIONS(473),
    [sym_comment] = ACTIONS(3),
  },
  [378] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(739),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [379] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(368),
    [anon_sym_LBRACK] = ACTIONS(591),
    [anon_sym_RBRACK] = ACTIONS(593),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_RPAREN] = ACTIONS(593),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(591),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(591),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(591),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_DOT_RBRACK] = ACTIONS(593),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(593),
    [anon_sym_PIPE_PIPE] = ACTIONS(593),
    [anon_sym_SLASH_SLASH] = ACTIONS(593),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(593),
    [anon_sym_BSLASH_SLASH] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(593),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [380] = {
    [sym_condition_operators] = STATE(653),
    [aux_sym_parallel_replace_repeat1] = STATE(413),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(603),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [381] = {
    [sym_condition_operators] = STATE(651),
    [aux_sym_parallel_replace_repeat1] = STATE(419),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(605),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [382] = {
    [aux_sym_context_list_repeat1] = STATE(388),
    [anon_sym_LBRACK] = ACTIONS(607),
    [anon_sym_RBRACK] = ACTIONS(609),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_RPAREN] = ACTIONS(609),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(607),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(607),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(607),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(607),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_DOT_RBRACK] = ACTIONS(609),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(609),
    [anon_sym_PIPE_PIPE] = ACTIONS(609),
    [anon_sym_SLASH_SLASH] = ACTIONS(609),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(609),
    [anon_sym_BSLASH_SLASH] = ACTIONS(609),
    [anon_sym_COMMA_COMMA] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [383] = {
    [aux_sym_parallel_replace_repeat1] = STATE(366),
    [anon_sym_LBRACK] = ACTIONS(611),
    [anon_sym_RBRACK] = ACTIONS(613),
    [sym_symbol] = ACTIONS(611),
    [sym_string] = ACTIONS(613),
    [sym_any] = ACTIONS(613),
    [sym_zero] = ACTIONS(613),
    [sym_boundary] = ACTIONS(613),
    [sym_symbol_group] = ACTIONS(613),
    [anon_sym_LPAREN] = ACTIONS(611),
    [anon_sym_RPAREN] = ACTIONS(613),
    [anon_sym_BQUOTE] = ACTIONS(613),
    [anon_sym_COMMA] = ACTIONS(611),
    [sym_colon] = ACTIONS(613),
    [sym_complement] = ACTIONS(613),
    [sym_term_complement] = ACTIONS(611),
    [sym_contains] = ACTIONS(613),
    [sym_plus] = ACTIONS(613),
    [sym_star] = ACTIONS(613),
    [sym_repeat] = ACTIONS(613),
    [sym_upper] = ACTIONS(613),
    [sym_lower] = ACTIONS(613),
    [sym_reverse] = ACTIONS(613),
    [sym_inverse] = ACTIONS(613),
    [sym_ignore] = ACTIONS(611),
    [sym_ignore_inside] = ACTIONS(613),
    [sym_union] = ACTIONS(611),
    [sym_intersect] = ACTIONS(613),
    [sym_subtract] = ACTIONS(611),
    [anon_sym_EQ_GT] = ACTIONS(613),
    [anon_sym_DASH_GT] = ACTIONS(611),
    [anon_sym_LT_DASH] = ACTIONS(613),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(613),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(613),
    [anon_sym_AT_DASH_GT] = ACTIONS(613),
    [anon_sym_DASH_GT_AT] = ACTIONS(613),
    [anon_sym_AT_GT] = ACTIONS(613),
    [anon_sym_GT_AT] = ACTIONS(613),
    [anon_sym_LBRACK_DOT] = ACTIONS(613),
    [anon_sym_DOT_RBRACK] = ACTIONS(613),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(613),
    [anon_sym_PIPE_PIPE] = ACTIONS(613),
    [anon_sym_SLASH_SLASH] = ACTIONS(613),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(613),
    [anon_sym_BSLASH_SLASH] = ACTIONS(613),
    [anon_sym_COMMA_COMMA] = ACTIONS(613),
    [sym_crossproduct] = ACTIONS(613),
    [sym_compose] = ACTIONS(613),
    [sym_comment] = ACTIONS(3),
  },
  [384] = {
    [aux_sym_context_list_repeat1] = STATE(382),
    [anon_sym_LBRACK] = ACTIONS(615),
    [anon_sym_RBRACK] = ACTIONS(617),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_RPAREN] = ACTIONS(617),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(615),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(615),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(615),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(615),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_DOT_RBRACK] = ACTIONS(617),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(617),
    [anon_sym_PIPE_PIPE] = ACTIONS(617),
    [anon_sym_SLASH_SLASH] = ACTIONS(617),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(617),
    [anon_sym_BSLASH_SLASH] = ACTIONS(617),
    [anon_sym_COMMA_COMMA] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [385] = {
    [sym_condition_operators] = STATE(657),
    [aux_sym_parallel_replace_repeat1] = STATE(419),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(605),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [386] = {
    [sym_condition_operators] = STATE(646),
    [aux_sym_parallel_replace_repeat1] = STATE(391),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(619),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [387] = {
    [sym_expression] = STATE(333),
    [sym_optional] = STATE(640),
    [sym_substitute] = STATE(640),
    [sym_restrict] = STATE(640),
    [sym_simple_replace] = STATE(507),
    [sym_single_replace] = STATE(507),
    [sym_mark] = STATE(640),
    [sym_parallel_replace] = STATE(557),
    [sym_conditional_replace] = STATE(645),
    [sym_parallel_conditional_replace] = STATE(640),
    [anon_sym_LBRACK] = ACTIONS(119),
    [sym_symbol] = ACTIONS(119),
    [sym_string] = ACTIONS(121),
    [sym_any] = ACTIONS(121),
    [sym_zero] = ACTIONS(121),
    [sym_boundary] = ACTIONS(121),
    [sym_symbol_group] = ACTIONS(121),
    [anon_sym_LPAREN] = ACTIONS(119),
    [anon_sym_BQUOTE] = ACTIONS(121),
    [sym_colon] = ACTIONS(121),
    [sym_complement] = ACTIONS(121),
    [sym_term_complement] = ACTIONS(121),
    [sym_contains] = ACTIONS(121),
    [sym_plus] = ACTIONS(121),
    [sym_star] = ACTIONS(121),
    [sym_repeat] = ACTIONS(121),
    [sym_upper] = ACTIONS(121),
    [sym_lower] = ACTIONS(121),
    [sym_reverse] = ACTIONS(121),
    [sym_inverse] = ACTIONS(121),
    [sym_ignore] = ACTIONS(121),
    [sym_ignore_inside] = ACTIONS(121),
    [sym_union] = ACTIONS(121),
    [sym_intersect] = ACTIONS(121),
    [sym_subtract] = ACTIONS(119),
    [anon_sym__] = ACTIONS(119),
    [anon_sym_EQ_GT] = ACTIONS(121),
    [anon_sym_DASH_GT] = ACTIONS(119),
    [anon_sym_LT_DASH] = ACTIONS(121),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(121),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(121),
    [anon_sym_AT_DASH_GT] = ACTIONS(121),
    [anon_sym_DASH_GT_AT] = ACTIONS(121),
    [anon_sym_AT_GT] = ACTIONS(121),
    [anon_sym_GT_AT] = ACTIONS(121),
    [anon_sym_LBRACK_DOT] = ACTIONS(121),
    [sym_crossproduct] = ACTIONS(121),
    [sym_compose] = ACTIONS(121),
    [sym_comment] = ACTIONS(3),
  },
  [388] = {
    [aux_sym_context_list_repeat1] = STATE(388),
    [anon_sym_LBRACK] = ACTIONS(621),
    [anon_sym_RBRACK] = ACTIONS(623),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_RPAREN] = ACTIONS(623),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(625),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(621),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(621),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(621),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_DOT_RBRACK] = ACTIONS(623),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(623),
    [anon_sym_PIPE_PIPE] = ACTIONS(623),
    [anon_sym_SLASH_SLASH] = ACTIONS(623),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(623),
    [anon_sym_BSLASH_SLASH] = ACTIONS(623),
    [anon_sym_COMMA_COMMA] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [389] = {
    [sym_expression] = STATE(248),
    [sym_optional] = STATE(562),
    [sym_substitute] = STATE(562),
    [sym_restrict] = STATE(562),
    [sym_arrow] = STATE(730),
    [sym_simple_replace] = STATE(423),
    [sym_single_replace] = STATE(423),
    [sym_mark] = STATE(562),
    [sym_parallel_replace] = STATE(517),
    [sym_conditional_replace] = STATE(563),
    [sym_parallel_conditional_replace] = STATE(562),
    [anon_sym_LBRACK] = ACTIONS(347),
    [sym_symbol] = ACTIONS(349),
    [sym_string] = ACTIONS(351),
    [sym_any] = ACTIONS(351),
    [sym_zero] = ACTIONS(351),
    [sym_boundary] = ACTIONS(351),
    [sym_symbol_group] = ACTIONS(351),
    [anon_sym_LPAREN] = ACTIONS(353),
    [anon_sym_BQUOTE] = ACTIONS(355),
    [sym_colon] = ACTIONS(395),
    [sym_complement] = ACTIONS(419),
    [sym_term_complement] = ACTIONS(419),
    [sym_contains] = ACTIONS(419),
    [sym_plus] = ACTIONS(345),
    [sym_star] = ACTIONS(345),
    [sym_repeat] = ACTIONS(345),
    [sym_upper] = ACTIONS(345),
    [sym_lower] = ACTIONS(345),
    [sym_reverse] = ACTIONS(345),
    [sym_inverse] = ACTIONS(345),
    [sym_ignore] = ACTIONS(421),
    [sym_ignore_inside] = ACTIONS(421),
    [sym_union] = ACTIONS(435),
    [sym_intersect] = ACTIONS(435),
    [sym_subtract] = ACTIONS(437),
    [anon_sym_EQ_GT] = ACTIONS(441),
    [anon_sym_DASH_GT] = ACTIONS(79),
    [anon_sym_LT_DASH] = ACTIONS(81),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(81),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(81),
    [anon_sym_AT_DASH_GT] = ACTIONS(81),
    [anon_sym_DASH_GT_AT] = ACTIONS(81),
    [anon_sym_AT_GT] = ACTIONS(81),
    [anon_sym_GT_AT] = ACTIONS(81),
    [anon_sym_LBRACK_DOT] = ACTIONS(223),
    [sym_crossproduct] = ACTIONS(477),
    [sym_compose] = ACTIONS(477),
    [sym_comment] = ACTIONS(3),
  },
  [390] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(379),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(537),
    [anon_sym_SLASH_SLASH] = ACTIONS(537),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(537),
    [anon_sym_BSLASH_SLASH] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(595),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [391] = {
    [aux_sym_parallel_replace_repeat1] = STATE(438),
    [ts_builtin_sym_end] = ACTIONS(613),
    [sym_semicolon] = ACTIONS(611),
    [anon_sym_LBRACK] = ACTIONS(611),
    [sym_symbol] = ACTIONS(611),
    [sym_string] = ACTIONS(613),
    [sym_any] = ACTIONS(613),
    [sym_zero] = ACTIONS(613),
    [sym_boundary] = ACTIONS(613),
    [sym_symbol_group] = ACTIONS(613),
    [anon_sym_LPAREN] = ACTIONS(611),
    [anon_sym_BQUOTE] = ACTIONS(613),
    [anon_sym_COMMA] = ACTIONS(611),
    [sym_colon] = ACTIONS(613),
    [sym_complement] = ACTIONS(613),
    [sym_term_complement] = ACTIONS(611),
    [sym_contains] = ACTIONS(613),
    [sym_plus] = ACTIONS(613),
    [sym_star] = ACTIONS(613),
    [sym_repeat] = ACTIONS(613),
    [sym_upper] = ACTIONS(613),
    [sym_lower] = ACTIONS(613),
    [sym_reverse] = ACTIONS(613),
    [sym_inverse] = ACTIONS(613),
    [sym_ignore] = ACTIONS(611),
    [sym_ignore_inside] = ACTIONS(613),
    [sym_union] = ACTIONS(611),
    [sym_intersect] = ACTIONS(613),
    [sym_subtract] = ACTIONS(611),
    [anon_sym_EQ_GT] = ACTIONS(613),
    [anon_sym_DASH_GT] = ACTIONS(611),
    [anon_sym_LT_DASH] = ACTIONS(613),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(613),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(613),
    [anon_sym_AT_DASH_GT] = ACTIONS(613),
    [anon_sym_DASH_GT_AT] = ACTIONS(613),
    [anon_sym_AT_GT] = ACTIONS(613),
    [anon_sym_GT_AT] = ACTIONS(613),
    [anon_sym_LBRACK_DOT] = ACTIONS(613),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(613),
    [anon_sym_PIPE_PIPE] = ACTIONS(613),
    [anon_sym_SLASH_SLASH] = ACTIONS(613),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(613),
    [anon_sym_BSLASH_SLASH] = ACTIONS(613),
    [anon_sym_COMMA_COMMA] = ACTIONS(613),
    [sym_crossproduct] = ACTIONS(613),
    [sym_compose] = ACTIONS(613),
    [sym_comment] = ACTIONS(3),
  },
  [392] = {
    [anon_sym_LBRACK] = ACTIONS(621),
    [anon_sym_RBRACK] = ACTIONS(623),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_RPAREN] = ACTIONS(623),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(621),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(621),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(621),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(621),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_DOT_RBRACK] = ACTIONS(623),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(623),
    [anon_sym_PIPE_PIPE] = ACTIONS(623),
    [anon_sym_SLASH_SLASH] = ACTIONS(623),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(623),
    [anon_sym_BSLASH_SLASH] = ACTIONS(623),
    [anon_sym_COMMA_COMMA] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [393] = {
    [anon_sym_LBRACK] = ACTIONS(628),
    [anon_sym_RBRACK] = ACTIONS(630),
    [sym_symbol] = ACTIONS(628),
    [sym_string] = ACTIONS(630),
    [sym_any] = ACTIONS(630),
    [sym_zero] = ACTIONS(630),
    [sym_boundary] = ACTIONS(630),
    [sym_symbol_group] = ACTIONS(630),
    [anon_sym_LPAREN] = ACTIONS(628),
    [anon_sym_RPAREN] = ACTIONS(630),
    [anon_sym_BQUOTE] = ACTIONS(630),
    [anon_sym_COMMA] = ACTIONS(628),
    [sym_colon] = ACTIONS(630),
    [sym_complement] = ACTIONS(630),
    [sym_term_complement] = ACTIONS(628),
    [sym_contains] = ACTIONS(630),
    [sym_plus] = ACTIONS(630),
    [sym_star] = ACTIONS(630),
    [sym_repeat] = ACTIONS(630),
    [sym_upper] = ACTIONS(630),
    [sym_lower] = ACTIONS(630),
    [sym_reverse] = ACTIONS(630),
    [sym_inverse] = ACTIONS(630),
    [sym_ignore] = ACTIONS(628),
    [sym_ignore_inside] = ACTIONS(630),
    [sym_union] = ACTIONS(628),
    [sym_intersect] = ACTIONS(630),
    [sym_subtract] = ACTIONS(628),
    [anon_sym_EQ_GT] = ACTIONS(630),
    [anon_sym_DASH_GT] = ACTIONS(628),
    [anon_sym_LT_DASH] = ACTIONS(630),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(630),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(630),
    [anon_sym_AT_DASH_GT] = ACTIONS(630),
    [anon_sym_DASH_GT_AT] = ACTIONS(630),
    [anon_sym_AT_GT] = ACTIONS(630),
    [anon_sym_GT_AT] = ACTIONS(630),
    [anon_sym_LBRACK_DOT] = ACTIONS(630),
    [anon_sym_DOT_RBRACK] = ACTIONS(630),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(630),
    [anon_sym_PIPE_PIPE] = ACTIONS(630),
    [anon_sym_SLASH_SLASH] = ACTIONS(630),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(630),
    [anon_sym_BSLASH_SLASH] = ACTIONS(630),
    [anon_sym_COMMA_COMMA] = ACTIONS(630),
    [sym_crossproduct] = ACTIONS(630),
    [sym_compose] = ACTIONS(630),
    [sym_comment] = ACTIONS(3),
  },
  [394] = {
    [anon_sym_LBRACK] = ACTIONS(73),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [395] = {
    [aux_sym_context_list_repeat1] = STATE(403),
    [anon_sym_LBRACK] = ACTIONS(615),
    [anon_sym_RBRACK] = ACTIONS(617),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_RPAREN] = ACTIONS(617),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(617),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(615),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(615),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(615),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_DOT_RBRACK] = ACTIONS(617),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(617),
    [anon_sym_PIPE_PIPE] = ACTIONS(617),
    [anon_sym_SLASH_SLASH] = ACTIONS(617),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(617),
    [anon_sym_BSLASH_SLASH] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [396] = {
    [aux_sym_context_list_repeat1] = STATE(396),
    [anon_sym_LBRACK] = ACTIONS(621),
    [anon_sym_RBRACK] = ACTIONS(623),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_RPAREN] = ACTIONS(623),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(632),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(621),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(621),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(621),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_DOT_RBRACK] = ACTIONS(623),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(623),
    [anon_sym_PIPE_PIPE] = ACTIONS(623),
    [anon_sym_SLASH_SLASH] = ACTIONS(623),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(623),
    [anon_sym_BSLASH_SLASH] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [397] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(425),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(537),
    [anon_sym_SLASH_SLASH] = ACTIONS(537),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(537),
    [anon_sym_BSLASH_SLASH] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(635),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [398] = {
    [anon_sym_LBRACK] = ACTIONS(637),
    [anon_sym_RBRACK] = ACTIONS(639),
    [sym_symbol] = ACTIONS(637),
    [sym_string] = ACTIONS(639),
    [sym_any] = ACTIONS(639),
    [sym_zero] = ACTIONS(639),
    [sym_boundary] = ACTIONS(639),
    [sym_symbol_group] = ACTIONS(639),
    [anon_sym_LPAREN] = ACTIONS(637),
    [anon_sym_RPAREN] = ACTIONS(639),
    [anon_sym_BQUOTE] = ACTIONS(639),
    [anon_sym_COMMA] = ACTIONS(637),
    [sym_colon] = ACTIONS(639),
    [sym_complement] = ACTIONS(639),
    [sym_term_complement] = ACTIONS(637),
    [sym_contains] = ACTIONS(639),
    [sym_plus] = ACTIONS(639),
    [sym_star] = ACTIONS(639),
    [sym_repeat] = ACTIONS(639),
    [sym_upper] = ACTIONS(639),
    [sym_lower] = ACTIONS(639),
    [sym_reverse] = ACTIONS(639),
    [sym_inverse] = ACTIONS(639),
    [sym_ignore] = ACTIONS(637),
    [sym_ignore_inside] = ACTIONS(639),
    [sym_union] = ACTIONS(637),
    [sym_intersect] = ACTIONS(639),
    [sym_subtract] = ACTIONS(637),
    [anon_sym_EQ_GT] = ACTIONS(639),
    [anon_sym_DASH_GT] = ACTIONS(637),
    [anon_sym_LT_DASH] = ACTIONS(639),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(639),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(639),
    [anon_sym_AT_DASH_GT] = ACTIONS(639),
    [anon_sym_DASH_GT_AT] = ACTIONS(639),
    [anon_sym_AT_GT] = ACTIONS(639),
    [anon_sym_GT_AT] = ACTIONS(639),
    [anon_sym_LBRACK_DOT] = ACTIONS(639),
    [anon_sym_DOT_RBRACK] = ACTIONS(639),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(639),
    [anon_sym_PIPE_PIPE] = ACTIONS(639),
    [anon_sym_SLASH_SLASH] = ACTIONS(639),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(639),
    [anon_sym_BSLASH_SLASH] = ACTIONS(639),
    [anon_sym_COMMA_COMMA] = ACTIONS(639),
    [sym_crossproduct] = ACTIONS(639),
    [sym_compose] = ACTIONS(639),
    [sym_comment] = ACTIONS(3),
  },
  [399] = {
    [aux_sym_parallel_replace_repeat1] = STATE(399),
    [anon_sym_LBRACK] = ACTIONS(471),
    [anon_sym_RBRACK] = ACTIONS(473),
    [sym_symbol] = ACTIONS(471),
    [sym_string] = ACTIONS(473),
    [sym_any] = ACTIONS(473),
    [sym_zero] = ACTIONS(473),
    [sym_boundary] = ACTIONS(473),
    [sym_symbol_group] = ACTIONS(473),
    [anon_sym_LPAREN] = ACTIONS(471),
    [anon_sym_RPAREN] = ACTIONS(473),
    [anon_sym_BQUOTE] = ACTIONS(473),
    [anon_sym_COMMA] = ACTIONS(641),
    [sym_colon] = ACTIONS(473),
    [sym_complement] = ACTIONS(473),
    [sym_term_complement] = ACTIONS(471),
    [sym_contains] = ACTIONS(473),
    [sym_plus] = ACTIONS(473),
    [sym_star] = ACTIONS(473),
    [sym_repeat] = ACTIONS(473),
    [sym_upper] = ACTIONS(473),
    [sym_lower] = ACTIONS(473),
    [sym_reverse] = ACTIONS(473),
    [sym_inverse] = ACTIONS(473),
    [sym_ignore] = ACTIONS(471),
    [sym_ignore_inside] = ACTIONS(473),
    [sym_union] = ACTIONS(471),
    [sym_intersect] = ACTIONS(473),
    [sym_subtract] = ACTIONS(471),
    [anon_sym_EQ_GT] = ACTIONS(473),
    [anon_sym_DASH_GT] = ACTIONS(471),
    [anon_sym_LT_DASH] = ACTIONS(473),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(473),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(473),
    [anon_sym_AT_DASH_GT] = ACTIONS(473),
    [anon_sym_DASH_GT_AT] = ACTIONS(473),
    [anon_sym_AT_GT] = ACTIONS(473),
    [anon_sym_GT_AT] = ACTIONS(473),
    [anon_sym_LBRACK_DOT] = ACTIONS(473),
    [anon_sym_DOT_RBRACK] = ACTIONS(473),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(473),
    [anon_sym_PIPE_PIPE] = ACTIONS(473),
    [anon_sym_SLASH_SLASH] = ACTIONS(473),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(473),
    [anon_sym_BSLASH_SLASH] = ACTIONS(473),
    [sym_crossproduct] = ACTIONS(473),
    [sym_compose] = ACTIONS(473),
    [sym_comment] = ACTIONS(3),
  },
  [400] = {
    [anon_sym_LBRACK] = ACTIONS(644),
    [anon_sym_RBRACK] = ACTIONS(646),
    [sym_symbol] = ACTIONS(644),
    [sym_string] = ACTIONS(646),
    [sym_any] = ACTIONS(646),
    [sym_zero] = ACTIONS(646),
    [sym_boundary] = ACTIONS(646),
    [sym_symbol_group] = ACTIONS(646),
    [anon_sym_LPAREN] = ACTIONS(644),
    [anon_sym_RPAREN] = ACTIONS(646),
    [anon_sym_BQUOTE] = ACTIONS(646),
    [anon_sym_COMMA] = ACTIONS(644),
    [sym_colon] = ACTIONS(646),
    [sym_complement] = ACTIONS(646),
    [sym_term_complement] = ACTIONS(644),
    [sym_contains] = ACTIONS(646),
    [sym_plus] = ACTIONS(646),
    [sym_star] = ACTIONS(646),
    [sym_repeat] = ACTIONS(646),
    [sym_upper] = ACTIONS(646),
    [sym_lower] = ACTIONS(646),
    [sym_reverse] = ACTIONS(646),
    [sym_inverse] = ACTIONS(646),
    [sym_ignore] = ACTIONS(644),
    [sym_ignore_inside] = ACTIONS(646),
    [sym_union] = ACTIONS(644),
    [sym_intersect] = ACTIONS(646),
    [sym_subtract] = ACTIONS(644),
    [anon_sym_EQ_GT] = ACTIONS(646),
    [anon_sym_DASH_GT] = ACTIONS(644),
    [anon_sym_LT_DASH] = ACTIONS(646),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(646),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(646),
    [anon_sym_AT_DASH_GT] = ACTIONS(646),
    [anon_sym_DASH_GT_AT] = ACTIONS(646),
    [anon_sym_AT_GT] = ACTIONS(646),
    [anon_sym_GT_AT] = ACTIONS(646),
    [anon_sym_LBRACK_DOT] = ACTIONS(646),
    [anon_sym_DOT_RBRACK] = ACTIONS(646),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(646),
    [anon_sym_PIPE_PIPE] = ACTIONS(646),
    [anon_sym_SLASH_SLASH] = ACTIONS(646),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(646),
    [anon_sym_BSLASH_SLASH] = ACTIONS(646),
    [anon_sym_COMMA_COMMA] = ACTIONS(646),
    [sym_crossproduct] = ACTIONS(646),
    [sym_compose] = ACTIONS(646),
    [sym_comment] = ACTIONS(3),
  },
  [401] = {
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(53),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [402] = {
    [sym_condition_operators] = STATE(657),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [403] = {
    [aux_sym_context_list_repeat1] = STATE(396),
    [anon_sym_LBRACK] = ACTIONS(607),
    [anon_sym_RBRACK] = ACTIONS(609),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_RPAREN] = ACTIONS(609),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(609),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(607),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(607),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(607),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_DOT_RBRACK] = ACTIONS(609),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(609),
    [anon_sym_PIPE_PIPE] = ACTIONS(609),
    [anon_sym_SLASH_SLASH] = ACTIONS(609),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(609),
    [anon_sym_BSLASH_SLASH] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [404] = {
    [sym_condition_operators] = STATE(657),
    [aux_sym_parallel_replace_repeat1] = STATE(453),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(648),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [405] = {
    [aux_sym_context_list_repeat1] = STATE(405),
    [ts_builtin_sym_end] = ACTIONS(623),
    [sym_semicolon] = ACTIONS(621),
    [anon_sym_LBRACK] = ACTIONS(621),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(650),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(621),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(621),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(621),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(623),
    [anon_sym_PIPE_PIPE] = ACTIONS(623),
    [anon_sym_SLASH_SLASH] = ACTIONS(623),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(623),
    [anon_sym_BSLASH_SLASH] = ACTIONS(623),
    [anon_sym_COMMA_COMMA] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [406] = {
    [sym_condition_operators] = STATE(678),
    [aux_sym_parallel_replace_repeat1] = STATE(443),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(653),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [407] = {
    [anon_sym_LBRACK] = ACTIONS(655),
    [anon_sym_RBRACK] = ACTIONS(657),
    [sym_symbol] = ACTIONS(655),
    [sym_string] = ACTIONS(657),
    [sym_any] = ACTIONS(657),
    [sym_zero] = ACTIONS(657),
    [sym_boundary] = ACTIONS(657),
    [sym_symbol_group] = ACTIONS(657),
    [anon_sym_LPAREN] = ACTIONS(655),
    [anon_sym_RPAREN] = ACTIONS(657),
    [anon_sym_BQUOTE] = ACTIONS(657),
    [anon_sym_COMMA] = ACTIONS(655),
    [sym_colon] = ACTIONS(657),
    [sym_complement] = ACTIONS(657),
    [sym_term_complement] = ACTIONS(655),
    [sym_contains] = ACTIONS(657),
    [sym_plus] = ACTIONS(657),
    [sym_star] = ACTIONS(657),
    [sym_repeat] = ACTIONS(657),
    [sym_upper] = ACTIONS(657),
    [sym_lower] = ACTIONS(657),
    [sym_reverse] = ACTIONS(657),
    [sym_inverse] = ACTIONS(657),
    [sym_ignore] = ACTIONS(655),
    [sym_ignore_inside] = ACTIONS(657),
    [sym_union] = ACTIONS(655),
    [sym_intersect] = ACTIONS(657),
    [sym_subtract] = ACTIONS(655),
    [anon_sym_EQ_GT] = ACTIONS(657),
    [anon_sym_DASH_GT] = ACTIONS(655),
    [anon_sym_LT_DASH] = ACTIONS(657),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(657),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(657),
    [anon_sym_AT_DASH_GT] = ACTIONS(657),
    [anon_sym_DASH_GT_AT] = ACTIONS(657),
    [anon_sym_AT_GT] = ACTIONS(657),
    [anon_sym_GT_AT] = ACTIONS(657),
    [anon_sym_LBRACK_DOT] = ACTIONS(657),
    [anon_sym_DOT_RBRACK] = ACTIONS(657),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(657),
    [anon_sym_PIPE_PIPE] = ACTIONS(657),
    [anon_sym_SLASH_SLASH] = ACTIONS(657),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(657),
    [anon_sym_BSLASH_SLASH] = ACTIONS(657),
    [anon_sym_COMMA_COMMA] = ACTIONS(657),
    [sym_crossproduct] = ACTIONS(657),
    [sym_compose] = ACTIONS(657),
    [sym_comment] = ACTIONS(3),
  },
  [408] = {
    [anon_sym_LBRACK] = ACTIONS(659),
    [anon_sym_RBRACK] = ACTIONS(661),
    [sym_symbol] = ACTIONS(659),
    [sym_string] = ACTIONS(661),
    [sym_any] = ACTIONS(661),
    [sym_zero] = ACTIONS(661),
    [sym_boundary] = ACTIONS(661),
    [sym_symbol_group] = ACTIONS(661),
    [anon_sym_LPAREN] = ACTIONS(659),
    [anon_sym_RPAREN] = ACTIONS(661),
    [anon_sym_BQUOTE] = ACTIONS(661),
    [anon_sym_COMMA] = ACTIONS(659),
    [sym_colon] = ACTIONS(661),
    [sym_complement] = ACTIONS(661),
    [sym_term_complement] = ACTIONS(659),
    [sym_contains] = ACTIONS(661),
    [sym_plus] = ACTIONS(661),
    [sym_star] = ACTIONS(661),
    [sym_repeat] = ACTIONS(661),
    [sym_upper] = ACTIONS(661),
    [sym_lower] = ACTIONS(661),
    [sym_reverse] = ACTIONS(661),
    [sym_inverse] = ACTIONS(661),
    [sym_ignore] = ACTIONS(659),
    [sym_ignore_inside] = ACTIONS(661),
    [sym_union] = ACTIONS(659),
    [sym_intersect] = ACTIONS(661),
    [sym_subtract] = ACTIONS(659),
    [anon_sym_EQ_GT] = ACTIONS(661),
    [anon_sym_DASH_GT] = ACTIONS(659),
    [anon_sym_LT_DASH] = ACTIONS(661),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(661),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(661),
    [anon_sym_AT_DASH_GT] = ACTIONS(661),
    [anon_sym_DASH_GT_AT] = ACTIONS(661),
    [anon_sym_AT_GT] = ACTIONS(661),
    [anon_sym_GT_AT] = ACTIONS(661),
    [anon_sym_LBRACK_DOT] = ACTIONS(661),
    [anon_sym_DOT_RBRACK] = ACTIONS(661),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(661),
    [anon_sym_PIPE_PIPE] = ACTIONS(661),
    [anon_sym_SLASH_SLASH] = ACTIONS(661),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(661),
    [anon_sym_BSLASH_SLASH] = ACTIONS(661),
    [anon_sym_COMMA_COMMA] = ACTIONS(661),
    [sym_crossproduct] = ACTIONS(661),
    [sym_compose] = ACTIONS(661),
    [sym_comment] = ACTIONS(3),
  },
  [409] = {
    [aux_sym_context_list_repeat1] = STATE(427),
    [anon_sym_LBRACK] = ACTIONS(615),
    [anon_sym_RBRACK] = ACTIONS(617),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_RPAREN] = ACTIONS(617),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(615),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(615),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(615),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(615),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_DOT_RBRACK] = ACTIONS(617),
    [anon_sym_PIPE_PIPE] = ACTIONS(617),
    [anon_sym_SLASH_SLASH] = ACTIONS(617),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(617),
    [anon_sym_BSLASH_SLASH] = ACTIONS(617),
    [anon_sym_COMMA_COMMA] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [410] = {
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(53),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [411] = {
    [aux_sym_context_list_repeat1] = STATE(421),
    [ts_builtin_sym_end] = ACTIONS(617),
    [sym_semicolon] = ACTIONS(615),
    [anon_sym_LBRACK] = ACTIONS(615),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(615),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(615),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(615),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(615),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(617),
    [anon_sym_PIPE_PIPE] = ACTIONS(617),
    [anon_sym_SLASH_SLASH] = ACTIONS(617),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(617),
    [anon_sym_BSLASH_SLASH] = ACTIONS(617),
    [anon_sym_COMMA_COMMA] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [412] = {
    [sym_condition_operators] = STATE(646),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [413] = {
    [aux_sym_parallel_replace_repeat1] = STATE(399),
    [anon_sym_LBRACK] = ACTIONS(611),
    [anon_sym_RBRACK] = ACTIONS(613),
    [sym_symbol] = ACTIONS(611),
    [sym_string] = ACTIONS(613),
    [sym_any] = ACTIONS(613),
    [sym_zero] = ACTIONS(613),
    [sym_boundary] = ACTIONS(613),
    [sym_symbol_group] = ACTIONS(613),
    [anon_sym_LPAREN] = ACTIONS(611),
    [anon_sym_RPAREN] = ACTIONS(613),
    [anon_sym_BQUOTE] = ACTIONS(613),
    [anon_sym_COMMA] = ACTIONS(613),
    [sym_colon] = ACTIONS(613),
    [sym_complement] = ACTIONS(613),
    [sym_term_complement] = ACTIONS(611),
    [sym_contains] = ACTIONS(613),
    [sym_plus] = ACTIONS(613),
    [sym_star] = ACTIONS(613),
    [sym_repeat] = ACTIONS(613),
    [sym_upper] = ACTIONS(613),
    [sym_lower] = ACTIONS(613),
    [sym_reverse] = ACTIONS(613),
    [sym_inverse] = ACTIONS(613),
    [sym_ignore] = ACTIONS(611),
    [sym_ignore_inside] = ACTIONS(613),
    [sym_union] = ACTIONS(611),
    [sym_intersect] = ACTIONS(613),
    [sym_subtract] = ACTIONS(611),
    [anon_sym_EQ_GT] = ACTIONS(613),
    [anon_sym_DASH_GT] = ACTIONS(611),
    [anon_sym_LT_DASH] = ACTIONS(613),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(613),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(613),
    [anon_sym_AT_DASH_GT] = ACTIONS(613),
    [anon_sym_DASH_GT_AT] = ACTIONS(613),
    [anon_sym_AT_GT] = ACTIONS(613),
    [anon_sym_GT_AT] = ACTIONS(613),
    [anon_sym_LBRACK_DOT] = ACTIONS(613),
    [anon_sym_DOT_RBRACK] = ACTIONS(613),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(613),
    [anon_sym_PIPE_PIPE] = ACTIONS(613),
    [anon_sym_SLASH_SLASH] = ACTIONS(613),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(613),
    [anon_sym_BSLASH_SLASH] = ACTIONS(613),
    [sym_crossproduct] = ACTIONS(613),
    [sym_compose] = ACTIONS(613),
    [sym_comment] = ACTIONS(3),
  },
  [414] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(414),
    [anon_sym_LBRACK] = ACTIONS(587),
    [anon_sym_RBRACK] = ACTIONS(589),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_RPAREN] = ACTIONS(589),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [anon_sym_COMMA] = ACTIONS(587),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(587),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(587),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(587),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_DOT_RBRACK] = ACTIONS(589),
    [anon_sym_PIPE_PIPE] = ACTIONS(589),
    [anon_sym_SLASH_SLASH] = ACTIONS(589),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(589),
    [anon_sym_BSLASH_SLASH] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(663),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [415] = {
    [sym_condition_operators] = STATE(651),
    [aux_sym_parallel_replace_repeat1] = STATE(453),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(648),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [416] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(414),
    [anon_sym_LBRACK] = ACTIONS(591),
    [anon_sym_RBRACK] = ACTIONS(593),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_RPAREN] = ACTIONS(593),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(591),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(591),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(591),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_DOT_RBRACK] = ACTIONS(593),
    [anon_sym_PIPE_PIPE] = ACTIONS(593),
    [anon_sym_SLASH_SLASH] = ACTIONS(593),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(593),
    [anon_sym_BSLASH_SLASH] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(666),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [417] = {
    [aux_sym_parallel_replace_repeat1] = STATE(417),
    [anon_sym_LBRACK] = ACTIONS(471),
    [anon_sym_RBRACK] = ACTIONS(473),
    [sym_symbol] = ACTIONS(471),
    [sym_string] = ACTIONS(473),
    [sym_any] = ACTIONS(473),
    [sym_zero] = ACTIONS(473),
    [sym_boundary] = ACTIONS(473),
    [sym_symbol_group] = ACTIONS(473),
    [anon_sym_LPAREN] = ACTIONS(471),
    [anon_sym_RPAREN] = ACTIONS(473),
    [anon_sym_BQUOTE] = ACTIONS(473),
    [anon_sym_COMMA] = ACTIONS(668),
    [sym_colon] = ACTIONS(473),
    [sym_complement] = ACTIONS(473),
    [sym_term_complement] = ACTIONS(471),
    [sym_contains] = ACTIONS(473),
    [sym_plus] = ACTIONS(473),
    [sym_star] = ACTIONS(473),
    [sym_repeat] = ACTIONS(473),
    [sym_upper] = ACTIONS(473),
    [sym_lower] = ACTIONS(473),
    [sym_reverse] = ACTIONS(473),
    [sym_inverse] = ACTIONS(473),
    [sym_ignore] = ACTIONS(471),
    [sym_ignore_inside] = ACTIONS(473),
    [sym_union] = ACTIONS(471),
    [sym_intersect] = ACTIONS(473),
    [sym_subtract] = ACTIONS(471),
    [anon_sym_EQ_GT] = ACTIONS(473),
    [anon_sym_DASH_GT] = ACTIONS(471),
    [anon_sym_LT_DASH] = ACTIONS(473),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(473),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(473),
    [anon_sym_AT_DASH_GT] = ACTIONS(473),
    [anon_sym_DASH_GT_AT] = ACTIONS(473),
    [anon_sym_AT_GT] = ACTIONS(473),
    [anon_sym_GT_AT] = ACTIONS(473),
    [anon_sym_LBRACK_DOT] = ACTIONS(473),
    [anon_sym_DOT_RBRACK] = ACTIONS(473),
    [anon_sym_PIPE_PIPE] = ACTIONS(473),
    [anon_sym_SLASH_SLASH] = ACTIONS(473),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(473),
    [anon_sym_BSLASH_SLASH] = ACTIONS(473),
    [anon_sym_COMMA_COMMA] = ACTIONS(473),
    [sym_crossproduct] = ACTIONS(473),
    [sym_compose] = ACTIONS(473),
    [sym_comment] = ACTIONS(3),
  },
  [418] = {
    [sym_condition_operators] = STATE(651),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [419] = {
    [aux_sym_parallel_replace_repeat1] = STATE(417),
    [anon_sym_LBRACK] = ACTIONS(611),
    [anon_sym_RBRACK] = ACTIONS(613),
    [sym_symbol] = ACTIONS(611),
    [sym_string] = ACTIONS(613),
    [sym_any] = ACTIONS(613),
    [sym_zero] = ACTIONS(613),
    [sym_boundary] = ACTIONS(613),
    [sym_symbol_group] = ACTIONS(613),
    [anon_sym_LPAREN] = ACTIONS(611),
    [anon_sym_RPAREN] = ACTIONS(613),
    [anon_sym_BQUOTE] = ACTIONS(613),
    [anon_sym_COMMA] = ACTIONS(611),
    [sym_colon] = ACTIONS(613),
    [sym_complement] = ACTIONS(613),
    [sym_term_complement] = ACTIONS(611),
    [sym_contains] = ACTIONS(613),
    [sym_plus] = ACTIONS(613),
    [sym_star] = ACTIONS(613),
    [sym_repeat] = ACTIONS(613),
    [sym_upper] = ACTIONS(613),
    [sym_lower] = ACTIONS(613),
    [sym_reverse] = ACTIONS(613),
    [sym_inverse] = ACTIONS(613),
    [sym_ignore] = ACTIONS(611),
    [sym_ignore_inside] = ACTIONS(613),
    [sym_union] = ACTIONS(611),
    [sym_intersect] = ACTIONS(613),
    [sym_subtract] = ACTIONS(611),
    [anon_sym_EQ_GT] = ACTIONS(613),
    [anon_sym_DASH_GT] = ACTIONS(611),
    [anon_sym_LT_DASH] = ACTIONS(613),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(613),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(613),
    [anon_sym_AT_DASH_GT] = ACTIONS(613),
    [anon_sym_DASH_GT_AT] = ACTIONS(613),
    [anon_sym_AT_GT] = ACTIONS(613),
    [anon_sym_GT_AT] = ACTIONS(613),
    [anon_sym_LBRACK_DOT] = ACTIONS(613),
    [anon_sym_DOT_RBRACK] = ACTIONS(613),
    [anon_sym_PIPE_PIPE] = ACTIONS(613),
    [anon_sym_SLASH_SLASH] = ACTIONS(613),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(613),
    [anon_sym_BSLASH_SLASH] = ACTIONS(613),
    [anon_sym_COMMA_COMMA] = ACTIONS(613),
    [sym_crossproduct] = ACTIONS(613),
    [sym_compose] = ACTIONS(613),
    [sym_comment] = ACTIONS(3),
  },
  [420] = {
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(537),
    [anon_sym_SLASH_SLASH] = ACTIONS(537),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(537),
    [anon_sym_BSLASH_SLASH] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [421] = {
    [aux_sym_context_list_repeat1] = STATE(405),
    [ts_builtin_sym_end] = ACTIONS(609),
    [sym_semicolon] = ACTIONS(607),
    [anon_sym_LBRACK] = ACTIONS(607),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(607),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(607),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(607),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(607),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(609),
    [anon_sym_PIPE_PIPE] = ACTIONS(609),
    [anon_sym_SLASH_SLASH] = ACTIONS(609),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(609),
    [anon_sym_BSLASH_SLASH] = ACTIONS(609),
    [anon_sym_COMMA_COMMA] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [422] = {
    [sym_condition_operators] = STATE(664),
    [aux_sym_parallel_replace_repeat1] = STATE(472),
    [anon_sym_LBRACK] = ACTIONS(471),
    [sym_symbol] = ACTIONS(471),
    [sym_string] = ACTIONS(473),
    [sym_any] = ACTIONS(473),
    [sym_zero] = ACTIONS(473),
    [sym_boundary] = ACTIONS(473),
    [sym_symbol_group] = ACTIONS(473),
    [anon_sym_LPAREN] = ACTIONS(471),
    [anon_sym_BQUOTE] = ACTIONS(473),
    [anon_sym_COMMA] = ACTIONS(471),
    [sym_colon] = ACTIONS(473),
    [sym_complement] = ACTIONS(473),
    [sym_term_complement] = ACTIONS(471),
    [sym_contains] = ACTIONS(473),
    [sym_plus] = ACTIONS(473),
    [sym_star] = ACTIONS(473),
    [sym_repeat] = ACTIONS(473),
    [sym_upper] = ACTIONS(473),
    [sym_lower] = ACTIONS(473),
    [sym_reverse] = ACTIONS(473),
    [sym_inverse] = ACTIONS(473),
    [sym_ignore] = ACTIONS(471),
    [sym_ignore_inside] = ACTIONS(473),
    [sym_union] = ACTIONS(471),
    [sym_intersect] = ACTIONS(473),
    [sym_subtract] = ACTIONS(471),
    [anon_sym__] = ACTIONS(471),
    [anon_sym_EQ_GT] = ACTIONS(473),
    [anon_sym_DASH_GT] = ACTIONS(471),
    [anon_sym_LT_DASH] = ACTIONS(473),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(473),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(473),
    [anon_sym_AT_DASH_GT] = ACTIONS(473),
    [anon_sym_DASH_GT_AT] = ACTIONS(473),
    [anon_sym_AT_GT] = ACTIONS(473),
    [anon_sym_GT_AT] = ACTIONS(473),
    [anon_sym_LBRACK_DOT] = ACTIONS(473),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(473),
    [anon_sym_PIPE_PIPE] = ACTIONS(473),
    [anon_sym_SLASH_SLASH] = ACTIONS(473),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(473),
    [anon_sym_BSLASH_SLASH] = ACTIONS(473),
    [anon_sym_COMMA_COMMA] = ACTIONS(473),
    [sym_crossproduct] = ACTIONS(473),
    [sym_compose] = ACTIONS(473),
    [sym_comment] = ACTIONS(3),
  },
  [423] = {
    [sym_condition_operators] = STATE(664),
    [aux_sym_parallel_replace_repeat1] = STATE(472),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(648),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [424] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(573),
    [ts_builtin_sym_end] = ACTIONS(589),
    [sym_semicolon] = ACTIONS(587),
    [anon_sym_LBRACK] = ACTIONS(587),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [anon_sym_COMMA] = ACTIONS(587),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(587),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(587),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(587),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(589),
    [anon_sym_PIPE_PIPE] = ACTIONS(589),
    [anon_sym_SLASH_SLASH] = ACTIONS(589),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(589),
    [anon_sym_BSLASH_SLASH] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(589),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [425] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(432),
    [ts_builtin_sym_end] = ACTIONS(593),
    [sym_semicolon] = ACTIONS(591),
    [anon_sym_LBRACK] = ACTIONS(591),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(591),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(591),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(591),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(593),
    [anon_sym_PIPE_PIPE] = ACTIONS(593),
    [anon_sym_SLASH_SLASH] = ACTIONS(593),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(593),
    [anon_sym_BSLASH_SLASH] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(635),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [426] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(434),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(537),
    [anon_sym_SLASH_SLASH] = ACTIONS(537),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(537),
    [anon_sym_BSLASH_SLASH] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(666),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [427] = {
    [aux_sym_context_list_repeat1] = STATE(428),
    [anon_sym_LBRACK] = ACTIONS(607),
    [anon_sym_RBRACK] = ACTIONS(609),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_RPAREN] = ACTIONS(609),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(607),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(607),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(607),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(607),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_DOT_RBRACK] = ACTIONS(609),
    [anon_sym_PIPE_PIPE] = ACTIONS(609),
    [anon_sym_SLASH_SLASH] = ACTIONS(609),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(609),
    [anon_sym_BSLASH_SLASH] = ACTIONS(609),
    [anon_sym_COMMA_COMMA] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [428] = {
    [aux_sym_context_list_repeat1] = STATE(428),
    [anon_sym_LBRACK] = ACTIONS(621),
    [anon_sym_RBRACK] = ACTIONS(623),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_RPAREN] = ACTIONS(623),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(671),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(621),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(621),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(621),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_DOT_RBRACK] = ACTIONS(623),
    [anon_sym_PIPE_PIPE] = ACTIONS(623),
    [anon_sym_SLASH_SLASH] = ACTIONS(623),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(623),
    [anon_sym_BSLASH_SLASH] = ACTIONS(623),
    [anon_sym_COMMA_COMMA] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [429] = {
    [sym_condition_operators] = STATE(660),
    [aux_sym_parallel_replace_repeat1] = STATE(443),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(653),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [430] = {
    [sym_condition_operators] = STATE(674),
    [aux_sym_parallel_replace_repeat1] = STATE(471),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(674),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [431] = {
    [anon_sym_LBRACK] = ACTIONS(676),
    [anon_sym_RBRACK] = ACTIONS(678),
    [sym_symbol] = ACTIONS(676),
    [sym_string] = ACTIONS(678),
    [sym_any] = ACTIONS(678),
    [sym_zero] = ACTIONS(678),
    [sym_boundary] = ACTIONS(678),
    [sym_symbol_group] = ACTIONS(678),
    [anon_sym_LPAREN] = ACTIONS(676),
    [anon_sym_RPAREN] = ACTIONS(678),
    [anon_sym_BQUOTE] = ACTIONS(678),
    [anon_sym_COMMA] = ACTIONS(676),
    [sym_colon] = ACTIONS(678),
    [sym_complement] = ACTIONS(678),
    [sym_term_complement] = ACTIONS(676),
    [sym_contains] = ACTIONS(678),
    [sym_plus] = ACTIONS(678),
    [sym_star] = ACTIONS(678),
    [sym_repeat] = ACTIONS(678),
    [sym_upper] = ACTIONS(678),
    [sym_lower] = ACTIONS(678),
    [sym_reverse] = ACTIONS(678),
    [sym_inverse] = ACTIONS(678),
    [sym_ignore] = ACTIONS(676),
    [sym_ignore_inside] = ACTIONS(678),
    [sym_union] = ACTIONS(676),
    [sym_intersect] = ACTIONS(678),
    [sym_subtract] = ACTIONS(676),
    [anon_sym_EQ_GT] = ACTIONS(678),
    [anon_sym_DASH_GT] = ACTIONS(676),
    [anon_sym_LT_DASH] = ACTIONS(678),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(678),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(678),
    [anon_sym_AT_DASH_GT] = ACTIONS(678),
    [anon_sym_DASH_GT_AT] = ACTIONS(678),
    [anon_sym_AT_GT] = ACTIONS(678),
    [anon_sym_GT_AT] = ACTIONS(678),
    [anon_sym_LBRACK_DOT] = ACTIONS(678),
    [anon_sym_DOT_RBRACK] = ACTIONS(678),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(678),
    [anon_sym_PIPE_PIPE] = ACTIONS(678),
    [anon_sym_SLASH_SLASH] = ACTIONS(678),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(678),
    [anon_sym_BSLASH_SLASH] = ACTIONS(678),
    [anon_sym_COMMA_COMMA] = ACTIONS(678),
    [sym_crossproduct] = ACTIONS(678),
    [sym_compose] = ACTIONS(678),
    [sym_comment] = ACTIONS(3),
  },
  [432] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(432),
    [ts_builtin_sym_end] = ACTIONS(589),
    [sym_semicolon] = ACTIONS(587),
    [anon_sym_LBRACK] = ACTIONS(587),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [anon_sym_COMMA] = ACTIONS(587),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(587),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(587),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(587),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(589),
    [anon_sym_PIPE_PIPE] = ACTIONS(589),
    [anon_sym_SLASH_SLASH] = ACTIONS(589),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(589),
    [anon_sym_BSLASH_SLASH] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(680),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [433] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(416),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(537),
    [anon_sym_SLASH_SLASH] = ACTIONS(537),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(537),
    [anon_sym_BSLASH_SLASH] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(666),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [434] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(414),
    [anon_sym_LBRACK] = ACTIONS(591),
    [anon_sym_RBRACK] = ACTIONS(593),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_RPAREN] = ACTIONS(593),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(591),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(591),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(591),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_DOT_RBRACK] = ACTIONS(593),
    [anon_sym_PIPE_PIPE] = ACTIONS(593),
    [anon_sym_SLASH_SLASH] = ACTIONS(593),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(593),
    [anon_sym_BSLASH_SLASH] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(593),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [435] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(432),
    [ts_builtin_sym_end] = ACTIONS(593),
    [sym_semicolon] = ACTIONS(591),
    [anon_sym_LBRACK] = ACTIONS(591),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(591),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(591),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(591),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(593),
    [anon_sym_PIPE_PIPE] = ACTIONS(593),
    [anon_sym_SLASH_SLASH] = ACTIONS(593),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(593),
    [anon_sym_BSLASH_SLASH] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(593),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [436] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(435),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(537),
    [anon_sym_SLASH_SLASH] = ACTIONS(537),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(537),
    [anon_sym_BSLASH_SLASH] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(635),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [437] = {
    [sym_condition_operators] = STATE(646),
    [aux_sym_parallel_replace_repeat1] = STATE(465),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(683),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [438] = {
    [aux_sym_parallel_replace_repeat1] = STATE(438),
    [ts_builtin_sym_end] = ACTIONS(473),
    [sym_semicolon] = ACTIONS(471),
    [anon_sym_LBRACK] = ACTIONS(471),
    [sym_symbol] = ACTIONS(471),
    [sym_string] = ACTIONS(473),
    [sym_any] = ACTIONS(473),
    [sym_zero] = ACTIONS(473),
    [sym_boundary] = ACTIONS(473),
    [sym_symbol_group] = ACTIONS(473),
    [anon_sym_LPAREN] = ACTIONS(471),
    [anon_sym_BQUOTE] = ACTIONS(473),
    [anon_sym_COMMA] = ACTIONS(685),
    [sym_colon] = ACTIONS(473),
    [sym_complement] = ACTIONS(473),
    [sym_term_complement] = ACTIONS(471),
    [sym_contains] = ACTIONS(473),
    [sym_plus] = ACTIONS(473),
    [sym_star] = ACTIONS(473),
    [sym_repeat] = ACTIONS(473),
    [sym_upper] = ACTIONS(473),
    [sym_lower] = ACTIONS(473),
    [sym_reverse] = ACTIONS(473),
    [sym_inverse] = ACTIONS(473),
    [sym_ignore] = ACTIONS(471),
    [sym_ignore_inside] = ACTIONS(473),
    [sym_union] = ACTIONS(471),
    [sym_intersect] = ACTIONS(473),
    [sym_subtract] = ACTIONS(471),
    [anon_sym_EQ_GT] = ACTIONS(473),
    [anon_sym_DASH_GT] = ACTIONS(471),
    [anon_sym_LT_DASH] = ACTIONS(473),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(473),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(473),
    [anon_sym_AT_DASH_GT] = ACTIONS(473),
    [anon_sym_DASH_GT_AT] = ACTIONS(473),
    [anon_sym_AT_GT] = ACTIONS(473),
    [anon_sym_GT_AT] = ACTIONS(473),
    [anon_sym_LBRACK_DOT] = ACTIONS(473),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(473),
    [anon_sym_PIPE_PIPE] = ACTIONS(473),
    [anon_sym_SLASH_SLASH] = ACTIONS(473),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(473),
    [anon_sym_BSLASH_SLASH] = ACTIONS(473),
    [anon_sym_COMMA_COMMA] = ACTIONS(473),
    [sym_crossproduct] = ACTIONS(473),
    [sym_compose] = ACTIONS(473),
    [sym_comment] = ACTIONS(3),
  },
  [439] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(450),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(537),
    [anon_sym_SLASH_SLASH] = ACTIONS(537),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(537),
    [anon_sym_BSLASH_SLASH] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(688),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [440] = {
    [sym_condition_operators] = STATE(674),
    [aux_sym_parallel_replace_repeat1] = STATE(525),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(690),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [441] = {
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(53),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [442] = {
    [aux_sym_context_list_repeat1] = STATE(442),
    [anon_sym_LBRACK] = ACTIONS(621),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(692),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(621),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(621),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(621),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym__] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(623),
    [anon_sym_PIPE_PIPE] = ACTIONS(623),
    [anon_sym_SLASH_SLASH] = ACTIONS(623),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(623),
    [anon_sym_BSLASH_SLASH] = ACTIONS(623),
    [anon_sym_COMMA_COMMA] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [443] = {
    [aux_sym_parallel_replace_repeat1] = STATE(490),
    [ts_builtin_sym_end] = ACTIONS(613),
    [sym_semicolon] = ACTIONS(611),
    [anon_sym_LBRACK] = ACTIONS(611),
    [sym_symbol] = ACTIONS(611),
    [sym_string] = ACTIONS(613),
    [sym_any] = ACTIONS(613),
    [sym_zero] = ACTIONS(613),
    [sym_boundary] = ACTIONS(613),
    [sym_symbol_group] = ACTIONS(613),
    [anon_sym_LPAREN] = ACTIONS(611),
    [anon_sym_BQUOTE] = ACTIONS(613),
    [anon_sym_COMMA] = ACTIONS(611),
    [sym_colon] = ACTIONS(613),
    [sym_complement] = ACTIONS(613),
    [sym_term_complement] = ACTIONS(611),
    [sym_contains] = ACTIONS(613),
    [sym_plus] = ACTIONS(613),
    [sym_star] = ACTIONS(613),
    [sym_repeat] = ACTIONS(613),
    [sym_upper] = ACTIONS(613),
    [sym_lower] = ACTIONS(613),
    [sym_reverse] = ACTIONS(613),
    [sym_inverse] = ACTIONS(613),
    [sym_ignore] = ACTIONS(611),
    [sym_ignore_inside] = ACTIONS(613),
    [sym_union] = ACTIONS(611),
    [sym_intersect] = ACTIONS(613),
    [sym_subtract] = ACTIONS(611),
    [anon_sym_EQ_GT] = ACTIONS(613),
    [anon_sym_DASH_GT] = ACTIONS(611),
    [anon_sym_LT_DASH] = ACTIONS(613),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(613),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(613),
    [anon_sym_AT_DASH_GT] = ACTIONS(613),
    [anon_sym_DASH_GT_AT] = ACTIONS(613),
    [anon_sym_AT_GT] = ACTIONS(613),
    [anon_sym_GT_AT] = ACTIONS(613),
    [anon_sym_LBRACK_DOT] = ACTIONS(613),
    [anon_sym_PIPE_PIPE] = ACTIONS(613),
    [anon_sym_SLASH_SLASH] = ACTIONS(613),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(613),
    [anon_sym_BSLASH_SLASH] = ACTIONS(613),
    [anon_sym_COMMA_COMMA] = ACTIONS(613),
    [sym_crossproduct] = ACTIONS(613),
    [sym_compose] = ACTIONS(613),
    [sym_comment] = ACTIONS(3),
  },
  [444] = {
    [aux_sym_context_list_repeat1] = STATE(446),
    [anon_sym_LBRACK] = ACTIONS(615),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(615),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(615),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(615),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(615),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym__] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(617),
    [anon_sym_PIPE_PIPE] = ACTIONS(617),
    [anon_sym_SLASH_SLASH] = ACTIONS(617),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(617),
    [anon_sym_BSLASH_SLASH] = ACTIONS(617),
    [anon_sym_COMMA_COMMA] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [445] = {
    [sym_condition_operators] = STATE(678),
    [aux_sym_parallel_replace_repeat1] = STATE(527),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(695),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [446] = {
    [aux_sym_context_list_repeat1] = STATE(442),
    [anon_sym_LBRACK] = ACTIONS(607),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(607),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(607),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(607),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(607),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym__] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(609),
    [anon_sym_PIPE_PIPE] = ACTIONS(609),
    [anon_sym_SLASH_SLASH] = ACTIONS(609),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(609),
    [anon_sym_BSLASH_SLASH] = ACTIONS(609),
    [anon_sym_COMMA_COMMA] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [447] = {
    [sym_condition_operators] = STATE(656),
    [aux_sym_parallel_replace_repeat1] = STATE(501),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(697),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [448] = {
    [aux_sym_context_list_repeat1] = STATE(451),
    [anon_sym_LBRACK] = ACTIONS(607),
    [anon_sym_RBRACK] = ACTIONS(609),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_RPAREN] = ACTIONS(609),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(609),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(607),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(607),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(607),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_DOT_RBRACK] = ACTIONS(609),
    [anon_sym_PIPE_PIPE] = ACTIONS(609),
    [anon_sym_SLASH_SLASH] = ACTIONS(609),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(609),
    [anon_sym_BSLASH_SLASH] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [449] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(457),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(537),
    [anon_sym_SLASH_SLASH] = ACTIONS(537),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(537),
    [anon_sym_BSLASH_SLASH] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(699),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [450] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(483),
    [anon_sym_LBRACK] = ACTIONS(591),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(591),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(591),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(591),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym__] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(593),
    [anon_sym_PIPE_PIPE] = ACTIONS(593),
    [anon_sym_SLASH_SLASH] = ACTIONS(593),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(593),
    [anon_sym_BSLASH_SLASH] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(593),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [451] = {
    [aux_sym_context_list_repeat1] = STATE(451),
    [anon_sym_LBRACK] = ACTIONS(621),
    [anon_sym_RBRACK] = ACTIONS(623),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_RPAREN] = ACTIONS(623),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(701),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(621),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(621),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(621),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_DOT_RBRACK] = ACTIONS(623),
    [anon_sym_PIPE_PIPE] = ACTIONS(623),
    [anon_sym_SLASH_SLASH] = ACTIONS(623),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(623),
    [anon_sym_BSLASH_SLASH] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [452] = {
    [aux_sym_context_list_repeat1] = STATE(452),
    [ts_builtin_sym_end] = ACTIONS(623),
    [sym_semicolon] = ACTIONS(621),
    [anon_sym_LBRACK] = ACTIONS(621),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(704),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(621),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(621),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(621),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(623),
    [anon_sym_PIPE_PIPE] = ACTIONS(623),
    [anon_sym_SLASH_SLASH] = ACTIONS(623),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(623),
    [anon_sym_BSLASH_SLASH] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [453] = {
    [aux_sym_parallel_replace_repeat1] = STATE(479),
    [anon_sym_LBRACK] = ACTIONS(611),
    [anon_sym_RBRACK] = ACTIONS(613),
    [sym_symbol] = ACTIONS(611),
    [sym_string] = ACTIONS(613),
    [sym_any] = ACTIONS(613),
    [sym_zero] = ACTIONS(613),
    [sym_boundary] = ACTIONS(613),
    [sym_symbol_group] = ACTIONS(613),
    [anon_sym_LPAREN] = ACTIONS(611),
    [anon_sym_RPAREN] = ACTIONS(613),
    [anon_sym_BQUOTE] = ACTIONS(613),
    [anon_sym_COMMA] = ACTIONS(613),
    [sym_colon] = ACTIONS(613),
    [sym_complement] = ACTIONS(613),
    [sym_term_complement] = ACTIONS(611),
    [sym_contains] = ACTIONS(613),
    [sym_plus] = ACTIONS(613),
    [sym_star] = ACTIONS(613),
    [sym_repeat] = ACTIONS(613),
    [sym_upper] = ACTIONS(613),
    [sym_lower] = ACTIONS(613),
    [sym_reverse] = ACTIONS(613),
    [sym_inverse] = ACTIONS(613),
    [sym_ignore] = ACTIONS(611),
    [sym_ignore_inside] = ACTIONS(613),
    [sym_union] = ACTIONS(611),
    [sym_intersect] = ACTIONS(613),
    [sym_subtract] = ACTIONS(611),
    [anon_sym_EQ_GT] = ACTIONS(613),
    [anon_sym_DASH_GT] = ACTIONS(611),
    [anon_sym_LT_DASH] = ACTIONS(613),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(613),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(613),
    [anon_sym_AT_DASH_GT] = ACTIONS(613),
    [anon_sym_DASH_GT_AT] = ACTIONS(613),
    [anon_sym_AT_GT] = ACTIONS(613),
    [anon_sym_GT_AT] = ACTIONS(613),
    [anon_sym_LBRACK_DOT] = ACTIONS(613),
    [anon_sym_DOT_RBRACK] = ACTIONS(613),
    [anon_sym_PIPE_PIPE] = ACTIONS(613),
    [anon_sym_SLASH_SLASH] = ACTIONS(613),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(613),
    [anon_sym_BSLASH_SLASH] = ACTIONS(613),
    [sym_crossproduct] = ACTIONS(613),
    [sym_compose] = ACTIONS(613),
    [sym_comment] = ACTIONS(3),
  },
  [454] = {
    [sym_condition_operators] = STATE(675),
    [aux_sym_parallel_replace_repeat1] = STATE(493),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(695),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [455] = {
    [aux_sym_parallel_replace_repeat1] = STATE(455),
    [anon_sym_LBRACK] = ACTIONS(471),
    [sym_symbol] = ACTIONS(471),
    [sym_string] = ACTIONS(473),
    [sym_any] = ACTIONS(473),
    [sym_zero] = ACTIONS(473),
    [sym_boundary] = ACTIONS(473),
    [sym_symbol_group] = ACTIONS(473),
    [anon_sym_LPAREN] = ACTIONS(471),
    [anon_sym_BQUOTE] = ACTIONS(473),
    [anon_sym_COMMA] = ACTIONS(707),
    [sym_colon] = ACTIONS(473),
    [sym_complement] = ACTIONS(473),
    [sym_term_complement] = ACTIONS(471),
    [sym_contains] = ACTIONS(473),
    [sym_plus] = ACTIONS(473),
    [sym_star] = ACTIONS(473),
    [sym_repeat] = ACTIONS(473),
    [sym_upper] = ACTIONS(473),
    [sym_lower] = ACTIONS(473),
    [sym_reverse] = ACTIONS(473),
    [sym_inverse] = ACTIONS(473),
    [sym_ignore] = ACTIONS(471),
    [sym_ignore_inside] = ACTIONS(473),
    [sym_union] = ACTIONS(471),
    [sym_intersect] = ACTIONS(473),
    [sym_subtract] = ACTIONS(471),
    [anon_sym__] = ACTIONS(471),
    [anon_sym_EQ_GT] = ACTIONS(473),
    [anon_sym_DASH_GT] = ACTIONS(471),
    [anon_sym_LT_DASH] = ACTIONS(473),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(473),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(473),
    [anon_sym_AT_DASH_GT] = ACTIONS(473),
    [anon_sym_DASH_GT_AT] = ACTIONS(473),
    [anon_sym_AT_GT] = ACTIONS(473),
    [anon_sym_GT_AT] = ACTIONS(473),
    [anon_sym_LBRACK_DOT] = ACTIONS(473),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(473),
    [anon_sym_PIPE_PIPE] = ACTIONS(473),
    [anon_sym_SLASH_SLASH] = ACTIONS(473),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(473),
    [anon_sym_BSLASH_SLASH] = ACTIONS(473),
    [anon_sym_COMMA_COMMA] = ACTIONS(473),
    [sym_crossproduct] = ACTIONS(473),
    [sym_compose] = ACTIONS(473),
    [sym_comment] = ACTIONS(3),
  },
  [456] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(461),
    [ts_builtin_sym_end] = ACTIONS(593),
    [sym_semicolon] = ACTIONS(591),
    [anon_sym_LBRACK] = ACTIONS(591),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(591),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(591),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(591),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_PIPE_PIPE] = ACTIONS(593),
    [anon_sym_SLASH_SLASH] = ACTIONS(593),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(593),
    [anon_sym_BSLASH_SLASH] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(593),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [457] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(461),
    [ts_builtin_sym_end] = ACTIONS(593),
    [sym_semicolon] = ACTIONS(591),
    [anon_sym_LBRACK] = ACTIONS(591),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(591),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(591),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(591),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_PIPE_PIPE] = ACTIONS(593),
    [anon_sym_SLASH_SLASH] = ACTIONS(593),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(593),
    [anon_sym_BSLASH_SLASH] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(699),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [458] = {
    [aux_sym_context_list_repeat1] = STATE(466),
    [ts_builtin_sym_end] = ACTIONS(617),
    [sym_semicolon] = ACTIONS(615),
    [anon_sym_LBRACK] = ACTIONS(615),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(617),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(615),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(615),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(615),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(617),
    [anon_sym_PIPE_PIPE] = ACTIONS(617),
    [anon_sym_SLASH_SLASH] = ACTIONS(617),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(617),
    [anon_sym_BSLASH_SLASH] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [459] = {
    [ts_builtin_sym_end] = ACTIONS(623),
    [sym_semicolon] = ACTIONS(621),
    [anon_sym_LBRACK] = ACTIONS(621),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(621),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(621),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(621),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(621),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(623),
    [anon_sym_PIPE_PIPE] = ACTIONS(623),
    [anon_sym_SLASH_SLASH] = ACTIONS(623),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(623),
    [anon_sym_BSLASH_SLASH] = ACTIONS(623),
    [anon_sym_COMMA_COMMA] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [460] = {
    [aux_sym_parallel_replace_repeat1] = STATE(460),
    [ts_builtin_sym_end] = ACTIONS(473),
    [sym_semicolon] = ACTIONS(471),
    [anon_sym_LBRACK] = ACTIONS(471),
    [sym_symbol] = ACTIONS(471),
    [sym_string] = ACTIONS(473),
    [sym_any] = ACTIONS(473),
    [sym_zero] = ACTIONS(473),
    [sym_boundary] = ACTIONS(473),
    [sym_symbol_group] = ACTIONS(473),
    [anon_sym_LPAREN] = ACTIONS(471),
    [anon_sym_BQUOTE] = ACTIONS(473),
    [anon_sym_COMMA] = ACTIONS(710),
    [sym_colon] = ACTIONS(473),
    [sym_complement] = ACTIONS(473),
    [sym_term_complement] = ACTIONS(471),
    [sym_contains] = ACTIONS(473),
    [sym_plus] = ACTIONS(473),
    [sym_star] = ACTIONS(473),
    [sym_repeat] = ACTIONS(473),
    [sym_upper] = ACTIONS(473),
    [sym_lower] = ACTIONS(473),
    [sym_reverse] = ACTIONS(473),
    [sym_inverse] = ACTIONS(473),
    [sym_ignore] = ACTIONS(471),
    [sym_ignore_inside] = ACTIONS(473),
    [sym_union] = ACTIONS(471),
    [sym_intersect] = ACTIONS(473),
    [sym_subtract] = ACTIONS(471),
    [anon_sym_EQ_GT] = ACTIONS(473),
    [anon_sym_DASH_GT] = ACTIONS(471),
    [anon_sym_LT_DASH] = ACTIONS(473),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(473),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(473),
    [anon_sym_AT_DASH_GT] = ACTIONS(473),
    [anon_sym_DASH_GT_AT] = ACTIONS(473),
    [anon_sym_AT_GT] = ACTIONS(473),
    [anon_sym_GT_AT] = ACTIONS(473),
    [anon_sym_LBRACK_DOT] = ACTIONS(473),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(473),
    [anon_sym_PIPE_PIPE] = ACTIONS(473),
    [anon_sym_SLASH_SLASH] = ACTIONS(473),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(473),
    [anon_sym_BSLASH_SLASH] = ACTIONS(473),
    [sym_crossproduct] = ACTIONS(473),
    [sym_compose] = ACTIONS(473),
    [sym_comment] = ACTIONS(3),
  },
  [461] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(461),
    [ts_builtin_sym_end] = ACTIONS(589),
    [sym_semicolon] = ACTIONS(587),
    [anon_sym_LBRACK] = ACTIONS(587),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [anon_sym_COMMA] = ACTIONS(587),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(587),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(587),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(587),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_PIPE_PIPE] = ACTIONS(589),
    [anon_sym_SLASH_SLASH] = ACTIONS(589),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(589),
    [anon_sym_BSLASH_SLASH] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(713),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [462] = {
    [aux_sym_context_list_repeat1] = STATE(486),
    [ts_builtin_sym_end] = ACTIONS(609),
    [sym_semicolon] = ACTIONS(607),
    [anon_sym_LBRACK] = ACTIONS(607),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(607),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(607),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(607),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(607),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_PIPE_PIPE] = ACTIONS(609),
    [anon_sym_SLASH_SLASH] = ACTIONS(609),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(609),
    [anon_sym_BSLASH_SLASH] = ACTIONS(609),
    [anon_sym_COMMA_COMMA] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [463] = {
    [sym_condition_operators] = STATE(660),
    [aux_sym_parallel_replace_repeat1] = STATE(527),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(695),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [464] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(456),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(537),
    [anon_sym_SLASH_SLASH] = ACTIONS(537),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(537),
    [anon_sym_BSLASH_SLASH] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(699),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [465] = {
    [aux_sym_parallel_replace_repeat1] = STATE(460),
    [ts_builtin_sym_end] = ACTIONS(613),
    [sym_semicolon] = ACTIONS(611),
    [anon_sym_LBRACK] = ACTIONS(611),
    [sym_symbol] = ACTIONS(611),
    [sym_string] = ACTIONS(613),
    [sym_any] = ACTIONS(613),
    [sym_zero] = ACTIONS(613),
    [sym_boundary] = ACTIONS(613),
    [sym_symbol_group] = ACTIONS(613),
    [anon_sym_LPAREN] = ACTIONS(611),
    [anon_sym_BQUOTE] = ACTIONS(613),
    [anon_sym_COMMA] = ACTIONS(613),
    [sym_colon] = ACTIONS(613),
    [sym_complement] = ACTIONS(613),
    [sym_term_complement] = ACTIONS(611),
    [sym_contains] = ACTIONS(613),
    [sym_plus] = ACTIONS(613),
    [sym_star] = ACTIONS(613),
    [sym_repeat] = ACTIONS(613),
    [sym_upper] = ACTIONS(613),
    [sym_lower] = ACTIONS(613),
    [sym_reverse] = ACTIONS(613),
    [sym_inverse] = ACTIONS(613),
    [sym_ignore] = ACTIONS(611),
    [sym_ignore_inside] = ACTIONS(613),
    [sym_union] = ACTIONS(611),
    [sym_intersect] = ACTIONS(613),
    [sym_subtract] = ACTIONS(611),
    [anon_sym_EQ_GT] = ACTIONS(613),
    [anon_sym_DASH_GT] = ACTIONS(611),
    [anon_sym_LT_DASH] = ACTIONS(613),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(613),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(613),
    [anon_sym_AT_DASH_GT] = ACTIONS(613),
    [anon_sym_DASH_GT_AT] = ACTIONS(613),
    [anon_sym_AT_GT] = ACTIONS(613),
    [anon_sym_GT_AT] = ACTIONS(613),
    [anon_sym_LBRACK_DOT] = ACTIONS(613),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(613),
    [anon_sym_PIPE_PIPE] = ACTIONS(613),
    [anon_sym_SLASH_SLASH] = ACTIONS(613),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(613),
    [anon_sym_BSLASH_SLASH] = ACTIONS(613),
    [sym_crossproduct] = ACTIONS(613),
    [sym_compose] = ACTIONS(613),
    [sym_comment] = ACTIONS(3),
  },
  [466] = {
    [aux_sym_context_list_repeat1] = STATE(452),
    [ts_builtin_sym_end] = ACTIONS(609),
    [sym_semicolon] = ACTIONS(607),
    [anon_sym_LBRACK] = ACTIONS(607),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(609),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(607),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(607),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(607),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(609),
    [anon_sym_PIPE_PIPE] = ACTIONS(609),
    [anon_sym_SLASH_SLASH] = ACTIONS(609),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(609),
    [anon_sym_BSLASH_SLASH] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [467] = {
    [ts_builtin_sym_end] = ACTIONS(678),
    [sym_semicolon] = ACTIONS(676),
    [anon_sym_LBRACK] = ACTIONS(676),
    [sym_symbol] = ACTIONS(676),
    [sym_string] = ACTIONS(678),
    [sym_any] = ACTIONS(678),
    [sym_zero] = ACTIONS(678),
    [sym_boundary] = ACTIONS(678),
    [sym_symbol_group] = ACTIONS(678),
    [anon_sym_LPAREN] = ACTIONS(676),
    [anon_sym_BQUOTE] = ACTIONS(678),
    [anon_sym_COMMA] = ACTIONS(676),
    [sym_colon] = ACTIONS(678),
    [sym_complement] = ACTIONS(678),
    [sym_term_complement] = ACTIONS(676),
    [sym_contains] = ACTIONS(678),
    [sym_plus] = ACTIONS(678),
    [sym_star] = ACTIONS(678),
    [sym_repeat] = ACTIONS(678),
    [sym_upper] = ACTIONS(678),
    [sym_lower] = ACTIONS(678),
    [sym_reverse] = ACTIONS(678),
    [sym_inverse] = ACTIONS(678),
    [sym_ignore] = ACTIONS(676),
    [sym_ignore_inside] = ACTIONS(678),
    [sym_union] = ACTIONS(676),
    [sym_intersect] = ACTIONS(678),
    [sym_subtract] = ACTIONS(676),
    [anon_sym_EQ_GT] = ACTIONS(678),
    [anon_sym_DASH_GT] = ACTIONS(676),
    [anon_sym_LT_DASH] = ACTIONS(678),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(678),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(678),
    [anon_sym_AT_DASH_GT] = ACTIONS(678),
    [anon_sym_DASH_GT_AT] = ACTIONS(678),
    [anon_sym_AT_GT] = ACTIONS(678),
    [anon_sym_GT_AT] = ACTIONS(678),
    [anon_sym_LBRACK_DOT] = ACTIONS(678),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(678),
    [anon_sym_PIPE_PIPE] = ACTIONS(678),
    [anon_sym_SLASH_SLASH] = ACTIONS(678),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(678),
    [anon_sym_BSLASH_SLASH] = ACTIONS(678),
    [anon_sym_COMMA_COMMA] = ACTIONS(678),
    [sym_crossproduct] = ACTIONS(678),
    [sym_compose] = ACTIONS(678),
    [sym_comment] = ACTIONS(3),
  },
  [468] = {
    [ts_builtin_sym_end] = ACTIONS(661),
    [sym_semicolon] = ACTIONS(659),
    [anon_sym_LBRACK] = ACTIONS(659),
    [sym_symbol] = ACTIONS(659),
    [sym_string] = ACTIONS(661),
    [sym_any] = ACTIONS(661),
    [sym_zero] = ACTIONS(661),
    [sym_boundary] = ACTIONS(661),
    [sym_symbol_group] = ACTIONS(661),
    [anon_sym_LPAREN] = ACTIONS(659),
    [anon_sym_BQUOTE] = ACTIONS(661),
    [anon_sym_COMMA] = ACTIONS(659),
    [sym_colon] = ACTIONS(661),
    [sym_complement] = ACTIONS(661),
    [sym_term_complement] = ACTIONS(659),
    [sym_contains] = ACTIONS(661),
    [sym_plus] = ACTIONS(661),
    [sym_star] = ACTIONS(661),
    [sym_repeat] = ACTIONS(661),
    [sym_upper] = ACTIONS(661),
    [sym_lower] = ACTIONS(661),
    [sym_reverse] = ACTIONS(661),
    [sym_inverse] = ACTIONS(661),
    [sym_ignore] = ACTIONS(659),
    [sym_ignore_inside] = ACTIONS(661),
    [sym_union] = ACTIONS(659),
    [sym_intersect] = ACTIONS(661),
    [sym_subtract] = ACTIONS(659),
    [anon_sym_EQ_GT] = ACTIONS(661),
    [anon_sym_DASH_GT] = ACTIONS(659),
    [anon_sym_LT_DASH] = ACTIONS(661),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(661),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(661),
    [anon_sym_AT_DASH_GT] = ACTIONS(661),
    [anon_sym_DASH_GT_AT] = ACTIONS(661),
    [anon_sym_AT_GT] = ACTIONS(661),
    [anon_sym_GT_AT] = ACTIONS(661),
    [anon_sym_LBRACK_DOT] = ACTIONS(661),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(661),
    [anon_sym_PIPE_PIPE] = ACTIONS(661),
    [anon_sym_SLASH_SLASH] = ACTIONS(661),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(661),
    [anon_sym_BSLASH_SLASH] = ACTIONS(661),
    [anon_sym_COMMA_COMMA] = ACTIONS(661),
    [sym_crossproduct] = ACTIONS(661),
    [sym_compose] = ACTIONS(661),
    [sym_comment] = ACTIONS(3),
  },
  [469] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(483),
    [anon_sym_LBRACK] = ACTIONS(591),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(591),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(591),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(591),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym__] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(593),
    [anon_sym_PIPE_PIPE] = ACTIONS(593),
    [anon_sym_SLASH_SLASH] = ACTIONS(593),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(593),
    [anon_sym_BSLASH_SLASH] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(688),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [470] = {
    [ts_builtin_sym_end] = ACTIONS(646),
    [sym_semicolon] = ACTIONS(644),
    [anon_sym_LBRACK] = ACTIONS(644),
    [sym_symbol] = ACTIONS(644),
    [sym_string] = ACTIONS(646),
    [sym_any] = ACTIONS(646),
    [sym_zero] = ACTIONS(646),
    [sym_boundary] = ACTIONS(646),
    [sym_symbol_group] = ACTIONS(646),
    [anon_sym_LPAREN] = ACTIONS(644),
    [anon_sym_BQUOTE] = ACTIONS(646),
    [anon_sym_COMMA] = ACTIONS(644),
    [sym_colon] = ACTIONS(646),
    [sym_complement] = ACTIONS(646),
    [sym_term_complement] = ACTIONS(644),
    [sym_contains] = ACTIONS(646),
    [sym_plus] = ACTIONS(646),
    [sym_star] = ACTIONS(646),
    [sym_repeat] = ACTIONS(646),
    [sym_upper] = ACTIONS(646),
    [sym_lower] = ACTIONS(646),
    [sym_reverse] = ACTIONS(646),
    [sym_inverse] = ACTIONS(646),
    [sym_ignore] = ACTIONS(644),
    [sym_ignore_inside] = ACTIONS(646),
    [sym_union] = ACTIONS(644),
    [sym_intersect] = ACTIONS(646),
    [sym_subtract] = ACTIONS(644),
    [anon_sym_EQ_GT] = ACTIONS(646),
    [anon_sym_DASH_GT] = ACTIONS(644),
    [anon_sym_LT_DASH] = ACTIONS(646),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(646),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(646),
    [anon_sym_AT_DASH_GT] = ACTIONS(646),
    [anon_sym_DASH_GT_AT] = ACTIONS(646),
    [anon_sym_AT_GT] = ACTIONS(646),
    [anon_sym_GT_AT] = ACTIONS(646),
    [anon_sym_LBRACK_DOT] = ACTIONS(646),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(646),
    [anon_sym_PIPE_PIPE] = ACTIONS(646),
    [anon_sym_SLASH_SLASH] = ACTIONS(646),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(646),
    [anon_sym_BSLASH_SLASH] = ACTIONS(646),
    [anon_sym_COMMA_COMMA] = ACTIONS(646),
    [sym_crossproduct] = ACTIONS(646),
    [sym_compose] = ACTIONS(646),
    [sym_comment] = ACTIONS(3),
  },
  [471] = {
    [aux_sym_parallel_replace_repeat1] = STATE(455),
    [anon_sym_LBRACK] = ACTIONS(611),
    [sym_symbol] = ACTIONS(611),
    [sym_string] = ACTIONS(613),
    [sym_any] = ACTIONS(613),
    [sym_zero] = ACTIONS(613),
    [sym_boundary] = ACTIONS(613),
    [sym_symbol_group] = ACTIONS(613),
    [anon_sym_LPAREN] = ACTIONS(611),
    [anon_sym_BQUOTE] = ACTIONS(613),
    [anon_sym_COMMA] = ACTIONS(611),
    [sym_colon] = ACTIONS(613),
    [sym_complement] = ACTIONS(613),
    [sym_term_complement] = ACTIONS(611),
    [sym_contains] = ACTIONS(613),
    [sym_plus] = ACTIONS(613),
    [sym_star] = ACTIONS(613),
    [sym_repeat] = ACTIONS(613),
    [sym_upper] = ACTIONS(613),
    [sym_lower] = ACTIONS(613),
    [sym_reverse] = ACTIONS(613),
    [sym_inverse] = ACTIONS(613),
    [sym_ignore] = ACTIONS(611),
    [sym_ignore_inside] = ACTIONS(613),
    [sym_union] = ACTIONS(611),
    [sym_intersect] = ACTIONS(613),
    [sym_subtract] = ACTIONS(611),
    [anon_sym__] = ACTIONS(611),
    [anon_sym_EQ_GT] = ACTIONS(613),
    [anon_sym_DASH_GT] = ACTIONS(611),
    [anon_sym_LT_DASH] = ACTIONS(613),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(613),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(613),
    [anon_sym_AT_DASH_GT] = ACTIONS(613),
    [anon_sym_DASH_GT_AT] = ACTIONS(613),
    [anon_sym_AT_GT] = ACTIONS(613),
    [anon_sym_GT_AT] = ACTIONS(613),
    [anon_sym_LBRACK_DOT] = ACTIONS(613),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(613),
    [anon_sym_PIPE_PIPE] = ACTIONS(613),
    [anon_sym_SLASH_SLASH] = ACTIONS(613),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(613),
    [anon_sym_BSLASH_SLASH] = ACTIONS(613),
    [anon_sym_COMMA_COMMA] = ACTIONS(613),
    [sym_crossproduct] = ACTIONS(613),
    [sym_compose] = ACTIONS(613),
    [sym_comment] = ACTIONS(3),
  },
  [472] = {
    [aux_sym_parallel_replace_repeat1] = STATE(479),
    [anon_sym_LBRACK] = ACTIONS(611),
    [anon_sym_RBRACK] = ACTIONS(613),
    [sym_symbol] = ACTIONS(611),
    [sym_string] = ACTIONS(613),
    [sym_any] = ACTIONS(613),
    [sym_zero] = ACTIONS(613),
    [sym_boundary] = ACTIONS(613),
    [sym_symbol_group] = ACTIONS(613),
    [anon_sym_LPAREN] = ACTIONS(611),
    [anon_sym_RPAREN] = ACTIONS(613),
    [anon_sym_BQUOTE] = ACTIONS(613),
    [anon_sym_COMMA] = ACTIONS(648),
    [sym_colon] = ACTIONS(613),
    [sym_complement] = ACTIONS(613),
    [sym_term_complement] = ACTIONS(611),
    [sym_contains] = ACTIONS(613),
    [sym_plus] = ACTIONS(613),
    [sym_star] = ACTIONS(613),
    [sym_repeat] = ACTIONS(613),
    [sym_upper] = ACTIONS(613),
    [sym_lower] = ACTIONS(613),
    [sym_reverse] = ACTIONS(613),
    [sym_inverse] = ACTIONS(613),
    [sym_ignore] = ACTIONS(611),
    [sym_ignore_inside] = ACTIONS(613),
    [sym_union] = ACTIONS(611),
    [sym_intersect] = ACTIONS(613),
    [sym_subtract] = ACTIONS(611),
    [anon_sym_EQ_GT] = ACTIONS(613),
    [anon_sym_DASH_GT] = ACTIONS(611),
    [anon_sym_LT_DASH] = ACTIONS(613),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(613),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(613),
    [anon_sym_AT_DASH_GT] = ACTIONS(613),
    [anon_sym_DASH_GT_AT] = ACTIONS(613),
    [anon_sym_AT_GT] = ACTIONS(613),
    [anon_sym_GT_AT] = ACTIONS(613),
    [anon_sym_LBRACK_DOT] = ACTIONS(613),
    [anon_sym_DOT_RBRACK] = ACTIONS(613),
    [anon_sym_PIPE_PIPE] = ACTIONS(613),
    [anon_sym_SLASH_SLASH] = ACTIONS(613),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(613),
    [anon_sym_BSLASH_SLASH] = ACTIONS(613),
    [sym_crossproduct] = ACTIONS(613),
    [sym_compose] = ACTIONS(613),
    [sym_comment] = ACTIONS(3),
  },
  [473] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(469),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(537),
    [anon_sym_SLASH_SLASH] = ACTIONS(537),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(537),
    [anon_sym_BSLASH_SLASH] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(688),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [474] = {
    [sym_condition_operators] = STATE(660),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [475] = {
    [ts_builtin_sym_end] = ACTIONS(630),
    [sym_semicolon] = ACTIONS(628),
    [anon_sym_LBRACK] = ACTIONS(628),
    [sym_symbol] = ACTIONS(628),
    [sym_string] = ACTIONS(630),
    [sym_any] = ACTIONS(630),
    [sym_zero] = ACTIONS(630),
    [sym_boundary] = ACTIONS(630),
    [sym_symbol_group] = ACTIONS(630),
    [anon_sym_LPAREN] = ACTIONS(628),
    [anon_sym_BQUOTE] = ACTIONS(630),
    [anon_sym_COMMA] = ACTIONS(628),
    [sym_colon] = ACTIONS(630),
    [sym_complement] = ACTIONS(630),
    [sym_term_complement] = ACTIONS(628),
    [sym_contains] = ACTIONS(630),
    [sym_plus] = ACTIONS(630),
    [sym_star] = ACTIONS(630),
    [sym_repeat] = ACTIONS(630),
    [sym_upper] = ACTIONS(630),
    [sym_lower] = ACTIONS(630),
    [sym_reverse] = ACTIONS(630),
    [sym_inverse] = ACTIONS(630),
    [sym_ignore] = ACTIONS(628),
    [sym_ignore_inside] = ACTIONS(630),
    [sym_union] = ACTIONS(628),
    [sym_intersect] = ACTIONS(630),
    [sym_subtract] = ACTIONS(628),
    [anon_sym_EQ_GT] = ACTIONS(630),
    [anon_sym_DASH_GT] = ACTIONS(628),
    [anon_sym_LT_DASH] = ACTIONS(630),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(630),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(630),
    [anon_sym_AT_DASH_GT] = ACTIONS(630),
    [anon_sym_DASH_GT_AT] = ACTIONS(630),
    [anon_sym_AT_GT] = ACTIONS(630),
    [anon_sym_GT_AT] = ACTIONS(630),
    [anon_sym_LBRACK_DOT] = ACTIONS(630),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(630),
    [anon_sym_PIPE_PIPE] = ACTIONS(630),
    [anon_sym_SLASH_SLASH] = ACTIONS(630),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(630),
    [anon_sym_BSLASH_SLASH] = ACTIONS(630),
    [anon_sym_COMMA_COMMA] = ACTIONS(630),
    [sym_crossproduct] = ACTIONS(630),
    [sym_compose] = ACTIONS(630),
    [sym_comment] = ACTIONS(3),
  },
  [476] = {
    [aux_sym_context_list_repeat1] = STATE(462),
    [ts_builtin_sym_end] = ACTIONS(617),
    [sym_semicolon] = ACTIONS(615),
    [anon_sym_LBRACK] = ACTIONS(615),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(615),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(615),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(615),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(615),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_PIPE_PIPE] = ACTIONS(617),
    [anon_sym_SLASH_SLASH] = ACTIONS(617),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(617),
    [anon_sym_BSLASH_SLASH] = ACTIONS(617),
    [anon_sym_COMMA_COMMA] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [477] = {
    [ts_builtin_sym_end] = ACTIONS(639),
    [sym_semicolon] = ACTIONS(637),
    [anon_sym_LBRACK] = ACTIONS(637),
    [sym_symbol] = ACTIONS(637),
    [sym_string] = ACTIONS(639),
    [sym_any] = ACTIONS(639),
    [sym_zero] = ACTIONS(639),
    [sym_boundary] = ACTIONS(639),
    [sym_symbol_group] = ACTIONS(639),
    [anon_sym_LPAREN] = ACTIONS(637),
    [anon_sym_BQUOTE] = ACTIONS(639),
    [anon_sym_COMMA] = ACTIONS(637),
    [sym_colon] = ACTIONS(639),
    [sym_complement] = ACTIONS(639),
    [sym_term_complement] = ACTIONS(637),
    [sym_contains] = ACTIONS(639),
    [sym_plus] = ACTIONS(639),
    [sym_star] = ACTIONS(639),
    [sym_repeat] = ACTIONS(639),
    [sym_upper] = ACTIONS(639),
    [sym_lower] = ACTIONS(639),
    [sym_reverse] = ACTIONS(639),
    [sym_inverse] = ACTIONS(639),
    [sym_ignore] = ACTIONS(637),
    [sym_ignore_inside] = ACTIONS(639),
    [sym_union] = ACTIONS(637),
    [sym_intersect] = ACTIONS(639),
    [sym_subtract] = ACTIONS(637),
    [anon_sym_EQ_GT] = ACTIONS(639),
    [anon_sym_DASH_GT] = ACTIONS(637),
    [anon_sym_LT_DASH] = ACTIONS(639),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(639),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(639),
    [anon_sym_AT_DASH_GT] = ACTIONS(639),
    [anon_sym_DASH_GT_AT] = ACTIONS(639),
    [anon_sym_AT_GT] = ACTIONS(639),
    [anon_sym_GT_AT] = ACTIONS(639),
    [anon_sym_LBRACK_DOT] = ACTIONS(639),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(639),
    [anon_sym_PIPE_PIPE] = ACTIONS(639),
    [anon_sym_SLASH_SLASH] = ACTIONS(639),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(639),
    [anon_sym_BSLASH_SLASH] = ACTIONS(639),
    [anon_sym_COMMA_COMMA] = ACTIONS(639),
    [sym_crossproduct] = ACTIONS(639),
    [sym_compose] = ACTIONS(639),
    [sym_comment] = ACTIONS(3),
  },
  [478] = {
    [sym_condition_operators] = STATE(669),
    [aux_sym_parallel_replace_repeat1] = STATE(501),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(697),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [479] = {
    [aux_sym_parallel_replace_repeat1] = STATE(479),
    [anon_sym_LBRACK] = ACTIONS(471),
    [anon_sym_RBRACK] = ACTIONS(473),
    [sym_symbol] = ACTIONS(471),
    [sym_string] = ACTIONS(473),
    [sym_any] = ACTIONS(473),
    [sym_zero] = ACTIONS(473),
    [sym_boundary] = ACTIONS(473),
    [sym_symbol_group] = ACTIONS(473),
    [anon_sym_LPAREN] = ACTIONS(471),
    [anon_sym_RPAREN] = ACTIONS(473),
    [anon_sym_BQUOTE] = ACTIONS(473),
    [anon_sym_COMMA] = ACTIONS(716),
    [sym_colon] = ACTIONS(473),
    [sym_complement] = ACTIONS(473),
    [sym_term_complement] = ACTIONS(471),
    [sym_contains] = ACTIONS(473),
    [sym_plus] = ACTIONS(473),
    [sym_star] = ACTIONS(473),
    [sym_repeat] = ACTIONS(473),
    [sym_upper] = ACTIONS(473),
    [sym_lower] = ACTIONS(473),
    [sym_reverse] = ACTIONS(473),
    [sym_inverse] = ACTIONS(473),
    [sym_ignore] = ACTIONS(471),
    [sym_ignore_inside] = ACTIONS(473),
    [sym_union] = ACTIONS(471),
    [sym_intersect] = ACTIONS(473),
    [sym_subtract] = ACTIONS(471),
    [anon_sym_EQ_GT] = ACTIONS(473),
    [anon_sym_DASH_GT] = ACTIONS(471),
    [anon_sym_LT_DASH] = ACTIONS(473),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(473),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(473),
    [anon_sym_AT_DASH_GT] = ACTIONS(473),
    [anon_sym_DASH_GT_AT] = ACTIONS(473),
    [anon_sym_AT_GT] = ACTIONS(473),
    [anon_sym_GT_AT] = ACTIONS(473),
    [anon_sym_LBRACK_DOT] = ACTIONS(473),
    [anon_sym_DOT_RBRACK] = ACTIONS(473),
    [anon_sym_PIPE_PIPE] = ACTIONS(473),
    [anon_sym_SLASH_SLASH] = ACTIONS(473),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(473),
    [anon_sym_BSLASH_SLASH] = ACTIONS(473),
    [sym_crossproduct] = ACTIONS(473),
    [sym_compose] = ACTIONS(473),
    [sym_comment] = ACTIONS(3),
  },
  [480] = {
    [sym_condition_operators] = STATE(674),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [481] = {
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(537),
    [anon_sym_SLASH_SLASH] = ACTIONS(537),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(537),
    [anon_sym_BSLASH_SLASH] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [482] = {
    [sym_condition_operators] = STATE(678),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [483] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(483),
    [anon_sym_LBRACK] = ACTIONS(587),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [anon_sym_COMMA] = ACTIONS(587),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(587),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(587),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(587),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym__] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(589),
    [anon_sym_PIPE_PIPE] = ACTIONS(589),
    [anon_sym_SLASH_SLASH] = ACTIONS(589),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(589),
    [anon_sym_BSLASH_SLASH] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(719),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [484] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(573),
    [anon_sym_LBRACK] = ACTIONS(587),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [anon_sym_COMMA] = ACTIONS(587),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(587),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(587),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(587),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym__] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(589),
    [anon_sym_PIPE_PIPE] = ACTIONS(589),
    [anon_sym_SLASH_SLASH] = ACTIONS(589),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(589),
    [anon_sym_BSLASH_SLASH] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(589),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [485] = {
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [486] = {
    [aux_sym_context_list_repeat1] = STATE(486),
    [ts_builtin_sym_end] = ACTIONS(623),
    [sym_semicolon] = ACTIONS(621),
    [anon_sym_LBRACK] = ACTIONS(621),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(722),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(621),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(621),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(621),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_PIPE_PIPE] = ACTIONS(623),
    [anon_sym_SLASH_SLASH] = ACTIONS(623),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(623),
    [anon_sym_BSLASH_SLASH] = ACTIONS(623),
    [anon_sym_COMMA_COMMA] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [487] = {
    [aux_sym_context_list_repeat1] = STATE(448),
    [anon_sym_LBRACK] = ACTIONS(615),
    [anon_sym_RBRACK] = ACTIONS(617),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_RPAREN] = ACTIONS(617),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(617),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(615),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(615),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(615),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_DOT_RBRACK] = ACTIONS(617),
    [anon_sym_PIPE_PIPE] = ACTIONS(617),
    [anon_sym_SLASH_SLASH] = ACTIONS(617),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(617),
    [anon_sym_BSLASH_SLASH] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [488] = {
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(53),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [489] = {
    [ts_builtin_sym_end] = ACTIONS(657),
    [sym_semicolon] = ACTIONS(655),
    [anon_sym_LBRACK] = ACTIONS(655),
    [sym_symbol] = ACTIONS(655),
    [sym_string] = ACTIONS(657),
    [sym_any] = ACTIONS(657),
    [sym_zero] = ACTIONS(657),
    [sym_boundary] = ACTIONS(657),
    [sym_symbol_group] = ACTIONS(657),
    [anon_sym_LPAREN] = ACTIONS(655),
    [anon_sym_BQUOTE] = ACTIONS(657),
    [anon_sym_COMMA] = ACTIONS(655),
    [sym_colon] = ACTIONS(657),
    [sym_complement] = ACTIONS(657),
    [sym_term_complement] = ACTIONS(655),
    [sym_contains] = ACTIONS(657),
    [sym_plus] = ACTIONS(657),
    [sym_star] = ACTIONS(657),
    [sym_repeat] = ACTIONS(657),
    [sym_upper] = ACTIONS(657),
    [sym_lower] = ACTIONS(657),
    [sym_reverse] = ACTIONS(657),
    [sym_inverse] = ACTIONS(657),
    [sym_ignore] = ACTIONS(655),
    [sym_ignore_inside] = ACTIONS(657),
    [sym_union] = ACTIONS(655),
    [sym_intersect] = ACTIONS(657),
    [sym_subtract] = ACTIONS(655),
    [anon_sym_EQ_GT] = ACTIONS(657),
    [anon_sym_DASH_GT] = ACTIONS(655),
    [anon_sym_LT_DASH] = ACTIONS(657),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(657),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(657),
    [anon_sym_AT_DASH_GT] = ACTIONS(657),
    [anon_sym_DASH_GT_AT] = ACTIONS(657),
    [anon_sym_AT_GT] = ACTIONS(657),
    [anon_sym_GT_AT] = ACTIONS(657),
    [anon_sym_LBRACK_DOT] = ACTIONS(657),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(657),
    [anon_sym_PIPE_PIPE] = ACTIONS(657),
    [anon_sym_SLASH_SLASH] = ACTIONS(657),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(657),
    [anon_sym_BSLASH_SLASH] = ACTIONS(657),
    [anon_sym_COMMA_COMMA] = ACTIONS(657),
    [sym_crossproduct] = ACTIONS(657),
    [sym_compose] = ACTIONS(657),
    [sym_comment] = ACTIONS(3),
  },
  [490] = {
    [aux_sym_parallel_replace_repeat1] = STATE(490),
    [ts_builtin_sym_end] = ACTIONS(473),
    [sym_semicolon] = ACTIONS(471),
    [anon_sym_LBRACK] = ACTIONS(471),
    [sym_symbol] = ACTIONS(471),
    [sym_string] = ACTIONS(473),
    [sym_any] = ACTIONS(473),
    [sym_zero] = ACTIONS(473),
    [sym_boundary] = ACTIONS(473),
    [sym_symbol_group] = ACTIONS(473),
    [anon_sym_LPAREN] = ACTIONS(471),
    [anon_sym_BQUOTE] = ACTIONS(473),
    [anon_sym_COMMA] = ACTIONS(725),
    [sym_colon] = ACTIONS(473),
    [sym_complement] = ACTIONS(473),
    [sym_term_complement] = ACTIONS(471),
    [sym_contains] = ACTIONS(473),
    [sym_plus] = ACTIONS(473),
    [sym_star] = ACTIONS(473),
    [sym_repeat] = ACTIONS(473),
    [sym_upper] = ACTIONS(473),
    [sym_lower] = ACTIONS(473),
    [sym_reverse] = ACTIONS(473),
    [sym_inverse] = ACTIONS(473),
    [sym_ignore] = ACTIONS(471),
    [sym_ignore_inside] = ACTIONS(473),
    [sym_union] = ACTIONS(471),
    [sym_intersect] = ACTIONS(473),
    [sym_subtract] = ACTIONS(471),
    [anon_sym_EQ_GT] = ACTIONS(473),
    [anon_sym_DASH_GT] = ACTIONS(471),
    [anon_sym_LT_DASH] = ACTIONS(473),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(473),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(473),
    [anon_sym_AT_DASH_GT] = ACTIONS(473),
    [anon_sym_DASH_GT_AT] = ACTIONS(473),
    [anon_sym_AT_GT] = ACTIONS(473),
    [anon_sym_GT_AT] = ACTIONS(473),
    [anon_sym_LBRACK_DOT] = ACTIONS(473),
    [anon_sym_PIPE_PIPE] = ACTIONS(473),
    [anon_sym_SLASH_SLASH] = ACTIONS(473),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(473),
    [anon_sym_BSLASH_SLASH] = ACTIONS(473),
    [anon_sym_COMMA_COMMA] = ACTIONS(473),
    [sym_crossproduct] = ACTIONS(473),
    [sym_compose] = ACTIONS(473),
    [sym_comment] = ACTIONS(3),
  },
  [491] = {
    [anon_sym_LBRACK] = ACTIONS(676),
    [sym_symbol] = ACTIONS(676),
    [sym_string] = ACTIONS(678),
    [sym_any] = ACTIONS(678),
    [sym_zero] = ACTIONS(678),
    [sym_boundary] = ACTIONS(678),
    [sym_symbol_group] = ACTIONS(678),
    [anon_sym_LPAREN] = ACTIONS(676),
    [anon_sym_BQUOTE] = ACTIONS(678),
    [anon_sym_COMMA] = ACTIONS(676),
    [sym_colon] = ACTIONS(678),
    [sym_complement] = ACTIONS(678),
    [sym_term_complement] = ACTIONS(676),
    [sym_contains] = ACTIONS(678),
    [sym_plus] = ACTIONS(678),
    [sym_star] = ACTIONS(678),
    [sym_repeat] = ACTIONS(678),
    [sym_upper] = ACTIONS(678),
    [sym_lower] = ACTIONS(678),
    [sym_reverse] = ACTIONS(678),
    [sym_inverse] = ACTIONS(678),
    [sym_ignore] = ACTIONS(676),
    [sym_ignore_inside] = ACTIONS(678),
    [sym_union] = ACTIONS(676),
    [sym_intersect] = ACTIONS(678),
    [sym_subtract] = ACTIONS(676),
    [anon_sym__] = ACTIONS(676),
    [anon_sym_EQ_GT] = ACTIONS(678),
    [anon_sym_DASH_GT] = ACTIONS(676),
    [anon_sym_LT_DASH] = ACTIONS(678),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(678),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(678),
    [anon_sym_AT_DASH_GT] = ACTIONS(678),
    [anon_sym_DASH_GT_AT] = ACTIONS(678),
    [anon_sym_AT_GT] = ACTIONS(678),
    [anon_sym_GT_AT] = ACTIONS(678),
    [anon_sym_LBRACK_DOT] = ACTIONS(678),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(678),
    [anon_sym_PIPE_PIPE] = ACTIONS(678),
    [anon_sym_SLASH_SLASH] = ACTIONS(678),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(678),
    [anon_sym_BSLASH_SLASH] = ACTIONS(678),
    [anon_sym_COMMA_COMMA] = ACTIONS(678),
    [sym_crossproduct] = ACTIONS(678),
    [sym_compose] = ACTIONS(678),
    [sym_comment] = ACTIONS(3),
  },
  [492] = {
    [sym_condition_operators] = STATE(669),
    [aux_sym_parallel_replace_repeat1] = STATE(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(728),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [493] = {
    [aux_sym_parallel_replace_repeat1] = STATE(518),
    [ts_builtin_sym_end] = ACTIONS(613),
    [sym_semicolon] = ACTIONS(611),
    [anon_sym_LBRACK] = ACTIONS(611),
    [sym_symbol] = ACTIONS(611),
    [sym_string] = ACTIONS(613),
    [sym_any] = ACTIONS(613),
    [sym_zero] = ACTIONS(613),
    [sym_boundary] = ACTIONS(613),
    [sym_symbol_group] = ACTIONS(613),
    [anon_sym_LPAREN] = ACTIONS(611),
    [anon_sym_BQUOTE] = ACTIONS(613),
    [anon_sym_COMMA] = ACTIONS(695),
    [sym_colon] = ACTIONS(613),
    [sym_complement] = ACTIONS(613),
    [sym_term_complement] = ACTIONS(611),
    [sym_contains] = ACTIONS(613),
    [sym_plus] = ACTIONS(613),
    [sym_star] = ACTIONS(613),
    [sym_repeat] = ACTIONS(613),
    [sym_upper] = ACTIONS(613),
    [sym_lower] = ACTIONS(613),
    [sym_reverse] = ACTIONS(613),
    [sym_inverse] = ACTIONS(613),
    [sym_ignore] = ACTIONS(611),
    [sym_ignore_inside] = ACTIONS(613),
    [sym_union] = ACTIONS(611),
    [sym_intersect] = ACTIONS(613),
    [sym_subtract] = ACTIONS(611),
    [anon_sym_EQ_GT] = ACTIONS(613),
    [anon_sym_DASH_GT] = ACTIONS(611),
    [anon_sym_LT_DASH] = ACTIONS(613),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(613),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(613),
    [anon_sym_AT_DASH_GT] = ACTIONS(613),
    [anon_sym_DASH_GT_AT] = ACTIONS(613),
    [anon_sym_AT_GT] = ACTIONS(613),
    [anon_sym_GT_AT] = ACTIONS(613),
    [anon_sym_LBRACK_DOT] = ACTIONS(613),
    [anon_sym_PIPE_PIPE] = ACTIONS(613),
    [anon_sym_SLASH_SLASH] = ACTIONS(613),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(613),
    [anon_sym_BSLASH_SLASH] = ACTIONS(613),
    [sym_crossproduct] = ACTIONS(613),
    [sym_compose] = ACTIONS(613),
    [sym_comment] = ACTIONS(3),
  },
  [494] = {
    [aux_sym_parallel_replace_repeat1] = STATE(494),
    [anon_sym_LBRACK] = ACTIONS(471),
    [sym_symbol] = ACTIONS(471),
    [sym_string] = ACTIONS(473),
    [sym_any] = ACTIONS(473),
    [sym_zero] = ACTIONS(473),
    [sym_boundary] = ACTIONS(473),
    [sym_symbol_group] = ACTIONS(473),
    [anon_sym_LPAREN] = ACTIONS(471),
    [anon_sym_BQUOTE] = ACTIONS(473),
    [anon_sym_COMMA] = ACTIONS(730),
    [sym_colon] = ACTIONS(473),
    [sym_complement] = ACTIONS(473),
    [sym_term_complement] = ACTIONS(471),
    [sym_contains] = ACTIONS(473),
    [sym_plus] = ACTIONS(473),
    [sym_star] = ACTIONS(473),
    [sym_repeat] = ACTIONS(473),
    [sym_upper] = ACTIONS(473),
    [sym_lower] = ACTIONS(473),
    [sym_reverse] = ACTIONS(473),
    [sym_inverse] = ACTIONS(473),
    [sym_ignore] = ACTIONS(471),
    [sym_ignore_inside] = ACTIONS(473),
    [sym_union] = ACTIONS(471),
    [sym_intersect] = ACTIONS(473),
    [sym_subtract] = ACTIONS(471),
    [anon_sym__] = ACTIONS(471),
    [anon_sym_EQ_GT] = ACTIONS(473),
    [anon_sym_DASH_GT] = ACTIONS(471),
    [anon_sym_LT_DASH] = ACTIONS(473),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(473),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(473),
    [anon_sym_AT_DASH_GT] = ACTIONS(473),
    [anon_sym_DASH_GT_AT] = ACTIONS(473),
    [anon_sym_AT_GT] = ACTIONS(473),
    [anon_sym_GT_AT] = ACTIONS(473),
    [anon_sym_LBRACK_DOT] = ACTIONS(473),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(473),
    [anon_sym_PIPE_PIPE] = ACTIONS(473),
    [anon_sym_SLASH_SLASH] = ACTIONS(473),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(473),
    [anon_sym_BSLASH_SLASH] = ACTIONS(473),
    [sym_crossproduct] = ACTIONS(473),
    [sym_compose] = ACTIONS(473),
    [sym_comment] = ACTIONS(3),
  },
  [495] = {
    [aux_sym_context_list_repeat1] = STATE(495),
    [anon_sym_LBRACK] = ACTIONS(621),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(733),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(621),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(621),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(621),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym__] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(623),
    [anon_sym_PIPE_PIPE] = ACTIONS(623),
    [anon_sym_SLASH_SLASH] = ACTIONS(623),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(623),
    [anon_sym_BSLASH_SLASH] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [496] = {
    [anon_sym_LBRACK] = ACTIONS(621),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(621),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(621),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(621),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(621),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym__] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(623),
    [anon_sym_PIPE_PIPE] = ACTIONS(623),
    [anon_sym_SLASH_SLASH] = ACTIONS(623),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(623),
    [anon_sym_BSLASH_SLASH] = ACTIONS(623),
    [anon_sym_COMMA_COMMA] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [497] = {
    [aux_sym_context_list_repeat1] = STATE(528),
    [ts_builtin_sym_end] = ACTIONS(617),
    [sym_semicolon] = ACTIONS(615),
    [anon_sym_LBRACK] = ACTIONS(615),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(617),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(615),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(615),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(615),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_PIPE_PIPE] = ACTIONS(617),
    [anon_sym_SLASH_SLASH] = ACTIONS(617),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(617),
    [anon_sym_BSLASH_SLASH] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [498] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(509),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(537),
    [anon_sym_SLASH_SLASH] = ACTIONS(537),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(537),
    [anon_sym_BSLASH_SLASH] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(736),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [499] = {
    [aux_sym_context_list_repeat1] = STATE(495),
    [anon_sym_LBRACK] = ACTIONS(607),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(609),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(607),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(607),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(607),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym__] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(609),
    [anon_sym_PIPE_PIPE] = ACTIONS(609),
    [anon_sym_SLASH_SLASH] = ACTIONS(609),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(609),
    [anon_sym_BSLASH_SLASH] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [500] = {
    [aux_sym_context_list_repeat1] = STATE(519),
    [anon_sym_LBRACK] = ACTIONS(615),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(615),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(615),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(615),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(615),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym__] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_PIPE_PIPE] = ACTIONS(617),
    [anon_sym_SLASH_SLASH] = ACTIONS(617),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(617),
    [anon_sym_BSLASH_SLASH] = ACTIONS(617),
    [anon_sym_COMMA_COMMA] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [501] = {
    [aux_sym_parallel_replace_repeat1] = STATE(510),
    [anon_sym_LBRACK] = ACTIONS(611),
    [sym_symbol] = ACTIONS(611),
    [sym_string] = ACTIONS(613),
    [sym_any] = ACTIONS(613),
    [sym_zero] = ACTIONS(613),
    [sym_boundary] = ACTIONS(613),
    [sym_symbol_group] = ACTIONS(613),
    [anon_sym_LPAREN] = ACTIONS(611),
    [anon_sym_BQUOTE] = ACTIONS(613),
    [anon_sym_COMMA] = ACTIONS(611),
    [sym_colon] = ACTIONS(613),
    [sym_complement] = ACTIONS(613),
    [sym_term_complement] = ACTIONS(611),
    [sym_contains] = ACTIONS(613),
    [sym_plus] = ACTIONS(613),
    [sym_star] = ACTIONS(613),
    [sym_repeat] = ACTIONS(613),
    [sym_upper] = ACTIONS(613),
    [sym_lower] = ACTIONS(613),
    [sym_reverse] = ACTIONS(613),
    [sym_inverse] = ACTIONS(613),
    [sym_ignore] = ACTIONS(611),
    [sym_ignore_inside] = ACTIONS(613),
    [sym_union] = ACTIONS(611),
    [sym_intersect] = ACTIONS(613),
    [sym_subtract] = ACTIONS(611),
    [anon_sym__] = ACTIONS(611),
    [anon_sym_EQ_GT] = ACTIONS(613),
    [anon_sym_DASH_GT] = ACTIONS(611),
    [anon_sym_LT_DASH] = ACTIONS(613),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(613),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(613),
    [anon_sym_AT_DASH_GT] = ACTIONS(613),
    [anon_sym_DASH_GT_AT] = ACTIONS(613),
    [anon_sym_AT_GT] = ACTIONS(613),
    [anon_sym_GT_AT] = ACTIONS(613),
    [anon_sym_LBRACK_DOT] = ACTIONS(613),
    [anon_sym_PIPE_PIPE] = ACTIONS(613),
    [anon_sym_SLASH_SLASH] = ACTIONS(613),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(613),
    [anon_sym_BSLASH_SLASH] = ACTIONS(613),
    [anon_sym_COMMA_COMMA] = ACTIONS(613),
    [sym_crossproduct] = ACTIONS(613),
    [sym_compose] = ACTIONS(613),
    [sym_comment] = ACTIONS(3),
  },
  [502] = {
    [sym_condition_operators] = STATE(656),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [503] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(503),
    [anon_sym_LBRACK] = ACTIONS(587),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [anon_sym_COMMA] = ACTIONS(587),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(587),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(587),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(587),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym__] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_PIPE_PIPE] = ACTIONS(589),
    [anon_sym_SLASH_SLASH] = ACTIONS(589),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(589),
    [anon_sym_BSLASH_SLASH] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(738),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [504] = {
    [aux_sym_context_list_repeat1] = STATE(499),
    [anon_sym_LBRACK] = ACTIONS(615),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(617),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(615),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(615),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(615),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym__] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(617),
    [anon_sym_PIPE_PIPE] = ACTIONS(617),
    [anon_sym_SLASH_SLASH] = ACTIONS(617),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(617),
    [anon_sym_BSLASH_SLASH] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [505] = {
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(537),
    [anon_sym_SLASH_SLASH] = ACTIONS(537),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(537),
    [anon_sym_BSLASH_SLASH] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [506] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(526),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(537),
    [anon_sym_SLASH_SLASH] = ACTIONS(537),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(537),
    [anon_sym_BSLASH_SLASH] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(736),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [507] = {
    [sym_condition_operators] = STATE(671),
    [aux_sym_parallel_replace_repeat1] = STATE(532),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(728),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [508] = {
    [sym_condition_operators] = STATE(656),
    [aux_sym_parallel_replace_repeat1] = STATE(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(728),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [509] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(503),
    [anon_sym_LBRACK] = ACTIONS(591),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(591),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(591),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(591),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym__] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_PIPE_PIPE] = ACTIONS(593),
    [anon_sym_SLASH_SLASH] = ACTIONS(593),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(593),
    [anon_sym_BSLASH_SLASH] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(736),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [510] = {
    [aux_sym_parallel_replace_repeat1] = STATE(510),
    [anon_sym_LBRACK] = ACTIONS(471),
    [sym_symbol] = ACTIONS(471),
    [sym_string] = ACTIONS(473),
    [sym_any] = ACTIONS(473),
    [sym_zero] = ACTIONS(473),
    [sym_boundary] = ACTIONS(473),
    [sym_symbol_group] = ACTIONS(473),
    [anon_sym_LPAREN] = ACTIONS(471),
    [anon_sym_BQUOTE] = ACTIONS(473),
    [anon_sym_COMMA] = ACTIONS(741),
    [sym_colon] = ACTIONS(473),
    [sym_complement] = ACTIONS(473),
    [sym_term_complement] = ACTIONS(471),
    [sym_contains] = ACTIONS(473),
    [sym_plus] = ACTIONS(473),
    [sym_star] = ACTIONS(473),
    [sym_repeat] = ACTIONS(473),
    [sym_upper] = ACTIONS(473),
    [sym_lower] = ACTIONS(473),
    [sym_reverse] = ACTIONS(473),
    [sym_inverse] = ACTIONS(473),
    [sym_ignore] = ACTIONS(471),
    [sym_ignore_inside] = ACTIONS(473),
    [sym_union] = ACTIONS(471),
    [sym_intersect] = ACTIONS(473),
    [sym_subtract] = ACTIONS(471),
    [anon_sym__] = ACTIONS(471),
    [anon_sym_EQ_GT] = ACTIONS(473),
    [anon_sym_DASH_GT] = ACTIONS(471),
    [anon_sym_LT_DASH] = ACTIONS(473),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(473),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(473),
    [anon_sym_AT_DASH_GT] = ACTIONS(473),
    [anon_sym_DASH_GT_AT] = ACTIONS(473),
    [anon_sym_AT_GT] = ACTIONS(473),
    [anon_sym_GT_AT] = ACTIONS(473),
    [anon_sym_LBRACK_DOT] = ACTIONS(473),
    [anon_sym_PIPE_PIPE] = ACTIONS(473),
    [anon_sym_SLASH_SLASH] = ACTIONS(473),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(473),
    [anon_sym_BSLASH_SLASH] = ACTIONS(473),
    [anon_sym_COMMA_COMMA] = ACTIONS(473),
    [sym_crossproduct] = ACTIONS(473),
    [sym_compose] = ACTIONS(473),
    [sym_comment] = ACTIONS(3),
  },
  [511] = {
    [anon_sym_LBRACK] = ACTIONS(644),
    [sym_symbol] = ACTIONS(644),
    [sym_string] = ACTIONS(646),
    [sym_any] = ACTIONS(646),
    [sym_zero] = ACTIONS(646),
    [sym_boundary] = ACTIONS(646),
    [sym_symbol_group] = ACTIONS(646),
    [anon_sym_LPAREN] = ACTIONS(644),
    [anon_sym_BQUOTE] = ACTIONS(646),
    [anon_sym_COMMA] = ACTIONS(644),
    [sym_colon] = ACTIONS(646),
    [sym_complement] = ACTIONS(646),
    [sym_term_complement] = ACTIONS(644),
    [sym_contains] = ACTIONS(646),
    [sym_plus] = ACTIONS(646),
    [sym_star] = ACTIONS(646),
    [sym_repeat] = ACTIONS(646),
    [sym_upper] = ACTIONS(646),
    [sym_lower] = ACTIONS(646),
    [sym_reverse] = ACTIONS(646),
    [sym_inverse] = ACTIONS(646),
    [sym_ignore] = ACTIONS(644),
    [sym_ignore_inside] = ACTIONS(646),
    [sym_union] = ACTIONS(644),
    [sym_intersect] = ACTIONS(646),
    [sym_subtract] = ACTIONS(644),
    [anon_sym__] = ACTIONS(644),
    [anon_sym_EQ_GT] = ACTIONS(646),
    [anon_sym_DASH_GT] = ACTIONS(644),
    [anon_sym_LT_DASH] = ACTIONS(646),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(646),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(646),
    [anon_sym_AT_DASH_GT] = ACTIONS(646),
    [anon_sym_DASH_GT_AT] = ACTIONS(646),
    [anon_sym_AT_GT] = ACTIONS(646),
    [anon_sym_GT_AT] = ACTIONS(646),
    [anon_sym_LBRACK_DOT] = ACTIONS(646),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(646),
    [anon_sym_PIPE_PIPE] = ACTIONS(646),
    [anon_sym_SLASH_SLASH] = ACTIONS(646),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(646),
    [anon_sym_BSLASH_SLASH] = ACTIONS(646),
    [anon_sym_COMMA_COMMA] = ACTIONS(646),
    [sym_crossproduct] = ACTIONS(646),
    [sym_compose] = ACTIONS(646),
    [sym_comment] = ACTIONS(3),
  },
  [512] = {
    [anon_sym_LBRACK] = ACTIONS(659),
    [sym_symbol] = ACTIONS(659),
    [sym_string] = ACTIONS(661),
    [sym_any] = ACTIONS(661),
    [sym_zero] = ACTIONS(661),
    [sym_boundary] = ACTIONS(661),
    [sym_symbol_group] = ACTIONS(661),
    [anon_sym_LPAREN] = ACTIONS(659),
    [anon_sym_BQUOTE] = ACTIONS(661),
    [anon_sym_COMMA] = ACTIONS(659),
    [sym_colon] = ACTIONS(661),
    [sym_complement] = ACTIONS(661),
    [sym_term_complement] = ACTIONS(659),
    [sym_contains] = ACTIONS(661),
    [sym_plus] = ACTIONS(661),
    [sym_star] = ACTIONS(661),
    [sym_repeat] = ACTIONS(661),
    [sym_upper] = ACTIONS(661),
    [sym_lower] = ACTIONS(661),
    [sym_reverse] = ACTIONS(661),
    [sym_inverse] = ACTIONS(661),
    [sym_ignore] = ACTIONS(659),
    [sym_ignore_inside] = ACTIONS(661),
    [sym_union] = ACTIONS(659),
    [sym_intersect] = ACTIONS(661),
    [sym_subtract] = ACTIONS(659),
    [anon_sym__] = ACTIONS(659),
    [anon_sym_EQ_GT] = ACTIONS(661),
    [anon_sym_DASH_GT] = ACTIONS(659),
    [anon_sym_LT_DASH] = ACTIONS(661),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(661),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(661),
    [anon_sym_AT_DASH_GT] = ACTIONS(661),
    [anon_sym_DASH_GT_AT] = ACTIONS(661),
    [anon_sym_AT_GT] = ACTIONS(661),
    [anon_sym_GT_AT] = ACTIONS(661),
    [anon_sym_LBRACK_DOT] = ACTIONS(661),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(661),
    [anon_sym_PIPE_PIPE] = ACTIONS(661),
    [anon_sym_SLASH_SLASH] = ACTIONS(661),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(661),
    [anon_sym_BSLASH_SLASH] = ACTIONS(661),
    [anon_sym_COMMA_COMMA] = ACTIONS(661),
    [sym_crossproduct] = ACTIONS(661),
    [sym_compose] = ACTIONS(661),
    [sym_comment] = ACTIONS(3),
  },
  [513] = {
    [sym_condition_operators] = STATE(669),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [514] = {
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(53),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [515] = {
    [anon_sym_LBRACK] = ACTIONS(637),
    [sym_symbol] = ACTIONS(637),
    [sym_string] = ACTIONS(639),
    [sym_any] = ACTIONS(639),
    [sym_zero] = ACTIONS(639),
    [sym_boundary] = ACTIONS(639),
    [sym_symbol_group] = ACTIONS(639),
    [anon_sym_LPAREN] = ACTIONS(637),
    [anon_sym_BQUOTE] = ACTIONS(639),
    [anon_sym_COMMA] = ACTIONS(637),
    [sym_colon] = ACTIONS(639),
    [sym_complement] = ACTIONS(639),
    [sym_term_complement] = ACTIONS(637),
    [sym_contains] = ACTIONS(639),
    [sym_plus] = ACTIONS(639),
    [sym_star] = ACTIONS(639),
    [sym_repeat] = ACTIONS(639),
    [sym_upper] = ACTIONS(639),
    [sym_lower] = ACTIONS(639),
    [sym_reverse] = ACTIONS(639),
    [sym_inverse] = ACTIONS(639),
    [sym_ignore] = ACTIONS(637),
    [sym_ignore_inside] = ACTIONS(639),
    [sym_union] = ACTIONS(637),
    [sym_intersect] = ACTIONS(639),
    [sym_subtract] = ACTIONS(637),
    [anon_sym__] = ACTIONS(637),
    [anon_sym_EQ_GT] = ACTIONS(639),
    [anon_sym_DASH_GT] = ACTIONS(637),
    [anon_sym_LT_DASH] = ACTIONS(639),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(639),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(639),
    [anon_sym_AT_DASH_GT] = ACTIONS(639),
    [anon_sym_DASH_GT_AT] = ACTIONS(639),
    [anon_sym_AT_GT] = ACTIONS(639),
    [anon_sym_GT_AT] = ACTIONS(639),
    [anon_sym_LBRACK_DOT] = ACTIONS(639),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(639),
    [anon_sym_PIPE_PIPE] = ACTIONS(639),
    [anon_sym_SLASH_SLASH] = ACTIONS(639),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(639),
    [anon_sym_BSLASH_SLASH] = ACTIONS(639),
    [anon_sym_COMMA_COMMA] = ACTIONS(639),
    [sym_crossproduct] = ACTIONS(639),
    [sym_compose] = ACTIONS(639),
    [sym_comment] = ACTIONS(3),
  },
  [516] = {
    [anon_sym_LBRACK] = ACTIONS(655),
    [sym_symbol] = ACTIONS(655),
    [sym_string] = ACTIONS(657),
    [sym_any] = ACTIONS(657),
    [sym_zero] = ACTIONS(657),
    [sym_boundary] = ACTIONS(657),
    [sym_symbol_group] = ACTIONS(657),
    [anon_sym_LPAREN] = ACTIONS(655),
    [anon_sym_BQUOTE] = ACTIONS(657),
    [anon_sym_COMMA] = ACTIONS(655),
    [sym_colon] = ACTIONS(657),
    [sym_complement] = ACTIONS(657),
    [sym_term_complement] = ACTIONS(655),
    [sym_contains] = ACTIONS(657),
    [sym_plus] = ACTIONS(657),
    [sym_star] = ACTIONS(657),
    [sym_repeat] = ACTIONS(657),
    [sym_upper] = ACTIONS(657),
    [sym_lower] = ACTIONS(657),
    [sym_reverse] = ACTIONS(657),
    [sym_inverse] = ACTIONS(657),
    [sym_ignore] = ACTIONS(655),
    [sym_ignore_inside] = ACTIONS(657),
    [sym_union] = ACTIONS(655),
    [sym_intersect] = ACTIONS(657),
    [sym_subtract] = ACTIONS(655),
    [anon_sym__] = ACTIONS(655),
    [anon_sym_EQ_GT] = ACTIONS(657),
    [anon_sym_DASH_GT] = ACTIONS(655),
    [anon_sym_LT_DASH] = ACTIONS(657),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(657),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(657),
    [anon_sym_AT_DASH_GT] = ACTIONS(657),
    [anon_sym_DASH_GT_AT] = ACTIONS(657),
    [anon_sym_AT_GT] = ACTIONS(657),
    [anon_sym_GT_AT] = ACTIONS(657),
    [anon_sym_LBRACK_DOT] = ACTIONS(657),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(657),
    [anon_sym_PIPE_PIPE] = ACTIONS(657),
    [anon_sym_SLASH_SLASH] = ACTIONS(657),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(657),
    [anon_sym_BSLASH_SLASH] = ACTIONS(657),
    [anon_sym_COMMA_COMMA] = ACTIONS(657),
    [sym_crossproduct] = ACTIONS(657),
    [sym_compose] = ACTIONS(657),
    [sym_comment] = ACTIONS(3),
  },
  [517] = {
    [sym_condition_operators] = STATE(664),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [518] = {
    [aux_sym_parallel_replace_repeat1] = STATE(518),
    [ts_builtin_sym_end] = ACTIONS(473),
    [sym_semicolon] = ACTIONS(471),
    [anon_sym_LBRACK] = ACTIONS(471),
    [sym_symbol] = ACTIONS(471),
    [sym_string] = ACTIONS(473),
    [sym_any] = ACTIONS(473),
    [sym_zero] = ACTIONS(473),
    [sym_boundary] = ACTIONS(473),
    [sym_symbol_group] = ACTIONS(473),
    [anon_sym_LPAREN] = ACTIONS(471),
    [anon_sym_BQUOTE] = ACTIONS(473),
    [anon_sym_COMMA] = ACTIONS(744),
    [sym_colon] = ACTIONS(473),
    [sym_complement] = ACTIONS(473),
    [sym_term_complement] = ACTIONS(471),
    [sym_contains] = ACTIONS(473),
    [sym_plus] = ACTIONS(473),
    [sym_star] = ACTIONS(473),
    [sym_repeat] = ACTIONS(473),
    [sym_upper] = ACTIONS(473),
    [sym_lower] = ACTIONS(473),
    [sym_reverse] = ACTIONS(473),
    [sym_inverse] = ACTIONS(473),
    [sym_ignore] = ACTIONS(471),
    [sym_ignore_inside] = ACTIONS(473),
    [sym_union] = ACTIONS(471),
    [sym_intersect] = ACTIONS(473),
    [sym_subtract] = ACTIONS(471),
    [anon_sym_EQ_GT] = ACTIONS(473),
    [anon_sym_DASH_GT] = ACTIONS(471),
    [anon_sym_LT_DASH] = ACTIONS(473),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(473),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(473),
    [anon_sym_AT_DASH_GT] = ACTIONS(473),
    [anon_sym_DASH_GT_AT] = ACTIONS(473),
    [anon_sym_AT_GT] = ACTIONS(473),
    [anon_sym_GT_AT] = ACTIONS(473),
    [anon_sym_LBRACK_DOT] = ACTIONS(473),
    [anon_sym_PIPE_PIPE] = ACTIONS(473),
    [anon_sym_SLASH_SLASH] = ACTIONS(473),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(473),
    [anon_sym_BSLASH_SLASH] = ACTIONS(473),
    [sym_crossproduct] = ACTIONS(473),
    [sym_compose] = ACTIONS(473),
    [sym_comment] = ACTIONS(3),
  },
  [519] = {
    [aux_sym_context_list_repeat1] = STATE(520),
    [anon_sym_LBRACK] = ACTIONS(607),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(607),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(607),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(607),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(607),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym__] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_PIPE_PIPE] = ACTIONS(609),
    [anon_sym_SLASH_SLASH] = ACTIONS(609),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(609),
    [anon_sym_BSLASH_SLASH] = ACTIONS(609),
    [anon_sym_COMMA_COMMA] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [520] = {
    [aux_sym_context_list_repeat1] = STATE(520),
    [anon_sym_LBRACK] = ACTIONS(621),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(747),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(621),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(621),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(621),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym__] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_PIPE_PIPE] = ACTIONS(623),
    [anon_sym_SLASH_SLASH] = ACTIONS(623),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(623),
    [anon_sym_BSLASH_SLASH] = ACTIONS(623),
    [anon_sym_COMMA_COMMA] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [521] = {
    [anon_sym_LBRACK] = ACTIONS(628),
    [sym_symbol] = ACTIONS(628),
    [sym_string] = ACTIONS(630),
    [sym_any] = ACTIONS(630),
    [sym_zero] = ACTIONS(630),
    [sym_boundary] = ACTIONS(630),
    [sym_symbol_group] = ACTIONS(630),
    [anon_sym_LPAREN] = ACTIONS(628),
    [anon_sym_BQUOTE] = ACTIONS(630),
    [anon_sym_COMMA] = ACTIONS(628),
    [sym_colon] = ACTIONS(630),
    [sym_complement] = ACTIONS(630),
    [sym_term_complement] = ACTIONS(628),
    [sym_contains] = ACTIONS(630),
    [sym_plus] = ACTIONS(630),
    [sym_star] = ACTIONS(630),
    [sym_repeat] = ACTIONS(630),
    [sym_upper] = ACTIONS(630),
    [sym_lower] = ACTIONS(630),
    [sym_reverse] = ACTIONS(630),
    [sym_inverse] = ACTIONS(630),
    [sym_ignore] = ACTIONS(628),
    [sym_ignore_inside] = ACTIONS(630),
    [sym_union] = ACTIONS(628),
    [sym_intersect] = ACTIONS(630),
    [sym_subtract] = ACTIONS(628),
    [anon_sym__] = ACTIONS(628),
    [anon_sym_EQ_GT] = ACTIONS(630),
    [anon_sym_DASH_GT] = ACTIONS(628),
    [anon_sym_LT_DASH] = ACTIONS(630),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(630),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(630),
    [anon_sym_AT_DASH_GT] = ACTIONS(630),
    [anon_sym_DASH_GT_AT] = ACTIONS(630),
    [anon_sym_AT_GT] = ACTIONS(630),
    [anon_sym_GT_AT] = ACTIONS(630),
    [anon_sym_LBRACK_DOT] = ACTIONS(630),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(630),
    [anon_sym_PIPE_PIPE] = ACTIONS(630),
    [anon_sym_SLASH_SLASH] = ACTIONS(630),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(630),
    [anon_sym_BSLASH_SLASH] = ACTIONS(630),
    [anon_sym_COMMA_COMMA] = ACTIONS(630),
    [sym_crossproduct] = ACTIONS(630),
    [sym_compose] = ACTIONS(630),
    [sym_comment] = ACTIONS(3),
  },
  [522] = {
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(73),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(73),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(73),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(75),
    [anon_sym_PIPE_PIPE] = ACTIONS(75),
    [anon_sym_SLASH_SLASH] = ACTIONS(75),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(75),
    [anon_sym_BSLASH_SLASH] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [523] = {
    [aux_sym_context_list_repeat1] = STATE(523),
    [ts_builtin_sym_end] = ACTIONS(623),
    [sym_semicolon] = ACTIONS(621),
    [anon_sym_LBRACK] = ACTIONS(621),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(750),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(621),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(621),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(621),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_PIPE_PIPE] = ACTIONS(623),
    [anon_sym_SLASH_SLASH] = ACTIONS(623),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(623),
    [anon_sym_BSLASH_SLASH] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [524] = {
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(53),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(51),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(51),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(51),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(53),
    [anon_sym_PIPE_PIPE] = ACTIONS(53),
    [anon_sym_SLASH_SLASH] = ACTIONS(53),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(53),
    [anon_sym_BSLASH_SLASH] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [525] = {
    [aux_sym_parallel_replace_repeat1] = STATE(494),
    [anon_sym_LBRACK] = ACTIONS(611),
    [sym_symbol] = ACTIONS(611),
    [sym_string] = ACTIONS(613),
    [sym_any] = ACTIONS(613),
    [sym_zero] = ACTIONS(613),
    [sym_boundary] = ACTIONS(613),
    [sym_symbol_group] = ACTIONS(613),
    [anon_sym_LPAREN] = ACTIONS(611),
    [anon_sym_BQUOTE] = ACTIONS(613),
    [anon_sym_COMMA] = ACTIONS(613),
    [sym_colon] = ACTIONS(613),
    [sym_complement] = ACTIONS(613),
    [sym_term_complement] = ACTIONS(611),
    [sym_contains] = ACTIONS(613),
    [sym_plus] = ACTIONS(613),
    [sym_star] = ACTIONS(613),
    [sym_repeat] = ACTIONS(613),
    [sym_upper] = ACTIONS(613),
    [sym_lower] = ACTIONS(613),
    [sym_reverse] = ACTIONS(613),
    [sym_inverse] = ACTIONS(613),
    [sym_ignore] = ACTIONS(611),
    [sym_ignore_inside] = ACTIONS(613),
    [sym_union] = ACTIONS(611),
    [sym_intersect] = ACTIONS(613),
    [sym_subtract] = ACTIONS(611),
    [anon_sym__] = ACTIONS(611),
    [anon_sym_EQ_GT] = ACTIONS(613),
    [anon_sym_DASH_GT] = ACTIONS(611),
    [anon_sym_LT_DASH] = ACTIONS(613),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(613),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(613),
    [anon_sym_AT_DASH_GT] = ACTIONS(613),
    [anon_sym_DASH_GT_AT] = ACTIONS(613),
    [anon_sym_AT_GT] = ACTIONS(613),
    [anon_sym_GT_AT] = ACTIONS(613),
    [anon_sym_LBRACK_DOT] = ACTIONS(613),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(613),
    [anon_sym_PIPE_PIPE] = ACTIONS(613),
    [anon_sym_SLASH_SLASH] = ACTIONS(613),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(613),
    [anon_sym_BSLASH_SLASH] = ACTIONS(613),
    [sym_crossproduct] = ACTIONS(613),
    [sym_compose] = ACTIONS(613),
    [sym_comment] = ACTIONS(3),
  },
  [526] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(503),
    [anon_sym_LBRACK] = ACTIONS(591),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(591),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(591),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(591),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym__] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_PIPE_PIPE] = ACTIONS(593),
    [anon_sym_SLASH_SLASH] = ACTIONS(593),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(593),
    [anon_sym_BSLASH_SLASH] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(593),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [527] = {
    [aux_sym_parallel_replace_repeat1] = STATE(518),
    [ts_builtin_sym_end] = ACTIONS(613),
    [sym_semicolon] = ACTIONS(611),
    [anon_sym_LBRACK] = ACTIONS(611),
    [sym_symbol] = ACTIONS(611),
    [sym_string] = ACTIONS(613),
    [sym_any] = ACTIONS(613),
    [sym_zero] = ACTIONS(613),
    [sym_boundary] = ACTIONS(613),
    [sym_symbol_group] = ACTIONS(613),
    [anon_sym_LPAREN] = ACTIONS(611),
    [anon_sym_BQUOTE] = ACTIONS(613),
    [anon_sym_COMMA] = ACTIONS(613),
    [sym_colon] = ACTIONS(613),
    [sym_complement] = ACTIONS(613),
    [sym_term_complement] = ACTIONS(611),
    [sym_contains] = ACTIONS(613),
    [sym_plus] = ACTIONS(613),
    [sym_star] = ACTIONS(613),
    [sym_repeat] = ACTIONS(613),
    [sym_upper] = ACTIONS(613),
    [sym_lower] = ACTIONS(613),
    [sym_reverse] = ACTIONS(613),
    [sym_inverse] = ACTIONS(613),
    [sym_ignore] = ACTIONS(611),
    [sym_ignore_inside] = ACTIONS(613),
    [sym_union] = ACTIONS(611),
    [sym_intersect] = ACTIONS(613),
    [sym_subtract] = ACTIONS(611),
    [anon_sym_EQ_GT] = ACTIONS(613),
    [anon_sym_DASH_GT] = ACTIONS(611),
    [anon_sym_LT_DASH] = ACTIONS(613),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(613),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(613),
    [anon_sym_AT_DASH_GT] = ACTIONS(613),
    [anon_sym_DASH_GT_AT] = ACTIONS(613),
    [anon_sym_AT_GT] = ACTIONS(613),
    [anon_sym_GT_AT] = ACTIONS(613),
    [anon_sym_LBRACK_DOT] = ACTIONS(613),
    [anon_sym_PIPE_PIPE] = ACTIONS(613),
    [anon_sym_SLASH_SLASH] = ACTIONS(613),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(613),
    [anon_sym_BSLASH_SLASH] = ACTIONS(613),
    [sym_crossproduct] = ACTIONS(613),
    [sym_compose] = ACTIONS(613),
    [sym_comment] = ACTIONS(3),
  },
  [528] = {
    [aux_sym_context_list_repeat1] = STATE(523),
    [ts_builtin_sym_end] = ACTIONS(609),
    [sym_semicolon] = ACTIONS(607),
    [anon_sym_LBRACK] = ACTIONS(607),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(609),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(607),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(607),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(607),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_PIPE_PIPE] = ACTIONS(609),
    [anon_sym_SLASH_SLASH] = ACTIONS(609),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(609),
    [anon_sym_BSLASH_SLASH] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [529] = {
    [sym_condition_operators] = STATE(669),
    [aux_sym_parallel_replace_repeat1] = STATE(472),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(648),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [530] = {
    [sym_condition_operators] = STATE(656),
    [aux_sym_parallel_replace_repeat1] = STATE(472),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(648),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [531] = {
    [aux_sym_context_list_repeat1] = STATE(531),
    [anon_sym_LBRACK] = ACTIONS(621),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(753),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(621),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(621),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(621),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym__] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_PIPE_PIPE] = ACTIONS(623),
    [anon_sym_SLASH_SLASH] = ACTIONS(623),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(623),
    [anon_sym_BSLASH_SLASH] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [532] = {
    [aux_sym_parallel_replace_repeat1] = STATE(541),
    [anon_sym_LBRACK] = ACTIONS(611),
    [sym_symbol] = ACTIONS(611),
    [sym_string] = ACTIONS(613),
    [sym_any] = ACTIONS(613),
    [sym_zero] = ACTIONS(613),
    [sym_boundary] = ACTIONS(613),
    [sym_symbol_group] = ACTIONS(613),
    [anon_sym_LPAREN] = ACTIONS(611),
    [anon_sym_BQUOTE] = ACTIONS(613),
    [anon_sym_COMMA] = ACTIONS(728),
    [sym_colon] = ACTIONS(613),
    [sym_complement] = ACTIONS(613),
    [sym_term_complement] = ACTIONS(611),
    [sym_contains] = ACTIONS(613),
    [sym_plus] = ACTIONS(613),
    [sym_star] = ACTIONS(613),
    [sym_repeat] = ACTIONS(613),
    [sym_upper] = ACTIONS(613),
    [sym_lower] = ACTIONS(613),
    [sym_reverse] = ACTIONS(613),
    [sym_inverse] = ACTIONS(613),
    [sym_ignore] = ACTIONS(611),
    [sym_ignore_inside] = ACTIONS(613),
    [sym_union] = ACTIONS(611),
    [sym_intersect] = ACTIONS(613),
    [sym_subtract] = ACTIONS(611),
    [anon_sym__] = ACTIONS(611),
    [anon_sym_EQ_GT] = ACTIONS(613),
    [anon_sym_DASH_GT] = ACTIONS(611),
    [anon_sym_LT_DASH] = ACTIONS(613),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(613),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(613),
    [anon_sym_AT_DASH_GT] = ACTIONS(613),
    [anon_sym_DASH_GT_AT] = ACTIONS(613),
    [anon_sym_AT_GT] = ACTIONS(613),
    [anon_sym_GT_AT] = ACTIONS(613),
    [anon_sym_LBRACK_DOT] = ACTIONS(613),
    [anon_sym_PIPE_PIPE] = ACTIONS(613),
    [anon_sym_SLASH_SLASH] = ACTIONS(613),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(613),
    [anon_sym_BSLASH_SLASH] = ACTIONS(613),
    [sym_crossproduct] = ACTIONS(613),
    [sym_compose] = ACTIONS(613),
    [sym_comment] = ACTIONS(3),
  },
  [533] = {
    [sym_condition_operators] = STATE(646),
    [aux_sym_parallel_replace_repeat1] = STATE(472),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(648),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [534] = {
    [sym_condition_operators] = STATE(678),
    [aux_sym_parallel_replace_repeat1] = STATE(472),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(648),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [535] = {
    [aux_sym_parallel_replace_repeat1] = STATE(541),
    [anon_sym_LBRACK] = ACTIONS(611),
    [sym_symbol] = ACTIONS(611),
    [sym_string] = ACTIONS(613),
    [sym_any] = ACTIONS(613),
    [sym_zero] = ACTIONS(613),
    [sym_boundary] = ACTIONS(613),
    [sym_symbol_group] = ACTIONS(613),
    [anon_sym_LPAREN] = ACTIONS(611),
    [anon_sym_BQUOTE] = ACTIONS(613),
    [anon_sym_COMMA] = ACTIONS(613),
    [sym_colon] = ACTIONS(613),
    [sym_complement] = ACTIONS(613),
    [sym_term_complement] = ACTIONS(611),
    [sym_contains] = ACTIONS(613),
    [sym_plus] = ACTIONS(613),
    [sym_star] = ACTIONS(613),
    [sym_repeat] = ACTIONS(613),
    [sym_upper] = ACTIONS(613),
    [sym_lower] = ACTIONS(613),
    [sym_reverse] = ACTIONS(613),
    [sym_inverse] = ACTIONS(613),
    [sym_ignore] = ACTIONS(611),
    [sym_ignore_inside] = ACTIONS(613),
    [sym_union] = ACTIONS(611),
    [sym_intersect] = ACTIONS(613),
    [sym_subtract] = ACTIONS(611),
    [anon_sym__] = ACTIONS(611),
    [anon_sym_EQ_GT] = ACTIONS(613),
    [anon_sym_DASH_GT] = ACTIONS(611),
    [anon_sym_LT_DASH] = ACTIONS(613),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(613),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(613),
    [anon_sym_AT_DASH_GT] = ACTIONS(613),
    [anon_sym_DASH_GT_AT] = ACTIONS(613),
    [anon_sym_AT_GT] = ACTIONS(613),
    [anon_sym_GT_AT] = ACTIONS(613),
    [anon_sym_LBRACK_DOT] = ACTIONS(613),
    [anon_sym_PIPE_PIPE] = ACTIONS(613),
    [anon_sym_SLASH_SLASH] = ACTIONS(613),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(613),
    [anon_sym_BSLASH_SLASH] = ACTIONS(613),
    [sym_crossproduct] = ACTIONS(613),
    [sym_compose] = ACTIONS(613),
    [sym_comment] = ACTIONS(3),
  },
  [536] = {
    [sym_condition_operators] = STATE(675),
    [aux_sym_parallel_replace_repeat1] = STATE(472),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(648),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [537] = {
    [sym_condition_operators] = STATE(651),
    [aux_sym_parallel_replace_repeat1] = STATE(472),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(648),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [538] = {
    [aux_sym_context_list_repeat1] = STATE(540),
    [anon_sym_LBRACK] = ACTIONS(615),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(617),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(615),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(615),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(615),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym__] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_PIPE_PIPE] = ACTIONS(617),
    [anon_sym_SLASH_SLASH] = ACTIONS(617),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(617),
    [anon_sym_BSLASH_SLASH] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [539] = {
    [sym_condition_operators] = STATE(674),
    [aux_sym_parallel_replace_repeat1] = STATE(472),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(648),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [540] = {
    [aux_sym_context_list_repeat1] = STATE(531),
    [anon_sym_LBRACK] = ACTIONS(607),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(609),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(607),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(607),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(607),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym__] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_PIPE_PIPE] = ACTIONS(609),
    [anon_sym_SLASH_SLASH] = ACTIONS(609),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(609),
    [anon_sym_BSLASH_SLASH] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [541] = {
    [aux_sym_parallel_replace_repeat1] = STATE(541),
    [anon_sym_LBRACK] = ACTIONS(471),
    [sym_symbol] = ACTIONS(471),
    [sym_string] = ACTIONS(473),
    [sym_any] = ACTIONS(473),
    [sym_zero] = ACTIONS(473),
    [sym_boundary] = ACTIONS(473),
    [sym_symbol_group] = ACTIONS(473),
    [anon_sym_LPAREN] = ACTIONS(471),
    [anon_sym_BQUOTE] = ACTIONS(473),
    [anon_sym_COMMA] = ACTIONS(756),
    [sym_colon] = ACTIONS(473),
    [sym_complement] = ACTIONS(473),
    [sym_term_complement] = ACTIONS(471),
    [sym_contains] = ACTIONS(473),
    [sym_plus] = ACTIONS(473),
    [sym_star] = ACTIONS(473),
    [sym_repeat] = ACTIONS(473),
    [sym_upper] = ACTIONS(473),
    [sym_lower] = ACTIONS(473),
    [sym_reverse] = ACTIONS(473),
    [sym_inverse] = ACTIONS(473),
    [sym_ignore] = ACTIONS(471),
    [sym_ignore_inside] = ACTIONS(473),
    [sym_union] = ACTIONS(471),
    [sym_intersect] = ACTIONS(473),
    [sym_subtract] = ACTIONS(471),
    [anon_sym__] = ACTIONS(471),
    [anon_sym_EQ_GT] = ACTIONS(473),
    [anon_sym_DASH_GT] = ACTIONS(471),
    [anon_sym_LT_DASH] = ACTIONS(473),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(473),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(473),
    [anon_sym_AT_DASH_GT] = ACTIONS(473),
    [anon_sym_DASH_GT_AT] = ACTIONS(473),
    [anon_sym_AT_GT] = ACTIONS(473),
    [anon_sym_GT_AT] = ACTIONS(473),
    [anon_sym_LBRACK_DOT] = ACTIONS(473),
    [anon_sym_PIPE_PIPE] = ACTIONS(473),
    [anon_sym_SLASH_SLASH] = ACTIONS(473),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(473),
    [anon_sym_BSLASH_SLASH] = ACTIONS(473),
    [sym_crossproduct] = ACTIONS(473),
    [sym_compose] = ACTIONS(473),
    [sym_comment] = ACTIONS(3),
  },
  [542] = {
    [sym_condition_operators] = STATE(657),
    [aux_sym_parallel_replace_repeat1] = STATE(472),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(648),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [543] = {
    [sym_condition_operators] = STATE(671),
    [aux_sym_parallel_replace_repeat1] = STATE(472),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(648),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [544] = {
    [sym_condition_operators] = STATE(660),
    [aux_sym_parallel_replace_repeat1] = STATE(472),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(648),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [545] = {
    [sym_condition_operators] = STATE(675),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [546] = {
    [sym_condition_operators] = STATE(653),
    [aux_sym_parallel_replace_repeat1] = STATE(472),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(648),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [547] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(549),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(537),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(537),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(537),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(759),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [548] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(548),
    [anon_sym_LBRACK] = ACTIONS(587),
    [anon_sym_RBRACK] = ACTIONS(589),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_RPAREN] = ACTIONS(589),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [anon_sym_COMMA] = ACTIONS(587),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(589),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(589),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(589),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_DOT_RBRACK] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(761),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [549] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(548),
    [anon_sym_LBRACK] = ACTIONS(591),
    [anon_sym_RBRACK] = ACTIONS(593),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_RPAREN] = ACTIONS(593),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(593),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(593),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(593),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_DOT_RBRACK] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(593),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [550] = {
    [aux_sym_context_list_repeat1] = STATE(555),
    [anon_sym_LBRACK] = ACTIONS(615),
    [anon_sym_RBRACK] = ACTIONS(617),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_RPAREN] = ACTIONS(617),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(615),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(617),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(617),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(617),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_DOT_RBRACK] = ACTIONS(617),
    [anon_sym_COMMA_COMMA] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [551] = {
    [aux_sym_context_list_repeat1] = STATE(558),
    [anon_sym_LBRACK] = ACTIONS(615),
    [anon_sym_RBRACK] = ACTIONS(617),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_RPAREN] = ACTIONS(617),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(764),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(617),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(617),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(617),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_DOT_RBRACK] = ACTIONS(617),
    [anon_sym_COMMA_COMMA] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [552] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(573),
    [anon_sym_LBRACK] = ACTIONS(587),
    [anon_sym_RBRACK] = ACTIONS(589),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_RPAREN] = ACTIONS(589),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [anon_sym_COMMA] = ACTIONS(587),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(589),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(589),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(589),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_DOT_RBRACK] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(589),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [553] = {
    [aux_sym_context_list_repeat1] = STATE(553),
    [anon_sym_LBRACK] = ACTIONS(621),
    [anon_sym_RBRACK] = ACTIONS(623),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_RPAREN] = ACTIONS(623),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(766),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(623),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(623),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(623),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_DOT_RBRACK] = ACTIONS(623),
    [anon_sym_COMMA_COMMA] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [554] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(548),
    [anon_sym_LBRACK] = ACTIONS(591),
    [anon_sym_RBRACK] = ACTIONS(593),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_RPAREN] = ACTIONS(593),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(593),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(593),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(593),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_DOT_RBRACK] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(759),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [555] = {
    [aux_sym_context_list_repeat1] = STATE(553),
    [anon_sym_LBRACK] = ACTIONS(607),
    [anon_sym_RBRACK] = ACTIONS(609),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_RPAREN] = ACTIONS(609),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(607),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(609),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(609),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(609),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_DOT_RBRACK] = ACTIONS(609),
    [anon_sym_COMMA_COMMA] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [556] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(554),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(537),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(537),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(537),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(759),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [557] = {
    [sym_condition_operators] = STATE(671),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [558] = {
    [aux_sym_context_list_repeat1] = STATE(553),
    [anon_sym_LBRACK] = ACTIONS(607),
    [anon_sym_RBRACK] = ACTIONS(609),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_RPAREN] = ACTIONS(609),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(764),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(609),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(609),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(609),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_DOT_RBRACK] = ACTIONS(609),
    [anon_sym_COMMA_COMMA] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [559] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(590),
    [ts_builtin_sym_end] = ACTIONS(593),
    [sym_semicolon] = ACTIONS(591),
    [anon_sym_LBRACK] = ACTIONS(591),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(593),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(593),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(593),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(769),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [560] = {
    [sym_condition_operators] = STATE(678),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [561] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(590),
    [ts_builtin_sym_end] = ACTIONS(593),
    [sym_semicolon] = ACTIONS(591),
    [anon_sym_LBRACK] = ACTIONS(591),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(593),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(593),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(593),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(593),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [562] = {
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(537),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(537),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(537),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [563] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(573),
    [anon_sym_LBRACK] = ACTIONS(535),
    [anon_sym_RBRACK] = ACTIONS(537),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_RPAREN] = ACTIONS(537),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(537),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(537),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(537),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_DOT_RBRACK] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(771),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [564] = {
    [aux_sym_context_list_repeat1] = STATE(592),
    [anon_sym_LBRACK] = ACTIONS(615),
    [anon_sym_RBRACK] = ACTIONS(617),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_RPAREN] = ACTIONS(617),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(617),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(617),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(617),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(617),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_DOT_RBRACK] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [565] = {
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(53),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(53),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [566] = {
    [anon_sym_LBRACK] = ACTIONS(655),
    [anon_sym_RBRACK] = ACTIONS(657),
    [sym_symbol] = ACTIONS(655),
    [sym_string] = ACTIONS(657),
    [sym_any] = ACTIONS(657),
    [sym_zero] = ACTIONS(657),
    [sym_boundary] = ACTIONS(657),
    [sym_symbol_group] = ACTIONS(657),
    [anon_sym_LPAREN] = ACTIONS(655),
    [anon_sym_RPAREN] = ACTIONS(657),
    [anon_sym_BQUOTE] = ACTIONS(657),
    [anon_sym_COMMA] = ACTIONS(655),
    [sym_colon] = ACTIONS(657),
    [sym_complement] = ACTIONS(657),
    [sym_term_complement] = ACTIONS(657),
    [sym_contains] = ACTIONS(657),
    [sym_plus] = ACTIONS(657),
    [sym_star] = ACTIONS(657),
    [sym_repeat] = ACTIONS(657),
    [sym_upper] = ACTIONS(657),
    [sym_lower] = ACTIONS(657),
    [sym_reverse] = ACTIONS(657),
    [sym_inverse] = ACTIONS(657),
    [sym_ignore] = ACTIONS(657),
    [sym_ignore_inside] = ACTIONS(657),
    [sym_union] = ACTIONS(657),
    [sym_intersect] = ACTIONS(657),
    [sym_subtract] = ACTIONS(655),
    [anon_sym_EQ_GT] = ACTIONS(657),
    [anon_sym_DASH_GT] = ACTIONS(655),
    [anon_sym_LT_DASH] = ACTIONS(657),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(657),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(657),
    [anon_sym_AT_DASH_GT] = ACTIONS(657),
    [anon_sym_DASH_GT_AT] = ACTIONS(657),
    [anon_sym_AT_GT] = ACTIONS(657),
    [anon_sym_GT_AT] = ACTIONS(657),
    [anon_sym_LBRACK_DOT] = ACTIONS(657),
    [anon_sym_DOT_RBRACK] = ACTIONS(657),
    [anon_sym_COMMA_COMMA] = ACTIONS(657),
    [sym_crossproduct] = ACTIONS(657),
    [sym_compose] = ACTIONS(657),
    [sym_comment] = ACTIONS(3),
  },
  [567] = {
    [anon_sym_LBRACK] = ACTIONS(51),
    [anon_sym_RBRACK] = ACTIONS(53),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_RPAREN] = ACTIONS(53),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(53),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(53),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_DOT_RBRACK] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [568] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(568),
    [anon_sym_LBRACK] = ACTIONS(587),
    [anon_sym_RBRACK] = ACTIONS(589),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_RPAREN] = ACTIONS(589),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(589),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(589),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(589),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_DOT_RBRACK] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(773),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [569] = {
    [aux_sym_context_list_repeat1] = STATE(576),
    [anon_sym_LBRACK] = ACTIONS(607),
    [anon_sym_RBRACK] = ACTIONS(609),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_RPAREN] = ACTIONS(609),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(776),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(609),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(609),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(609),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_DOT_RBRACK] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [570] = {
    [sym_condition_operators] = STATE(671),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [571] = {
    [anon_sym_LBRACK] = ACTIONS(676),
    [anon_sym_RBRACK] = ACTIONS(678),
    [sym_symbol] = ACTIONS(676),
    [sym_string] = ACTIONS(678),
    [sym_any] = ACTIONS(678),
    [sym_zero] = ACTIONS(678),
    [sym_boundary] = ACTIONS(678),
    [sym_symbol_group] = ACTIONS(678),
    [anon_sym_LPAREN] = ACTIONS(676),
    [anon_sym_RPAREN] = ACTIONS(678),
    [anon_sym_BQUOTE] = ACTIONS(678),
    [anon_sym_COMMA] = ACTIONS(676),
    [sym_colon] = ACTIONS(678),
    [sym_complement] = ACTIONS(678),
    [sym_term_complement] = ACTIONS(678),
    [sym_contains] = ACTIONS(678),
    [sym_plus] = ACTIONS(678),
    [sym_star] = ACTIONS(678),
    [sym_repeat] = ACTIONS(678),
    [sym_upper] = ACTIONS(678),
    [sym_lower] = ACTIONS(678),
    [sym_reverse] = ACTIONS(678),
    [sym_inverse] = ACTIONS(678),
    [sym_ignore] = ACTIONS(678),
    [sym_ignore_inside] = ACTIONS(678),
    [sym_union] = ACTIONS(678),
    [sym_intersect] = ACTIONS(678),
    [sym_subtract] = ACTIONS(676),
    [anon_sym_EQ_GT] = ACTIONS(678),
    [anon_sym_DASH_GT] = ACTIONS(676),
    [anon_sym_LT_DASH] = ACTIONS(678),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(678),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(678),
    [anon_sym_AT_DASH_GT] = ACTIONS(678),
    [anon_sym_DASH_GT_AT] = ACTIONS(678),
    [anon_sym_AT_GT] = ACTIONS(678),
    [anon_sym_GT_AT] = ACTIONS(678),
    [anon_sym_LBRACK_DOT] = ACTIONS(678),
    [anon_sym_DOT_RBRACK] = ACTIONS(678),
    [anon_sym_COMMA_COMMA] = ACTIONS(678),
    [sym_crossproduct] = ACTIONS(678),
    [sym_compose] = ACTIONS(678),
    [sym_comment] = ACTIONS(3),
  },
  [572] = {
    [anon_sym_LBRACK] = ACTIONS(621),
    [anon_sym_RBRACK] = ACTIONS(623),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_RPAREN] = ACTIONS(623),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(621),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(623),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(623),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(623),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_DOT_RBRACK] = ACTIONS(623),
    [anon_sym_COMMA_COMMA] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [573] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(568),
    [anon_sym_LBRACK] = ACTIONS(591),
    [anon_sym_RBRACK] = ACTIONS(593),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_RPAREN] = ACTIONS(593),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(593),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(593),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(593),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_DOT_RBRACK] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(771),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [574] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(561),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(537),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(537),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(537),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(769),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [575] = {
    [anon_sym_LBRACK] = ACTIONS(73),
    [anon_sym_RBRACK] = ACTIONS(75),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_RPAREN] = ACTIONS(75),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_DOT_RBRACK] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [576] = {
    [aux_sym_context_list_repeat1] = STATE(576),
    [anon_sym_LBRACK] = ACTIONS(621),
    [anon_sym_RBRACK] = ACTIONS(623),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_RPAREN] = ACTIONS(623),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(778),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(623),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(623),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(623),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_DOT_RBRACK] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [577] = {
    [sym_condition_operators] = STATE(646),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [578] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(559),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(537),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(537),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(537),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(769),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [579] = {
    [anon_sym_LBRACK] = ACTIONS(637),
    [anon_sym_RBRACK] = ACTIONS(639),
    [sym_symbol] = ACTIONS(637),
    [sym_string] = ACTIONS(639),
    [sym_any] = ACTIONS(639),
    [sym_zero] = ACTIONS(639),
    [sym_boundary] = ACTIONS(639),
    [sym_symbol_group] = ACTIONS(639),
    [anon_sym_LPAREN] = ACTIONS(637),
    [anon_sym_RPAREN] = ACTIONS(639),
    [anon_sym_BQUOTE] = ACTIONS(639),
    [anon_sym_COMMA] = ACTIONS(637),
    [sym_colon] = ACTIONS(639),
    [sym_complement] = ACTIONS(639),
    [sym_term_complement] = ACTIONS(639),
    [sym_contains] = ACTIONS(639),
    [sym_plus] = ACTIONS(639),
    [sym_star] = ACTIONS(639),
    [sym_repeat] = ACTIONS(639),
    [sym_upper] = ACTIONS(639),
    [sym_lower] = ACTIONS(639),
    [sym_reverse] = ACTIONS(639),
    [sym_inverse] = ACTIONS(639),
    [sym_ignore] = ACTIONS(639),
    [sym_ignore_inside] = ACTIONS(639),
    [sym_union] = ACTIONS(639),
    [sym_intersect] = ACTIONS(639),
    [sym_subtract] = ACTIONS(637),
    [anon_sym_EQ_GT] = ACTIONS(639),
    [anon_sym_DASH_GT] = ACTIONS(637),
    [anon_sym_LT_DASH] = ACTIONS(639),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(639),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(639),
    [anon_sym_AT_DASH_GT] = ACTIONS(639),
    [anon_sym_DASH_GT_AT] = ACTIONS(639),
    [anon_sym_AT_GT] = ACTIONS(639),
    [anon_sym_GT_AT] = ACTIONS(639),
    [anon_sym_LBRACK_DOT] = ACTIONS(639),
    [anon_sym_DOT_RBRACK] = ACTIONS(639),
    [anon_sym_COMMA_COMMA] = ACTIONS(639),
    [sym_crossproduct] = ACTIONS(639),
    [sym_compose] = ACTIONS(639),
    [sym_comment] = ACTIONS(3),
  },
  [580] = {
    [aux_sym_context_list_repeat1] = STATE(582),
    [ts_builtin_sym_end] = ACTIONS(609),
    [sym_semicolon] = ACTIONS(607),
    [anon_sym_LBRACK] = ACTIONS(607),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(781),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(609),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(609),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(609),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_COMMA_COMMA] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [581] = {
    [anon_sym_LBRACK] = ACTIONS(628),
    [anon_sym_RBRACK] = ACTIONS(630),
    [sym_symbol] = ACTIONS(628),
    [sym_string] = ACTIONS(630),
    [sym_any] = ACTIONS(630),
    [sym_zero] = ACTIONS(630),
    [sym_boundary] = ACTIONS(630),
    [sym_symbol_group] = ACTIONS(630),
    [anon_sym_LPAREN] = ACTIONS(628),
    [anon_sym_RPAREN] = ACTIONS(630),
    [anon_sym_BQUOTE] = ACTIONS(630),
    [anon_sym_COMMA] = ACTIONS(628),
    [sym_colon] = ACTIONS(630),
    [sym_complement] = ACTIONS(630),
    [sym_term_complement] = ACTIONS(630),
    [sym_contains] = ACTIONS(630),
    [sym_plus] = ACTIONS(630),
    [sym_star] = ACTIONS(630),
    [sym_repeat] = ACTIONS(630),
    [sym_upper] = ACTIONS(630),
    [sym_lower] = ACTIONS(630),
    [sym_reverse] = ACTIONS(630),
    [sym_inverse] = ACTIONS(630),
    [sym_ignore] = ACTIONS(630),
    [sym_ignore_inside] = ACTIONS(630),
    [sym_union] = ACTIONS(630),
    [sym_intersect] = ACTIONS(630),
    [sym_subtract] = ACTIONS(628),
    [anon_sym_EQ_GT] = ACTIONS(630),
    [anon_sym_DASH_GT] = ACTIONS(628),
    [anon_sym_LT_DASH] = ACTIONS(630),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(630),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(630),
    [anon_sym_AT_DASH_GT] = ACTIONS(630),
    [anon_sym_DASH_GT_AT] = ACTIONS(630),
    [anon_sym_AT_GT] = ACTIONS(630),
    [anon_sym_GT_AT] = ACTIONS(630),
    [anon_sym_LBRACK_DOT] = ACTIONS(630),
    [anon_sym_DOT_RBRACK] = ACTIONS(630),
    [anon_sym_COMMA_COMMA] = ACTIONS(630),
    [sym_crossproduct] = ACTIONS(630),
    [sym_compose] = ACTIONS(630),
    [sym_comment] = ACTIONS(3),
  },
  [582] = {
    [aux_sym_context_list_repeat1] = STATE(582),
    [ts_builtin_sym_end] = ACTIONS(623),
    [sym_semicolon] = ACTIONS(621),
    [anon_sym_LBRACK] = ACTIONS(621),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(783),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(623),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(623),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(623),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_COMMA_COMMA] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [583] = {
    [sym_condition_operators] = STATE(674),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [584] = {
    [sym_condition_operators] = STATE(675),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [585] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(573),
    [ts_builtin_sym_end] = ACTIONS(589),
    [sym_semicolon] = ACTIONS(587),
    [anon_sym_LBRACK] = ACTIONS(587),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [anon_sym_COMMA] = ACTIONS(587),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(589),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(589),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(589),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(589),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [586] = {
    [aux_sym_context_list_repeat1] = STATE(582),
    [ts_builtin_sym_end] = ACTIONS(609),
    [sym_semicolon] = ACTIONS(607),
    [anon_sym_LBRACK] = ACTIONS(607),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(607),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(609),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(609),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(609),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_COMMA_COMMA] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [587] = {
    [aux_sym_context_list_repeat1] = STATE(569),
    [anon_sym_LBRACK] = ACTIONS(615),
    [anon_sym_RBRACK] = ACTIONS(617),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_RPAREN] = ACTIONS(617),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(776),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(617),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(617),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(617),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_DOT_RBRACK] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [588] = {
    [anon_sym_LBRACK] = ACTIONS(659),
    [anon_sym_RBRACK] = ACTIONS(661),
    [sym_symbol] = ACTIONS(659),
    [sym_string] = ACTIONS(661),
    [sym_any] = ACTIONS(661),
    [sym_zero] = ACTIONS(661),
    [sym_boundary] = ACTIONS(661),
    [sym_symbol_group] = ACTIONS(661),
    [anon_sym_LPAREN] = ACTIONS(659),
    [anon_sym_RPAREN] = ACTIONS(661),
    [anon_sym_BQUOTE] = ACTIONS(661),
    [anon_sym_COMMA] = ACTIONS(659),
    [sym_colon] = ACTIONS(661),
    [sym_complement] = ACTIONS(661),
    [sym_term_complement] = ACTIONS(661),
    [sym_contains] = ACTIONS(661),
    [sym_plus] = ACTIONS(661),
    [sym_star] = ACTIONS(661),
    [sym_repeat] = ACTIONS(661),
    [sym_upper] = ACTIONS(661),
    [sym_lower] = ACTIONS(661),
    [sym_reverse] = ACTIONS(661),
    [sym_inverse] = ACTIONS(661),
    [sym_ignore] = ACTIONS(661),
    [sym_ignore_inside] = ACTIONS(661),
    [sym_union] = ACTIONS(661),
    [sym_intersect] = ACTIONS(661),
    [sym_subtract] = ACTIONS(659),
    [anon_sym_EQ_GT] = ACTIONS(661),
    [anon_sym_DASH_GT] = ACTIONS(659),
    [anon_sym_LT_DASH] = ACTIONS(661),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(661),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(661),
    [anon_sym_AT_DASH_GT] = ACTIONS(661),
    [anon_sym_DASH_GT_AT] = ACTIONS(661),
    [anon_sym_AT_GT] = ACTIONS(661),
    [anon_sym_GT_AT] = ACTIONS(661),
    [anon_sym_LBRACK_DOT] = ACTIONS(661),
    [anon_sym_DOT_RBRACK] = ACTIONS(661),
    [anon_sym_COMMA_COMMA] = ACTIONS(661),
    [sym_crossproduct] = ACTIONS(661),
    [sym_compose] = ACTIONS(661),
    [sym_comment] = ACTIONS(3),
  },
  [589] = {
    [aux_sym_context_list_repeat1] = STATE(586),
    [ts_builtin_sym_end] = ACTIONS(617),
    [sym_semicolon] = ACTIONS(615),
    [anon_sym_LBRACK] = ACTIONS(615),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(615),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(617),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(617),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(617),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_COMMA_COMMA] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [590] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(590),
    [ts_builtin_sym_end] = ACTIONS(589),
    [sym_semicolon] = ACTIONS(587),
    [anon_sym_LBRACK] = ACTIONS(587),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [anon_sym_COMMA] = ACTIONS(587),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(589),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(589),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(589),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(786),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [591] = {
    [aux_sym_context_list_repeat1] = STATE(580),
    [ts_builtin_sym_end] = ACTIONS(617),
    [sym_semicolon] = ACTIONS(615),
    [anon_sym_LBRACK] = ACTIONS(615),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(781),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(617),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(617),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(617),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_COMMA_COMMA] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [592] = {
    [aux_sym_context_list_repeat1] = STATE(576),
    [anon_sym_LBRACK] = ACTIONS(607),
    [anon_sym_RBRACK] = ACTIONS(609),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_RPAREN] = ACTIONS(609),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(609),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(609),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(609),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(609),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_DOT_RBRACK] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [593] = {
    [sym_condition_operators] = STATE(656),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [594] = {
    [sym_condition_operators] = STATE(669),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [595] = {
    [sym_condition_operators] = STATE(660),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(535),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(535),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(535),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_PIPE_PIPE] = ACTIONS(541),
    [anon_sym_SLASH_SLASH] = ACTIONS(541),
    [anon_sym_BSLASH_BSLASH] = ACTIONS(541),
    [anon_sym_BSLASH_SLASH] = ACTIONS(541),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [596] = {
    [anon_sym_LBRACK] = ACTIONS(644),
    [anon_sym_RBRACK] = ACTIONS(646),
    [sym_symbol] = ACTIONS(644),
    [sym_string] = ACTIONS(646),
    [sym_any] = ACTIONS(646),
    [sym_zero] = ACTIONS(646),
    [sym_boundary] = ACTIONS(646),
    [sym_symbol_group] = ACTIONS(646),
    [anon_sym_LPAREN] = ACTIONS(644),
    [anon_sym_RPAREN] = ACTIONS(646),
    [anon_sym_BQUOTE] = ACTIONS(646),
    [anon_sym_COMMA] = ACTIONS(644),
    [sym_colon] = ACTIONS(646),
    [sym_complement] = ACTIONS(646),
    [sym_term_complement] = ACTIONS(646),
    [sym_contains] = ACTIONS(646),
    [sym_plus] = ACTIONS(646),
    [sym_star] = ACTIONS(646),
    [sym_repeat] = ACTIONS(646),
    [sym_upper] = ACTIONS(646),
    [sym_lower] = ACTIONS(646),
    [sym_reverse] = ACTIONS(646),
    [sym_inverse] = ACTIONS(646),
    [sym_ignore] = ACTIONS(646),
    [sym_ignore_inside] = ACTIONS(646),
    [sym_union] = ACTIONS(646),
    [sym_intersect] = ACTIONS(646),
    [sym_subtract] = ACTIONS(644),
    [anon_sym_EQ_GT] = ACTIONS(646),
    [anon_sym_DASH_GT] = ACTIONS(644),
    [anon_sym_LT_DASH] = ACTIONS(646),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(646),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(646),
    [anon_sym_AT_DASH_GT] = ACTIONS(646),
    [anon_sym_DASH_GT_AT] = ACTIONS(646),
    [anon_sym_AT_GT] = ACTIONS(646),
    [anon_sym_GT_AT] = ACTIONS(646),
    [anon_sym_LBRACK_DOT] = ACTIONS(646),
    [anon_sym_DOT_RBRACK] = ACTIONS(646),
    [anon_sym_COMMA_COMMA] = ACTIONS(646),
    [sym_crossproduct] = ACTIONS(646),
    [sym_compose] = ACTIONS(646),
    [sym_comment] = ACTIONS(3),
  },
  [597] = {
    [aux_sym_context_list_repeat1] = STATE(597),
    [anon_sym_LBRACK] = ACTIONS(621),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(789),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(623),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(623),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(623),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym__] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_COMMA_COMMA] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [598] = {
    [aux_sym_context_list_repeat1] = STATE(617),
    [ts_builtin_sym_end] = ACTIONS(609),
    [sym_semicolon] = ACTIONS(607),
    [anon_sym_LBRACK] = ACTIONS(607),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(792),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(609),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(609),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(609),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [599] = {
    [aux_sym_context_list_repeat1] = STATE(597),
    [anon_sym_LBRACK] = ACTIONS(607),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(794),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(609),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(609),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(609),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym__] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_COMMA_COMMA] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [600] = {
    [aux_sym_context_list_repeat1] = STATE(626),
    [ts_builtin_sym_end] = ACTIONS(617),
    [sym_semicolon] = ACTIONS(615),
    [anon_sym_LBRACK] = ACTIONS(615),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(617),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(617),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(617),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(617),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [601] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(614),
    [ts_builtin_sym_end] = ACTIONS(593),
    [sym_semicolon] = ACTIONS(591),
    [anon_sym_LBRACK] = ACTIONS(591),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(593),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(593),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(593),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(796),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [602] = {
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(53),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(53),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [603] = {
    [aux_sym_context_list_repeat1] = STATE(609),
    [anon_sym_LBRACK] = ACTIONS(615),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(615),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(617),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(617),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(617),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym__] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_COMMA_COMMA] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [604] = {
    [aux_sym_context_list_repeat1] = STATE(599),
    [anon_sym_LBRACK] = ACTIONS(615),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(794),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(617),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(617),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(617),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym__] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [anon_sym_COMMA_COMMA] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [605] = {
    [ts_builtin_sym_end] = ACTIONS(657),
    [sym_semicolon] = ACTIONS(655),
    [anon_sym_LBRACK] = ACTIONS(655),
    [sym_symbol] = ACTIONS(655),
    [sym_string] = ACTIONS(657),
    [sym_any] = ACTIONS(657),
    [sym_zero] = ACTIONS(657),
    [sym_boundary] = ACTIONS(657),
    [sym_symbol_group] = ACTIONS(657),
    [anon_sym_LPAREN] = ACTIONS(655),
    [anon_sym_BQUOTE] = ACTIONS(657),
    [anon_sym_COMMA] = ACTIONS(655),
    [sym_colon] = ACTIONS(657),
    [sym_complement] = ACTIONS(657),
    [sym_term_complement] = ACTIONS(657),
    [sym_contains] = ACTIONS(657),
    [sym_plus] = ACTIONS(657),
    [sym_star] = ACTIONS(657),
    [sym_repeat] = ACTIONS(657),
    [sym_upper] = ACTIONS(657),
    [sym_lower] = ACTIONS(657),
    [sym_reverse] = ACTIONS(657),
    [sym_inverse] = ACTIONS(657),
    [sym_ignore] = ACTIONS(657),
    [sym_ignore_inside] = ACTIONS(657),
    [sym_union] = ACTIONS(657),
    [sym_intersect] = ACTIONS(657),
    [sym_subtract] = ACTIONS(655),
    [anon_sym_EQ_GT] = ACTIONS(657),
    [anon_sym_DASH_GT] = ACTIONS(655),
    [anon_sym_LT_DASH] = ACTIONS(657),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(657),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(657),
    [anon_sym_AT_DASH_GT] = ACTIONS(657),
    [anon_sym_DASH_GT_AT] = ACTIONS(657),
    [anon_sym_AT_GT] = ACTIONS(657),
    [anon_sym_GT_AT] = ACTIONS(657),
    [anon_sym_LBRACK_DOT] = ACTIONS(657),
    [anon_sym_COMMA_COMMA] = ACTIONS(657),
    [sym_crossproduct] = ACTIONS(657),
    [sym_compose] = ACTIONS(657),
    [sym_comment] = ACTIONS(3),
  },
  [606] = {
    [ts_builtin_sym_end] = ACTIONS(646),
    [sym_semicolon] = ACTIONS(644),
    [anon_sym_LBRACK] = ACTIONS(644),
    [sym_symbol] = ACTIONS(644),
    [sym_string] = ACTIONS(646),
    [sym_any] = ACTIONS(646),
    [sym_zero] = ACTIONS(646),
    [sym_boundary] = ACTIONS(646),
    [sym_symbol_group] = ACTIONS(646),
    [anon_sym_LPAREN] = ACTIONS(644),
    [anon_sym_BQUOTE] = ACTIONS(646),
    [anon_sym_COMMA] = ACTIONS(644),
    [sym_colon] = ACTIONS(646),
    [sym_complement] = ACTIONS(646),
    [sym_term_complement] = ACTIONS(646),
    [sym_contains] = ACTIONS(646),
    [sym_plus] = ACTIONS(646),
    [sym_star] = ACTIONS(646),
    [sym_repeat] = ACTIONS(646),
    [sym_upper] = ACTIONS(646),
    [sym_lower] = ACTIONS(646),
    [sym_reverse] = ACTIONS(646),
    [sym_inverse] = ACTIONS(646),
    [sym_ignore] = ACTIONS(646),
    [sym_ignore_inside] = ACTIONS(646),
    [sym_union] = ACTIONS(646),
    [sym_intersect] = ACTIONS(646),
    [sym_subtract] = ACTIONS(644),
    [anon_sym_EQ_GT] = ACTIONS(646),
    [anon_sym_DASH_GT] = ACTIONS(644),
    [anon_sym_LT_DASH] = ACTIONS(646),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(646),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(646),
    [anon_sym_AT_DASH_GT] = ACTIONS(646),
    [anon_sym_DASH_GT_AT] = ACTIONS(646),
    [anon_sym_AT_GT] = ACTIONS(646),
    [anon_sym_GT_AT] = ACTIONS(646),
    [anon_sym_LBRACK_DOT] = ACTIONS(646),
    [anon_sym_COMMA_COMMA] = ACTIONS(646),
    [sym_crossproduct] = ACTIONS(646),
    [sym_compose] = ACTIONS(646),
    [sym_comment] = ACTIONS(3),
  },
  [607] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(573),
    [anon_sym_LBRACK] = ACTIONS(587),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [anon_sym_COMMA] = ACTIONS(587),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(589),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(589),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(589),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym__] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(589),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [608] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(611),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(537),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(537),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(537),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(798),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [609] = {
    [aux_sym_context_list_repeat1] = STATE(597),
    [anon_sym_LBRACK] = ACTIONS(607),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(607),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(609),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(609),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(609),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym__] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [anon_sym_COMMA_COMMA] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [610] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(624),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(537),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(537),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(537),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(798),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [611] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(612),
    [anon_sym_LBRACK] = ACTIONS(591),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(593),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(593),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(593),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym__] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(798),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [612] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(612),
    [anon_sym_LBRACK] = ACTIONS(587),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [anon_sym_COMMA] = ACTIONS(587),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(589),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(589),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(589),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym__] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(800),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [613] = {
    [ts_builtin_sym_end] = ACTIONS(623),
    [sym_semicolon] = ACTIONS(621),
    [anon_sym_LBRACK] = ACTIONS(621),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(621),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(623),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(623),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(623),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_COMMA_COMMA] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [614] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(614),
    [ts_builtin_sym_end] = ACTIONS(589),
    [sym_semicolon] = ACTIONS(587),
    [anon_sym_LBRACK] = ACTIONS(587),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(589),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(589),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(589),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(803),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [615] = {
    [ts_builtin_sym_end] = ACTIONS(678),
    [sym_semicolon] = ACTIONS(676),
    [anon_sym_LBRACK] = ACTIONS(676),
    [sym_symbol] = ACTIONS(676),
    [sym_string] = ACTIONS(678),
    [sym_any] = ACTIONS(678),
    [sym_zero] = ACTIONS(678),
    [sym_boundary] = ACTIONS(678),
    [sym_symbol_group] = ACTIONS(678),
    [anon_sym_LPAREN] = ACTIONS(676),
    [anon_sym_BQUOTE] = ACTIONS(678),
    [anon_sym_COMMA] = ACTIONS(676),
    [sym_colon] = ACTIONS(678),
    [sym_complement] = ACTIONS(678),
    [sym_term_complement] = ACTIONS(678),
    [sym_contains] = ACTIONS(678),
    [sym_plus] = ACTIONS(678),
    [sym_star] = ACTIONS(678),
    [sym_repeat] = ACTIONS(678),
    [sym_upper] = ACTIONS(678),
    [sym_lower] = ACTIONS(678),
    [sym_reverse] = ACTIONS(678),
    [sym_inverse] = ACTIONS(678),
    [sym_ignore] = ACTIONS(678),
    [sym_ignore_inside] = ACTIONS(678),
    [sym_union] = ACTIONS(678),
    [sym_intersect] = ACTIONS(678),
    [sym_subtract] = ACTIONS(676),
    [anon_sym_EQ_GT] = ACTIONS(678),
    [anon_sym_DASH_GT] = ACTIONS(676),
    [anon_sym_LT_DASH] = ACTIONS(678),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(678),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(678),
    [anon_sym_AT_DASH_GT] = ACTIONS(678),
    [anon_sym_DASH_GT_AT] = ACTIONS(678),
    [anon_sym_AT_GT] = ACTIONS(678),
    [anon_sym_GT_AT] = ACTIONS(678),
    [anon_sym_LBRACK_DOT] = ACTIONS(678),
    [anon_sym_COMMA_COMMA] = ACTIONS(678),
    [sym_crossproduct] = ACTIONS(678),
    [sym_compose] = ACTIONS(678),
    [sym_comment] = ACTIONS(3),
  },
  [616] = {
    [ts_builtin_sym_end] = ACTIONS(661),
    [sym_semicolon] = ACTIONS(659),
    [anon_sym_LBRACK] = ACTIONS(659),
    [sym_symbol] = ACTIONS(659),
    [sym_string] = ACTIONS(661),
    [sym_any] = ACTIONS(661),
    [sym_zero] = ACTIONS(661),
    [sym_boundary] = ACTIONS(661),
    [sym_symbol_group] = ACTIONS(661),
    [anon_sym_LPAREN] = ACTIONS(659),
    [anon_sym_BQUOTE] = ACTIONS(661),
    [anon_sym_COMMA] = ACTIONS(659),
    [sym_colon] = ACTIONS(661),
    [sym_complement] = ACTIONS(661),
    [sym_term_complement] = ACTIONS(661),
    [sym_contains] = ACTIONS(661),
    [sym_plus] = ACTIONS(661),
    [sym_star] = ACTIONS(661),
    [sym_repeat] = ACTIONS(661),
    [sym_upper] = ACTIONS(661),
    [sym_lower] = ACTIONS(661),
    [sym_reverse] = ACTIONS(661),
    [sym_inverse] = ACTIONS(661),
    [sym_ignore] = ACTIONS(661),
    [sym_ignore_inside] = ACTIONS(661),
    [sym_union] = ACTIONS(661),
    [sym_intersect] = ACTIONS(661),
    [sym_subtract] = ACTIONS(659),
    [anon_sym_EQ_GT] = ACTIONS(661),
    [anon_sym_DASH_GT] = ACTIONS(659),
    [anon_sym_LT_DASH] = ACTIONS(661),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(661),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(661),
    [anon_sym_AT_DASH_GT] = ACTIONS(661),
    [anon_sym_DASH_GT_AT] = ACTIONS(661),
    [anon_sym_AT_GT] = ACTIONS(661),
    [anon_sym_GT_AT] = ACTIONS(661),
    [anon_sym_LBRACK_DOT] = ACTIONS(661),
    [anon_sym_COMMA_COMMA] = ACTIONS(661),
    [sym_crossproduct] = ACTIONS(661),
    [sym_compose] = ACTIONS(661),
    [sym_comment] = ACTIONS(3),
  },
  [617] = {
    [aux_sym_context_list_repeat1] = STATE(617),
    [ts_builtin_sym_end] = ACTIONS(623),
    [sym_semicolon] = ACTIONS(621),
    [anon_sym_LBRACK] = ACTIONS(621),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(806),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(623),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(623),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(623),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [618] = {
    [ts_builtin_sym_end] = ACTIONS(53),
    [sym_semicolon] = ACTIONS(51),
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(53),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(53),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [619] = {
    [ts_builtin_sym_end] = ACTIONS(639),
    [sym_semicolon] = ACTIONS(637),
    [anon_sym_LBRACK] = ACTIONS(637),
    [sym_symbol] = ACTIONS(637),
    [sym_string] = ACTIONS(639),
    [sym_any] = ACTIONS(639),
    [sym_zero] = ACTIONS(639),
    [sym_boundary] = ACTIONS(639),
    [sym_symbol_group] = ACTIONS(639),
    [anon_sym_LPAREN] = ACTIONS(637),
    [anon_sym_BQUOTE] = ACTIONS(639),
    [anon_sym_COMMA] = ACTIONS(637),
    [sym_colon] = ACTIONS(639),
    [sym_complement] = ACTIONS(639),
    [sym_term_complement] = ACTIONS(639),
    [sym_contains] = ACTIONS(639),
    [sym_plus] = ACTIONS(639),
    [sym_star] = ACTIONS(639),
    [sym_repeat] = ACTIONS(639),
    [sym_upper] = ACTIONS(639),
    [sym_lower] = ACTIONS(639),
    [sym_reverse] = ACTIONS(639),
    [sym_inverse] = ACTIONS(639),
    [sym_ignore] = ACTIONS(639),
    [sym_ignore_inside] = ACTIONS(639),
    [sym_union] = ACTIONS(639),
    [sym_intersect] = ACTIONS(639),
    [sym_subtract] = ACTIONS(637),
    [anon_sym_EQ_GT] = ACTIONS(639),
    [anon_sym_DASH_GT] = ACTIONS(637),
    [anon_sym_LT_DASH] = ACTIONS(639),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(639),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(639),
    [anon_sym_AT_DASH_GT] = ACTIONS(639),
    [anon_sym_DASH_GT_AT] = ACTIONS(639),
    [anon_sym_AT_GT] = ACTIONS(639),
    [anon_sym_GT_AT] = ACTIONS(639),
    [anon_sym_LBRACK_DOT] = ACTIONS(639),
    [anon_sym_COMMA_COMMA] = ACTIONS(639),
    [sym_crossproduct] = ACTIONS(639),
    [sym_compose] = ACTIONS(639),
    [sym_comment] = ACTIONS(3),
  },
  [620] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(601),
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(537),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(537),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(537),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(796),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [621] = {
    [aux_sym_context_list_repeat1] = STATE(598),
    [ts_builtin_sym_end] = ACTIONS(617),
    [sym_semicolon] = ACTIONS(615),
    [anon_sym_LBRACK] = ACTIONS(615),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(792),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(617),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(617),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(617),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [622] = {
    [ts_builtin_sym_end] = ACTIONS(630),
    [sym_semicolon] = ACTIONS(628),
    [anon_sym_LBRACK] = ACTIONS(628),
    [sym_symbol] = ACTIONS(628),
    [sym_string] = ACTIONS(630),
    [sym_any] = ACTIONS(630),
    [sym_zero] = ACTIONS(630),
    [sym_boundary] = ACTIONS(630),
    [sym_symbol_group] = ACTIONS(630),
    [anon_sym_LPAREN] = ACTIONS(628),
    [anon_sym_BQUOTE] = ACTIONS(630),
    [anon_sym_COMMA] = ACTIONS(628),
    [sym_colon] = ACTIONS(630),
    [sym_complement] = ACTIONS(630),
    [sym_term_complement] = ACTIONS(630),
    [sym_contains] = ACTIONS(630),
    [sym_plus] = ACTIONS(630),
    [sym_star] = ACTIONS(630),
    [sym_repeat] = ACTIONS(630),
    [sym_upper] = ACTIONS(630),
    [sym_lower] = ACTIONS(630),
    [sym_reverse] = ACTIONS(630),
    [sym_inverse] = ACTIONS(630),
    [sym_ignore] = ACTIONS(630),
    [sym_ignore_inside] = ACTIONS(630),
    [sym_union] = ACTIONS(630),
    [sym_intersect] = ACTIONS(630),
    [sym_subtract] = ACTIONS(628),
    [anon_sym_EQ_GT] = ACTIONS(630),
    [anon_sym_DASH_GT] = ACTIONS(628),
    [anon_sym_LT_DASH] = ACTIONS(630),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(630),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(630),
    [anon_sym_AT_DASH_GT] = ACTIONS(630),
    [anon_sym_DASH_GT_AT] = ACTIONS(630),
    [anon_sym_AT_GT] = ACTIONS(630),
    [anon_sym_GT_AT] = ACTIONS(630),
    [anon_sym_LBRACK_DOT] = ACTIONS(630),
    [anon_sym_COMMA_COMMA] = ACTIONS(630),
    [sym_crossproduct] = ACTIONS(630),
    [sym_compose] = ACTIONS(630),
    [sym_comment] = ACTIONS(3),
  },
  [623] = {
    [ts_builtin_sym_end] = ACTIONS(75),
    [sym_semicolon] = ACTIONS(73),
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [624] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(612),
    [anon_sym_LBRACK] = ACTIONS(591),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [anon_sym_COMMA] = ACTIONS(591),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(593),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(593),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(593),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym__] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(593),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [625] = {
    [ts_builtin_sym_end] = ACTIONS(537),
    [sym_semicolon] = ACTIONS(535),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(537),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(537),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(537),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [626] = {
    [aux_sym_context_list_repeat1] = STATE(617),
    [ts_builtin_sym_end] = ACTIONS(609),
    [sym_semicolon] = ACTIONS(607),
    [anon_sym_LBRACK] = ACTIONS(607),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(609),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(609),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(609),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(609),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [627] = {
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(53),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(53),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [628] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(628),
    [anon_sym_LBRACK] = ACTIONS(587),
    [sym_symbol] = ACTIONS(587),
    [sym_string] = ACTIONS(589),
    [sym_any] = ACTIONS(589),
    [sym_zero] = ACTIONS(589),
    [sym_boundary] = ACTIONS(589),
    [sym_symbol_group] = ACTIONS(589),
    [anon_sym_LPAREN] = ACTIONS(587),
    [anon_sym_BQUOTE] = ACTIONS(589),
    [sym_colon] = ACTIONS(589),
    [sym_complement] = ACTIONS(589),
    [sym_term_complement] = ACTIONS(589),
    [sym_contains] = ACTIONS(589),
    [sym_plus] = ACTIONS(589),
    [sym_star] = ACTIONS(589),
    [sym_repeat] = ACTIONS(589),
    [sym_upper] = ACTIONS(589),
    [sym_lower] = ACTIONS(589),
    [sym_reverse] = ACTIONS(589),
    [sym_inverse] = ACTIONS(589),
    [sym_ignore] = ACTIONS(589),
    [sym_ignore_inside] = ACTIONS(589),
    [sym_union] = ACTIONS(589),
    [sym_intersect] = ACTIONS(589),
    [sym_subtract] = ACTIONS(587),
    [anon_sym__] = ACTIONS(587),
    [anon_sym_EQ_GT] = ACTIONS(589),
    [anon_sym_DASH_GT] = ACTIONS(587),
    [anon_sym_LT_DASH] = ACTIONS(589),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(589),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(589),
    [anon_sym_AT_DASH_GT] = ACTIONS(589),
    [anon_sym_DASH_GT_AT] = ACTIONS(589),
    [anon_sym_AT_GT] = ACTIONS(589),
    [anon_sym_GT_AT] = ACTIONS(589),
    [anon_sym_LBRACK_DOT] = ACTIONS(589),
    [anon_sym_COMMA_COMMA] = ACTIONS(809),
    [sym_crossproduct] = ACTIONS(589),
    [sym_compose] = ACTIONS(589),
    [sym_comment] = ACTIONS(3),
  },
  [629] = {
    [aux_sym_context_list_repeat1] = STATE(632),
    [anon_sym_LBRACK] = ACTIONS(615),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(617),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(617),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(617),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(617),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym__] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [630] = {
    [anon_sym_LBRACK] = ACTIONS(73),
    [sym_symbol] = ACTIONS(73),
    [sym_string] = ACTIONS(75),
    [sym_any] = ACTIONS(75),
    [sym_zero] = ACTIONS(75),
    [sym_boundary] = ACTIONS(75),
    [sym_symbol_group] = ACTIONS(75),
    [anon_sym_LPAREN] = ACTIONS(73),
    [anon_sym_BQUOTE] = ACTIONS(75),
    [anon_sym_COMMA] = ACTIONS(73),
    [sym_colon] = ACTIONS(75),
    [sym_complement] = ACTIONS(75),
    [sym_term_complement] = ACTIONS(75),
    [sym_contains] = ACTIONS(75),
    [sym_plus] = ACTIONS(75),
    [sym_star] = ACTIONS(75),
    [sym_repeat] = ACTIONS(75),
    [sym_upper] = ACTIONS(75),
    [sym_lower] = ACTIONS(75),
    [sym_reverse] = ACTIONS(75),
    [sym_inverse] = ACTIONS(75),
    [sym_ignore] = ACTIONS(75),
    [sym_ignore_inside] = ACTIONS(75),
    [sym_union] = ACTIONS(75),
    [sym_intersect] = ACTIONS(75),
    [sym_subtract] = ACTIONS(73),
    [anon_sym__] = ACTIONS(73),
    [anon_sym_EQ_GT] = ACTIONS(75),
    [anon_sym_DASH_GT] = ACTIONS(73),
    [anon_sym_LT_DASH] = ACTIONS(75),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(75),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(75),
    [anon_sym_AT_DASH_GT] = ACTIONS(75),
    [anon_sym_DASH_GT_AT] = ACTIONS(75),
    [anon_sym_AT_GT] = ACTIONS(75),
    [anon_sym_GT_AT] = ACTIONS(75),
    [anon_sym_LBRACK_DOT] = ACTIONS(75),
    [anon_sym_COMMA_COMMA] = ACTIONS(75),
    [sym_crossproduct] = ACTIONS(75),
    [sym_compose] = ACTIONS(75),
    [sym_comment] = ACTIONS(3),
  },
  [631] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(628),
    [anon_sym_LBRACK] = ACTIONS(591),
    [sym_symbol] = ACTIONS(591),
    [sym_string] = ACTIONS(593),
    [sym_any] = ACTIONS(593),
    [sym_zero] = ACTIONS(593),
    [sym_boundary] = ACTIONS(593),
    [sym_symbol_group] = ACTIONS(593),
    [anon_sym_LPAREN] = ACTIONS(591),
    [anon_sym_BQUOTE] = ACTIONS(593),
    [sym_colon] = ACTIONS(593),
    [sym_complement] = ACTIONS(593),
    [sym_term_complement] = ACTIONS(593),
    [sym_contains] = ACTIONS(593),
    [sym_plus] = ACTIONS(593),
    [sym_star] = ACTIONS(593),
    [sym_repeat] = ACTIONS(593),
    [sym_upper] = ACTIONS(593),
    [sym_lower] = ACTIONS(593),
    [sym_reverse] = ACTIONS(593),
    [sym_inverse] = ACTIONS(593),
    [sym_ignore] = ACTIONS(593),
    [sym_ignore_inside] = ACTIONS(593),
    [sym_union] = ACTIONS(593),
    [sym_intersect] = ACTIONS(593),
    [sym_subtract] = ACTIONS(591),
    [anon_sym__] = ACTIONS(591),
    [anon_sym_EQ_GT] = ACTIONS(593),
    [anon_sym_DASH_GT] = ACTIONS(591),
    [anon_sym_LT_DASH] = ACTIONS(593),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(593),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(593),
    [anon_sym_AT_DASH_GT] = ACTIONS(593),
    [anon_sym_DASH_GT_AT] = ACTIONS(593),
    [anon_sym_AT_GT] = ACTIONS(593),
    [anon_sym_GT_AT] = ACTIONS(593),
    [anon_sym_LBRACK_DOT] = ACTIONS(593),
    [anon_sym_COMMA_COMMA] = ACTIONS(812),
    [sym_crossproduct] = ACTIONS(593),
    [sym_compose] = ACTIONS(593),
    [sym_comment] = ACTIONS(3),
  },
  [632] = {
    [aux_sym_context_list_repeat1] = STATE(638),
    [anon_sym_LBRACK] = ACTIONS(607),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(609),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(609),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(609),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(609),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym__] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [633] = {
    [aux_sym_context_list_repeat1] = STATE(638),
    [anon_sym_LBRACK] = ACTIONS(607),
    [sym_symbol] = ACTIONS(607),
    [sym_string] = ACTIONS(609),
    [sym_any] = ACTIONS(609),
    [sym_zero] = ACTIONS(609),
    [sym_boundary] = ACTIONS(609),
    [sym_symbol_group] = ACTIONS(609),
    [anon_sym_LPAREN] = ACTIONS(607),
    [anon_sym_BQUOTE] = ACTIONS(609),
    [anon_sym_COMMA] = ACTIONS(814),
    [sym_colon] = ACTIONS(609),
    [sym_complement] = ACTIONS(609),
    [sym_term_complement] = ACTIONS(609),
    [sym_contains] = ACTIONS(609),
    [sym_plus] = ACTIONS(609),
    [sym_star] = ACTIONS(609),
    [sym_repeat] = ACTIONS(609),
    [sym_upper] = ACTIONS(609),
    [sym_lower] = ACTIONS(609),
    [sym_reverse] = ACTIONS(609),
    [sym_inverse] = ACTIONS(609),
    [sym_ignore] = ACTIONS(609),
    [sym_ignore_inside] = ACTIONS(609),
    [sym_union] = ACTIONS(609),
    [sym_intersect] = ACTIONS(609),
    [sym_subtract] = ACTIONS(607),
    [anon_sym__] = ACTIONS(607),
    [anon_sym_EQ_GT] = ACTIONS(609),
    [anon_sym_DASH_GT] = ACTIONS(607),
    [anon_sym_LT_DASH] = ACTIONS(609),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(609),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(609),
    [anon_sym_AT_DASH_GT] = ACTIONS(609),
    [anon_sym_DASH_GT_AT] = ACTIONS(609),
    [anon_sym_AT_GT] = ACTIONS(609),
    [anon_sym_GT_AT] = ACTIONS(609),
    [anon_sym_LBRACK_DOT] = ACTIONS(609),
    [sym_crossproduct] = ACTIONS(609),
    [sym_compose] = ACTIONS(609),
    [sym_comment] = ACTIONS(3),
  },
  [634] = {
    [aux_sym_context_list_repeat1] = STATE(633),
    [anon_sym_LBRACK] = ACTIONS(615),
    [sym_symbol] = ACTIONS(615),
    [sym_string] = ACTIONS(617),
    [sym_any] = ACTIONS(617),
    [sym_zero] = ACTIONS(617),
    [sym_boundary] = ACTIONS(617),
    [sym_symbol_group] = ACTIONS(617),
    [anon_sym_LPAREN] = ACTIONS(615),
    [anon_sym_BQUOTE] = ACTIONS(617),
    [anon_sym_COMMA] = ACTIONS(814),
    [sym_colon] = ACTIONS(617),
    [sym_complement] = ACTIONS(617),
    [sym_term_complement] = ACTIONS(617),
    [sym_contains] = ACTIONS(617),
    [sym_plus] = ACTIONS(617),
    [sym_star] = ACTIONS(617),
    [sym_repeat] = ACTIONS(617),
    [sym_upper] = ACTIONS(617),
    [sym_lower] = ACTIONS(617),
    [sym_reverse] = ACTIONS(617),
    [sym_inverse] = ACTIONS(617),
    [sym_ignore] = ACTIONS(617),
    [sym_ignore_inside] = ACTIONS(617),
    [sym_union] = ACTIONS(617),
    [sym_intersect] = ACTIONS(617),
    [sym_subtract] = ACTIONS(615),
    [anon_sym__] = ACTIONS(615),
    [anon_sym_EQ_GT] = ACTIONS(617),
    [anon_sym_DASH_GT] = ACTIONS(615),
    [anon_sym_LT_DASH] = ACTIONS(617),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(617),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(617),
    [anon_sym_AT_DASH_GT] = ACTIONS(617),
    [anon_sym_DASH_GT_AT] = ACTIONS(617),
    [anon_sym_AT_GT] = ACTIONS(617),
    [anon_sym_GT_AT] = ACTIONS(617),
    [anon_sym_LBRACK_DOT] = ACTIONS(617),
    [sym_crossproduct] = ACTIONS(617),
    [sym_compose] = ACTIONS(617),
    [sym_comment] = ACTIONS(3),
  },
  [635] = {
    [anon_sym_LBRACK] = ACTIONS(644),
    [sym_symbol] = ACTIONS(644),
    [sym_string] = ACTIONS(646),
    [sym_any] = ACTIONS(646),
    [sym_zero] = ACTIONS(646),
    [sym_boundary] = ACTIONS(646),
    [sym_symbol_group] = ACTIONS(646),
    [anon_sym_LPAREN] = ACTIONS(644),
    [anon_sym_BQUOTE] = ACTIONS(646),
    [anon_sym_COMMA] = ACTIONS(644),
    [sym_colon] = ACTIONS(646),
    [sym_complement] = ACTIONS(646),
    [sym_term_complement] = ACTIONS(646),
    [sym_contains] = ACTIONS(646),
    [sym_plus] = ACTIONS(646),
    [sym_star] = ACTIONS(646),
    [sym_repeat] = ACTIONS(646),
    [sym_upper] = ACTIONS(646),
    [sym_lower] = ACTIONS(646),
    [sym_reverse] = ACTIONS(646),
    [sym_inverse] = ACTIONS(646),
    [sym_ignore] = ACTIONS(646),
    [sym_ignore_inside] = ACTIONS(646),
    [sym_union] = ACTIONS(646),
    [sym_intersect] = ACTIONS(646),
    [sym_subtract] = ACTIONS(644),
    [anon_sym__] = ACTIONS(644),
    [anon_sym_EQ_GT] = ACTIONS(646),
    [anon_sym_DASH_GT] = ACTIONS(644),
    [anon_sym_LT_DASH] = ACTIONS(646),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(646),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(646),
    [anon_sym_AT_DASH_GT] = ACTIONS(646),
    [anon_sym_DASH_GT_AT] = ACTIONS(646),
    [anon_sym_AT_GT] = ACTIONS(646),
    [anon_sym_GT_AT] = ACTIONS(646),
    [anon_sym_LBRACK_DOT] = ACTIONS(646),
    [anon_sym_COMMA_COMMA] = ACTIONS(646),
    [sym_crossproduct] = ACTIONS(646),
    [sym_compose] = ACTIONS(646),
    [sym_comment] = ACTIONS(3),
  },
  [636] = {
    [anon_sym_LBRACK] = ACTIONS(637),
    [sym_symbol] = ACTIONS(637),
    [sym_string] = ACTIONS(639),
    [sym_any] = ACTIONS(639),
    [sym_zero] = ACTIONS(639),
    [sym_boundary] = ACTIONS(639),
    [sym_symbol_group] = ACTIONS(639),
    [anon_sym_LPAREN] = ACTIONS(637),
    [anon_sym_BQUOTE] = ACTIONS(639),
    [anon_sym_COMMA] = ACTIONS(637),
    [sym_colon] = ACTIONS(639),
    [sym_complement] = ACTIONS(639),
    [sym_term_complement] = ACTIONS(639),
    [sym_contains] = ACTIONS(639),
    [sym_plus] = ACTIONS(639),
    [sym_star] = ACTIONS(639),
    [sym_repeat] = ACTIONS(639),
    [sym_upper] = ACTIONS(639),
    [sym_lower] = ACTIONS(639),
    [sym_reverse] = ACTIONS(639),
    [sym_inverse] = ACTIONS(639),
    [sym_ignore] = ACTIONS(639),
    [sym_ignore_inside] = ACTIONS(639),
    [sym_union] = ACTIONS(639),
    [sym_intersect] = ACTIONS(639),
    [sym_subtract] = ACTIONS(637),
    [anon_sym__] = ACTIONS(637),
    [anon_sym_EQ_GT] = ACTIONS(639),
    [anon_sym_DASH_GT] = ACTIONS(637),
    [anon_sym_LT_DASH] = ACTIONS(639),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(639),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(639),
    [anon_sym_AT_DASH_GT] = ACTIONS(639),
    [anon_sym_DASH_GT_AT] = ACTIONS(639),
    [anon_sym_AT_GT] = ACTIONS(639),
    [anon_sym_GT_AT] = ACTIONS(639),
    [anon_sym_LBRACK_DOT] = ACTIONS(639),
    [anon_sym_COMMA_COMMA] = ACTIONS(639),
    [sym_crossproduct] = ACTIONS(639),
    [sym_compose] = ACTIONS(639),
    [sym_comment] = ACTIONS(3),
  },
  [637] = {
    [anon_sym_LBRACK] = ACTIONS(51),
    [sym_symbol] = ACTIONS(51),
    [sym_string] = ACTIONS(53),
    [sym_any] = ACTIONS(53),
    [sym_zero] = ACTIONS(53),
    [sym_boundary] = ACTIONS(53),
    [sym_symbol_group] = ACTIONS(53),
    [anon_sym_LPAREN] = ACTIONS(51),
    [anon_sym_BQUOTE] = ACTIONS(53),
    [anon_sym_COMMA] = ACTIONS(51),
    [sym_colon] = ACTIONS(53),
    [sym_complement] = ACTIONS(53),
    [sym_term_complement] = ACTIONS(53),
    [sym_contains] = ACTIONS(53),
    [sym_plus] = ACTIONS(53),
    [sym_star] = ACTIONS(53),
    [sym_repeat] = ACTIONS(53),
    [sym_upper] = ACTIONS(53),
    [sym_lower] = ACTIONS(53),
    [sym_reverse] = ACTIONS(53),
    [sym_inverse] = ACTIONS(53),
    [sym_ignore] = ACTIONS(53),
    [sym_ignore_inside] = ACTIONS(53),
    [sym_union] = ACTIONS(53),
    [sym_intersect] = ACTIONS(53),
    [sym_subtract] = ACTIONS(51),
    [anon_sym__] = ACTIONS(51),
    [anon_sym_EQ_GT] = ACTIONS(53),
    [anon_sym_DASH_GT] = ACTIONS(51),
    [anon_sym_LT_DASH] = ACTIONS(53),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(53),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(53),
    [anon_sym_AT_DASH_GT] = ACTIONS(53),
    [anon_sym_DASH_GT_AT] = ACTIONS(53),
    [anon_sym_AT_GT] = ACTIONS(53),
    [anon_sym_GT_AT] = ACTIONS(53),
    [anon_sym_LBRACK_DOT] = ACTIONS(53),
    [anon_sym_COMMA_COMMA] = ACTIONS(53),
    [sym_crossproduct] = ACTIONS(53),
    [sym_compose] = ACTIONS(53),
    [sym_comment] = ACTIONS(3),
  },
  [638] = {
    [aux_sym_context_list_repeat1] = STATE(638),
    [anon_sym_LBRACK] = ACTIONS(621),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(816),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(623),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(623),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(623),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym__] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [639] = {
    [anon_sym_LBRACK] = ACTIONS(659),
    [sym_symbol] = ACTIONS(659),
    [sym_string] = ACTIONS(661),
    [sym_any] = ACTIONS(661),
    [sym_zero] = ACTIONS(661),
    [sym_boundary] = ACTIONS(661),
    [sym_symbol_group] = ACTIONS(661),
    [anon_sym_LPAREN] = ACTIONS(659),
    [anon_sym_BQUOTE] = ACTIONS(661),
    [anon_sym_COMMA] = ACTIONS(659),
    [sym_colon] = ACTIONS(661),
    [sym_complement] = ACTIONS(661),
    [sym_term_complement] = ACTIONS(661),
    [sym_contains] = ACTIONS(661),
    [sym_plus] = ACTIONS(661),
    [sym_star] = ACTIONS(661),
    [sym_repeat] = ACTIONS(661),
    [sym_upper] = ACTIONS(661),
    [sym_lower] = ACTIONS(661),
    [sym_reverse] = ACTIONS(661),
    [sym_inverse] = ACTIONS(661),
    [sym_ignore] = ACTIONS(661),
    [sym_ignore_inside] = ACTIONS(661),
    [sym_union] = ACTIONS(661),
    [sym_intersect] = ACTIONS(661),
    [sym_subtract] = ACTIONS(659),
    [anon_sym__] = ACTIONS(659),
    [anon_sym_EQ_GT] = ACTIONS(661),
    [anon_sym_DASH_GT] = ACTIONS(659),
    [anon_sym_LT_DASH] = ACTIONS(661),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(661),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(661),
    [anon_sym_AT_DASH_GT] = ACTIONS(661),
    [anon_sym_DASH_GT_AT] = ACTIONS(661),
    [anon_sym_AT_GT] = ACTIONS(661),
    [anon_sym_GT_AT] = ACTIONS(661),
    [anon_sym_LBRACK_DOT] = ACTIONS(661),
    [anon_sym_COMMA_COMMA] = ACTIONS(661),
    [sym_crossproduct] = ACTIONS(661),
    [sym_compose] = ACTIONS(661),
    [sym_comment] = ACTIONS(3),
  },
  [640] = {
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [anon_sym_COMMA] = ACTIONS(535),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(537),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(537),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(537),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(537),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
  [641] = {
    [anon_sym_LBRACK] = ACTIONS(655),
    [sym_symbol] = ACTIONS(655),
    [sym_string] = ACTIONS(657),
    [sym_any] = ACTIONS(657),
    [sym_zero] = ACTIONS(657),
    [sym_boundary] = ACTIONS(657),
    [sym_symbol_group] = ACTIONS(657),
    [anon_sym_LPAREN] = ACTIONS(655),
    [anon_sym_BQUOTE] = ACTIONS(657),
    [anon_sym_COMMA] = ACTIONS(655),
    [sym_colon] = ACTIONS(657),
    [sym_complement] = ACTIONS(657),
    [sym_term_complement] = ACTIONS(657),
    [sym_contains] = ACTIONS(657),
    [sym_plus] = ACTIONS(657),
    [sym_star] = ACTIONS(657),
    [sym_repeat] = ACTIONS(657),
    [sym_upper] = ACTIONS(657),
    [sym_lower] = ACTIONS(657),
    [sym_reverse] = ACTIONS(657),
    [sym_inverse] = ACTIONS(657),
    [sym_ignore] = ACTIONS(657),
    [sym_ignore_inside] = ACTIONS(657),
    [sym_union] = ACTIONS(657),
    [sym_intersect] = ACTIONS(657),
    [sym_subtract] = ACTIONS(655),
    [anon_sym__] = ACTIONS(655),
    [anon_sym_EQ_GT] = ACTIONS(657),
    [anon_sym_DASH_GT] = ACTIONS(655),
    [anon_sym_LT_DASH] = ACTIONS(657),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(657),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(657),
    [anon_sym_AT_DASH_GT] = ACTIONS(657),
    [anon_sym_DASH_GT_AT] = ACTIONS(657),
    [anon_sym_AT_GT] = ACTIONS(657),
    [anon_sym_GT_AT] = ACTIONS(657),
    [anon_sym_LBRACK_DOT] = ACTIONS(657),
    [anon_sym_COMMA_COMMA] = ACTIONS(657),
    [sym_crossproduct] = ACTIONS(657),
    [sym_compose] = ACTIONS(657),
    [sym_comment] = ACTIONS(3),
  },
  [642] = {
    [anon_sym_LBRACK] = ACTIONS(628),
    [sym_symbol] = ACTIONS(628),
    [sym_string] = ACTIONS(630),
    [sym_any] = ACTIONS(630),
    [sym_zero] = ACTIONS(630),
    [sym_boundary] = ACTIONS(630),
    [sym_symbol_group] = ACTIONS(630),
    [anon_sym_LPAREN] = ACTIONS(628),
    [anon_sym_BQUOTE] = ACTIONS(630),
    [anon_sym_COMMA] = ACTIONS(628),
    [sym_colon] = ACTIONS(630),
    [sym_complement] = ACTIONS(630),
    [sym_term_complement] = ACTIONS(630),
    [sym_contains] = ACTIONS(630),
    [sym_plus] = ACTIONS(630),
    [sym_star] = ACTIONS(630),
    [sym_repeat] = ACTIONS(630),
    [sym_upper] = ACTIONS(630),
    [sym_lower] = ACTIONS(630),
    [sym_reverse] = ACTIONS(630),
    [sym_inverse] = ACTIONS(630),
    [sym_ignore] = ACTIONS(630),
    [sym_ignore_inside] = ACTIONS(630),
    [sym_union] = ACTIONS(630),
    [sym_intersect] = ACTIONS(630),
    [sym_subtract] = ACTIONS(628),
    [anon_sym__] = ACTIONS(628),
    [anon_sym_EQ_GT] = ACTIONS(630),
    [anon_sym_DASH_GT] = ACTIONS(628),
    [anon_sym_LT_DASH] = ACTIONS(630),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(630),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(630),
    [anon_sym_AT_DASH_GT] = ACTIONS(630),
    [anon_sym_DASH_GT_AT] = ACTIONS(630),
    [anon_sym_AT_GT] = ACTIONS(630),
    [anon_sym_GT_AT] = ACTIONS(630),
    [anon_sym_LBRACK_DOT] = ACTIONS(630),
    [anon_sym_COMMA_COMMA] = ACTIONS(630),
    [sym_crossproduct] = ACTIONS(630),
    [sym_compose] = ACTIONS(630),
    [sym_comment] = ACTIONS(3),
  },
  [643] = {
    [anon_sym_LBRACK] = ACTIONS(676),
    [sym_symbol] = ACTIONS(676),
    [sym_string] = ACTIONS(678),
    [sym_any] = ACTIONS(678),
    [sym_zero] = ACTIONS(678),
    [sym_boundary] = ACTIONS(678),
    [sym_symbol_group] = ACTIONS(678),
    [anon_sym_LPAREN] = ACTIONS(676),
    [anon_sym_BQUOTE] = ACTIONS(678),
    [anon_sym_COMMA] = ACTIONS(676),
    [sym_colon] = ACTIONS(678),
    [sym_complement] = ACTIONS(678),
    [sym_term_complement] = ACTIONS(678),
    [sym_contains] = ACTIONS(678),
    [sym_plus] = ACTIONS(678),
    [sym_star] = ACTIONS(678),
    [sym_repeat] = ACTIONS(678),
    [sym_upper] = ACTIONS(678),
    [sym_lower] = ACTIONS(678),
    [sym_reverse] = ACTIONS(678),
    [sym_inverse] = ACTIONS(678),
    [sym_ignore] = ACTIONS(678),
    [sym_ignore_inside] = ACTIONS(678),
    [sym_union] = ACTIONS(678),
    [sym_intersect] = ACTIONS(678),
    [sym_subtract] = ACTIONS(676),
    [anon_sym__] = ACTIONS(676),
    [anon_sym_EQ_GT] = ACTIONS(678),
    [anon_sym_DASH_GT] = ACTIONS(676),
    [anon_sym_LT_DASH] = ACTIONS(678),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(678),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(678),
    [anon_sym_AT_DASH_GT] = ACTIONS(678),
    [anon_sym_DASH_GT_AT] = ACTIONS(678),
    [anon_sym_AT_GT] = ACTIONS(678),
    [anon_sym_GT_AT] = ACTIONS(678),
    [anon_sym_LBRACK_DOT] = ACTIONS(678),
    [anon_sym_COMMA_COMMA] = ACTIONS(678),
    [sym_crossproduct] = ACTIONS(678),
    [sym_compose] = ACTIONS(678),
    [sym_comment] = ACTIONS(3),
  },
  [644] = {
    [anon_sym_LBRACK] = ACTIONS(621),
    [sym_symbol] = ACTIONS(621),
    [sym_string] = ACTIONS(623),
    [sym_any] = ACTIONS(623),
    [sym_zero] = ACTIONS(623),
    [sym_boundary] = ACTIONS(623),
    [sym_symbol_group] = ACTIONS(623),
    [anon_sym_LPAREN] = ACTIONS(621),
    [anon_sym_BQUOTE] = ACTIONS(623),
    [anon_sym_COMMA] = ACTIONS(621),
    [sym_colon] = ACTIONS(623),
    [sym_complement] = ACTIONS(623),
    [sym_term_complement] = ACTIONS(623),
    [sym_contains] = ACTIONS(623),
    [sym_plus] = ACTIONS(623),
    [sym_star] = ACTIONS(623),
    [sym_repeat] = ACTIONS(623),
    [sym_upper] = ACTIONS(623),
    [sym_lower] = ACTIONS(623),
    [sym_reverse] = ACTIONS(623),
    [sym_inverse] = ACTIONS(623),
    [sym_ignore] = ACTIONS(623),
    [sym_ignore_inside] = ACTIONS(623),
    [sym_union] = ACTIONS(623),
    [sym_intersect] = ACTIONS(623),
    [sym_subtract] = ACTIONS(621),
    [anon_sym__] = ACTIONS(621),
    [anon_sym_EQ_GT] = ACTIONS(623),
    [anon_sym_DASH_GT] = ACTIONS(621),
    [anon_sym_LT_DASH] = ACTIONS(623),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(623),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(623),
    [anon_sym_AT_DASH_GT] = ACTIONS(623),
    [anon_sym_DASH_GT_AT] = ACTIONS(623),
    [anon_sym_AT_GT] = ACTIONS(623),
    [anon_sym_GT_AT] = ACTIONS(623),
    [anon_sym_LBRACK_DOT] = ACTIONS(623),
    [anon_sym_COMMA_COMMA] = ACTIONS(623),
    [sym_crossproduct] = ACTIONS(623),
    [sym_compose] = ACTIONS(623),
    [sym_comment] = ACTIONS(3),
  },
  [645] = {
    [aux_sym_parallel_conditional_replace_repeat1] = STATE(631),
    [anon_sym_LBRACK] = ACTIONS(535),
    [sym_symbol] = ACTIONS(535),
    [sym_string] = ACTIONS(537),
    [sym_any] = ACTIONS(537),
    [sym_zero] = ACTIONS(537),
    [sym_boundary] = ACTIONS(537),
    [sym_symbol_group] = ACTIONS(537),
    [anon_sym_LPAREN] = ACTIONS(535),
    [anon_sym_BQUOTE] = ACTIONS(537),
    [sym_colon] = ACTIONS(537),
    [sym_complement] = ACTIONS(537),
    [sym_term_complement] = ACTIONS(537),
    [sym_contains] = ACTIONS(537),
    [sym_plus] = ACTIONS(537),
    [sym_star] = ACTIONS(537),
    [sym_repeat] = ACTIONS(537),
    [sym_upper] = ACTIONS(537),
    [sym_lower] = ACTIONS(537),
    [sym_reverse] = ACTIONS(537),
    [sym_inverse] = ACTIONS(537),
    [sym_ignore] = ACTIONS(537),
    [sym_ignore_inside] = ACTIONS(537),
    [sym_union] = ACTIONS(537),
    [sym_intersect] = ACTIONS(537),
    [sym_subtract] = ACTIONS(535),
    [anon_sym__] = ACTIONS(535),
    [anon_sym_EQ_GT] = ACTIONS(537),
    [anon_sym_DASH_GT] = ACTIONS(535),
    [anon_sym_LT_DASH] = ACTIONS(537),
    [anon_sym_LPAREN_DASH_GT_RPAREN] = ACTIONS(537),
    [anon_sym_LPAREN_LT_DASH_RPAREN] = ACTIONS(537),
    [anon_sym_AT_DASH_GT] = ACTIONS(537),
    [anon_sym_DASH_GT_AT] = ACTIONS(537),
    [anon_sym_AT_GT] = ACTIONS(537),
    [anon_sym_GT_AT] = ACTIONS(537),
    [anon_sym_LBRACK_DOT] = ACTIONS(537),
    [anon_sym_COMMA_COMMA] = ACTIONS(812),
    [sym_crossproduct] = ACTIONS(537),
    [sym_compose] = ACTIONS(537),
    [sym_comment] = ACTIONS(3),
  },
};

static uint16_t ts_small_parse_table[] = {
  [0] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(821), 1,
      anon_sym__,
    STATE(329), 1,
      sym_expression,
    STATE(411), 1,
      sym_context,
    STATE(467), 1,
      sym_context_list,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [60] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(821), 1,
      anon_sym__,
    STATE(329), 1,
      sym_expression,
    STATE(411), 1,
      sym_context,
    STATE(468), 1,
      sym_context_list,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [120] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(823), 1,
      anon_sym__,
    STATE(312), 1,
      sym_expression,
    STATE(468), 1,
      sym_context_list,
    STATE(476), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [180] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(825), 1,
      anon_sym__,
    STATE(316), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(564), 1,
      sym_context,
    STATE(588), 1,
      sym_context_list,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [240] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(827), 1,
      anon_sym__,
    STATE(321), 1,
      sym_expression,
    STATE(408), 1,
      sym_context_list,
    STATE(409), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [300] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(829), 1,
      anon_sym__,
    STATE(352), 1,
      sym_expression,
    STATE(550), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(571), 1,
      sym_context_list,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [360] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(831), 1,
      anon_sym__,
    STATE(324), 1,
      sym_expression,
    STATE(500), 1,
      sym_context,
    STATE(512), 1,
      sym_context_list,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [420] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(833), 1,
      anon_sym__,
    STATE(348), 1,
      sym_expression,
    STATE(384), 1,
      sym_context,
    STATE(431), 1,
      sym_context_list,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [480] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(835), 1,
      anon_sym__,
    STATE(358), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(634), 1,
      sym_context,
    STATE(639), 1,
      sym_context_list,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [540] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(837), 1,
      anon_sym__,
    STATE(325), 1,
      sym_expression,
    STATE(458), 1,
      sym_context,
    STATE(468), 1,
      sym_context_list,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [600] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(831), 1,
      anon_sym__,
    STATE(324), 1,
      sym_expression,
    STATE(491), 1,
      sym_context_list,
    STATE(500), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [660] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(827), 1,
      anon_sym__,
    STATE(321), 1,
      sym_expression,
    STATE(409), 1,
      sym_context,
    STATE(431), 1,
      sym_context_list,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [720] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(839), 1,
      anon_sym__,
    STATE(342), 1,
      sym_expression,
    STATE(395), 1,
      sym_context,
    STATE(408), 1,
      sym_context_list,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [780] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(841), 1,
      anon_sym__,
    STATE(320), 1,
      sym_expression,
    STATE(408), 1,
      sym_context_list,
    STATE(487), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [840] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(823), 1,
      anon_sym__,
    STATE(312), 1,
      sym_expression,
    STATE(467), 1,
      sym_context_list,
    STATE(476), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [900] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(843), 1,
      anon_sym__,
    STATE(305), 1,
      sym_expression,
    STATE(444), 1,
      sym_context,
    STATE(512), 1,
      sym_context_list,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [960] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(833), 1,
      anon_sym__,
    STATE(348), 1,
      sym_expression,
    STATE(384), 1,
      sym_context,
    STATE(408), 1,
      sym_context_list,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1020] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(845), 1,
      anon_sym__,
    STATE(323), 1,
      sym_expression,
    STATE(512), 1,
      sym_context_list,
    STATE(538), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1080] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(829), 1,
      anon_sym__,
    STATE(352), 1,
      sym_expression,
    STATE(551), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(571), 1,
      sym_context_list,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1140] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(847), 1,
      anon_sym__,
    STATE(314), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(603), 1,
      sym_context,
    STATE(639), 1,
      sym_context_list,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1200] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(825), 1,
      anon_sym__,
    STATE(316), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(587), 1,
      sym_context,
    STATE(588), 1,
      sym_context_list,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1260] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(835), 1,
      anon_sym__,
    STATE(358), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(629), 1,
      sym_context,
    STATE(639), 1,
      sym_context_list,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1320] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(849), 1,
      anon_sym__,
    STATE(353), 1,
      sym_expression,
    STATE(504), 1,
      sym_context,
    STATE(512), 1,
      sym_context_list,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1380] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(847), 1,
      anon_sym__,
    STATE(314), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(603), 1,
      sym_context,
    STATE(643), 1,
      sym_context_list,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1440] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(851), 1,
      anon_sym__,
    STATE(359), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(616), 1,
      sym_context_list,
    STATE(621), 1,
      sym_context,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1500] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(847), 1,
      anon_sym__,
    STATE(314), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(604), 1,
      sym_context,
    STATE(643), 1,
      sym_context_list,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1560] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(851), 1,
      anon_sym__,
    STATE(359), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(600), 1,
      sym_context,
    STATE(616), 1,
      sym_context_list,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1620] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(829), 1,
      anon_sym__,
    STATE(352), 1,
      sym_expression,
    STATE(550), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(588), 1,
      sym_context_list,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1680] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(843), 1,
      anon_sym__,
    STATE(305), 1,
      sym_expression,
    STATE(444), 1,
      sym_context,
    STATE(491), 1,
      sym_context_list,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1740] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(853), 1,
      anon_sym__,
    STATE(346), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(591), 1,
      sym_context,
    STATE(615), 1,
      sym_context_list,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1800] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(855), 1,
      anon_sym__,
    STATE(311), 1,
      sym_expression,
    STATE(468), 1,
      sym_context_list,
    STATE(497), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1860] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(853), 1,
      anon_sym__,
    STATE(346), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(589), 1,
      sym_context,
    STATE(616), 1,
      sym_context_list,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1920] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(853), 1,
      anon_sym__,
    STATE(346), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(589), 1,
      sym_context,
    STATE(615), 1,
      sym_context_list,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [1980] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(851), 1,
      anon_sym__,
    STATE(359), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(613), 1,
      sym_context,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2037] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(839), 1,
      anon_sym__,
    STATE(342), 1,
      sym_expression,
    STATE(392), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2094] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(849), 1,
      anon_sym__,
    STATE(353), 1,
      sym_expression,
    STATE(496), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2151] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(859), 1,
      anon_sym_RPAREN,
    STATE(340), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(698), 1,
      aux_sym_optional_repeat1,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2208] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(861), 1,
      anon_sym_RPAREN,
    STATE(340), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(702), 1,
      aux_sym_optional_repeat1,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2265] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(855), 1,
      anon_sym__,
    STATE(311), 1,
      sym_expression,
    STATE(459), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2322] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(827), 1,
      anon_sym__,
    STATE(321), 1,
      sym_expression,
    STATE(392), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2379] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(841), 1,
      anon_sym__,
    STATE(320), 1,
      sym_expression,
    STATE(392), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2436] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(863), 1,
      anon_sym_RPAREN,
    STATE(340), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(683), 1,
      aux_sym_optional_repeat1,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2493] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(865), 1,
      anon_sym_RPAREN,
    STATE(340), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(693), 1,
      aux_sym_optional_repeat1,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2550] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(845), 1,
      anon_sym__,
    STATE(323), 1,
      sym_expression,
    STATE(496), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2607] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(867), 1,
      anon_sym_RPAREN,
    STATE(340), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(692), 1,
      aux_sym_optional_repeat1,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2664] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(823), 1,
      anon_sym__,
    STATE(312), 1,
      sym_expression,
    STATE(459), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2721] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(869), 1,
      anon_sym_RPAREN,
    STATE(340), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(702), 1,
      aux_sym_optional_repeat1,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2778] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(871), 1,
      anon_sym_RPAREN,
    STATE(340), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(702), 1,
      aux_sym_optional_repeat1,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2835] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(873), 1,
      anon_sym_RPAREN,
    STATE(340), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(702), 1,
      aux_sym_optional_repeat1,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2892] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(843), 1,
      anon_sym__,
    STATE(305), 1,
      sym_expression,
    STATE(496), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [2949] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(853), 1,
      anon_sym__,
    STATE(346), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(613), 1,
      sym_context,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3006] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      sym_symbol,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_BQUOTE,
    ACTIONS(17), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(875), 1,
      ts_builtin_sym_end,
    STATE(300), 1,
      sym_expression,
    STATE(545), 1,
      sym_parallel_replace,
    STATE(620), 1,
      sym_conditional_replace,
    STATE(706), 1,
      aux_sym_source_file_repeat1,
    STATE(454), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(15), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(9), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(625), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3063] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(877), 1,
      anon_sym_RPAREN,
    STATE(340), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(702), 1,
      aux_sym_optional_repeat1,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3120] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(879), 1,
      anon_sym_RPAREN,
    STATE(340), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(694), 1,
      aux_sym_optional_repeat1,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3177] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(831), 1,
      anon_sym__,
    STATE(324), 1,
      sym_expression,
    STATE(496), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3234] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(847), 1,
      anon_sym__,
    STATE(314), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(644), 1,
      sym_context,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3291] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(881), 1,
      anon_sym_LBRACK,
    ACTIONS(884), 1,
      sym_symbol,
    ACTIONS(890), 1,
      anon_sym_LPAREN,
    ACTIONS(893), 1,
      anon_sym_RPAREN,
    ACTIONS(895), 1,
      anon_sym_BQUOTE,
    ACTIONS(901), 1,
      anon_sym_LBRACK_DOT,
    STATE(340), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(702), 1,
      aux_sym_optional_repeat1,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(898), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(887), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3348] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(837), 1,
      anon_sym__,
    STATE(325), 1,
      sym_expression,
    STATE(459), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3405] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(825), 1,
      anon_sym__,
    STATE(316), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(572), 1,
      sym_context,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3462] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(833), 1,
      anon_sym__,
    STATE(348), 1,
      sym_expression,
    STATE(392), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3519] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(904), 1,
      ts_builtin_sym_end,
    ACTIONS(906), 1,
      anon_sym_LBRACK,
    ACTIONS(909), 1,
      sym_symbol,
    ACTIONS(915), 1,
      anon_sym_LPAREN,
    ACTIONS(918), 1,
      anon_sym_BQUOTE,
    ACTIONS(924), 1,
      anon_sym_LBRACK_DOT,
    STATE(300), 1,
      sym_expression,
    STATE(545), 1,
      sym_parallel_replace,
    STATE(620), 1,
      sym_conditional_replace,
    STATE(706), 1,
      aux_sym_source_file_repeat1,
    STATE(454), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(921), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(912), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(625), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3576] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(835), 1,
      anon_sym__,
    STATE(358), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(644), 1,
      sym_context,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3633] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(829), 1,
      anon_sym__,
    STATE(352), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(572), 1,
      sym_context,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3690] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(927), 1,
      anon_sym_RPAREN,
    STATE(340), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(702), 1,
      aux_sym_optional_repeat1,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3747] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(929), 1,
      anon_sym_RPAREN,
    STATE(340), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(709), 1,
      aux_sym_optional_repeat1,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3804] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    ACTIONS(821), 1,
      anon_sym__,
    STATE(329), 1,
      sym_expression,
    STATE(459), 1,
      sym_context,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3861] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(117), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    ACTIONS(933), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(32), 1,
      sym_expression,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(436), 1,
      sym_conditional_replace,
    STATE(386), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(103), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3915] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(203), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    ACTIONS(935), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(94), 1,
      sym_expression,
    STATE(397), 1,
      sym_conditional_replace,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(437), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(191), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [3969] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(139), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    ACTIONS(939), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(59), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(369), 1,
      sym_conditional_replace,
    STATE(380), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(127), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4023] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(257), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    ACTIONS(943), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(112), 1,
      sym_expression,
    STATE(439), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(430), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(243), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4077] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(257), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(119), 1,
      sym_expression,
    STATE(439), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(430), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(243), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4131] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(117), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(20), 1,
      sym_expression,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(436), 1,
      sym_conditional_replace,
    STATE(386), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(103), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4185] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(49), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    ACTIONS(947), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(4), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(390), 1,
      sym_conditional_replace,
    STATE(331), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(35), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4239] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(49), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(9), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(390), 1,
      sym_conditional_replace,
    STATE(331), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(35), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4293] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(139), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    ACTIONS(949), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(44), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(369), 1,
      sym_conditional_replace,
    STATE(380), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(127), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4347] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(257), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    ACTIONS(951), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(108), 1,
      sym_expression,
    STATE(439), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(430), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(243), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4401] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(953), 1,
      anon_sym_RBRACK,
    STATE(315), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4455] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(281), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    ACTIONS(955), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(175), 1,
      sym_expression,
    STATE(473), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(440), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(269), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4509] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(257), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(112), 1,
      sym_expression,
    STATE(439), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(430), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(243), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4563] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(203), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    ACTIONS(957), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(107), 1,
      sym_expression,
    STATE(397), 1,
      sym_conditional_replace,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(437), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(191), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4617] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(49), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(14), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(390), 1,
      sym_conditional_replace,
    STATE(331), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(35), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4671] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(281), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    ACTIONS(959), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(150), 1,
      sym_expression,
    STATE(473), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(440), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(269), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4725] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(49), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    ACTIONS(961), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(9), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(390), 1,
      sym_conditional_replace,
    STATE(331), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(35), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4779] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(117), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(60), 1,
      sym_expression,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(436), 1,
      sym_conditional_replace,
    STATE(386), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(103), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4833] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(203), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(79), 1,
      sym_expression,
    STATE(397), 1,
      sym_conditional_replace,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(437), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(191), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4887] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(281), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(135), 1,
      sym_expression,
    STATE(473), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(440), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(269), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4941] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(963), 1,
      anon_sym_RBRACK,
    STATE(356), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [4995] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(117), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    ACTIONS(965), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(20), 1,
      sym_expression,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(436), 1,
      sym_conditional_replace,
    STATE(386), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(103), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5049] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(257), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    ACTIONS(967), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(109), 1,
      sym_expression,
    STATE(439), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(430), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(243), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5103] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(281), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    ACTIONS(969), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(166), 1,
      sym_expression,
    STATE(473), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(440), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(269), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5157] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(139), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(44), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(369), 1,
      sym_conditional_replace,
    STATE(380), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(127), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5211] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(203), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    ACTIONS(971), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(104), 1,
      sym_expression,
    STATE(397), 1,
      sym_conditional_replace,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(437), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(191), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5265] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(139), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    ACTIONS(973), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(33), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(369), 1,
      sym_conditional_replace,
    STATE(380), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(127), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5319] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(139), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(57), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(369), 1,
      sym_conditional_replace,
    STATE(380), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(127), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5373] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(203), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(94), 1,
      sym_expression,
    STATE(397), 1,
      sym_conditional_replace,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(437), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(191), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5427] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(281), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    ACTIONS(945), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(141), 1,
      sym_expression,
    STATE(473), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(440), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(269), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5481] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(975), 1,
      anon_sym_RBRACK,
    STATE(303), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5535] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(281), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    ACTIONS(977), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(135), 1,
      sym_expression,
    STATE(473), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(440), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(269), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5589] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(979), 1,
      anon_sym_RBRACK,
    STATE(334), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5643] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(981), 1,
      anon_sym_RBRACK,
    STATE(344), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5697] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    ACTIONS(983), 1,
      anon_sym_RBRACK,
    STATE(322), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5751] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(203), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    ACTIONS(985), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(62), 1,
      sym_expression,
    STATE(397), 1,
      sym_conditional_replace,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(437), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(191), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5805] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(49), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    ACTIONS(987), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(12), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(390), 1,
      sym_conditional_replace,
    STATE(331), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(35), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5859] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(117), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    ACTIONS(989), 1,
      anon_sym_DOT_DOT_DOT,
    STATE(35), 1,
      sym_expression,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(436), 1,
      sym_conditional_replace,
    STATE(386), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(103), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5913] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(17), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(167), 1,
      sym_expression,
    STATE(449), 1,
      sym_conditional_replace,
    STATE(474), 1,
      sym_parallel_replace,
    STATE(463), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(285), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [5964] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(187), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(360), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(377), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6015] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(326), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6066] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(203), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(106), 1,
      sym_expression,
    STATE(397), 1,
      sym_conditional_replace,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(437), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(191), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6117] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(378), 1,
      sym_expression,
    STATE(570), 1,
      sym_parallel_replace,
    STATE(607), 1,
      sym_conditional_replace,
    STATE(543), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6168] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(330), 1,
      sym_expression,
    STATE(418), 1,
      sym_parallel_replace,
    STATE(556), 1,
      sym_conditional_replace,
    STATE(415), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(383), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6219] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(364), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(422), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6270] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(17), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(169), 1,
      sym_expression,
    STATE(449), 1,
      sym_conditional_replace,
    STATE(474), 1,
      sym_parallel_replace,
    STATE(463), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(285), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6321] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(17), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(174), 1,
      sym_expression,
    STATE(449), 1,
      sym_conditional_replace,
    STATE(474), 1,
      sym_parallel_replace,
    STATE(463), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(285), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6372] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(17), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(125), 1,
      sym_expression,
    STATE(449), 1,
      sym_conditional_replace,
    STATE(474), 1,
      sym_parallel_replace,
    STATE(463), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(285), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6423] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      sym_symbol,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_BQUOTE,
    ACTIONS(17), 1,
      anon_sym_LBRACK_DOT,
    STATE(279), 1,
      sym_expression,
    STATE(545), 1,
      sym_parallel_replace,
    STATE(620), 1,
      sym_conditional_replace,
    STATE(454), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(15), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(9), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(625), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6474] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      sym_symbol,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_BQUOTE,
    ACTIONS(17), 1,
      anon_sym_LBRACK_DOT,
    STATE(280), 1,
      sym_expression,
    STATE(545), 1,
      sym_parallel_replace,
    STATE(620), 1,
      sym_conditional_replace,
    STATE(454), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(15), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(9), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(625), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6525] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(139), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(58), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(369), 1,
      sym_conditional_replace,
    STATE(380), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(127), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6576] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      sym_symbol,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_BQUOTE,
    ACTIONS(17), 1,
      anon_sym_LBRACK_DOT,
    STATE(281), 1,
      sym_expression,
    STATE(545), 1,
      sym_parallel_replace,
    STATE(620), 1,
      sym_conditional_replace,
    STATE(454), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(15), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(9), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(625), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6627] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(93), 1,
      sym_expression,
    STATE(402), 1,
      sym_parallel_replace,
    STATE(433), 1,
      sym_conditional_replace,
    STATE(404), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(211), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6678] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(91), 1,
      sym_expression,
    STATE(402), 1,
      sym_parallel_replace,
    STATE(433), 1,
      sym_conditional_replace,
    STATE(404), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(211), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6729] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(90), 1,
      sym_expression,
    STATE(402), 1,
      sym_parallel_replace,
    STATE(433), 1,
      sym_conditional_replace,
    STATE(404), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(211), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6780] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(89), 1,
      sym_expression,
    STATE(402), 1,
      sym_parallel_replace,
    STATE(433), 1,
      sym_conditional_replace,
    STATE(404), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(211), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6831] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(378), 1,
      sym_expression,
    STATE(418), 1,
      sym_parallel_replace,
    STATE(552), 1,
      sym_conditional_replace,
    STATE(537), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6882] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(304), 1,
      sym_expression,
    STATE(418), 1,
      sym_parallel_replace,
    STATE(556), 1,
      sym_conditional_replace,
    STATE(415), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(383), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6933] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      sym_symbol,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_BQUOTE,
    ACTIONS(187), 1,
      anon_sym_LBRACK_DOT,
    STATE(218), 1,
      sym_expression,
    STATE(482), 1,
      sym_parallel_replace,
    STATE(574), 1,
      sym_conditional_replace,
    STATE(406), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(371), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(9), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(625), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [6984] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      sym_symbol,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_BQUOTE,
    ACTIONS(187), 1,
      anon_sym_LBRACK_DOT,
    STATE(220), 1,
      sym_expression,
    STATE(482), 1,
      sym_parallel_replace,
    STATE(574), 1,
      sym_conditional_replace,
    STATE(406), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(371), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(9), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(625), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7035] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      sym_symbol,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_BQUOTE,
    ACTIONS(187), 1,
      anon_sym_LBRACK_DOT,
    STATE(233), 1,
      sym_expression,
    STATE(482), 1,
      sym_parallel_replace,
    STATE(574), 1,
      sym_conditional_replace,
    STATE(406), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(371), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(9), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(625), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7086] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(357), 1,
      sym_expression,
    STATE(418), 1,
      sym_parallel_replace,
    STATE(556), 1,
      sym_conditional_replace,
    STATE(415), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(383), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7137] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    STATE(306), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7188] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(197), 1,
      sym_expression,
    STATE(498), 1,
      sym_conditional_replace,
    STATE(502), 1,
      sym_parallel_replace,
    STATE(508), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(331), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7239] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(196), 1,
      sym_expression,
    STATE(498), 1,
      sym_conditional_replace,
    STATE(502), 1,
      sym_parallel_replace,
    STATE(508), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(331), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7290] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(195), 1,
      sym_expression,
    STATE(498), 1,
      sym_conditional_replace,
    STATE(502), 1,
      sym_parallel_replace,
    STATE(508), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(331), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7341] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(189), 1,
      sym_expression,
    STATE(498), 1,
      sym_conditional_replace,
    STATE(502), 1,
      sym_parallel_replace,
    STATE(508), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(331), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7392] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(309), 1,
      sym_expression,
    STATE(418), 1,
      sym_parallel_replace,
    STATE(556), 1,
      sym_conditional_replace,
    STATE(415), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(383), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7443] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(281), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(158), 1,
      sym_expression,
    STATE(473), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(440), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(269), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7494] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(139), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(370), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(301), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7545] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    STATE(307), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7596] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(187), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(70), 1,
      sym_expression,
    STATE(464), 1,
      sym_conditional_replace,
    STATE(474), 1,
      sym_parallel_replace,
    STATE(429), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(175), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7647] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(187), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(69), 1,
      sym_expression,
    STATE(464), 1,
      sym_conditional_replace,
    STATE(474), 1,
      sym_parallel_replace,
    STATE(429), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(175), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7698] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(187), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(68), 1,
      sym_expression,
    STATE(464), 1,
      sym_conditional_replace,
    STATE(474), 1,
      sym_parallel_replace,
    STATE(429), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(175), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7749] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(328), 1,
      sym_expression,
    STATE(418), 1,
      sym_parallel_replace,
    STATE(556), 1,
      sym_conditional_replace,
    STATE(415), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(383), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7800] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    STATE(308), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7851] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    STATE(319), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7902] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(167), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(54), 1,
      sym_expression,
    STATE(402), 1,
      sym_parallel_replace,
    STATE(426), 1,
      sym_conditional_replace,
    STATE(385), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(155), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [7953] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(167), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(52), 1,
      sym_expression,
    STATE(402), 1,
      sym_parallel_replace,
    STATE(426), 1,
      sym_conditional_replace,
    STATE(385), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(155), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8004] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(167), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(51), 1,
      sym_expression,
    STATE(402), 1,
      sym_parallel_replace,
    STATE(426), 1,
      sym_conditional_replace,
    STATE(385), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(155), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8055] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(302), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8106] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(281), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(128), 1,
      sym_expression,
    STATE(473), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(440), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(269), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8157] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(281), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(131), 1,
      sym_expression,
    STATE(473), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(440), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(269), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8208] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(347), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8259] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(378), 1,
      sym_expression,
    STATE(484), 1,
      sym_conditional_replace,
    STATE(583), 1,
      sym_parallel_replace,
    STATE(539), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8310] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(311), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(149), 1,
      sym_expression,
    STATE(502), 1,
      sym_parallel_replace,
    STATE(506), 1,
      sym_conditional_replace,
    STATE(447), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(307), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8361] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(311), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(151), 1,
      sym_expression,
    STATE(502), 1,
      sym_parallel_replace,
    STATE(506), 1,
      sym_conditional_replace,
    STATE(447), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(307), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8412] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(311), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(152), 1,
      sym_expression,
    STATE(502), 1,
      sym_parallel_replace,
    STATE(506), 1,
      sym_conditional_replace,
    STATE(447), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(307), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8463] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      sym_symbol,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_BQUOTE,
    ACTIONS(17), 1,
      anon_sym_LBRACK_DOT,
    STATE(293), 1,
      sym_expression,
    STATE(545), 1,
      sym_parallel_replace,
    STATE(620), 1,
      sym_conditional_replace,
    STATE(454), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(15), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(9), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(625), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8514] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(281), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(132), 1,
      sym_expression,
    STATE(473), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(440), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(269), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8565] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(281), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(124), 1,
      sym_expression,
    STATE(473), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(440), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(269), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8616] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(139), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(34), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(369), 1,
      sym_conditional_replace,
    STATE(380), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(127), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8667] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(203), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(367), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(377), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8718] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(247), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8769] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(257), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(116), 1,
      sym_expression,
    STATE(439), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(430), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(243), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8820] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(257), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(118), 1,
      sym_expression,
    STATE(439), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(430), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(243), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8871] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(281), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(372), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(422), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8922] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(378), 1,
      sym_expression,
    STATE(594), 1,
      sym_parallel_replace,
    STATE(607), 1,
      sym_conditional_replace,
    STATE(529), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [8973] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(49), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(15), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(390), 1,
      sym_conditional_replace,
    STATE(331), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(35), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9024] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(362), 1,
      sym_conditional_replace,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(378), 1,
      sym_expression,
    STATE(546), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9075] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(250), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9126] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(257), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(105), 1,
      sym_expression,
    STATE(439), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(430), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(243), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9177] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(49), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(3), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(390), 1,
      sym_conditional_replace,
    STATE(331), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(35), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9228] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(239), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9279] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(257), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(123), 1,
      sym_expression,
    STATE(439), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(430), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(243), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9330] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(241), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9381] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(269), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9432] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(117), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(29), 1,
      sym_expression,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(436), 1,
      sym_conditional_replace,
    STATE(386), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(103), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9483] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    STATE(350), 1,
      sym_expression,
    STATE(557), 1,
      sym_parallel_replace,
    STATE(645), 1,
      sym_conditional_replace,
    STATE(507), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(487), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9534] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    STATE(274), 1,
      sym_expression,
    STATE(513), 1,
      sym_parallel_replace,
    STATE(608), 1,
      sym_conditional_replace,
    STATE(492), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(445), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9585] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(225), 1,
      sym_expression,
    STATE(418), 1,
      sym_parallel_replace,
    STATE(556), 1,
      sym_conditional_replace,
    STATE(415), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(383), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9636] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(139), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(30), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(369), 1,
      sym_conditional_replace,
    STATE(380), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(127), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9687] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(187), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(110), 1,
      sym_expression,
    STATE(464), 1,
      sym_conditional_replace,
    STATE(474), 1,
      sym_parallel_replace,
    STATE(429), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(175), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9738] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(190), 1,
      sym_expression,
    STATE(498), 1,
      sym_conditional_replace,
    STATE(502), 1,
      sym_parallel_replace,
    STATE(508), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(331), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9789] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(139), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(40), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(369), 1,
      sym_conditional_replace,
    STATE(380), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(127), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9840] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(378), 1,
      sym_expression,
    STATE(560), 1,
      sym_parallel_replace,
    STATE(585), 1,
      sym_conditional_replace,
    STATE(534), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9891] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(117), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(17), 1,
      sym_expression,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(436), 1,
      sym_conditional_replace,
    STATE(386), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(103), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9942] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(17), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(127), 1,
      sym_expression,
    STATE(449), 1,
      sym_conditional_replace,
    STATE(474), 1,
      sym_parallel_replace,
    STATE(463), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(285), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [9993] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      sym_symbol,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_BQUOTE,
    ACTIONS(187), 1,
      anon_sym_LBRACK_DOT,
    STATE(226), 1,
      sym_expression,
    STATE(482), 1,
      sym_parallel_replace,
    STATE(574), 1,
      sym_conditional_replace,
    STATE(406), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(371), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(9), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(625), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10044] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(49), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(11), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(390), 1,
      sym_conditional_replace,
    STATE(331), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(35), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10095] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(49), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(13), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(390), 1,
      sym_conditional_replace,
    STATE(331), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(35), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10146] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(49), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(8), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(390), 1,
      sym_conditional_replace,
    STATE(331), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(35), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10197] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      sym_symbol,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_BQUOTE,
    ACTIONS(17), 1,
      anon_sym_LBRACK_DOT,
    STATE(258), 1,
      sym_expression,
    STATE(482), 1,
      sym_parallel_replace,
    STATE(578), 1,
      sym_conditional_replace,
    STATE(445), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(425), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(9), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(625), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10248] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(139), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(39), 1,
      sym_expression,
    STATE(365), 1,
      sym_parallel_replace,
    STATE(369), 1,
      sym_conditional_replace,
    STATE(380), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(127), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10299] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(378), 1,
      sym_expression,
    STATE(584), 1,
      sym_parallel_replace,
    STATE(585), 1,
      sym_conditional_replace,
    STATE(536), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10350] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(167), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(209), 1,
      sym_expression,
    STATE(418), 1,
      sym_parallel_replace,
    STATE(547), 1,
      sym_conditional_replace,
    STATE(381), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(357), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10401] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(167), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(211), 1,
      sym_expression,
    STATE(418), 1,
      sym_parallel_replace,
    STATE(547), 1,
      sym_conditional_replace,
    STATE(381), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(357), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10452] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(311), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    STATE(263), 1,
      sym_expression,
    STATE(513), 1,
      sym_parallel_replace,
    STATE(610), 1,
      sym_conditional_replace,
    STATE(478), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(409), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10503] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(311), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    STATE(264), 1,
      sym_expression,
    STATE(513), 1,
      sym_parallel_replace,
    STATE(610), 1,
      sym_conditional_replace,
    STATE(478), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(409), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10554] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(257), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(115), 1,
      sym_expression,
    STATE(439), 1,
      sym_conditional_replace,
    STATE(480), 1,
      sym_parallel_replace,
    STATE(430), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(243), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10605] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(167), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(198), 1,
      sym_expression,
    STATE(418), 1,
      sym_parallel_replace,
    STATE(547), 1,
      sym_conditional_replace,
    STATE(381), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(357), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10656] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(327), 1,
      sym_expression,
    STATE(418), 1,
      sym_parallel_replace,
    STATE(556), 1,
      sym_conditional_replace,
    STATE(415), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(383), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10707] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(203), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(100), 1,
      sym_expression,
    STATE(397), 1,
      sym_conditional_replace,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(437), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(191), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10758] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(311), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(160), 1,
      sym_expression,
    STATE(502), 1,
      sym_parallel_replace,
    STATE(506), 1,
      sym_conditional_replace,
    STATE(447), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(307), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10809] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(354), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10860] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(167), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(206), 1,
      sym_expression,
    STATE(418), 1,
      sym_parallel_replace,
    STATE(547), 1,
      sym_conditional_replace,
    STATE(381), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(357), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10911] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(355), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [10962] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(167), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(371), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(301), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11013] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(311), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(373), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(422), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11064] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(203), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(98), 1,
      sym_expression,
    STATE(397), 1,
      sym_conditional_replace,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(437), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(191), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11115] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(203), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(97), 1,
      sym_expression,
    STATE(397), 1,
      sym_conditional_replace,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(437), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(191), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11166] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(117), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(374), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(377), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11217] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(117), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(38), 1,
      sym_expression,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(436), 1,
      sym_conditional_replace,
    STATE(386), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(103), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11268] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(345), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11319] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(49), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(375), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(301), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11370] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(257), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(376), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(422), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11421] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(117), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(26), 1,
      sym_expression,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(436), 1,
      sym_conditional_replace,
    STATE(386), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(103), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11472] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(341), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11523] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(117), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(27), 1,
      sym_expression,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(436), 1,
      sym_conditional_replace,
    STATE(386), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(103), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11574] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(339), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11625] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(203), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(96), 1,
      sym_expression,
    STATE(397), 1,
      sym_conditional_replace,
    STATE(412), 1,
      sym_parallel_replace,
    STATE(437), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(191), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11676] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      sym_symbol,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_BQUOTE,
    ACTIONS(17), 1,
      anon_sym_LBRACK_DOT,
    STATE(256), 1,
      sym_expression,
    STATE(482), 1,
      sym_parallel_replace,
    STATE(578), 1,
      sym_conditional_replace,
    STATE(445), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(425), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(9), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(625), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11727] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(338), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11778] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(351), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11829] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    STATE(283), 1,
      sym_expression,
    STATE(513), 1,
      sym_parallel_replace,
    STATE(608), 1,
      sym_conditional_replace,
    STATE(492), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(445), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11880] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    STATE(276), 1,
      sym_expression,
    STATE(513), 1,
      sym_parallel_replace,
    STATE(608), 1,
      sym_conditional_replace,
    STATE(492), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(445), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11931] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      sym_symbol,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_BQUOTE,
    ACTIONS(17), 1,
      anon_sym_LBRACK_DOT,
    STATE(255), 1,
      sym_expression,
    STATE(482), 1,
      sym_parallel_replace,
    STATE(578), 1,
      sym_conditional_replace,
    STATE(445), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(425), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(9), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(625), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [11982] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    STATE(277), 1,
      sym_expression,
    STATE(513), 1,
      sym_parallel_replace,
    STATE(608), 1,
      sym_conditional_replace,
    STATE(492), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(445), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12033] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(167), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(53), 1,
      sym_expression,
    STATE(402), 1,
      sym_parallel_replace,
    STATE(426), 1,
      sym_conditional_replace,
    STATE(385), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(155), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12084] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      sym_symbol,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_BQUOTE,
    ACTIONS(17), 1,
      anon_sym_LBRACK_DOT,
    STATE(254), 1,
      sym_expression,
    STATE(482), 1,
      sym_parallel_replace,
    STATE(578), 1,
      sym_conditional_replace,
    STATE(445), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(425), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(9), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(625), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12135] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(378), 1,
      sym_expression,
    STATE(424), 1,
      sym_conditional_replace,
    STATE(577), 1,
      sym_parallel_replace,
    STATE(533), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12186] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(311), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    STATE(267), 1,
      sym_expression,
    STATE(513), 1,
      sym_parallel_replace,
    STATE(610), 1,
      sym_conditional_replace,
    STATE(478), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(409), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12237] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(311), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(397), 1,
      anon_sym_LBRACK,
    ACTIONS(399), 1,
      sym_symbol,
    ACTIONS(405), 1,
      anon_sym_BQUOTE,
    ACTIONS(819), 1,
      anon_sym_LPAREN,
    STATE(265), 1,
      sym_expression,
    STATE(513), 1,
      sym_parallel_replace,
    STATE(610), 1,
      sym_conditional_replace,
    STATE(478), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(409), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(401), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(640), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12288] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      sym_symbol,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_BQUOTE,
    ACTIONS(17), 1,
      anon_sym_LBRACK_DOT,
    STATE(275), 1,
      sym_expression,
    STATE(545), 1,
      sym_parallel_replace,
    STATE(620), 1,
      sym_conditional_replace,
    STATE(454), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(15), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(9), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(625), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12339] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(378), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(301), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12390] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(337), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12441] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(216), 1,
      sym_expression,
    STATE(418), 1,
      sym_parallel_replace,
    STATE(556), 1,
      sym_conditional_replace,
    STATE(415), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(383), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12492] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(229), 1,
      sym_expression,
    STATE(418), 1,
      sym_parallel_replace,
    STATE(556), 1,
      sym_conditional_replace,
    STATE(415), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(383), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12543] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(234), 1,
      sym_expression,
    STATE(418), 1,
      sym_parallel_replace,
    STATE(556), 1,
      sym_conditional_replace,
    STATE(415), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(383), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12594] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(231), 1,
      sym_expression,
    STATE(418), 1,
      sym_parallel_replace,
    STATE(556), 1,
      sym_conditional_replace,
    STATE(415), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(383), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12645] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(378), 1,
      sym_expression,
    STATE(424), 1,
      sym_conditional_replace,
    STATE(595), 1,
      sym_parallel_replace,
    STATE(544), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12696] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(362), 1,
      sym_conditional_replace,
    STATE(378), 1,
      sym_expression,
    STATE(402), 1,
      sym_parallel_replace,
    STATE(542), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12747] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(378), 1,
      sym_expression,
    STATE(484), 1,
      sym_conditional_replace,
    STATE(593), 1,
      sym_parallel_replace,
    STATE(530), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12798] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(17), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(389), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(377), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12849] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(336), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(563), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12900] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(347), 1,
      anon_sym_LBRACK,
    ACTIONS(349), 1,
      sym_symbol,
    ACTIONS(355), 1,
      anon_sym_BQUOTE,
    ACTIONS(857), 1,
      anon_sym_LPAREN,
    STATE(378), 1,
      sym_expression,
    STATE(517), 1,
      sym_parallel_replace,
    STATE(552), 1,
      sym_conditional_replace,
    STATE(423), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(419), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(351), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(562), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [12951] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(223), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(117), 1,
      sym_expression,
    STATE(402), 1,
      sym_parallel_replace,
    STATE(433), 1,
      sym_conditional_replace,
    STATE(404), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(211), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [13002] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_LBRACK,
    ACTIONS(233), 1,
      sym_symbol,
    ACTIONS(239), 1,
      anon_sym_BQUOTE,
    ACTIONS(311), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(941), 1,
      anon_sym_LPAREN,
    STATE(147), 1,
      sym_expression,
    STATE(502), 1,
      sym_parallel_replace,
    STATE(506), 1,
      sym_conditional_replace,
    STATE(447), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(307), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(235), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(505), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [13053] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LBRACK,
    ACTIONS(23), 1,
      sym_symbol,
    ACTIONS(29), 1,
      anon_sym_BQUOTE,
    ACTIONS(167), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(937), 1,
      anon_sym_LPAREN,
    STATE(56), 1,
      sym_expression,
    STATE(402), 1,
      sym_parallel_replace,
    STATE(426), 1,
      sym_conditional_replace,
    STATE(385), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(155), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(25), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(420), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [13104] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_LBRACK,
    ACTIONS(93), 1,
      sym_symbol,
    ACTIONS(99), 1,
      anon_sym_BQUOTE,
    ACTIONS(187), 1,
      anon_sym_LBRACK_DOT,
    ACTIONS(931), 1,
      anon_sym_LPAREN,
    STATE(72), 1,
      sym_expression,
    STATE(464), 1,
      sym_conditional_replace,
    STATE(474), 1,
      sym_parallel_replace,
    STATE(429), 2,
      sym_simple_replace,
      sym_single_replace,
    ACTIONS(175), 3,
      sym_complement,
      sym_term_complement,
      sym_contains,
    ACTIONS(95), 5,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
    STATE(481), 5,
      sym_optional,
      sym_substitute,
      sym_restrict,
      sym_mark,
      sym_parallel_conditional_replace,
  [13155] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(991), 2,
      anon_sym_LBRACK,
      sym_symbol,
    ACTIONS(993), 12,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
      anon_sym_LPAREN,
      anon_sym_BQUOTE,
      sym_complement,
      sym_term_complement,
      sym_contains,
      anon_sym_LBRACK_DOT,
      anon_sym_DOT_DOT_DOT,
  [13177] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(995), 3,
      anon_sym_LBRACK,
      sym_symbol,
      anon_sym__,
    ACTIONS(997), 11,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
      anon_sym_LPAREN,
      anon_sym_BQUOTE,
      sym_complement,
      sym_term_complement,
      sym_contains,
      anon_sym_LBRACK_DOT,
  [13199] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(999), 2,
      anon_sym_LBRACK,
      sym_symbol,
    ACTIONS(904), 12,
      ts_builtin_sym_end,
      sym_string,
      sym_any,
      sym_zero,
      sym_boundary,
      sym_symbol_group,
      anon_sym_LPAREN,
      anon_sym_BQUOTE,
      sym_complement,
      sym_term_complement,
      sym_contains,
      anon_sym_LBRACK_DOT,
  [13221] = 4,
    ACTIONS(79), 1,
      anon_sym_DASH_GT,
    ACTIONS(1001), 1,
      sym_comment,
    STATE(810), 1,
      sym_arrow,
    ACTIONS(81), 7,
      anon_sym_LT_DASH,
      anon_sym_LPAREN_DASH_GT_RPAREN,
      anon_sym_LPAREN_LT_DASH_RPAREN,
      anon_sym_AT_DASH_GT,
      anon_sym_DASH_GT_AT,
      anon_sym_AT_GT,
      anon_sym_GT_AT,
  [13240] = 4,
    ACTIONS(79), 1,
      anon_sym_DASH_GT,
    ACTIONS(1001), 1,
      sym_comment,
    STATE(828), 1,
      sym_arrow,
    ACTIONS(81), 7,
      anon_sym_LT_DASH,
      anon_sym_LPAREN_DASH_GT_RPAREN,
      anon_sym_LPAREN_LT_DASH_RPAREN,
      anon_sym_AT_DASH_GT,
      anon_sym_DASH_GT_AT,
      anon_sym_AT_GT,
      anon_sym_GT_AT,
  [13259] = 4,
    ACTIONS(79), 1,
      anon_sym_DASH_GT,
    ACTIONS(1001), 1,
      sym_comment,
    STATE(829), 1,
      sym_arrow,
    ACTIONS(81), 7,
      anon_sym_LT_DASH,
      anon_sym_LPAREN_DASH_GT_RPAREN,
      anon_sym_LPAREN_LT_DASH_RPAREN,
      anon_sym_AT_DASH_GT,
      anon_sym_DASH_GT_AT,
      anon_sym_AT_GT,
      anon_sym_GT_AT,
  [13278] = 4,
    ACTIONS(79), 1,
      anon_sym_DASH_GT,
    ACTIONS(1001), 1,
      sym_comment,
    STATE(870), 1,
      sym_arrow,
    ACTIONS(81), 7,
      anon_sym_LT_DASH,
      anon_sym_LPAREN_DASH_GT_RPAREN,
      anon_sym_LPAREN_LT_DASH_RPAREN,
      anon_sym_AT_DASH_GT,
      anon_sym_DASH_GT_AT,
      anon_sym_AT_GT,
      anon_sym_GT_AT,
  [13297] = 4,
    ACTIONS(79), 1,
      anon_sym_DASH_GT,
    ACTIONS(1001), 1,
      sym_comment,
    STATE(824), 1,
      sym_arrow,
    ACTIONS(81), 7,
      anon_sym_LT_DASH,
      anon_sym_LPAREN_DASH_GT_RPAREN,
      anon_sym_LPAREN_LT_DASH_RPAREN,
      anon_sym_AT_DASH_GT,
      anon_sym_DASH_GT_AT,
      anon_sym_AT_GT,
      anon_sym_GT_AT,
  [13316] = 4,
    ACTIONS(79), 1,
      anon_sym_DASH_GT,
    ACTIONS(1001), 1,
      sym_comment,
    STATE(753), 1,
      sym_arrow,
    ACTIONS(81), 7,
      anon_sym_LT_DASH,
      anon_sym_LPAREN_DASH_GT_RPAREN,
      anon_sym_LPAREN_LT_DASH_RPAREN,
      anon_sym_AT_DASH_GT,
      anon_sym_DASH_GT_AT,
      anon_sym_AT_GT,
      anon_sym_GT_AT,
  [13335] = 4,
    ACTIONS(79), 1,
      anon_sym_DASH_GT,
    ACTIONS(1001), 1,
      sym_comment,
    STATE(888), 1,
      sym_arrow,
    ACTIONS(81), 7,
      anon_sym_LT_DASH,
      anon_sym_LPAREN_DASH_GT_RPAREN,
      anon_sym_LPAREN_LT_DASH_RPAREN,
      anon_sym_AT_DASH_GT,
      anon_sym_DASH_GT_AT,
      anon_sym_AT_GT,
      anon_sym_GT_AT,
  [13354] = 4,
    ACTIONS(79), 1,
      anon_sym_DASH_GT,
    ACTIONS(1001), 1,
      sym_comment,
    STATE(802), 1,
      sym_arrow,
    ACTIONS(81), 7,
      anon_sym_LT_DASH,
      anon_sym_LPAREN_DASH_GT_RPAREN,
      anon_sym_LPAREN_LT_DASH_RPAREN,
      anon_sym_AT_DASH_GT,
      anon_sym_DASH_GT_AT,
      anon_sym_AT_GT,
      anon_sym_GT_AT,
  [13373] = 4,
    ACTIONS(79), 1,
      anon_sym_DASH_GT,
    ACTIONS(1001), 1,
      sym_comment,
    STATE(825), 1,
      sym_arrow,
    ACTIONS(81), 7,
      anon_sym_LT_DASH,
      anon_sym_LPAREN_DASH_GT_RPAREN,
      anon_sym_LPAREN_LT_DASH_RPAREN,
      anon_sym_AT_DASH_GT,
      anon_sym_DASH_GT_AT,
      anon_sym_AT_GT,
      anon_sym_GT_AT,
  [13392] = 4,
    ACTIONS(79), 1,
      anon_sym_DASH_GT,
    ACTIONS(1001), 1,
      sym_comment,
    STATE(762), 1,
      sym_arrow,
    ACTIONS(81), 7,
      anon_sym_LT_DASH,
      anon_sym_LPAREN_DASH_GT_RPAREN,
      anon_sym_LPAREN_LT_DASH_RPAREN,
      anon_sym_AT_DASH_GT,
      anon_sym_DASH_GT_AT,
      anon_sym_AT_GT,
      anon_sym_GT_AT,
  [13411] = 4,
    ACTIONS(79), 1,
      anon_sym_DASH_GT,
    ACTIONS(1001), 1,
      sym_comment,
    STATE(845), 1,
      sym_arrow,
    ACTIONS(81), 7,
      anon_sym_LT_DASH,
      anon_sym_LPAREN_DASH_GT_RPAREN,
      anon_sym_LPAREN_LT_DASH_RPAREN,
      anon_sym_AT_DASH_GT,
      anon_sym_DASH_GT_AT,
      anon_sym_AT_GT,
      anon_sym_GT_AT,
  [13430] = 4,
    ACTIONS(79), 1,
      anon_sym_DASH_GT,
    ACTIONS(1001), 1,
      sym_comment,
    STATE(813), 1,
      sym_arrow,
    ACTIONS(81), 7,
      anon_sym_LT_DASH,
      anon_sym_LPAREN_DASH_GT_RPAREN,
      anon_sym_LPAREN_LT_DASH_RPAREN,
      anon_sym_AT_DASH_GT,
      anon_sym_DASH_GT_AT,
      anon_sym_AT_GT,
      anon_sym_GT_AT,
  [13449] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1003), 1,
      anon_sym_RBRACK,
    ACTIONS(1005), 1,
      sym_symbol,
    STATE(909), 1,
      aux_sym_substitute_repeat1,
  [13462] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1007), 1,
      anon_sym_RBRACK,
    ACTIONS(1009), 1,
      sym_symbol,
    STATE(912), 1,
      aux_sym_substitute_repeat1,
  [13475] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1011), 1,
      anon_sym_RBRACK,
    ACTIONS(1013), 1,
      sym_symbol,
    STATE(909), 1,
      aux_sym_substitute_repeat1,
  [13488] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1016), 1,
      anon_sym_RBRACK,
    ACTIONS(1018), 1,
      sym_symbol,
    STATE(907), 1,
      aux_sym_substitute_repeat1,
  [13501] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1005), 1,
      sym_symbol,
    ACTIONS(1020), 1,
      anon_sym_RBRACK,
    STATE(909), 1,
      aux_sym_substitute_repeat1,
  [13514] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1005), 1,
      sym_symbol,
    ACTIONS(1022), 1,
      anon_sym_RBRACK,
    STATE(909), 1,
      aux_sym_substitute_repeat1,
  [13527] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1024), 1,
      anon_sym_RBRACK,
    ACTIONS(1026), 1,
      sym_symbol,
    STATE(916), 1,
      aux_sym_substitute_repeat1,
  [13540] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1005), 1,
      sym_symbol,
    ACTIONS(1028), 1,
      anon_sym_RBRACK,
    STATE(909), 1,
      aux_sym_substitute_repeat1,
  [13553] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1030), 1,
      anon_sym_RBRACK,
    ACTIONS(1032), 1,
      sym_symbol,
    STATE(919), 1,
      aux_sym_substitute_repeat1,
  [13566] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1005), 1,
      sym_symbol,
    ACTIONS(1034), 1,
      anon_sym_RBRACK,
    STATE(909), 1,
      aux_sym_substitute_repeat1,
  [13579] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1036), 1,
      anon_sym_RBRACK,
    ACTIONS(1038), 1,
      sym_symbol,
    STATE(914), 1,
      aux_sym_substitute_repeat1,
  [13592] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1040), 1,
      anon_sym_RBRACK,
    ACTIONS(1042), 1,
      sym_symbol,
    STATE(911), 1,
      aux_sym_substitute_repeat1,
  [13605] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1005), 1,
      sym_symbol,
    ACTIONS(1044), 1,
      anon_sym_RBRACK,
    STATE(909), 1,
      aux_sym_substitute_repeat1,
  [13618] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1046), 1,
      sym_symbol,
  [13625] = 2,
    ACTIONS(1001), 1,
      sym_comment,
    ACTIONS(1048), 1,
      anon_sym_COMMA,
  [13632] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1050), 1,
      sym_symbol,
  [13639] = 2,
    ACTIONS(1001), 1,
      sym_comment,
    ACTIONS(1052), 1,
      anon_sym_COMMA,
  [13646] = 2,
    ACTIONS(1001), 1,
      sym_comment,
    ACTIONS(1054), 1,
      anon_sym_LBRACK,
  [13653] = 2,
    ACTIONS(1001), 1,
      sym_comment,
    ACTIONS(1056), 1,
      anon_sym_COMMA,
  [13660] = 2,
    ACTIONS(1001), 1,
      sym_comment,
    ACTIONS(1058), 1,
      ts_builtin_sym_end,
  [13667] = 2,
    ACTIONS(1001), 1,
      sym_comment,
    ACTIONS(1060), 1,
      anon_sym_COMMA,
  [13674] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1062), 1,
      sym_symbol,
  [13681] = 2,
    ACTIONS(1001), 1,
      sym_comment,
    ACTIONS(1064), 1,
      anon_sym_COMMA,
  [13688] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1066), 1,
      sym_symbol,
  [13695] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1068), 1,
      sym_symbol,
  [13702] = 2,
    ACTIONS(1001), 1,
      sym_comment,
    ACTIONS(1070), 1,
      anon_sym_COMMA,
  [13709] = 2,
    ACTIONS(1001), 1,
      sym_comment,
    ACTIONS(1072), 1,
      anon_sym_LBRACK,
  [13716] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(1074), 1,
      sym_symbol,
  [13723] = 2,
    ACTIONS(1001), 1,
      sym_comment,
    ACTIONS(1076), 1,
      anon_sym_LBRACK,
  [13730] = 2,
    ACTIONS(1001), 1,
      sym_comment,
    ACTIONS(1078), 1,
      anon_sym_LBRACK,
  [13737] = 2,
    ACTIONS(1001), 1,
      sym_comment,
    ACTIONS(1080), 1,
      anon_sym_LBRACK,
  [13744] = 2,
    ACTIONS(1001), 1,
      sym_comment,
    ACTIONS(1082), 1,
      anon_sym_LBRACK,
};

static uint32_t ts_small_parse_table_map[] = {
  [SMALL_STATE(646)] = 0,
  [SMALL_STATE(647)] = 60,
  [SMALL_STATE(648)] = 120,
  [SMALL_STATE(649)] = 180,
  [SMALL_STATE(650)] = 240,
  [SMALL_STATE(651)] = 300,
  [SMALL_STATE(652)] = 360,
  [SMALL_STATE(653)] = 420,
  [SMALL_STATE(654)] = 480,
  [SMALL_STATE(655)] = 540,
  [SMALL_STATE(656)] = 600,
  [SMALL_STATE(657)] = 660,
  [SMALL_STATE(658)] = 720,
  [SMALL_STATE(659)] = 780,
  [SMALL_STATE(660)] = 840,
  [SMALL_STATE(661)] = 900,
  [SMALL_STATE(662)] = 960,
  [SMALL_STATE(663)] = 1020,
  [SMALL_STATE(664)] = 1080,
  [SMALL_STATE(665)] = 1140,
  [SMALL_STATE(666)] = 1200,
  [SMALL_STATE(667)] = 1260,
  [SMALL_STATE(668)] = 1320,
  [SMALL_STATE(669)] = 1380,
  [SMALL_STATE(670)] = 1440,
  [SMALL_STATE(671)] = 1500,
  [SMALL_STATE(672)] = 1560,
  [SMALL_STATE(673)] = 1620,
  [SMALL_STATE(674)] = 1680,
  [SMALL_STATE(675)] = 1740,
  [SMALL_STATE(676)] = 1800,
  [SMALL_STATE(677)] = 1860,
  [SMALL_STATE(678)] = 1920,
  [SMALL_STATE(679)] = 1980,
  [SMALL_STATE(680)] = 2037,
  [SMALL_STATE(681)] = 2094,
  [SMALL_STATE(682)] = 2151,
  [SMALL_STATE(683)] = 2208,
  [SMALL_STATE(684)] = 2265,
  [SMALL_STATE(685)] = 2322,
  [SMALL_STATE(686)] = 2379,
  [SMALL_STATE(687)] = 2436,
  [SMALL_STATE(688)] = 2493,
  [SMALL_STATE(689)] = 2550,
  [SMALL_STATE(690)] = 2607,
  [SMALL_STATE(691)] = 2664,
  [SMALL_STATE(692)] = 2721,
  [SMALL_STATE(693)] = 2778,
  [SMALL_STATE(694)] = 2835,
  [SMALL_STATE(695)] = 2892,
  [SMALL_STATE(696)] = 2949,
  [SMALL_STATE(697)] = 3006,
  [SMALL_STATE(698)] = 3063,
  [SMALL_STATE(699)] = 3120,
  [SMALL_STATE(700)] = 3177,
  [SMALL_STATE(701)] = 3234,
  [SMALL_STATE(702)] = 3291,
  [SMALL_STATE(703)] = 3348,
  [SMALL_STATE(704)] = 3405,
  [SMALL_STATE(705)] = 3462,
  [SMALL_STATE(706)] = 3519,
  [SMALL_STATE(707)] = 3576,
  [SMALL_STATE(708)] = 3633,
  [SMALL_STATE(709)] = 3690,
  [SMALL_STATE(710)] = 3747,
  [SMALL_STATE(711)] = 3804,
  [SMALL_STATE(712)] = 3861,
  [SMALL_STATE(713)] = 3915,
  [SMALL_STATE(714)] = 3969,
  [SMALL_STATE(715)] = 4023,
  [SMALL_STATE(716)] = 4077,
  [SMALL_STATE(717)] = 4131,
  [SMALL_STATE(718)] = 4185,
  [SMALL_STATE(719)] = 4239,
  [SMALL_STATE(720)] = 4293,
  [SMALL_STATE(721)] = 4347,
  [SMALL_STATE(722)] = 4401,
  [SMALL_STATE(723)] = 4455,
  [SMALL_STATE(724)] = 4509,
  [SMALL_STATE(725)] = 4563,
  [SMALL_STATE(726)] = 4617,
  [SMALL_STATE(727)] = 4671,
  [SMALL_STATE(728)] = 4725,
  [SMALL_STATE(729)] = 4779,
  [SMALL_STATE(730)] = 4833,
  [SMALL_STATE(731)] = 4887,
  [SMALL_STATE(732)] = 4941,
  [SMALL_STATE(733)] = 4995,
  [SMALL_STATE(734)] = 5049,
  [SMALL_STATE(735)] = 5103,
  [SMALL_STATE(736)] = 5157,
  [SMALL_STATE(737)] = 5211,
  [SMALL_STATE(738)] = 5265,
  [SMALL_STATE(739)] = 5319,
  [SMALL_STATE(740)] = 5373,
  [SMALL_STATE(741)] = 5427,
  [SMALL_STATE(742)] = 5481,
  [SMALL_STATE(743)] = 5535,
  [SMALL_STATE(744)] = 5589,
  [SMALL_STATE(745)] = 5643,
  [SMALL_STATE(746)] = 5697,
  [SMALL_STATE(747)] = 5751,
  [SMALL_STATE(748)] = 5805,
  [SMALL_STATE(749)] = 5859,
  [SMALL_STATE(750)] = 5913,
  [SMALL_STATE(751)] = 5964,
  [SMALL_STATE(752)] = 6015,
  [SMALL_STATE(753)] = 6066,
  [SMALL_STATE(754)] = 6117,
  [SMALL_STATE(755)] = 6168,
  [SMALL_STATE(756)] = 6219,
  [SMALL_STATE(757)] = 6270,
  [SMALL_STATE(758)] = 6321,
  [SMALL_STATE(759)] = 6372,
  [SMALL_STATE(760)] = 6423,
  [SMALL_STATE(761)] = 6474,
  [SMALL_STATE(762)] = 6525,
  [SMALL_STATE(763)] = 6576,
  [SMALL_STATE(764)] = 6627,
  [SMALL_STATE(765)] = 6678,
  [SMALL_STATE(766)] = 6729,
  [SMALL_STATE(767)] = 6780,
  [SMALL_STATE(768)] = 6831,
  [SMALL_STATE(769)] = 6882,
  [SMALL_STATE(770)] = 6933,
  [SMALL_STATE(771)] = 6984,
  [SMALL_STATE(772)] = 7035,
  [SMALL_STATE(773)] = 7086,
  [SMALL_STATE(774)] = 7137,
  [SMALL_STATE(775)] = 7188,
  [SMALL_STATE(776)] = 7239,
  [SMALL_STATE(777)] = 7290,
  [SMALL_STATE(778)] = 7341,
  [SMALL_STATE(779)] = 7392,
  [SMALL_STATE(780)] = 7443,
  [SMALL_STATE(781)] = 7494,
  [SMALL_STATE(782)] = 7545,
  [SMALL_STATE(783)] = 7596,
  [SMALL_STATE(784)] = 7647,
  [SMALL_STATE(785)] = 7698,
  [SMALL_STATE(786)] = 7749,
  [SMALL_STATE(787)] = 7800,
  [SMALL_STATE(788)] = 7851,
  [SMALL_STATE(789)] = 7902,
  [SMALL_STATE(790)] = 7953,
  [SMALL_STATE(791)] = 8004,
  [SMALL_STATE(792)] = 8055,
  [SMALL_STATE(793)] = 8106,
  [SMALL_STATE(794)] = 8157,
  [SMALL_STATE(795)] = 8208,
  [SMALL_STATE(796)] = 8259,
  [SMALL_STATE(797)] = 8310,
  [SMALL_STATE(798)] = 8361,
  [SMALL_STATE(799)] = 8412,
  [SMALL_STATE(800)] = 8463,
  [SMALL_STATE(801)] = 8514,
  [SMALL_STATE(802)] = 8565,
  [SMALL_STATE(803)] = 8616,
  [SMALL_STATE(804)] = 8667,
  [SMALL_STATE(805)] = 8718,
  [SMALL_STATE(806)] = 8769,
  [SMALL_STATE(807)] = 8820,
  [SMALL_STATE(808)] = 8871,
  [SMALL_STATE(809)] = 8922,
  [SMALL_STATE(810)] = 8973,
  [SMALL_STATE(811)] = 9024,
  [SMALL_STATE(812)] = 9075,
  [SMALL_STATE(813)] = 9126,
  [SMALL_STATE(814)] = 9177,
  [SMALL_STATE(815)] = 9228,
  [SMALL_STATE(816)] = 9279,
  [SMALL_STATE(817)] = 9330,
  [SMALL_STATE(818)] = 9381,
  [SMALL_STATE(819)] = 9432,
  [SMALL_STATE(820)] = 9483,
  [SMALL_STATE(821)] = 9534,
  [SMALL_STATE(822)] = 9585,
  [SMALL_STATE(823)] = 9636,
  [SMALL_STATE(824)] = 9687,
  [SMALL_STATE(825)] = 9738,
  [SMALL_STATE(826)] = 9789,
  [SMALL_STATE(827)] = 9840,
  [SMALL_STATE(828)] = 9891,
  [SMALL_STATE(829)] = 9942,
  [SMALL_STATE(830)] = 9993,
  [SMALL_STATE(831)] = 10044,
  [SMALL_STATE(832)] = 10095,
  [SMALL_STATE(833)] = 10146,
  [SMALL_STATE(834)] = 10197,
  [SMALL_STATE(835)] = 10248,
  [SMALL_STATE(836)] = 10299,
  [SMALL_STATE(837)] = 10350,
  [SMALL_STATE(838)] = 10401,
  [SMALL_STATE(839)] = 10452,
  [SMALL_STATE(840)] = 10503,
  [SMALL_STATE(841)] = 10554,
  [SMALL_STATE(842)] = 10605,
  [SMALL_STATE(843)] = 10656,
  [SMALL_STATE(844)] = 10707,
  [SMALL_STATE(845)] = 10758,
  [SMALL_STATE(846)] = 10809,
  [SMALL_STATE(847)] = 10860,
  [SMALL_STATE(848)] = 10911,
  [SMALL_STATE(849)] = 10962,
  [SMALL_STATE(850)] = 11013,
  [SMALL_STATE(851)] = 11064,
  [SMALL_STATE(852)] = 11115,
  [SMALL_STATE(853)] = 11166,
  [SMALL_STATE(854)] = 11217,
  [SMALL_STATE(855)] = 11268,
  [SMALL_STATE(856)] = 11319,
  [SMALL_STATE(857)] = 11370,
  [SMALL_STATE(858)] = 11421,
  [SMALL_STATE(859)] = 11472,
  [SMALL_STATE(860)] = 11523,
  [SMALL_STATE(861)] = 11574,
  [SMALL_STATE(862)] = 11625,
  [SMALL_STATE(863)] = 11676,
  [SMALL_STATE(864)] = 11727,
  [SMALL_STATE(865)] = 11778,
  [SMALL_STATE(866)] = 11829,
  [SMALL_STATE(867)] = 11880,
  [SMALL_STATE(868)] = 11931,
  [SMALL_STATE(869)] = 11982,
  [SMALL_STATE(870)] = 12033,
  [SMALL_STATE(871)] = 12084,
  [SMALL_STATE(872)] = 12135,
  [SMALL_STATE(873)] = 12186,
  [SMALL_STATE(874)] = 12237,
  [SMALL_STATE(875)] = 12288,
  [SMALL_STATE(876)] = 12339,
  [SMALL_STATE(877)] = 12390,
  [SMALL_STATE(878)] = 12441,
  [SMALL_STATE(879)] = 12492,
  [SMALL_STATE(880)] = 12543,
  [SMALL_STATE(881)] = 12594,
  [SMALL_STATE(882)] = 12645,
  [SMALL_STATE(883)] = 12696,
  [SMALL_STATE(884)] = 12747,
  [SMALL_STATE(885)] = 12798,
  [SMALL_STATE(886)] = 12849,
  [SMALL_STATE(887)] = 12900,
  [SMALL_STATE(888)] = 12951,
  [SMALL_STATE(889)] = 13002,
  [SMALL_STATE(890)] = 13053,
  [SMALL_STATE(891)] = 13104,
  [SMALL_STATE(892)] = 13155,
  [SMALL_STATE(893)] = 13177,
  [SMALL_STATE(894)] = 13199,
  [SMALL_STATE(895)] = 13221,
  [SMALL_STATE(896)] = 13240,
  [SMALL_STATE(897)] = 13259,
  [SMALL_STATE(898)] = 13278,
  [SMALL_STATE(899)] = 13297,
  [SMALL_STATE(900)] = 13316,
  [SMALL_STATE(901)] = 13335,
  [SMALL_STATE(902)] = 13354,
  [SMALL_STATE(903)] = 13373,
  [SMALL_STATE(904)] = 13392,
  [SMALL_STATE(905)] = 13411,
  [SMALL_STATE(906)] = 13430,
  [SMALL_STATE(907)] = 13449,
  [SMALL_STATE(908)] = 13462,
  [SMALL_STATE(909)] = 13475,
  [SMALL_STATE(910)] = 13488,
  [SMALL_STATE(911)] = 13501,
  [SMALL_STATE(912)] = 13514,
  [SMALL_STATE(913)] = 13527,
  [SMALL_STATE(914)] = 13540,
  [SMALL_STATE(915)] = 13553,
  [SMALL_STATE(916)] = 13566,
  [SMALL_STATE(917)] = 13579,
  [SMALL_STATE(918)] = 13592,
  [SMALL_STATE(919)] = 13605,
  [SMALL_STATE(920)] = 13618,
  [SMALL_STATE(921)] = 13625,
  [SMALL_STATE(922)] = 13632,
  [SMALL_STATE(923)] = 13639,
  [SMALL_STATE(924)] = 13646,
  [SMALL_STATE(925)] = 13653,
  [SMALL_STATE(926)] = 13660,
  [SMALL_STATE(927)] = 13667,
  [SMALL_STATE(928)] = 13674,
  [SMALL_STATE(929)] = 13681,
  [SMALL_STATE(930)] = 13688,
  [SMALL_STATE(931)] = 13695,
  [SMALL_STATE(932)] = 13702,
  [SMALL_STATE(933)] = 13709,
  [SMALL_STATE(934)] = 13716,
  [SMALL_STATE(935)] = 13723,
  [SMALL_STATE(936)] = 13730,
  [SMALL_STATE(937)] = 13737,
  [SMALL_STATE(938)] = 13744,
};

static TSParseActionEntry ts_parse_actions[] = {
  [0] = {.entry = {.count = 0, .reusable = false}},
  [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(),
  [3] = {.entry = {.count = 1, .reusable = false}}, SHIFT_EXTRA(),
  [5] = {.entry = {.count = 1, .reusable = false}}, SHIFT(744),
  [7] = {.entry = {.count = 1, .reusable = false}}, SHIFT(625),
  [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(625),
  [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(699),
  [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(924),
  [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(800),
  [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(795),
  [19] = {.entry = {.count = 1, .reusable = false}}, SHIFT(722),
  [21] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_mark, 5),
  [23] = {.entry = {.count = 1, .reusable = false}}, SHIFT(420),
  [25] = {.entry = {.count = 1, .reusable = true}}, SHIFT(420),
  [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(710),
  [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(937),
  [31] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_mark, 5),
  [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(833),
  [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(814),
  [37] = {.entry = {.count = 1, .reusable = false}}, SHIFT(814),
  [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(401),
  [41] = {.entry = {.count = 1, .reusable = false}}, SHIFT(832),
  [43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(832),
  [45] = {.entry = {.count = 1, .reusable = false}}, SHIFT(831),
  [47] = {.entry = {.count = 1, .reusable = true}}, SHIFT(831),
  [49] = {.entry = {.count = 1, .reusable = true}}, SHIFT(855),
  [51] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_expression, 2),
  [53] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_expression, 2),
  [55] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_simple_replace, 3),
  [57] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_simple_replace, 3),
  [59] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73),
  [61] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_context, 3),
  [63] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_context, 3),
  [65] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_mark, 4),
  [67] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_mark, 4),
  [69] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_context, 2),
  [71] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_context, 2),
  [73] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_expression, 3),
  [75] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_expression, 3),
  [77] = {.entry = {.count = 1, .reusable = true}}, SHIFT(662),
  [79] = {.entry = {.count = 1, .reusable = false}}, SHIFT(892),
  [81] = {.entry = {.count = 1, .reusable = true}}, SHIFT(892),
  [83] = {.entry = {.count = 1, .reusable = true}}, SHIFT(219),
  [85] = {.entry = {.count = 1, .reusable = true}}, SHIFT(287),
  [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_single_replace, 5),
  [89] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_single_replace, 5),
  [91] = {.entry = {.count = 1, .reusable = false}}, SHIFT(732),
  [93] = {.entry = {.count = 1, .reusable = false}}, SHIFT(481),
  [95] = {.entry = {.count = 1, .reusable = true}}, SHIFT(481),
  [97] = {.entry = {.count = 1, .reusable = false}}, SHIFT(687),
  [99] = {.entry = {.count = 1, .reusable = true}}, SHIFT(936),
  [101] = {.entry = {.count = 1, .reusable = true}}, SHIFT(860),
  [103] = {.entry = {.count = 1, .reusable = true}}, SHIFT(819),
  [105] = {.entry = {.count = 1, .reusable = false}}, SHIFT(819),
  [107] = {.entry = {.count = 1, .reusable = true}}, SHIFT(441),
  [109] = {.entry = {.count = 1, .reusable = false}}, SHIFT(858),
  [111] = {.entry = {.count = 1, .reusable = true}}, SHIFT(858),
  [113] = {.entry = {.count = 1, .reusable = false}}, SHIFT(854),
  [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(854),
  [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(792),
  [119] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_mark, 3),
  [121] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_mark, 3),
  [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(647),
  [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(835),
  [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(803),
  [129] = {.entry = {.count = 1, .reusable = false}}, SHIFT(803),
  [131] = {.entry = {.count = 1, .reusable = false}}, SHIFT(826),
  [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(826),
  [135] = {.entry = {.count = 1, .reusable = false}}, SHIFT(823),
  [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(823),
  [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(877),
  [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129),
  [143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(173),
  [145] = {.entry = {.count = 1, .reusable = true}}, SHIFT(237),
  [147] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_context, 1),
  [149] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_context, 1),
  [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(658),
  [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(789),
  [155] = {.entry = {.count = 1, .reusable = true}}, SHIFT(890),
  [157] = {.entry = {.count = 1, .reusable = false}}, SHIFT(890),
  [159] = {.entry = {.count = 1, .reusable = false}}, SHIFT(790),
  [161] = {.entry = {.count = 1, .reusable = true}}, SHIFT(790),
  [163] = {.entry = {.count = 1, .reusable = false}}, SHIFT(791),
  [165] = {.entry = {.count = 1, .reusable = true}}, SHIFT(791),
  [167] = {.entry = {.count = 1, .reusable = true}}, SHIFT(864),
  [169] = {.entry = {.count = 1, .reusable = true}}, SHIFT(650),
  [171] = {.entry = {.count = 1, .reusable = true}}, SHIFT(238),
  [173] = {.entry = {.count = 1, .reusable = true}}, SHIFT(783),
  [175] = {.entry = {.count = 1, .reusable = true}}, SHIFT(891),
  [177] = {.entry = {.count = 1, .reusable = false}}, SHIFT(891),
  [179] = {.entry = {.count = 1, .reusable = false}}, SHIFT(784),
  [181] = {.entry = {.count = 1, .reusable = true}}, SHIFT(784),
  [183] = {.entry = {.count = 1, .reusable = false}}, SHIFT(785),
  [185] = {.entry = {.count = 1, .reusable = true}}, SHIFT(785),
  [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(846),
  [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(851),
  [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(844),
  [193] = {.entry = {.count = 1, .reusable = false}}, SHIFT(844),
  [195] = {.entry = {.count = 1, .reusable = false}}, SHIFT(852),
  [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(852),
  [199] = {.entry = {.count = 1, .reusable = false}}, SHIFT(862),
  [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(862),
  [203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(752),
  [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(184),
  [207] = {.entry = {.count = 1, .reusable = true}}, SHIFT(648),
  [209] = {.entry = {.count = 1, .reusable = true}}, SHIFT(765),
  [211] = {.entry = {.count = 1, .reusable = true}}, SHIFT(764),
  [213] = {.entry = {.count = 1, .reusable = false}}, SHIFT(764),
  [215] = {.entry = {.count = 1, .reusable = false}}, SHIFT(766),
  [217] = {.entry = {.count = 1, .reusable = true}}, SHIFT(766),
  [219] = {.entry = {.count = 1, .reusable = false}}, SHIFT(767),
  [221] = {.entry = {.count = 1, .reusable = true}}, SHIFT(767),
  [223] = {.entry = {.count = 1, .reusable = true}}, SHIFT(865),
  [225] = {.entry = {.count = 1, .reusable = true}}, SHIFT(659),
  [227] = {.entry = {.count = 1, .reusable = true}}, SHIFT(655),
  [229] = {.entry = {.count = 1, .reusable = true}}, SHIFT(313),
  [231] = {.entry = {.count = 1, .reusable = false}}, SHIFT(746),
  [233] = {.entry = {.count = 1, .reusable = false}}, SHIFT(505),
  [235] = {.entry = {.count = 1, .reusable = true}}, SHIFT(505),
  [237] = {.entry = {.count = 1, .reusable = false}}, SHIFT(682),
  [239] = {.entry = {.count = 1, .reusable = true}}, SHIFT(938),
  [241] = {.entry = {.count = 1, .reusable = true}}, SHIFT(816),
  [243] = {.entry = {.count = 1, .reusable = true}}, SHIFT(841),
  [245] = {.entry = {.count = 1, .reusable = false}}, SHIFT(841),
  [247] = {.entry = {.count = 1, .reusable = true}}, SHIFT(524),
  [249] = {.entry = {.count = 1, .reusable = false}}, SHIFT(807),
  [251] = {.entry = {.count = 1, .reusable = true}}, SHIFT(807),
  [253] = {.entry = {.count = 1, .reusable = false}}, SHIFT(806),
  [255] = {.entry = {.count = 1, .reusable = true}}, SHIFT(806),
  [257] = {.entry = {.count = 1, .reusable = true}}, SHIFT(848),
  [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(296),
  [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(194),
  [263] = {.entry = {.count = 1, .reusable = true}}, SHIFT(284),
  [265] = {.entry = {.count = 1, .reusable = true}}, SHIFT(661),
  [267] = {.entry = {.count = 1, .reusable = true}}, SHIFT(793),
  [269] = {.entry = {.count = 1, .reusable = true}}, SHIFT(780),
  [271] = {.entry = {.count = 1, .reusable = false}}, SHIFT(780),
  [273] = {.entry = {.count = 1, .reusable = false}}, SHIFT(794),
  [275] = {.entry = {.count = 1, .reusable = true}}, SHIFT(794),
  [277] = {.entry = {.count = 1, .reusable = false}}, SHIFT(801),
  [279] = {.entry = {.count = 1, .reusable = true}}, SHIFT(801),
  [281] = {.entry = {.count = 1, .reusable = true}}, SHIFT(861),
  [283] = {.entry = {.count = 1, .reusable = true}}, SHIFT(758),
  [285] = {.entry = {.count = 1, .reusable = true}}, SHIFT(757),
  [287] = {.entry = {.count = 1, .reusable = false}}, SHIFT(757),
  [289] = {.entry = {.count = 1, .reusable = false}}, SHIFT(759),
  [291] = {.entry = {.count = 1, .reusable = true}}, SHIFT(759),
  [293] = {.entry = {.count = 1, .reusable = false}}, SHIFT(750),
  [295] = {.entry = {.count = 1, .reusable = true}}, SHIFT(750),
  [297] = {.entry = {.count = 1, .reusable = true}}, SHIFT(668),
  [299] = {.entry = {.count = 1, .reusable = true}}, SHIFT(797),
  [301] = {.entry = {.count = 1, .reusable = false}}, SHIFT(798),
  [303] = {.entry = {.count = 1, .reusable = true}}, SHIFT(798),
  [305] = {.entry = {.count = 1, .reusable = true}}, SHIFT(361),
  [307] = {.entry = {.count = 1, .reusable = true}}, SHIFT(889),
  [309] = {.entry = {.count = 1, .reusable = false}}, SHIFT(889),
  [311] = {.entry = {.count = 1, .reusable = true}}, SHIFT(859),
  [313] = {.entry = {.count = 1, .reusable = false}}, SHIFT(799),
  [315] = {.entry = {.count = 1, .reusable = true}}, SHIFT(799),
  [317] = {.entry = {.count = 1, .reusable = true}}, SHIFT(652),
  [319] = {.entry = {.count = 1, .reusable = true}}, SHIFT(676),
  [321] = {.entry = {.count = 1, .reusable = true}}, SHIFT(343),
  [323] = {.entry = {.count = 1, .reusable = true}}, SHIFT(204),
  [325] = {.entry = {.count = 1, .reusable = true}}, SHIFT(776),
  [327] = {.entry = {.count = 1, .reusable = false}}, SHIFT(777),
  [329] = {.entry = {.count = 1, .reusable = true}}, SHIFT(777),
  [331] = {.entry = {.count = 1, .reusable = true}}, SHIFT(775),
  [333] = {.entry = {.count = 1, .reusable = false}}, SHIFT(775),
  [335] = {.entry = {.count = 1, .reusable = false}}, SHIFT(778),
  [337] = {.entry = {.count = 1, .reusable = true}}, SHIFT(778),
  [339] = {.entry = {.count = 1, .reusable = true}}, SHIFT(886),
  [341] = {.entry = {.count = 1, .reusable = true}}, SHIFT(663),
  [343] = {.entry = {.count = 1, .reusable = true}}, SHIFT(837),
  [345] = {.entry = {.count = 1, .reusable = true}}, SHIFT(567),
  [347] = {.entry = {.count = 1, .reusable = false}}, SHIFT(742),
  [349] = {.entry = {.count = 1, .reusable = false}}, SHIFT(562),
  [351] = {.entry = {.count = 1, .reusable = true}}, SHIFT(562),
  [353] = {.entry = {.count = 1, .reusable = false}}, SHIFT(690),
  [355] = {.entry = {.count = 1, .reusable = true}}, SHIFT(933),
  [357] = {.entry = {.count = 1, .reusable = true}}, SHIFT(838),
  [359] = {.entry = {.count = 1, .reusable = true}}, SHIFT(842),
  [361] = {.entry = {.count = 1, .reusable = true}}, SHIFT(847),
  [363] = {.entry = {.count = 1, .reusable = false}}, SHIFT(847),
  [365] = {.entry = {.count = 1, .reusable = true}}, SHIFT(673),
  [367] = {.entry = {.count = 1, .reusable = false}}, SHIFT(699),
  [369] = {.entry = {.count = 1, .reusable = true}}, SHIFT(772),
  [371] = {.entry = {.count = 1, .reusable = true}}, SHIFT(830),
  [373] = {.entry = {.count = 1, .reusable = true}}, SHIFT(602),
  [375] = {.entry = {.count = 1, .reusable = true}}, SHIFT(771),
  [377] = {.entry = {.count = 1, .reusable = true}}, SHIFT(770),
  [379] = {.entry = {.count = 1, .reusable = false}}, SHIFT(770),
  [381] = {.entry = {.count = 1, .reusable = true}}, SHIFT(881),
  [383] = {.entry = {.count = 1, .reusable = true}}, SHIFT(822),
  [385] = {.entry = {.count = 1, .reusable = true}}, SHIFT(880),
  [387] = {.entry = {.count = 1, .reusable = true}}, SHIFT(879),
  [389] = {.entry = {.count = 1, .reusable = false}}, SHIFT(879),
  [391] = {.entry = {.count = 1, .reusable = true}}, SHIFT(649),
  [393] = {.entry = {.count = 1, .reusable = true}}, SHIFT(677),
  [395] = {.entry = {.count = 1, .reusable = true}}, SHIFT(812),
  [397] = {.entry = {.count = 1, .reusable = false}}, SHIFT(745),
  [399] = {.entry = {.count = 1, .reusable = false}}, SHIFT(640),
  [401] = {.entry = {.count = 1, .reusable = true}}, SHIFT(640),
  [403] = {.entry = {.count = 1, .reusable = false}}, SHIFT(688),
  [405] = {.entry = {.count = 1, .reusable = true}}, SHIFT(935),
  [407] = {.entry = {.count = 1, .reusable = true}}, SHIFT(874),
  [409] = {.entry = {.count = 1, .reusable = true}}, SHIFT(873),
  [411] = {.entry = {.count = 1, .reusable = true}}, SHIFT(637),
  [413] = {.entry = {.count = 1, .reusable = true}}, SHIFT(840),
  [415] = {.entry = {.count = 1, .reusable = true}}, SHIFT(839),
  [417] = {.entry = {.count = 1, .reusable = false}}, SHIFT(839),
  [419] = {.entry = {.count = 1, .reusable = true}}, SHIFT(805),
  [421] = {.entry = {.count = 1, .reusable = true}}, SHIFT(815),
  [423] = {.entry = {.count = 1, .reusable = true}}, SHIFT(863),
  [425] = {.entry = {.count = 1, .reusable = true}}, SHIFT(834),
  [427] = {.entry = {.count = 1, .reusable = true}}, SHIFT(868),
  [429] = {.entry = {.count = 1, .reusable = true}}, SHIFT(871),
  [431] = {.entry = {.count = 1, .reusable = false}}, SHIFT(871),
  [433] = {.entry = {.count = 1, .reusable = true}}, SHIFT(672),
  [435] = {.entry = {.count = 1, .reusable = true}}, SHIFT(817),
  [437] = {.entry = {.count = 1, .reusable = false}}, SHIFT(817),
  [439] = {.entry = {.count = 1, .reusable = true}}, SHIFT(665),
  [441] = {.entry = {.count = 1, .reusable = true}}, SHIFT(666),
  [443] = {.entry = {.count = 1, .reusable = true}}, SHIFT(869),
  [445] = {.entry = {.count = 1, .reusable = true}}, SHIFT(821),
  [447] = {.entry = {.count = 1, .reusable = true}}, SHIFT(867),
  [449] = {.entry = {.count = 1, .reusable = true}}, SHIFT(866),
  [451] = {.entry = {.count = 1, .reusable = false}}, SHIFT(866),
  [453] = {.entry = {.count = 1, .reusable = true}}, SHIFT(763),
  [455] = {.entry = {.count = 1, .reusable = true}}, SHIFT(761),
  [457] = {.entry = {.count = 1, .reusable = true}}, SHIFT(760),
  [459] = {.entry = {.count = 1, .reusable = false}}, SHIFT(760),
  [461] = {.entry = {.count = 1, .reusable = true}}, SHIFT(670),
  [463] = {.entry = {.count = 1, .reusable = true}}, SHIFT(667),
  [465] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1),
  [467] = {.entry = {.count = 1, .reusable = false}}, SHIFT(894),
  [469] = {.entry = {.count = 1, .reusable = true}}, SHIFT(875),
  [471] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_parallel_replace_repeat1, 2),
  [473] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_parallel_replace_repeat1, 2),
  [475] = {.entry = {.count = 1, .reusable = true}}, SHIFT(896),
  [477] = {.entry = {.count = 1, .reusable = true}}, SHIFT(818),
  [479] = {.entry = {.count = 1, .reusable = true}}, SHIFT(575),
  [481] = {.entry = {.count = 1, .reusable = true}}, SHIFT(931),
  [483] = {.entry = {.count = 1, .reusable = true}}, SHIFT(878),
  [485] = {.entry = {.count = 1, .reusable = true}}, SHIFT(774),
  [487] = {.entry = {.count = 1, .reusable = true}}, SHIFT(820),
  [489] = {.entry = {.count = 1, .reusable = true}}, SHIFT(782),
  [491] = {.entry = {.count = 1, .reusable = true}}, SHIFT(787),
  [493] = {.entry = {.count = 1, .reusable = false}}, SHIFT(787),
  [495] = {.entry = {.count = 1, .reusable = false}}, SHIFT(144),
  [497] = {.entry = {.count = 1, .reusable = true}}, SHIFT(654),
  [499] = {.entry = {.count = 1, .reusable = true}}, SHIFT(788),
  [501] = {.entry = {.count = 1, .reusable = true}}, SHIFT(930),
  [503] = {.entry = {.count = 1, .reusable = false}}, SHIFT(185),
  [505] = {.entry = {.count = 1, .reusable = false}}, SHIFT(130),
  [507] = {.entry = {.count = 1, .reusable = false}}, SHIFT(291),
  [509] = {.entry = {.count = 1, .reusable = true}}, SHIFT(394),
  [511] = {.entry = {.count = 1, .reusable = false}}, SHIFT(268),
  [513] = {.entry = {.count = 1, .reusable = false}}, SHIFT(172),
  [515] = {.entry = {.count = 1, .reusable = false}}, SHIFT(75),
  [517] = {.entry = {.count = 1, .reusable = true}}, SHIFT(522),
  [519] = {.entry = {.count = 1, .reusable = false}}, SHIFT(207),
  [521] = {.entry = {.count = 1, .reusable = false}}, SHIFT(178),
  [523] = {.entry = {.count = 1, .reusable = false}}, SHIFT(142),
  [525] = {.entry = {.count = 1, .reusable = true}}, SHIFT(900),
  [527] = {.entry = {.count = 1, .reusable = true}}, SHIFT(934),
  [529] = {.entry = {.count = 1, .reusable = true}}, SHIFT(928),
  [531] = {.entry = {.count = 1, .reusable = false}}, SHIFT(103),
  [533] = {.entry = {.count = 1, .reusable = true}}, SHIFT(920),
  [535] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_expression, 1),
  [537] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_expression, 1),
  [539] = {.entry = {.count = 1, .reusable = false}}, SHIFT(856),
  [541] = {.entry = {.count = 1, .reusable = true}}, SHIFT(893),
  [543] = {.entry = {.count = 1, .reusable = true}}, SHIFT(623),
  [545] = {.entry = {.count = 1, .reusable = true}}, SHIFT(903),
  [547] = {.entry = {.count = 1, .reusable = true}}, SHIFT(904),
  [549] = {.entry = {.count = 1, .reusable = true}}, SHIFT(898),
  [551] = {.entry = {.count = 1, .reusable = true}}, SHIFT(902),
  [553] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_optional_repeat1, 1),
  [555] = {.entry = {.count = 1, .reusable = true}}, SHIFT(905),
  [557] = {.entry = {.count = 1, .reusable = false}}, SHIFT(65),
  [559] = {.entry = {.count = 1, .reusable = true}}, SHIFT(630),
  [561] = {.entry = {.count = 1, .reusable = true}}, SHIFT(895),
  [563] = {.entry = {.count = 1, .reusable = false}}, SHIFT(249),
  [565] = {.entry = {.count = 1, .reusable = true}}, SHIFT(897),
  [567] = {.entry = {.count = 1, .reusable = false}}, SHIFT(41),
  [569] = {.entry = {.count = 1, .reusable = true}}, SHIFT(901),
  [571] = {.entry = {.count = 1, .reusable = false}}, SHIFT(228),
  [573] = {.entry = {.count = 1, .reusable = false}}, SHIFT(193),
  [575] = {.entry = {.count = 1, .reusable = true}}, SHIFT(899),
  [577] = {.entry = {.count = 1, .reusable = true}}, SHIFT(906),
  [579] = {.entry = {.count = 1, .reusable = true}}, SHIFT(485),
  [581] = {.entry = {.count = 1, .reusable = true}}, SHIFT(922),
  [583] = {.entry = {.count = 1, .reusable = false}}, SHIFT(332),
  [585] = {.entry = {.count = 1, .reusable = false}}, SHIFT(299),
  [587] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_parallel_conditional_replace_repeat1, 2),
  [589] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_parallel_conditional_replace_repeat1, 2),
  [591] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_parallel_conditional_replace, 2),
  [593] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_parallel_conditional_replace, 2),
  [595] = {.entry = {.count = 1, .reusable = true}}, SHIFT(811),
  [597] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_parallel_replace_repeat1, 2), SHIFT_REPEAT(856),
  [600] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_conditional_replace_repeat1, 2), SHIFT_REPEAT(811),
  [603] = {.entry = {.count = 1, .reusable = true}}, SHIFT(781),
  [605] = {.entry = {.count = 1, .reusable = false}}, SHIFT(849),
  [607] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_context_list, 2),
  [609] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_context_list, 2),
  [611] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_parallel_replace, 2),
  [613] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_parallel_replace, 2),
  [615] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_context_list, 1),
  [617] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_context_list, 1),
  [619] = {.entry = {.count = 1, .reusable = false}}, SHIFT(853),
  [621] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_context_list_repeat1, 2),
  [623] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_context_list_repeat1, 2),
  [625] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(705),
  [628] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_optional, 3),
  [630] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_optional, 3),
  [632] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(680),
  [635] = {.entry = {.count = 1, .reusable = true}}, SHIFT(872),
  [637] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_substitute, 7),
  [639] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_substitute, 7),
  [641] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_replace_repeat1, 2), SHIFT_REPEAT(781),
  [644] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_substitute, 8),
  [646] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_substitute, 8),
  [648] = {.entry = {.count = 1, .reusable = true}}, SHIFT(876),
  [650] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(711),
  [653] = {.entry = {.count = 1, .reusable = false}}, SHIFT(751),
  [655] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_optional, 2),
  [657] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_optional, 2),
  [659] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_restrict, 3),
  [661] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_restrict, 3),
  [663] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_conditional_replace_repeat1, 2), SHIFT_REPEAT(883),
  [666] = {.entry = {.count = 1, .reusable = true}}, SHIFT(883),
  [668] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_parallel_replace_repeat1, 2), SHIFT_REPEAT(849),
  [671] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(685),
  [674] = {.entry = {.count = 1, .reusable = false}}, SHIFT(857),
  [676] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_conditional_replace, 3),
  [678] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_conditional_replace, 3),
  [680] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_conditional_replace_repeat1, 2), SHIFT_REPEAT(872),
  [683] = {.entry = {.count = 1, .reusable = true}}, SHIFT(804),
  [685] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_parallel_replace_repeat1, 2), SHIFT_REPEAT(853),
  [688] = {.entry = {.count = 1, .reusable = true}}, SHIFT(796),
  [690] = {.entry = {.count = 1, .reusable = true}}, SHIFT(808),
  [692] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(695),
  [695] = {.entry = {.count = 1, .reusable = true}}, SHIFT(885),
  [697] = {.entry = {.count = 1, .reusable = false}}, SHIFT(850),
  [699] = {.entry = {.count = 1, .reusable = true}}, SHIFT(882),
  [701] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(686),
  [704] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(703),
  [707] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_parallel_replace_repeat1, 2), SHIFT_REPEAT(857),
  [710] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_replace_repeat1, 2), SHIFT_REPEAT(804),
  [713] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_conditional_replace_repeat1, 2), SHIFT_REPEAT(882),
  [716] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_replace_repeat1, 2), SHIFT_REPEAT(876),
  [719] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_conditional_replace_repeat1, 2), SHIFT_REPEAT(796),
  [722] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(691),
  [725] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_parallel_replace_repeat1, 2), SHIFT_REPEAT(751),
  [728] = {.entry = {.count = 1, .reusable = true}}, SHIFT(756),
  [730] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_replace_repeat1, 2), SHIFT_REPEAT(808),
  [733] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(681),
  [736] = {.entry = {.count = 1, .reusable = true}}, SHIFT(884),
  [738] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_conditional_replace_repeat1, 2), SHIFT_REPEAT(884),
  [741] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_parallel_replace_repeat1, 2), SHIFT_REPEAT(850),
  [744] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_replace_repeat1, 2), SHIFT_REPEAT(885),
  [747] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(700),
  [750] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(684),
  [753] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(689),
  [756] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_replace_repeat1, 2), SHIFT_REPEAT(756),
  [759] = {.entry = {.count = 1, .reusable = true}}, SHIFT(768),
  [761] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_conditional_replace_repeat1, 2), SHIFT_REPEAT(768),
  [764] = {.entry = {.count = 1, .reusable = false}}, SHIFT(708),
  [766] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(708),
  [769] = {.entry = {.count = 1, .reusable = true}}, SHIFT(827),
  [771] = {.entry = {.count = 1, .reusable = true}}, SHIFT(887),
  [773] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_conditional_replace_repeat1, 2), SHIFT_REPEAT(887),
  [776] = {.entry = {.count = 1, .reusable = true}}, SHIFT(704),
  [778] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(704),
  [781] = {.entry = {.count = 1, .reusable = false}}, SHIFT(696),
  [783] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(696),
  [786] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_conditional_replace_repeat1, 2), SHIFT_REPEAT(827),
  [789] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(701),
  [792] = {.entry = {.count = 1, .reusable = true}}, SHIFT(679),
  [794] = {.entry = {.count = 1, .reusable = false}}, SHIFT(701),
  [796] = {.entry = {.count = 1, .reusable = true}}, SHIFT(836),
  [798] = {.entry = {.count = 1, .reusable = true}}, SHIFT(809),
  [800] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_conditional_replace_repeat1, 2), SHIFT_REPEAT(809),
  [803] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_conditional_replace_repeat1, 2), SHIFT_REPEAT(836),
  [806] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(679),
  [809] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_parallel_conditional_replace_repeat1, 2), SHIFT_REPEAT(754),
  [812] = {.entry = {.count = 1, .reusable = true}}, SHIFT(754),
  [814] = {.entry = {.count = 1, .reusable = true}}, SHIFT(707),
  [816] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_context_list_repeat1, 2), SHIFT_REPEAT(707),
  [819] = {.entry = {.count = 1, .reusable = true}}, SHIFT(688),
  [821] = {.entry = {.count = 1, .reusable = false}}, SHIFT(101),
  [823] = {.entry = {.count = 1, .reusable = false}}, SHIFT(137),
  [825] = {.entry = {.count = 1, .reusable = false}}, SHIFT(243),
  [827] = {.entry = {.count = 1, .reusable = false}}, SHIFT(78),
  [829] = {.entry = {.count = 1, .reusable = false}}, SHIFT(223),
  [831] = {.entry = {.count = 1, .reusable = false}}, SHIFT(180),
  [833] = {.entry = {.count = 1, .reusable = false}}, SHIFT(36),
  [835] = {.entry = {.count = 1, .reusable = false}}, SHIFT(310),
  [837] = {.entry = {.count = 1, .reusable = false}}, SHIFT(163),
  [839] = {.entry = {.count = 1, .reusable = false}}, SHIFT(77),
  [841] = {.entry = {.count = 1, .reusable = false}}, SHIFT(168),
  [843] = {.entry = {.count = 1, .reusable = false}}, SHIFT(146),
  [845] = {.entry = {.count = 1, .reusable = false}}, SHIFT(200),
  [847] = {.entry = {.count = 1, .reusable = false}}, SHIFT(288),
  [849] = {.entry = {.count = 1, .reusable = false}}, SHIFT(191),
  [851] = {.entry = {.count = 1, .reusable = false}}, SHIFT(278),
  [853] = {.entry = {.count = 1, .reusable = false}}, SHIFT(252),
  [855] = {.entry = {.count = 1, .reusable = false}}, SHIFT(187),
  [857] = {.entry = {.count = 1, .reusable = true}}, SHIFT(690),
  [859] = {.entry = {.count = 1, .reusable = true}}, SHIFT(516),
  [861] = {.entry = {.count = 1, .reusable = true}}, SHIFT(475),
  [863] = {.entry = {.count = 1, .reusable = true}}, SHIFT(489),
  [865] = {.entry = {.count = 1, .reusable = true}}, SHIFT(641),
  [867] = {.entry = {.count = 1, .reusable = true}}, SHIFT(566),
  [869] = {.entry = {.count = 1, .reusable = true}}, SHIFT(581),
  [871] = {.entry = {.count = 1, .reusable = true}}, SHIFT(642),
  [873] = {.entry = {.count = 1, .reusable = true}}, SHIFT(622),
  [875] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1),
  [877] = {.entry = {.count = 1, .reusable = true}}, SHIFT(521),
  [879] = {.entry = {.count = 1, .reusable = true}}, SHIFT(605),
  [881] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_optional_repeat1, 2), SHIFT_REPEAT(742),
  [884] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_optional_repeat1, 2), SHIFT_REPEAT(562),
  [887] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_optional_repeat1, 2), SHIFT_REPEAT(562),
  [890] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_optional_repeat1, 2), SHIFT_REPEAT(690),
  [893] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_optional_repeat1, 2),
  [895] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_optional_repeat1, 2), SHIFT_REPEAT(933),
  [898] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_optional_repeat1, 2), SHIFT_REPEAT(805),
  [901] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_optional_repeat1, 2), SHIFT_REPEAT(865),
  [904] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2),
  [906] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(744),
  [909] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(625),
  [912] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(625),
  [915] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(699),
  [918] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(924),
  [921] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(800),
  [924] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(795),
  [927] = {.entry = {.count = 1, .reusable = true}}, SHIFT(393),
  [929] = {.entry = {.count = 1, .reusable = true}}, SHIFT(407),
  [931] = {.entry = {.count = 1, .reusable = true}}, SHIFT(687),
  [933] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134),
  [935] = {.entry = {.count = 1, .reusable = true}}, SHIFT(161),
  [937] = {.entry = {.count = 1, .reusable = true}}, SHIFT(710),
  [939] = {.entry = {.count = 1, .reusable = true}}, SHIFT(242),
  [941] = {.entry = {.count = 1, .reusable = true}}, SHIFT(682),
  [943] = {.entry = {.count = 1, .reusable = true}}, SHIFT(145),
  [945] = {.entry = {.count = 1, .reusable = true}}, SHIFT(290),
  [947] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76),
  [949] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74),
  [951] = {.entry = {.count = 1, .reusable = true}}, SHIFT(179),
  [953] = {.entry = {.count = 1, .reusable = true}}, SHIFT(410),
  [955] = {.entry = {.count = 1, .reusable = true}}, SHIFT(208),
  [957] = {.entry = {.count = 1, .reusable = true}}, SHIFT(297),
  [959] = {.entry = {.count = 1, .reusable = true}}, SHIFT(387),
  [961] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18),
  [963] = {.entry = {.count = 1, .reusable = true}}, SHIFT(488),
  [965] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102),
  [967] = {.entry = {.count = 1, .reusable = true}}, SHIFT(285),
  [969] = {.entry = {.count = 1, .reusable = true}}, SHIFT(349),
  [971] = {.entry = {.count = 1, .reusable = true}}, SHIFT(317),
  [973] = {.entry = {.count = 1, .reusable = true}}, SHIFT(170),
  [975] = {.entry = {.count = 1, .reusable = true}}, SHIFT(565),
  [977] = {.entry = {.count = 1, .reusable = true}}, SHIFT(192),
  [979] = {.entry = {.count = 1, .reusable = true}}, SHIFT(618),
  [981] = {.entry = {.count = 1, .reusable = true}}, SHIFT(627),
  [983] = {.entry = {.count = 1, .reusable = true}}, SHIFT(514),
  [985] = {.entry = {.count = 1, .reusable = true}}, SHIFT(186),
  [987] = {.entry = {.count = 1, .reusable = true}}, SHIFT(224),
  [989] = {.entry = {.count = 1, .reusable = true}}, SHIFT(236),
  [991] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_arrow, 1),
  [993] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_arrow, 1),
  [995] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_condition_operators, 1),
  [997] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition_operators, 1),
  [999] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2),
  [1001] = {.entry = {.count = 1, .reusable = true}}, SHIFT_EXTRA(),
  [1003] = {.entry = {.count = 1, .reusable = true}}, SHIFT(606),
  [1005] = {.entry = {.count = 1, .reusable = false}}, SHIFT(909),
  [1007] = {.entry = {.count = 1, .reusable = true}}, SHIFT(398),
  [1009] = {.entry = {.count = 1, .reusable = false}}, SHIFT(912),
  [1011] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_substitute_repeat1, 2),
  [1013] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_substitute_repeat1, 2), SHIFT_REPEAT(909),
  [1016] = {.entry = {.count = 1, .reusable = true}}, SHIFT(619),
  [1018] = {.entry = {.count = 1, .reusable = false}}, SHIFT(907),
  [1020] = {.entry = {.count = 1, .reusable = true}}, SHIFT(470),
  [1022] = {.entry = {.count = 1, .reusable = true}}, SHIFT(400),
  [1024] = {.entry = {.count = 1, .reusable = true}}, SHIFT(515),
  [1026] = {.entry = {.count = 1, .reusable = false}}, SHIFT(916),
  [1028] = {.entry = {.count = 1, .reusable = true}}, SHIFT(635),
  [1030] = {.entry = {.count = 1, .reusable = true}}, SHIFT(579),
  [1032] = {.entry = {.count = 1, .reusable = false}}, SHIFT(919),
  [1034] = {.entry = {.count = 1, .reusable = true}}, SHIFT(511),
  [1036] = {.entry = {.count = 1, .reusable = true}}, SHIFT(636),
  [1038] = {.entry = {.count = 1, .reusable = false}}, SHIFT(914),
  [1040] = {.entry = {.count = 1, .reusable = true}}, SHIFT(477),
  [1042] = {.entry = {.count = 1, .reusable = false}}, SHIFT(911),
  [1044] = {.entry = {.count = 1, .reusable = true}}, SHIFT(596),
  [1046] = {.entry = {.count = 1, .reusable = false}}, SHIFT(927),
  [1048] = {.entry = {.count = 1, .reusable = true}}, SHIFT(915),
  [1050] = {.entry = {.count = 1, .reusable = false}}, SHIFT(929),
  [1052] = {.entry = {.count = 1, .reusable = true}}, SHIFT(917),
  [1054] = {.entry = {.count = 1, .reusable = true}}, SHIFT(773),
  [1056] = {.entry = {.count = 1, .reusable = true}}, SHIFT(918),
  [1058] = {.entry = {.count = 1, .reusable = true}},  ACCEPT_INPUT(),
  [1060] = {.entry = {.count = 1, .reusable = true}}, SHIFT(913),
  [1062] = {.entry = {.count = 1, .reusable = false}}, SHIFT(923),
  [1064] = {.entry = {.count = 1, .reusable = true}}, SHIFT(910),
  [1066] = {.entry = {.count = 1, .reusable = false}}, SHIFT(925),
  [1068] = {.entry = {.count = 1, .reusable = false}}, SHIFT(932),
  [1070] = {.entry = {.count = 1, .reusable = true}}, SHIFT(908),
  [1072] = {.entry = {.count = 1, .reusable = true}}, SHIFT(843),
  [1074] = {.entry = {.count = 1, .reusable = false}}, SHIFT(921),
  [1076] = {.entry = {.count = 1, .reusable = true}}, SHIFT(786),
  [1078] = {.entry = {.count = 1, .reusable = true}}, SHIFT(779),
  [1080] = {.entry = {.count = 1, .reusable = true}}, SHIFT(769),
  [1082] = {.entry = {.count = 1, .reusable = true}}, SHIFT(755),
};

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

extern const TSLanguage *tree_sitter_xfst(void) {
  static 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 = (const uint16_t *)ts_parse_table,
    .small_parse_table = (const uint16_t *)ts_small_parse_table,
    .small_parse_table_map = (const uint32_t *)ts_small_parse_table_map,
    .parse_actions = ts_parse_actions,
    .symbol_names = ts_symbol_names,
    .symbol_metadata = ts_symbol_metadata,
    .public_symbol_map = ts_symbol_map,
    .alias_map = ts_non_terminal_alias_map,
    .alias_sequences = (const TSSymbol *)ts_alias_sequences,
    .lex_modes = ts_lex_modes,
    .lex_fn = ts_lex,
  };
  return &language;
}
#ifdef __cplusplus
}
#endif
