/* Automatically @generated by tree-sitter */

#include "tree_sitter/parser.h"

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

#define LANGUAGE_VERSION 15
#define STATE_COUNT 240
#define LARGE_STATE_COUNT 2
#define SYMBOL_COUNT 85
#define ALIAS_COUNT 0
#define TOKEN_COUNT 41
#define EXTERNAL_TOKEN_COUNT 0
#define FIELD_COUNT 0
#define MAX_ALIAS_SEQUENCE_LENGTH 8
#define MAX_RESERVED_WORD_SET_SIZE 0
#define PRODUCTION_ID_COUNT 1
#define SUPERTYPE_COUNT 0

enum ts_symbol_identifiers {
  sym_identifier = 1,
  anon_sym_namespace = 2,
  anon_sym_LBRACE = 3,
  anon_sym_RBRACE = 4,
  anon_sym_entity = 5,
  anon_sym_EQ = 6,
  anon_sym_SEMI = 7,
  anon_sym_action = 8,
  anon_sym_attributes = 9,
  anon_sym_COMMA = 10,
  anon_sym_COLON = 11,
  sym_true = 12,
  sym_false = 13,
  sym_integer = 14,
  anon_sym_type = 15,
  anon_sym_in = 16,
  anon_sym_tags = 17,
  anon_sym_enum = 18,
  anon_sym_LBRACK = 19,
  anon_sym_RBRACK = 20,
  anon_sym_appliesTo = 21,
  anon_sym_principal = 22,
  anon_sym_resource = 23,
  anon_sym_context = 24,
  anon_sym_Bool = 25,
  anon_sym_Long = 26,
  anon_sym_String = 27,
  anon_sym_Set = 28,
  anon_sym_LT = 29,
  anon_sym_GT = 30,
  anon_sym_QMARK = 31,
  anon_sym_AT = 32,
  anon_sym_LPAREN = 33,
  anon_sym_RPAREN = 34,
  anon_sym_COLON_COLON = 35,
  sym_string_content = 36,
  anon_sym_DQUOTE = 37,
  anon_sym_DQUOTE2 = 38,
  sym_escape_sequence = 39,
  sym_comment = 40,
  sym_schema = 41,
  sym_namespace = 42,
  sym__declaration = 43,
  sym_entity_declaration = 44,
  sym_action_declaration = 45,
  sym_action_attributes = 46,
  sym_attribute_entry = 47,
  sym__literal = 48,
  sym_common_type_declaration = 49,
  sym_entity_parents = 50,
  sym_entity_tags = 51,
  sym_enum_type = 52,
  sym_action_parents = 53,
  sym__applies_to_member = 54,
  sym_applies_to = 55,
  sym_principal_types = 56,
  sym_resource_types = 57,
  sym_context_type = 58,
  sym__type_expression = 59,
  sym_primitive_type = 60,
  sym_set_type = 61,
  sym_record_type = 62,
  sym_attribute_declaration = 63,
  sym_annotation = 64,
  sym_type_list = 65,
  sym_qualified_name = 66,
  sym_qualified_name_list = 67,
  sym_name = 68,
  sym_identifier_list = 69,
  sym_action_name_list = 70,
  sym__attribute_name = 71,
  sym_string = 72,
  aux_sym_schema_repeat1 = 73,
  aux_sym_namespace_repeat1 = 74,
  aux_sym_action_attributes_repeat1 = 75,
  aux_sym_enum_type_repeat1 = 76,
  aux_sym_applies_to_repeat1 = 77,
  aux_sym_record_type_repeat1 = 78,
  aux_sym_type_list_repeat1 = 79,
  aux_sym_qualified_name_repeat1 = 80,
  aux_sym_qualified_name_list_repeat1 = 81,
  aux_sym_identifier_list_repeat1 = 82,
  aux_sym_action_name_list_repeat1 = 83,
  aux_sym_string_repeat1 = 84,
};

static const char * const ts_symbol_names[] = {
  [ts_builtin_sym_end] = "end",
  [sym_identifier] = "identifier",
  [anon_sym_namespace] = "namespace",
  [anon_sym_LBRACE] = "{",
  [anon_sym_RBRACE] = "}",
  [anon_sym_entity] = "entity",
  [anon_sym_EQ] = "=",
  [anon_sym_SEMI] = ";",
  [anon_sym_action] = "action",
  [anon_sym_attributes] = "attributes",
  [anon_sym_COMMA] = ",",
  [anon_sym_COLON] = ":",
  [sym_true] = "true",
  [sym_false] = "false",
  [sym_integer] = "integer",
  [anon_sym_type] = "type",
  [anon_sym_in] = "in",
  [anon_sym_tags] = "tags",
  [anon_sym_enum] = "enum",
  [anon_sym_LBRACK] = "[",
  [anon_sym_RBRACK] = "]",
  [anon_sym_appliesTo] = "appliesTo",
  [anon_sym_principal] = "principal",
  [anon_sym_resource] = "resource",
  [anon_sym_context] = "context",
  [anon_sym_Bool] = "Bool",
  [anon_sym_Long] = "Long",
  [anon_sym_String] = "String",
  [anon_sym_Set] = "Set",
  [anon_sym_LT] = "<",
  [anon_sym_GT] = ">",
  [anon_sym_QMARK] = "\?",
  [anon_sym_AT] = "@",
  [anon_sym_LPAREN] = "(",
  [anon_sym_RPAREN] = ")",
  [anon_sym_COLON_COLON] = "::",
  [sym_string_content] = "string_content",
  [anon_sym_DQUOTE] = "\"",
  [anon_sym_DQUOTE2] = "\"",
  [sym_escape_sequence] = "escape_sequence",
  [sym_comment] = "comment",
  [sym_schema] = "schema",
  [sym_namespace] = "namespace",
  [sym__declaration] = "_declaration",
  [sym_entity_declaration] = "entity_declaration",
  [sym_action_declaration] = "action_declaration",
  [sym_action_attributes] = "action_attributes",
  [sym_attribute_entry] = "attribute_entry",
  [sym__literal] = "_literal",
  [sym_common_type_declaration] = "common_type_declaration",
  [sym_entity_parents] = "entity_parents",
  [sym_entity_tags] = "entity_tags",
  [sym_enum_type] = "enum_type",
  [sym_action_parents] = "action_parents",
  [sym__applies_to_member] = "_applies_to_member",
  [sym_applies_to] = "applies_to",
  [sym_principal_types] = "principal_types",
  [sym_resource_types] = "resource_types",
  [sym_context_type] = "context_type",
  [sym__type_expression] = "_type_expression",
  [sym_primitive_type] = "primitive_type",
  [sym_set_type] = "set_type",
  [sym_record_type] = "record_type",
  [sym_attribute_declaration] = "attribute_declaration",
  [sym_annotation] = "annotation",
  [sym_type_list] = "type_list",
  [sym_qualified_name] = "qualified_name",
  [sym_qualified_name_list] = "qualified_name_list",
  [sym_name] = "name",
  [sym_identifier_list] = "identifier_list",
  [sym_action_name_list] = "action_name_list",
  [sym__attribute_name] = "_attribute_name",
  [sym_string] = "string",
  [aux_sym_schema_repeat1] = "schema_repeat1",
  [aux_sym_namespace_repeat1] = "namespace_repeat1",
  [aux_sym_action_attributes_repeat1] = "action_attributes_repeat1",
  [aux_sym_enum_type_repeat1] = "enum_type_repeat1",
  [aux_sym_applies_to_repeat1] = "applies_to_repeat1",
  [aux_sym_record_type_repeat1] = "record_type_repeat1",
  [aux_sym_type_list_repeat1] = "type_list_repeat1",
  [aux_sym_qualified_name_repeat1] = "qualified_name_repeat1",
  [aux_sym_qualified_name_list_repeat1] = "qualified_name_list_repeat1",
  [aux_sym_identifier_list_repeat1] = "identifier_list_repeat1",
  [aux_sym_action_name_list_repeat1] = "action_name_list_repeat1",
  [aux_sym_string_repeat1] = "string_repeat1",
};

static const TSSymbol ts_symbol_map[] = {
  [ts_builtin_sym_end] = ts_builtin_sym_end,
  [sym_identifier] = sym_identifier,
  [anon_sym_namespace] = anon_sym_namespace,
  [anon_sym_LBRACE] = anon_sym_LBRACE,
  [anon_sym_RBRACE] = anon_sym_RBRACE,
  [anon_sym_entity] = anon_sym_entity,
  [anon_sym_EQ] = anon_sym_EQ,
  [anon_sym_SEMI] = anon_sym_SEMI,
  [anon_sym_action] = anon_sym_action,
  [anon_sym_attributes] = anon_sym_attributes,
  [anon_sym_COMMA] = anon_sym_COMMA,
  [anon_sym_COLON] = anon_sym_COLON,
  [sym_true] = sym_true,
  [sym_false] = sym_false,
  [sym_integer] = sym_integer,
  [anon_sym_type] = anon_sym_type,
  [anon_sym_in] = anon_sym_in,
  [anon_sym_tags] = anon_sym_tags,
  [anon_sym_enum] = anon_sym_enum,
  [anon_sym_LBRACK] = anon_sym_LBRACK,
  [anon_sym_RBRACK] = anon_sym_RBRACK,
  [anon_sym_appliesTo] = anon_sym_appliesTo,
  [anon_sym_principal] = anon_sym_principal,
  [anon_sym_resource] = anon_sym_resource,
  [anon_sym_context] = anon_sym_context,
  [anon_sym_Bool] = anon_sym_Bool,
  [anon_sym_Long] = anon_sym_Long,
  [anon_sym_String] = anon_sym_String,
  [anon_sym_Set] = anon_sym_Set,
  [anon_sym_LT] = anon_sym_LT,
  [anon_sym_GT] = anon_sym_GT,
  [anon_sym_QMARK] = anon_sym_QMARK,
  [anon_sym_AT] = anon_sym_AT,
  [anon_sym_LPAREN] = anon_sym_LPAREN,
  [anon_sym_RPAREN] = anon_sym_RPAREN,
  [anon_sym_COLON_COLON] = anon_sym_COLON_COLON,
  [sym_string_content] = sym_string_content,
  [anon_sym_DQUOTE] = anon_sym_DQUOTE,
  [anon_sym_DQUOTE2] = anon_sym_DQUOTE,
  [sym_escape_sequence] = sym_escape_sequence,
  [sym_comment] = sym_comment,
  [sym_schema] = sym_schema,
  [sym_namespace] = sym_namespace,
  [sym__declaration] = sym__declaration,
  [sym_entity_declaration] = sym_entity_declaration,
  [sym_action_declaration] = sym_action_declaration,
  [sym_action_attributes] = sym_action_attributes,
  [sym_attribute_entry] = sym_attribute_entry,
  [sym__literal] = sym__literal,
  [sym_common_type_declaration] = sym_common_type_declaration,
  [sym_entity_parents] = sym_entity_parents,
  [sym_entity_tags] = sym_entity_tags,
  [sym_enum_type] = sym_enum_type,
  [sym_action_parents] = sym_action_parents,
  [sym__applies_to_member] = sym__applies_to_member,
  [sym_applies_to] = sym_applies_to,
  [sym_principal_types] = sym_principal_types,
  [sym_resource_types] = sym_resource_types,
  [sym_context_type] = sym_context_type,
  [sym__type_expression] = sym__type_expression,
  [sym_primitive_type] = sym_primitive_type,
  [sym_set_type] = sym_set_type,
  [sym_record_type] = sym_record_type,
  [sym_attribute_declaration] = sym_attribute_declaration,
  [sym_annotation] = sym_annotation,
  [sym_type_list] = sym_type_list,
  [sym_qualified_name] = sym_qualified_name,
  [sym_qualified_name_list] = sym_qualified_name_list,
  [sym_name] = sym_name,
  [sym_identifier_list] = sym_identifier_list,
  [sym_action_name_list] = sym_action_name_list,
  [sym__attribute_name] = sym__attribute_name,
  [sym_string] = sym_string,
  [aux_sym_schema_repeat1] = aux_sym_schema_repeat1,
  [aux_sym_namespace_repeat1] = aux_sym_namespace_repeat1,
  [aux_sym_action_attributes_repeat1] = aux_sym_action_attributes_repeat1,
  [aux_sym_enum_type_repeat1] = aux_sym_enum_type_repeat1,
  [aux_sym_applies_to_repeat1] = aux_sym_applies_to_repeat1,
  [aux_sym_record_type_repeat1] = aux_sym_record_type_repeat1,
  [aux_sym_type_list_repeat1] = aux_sym_type_list_repeat1,
  [aux_sym_qualified_name_repeat1] = aux_sym_qualified_name_repeat1,
  [aux_sym_qualified_name_list_repeat1] = aux_sym_qualified_name_list_repeat1,
  [aux_sym_identifier_list_repeat1] = aux_sym_identifier_list_repeat1,
  [aux_sym_action_name_list_repeat1] = aux_sym_action_name_list_repeat1,
  [aux_sym_string_repeat1] = aux_sym_string_repeat1,
};

static const TSSymbolMetadata ts_symbol_metadata[] = {
  [ts_builtin_sym_end] = {
    .visible = false,
    .named = true,
  },
  [sym_identifier] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_namespace] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LBRACE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RBRACE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_entity] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_SEMI] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_action] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_attributes] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COMMA] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COLON] = {
    .visible = true,
    .named = false,
  },
  [sym_true] = {
    .visible = true,
    .named = true,
  },
  [sym_false] = {
    .visible = true,
    .named = true,
  },
  [sym_integer] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_type] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_in] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_tags] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_enum] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LBRACK] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RBRACK] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_appliesTo] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_principal] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_resource] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_context] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_Bool] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_Long] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_String] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_Set] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_GT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_QMARK] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_AT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LPAREN] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RPAREN] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COLON_COLON] = {
    .visible = true,
    .named = false,
  },
  [sym_string_content] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_DQUOTE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DQUOTE2] = {
    .visible = true,
    .named = false,
  },
  [sym_escape_sequence] = {
    .visible = true,
    .named = true,
  },
  [sym_comment] = {
    .visible = true,
    .named = true,
  },
  [sym_schema] = {
    .visible = true,
    .named = true,
  },
  [sym_namespace] = {
    .visible = true,
    .named = true,
  },
  [sym__declaration] = {
    .visible = false,
    .named = true,
  },
  [sym_entity_declaration] = {
    .visible = true,
    .named = true,
  },
  [sym_action_declaration] = {
    .visible = true,
    .named = true,
  },
  [sym_action_attributes] = {
    .visible = true,
    .named = true,
  },
  [sym_attribute_entry] = {
    .visible = true,
    .named = true,
  },
  [sym__literal] = {
    .visible = false,
    .named = true,
  },
  [sym_common_type_declaration] = {
    .visible = true,
    .named = true,
  },
  [sym_entity_parents] = {
    .visible = true,
    .named = true,
  },
  [sym_entity_tags] = {
    .visible = true,
    .named = true,
  },
  [sym_enum_type] = {
    .visible = true,
    .named = true,
  },
  [sym_action_parents] = {
    .visible = true,
    .named = true,
  },
  [sym__applies_to_member] = {
    .visible = false,
    .named = true,
  },
  [sym_applies_to] = {
    .visible = true,
    .named = true,
  },
  [sym_principal_types] = {
    .visible = true,
    .named = true,
  },
  [sym_resource_types] = {
    .visible = true,
    .named = true,
  },
  [sym_context_type] = {
    .visible = true,
    .named = true,
  },
  [sym__type_expression] = {
    .visible = false,
    .named = true,
  },
  [sym_primitive_type] = {
    .visible = true,
    .named = true,
  },
  [sym_set_type] = {
    .visible = true,
    .named = true,
  },
  [sym_record_type] = {
    .visible = true,
    .named = true,
  },
  [sym_attribute_declaration] = {
    .visible = true,
    .named = true,
  },
  [sym_annotation] = {
    .visible = true,
    .named = true,
  },
  [sym_type_list] = {
    .visible = true,
    .named = true,
  },
  [sym_qualified_name] = {
    .visible = true,
    .named = true,
  },
  [sym_qualified_name_list] = {
    .visible = true,
    .named = true,
  },
  [sym_name] = {
    .visible = true,
    .named = true,
  },
  [sym_identifier_list] = {
    .visible = true,
    .named = true,
  },
  [sym_action_name_list] = {
    .visible = true,
    .named = true,
  },
  [sym__attribute_name] = {
    .visible = false,
    .named = true,
  },
  [sym_string] = {
    .visible = true,
    .named = true,
  },
  [aux_sym_schema_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_namespace_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_action_attributes_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_enum_type_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_applies_to_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_record_type_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_type_list_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_qualified_name_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_qualified_name_list_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_identifier_list_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_action_name_list_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_string_repeat1] = {
    .visible = false,
    .named = false,
  },
};

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

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

static const TSStateId ts_primary_state_ids[STATE_COUNT] = {
  [0] = 0,
  [1] = 1,
  [2] = 2,
  [3] = 3,
  [4] = 4,
  [5] = 5,
  [6] = 6,
  [7] = 7,
  [8] = 8,
  [9] = 9,
  [10] = 10,
  [11] = 11,
  [12] = 12,
  [13] = 13,
  [14] = 14,
  [15] = 15,
  [16] = 16,
  [17] = 17,
  [18] = 18,
  [19] = 19,
  [20] = 20,
  [21] = 21,
  [22] = 22,
  [23] = 23,
  [24] = 24,
  [25] = 25,
  [26] = 26,
  [27] = 27,
  [28] = 28,
  [29] = 29,
  [30] = 30,
  [31] = 31,
  [32] = 32,
  [33] = 33,
  [34] = 34,
  [35] = 35,
  [36] = 36,
  [37] = 37,
  [38] = 38,
  [39] = 39,
  [40] = 40,
  [41] = 41,
  [42] = 42,
  [43] = 43,
  [44] = 44,
  [45] = 45,
  [46] = 46,
  [47] = 47,
  [48] = 48,
  [49] = 49,
  [50] = 50,
  [51] = 51,
  [52] = 52,
  [53] = 53,
  [54] = 54,
  [55] = 55,
  [56] = 56,
  [57] = 57,
  [58] = 58,
  [59] = 59,
  [60] = 60,
  [61] = 61,
  [62] = 62,
  [63] = 63,
  [64] = 23,
  [65] = 24,
  [66] = 26,
  [67] = 67,
  [68] = 68,
  [69] = 69,
  [70] = 70,
  [71] = 71,
  [72] = 72,
  [73] = 73,
  [74] = 74,
  [75] = 75,
  [76] = 76,
  [77] = 77,
  [78] = 23,
  [79] = 24,
  [80] = 26,
  [81] = 81,
  [82] = 82,
  [83] = 83,
  [84] = 23,
  [85] = 24,
  [86] = 26,
  [87] = 87,
  [88] = 23,
  [89] = 24,
  [90] = 26,
  [91] = 24,
  [92] = 92,
  [93] = 93,
  [94] = 94,
  [95] = 95,
  [96] = 96,
  [97] = 97,
  [98] = 98,
  [99] = 99,
  [100] = 100,
  [101] = 101,
  [102] = 102,
  [103] = 103,
  [104] = 104,
  [105] = 105,
  [106] = 23,
  [107] = 24,
  [108] = 26,
  [109] = 109,
  [110] = 110,
  [111] = 23,
  [112] = 26,
  [113] = 113,
  [114] = 114,
  [115] = 115,
  [116] = 116,
  [117] = 117,
  [118] = 105,
  [119] = 119,
  [120] = 120,
  [121] = 121,
  [122] = 122,
  [123] = 123,
  [124] = 124,
  [125] = 125,
  [126] = 126,
  [127] = 127,
  [128] = 128,
  [129] = 129,
  [130] = 130,
  [131] = 131,
  [132] = 132,
  [133] = 133,
  [134] = 134,
  [135] = 135,
  [136] = 136,
  [137] = 137,
  [138] = 138,
  [139] = 139,
  [140] = 140,
  [141] = 137,
  [142] = 142,
  [143] = 143,
  [144] = 144,
  [145] = 145,
  [146] = 146,
  [147] = 147,
  [148] = 148,
  [149] = 149,
  [150] = 150,
  [151] = 151,
  [152] = 152,
  [153] = 153,
  [154] = 154,
  [155] = 155,
  [156] = 156,
  [157] = 157,
  [158] = 158,
  [159] = 159,
  [160] = 160,
  [161] = 158,
  [162] = 162,
  [163] = 163,
  [164] = 164,
  [165] = 165,
  [166] = 166,
  [167] = 167,
  [168] = 168,
  [169] = 169,
  [170] = 170,
  [171] = 171,
  [172] = 172,
  [173] = 173,
  [174] = 174,
  [175] = 175,
  [176] = 176,
  [177] = 177,
  [178] = 178,
  [179] = 179,
  [180] = 180,
  [181] = 181,
  [182] = 182,
  [183] = 183,
  [184] = 184,
  [185] = 185,
  [186] = 186,
  [187] = 187,
  [188] = 188,
  [189] = 189,
  [190] = 190,
  [191] = 191,
  [192] = 164,
  [193] = 193,
  [194] = 194,
  [195] = 195,
  [196] = 196,
  [197] = 197,
  [198] = 198,
  [199] = 199,
  [200] = 200,
  [201] = 201,
  [202] = 202,
  [203] = 203,
  [204] = 204,
  [205] = 205,
  [206] = 206,
  [207] = 207,
  [208] = 208,
  [209] = 209,
  [210] = 210,
  [211] = 211,
  [212] = 212,
  [213] = 213,
  [214] = 214,
  [215] = 215,
  [216] = 216,
  [217] = 217,
  [218] = 218,
  [219] = 219,
  [220] = 220,
  [221] = 221,
  [222] = 222,
  [223] = 223,
  [224] = 224,
  [225] = 225,
  [226] = 226,
  [227] = 227,
  [228] = 228,
  [229] = 229,
  [230] = 230,
  [231] = 231,
  [232] = 232,
  [233] = 233,
  [234] = 234,
  [235] = 235,
  [236] = 236,
  [237] = 237,
  [238] = 238,
  [239] = 239,
};

static bool ts_lex(TSLexer *lexer, TSStateId state) {
  START_LEXER();
  eof = lexer->eof(lexer);
  switch (state) {
    case 0:
      if (eof) ADVANCE(45);
      ADVANCE_MAP(
        '"', 107,
        '(', 75,
        ')', 76,
        ',', 55,
        '/', 18,
        ':', 58,
        ';', 50,
        '<', 70,
        '=', 49,
        '>', 71,
        '?', 72,
        '@', 74,
        '[', 64,
        '\\', 36,
        ']', 65,
        'a', 118,
        'i', 116,
        '{', 46,
        '}', 47,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(43);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(60);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('b' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 1:
      if (lookahead == '"') ADVANCE(107);
      if (lookahead == ')') ADVANCE(77);
      if (lookahead == '/') ADVANCE(86);
      if (lookahead == '\\') ADVANCE(36);
      if (lookahead == '\n' ||
          lookahead == '\r') SKIP(9);
      if (('\t' <= lookahead && lookahead <= '\f') ||
          lookahead == ' ') ADVANCE(79);
      if (lookahead != 0) ADVANCE(105);
      END_STATE();
    case 2:
      if (lookahead == '"') ADVANCE(107);
      if (lookahead == ',') ADVANCE(56);
      if (lookahead == '/') ADVANCE(86);
      if (lookahead == ';') ADVANCE(51);
      if (lookahead == '\\') ADVANCE(36);
      if (lookahead == 'a') ADVANCE(96);
      if (lookahead == 'i') ADVANCE(94);
      if (lookahead == '\n' ||
          lookahead == '\r') SKIP(11);
      if (('\t' <= lookahead && lookahead <= '\f') ||
          lookahead == ' ') ADVANCE(80);
      if (lookahead != 0) ADVANCE(105);
      END_STATE();
    case 3:
      if (lookahead == '"') ADVANCE(107);
      if (lookahead == ',') ADVANCE(56);
      if (lookahead == '/') ADVANCE(86);
      if (lookahead == '\\') ADVANCE(36);
      if (lookahead == ']') ADVANCE(66);
      if (lookahead == '\n' ||
          lookahead == '\r') SKIP(12);
      if (('\t' <= lookahead && lookahead <= '\f') ||
          lookahead == ' ') ADVANCE(81);
      if (lookahead != 0) ADVANCE(105);
      END_STATE();
    case 4:
      if (lookahead == '"') ADVANCE(107);
      if (lookahead == ',') ADVANCE(56);
      if (lookahead == '/') ADVANCE(86);
      if (lookahead == '\\') ADVANCE(36);
      if (lookahead == '}') ADVANCE(48);
      if (lookahead == '\n' ||
          lookahead == '\r') SKIP(13);
      if (('\t' <= lookahead && lookahead <= '\f') ||
          lookahead == ' ') ADVANCE(82);
      if (lookahead != 0) ADVANCE(105);
      END_STATE();
    case 5:
      if (lookahead == '"') ADVANCE(107);
      if (lookahead == '/') ADVANCE(86);
      if (lookahead == ':') ADVANCE(59);
      if (lookahead == '?') ADVANCE(73);
      if (lookahead == '\\') ADVANCE(36);
      if (lookahead == '\n' ||
          lookahead == '\r') SKIP(15);
      if (('\t' <= lookahead && lookahead <= '\f') ||
          lookahead == ' ') ADVANCE(83);
      if (lookahead != 0) ADVANCE(105);
      END_STATE();
    case 6:
      if (lookahead == '"') ADVANCE(107);
      if (lookahead == '/') ADVANCE(86);
      if (lookahead == ':') ADVANCE(59);
      if (lookahead == '\\') ADVANCE(36);
      if (lookahead == '\n' ||
          lookahead == '\r') SKIP(16);
      if (('\t' <= lookahead && lookahead <= '\f') ||
          lookahead == ' ') ADVANCE(84);
      if (lookahead != 0) ADVANCE(105);
      END_STATE();
    case 7:
      if (lookahead == '"') ADVANCE(107);
      if (lookahead == '/') ADVANCE(86);
      if (lookahead == ';') ADVANCE(51);
      if (lookahead == '\\') ADVANCE(36);
      if (lookahead == 'a') ADVANCE(96);
      if (lookahead == '\n' ||
          lookahead == '\r') SKIP(17);
      if (('\t' <= lookahead && lookahead <= '\f') ||
          lookahead == ' ') ADVANCE(85);
      if (lookahead != 0) ADVANCE(105);
      END_STATE();
    case 8:
      ADVANCE_MAP(
        ')', 76,
        ',', 55,
        '/', 18,
        ':', 57,
        ';', 50,
        '?', 72,
        ']', 65,
        'a', 29,
        'i', 27,
        '}', 47,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(8);
      END_STATE();
    case 9:
      if (lookahead == ')') ADVANCE(76);
      if (lookahead == '/') ADVANCE(18);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(9);
      END_STATE();
    case 10:
      if (lookahead == ',') ADVANCE(55);
      if (lookahead == '/') ADVANCE(18);
      if (lookahead == ';') ADVANCE(50);
      if (lookahead == '=') ADVANCE(49);
      if (lookahead == 'i') ADVANCE(116);
      if (lookahead == '{') ADVANCE(46);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(10);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 11:
      if (lookahead == ',') ADVANCE(55);
      if (lookahead == '/') ADVANCE(18);
      if (lookahead == ';') ADVANCE(50);
      if (lookahead == 'a') ADVANCE(29);
      if (lookahead == 'i') ADVANCE(27);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(11);
      END_STATE();
    case 12:
      if (lookahead == ',') ADVANCE(55);
      if (lookahead == '/') ADVANCE(18);
      if (lookahead == ']') ADVANCE(65);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(12);
      END_STATE();
    case 13:
      if (lookahead == ',') ADVANCE(55);
      if (lookahead == '/') ADVANCE(18);
      if (lookahead == '}') ADVANCE(47);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(13);
      END_STATE();
    case 14:
      if (lookahead == '/') ADVANCE(18);
      if (lookahead == ':') ADVANCE(19);
      if (lookahead == ';') ADVANCE(50);
      if (lookahead == 'a') ADVANCE(29);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(14);
      END_STATE();
    case 15:
      if (lookahead == '/') ADVANCE(18);
      if (lookahead == ':') ADVANCE(57);
      if (lookahead == '?') ADVANCE(72);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(15);
      END_STATE();
    case 16:
      if (lookahead == '/') ADVANCE(18);
      if (lookahead == ':') ADVANCE(57);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(16);
      END_STATE();
    case 17:
      if (lookahead == '/') ADVANCE(18);
      if (lookahead == ';') ADVANCE(50);
      if (lookahead == 'a') ADVANCE(29);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(17);
      END_STATE();
    case 18:
      if (lookahead == '/') ADVANCE(127);
      END_STATE();
    case 19:
      if (lookahead == ':') ADVANCE(78);
      END_STATE();
    case 20:
      if (lookahead == 'T') ADVANCE(28);
      END_STATE();
    case 21:
      if (lookahead == 'b') ADVANCE(37);
      END_STATE();
    case 22:
      if (lookahead == 'e') ADVANCE(32);
      END_STATE();
    case 23:
      if (lookahead == 'e') ADVANCE(33);
      END_STATE();
    case 24:
      if (lookahead == 'i') ADVANCE(22);
      END_STATE();
    case 25:
      if (lookahead == 'i') ADVANCE(21);
      END_STATE();
    case 26:
      if (lookahead == 'l') ADVANCE(24);
      END_STATE();
    case 27:
      if (lookahead == 'n') ADVANCE(61);
      END_STATE();
    case 28:
      if (lookahead == 'o') ADVANCE(67);
      END_STATE();
    case 29:
      if (lookahead == 'p') ADVANCE(30);
      if (lookahead == 't') ADVANCE(34);
      END_STATE();
    case 30:
      if (lookahead == 'p') ADVANCE(26);
      END_STATE();
    case 31:
      if (lookahead == 'r') ADVANCE(25);
      END_STATE();
    case 32:
      if (lookahead == 's') ADVANCE(20);
      END_STATE();
    case 33:
      if (lookahead == 's') ADVANCE(52);
      END_STATE();
    case 34:
      if (lookahead == 't') ADVANCE(31);
      END_STATE();
    case 35:
      if (lookahead == 't') ADVANCE(23);
      END_STATE();
    case 36:
      if (lookahead == 'u') ADVANCE(38);
      if (lookahead == 'x') ADVANCE(42);
      if (lookahead != 0) ADVANCE(108);
      END_STATE();
    case 37:
      if (lookahead == 'u') ADVANCE(35);
      END_STATE();
    case 38:
      if (lookahead == '{') ADVANCE(41);
      END_STATE();
    case 39:
      if (lookahead == '}') ADVANCE(108);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(39);
      END_STATE();
    case 40:
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(108);
      END_STATE();
    case 41:
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(39);
      END_STATE();
    case 42:
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(40);
      END_STATE();
    case 43:
      if (eof) ADVANCE(45);
      ADVANCE_MAP(
        '"', 106,
        '(', 75,
        ')', 76,
        ',', 55,
        '/', 18,
        ':', 58,
        ';', 50,
        '<', 70,
        '=', 49,
        '>', 71,
        '?', 72,
        '@', 74,
        '[', 64,
        ']', 65,
        'a', 118,
        'i', 116,
        '{', 46,
        '}', 47,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(43);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(60);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('b' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 44:
      if (eof) ADVANCE(45);
      ADVANCE_MAP(
        '"', 106,
        '(', 75,
        ',', 55,
        '/', 18,
        ':', 19,
        ';', 50,
        '=', 49,
        '>', 71,
        '@', 74,
        '[', 64,
        ']', 65,
        '{', 46,
        '}', 47,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(44);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(60);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 45:
      ACCEPT_TOKEN(ts_builtin_sym_end);
      END_STATE();
    case 46:
      ACCEPT_TOKEN(anon_sym_LBRACE);
      END_STATE();
    case 47:
      ACCEPT_TOKEN(anon_sym_RBRACE);
      END_STATE();
    case 48:
      ACCEPT_TOKEN(anon_sym_RBRACE);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 49:
      ACCEPT_TOKEN(anon_sym_EQ);
      END_STATE();
    case 50:
      ACCEPT_TOKEN(anon_sym_SEMI);
      END_STATE();
    case 51:
      ACCEPT_TOKEN(anon_sym_SEMI);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 52:
      ACCEPT_TOKEN(anon_sym_attributes);
      END_STATE();
    case 53:
      ACCEPT_TOKEN(anon_sym_attributes);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 54:
      ACCEPT_TOKEN(anon_sym_attributes);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 55:
      ACCEPT_TOKEN(anon_sym_COMMA);
      END_STATE();
    case 56:
      ACCEPT_TOKEN(anon_sym_COMMA);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 57:
      ACCEPT_TOKEN(anon_sym_COLON);
      END_STATE();
    case 58:
      ACCEPT_TOKEN(anon_sym_COLON);
      if (lookahead == ':') ADVANCE(78);
      END_STATE();
    case 59:
      ACCEPT_TOKEN(anon_sym_COLON);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 60:
      ACCEPT_TOKEN(sym_integer);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(60);
      END_STATE();
    case 61:
      ACCEPT_TOKEN(anon_sym_in);
      END_STATE();
    case 62:
      ACCEPT_TOKEN(anon_sym_in);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 63:
      ACCEPT_TOKEN(anon_sym_in);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 64:
      ACCEPT_TOKEN(anon_sym_LBRACK);
      END_STATE();
    case 65:
      ACCEPT_TOKEN(anon_sym_RBRACK);
      END_STATE();
    case 66:
      ACCEPT_TOKEN(anon_sym_RBRACK);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 67:
      ACCEPT_TOKEN(anon_sym_appliesTo);
      END_STATE();
    case 68:
      ACCEPT_TOKEN(anon_sym_appliesTo);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 69:
      ACCEPT_TOKEN(anon_sym_appliesTo);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 70:
      ACCEPT_TOKEN(anon_sym_LT);
      END_STATE();
    case 71:
      ACCEPT_TOKEN(anon_sym_GT);
      END_STATE();
    case 72:
      ACCEPT_TOKEN(anon_sym_QMARK);
      END_STATE();
    case 73:
      ACCEPT_TOKEN(anon_sym_QMARK);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 74:
      ACCEPT_TOKEN(anon_sym_AT);
      END_STATE();
    case 75:
      ACCEPT_TOKEN(anon_sym_LPAREN);
      END_STATE();
    case 76:
      ACCEPT_TOKEN(anon_sym_RPAREN);
      END_STATE();
    case 77:
      ACCEPT_TOKEN(anon_sym_RPAREN);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 78:
      ACCEPT_TOKEN(anon_sym_COLON_COLON);
      END_STATE();
    case 79:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == ')') ADVANCE(77);
      if (lookahead == '/') ADVANCE(86);
      if (lookahead == '\t' ||
          lookahead == 0x0b ||
          lookahead == '\f' ||
          lookahead == ' ') ADVANCE(79);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 80:
      ACCEPT_TOKEN(sym_string_content);
      ADVANCE_MAP(
        ',', 56,
        '/', 86,
        ';', 51,
        'a', 96,
        'i', 94,
        '\t', 80,
        0x0b, 80,
        '\f', 80,
        ' ', 80,
      );
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 81:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == ',') ADVANCE(56);
      if (lookahead == '/') ADVANCE(86);
      if (lookahead == ']') ADVANCE(66);
      if (lookahead == '\t' ||
          lookahead == 0x0b ||
          lookahead == '\f' ||
          lookahead == ' ') ADVANCE(81);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != '"' &&
          lookahead != '\\' &&
          lookahead != ']') ADVANCE(105);
      END_STATE();
    case 82:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == ',') ADVANCE(56);
      if (lookahead == '/') ADVANCE(86);
      if (lookahead == '}') ADVANCE(48);
      if (lookahead == '\t' ||
          lookahead == 0x0b ||
          lookahead == '\f' ||
          lookahead == ' ') ADVANCE(82);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 83:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == '/') ADVANCE(86);
      if (lookahead == ':') ADVANCE(59);
      if (lookahead == '?') ADVANCE(73);
      if (lookahead == '\t' ||
          lookahead == 0x0b ||
          lookahead == '\f' ||
          lookahead == ' ') ADVANCE(83);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 84:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == '/') ADVANCE(86);
      if (lookahead == ':') ADVANCE(59);
      if (lookahead == '\t' ||
          lookahead == 0x0b ||
          lookahead == '\f' ||
          lookahead == ' ') ADVANCE(84);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 85:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == '/') ADVANCE(86);
      if (lookahead == ';') ADVANCE(51);
      if (lookahead == 'a') ADVANCE(96);
      if (lookahead == '\t' ||
          lookahead == 0x0b ||
          lookahead == '\f' ||
          lookahead == ' ') ADVANCE(85);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 86:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == '/') ADVANCE(104);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 87:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 'T') ADVANCE(95);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 88:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 'b') ADVANCE(103);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 89:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 'e') ADVANCE(99);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 90:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 'e') ADVANCE(100);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 91:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 'i') ADVANCE(89);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 92:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 'i') ADVANCE(88);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 93:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 'l') ADVANCE(91);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 94:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 'n') ADVANCE(63);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 95:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 'o') ADVANCE(69);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 96:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 'p') ADVANCE(97);
      if (lookahead == 't') ADVANCE(101);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 97:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 'p') ADVANCE(93);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 98:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 'r') ADVANCE(92);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 99:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 's') ADVANCE(87);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 100:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 's') ADVANCE(54);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 101:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 't') ADVANCE(98);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 102:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 't') ADVANCE(90);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 103:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == 'u') ADVANCE(102);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 104:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead == '\r' ||
          lookahead == '"' ||
          lookahead == '\\') ADVANCE(127);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(104);
      END_STATE();
    case 105:
      ACCEPT_TOKEN(sym_string_content);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\r' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(105);
      END_STATE();
    case 106:
      ACCEPT_TOKEN(anon_sym_DQUOTE);
      END_STATE();
    case 107:
      ACCEPT_TOKEN(anon_sym_DQUOTE2);
      END_STATE();
    case 108:
      ACCEPT_TOKEN(sym_escape_sequence);
      END_STATE();
    case 109:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'T') ADVANCE(117);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 110:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'b') ADVANCE(125);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 111:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'e') ADVANCE(121);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 112:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'e') ADVANCE(122);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 113:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'i') ADVANCE(111);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 114:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'i') ADVANCE(110);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 115:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'l') ADVANCE(113);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 116:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'n') ADVANCE(62);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 117:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'o') ADVANCE(68);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 118:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'p') ADVANCE(119);
      if (lookahead == 't') ADVANCE(123);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 119:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'p') ADVANCE(115);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 120:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'r') ADVANCE(114);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 121:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 's') ADVANCE(109);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 122:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 's') ADVANCE(53);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 123:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 't') ADVANCE(120);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 124:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 't') ADVANCE(112);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 125:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'u') ADVANCE(124);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 126:
      ACCEPT_TOKEN(sym_identifier);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(126);
      END_STATE();
    case 127:
      ACCEPT_TOKEN(sym_comment);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(127);
      END_STATE();
    default:
      return false;
  }
}

static bool ts_lex_keywords(TSLexer *lexer, TSStateId state) {
  START_LEXER();
  eof = lexer->eof(lexer);
  switch (state) {
    case 0:
      ADVANCE_MAP(
        'B', 1,
        'L', 2,
        'S', 3,
        'a', 4,
        'c', 5,
        'e', 6,
        'f', 7,
        'n', 8,
        'p', 9,
        'r', 10,
        't', 11,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(0);
      END_STATE();
    case 1:
      if (lookahead == 'o') ADVANCE(12);
      END_STATE();
    case 2:
      if (lookahead == 'o') ADVANCE(13);
      END_STATE();
    case 3:
      if (lookahead == 'e') ADVANCE(14);
      if (lookahead == 't') ADVANCE(15);
      END_STATE();
    case 4:
      if (lookahead == 'c') ADVANCE(16);
      END_STATE();
    case 5:
      if (lookahead == 'o') ADVANCE(17);
      END_STATE();
    case 6:
      if (lookahead == 'n') ADVANCE(18);
      END_STATE();
    case 7:
      if (lookahead == 'a') ADVANCE(19);
      END_STATE();
    case 8:
      if (lookahead == 'a') ADVANCE(20);
      END_STATE();
    case 9:
      if (lookahead == 'r') ADVANCE(21);
      END_STATE();
    case 10:
      if (lookahead == 'e') ADVANCE(22);
      END_STATE();
    case 11:
      if (lookahead == 'a') ADVANCE(23);
      if (lookahead == 'r') ADVANCE(24);
      if (lookahead == 'y') ADVANCE(25);
      END_STATE();
    case 12:
      if (lookahead == 'o') ADVANCE(26);
      END_STATE();
    case 13:
      if (lookahead == 'n') ADVANCE(27);
      END_STATE();
    case 14:
      if (lookahead == 't') ADVANCE(28);
      END_STATE();
    case 15:
      if (lookahead == 'r') ADVANCE(29);
      END_STATE();
    case 16:
      if (lookahead == 't') ADVANCE(30);
      END_STATE();
    case 17:
      if (lookahead == 'n') ADVANCE(31);
      END_STATE();
    case 18:
      if (lookahead == 't') ADVANCE(32);
      if (lookahead == 'u') ADVANCE(33);
      END_STATE();
    case 19:
      if (lookahead == 'l') ADVANCE(34);
      END_STATE();
    case 20:
      if (lookahead == 'm') ADVANCE(35);
      END_STATE();
    case 21:
      if (lookahead == 'i') ADVANCE(36);
      END_STATE();
    case 22:
      if (lookahead == 's') ADVANCE(37);
      END_STATE();
    case 23:
      if (lookahead == 'g') ADVANCE(38);
      END_STATE();
    case 24:
      if (lookahead == 'u') ADVANCE(39);
      END_STATE();
    case 25:
      if (lookahead == 'p') ADVANCE(40);
      END_STATE();
    case 26:
      if (lookahead == 'l') ADVANCE(41);
      END_STATE();
    case 27:
      if (lookahead == 'g') ADVANCE(42);
      END_STATE();
    case 28:
      ACCEPT_TOKEN(anon_sym_Set);
      END_STATE();
    case 29:
      if (lookahead == 'i') ADVANCE(43);
      END_STATE();
    case 30:
      if (lookahead == 'i') ADVANCE(44);
      END_STATE();
    case 31:
      if (lookahead == 't') ADVANCE(45);
      END_STATE();
    case 32:
      if (lookahead == 'i') ADVANCE(46);
      END_STATE();
    case 33:
      if (lookahead == 'm') ADVANCE(47);
      END_STATE();
    case 34:
      if (lookahead == 's') ADVANCE(48);
      END_STATE();
    case 35:
      if (lookahead == 'e') ADVANCE(49);
      END_STATE();
    case 36:
      if (lookahead == 'n') ADVANCE(50);
      END_STATE();
    case 37:
      if (lookahead == 'o') ADVANCE(51);
      END_STATE();
    case 38:
      if (lookahead == 's') ADVANCE(52);
      END_STATE();
    case 39:
      if (lookahead == 'e') ADVANCE(53);
      END_STATE();
    case 40:
      if (lookahead == 'e') ADVANCE(54);
      END_STATE();
    case 41:
      ACCEPT_TOKEN(anon_sym_Bool);
      END_STATE();
    case 42:
      ACCEPT_TOKEN(anon_sym_Long);
      END_STATE();
    case 43:
      if (lookahead == 'n') ADVANCE(55);
      END_STATE();
    case 44:
      if (lookahead == 'o') ADVANCE(56);
      END_STATE();
    case 45:
      if (lookahead == 'e') ADVANCE(57);
      END_STATE();
    case 46:
      if (lookahead == 't') ADVANCE(58);
      END_STATE();
    case 47:
      ACCEPT_TOKEN(anon_sym_enum);
      END_STATE();
    case 48:
      if (lookahead == 'e') ADVANCE(59);
      END_STATE();
    case 49:
      if (lookahead == 's') ADVANCE(60);
      END_STATE();
    case 50:
      if (lookahead == 'c') ADVANCE(61);
      END_STATE();
    case 51:
      if (lookahead == 'u') ADVANCE(62);
      END_STATE();
    case 52:
      ACCEPT_TOKEN(anon_sym_tags);
      END_STATE();
    case 53:
      ACCEPT_TOKEN(sym_true);
      END_STATE();
    case 54:
      ACCEPT_TOKEN(anon_sym_type);
      END_STATE();
    case 55:
      if (lookahead == 'g') ADVANCE(63);
      END_STATE();
    case 56:
      if (lookahead == 'n') ADVANCE(64);
      END_STATE();
    case 57:
      if (lookahead == 'x') ADVANCE(65);
      END_STATE();
    case 58:
      if (lookahead == 'y') ADVANCE(66);
      END_STATE();
    case 59:
      ACCEPT_TOKEN(sym_false);
      END_STATE();
    case 60:
      if (lookahead == 'p') ADVANCE(67);
      END_STATE();
    case 61:
      if (lookahead == 'i') ADVANCE(68);
      END_STATE();
    case 62:
      if (lookahead == 'r') ADVANCE(69);
      END_STATE();
    case 63:
      ACCEPT_TOKEN(anon_sym_String);
      END_STATE();
    case 64:
      ACCEPT_TOKEN(anon_sym_action);
      END_STATE();
    case 65:
      if (lookahead == 't') ADVANCE(70);
      END_STATE();
    case 66:
      ACCEPT_TOKEN(anon_sym_entity);
      END_STATE();
    case 67:
      if (lookahead == 'a') ADVANCE(71);
      END_STATE();
    case 68:
      if (lookahead == 'p') ADVANCE(72);
      END_STATE();
    case 69:
      if (lookahead == 'c') ADVANCE(73);
      END_STATE();
    case 70:
      ACCEPT_TOKEN(anon_sym_context);
      END_STATE();
    case 71:
      if (lookahead == 'c') ADVANCE(74);
      END_STATE();
    case 72:
      if (lookahead == 'a') ADVANCE(75);
      END_STATE();
    case 73:
      if (lookahead == 'e') ADVANCE(76);
      END_STATE();
    case 74:
      if (lookahead == 'e') ADVANCE(77);
      END_STATE();
    case 75:
      if (lookahead == 'l') ADVANCE(78);
      END_STATE();
    case 76:
      ACCEPT_TOKEN(anon_sym_resource);
      END_STATE();
    case 77:
      ACCEPT_TOKEN(anon_sym_namespace);
      END_STATE();
    case 78:
      ACCEPT_TOKEN(anon_sym_principal);
      END_STATE();
    default:
      return false;
  }
}

static const TSLexerMode ts_lex_modes[STATE_COUNT] = {
  [0] = {.lex_state = 0},
  [1] = {.lex_state = 44},
  [2] = {.lex_state = 44},
  [3] = {.lex_state = 44},
  [4] = {.lex_state = 44},
  [5] = {.lex_state = 44},
  [6] = {.lex_state = 44},
  [7] = {.lex_state = 44},
  [8] = {.lex_state = 44},
  [9] = {.lex_state = 44},
  [10] = {.lex_state = 44},
  [11] = {.lex_state = 44},
  [12] = {.lex_state = 44},
  [13] = {.lex_state = 44},
  [14] = {.lex_state = 44},
  [15] = {.lex_state = 44},
  [16] = {.lex_state = 44},
  [17] = {.lex_state = 8},
  [18] = {.lex_state = 44},
  [19] = {.lex_state = 8},
  [20] = {.lex_state = 10},
  [21] = {.lex_state = 44},
  [22] = {.lex_state = 10},
  [23] = {.lex_state = 2},
  [24] = {.lex_state = 2},
  [25] = {.lex_state = 44},
  [26] = {.lex_state = 2},
  [27] = {.lex_state = 44},
  [28] = {.lex_state = 44},
  [29] = {.lex_state = 44},
  [30] = {.lex_state = 44},
  [31] = {.lex_state = 10},
  [32] = {.lex_state = 10},
  [33] = {.lex_state = 44},
  [34] = {.lex_state = 44},
  [35] = {.lex_state = 44},
  [36] = {.lex_state = 10},
  [37] = {.lex_state = 44},
  [38] = {.lex_state = 44},
  [39] = {.lex_state = 44},
  [40] = {.lex_state = 8},
  [41] = {.lex_state = 8},
  [42] = {.lex_state = 44},
  [43] = {.lex_state = 44},
  [44] = {.lex_state = 44},
  [45] = {.lex_state = 44},
  [46] = {.lex_state = 44},
  [47] = {.lex_state = 44},
  [48] = {.lex_state = 44},
  [49] = {.lex_state = 10},
  [50] = {.lex_state = 44},
  [51] = {.lex_state = 44},
  [52] = {.lex_state = 44},
  [53] = {.lex_state = 44},
  [54] = {.lex_state = 44},
  [55] = {.lex_state = 44},
  [56] = {.lex_state = 44},
  [57] = {.lex_state = 44},
  [58] = {.lex_state = 44},
  [59] = {.lex_state = 44},
  [60] = {.lex_state = 44},
  [61] = {.lex_state = 44},
  [62] = {.lex_state = 44},
  [63] = {.lex_state = 44},
  [64] = {.lex_state = 7},
  [65] = {.lex_state = 7},
  [66] = {.lex_state = 7},
  [67] = {.lex_state = 44},
  [68] = {.lex_state = 44},
  [69] = {.lex_state = 44},
  [70] = {.lex_state = 44},
  [71] = {.lex_state = 44},
  [72] = {.lex_state = 8},
  [73] = {.lex_state = 44},
  [74] = {.lex_state = 44},
  [75] = {.lex_state = 44},
  [76] = {.lex_state = 44},
  [77] = {.lex_state = 8},
  [78] = {.lex_state = 5},
  [79] = {.lex_state = 5},
  [80] = {.lex_state = 5},
  [81] = {.lex_state = 44},
  [82] = {.lex_state = 8},
  [83] = {.lex_state = 44},
  [84] = {.lex_state = 3},
  [85] = {.lex_state = 3},
  [86] = {.lex_state = 3},
  [87] = {.lex_state = 44},
  [88] = {.lex_state = 4},
  [89] = {.lex_state = 4},
  [90] = {.lex_state = 4},
  [91] = {.lex_state = 6},
  [92] = {.lex_state = 8},
  [93] = {.lex_state = 8},
  [94] = {.lex_state = 44},
  [95] = {.lex_state = 44},
  [96] = {.lex_state = 44},
  [97] = {.lex_state = 8},
  [98] = {.lex_state = 44},
  [99] = {.lex_state = 44},
  [100] = {.lex_state = 44},
  [101] = {.lex_state = 44},
  [102] = {.lex_state = 8},
  [103] = {.lex_state = 44},
  [104] = {.lex_state = 44},
  [105] = {.lex_state = 14},
  [106] = {.lex_state = 1},
  [107] = {.lex_state = 1},
  [108] = {.lex_state = 1},
  [109] = {.lex_state = 8},
  [110] = {.lex_state = 44},
  [111] = {.lex_state = 6},
  [112] = {.lex_state = 6},
  [113] = {.lex_state = 8},
  [114] = {.lex_state = 0},
  [115] = {.lex_state = 44},
  [116] = {.lex_state = 44},
  [117] = {.lex_state = 44},
  [118] = {.lex_state = 44},
  [119] = {.lex_state = 44},
  [120] = {.lex_state = 44},
  [121] = {.lex_state = 0},
  [122] = {.lex_state = 44},
  [123] = {.lex_state = 44},
  [124] = {.lex_state = 44},
  [125] = {.lex_state = 0},
  [126] = {.lex_state = 8},
  [127] = {.lex_state = 0},
  [128] = {.lex_state = 44},
  [129] = {.lex_state = 0},
  [130] = {.lex_state = 44},
  [131] = {.lex_state = 0},
  [132] = {.lex_state = 0},
  [133] = {.lex_state = 8},
  [134] = {.lex_state = 8},
  [135] = {.lex_state = 0},
  [136] = {.lex_state = 0},
  [137] = {.lex_state = 44},
  [138] = {.lex_state = 0},
  [139] = {.lex_state = 44},
  [140] = {.lex_state = 44},
  [141] = {.lex_state = 44},
  [142] = {.lex_state = 0},
  [143] = {.lex_state = 0},
  [144] = {.lex_state = 44},
  [145] = {.lex_state = 0},
  [146] = {.lex_state = 0},
  [147] = {.lex_state = 0},
  [148] = {.lex_state = 8},
  [149] = {.lex_state = 44},
  [150] = {.lex_state = 0},
  [151] = {.lex_state = 0},
  [152] = {.lex_state = 8},
  [153] = {.lex_state = 44},
  [154] = {.lex_state = 0},
  [155] = {.lex_state = 0},
  [156] = {.lex_state = 8},
  [157] = {.lex_state = 8},
  [158] = {.lex_state = 44},
  [159] = {.lex_state = 8},
  [160] = {.lex_state = 0},
  [161] = {.lex_state = 44},
  [162] = {.lex_state = 44},
  [163] = {.lex_state = 44},
  [164] = {.lex_state = 44},
  [165] = {.lex_state = 44},
  [166] = {.lex_state = 8},
  [167] = {.lex_state = 0},
  [168] = {.lex_state = 0},
  [169] = {.lex_state = 0},
  [170] = {.lex_state = 0},
  [171] = {.lex_state = 0},
  [172] = {.lex_state = 44},
  [173] = {.lex_state = 0},
  [174] = {.lex_state = 0},
  [175] = {.lex_state = 0},
  [176] = {.lex_state = 0},
  [177] = {.lex_state = 0},
  [178] = {.lex_state = 0},
  [179] = {.lex_state = 8},
  [180] = {.lex_state = 0},
  [181] = {.lex_state = 0},
  [182] = {.lex_state = 44},
  [183] = {.lex_state = 44},
  [184] = {.lex_state = 0},
  [185] = {.lex_state = 44},
  [186] = {.lex_state = 0},
  [187] = {.lex_state = 8},
  [188] = {.lex_state = 44},
  [189] = {.lex_state = 0},
  [190] = {.lex_state = 44},
  [191] = {.lex_state = 8},
  [192] = {.lex_state = 44},
  [193] = {.lex_state = 8},
  [194] = {.lex_state = 8},
  [195] = {.lex_state = 0},
  [196] = {.lex_state = 0},
  [197] = {.lex_state = 0},
  [198] = {.lex_state = 8},
  [199] = {.lex_state = 0},
  [200] = {.lex_state = 0},
  [201] = {.lex_state = 0},
  [202] = {.lex_state = 0},
  [203] = {.lex_state = 44},
  [204] = {.lex_state = 0},
  [205] = {.lex_state = 0},
  [206] = {.lex_state = 44},
  [207] = {.lex_state = 0},
  [208] = {.lex_state = 0},
  [209] = {.lex_state = 0},
  [210] = {.lex_state = 0},
  [211] = {.lex_state = 0},
  [212] = {.lex_state = 8},
  [213] = {.lex_state = 0},
  [214] = {.lex_state = 0},
  [215] = {.lex_state = 0},
  [216] = {.lex_state = 0},
  [217] = {.lex_state = 44},
  [218] = {.lex_state = 0},
  [219] = {.lex_state = 0},
  [220] = {.lex_state = 0},
  [221] = {.lex_state = 0},
  [222] = {.lex_state = 0},
  [223] = {.lex_state = 0},
  [224] = {.lex_state = 44},
  [225] = {.lex_state = 0},
  [226] = {.lex_state = 0},
  [227] = {.lex_state = 0},
  [228] = {.lex_state = 8},
  [229] = {.lex_state = 8},
  [230] = {.lex_state = 0},
  [231] = {.lex_state = 8},
  [232] = {.lex_state = 8},
  [233] = {.lex_state = 0},
  [234] = {.lex_state = 0},
  [235] = {.lex_state = 44},
  [236] = {.lex_state = 0},
  [237] = {.lex_state = 0},
  [238] = {.lex_state = 0},
  [239] = {.lex_state = 0},
};

static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
  [STATE(0)] = {
    [ts_builtin_sym_end] = ACTIONS(1),
    [sym_identifier] = ACTIONS(1),
    [anon_sym_namespace] = ACTIONS(1),
    [anon_sym_LBRACE] = ACTIONS(1),
    [anon_sym_RBRACE] = ACTIONS(1),
    [anon_sym_entity] = ACTIONS(1),
    [anon_sym_EQ] = ACTIONS(1),
    [anon_sym_SEMI] = ACTIONS(1),
    [anon_sym_action] = ACTIONS(1),
    [anon_sym_attributes] = ACTIONS(1),
    [anon_sym_COMMA] = ACTIONS(1),
    [anon_sym_COLON] = ACTIONS(1),
    [sym_true] = ACTIONS(1),
    [sym_false] = ACTIONS(1),
    [sym_integer] = ACTIONS(1),
    [anon_sym_type] = ACTIONS(1),
    [anon_sym_in] = ACTIONS(1),
    [anon_sym_tags] = ACTIONS(1),
    [anon_sym_enum] = ACTIONS(1),
    [anon_sym_LBRACK] = ACTIONS(1),
    [anon_sym_RBRACK] = ACTIONS(1),
    [anon_sym_appliesTo] = ACTIONS(1),
    [anon_sym_principal] = ACTIONS(1),
    [anon_sym_resource] = ACTIONS(1),
    [anon_sym_context] = ACTIONS(1),
    [anon_sym_Bool] = ACTIONS(1),
    [anon_sym_Long] = ACTIONS(1),
    [anon_sym_String] = ACTIONS(1),
    [anon_sym_Set] = ACTIONS(1),
    [anon_sym_LT] = ACTIONS(1),
    [anon_sym_GT] = ACTIONS(1),
    [anon_sym_QMARK] = ACTIONS(1),
    [anon_sym_AT] = ACTIONS(1),
    [anon_sym_LPAREN] = ACTIONS(1),
    [anon_sym_RPAREN] = ACTIONS(1),
    [anon_sym_COLON_COLON] = ACTIONS(1),
    [anon_sym_DQUOTE] = ACTIONS(1),
    [anon_sym_DQUOTE2] = ACTIONS(1),
    [sym_escape_sequence] = ACTIONS(1),
    [sym_comment] = ACTIONS(3),
  },
  [STATE(1)] = {
    [sym_schema] = STATE(219),
    [sym_namespace] = STATE(6),
    [sym__declaration] = STATE(6),
    [sym_entity_declaration] = STATE(6),
    [sym_action_declaration] = STATE(6),
    [sym_common_type_declaration] = STATE(6),
    [sym_annotation] = STATE(48),
    [aux_sym_schema_repeat1] = STATE(6),
    [aux_sym_namespace_repeat1] = STATE(48),
    [ts_builtin_sym_end] = ACTIONS(5),
    [anon_sym_namespace] = ACTIONS(7),
    [anon_sym_entity] = ACTIONS(9),
    [anon_sym_action] = ACTIONS(11),
    [anon_sym_type] = ACTIONS(13),
    [anon_sym_AT] = ACTIONS(15),
    [sym_comment] = ACTIONS(3),
  },
};

static const uint16_t ts_small_parse_table[] = {
  [0] = 9,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_namespace,
    ACTIONS(22), 1,
      anon_sym_entity,
    ACTIONS(25), 1,
      anon_sym_action,
    ACTIONS(28), 1,
      anon_sym_type,
    ACTIONS(31), 1,
      anon_sym_AT,
    ACTIONS(17), 2,
      ts_builtin_sym_end,
      anon_sym_RBRACE,
    STATE(48), 2,
      sym_annotation,
      aux_sym_namespace_repeat1,
    STATE(2), 6,
      sym_namespace,
      sym__declaration,
      sym_entity_declaration,
      sym_action_declaration,
      sym_common_type_declaration,
      aux_sym_schema_repeat1,
  [35] = 9,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_namespace,
    ACTIONS(9), 1,
      anon_sym_entity,
    ACTIONS(11), 1,
      anon_sym_action,
    ACTIONS(13), 1,
      anon_sym_type,
    ACTIONS(15), 1,
      anon_sym_AT,
    ACTIONS(34), 1,
      anon_sym_RBRACE,
    STATE(48), 2,
      sym_annotation,
      aux_sym_namespace_repeat1,
    STATE(4), 6,
      sym_namespace,
      sym__declaration,
      sym_entity_declaration,
      sym_action_declaration,
      sym_common_type_declaration,
      aux_sym_schema_repeat1,
  [69] = 9,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_namespace,
    ACTIONS(9), 1,
      anon_sym_entity,
    ACTIONS(11), 1,
      anon_sym_action,
    ACTIONS(13), 1,
      anon_sym_type,
    ACTIONS(15), 1,
      anon_sym_AT,
    ACTIONS(36), 1,
      anon_sym_RBRACE,
    STATE(48), 2,
      sym_annotation,
      aux_sym_namespace_repeat1,
    STATE(2), 6,
      sym_namespace,
      sym__declaration,
      sym_entity_declaration,
      sym_action_declaration,
      sym_common_type_declaration,
      aux_sym_schema_repeat1,
  [103] = 9,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_namespace,
    ACTIONS(9), 1,
      anon_sym_entity,
    ACTIONS(11), 1,
      anon_sym_action,
    ACTIONS(13), 1,
      anon_sym_type,
    ACTIONS(15), 1,
      anon_sym_AT,
    ACTIONS(36), 1,
      anon_sym_RBRACE,
    STATE(48), 2,
      sym_annotation,
      aux_sym_namespace_repeat1,
    STATE(7), 6,
      sym_namespace,
      sym__declaration,
      sym_entity_declaration,
      sym_action_declaration,
      sym_common_type_declaration,
      aux_sym_schema_repeat1,
  [137] = 9,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_namespace,
    ACTIONS(9), 1,
      anon_sym_entity,
    ACTIONS(11), 1,
      anon_sym_action,
    ACTIONS(13), 1,
      anon_sym_type,
    ACTIONS(15), 1,
      anon_sym_AT,
    ACTIONS(38), 1,
      ts_builtin_sym_end,
    STATE(48), 2,
      sym_annotation,
      aux_sym_namespace_repeat1,
    STATE(2), 6,
      sym_namespace,
      sym__declaration,
      sym_entity_declaration,
      sym_action_declaration,
      sym_common_type_declaration,
      aux_sym_schema_repeat1,
  [171] = 9,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_namespace,
    ACTIONS(9), 1,
      anon_sym_entity,
    ACTIONS(11), 1,
      anon_sym_action,
    ACTIONS(13), 1,
      anon_sym_type,
    ACTIONS(15), 1,
      anon_sym_AT,
    ACTIONS(40), 1,
      anon_sym_RBRACE,
    STATE(48), 2,
      sym_annotation,
      aux_sym_namespace_repeat1,
    STATE(2), 6,
      sym_namespace,
      sym__declaration,
      sym_entity_declaration,
      sym_action_declaration,
      sym_common_type_declaration,
      aux_sym_schema_repeat1,
  [205] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(42), 1,
      sym_identifier,
    ACTIONS(44), 1,
      anon_sym_LBRACE,
    ACTIONS(48), 1,
      anon_sym_Set,
    ACTIONS(46), 3,
      anon_sym_Bool,
      anon_sym_Long,
      anon_sym_String,
    STATE(238), 5,
      sym__type_expression,
      sym_primitive_type,
      sym_set_type,
      sym_record_type,
      sym_name,
  [230] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(42), 1,
      sym_identifier,
    ACTIONS(44), 1,
      anon_sym_LBRACE,
    ACTIONS(48), 1,
      anon_sym_Set,
    ACTIONS(46), 3,
      anon_sym_Bool,
      anon_sym_Long,
      anon_sym_String,
    STATE(236), 5,
      sym__type_expression,
      sym_primitive_type,
      sym_set_type,
      sym_record_type,
      sym_name,
  [255] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(42), 1,
      sym_identifier,
    ACTIONS(44), 1,
      anon_sym_LBRACE,
    ACTIONS(48), 1,
      anon_sym_Set,
    ACTIONS(46), 3,
      anon_sym_Bool,
      anon_sym_Long,
      anon_sym_String,
    STATE(202), 5,
      sym__type_expression,
      sym_primitive_type,
      sym_set_type,
      sym_record_type,
      sym_name,
  [280] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(42), 1,
      sym_identifier,
    ACTIONS(44), 1,
      anon_sym_LBRACE,
    ACTIONS(48), 1,
      anon_sym_Set,
    ACTIONS(46), 3,
      anon_sym_Bool,
      anon_sym_Long,
      anon_sym_String,
    STATE(189), 5,
      sym__type_expression,
      sym_primitive_type,
      sym_set_type,
      sym_record_type,
      sym_name,
  [305] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(42), 1,
      sym_identifier,
    ACTIONS(44), 1,
      anon_sym_LBRACE,
    ACTIONS(48), 1,
      anon_sym_Set,
    ACTIONS(46), 3,
      anon_sym_Bool,
      anon_sym_Long,
      anon_sym_String,
    STATE(167), 5,
      sym__type_expression,
      sym_primitive_type,
      sym_set_type,
      sym_record_type,
      sym_name,
  [330] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(42), 1,
      sym_identifier,
    ACTIONS(44), 1,
      anon_sym_LBRACE,
    ACTIONS(48), 1,
      anon_sym_Set,
    ACTIONS(46), 3,
      anon_sym_Bool,
      anon_sym_Long,
      anon_sym_String,
    STATE(213), 5,
      sym__type_expression,
      sym_primitive_type,
      sym_set_type,
      sym_record_type,
      sym_name,
  [355] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(42), 1,
      sym_identifier,
    ACTIONS(44), 1,
      anon_sym_LBRACE,
    ACTIONS(48), 1,
      anon_sym_Set,
    ACTIONS(46), 3,
      anon_sym_Bool,
      anon_sym_Long,
      anon_sym_String,
    STATE(181), 5,
      sym__type_expression,
      sym_primitive_type,
      sym_set_type,
      sym_record_type,
      sym_name,
  [380] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(52), 1,
      anon_sym_COLON_COLON,
    STATE(21), 1,
      aux_sym_qualified_name_repeat1,
    ACTIONS(50), 8,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_EQ,
      anon_sym_SEMI,
      anon_sym_COMMA,
      anon_sym_tags,
      anon_sym_RBRACK,
      anon_sym_GT,
  [400] = 9,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_AT,
    ACTIONS(54), 1,
      sym_identifier,
    ACTIONS(56), 1,
      anon_sym_RBRACE,
    ACTIONS(58), 1,
      anon_sym_COMMA,
    ACTIONS(60), 1,
      anon_sym_DQUOTE,
    STATE(138), 1,
      sym_attribute_declaration,
    STATE(52), 2,
      sym_annotation,
      aux_sym_namespace_repeat1,
    STATE(166), 2,
      sym__attribute_name,
      sym_string,
  [430] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(62), 10,
      anon_sym_RBRACE,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_COMMA,
      anon_sym_COLON,
      anon_sym_in,
      anon_sym_RBRACK,
      anon_sym_appliesTo,
      anon_sym_QMARK,
      anon_sym_RPAREN,
  [446] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(66), 1,
      anon_sym_COLON_COLON,
    STATE(18), 1,
      aux_sym_qualified_name_repeat1,
    ACTIONS(64), 8,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_EQ,
      anon_sym_SEMI,
      anon_sym_COMMA,
      anon_sym_tags,
      anon_sym_RBRACK,
      anon_sym_GT,
  [466] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(69), 10,
      anon_sym_RBRACE,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_COMMA,
      anon_sym_COLON,
      anon_sym_in,
      anon_sym_RBRACK,
      anon_sym_appliesTo,
      anon_sym_QMARK,
      anon_sym_RPAREN,
  [482] = 11,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(44), 1,
      anon_sym_LBRACE,
    ACTIONS(71), 1,
      anon_sym_EQ,
    ACTIONS(73), 1,
      anon_sym_SEMI,
    ACTIONS(75), 1,
      anon_sym_in,
    ACTIONS(77), 1,
      anon_sym_tags,
    ACTIONS(79), 1,
      anon_sym_enum,
    STATE(56), 1,
      sym_enum_type,
    STATE(75), 1,
      sym_entity_parents,
    STATE(140), 1,
      sym_record_type,
    STATE(239), 1,
      sym_entity_tags,
  [516] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(52), 1,
      anon_sym_COLON_COLON,
    STATE(18), 1,
      aux_sym_qualified_name_repeat1,
    ACTIONS(81), 8,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_EQ,
      anon_sym_SEMI,
      anon_sym_COMMA,
      anon_sym_tags,
      anon_sym_RBRACK,
      anon_sym_GT,
  [536] = 11,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(44), 1,
      anon_sym_LBRACE,
    ACTIONS(75), 1,
      anon_sym_in,
    ACTIONS(77), 1,
      anon_sym_tags,
    ACTIONS(79), 1,
      anon_sym_enum,
    ACTIONS(83), 1,
      anon_sym_EQ,
    ACTIONS(85), 1,
      anon_sym_SEMI,
    STATE(54), 1,
      sym_enum_type,
    STATE(76), 1,
      sym_entity_parents,
    STATE(153), 1,
      sym_record_type,
    STATE(216), 1,
      sym_entity_tags,
  [570] = 6,
    ACTIONS(89), 1,
      sym_string_content,
    ACTIONS(91), 1,
      anon_sym_DQUOTE2,
    ACTIONS(93), 1,
      sym_escape_sequence,
    ACTIONS(95), 1,
      sym_comment,
    STATE(24), 1,
      aux_sym_string_repeat1,
    ACTIONS(87), 5,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_COMMA,
      anon_sym_in,
      anon_sym_appliesTo,
  [593] = 6,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(99), 1,
      sym_string_content,
    ACTIONS(101), 1,
      anon_sym_DQUOTE2,
    ACTIONS(103), 1,
      sym_escape_sequence,
    STATE(26), 1,
      aux_sym_string_repeat1,
    ACTIONS(97), 5,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_COMMA,
      anon_sym_in,
      anon_sym_appliesTo,
  [616] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(64), 9,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_EQ,
      anon_sym_SEMI,
      anon_sym_COMMA,
      anon_sym_tags,
      anon_sym_RBRACK,
      anon_sym_GT,
      anon_sym_COLON_COLON,
  [631] = 6,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(107), 1,
      sym_string_content,
    ACTIONS(110), 1,
      anon_sym_DQUOTE2,
    ACTIONS(112), 1,
      sym_escape_sequence,
    STATE(26), 1,
      aux_sym_string_repeat1,
    ACTIONS(105), 5,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_COMMA,
      anon_sym_in,
      anon_sym_appliesTo,
  [654] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_AT,
    ACTIONS(54), 1,
      sym_identifier,
    ACTIONS(60), 1,
      anon_sym_DQUOTE,
    ACTIONS(115), 1,
      anon_sym_RBRACE,
    STATE(186), 1,
      sym_attribute_declaration,
    STATE(52), 2,
      sym_annotation,
      aux_sym_namespace_repeat1,
    STATE(166), 2,
      sym__attribute_name,
      sym_string,
  [681] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(117), 1,
      anon_sym_RBRACE,
    ACTIONS(119), 1,
      anon_sym_COMMA,
    ACTIONS(121), 1,
      anon_sym_principal,
    ACTIONS(123), 1,
      anon_sym_resource,
    ACTIONS(125), 1,
      anon_sym_context,
    STATE(160), 4,
      sym__applies_to_member,
      sym_principal_types,
      sym_resource_types,
      sym_context_type,
  [706] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(129), 1,
      anon_sym_AT,
    ACTIONS(132), 1,
      anon_sym_DQUOTE,
    STATE(29), 2,
      sym_annotation,
      aux_sym_namespace_repeat1,
    ACTIONS(127), 5,
      anon_sym_namespace,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      sym_identifier,
  [727] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_AT,
    ACTIONS(54), 1,
      sym_identifier,
    ACTIONS(60), 1,
      anon_sym_DQUOTE,
    ACTIONS(134), 1,
      anon_sym_RBRACE,
    STATE(186), 1,
      sym_attribute_declaration,
    STATE(52), 2,
      sym_annotation,
      aux_sym_namespace_repeat1,
    STATE(166), 2,
      sym__attribute_name,
      sym_string,
  [754] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(138), 1,
      anon_sym_COMMA,
    STATE(32), 1,
      aux_sym_identifier_list_repeat1,
    ACTIONS(136), 6,
      anon_sym_LBRACE,
      anon_sym_EQ,
      anon_sym_SEMI,
      anon_sym_in,
      anon_sym_tags,
      anon_sym_enum,
  [772] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(142), 1,
      anon_sym_COMMA,
    STATE(32), 1,
      aux_sym_identifier_list_repeat1,
    ACTIONS(140), 6,
      anon_sym_LBRACE,
      anon_sym_EQ,
      anon_sym_SEMI,
      anon_sym_in,
      anon_sym_tags,
      anon_sym_enum,
  [790] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(149), 1,
      anon_sym_LPAREN,
    ACTIONS(147), 2,
      anon_sym_AT,
      anon_sym_DQUOTE,
    ACTIONS(145), 5,
      anon_sym_namespace,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      sym_identifier,
  [808] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(121), 1,
      anon_sym_principal,
    ACTIONS(123), 1,
      anon_sym_resource,
    ACTIONS(125), 1,
      anon_sym_context,
    ACTIONS(151), 1,
      anon_sym_RBRACE,
    STATE(180), 4,
      sym__applies_to_member,
      sym_principal_types,
      sym_resource_types,
      sym_context_type,
  [830] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_AT,
    ACTIONS(54), 1,
      sym_identifier,
    ACTIONS(60), 1,
      anon_sym_DQUOTE,
    STATE(186), 1,
      sym_attribute_declaration,
    STATE(52), 2,
      sym_annotation,
      aux_sym_namespace_repeat1,
    STATE(166), 2,
      sym__attribute_name,
      sym_string,
  [854] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(138), 1,
      anon_sym_COMMA,
    STATE(31), 1,
      aux_sym_identifier_list_repeat1,
    ACTIONS(153), 6,
      anon_sym_LBRACE,
      anon_sym_EQ,
      anon_sym_SEMI,
      anon_sym_in,
      anon_sym_tags,
      anon_sym_enum,
  [872] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(121), 1,
      anon_sym_principal,
    ACTIONS(123), 1,
      anon_sym_resource,
    ACTIONS(125), 1,
      anon_sym_context,
    ACTIONS(155), 1,
      anon_sym_RBRACE,
    STATE(180), 4,
      sym__applies_to_member,
      sym_principal_types,
      sym_resource_types,
      sym_context_type,
  [894] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(157), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [907] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(159), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [920] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(161), 1,
      anon_sym_SEMI,
    ACTIONS(163), 1,
      anon_sym_attributes,
    ACTIONS(165), 1,
      anon_sym_in,
    ACTIONS(167), 1,
      anon_sym_appliesTo,
    STATE(93), 1,
      sym_action_parents,
    STATE(133), 1,
      sym_applies_to,
    STATE(223), 1,
      sym_action_attributes,
  [945] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(163), 1,
      anon_sym_attributes,
    ACTIONS(165), 1,
      anon_sym_in,
    ACTIONS(167), 1,
      anon_sym_appliesTo,
    ACTIONS(169), 1,
      anon_sym_SEMI,
    STATE(92), 1,
      sym_action_parents,
    STATE(159), 1,
      sym_applies_to,
    STATE(195), 1,
      sym_action_attributes,
  [970] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(171), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [983] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(173), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [996] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(175), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [1009] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(177), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [1022] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(179), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [1035] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(183), 2,
      anon_sym_AT,
      anon_sym_DQUOTE,
    ACTIONS(181), 5,
      anon_sym_namespace,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      sym_identifier,
  [1050] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_AT,
    ACTIONS(185), 1,
      anon_sym_namespace,
    ACTIONS(187), 1,
      anon_sym_entity,
    ACTIONS(189), 1,
      anon_sym_action,
    ACTIONS(191), 1,
      anon_sym_type,
    STATE(29), 2,
      sym_annotation,
      aux_sym_namespace_repeat1,
  [1073] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(140), 7,
      anon_sym_LBRACE,
      anon_sym_EQ,
      anon_sym_SEMI,
      anon_sym_COMMA,
      anon_sym_in,
      anon_sym_tags,
      anon_sym_enum,
  [1086] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(193), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [1099] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(195), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [1112] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_AT,
    ACTIONS(60), 1,
      anon_sym_DQUOTE,
    ACTIONS(197), 1,
      sym_identifier,
    STATE(29), 2,
      sym_annotation,
      aux_sym_namespace_repeat1,
    STATE(194), 2,
      sym__attribute_name,
      sym_string,
  [1133] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(199), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [1146] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(201), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [1159] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(203), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [1172] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(205), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [1185] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [1198] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(209), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [1211] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(211), 1,
      sym_identifier,
    ACTIONS(213), 1,
      anon_sym_LBRACK,
    ACTIONS(215), 1,
      anon_sym_DQUOTE,
    STATE(156), 1,
      sym_qualified_name,
    STATE(157), 1,
      sym_qualified_name_list,
    STATE(109), 2,
      sym__attribute_name,
      sym_string,
  [1234] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(217), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [1247] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(219), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [1260] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(121), 1,
      anon_sym_principal,
    ACTIONS(123), 1,
      anon_sym_resource,
    ACTIONS(125), 1,
      anon_sym_context,
    STATE(180), 4,
      sym__applies_to_member,
      sym_principal_types,
      sym_resource_types,
      sym_context_type,
  [1279] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(221), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [1292] = 6,
    ACTIONS(91), 1,
      anon_sym_DQUOTE2,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(223), 1,
      sym_string_content,
    ACTIONS(225), 1,
      sym_escape_sequence,
    STATE(65), 1,
      aux_sym_string_repeat1,
    ACTIONS(87), 3,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_appliesTo,
  [1313] = 6,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(101), 1,
      anon_sym_DQUOTE2,
    ACTIONS(227), 1,
      sym_string_content,
    ACTIONS(229), 1,
      sym_escape_sequence,
    STATE(66), 1,
      aux_sym_string_repeat1,
    ACTIONS(97), 3,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_appliesTo,
  [1334] = 6,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(110), 1,
      anon_sym_DQUOTE2,
    ACTIONS(231), 1,
      sym_string_content,
    ACTIONS(234), 1,
      sym_escape_sequence,
    STATE(66), 1,
      aux_sym_string_repeat1,
    ACTIONS(105), 3,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_appliesTo,
  [1355] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(237), 7,
      ts_builtin_sym_end,
      anon_sym_namespace,
      anon_sym_RBRACE,
      anon_sym_entity,
      anon_sym_action,
      anon_sym_type,
      anon_sym_AT,
  [1368] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(239), 6,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_EQ,
      anon_sym_SEMI,
      anon_sym_COMMA,
      anon_sym_tags,
  [1380] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(243), 1,
      anon_sym_DQUOTE,
    STATE(173), 2,
      sym__literal,
      sym_string,
    ACTIONS(241), 3,
      sym_true,
      sym_false,
      sym_integer,
  [1396] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(245), 1,
      sym_identifier,
    ACTIONS(247), 1,
      anon_sym_RBRACK,
    ACTIONS(249), 1,
      anon_sym_DQUOTE,
    STATE(175), 1,
      sym_qualified_name,
    STATE(109), 2,
      sym__attribute_name,
      sym_string,
  [1416] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(245), 1,
      sym_identifier,
    ACTIONS(249), 1,
      anon_sym_DQUOTE,
    ACTIONS(251), 1,
      anon_sym_RBRACK,
    STATE(175), 1,
      sym_qualified_name,
    STATE(109), 2,
      sym__attribute_name,
      sym_string,
  [1436] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(255), 1,
      anon_sym_COMMA,
    STATE(72), 1,
      aux_sym_action_name_list_repeat1,
    ACTIONS(253), 4,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_in,
      anon_sym_appliesTo,
  [1452] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(258), 6,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_EQ,
      anon_sym_SEMI,
      anon_sym_COMMA,
      anon_sym_tags,
  [1464] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(260), 6,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_EQ,
      anon_sym_SEMI,
      anon_sym_COMMA,
      anon_sym_tags,
  [1476] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(44), 1,
      anon_sym_LBRACE,
    ACTIONS(77), 1,
      anon_sym_tags,
    ACTIONS(262), 1,
      anon_sym_EQ,
    ACTIONS(264), 1,
      anon_sym_SEMI,
    STATE(149), 1,
      sym_record_type,
    STATE(211), 1,
      sym_entity_tags,
  [1498] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(44), 1,
      anon_sym_LBRACE,
    ACTIONS(71), 1,
      anon_sym_EQ,
    ACTIONS(73), 1,
      anon_sym_SEMI,
    ACTIONS(77), 1,
      anon_sym_tags,
    STATE(140), 1,
      sym_record_type,
    STATE(239), 1,
      sym_entity_tags,
  [1520] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(268), 1,
      anon_sym_COMMA,
    STATE(72), 1,
      aux_sym_action_name_list_repeat1,
    ACTIONS(266), 4,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_in,
      anon_sym_appliesTo,
  [1536] = 6,
    ACTIONS(91), 1,
      anon_sym_DQUOTE2,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(270), 1,
      sym_string_content,
    ACTIONS(272), 1,
      sym_escape_sequence,
    STATE(79), 1,
      aux_sym_string_repeat1,
    ACTIONS(87), 2,
      anon_sym_COLON,
      anon_sym_QMARK,
  [1556] = 6,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(101), 1,
      anon_sym_DQUOTE2,
    ACTIONS(274), 1,
      sym_string_content,
    ACTIONS(276), 1,
      sym_escape_sequence,
    STATE(80), 1,
      aux_sym_string_repeat1,
    ACTIONS(97), 2,
      anon_sym_COLON,
      anon_sym_QMARK,
  [1576] = 6,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(110), 1,
      anon_sym_DQUOTE2,
    ACTIONS(278), 1,
      sym_string_content,
    ACTIONS(281), 1,
      sym_escape_sequence,
    STATE(80), 1,
      aux_sym_string_repeat1,
    ACTIONS(105), 2,
      anon_sym_COLON,
      anon_sym_QMARK,
  [1596] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(284), 6,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_EQ,
      anon_sym_SEMI,
      anon_sym_COMMA,
      anon_sym_tags,
  [1608] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(268), 1,
      anon_sym_COMMA,
    STATE(77), 1,
      aux_sym_action_name_list_repeat1,
    ACTIONS(286), 4,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_in,
      anon_sym_appliesTo,
  [1624] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(288), 6,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_EQ,
      anon_sym_SEMI,
      anon_sym_COMMA,
      anon_sym_tags,
  [1636] = 6,
    ACTIONS(91), 1,
      anon_sym_DQUOTE2,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(290), 1,
      sym_string_content,
    ACTIONS(292), 1,
      sym_escape_sequence,
    STATE(85), 1,
      aux_sym_string_repeat1,
    ACTIONS(87), 2,
      anon_sym_COMMA,
      anon_sym_RBRACK,
  [1656] = 6,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(101), 1,
      anon_sym_DQUOTE2,
    ACTIONS(294), 1,
      sym_string_content,
    ACTIONS(296), 1,
      sym_escape_sequence,
    STATE(86), 1,
      aux_sym_string_repeat1,
    ACTIONS(97), 2,
      anon_sym_COMMA,
      anon_sym_RBRACK,
  [1676] = 6,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(110), 1,
      anon_sym_DQUOTE2,
    ACTIONS(298), 1,
      sym_string_content,
    ACTIONS(301), 1,
      sym_escape_sequence,
    STATE(86), 1,
      aux_sym_string_repeat1,
    ACTIONS(105), 2,
      anon_sym_COMMA,
      anon_sym_RBRACK,
  [1696] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(304), 1,
      sym_identifier,
    ACTIONS(306), 1,
      anon_sym_RBRACE,
    ACTIONS(308), 1,
      anon_sym_COMMA,
    ACTIONS(310), 1,
      anon_sym_DQUOTE,
    STATE(154), 1,
      sym_attribute_entry,
    STATE(212), 1,
      sym_string,
  [1718] = 6,
    ACTIONS(91), 1,
      anon_sym_DQUOTE2,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(312), 1,
      sym_string_content,
    ACTIONS(314), 1,
      sym_escape_sequence,
    STATE(89), 1,
      aux_sym_string_repeat1,
    ACTIONS(87), 2,
      anon_sym_RBRACE,
      anon_sym_COMMA,
  [1738] = 6,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(101), 1,
      anon_sym_DQUOTE2,
    ACTIONS(316), 1,
      sym_string_content,
    ACTIONS(318), 1,
      sym_escape_sequence,
    STATE(90), 1,
      aux_sym_string_repeat1,
    ACTIONS(97), 2,
      anon_sym_RBRACE,
      anon_sym_COMMA,
  [1758] = 6,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(110), 1,
      anon_sym_DQUOTE2,
    ACTIONS(320), 1,
      sym_string_content,
    ACTIONS(323), 1,
      sym_escape_sequence,
    STATE(90), 1,
      aux_sym_string_repeat1,
    ACTIONS(105), 2,
      anon_sym_RBRACE,
      anon_sym_COMMA,
  [1778] = 6,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(97), 1,
      anon_sym_COLON,
    ACTIONS(101), 1,
      anon_sym_DQUOTE2,
    ACTIONS(326), 1,
      sym_string_content,
    ACTIONS(328), 1,
      sym_escape_sequence,
    STATE(112), 1,
      aux_sym_string_repeat1,
  [1797] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(163), 1,
      anon_sym_attributes,
    ACTIONS(167), 1,
      anon_sym_appliesTo,
    ACTIONS(330), 1,
      anon_sym_SEMI,
    STATE(126), 1,
      sym_applies_to,
    STATE(230), 1,
      sym_action_attributes,
  [1816] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(163), 1,
      anon_sym_attributes,
    ACTIONS(167), 1,
      anon_sym_appliesTo,
    ACTIONS(169), 1,
      anon_sym_SEMI,
    STATE(159), 1,
      sym_applies_to,
    STATE(195), 1,
      sym_action_attributes,
  [1835] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(332), 5,
      anon_sym_RBRACE,
      anon_sym_SEMI,
      anon_sym_COMMA,
      anon_sym_tags,
      anon_sym_GT,
  [1846] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(334), 5,
      anon_sym_RBRACE,
      anon_sym_SEMI,
      anon_sym_COMMA,
      anon_sym_tags,
      anon_sym_GT,
  [1857] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(304), 1,
      sym_identifier,
    ACTIONS(310), 1,
      anon_sym_DQUOTE,
    ACTIONS(336), 1,
      anon_sym_RBRACE,
    STATE(174), 1,
      sym_attribute_entry,
    STATE(212), 1,
      sym_string,
  [1876] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(338), 5,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_COMMA,
      anon_sym_RBRACK,
      anon_sym_appliesTo,
  [1887] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(340), 5,
      anon_sym_RBRACE,
      anon_sym_SEMI,
      anon_sym_COMMA,
      anon_sym_tags,
      anon_sym_GT,
  [1898] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(342), 5,
      anon_sym_RBRACE,
      anon_sym_SEMI,
      anon_sym_COMMA,
      anon_sym_tags,
      anon_sym_GT,
  [1909] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(344), 1,
      sym_identifier,
    ACTIONS(346), 1,
      anon_sym_DQUOTE,
    STATE(40), 1,
      sym_action_name_list,
    STATE(82), 2,
      sym__attribute_name,
      sym_string,
  [1926] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(304), 1,
      sym_identifier,
    ACTIONS(310), 1,
      anon_sym_DQUOTE,
    ACTIONS(348), 1,
      anon_sym_RBRACE,
    STATE(174), 1,
      sym_attribute_entry,
    STATE(212), 1,
      sym_string,
  [1945] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(350), 5,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_COMMA,
      anon_sym_RBRACK,
      anon_sym_appliesTo,
  [1956] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(245), 1,
      sym_identifier,
    ACTIONS(249), 1,
      anon_sym_DQUOTE,
    STATE(175), 1,
      sym_qualified_name,
    STATE(109), 2,
      sym__attribute_name,
      sym_string,
  [1973] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(245), 1,
      sym_identifier,
    ACTIONS(249), 1,
      anon_sym_DQUOTE,
    STATE(155), 1,
      sym_qualified_name,
    STATE(109), 2,
      sym__attribute_name,
      sym_string,
  [1990] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(354), 1,
      anon_sym_COLON_COLON,
    STATE(192), 1,
      aux_sym_qualified_name_repeat1,
    ACTIONS(352), 3,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_appliesTo,
  [2005] = 6,
    ACTIONS(87), 1,
      anon_sym_RPAREN,
    ACTIONS(91), 1,
      anon_sym_DQUOTE2,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(356), 1,
      sym_string_content,
    ACTIONS(358), 1,
      sym_escape_sequence,
    STATE(107), 1,
      aux_sym_string_repeat1,
  [2024] = 6,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(97), 1,
      anon_sym_RPAREN,
    ACTIONS(101), 1,
      anon_sym_DQUOTE2,
    ACTIONS(360), 1,
      sym_string_content,
    ACTIONS(362), 1,
      sym_escape_sequence,
    STATE(108), 1,
      aux_sym_string_repeat1,
  [2043] = 6,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(105), 1,
      anon_sym_RPAREN,
    ACTIONS(110), 1,
      anon_sym_DQUOTE2,
    ACTIONS(364), 1,
      sym_string_content,
    ACTIONS(367), 1,
      sym_escape_sequence,
    STATE(108), 1,
      aux_sym_string_repeat1,
  [2062] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(370), 5,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_COMMA,
      anon_sym_RBRACK,
      anon_sym_appliesTo,
  [2073] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(344), 1,
      sym_identifier,
    ACTIONS(346), 1,
      anon_sym_DQUOTE,
    STATE(41), 1,
      sym_action_name_list,
    STATE(82), 2,
      sym__attribute_name,
      sym_string,
  [2090] = 6,
    ACTIONS(87), 1,
      anon_sym_COLON,
    ACTIONS(91), 1,
      anon_sym_DQUOTE2,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(372), 1,
      sym_string_content,
    ACTIONS(374), 1,
      sym_escape_sequence,
    STATE(91), 1,
      aux_sym_string_repeat1,
  [2109] = 6,
    ACTIONS(95), 1,
      sym_comment,
    ACTIONS(105), 1,
      anon_sym_COLON,
    ACTIONS(110), 1,
      anon_sym_DQUOTE2,
    ACTIONS(376), 1,
      sym_string_content,
    ACTIONS(379), 1,
      sym_escape_sequence,
    STATE(112), 1,
      aux_sym_string_repeat1,
  [2128] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(253), 5,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_COMMA,
      anon_sym_in,
      anon_sym_appliesTo,
  [2139] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(382), 4,
      anon_sym_RBRACE,
      anon_sym_SEMI,
      anon_sym_COMMA,
      anon_sym_GT,
  [2149] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(346), 1,
      anon_sym_DQUOTE,
    ACTIONS(384), 1,
      sym_identifier,
    STATE(113), 2,
      sym__attribute_name,
      sym_string,
  [2163] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(386), 1,
      sym_identifier,
    ACTIONS(388), 1,
      anon_sym_LBRACK,
    STATE(81), 1,
      sym_name,
    STATE(176), 1,
      sym_type_list,
  [2179] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(386), 1,
      sym_identifier,
    ACTIONS(390), 1,
      anon_sym_COMMA,
    ACTIONS(392), 1,
      anon_sym_RBRACK,
    STATE(143), 1,
      sym_name,
  [2195] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(394), 1,
      anon_sym_COLON_COLON,
    STATE(164), 1,
      aux_sym_qualified_name_repeat1,
    ACTIONS(352), 2,
      anon_sym_COMMA,
      anon_sym_RBRACK,
  [2209] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(396), 4,
      anon_sym_LBRACE,
      anon_sym_EQ,
      anon_sym_SEMI,
      anon_sym_tags,
  [2219] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(386), 1,
      sym_identifier,
    ACTIONS(388), 1,
      anon_sym_LBRACK,
    STATE(81), 1,
      sym_name,
    STATE(177), 1,
      sym_type_list,
  [2235] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(398), 4,
      anon_sym_RBRACE,
      anon_sym_SEMI,
      anon_sym_COMMA,
      anon_sym_GT,
  [2245] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(44), 1,
      anon_sym_LBRACE,
    ACTIONS(386), 1,
      sym_identifier,
    STATE(178), 2,
      sym_record_type,
      sym_name,
  [2259] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(304), 1,
      sym_identifier,
    ACTIONS(310), 1,
      anon_sym_DQUOTE,
    STATE(174), 1,
      sym_attribute_entry,
    STATE(212), 1,
      sym_string,
  [2275] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(386), 1,
      sym_identifier,
    ACTIONS(388), 1,
      anon_sym_LBRACK,
    STATE(81), 1,
      sym_name,
    STATE(119), 1,
      sym_type_list,
  [2291] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(151), 1,
      anon_sym_RBRACE,
    ACTIONS(400), 1,
      anon_sym_COMMA,
    STATE(151), 1,
      aux_sym_applies_to_repeat1,
  [2304] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(163), 1,
      anon_sym_attributes,
    ACTIONS(402), 1,
      anon_sym_SEMI,
    STATE(197), 1,
      sym_action_attributes,
  [2317] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(404), 1,
      anon_sym_RBRACE,
    ACTIONS(406), 1,
      anon_sym_COMMA,
    STATE(127), 1,
      aux_sym_record_type_repeat1,
  [2330] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(386), 1,
      sym_identifier,
    ACTIONS(409), 1,
      anon_sym_RBRACK,
    STATE(169), 1,
      sym_name,
  [2343] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(409), 1,
      anon_sym_RBRACK,
    ACTIONS(411), 1,
      anon_sym_COMMA,
    STATE(142), 1,
      aux_sym_type_list_repeat1,
  [2356] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(249), 1,
      anon_sym_DQUOTE,
    ACTIONS(413), 1,
      anon_sym_RBRACK,
    STATE(171), 1,
      sym_string,
  [2369] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(413), 1,
      anon_sym_RBRACK,
    ACTIONS(415), 1,
      anon_sym_COMMA,
    STATE(145), 1,
      aux_sym_enum_type_repeat1,
  [2382] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(336), 1,
      anon_sym_RBRACE,
    ACTIONS(417), 1,
      anon_sym_COMMA,
    STATE(147), 1,
      aux_sym_action_attributes_repeat1,
  [2395] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(163), 1,
      anon_sym_attributes,
    ACTIONS(169), 1,
      anon_sym_SEMI,
    STATE(195), 1,
      sym_action_attributes,
  [2408] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(419), 3,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_appliesTo,
  [2417] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(251), 1,
      anon_sym_RBRACK,
    ACTIONS(421), 1,
      anon_sym_COMMA,
    STATE(150), 1,
      aux_sym_qualified_name_list_repeat1,
  [2430] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(115), 1,
      anon_sym_RBRACE,
    ACTIONS(423), 1,
      anon_sym_COMMA,
    STATE(127), 1,
      aux_sym_record_type_repeat1,
  [2443] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(215), 1,
      anon_sym_DQUOTE,
    ACTIONS(425), 1,
      sym_identifier,
    STATE(102), 1,
      sym_string,
  [2456] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(427), 1,
      anon_sym_RBRACE,
    ACTIONS(429), 1,
      anon_sym_COMMA,
    STATE(136), 1,
      aux_sym_record_type_repeat1,
  [2469] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(77), 1,
      anon_sym_tags,
    ACTIONS(431), 1,
      anon_sym_SEMI,
    STATE(201), 1,
      sym_entity_tags,
  [2482] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(77), 1,
      anon_sym_tags,
    ACTIONS(264), 1,
      anon_sym_SEMI,
    STATE(211), 1,
      sym_entity_tags,
  [2495] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(249), 1,
      anon_sym_DQUOTE,
    ACTIONS(425), 1,
      sym_identifier,
    STATE(102), 1,
      sym_string,
  [2508] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(433), 1,
      anon_sym_COMMA,
    ACTIONS(436), 1,
      anon_sym_RBRACK,
    STATE(142), 1,
      aux_sym_type_list_repeat1,
  [2521] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(438), 1,
      anon_sym_COMMA,
    ACTIONS(440), 1,
      anon_sym_RBRACK,
    STATE(129), 1,
      aux_sym_type_list_repeat1,
  [2534] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(249), 1,
      anon_sym_DQUOTE,
    ACTIONS(442), 1,
      anon_sym_RBRACK,
    STATE(171), 1,
      sym_string,
  [2547] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(444), 1,
      anon_sym_COMMA,
    ACTIONS(447), 1,
      anon_sym_RBRACK,
    STATE(145), 1,
      aux_sym_enum_type_repeat1,
  [2560] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(449), 1,
      anon_sym_COMMA,
    ACTIONS(451), 1,
      anon_sym_RBRACK,
    STATE(131), 1,
      aux_sym_enum_type_repeat1,
  [2573] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(453), 1,
      anon_sym_RBRACE,
    ACTIONS(455), 1,
      anon_sym_COMMA,
    STATE(147), 1,
      aux_sym_action_attributes_repeat1,
  [2586] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(458), 3,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_appliesTo,
  [2595] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(77), 1,
      anon_sym_tags,
    ACTIONS(460), 1,
      anon_sym_SEMI,
    STATE(218), 1,
      sym_entity_tags,
  [2608] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(462), 1,
      anon_sym_COMMA,
    ACTIONS(465), 1,
      anon_sym_RBRACK,
    STATE(150), 1,
      aux_sym_qualified_name_list_repeat1,
  [2621] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(467), 1,
      anon_sym_RBRACE,
    ACTIONS(469), 1,
      anon_sym_COMMA,
    STATE(151), 1,
      aux_sym_applies_to_repeat1,
  [2634] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(472), 3,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_appliesTo,
  [2643] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(73), 1,
      anon_sym_SEMI,
    ACTIONS(77), 1,
      anon_sym_tags,
    STATE(239), 1,
      sym_entity_tags,
  [2656] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(474), 1,
      anon_sym_RBRACE,
    ACTIONS(476), 1,
      anon_sym_COMMA,
    STATE(132), 1,
      aux_sym_action_attributes_repeat1,
  [2669] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(478), 1,
      anon_sym_COMMA,
    ACTIONS(480), 1,
      anon_sym_RBRACK,
    STATE(135), 1,
      aux_sym_qualified_name_list_repeat1,
  [2682] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(482), 3,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_appliesTo,
  [2691] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(484), 3,
      anon_sym_SEMI,
      anon_sym_attributes,
      anon_sym_appliesTo,
  [2700] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(215), 1,
      anon_sym_DQUOTE,
    ACTIONS(425), 1,
      sym_identifier,
    STATE(97), 1,
      sym_string,
  [2713] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(163), 1,
      anon_sym_attributes,
    ACTIONS(330), 1,
      anon_sym_SEMI,
    STATE(230), 1,
      sym_action_attributes,
  [2726] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(486), 1,
      anon_sym_RBRACE,
    ACTIONS(488), 1,
      anon_sym_COMMA,
    STATE(125), 1,
      aux_sym_applies_to_repeat1,
  [2739] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(249), 1,
      anon_sym_DQUOTE,
    ACTIONS(425), 1,
      sym_identifier,
    STATE(97), 1,
      sym_string,
  [2752] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(386), 1,
      sym_identifier,
    ACTIONS(490), 1,
      anon_sym_RBRACK,
    STATE(169), 1,
      sym_name,
  [2765] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(492), 1,
      sym_identifier,
    STATE(20), 1,
      sym_identifier_list,
  [2775] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(494), 1,
      anon_sym_COLON_COLON,
    STATE(18), 1,
      aux_sym_qualified_name_repeat1,
  [2785] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(492), 1,
      sym_identifier,
    STATE(22), 1,
      sym_identifier_list,
  [2795] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(496), 1,
      anon_sym_COLON,
    ACTIONS(498), 1,
      anon_sym_QMARK,
  [2805] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(500), 2,
      anon_sym_RBRACE,
      anon_sym_COMMA,
  [2813] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(44), 1,
      anon_sym_LBRACE,
    STATE(140), 1,
      sym_record_type,
  [2823] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(436), 2,
      anon_sym_COMMA,
      anon_sym_RBRACK,
  [2831] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(44), 1,
      anon_sym_LBRACE,
    STATE(139), 1,
      sym_record_type,
  [2841] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(447), 2,
      anon_sym_COMMA,
      anon_sym_RBRACK,
  [2849] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(502), 1,
      anon_sym_DQUOTE,
    STATE(227), 1,
      sym_string,
  [2859] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(504), 2,
      anon_sym_RBRACE,
      anon_sym_COMMA,
  [2867] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(453), 2,
      anon_sym_RBRACE,
      anon_sym_COMMA,
  [2875] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(465), 2,
      anon_sym_COMMA,
      anon_sym_RBRACK,
  [2883] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(506), 2,
      anon_sym_RBRACE,
      anon_sym_COMMA,
  [2891] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(508), 2,
      anon_sym_RBRACE,
      anon_sym_COMMA,
  [2899] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(510), 2,
      anon_sym_RBRACE,
      anon_sym_COMMA,
  [2907] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(512), 2,
      anon_sym_SEMI,
      anon_sym_attributes,
  [2915] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(467), 2,
      anon_sym_RBRACE,
      anon_sym_COMMA,
  [2923] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(514), 2,
      anon_sym_RBRACE,
      anon_sym_COMMA,
  [2931] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(249), 1,
      anon_sym_DQUOTE,
    STATE(146), 1,
      sym_string,
  [2941] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(386), 1,
      sym_identifier,
    STATE(169), 1,
      sym_name,
  [2951] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(44), 1,
      anon_sym_LBRACE,
    STATE(149), 1,
      sym_record_type,
  [2961] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(249), 1,
      anon_sym_DQUOTE,
    STATE(171), 1,
      sym_string,
  [2971] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(404), 2,
      anon_sym_RBRACE,
      anon_sym_COMMA,
  [2979] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(516), 2,
      anon_sym_SEMI,
      anon_sym_attributes,
  [2987] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(386), 1,
      sym_identifier,
    STATE(237), 1,
      sym_name,
  [2997] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(518), 2,
      anon_sym_RBRACE,
      anon_sym_COMMA,
  [3005] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(386), 1,
      sym_identifier,
    STATE(214), 1,
      sym_name,
  [3015] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(520), 2,
      anon_sym_SEMI,
      anon_sym_attributes,
  [3023] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(522), 1,
      anon_sym_COLON_COLON,
    STATE(18), 1,
      aux_sym_qualified_name_repeat1,
  [3033] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(524), 2,
      anon_sym_SEMI,
      anon_sym_attributes,
  [3041] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(526), 1,
      anon_sym_COLON,
    ACTIONS(528), 1,
      anon_sym_QMARK,
  [3051] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(330), 1,
      anon_sym_SEMI,
  [3058] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(530), 1,
      anon_sym_SEMI,
  [3065] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(532), 1,
      anon_sym_SEMI,
  [3072] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(534), 1,
      anon_sym_COLON,
  [3079] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(536), 1,
      anon_sym_LT,
  [3086] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(538), 1,
      anon_sym_LBRACE,
  [3093] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(540), 1,
      anon_sym_SEMI,
  [3100] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(542), 1,
      anon_sym_SEMI,
  [3107] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(544), 1,
      sym_identifier,
  [3114] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(546), 1,
      anon_sym_SEMI,
  [3121] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(548), 1,
      anon_sym_LBRACK,
  [3128] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(425), 1,
      sym_identifier,
  [3135] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(550), 1,
      anon_sym_SEMI,
  [3142] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(552), 1,
      anon_sym_SEMI,
  [3149] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(554), 1,
      anon_sym_SEMI,
  [3156] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(474), 1,
      anon_sym_RBRACE,
  [3163] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(460), 1,
      anon_sym_SEMI,
  [3170] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(556), 1,
      anon_sym_COLON,
  [3177] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(558), 1,
      anon_sym_SEMI,
  [3184] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(560), 1,
      anon_sym_LBRACE,
  [3191] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(427), 1,
      anon_sym_RBRACE,
  [3198] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(73), 1,
      anon_sym_SEMI,
  [3205] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(562), 1,
      sym_identifier,
  [3212] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(431), 1,
      anon_sym_SEMI,
  [3219] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(564), 1,
      ts_builtin_sym_end,
  [3226] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(566), 1,
      anon_sym_SEMI,
  [3233] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(568), 1,
      anon_sym_EQ,
  [3240] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(570), 1,
      anon_sym_EQ,
  [3247] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(169), 1,
      anon_sym_SEMI,
  [3254] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(572), 1,
      sym_identifier,
  [3261] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(574), 1,
      anon_sym_SEMI,
  [3268] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(486), 1,
      anon_sym_RBRACE,
  [3275] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(576), 1,
      anon_sym_RPAREN,
  [3282] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(578), 1,
      anon_sym_COLON,
  [3289] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(580), 1,
      anon_sym_COLON,
  [3296] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(402), 1,
      anon_sym_SEMI,
  [3303] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(582), 1,
      anon_sym_COLON,
  [3310] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(526), 1,
      anon_sym_COLON,
  [3317] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(440), 1,
      anon_sym_RBRACK,
  [3324] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(584), 1,
      anon_sym_LBRACE,
  [3331] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(586), 1,
      sym_identifier,
  [3338] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(588), 1,
      anon_sym_SEMI,
  [3345] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(590), 1,
      anon_sym_LBRACE,
  [3352] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(592), 1,
      anon_sym_GT,
  [3359] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(264), 1,
      anon_sym_SEMI,
};

static const uint32_t ts_small_parse_table_map[] = {
  [SMALL_STATE(2)] = 0,
  [SMALL_STATE(3)] = 35,
  [SMALL_STATE(4)] = 69,
  [SMALL_STATE(5)] = 103,
  [SMALL_STATE(6)] = 137,
  [SMALL_STATE(7)] = 171,
  [SMALL_STATE(8)] = 205,
  [SMALL_STATE(9)] = 230,
  [SMALL_STATE(10)] = 255,
  [SMALL_STATE(11)] = 280,
  [SMALL_STATE(12)] = 305,
  [SMALL_STATE(13)] = 330,
  [SMALL_STATE(14)] = 355,
  [SMALL_STATE(15)] = 380,
  [SMALL_STATE(16)] = 400,
  [SMALL_STATE(17)] = 430,
  [SMALL_STATE(18)] = 446,
  [SMALL_STATE(19)] = 466,
  [SMALL_STATE(20)] = 482,
  [SMALL_STATE(21)] = 516,
  [SMALL_STATE(22)] = 536,
  [SMALL_STATE(23)] = 570,
  [SMALL_STATE(24)] = 593,
  [SMALL_STATE(25)] = 616,
  [SMALL_STATE(26)] = 631,
  [SMALL_STATE(27)] = 654,
  [SMALL_STATE(28)] = 681,
  [SMALL_STATE(29)] = 706,
  [SMALL_STATE(30)] = 727,
  [SMALL_STATE(31)] = 754,
  [SMALL_STATE(32)] = 772,
  [SMALL_STATE(33)] = 790,
  [SMALL_STATE(34)] = 808,
  [SMALL_STATE(35)] = 830,
  [SMALL_STATE(36)] = 854,
  [SMALL_STATE(37)] = 872,
  [SMALL_STATE(38)] = 894,
  [SMALL_STATE(39)] = 907,
  [SMALL_STATE(40)] = 920,
  [SMALL_STATE(41)] = 945,
  [SMALL_STATE(42)] = 970,
  [SMALL_STATE(43)] = 983,
  [SMALL_STATE(44)] = 996,
  [SMALL_STATE(45)] = 1009,
  [SMALL_STATE(46)] = 1022,
  [SMALL_STATE(47)] = 1035,
  [SMALL_STATE(48)] = 1050,
  [SMALL_STATE(49)] = 1073,
  [SMALL_STATE(50)] = 1086,
  [SMALL_STATE(51)] = 1099,
  [SMALL_STATE(52)] = 1112,
  [SMALL_STATE(53)] = 1133,
  [SMALL_STATE(54)] = 1146,
  [SMALL_STATE(55)] = 1159,
  [SMALL_STATE(56)] = 1172,
  [SMALL_STATE(57)] = 1185,
  [SMALL_STATE(58)] = 1198,
  [SMALL_STATE(59)] = 1211,
  [SMALL_STATE(60)] = 1234,
  [SMALL_STATE(61)] = 1247,
  [SMALL_STATE(62)] = 1260,
  [SMALL_STATE(63)] = 1279,
  [SMALL_STATE(64)] = 1292,
  [SMALL_STATE(65)] = 1313,
  [SMALL_STATE(66)] = 1334,
  [SMALL_STATE(67)] = 1355,
  [SMALL_STATE(68)] = 1368,
  [SMALL_STATE(69)] = 1380,
  [SMALL_STATE(70)] = 1396,
  [SMALL_STATE(71)] = 1416,
  [SMALL_STATE(72)] = 1436,
  [SMALL_STATE(73)] = 1452,
  [SMALL_STATE(74)] = 1464,
  [SMALL_STATE(75)] = 1476,
  [SMALL_STATE(76)] = 1498,
  [SMALL_STATE(77)] = 1520,
  [SMALL_STATE(78)] = 1536,
  [SMALL_STATE(79)] = 1556,
  [SMALL_STATE(80)] = 1576,
  [SMALL_STATE(81)] = 1596,
  [SMALL_STATE(82)] = 1608,
  [SMALL_STATE(83)] = 1624,
  [SMALL_STATE(84)] = 1636,
  [SMALL_STATE(85)] = 1656,
  [SMALL_STATE(86)] = 1676,
  [SMALL_STATE(87)] = 1696,
  [SMALL_STATE(88)] = 1718,
  [SMALL_STATE(89)] = 1738,
  [SMALL_STATE(90)] = 1758,
  [SMALL_STATE(91)] = 1778,
  [SMALL_STATE(92)] = 1797,
  [SMALL_STATE(93)] = 1816,
  [SMALL_STATE(94)] = 1835,
  [SMALL_STATE(95)] = 1846,
  [SMALL_STATE(96)] = 1857,
  [SMALL_STATE(97)] = 1876,
  [SMALL_STATE(98)] = 1887,
  [SMALL_STATE(99)] = 1898,
  [SMALL_STATE(100)] = 1909,
  [SMALL_STATE(101)] = 1926,
  [SMALL_STATE(102)] = 1945,
  [SMALL_STATE(103)] = 1956,
  [SMALL_STATE(104)] = 1973,
  [SMALL_STATE(105)] = 1990,
  [SMALL_STATE(106)] = 2005,
  [SMALL_STATE(107)] = 2024,
  [SMALL_STATE(108)] = 2043,
  [SMALL_STATE(109)] = 2062,
  [SMALL_STATE(110)] = 2073,
  [SMALL_STATE(111)] = 2090,
  [SMALL_STATE(112)] = 2109,
  [SMALL_STATE(113)] = 2128,
  [SMALL_STATE(114)] = 2139,
  [SMALL_STATE(115)] = 2149,
  [SMALL_STATE(116)] = 2163,
  [SMALL_STATE(117)] = 2179,
  [SMALL_STATE(118)] = 2195,
  [SMALL_STATE(119)] = 2209,
  [SMALL_STATE(120)] = 2219,
  [SMALL_STATE(121)] = 2235,
  [SMALL_STATE(122)] = 2245,
  [SMALL_STATE(123)] = 2259,
  [SMALL_STATE(124)] = 2275,
  [SMALL_STATE(125)] = 2291,
  [SMALL_STATE(126)] = 2304,
  [SMALL_STATE(127)] = 2317,
  [SMALL_STATE(128)] = 2330,
  [SMALL_STATE(129)] = 2343,
  [SMALL_STATE(130)] = 2356,
  [SMALL_STATE(131)] = 2369,
  [SMALL_STATE(132)] = 2382,
  [SMALL_STATE(133)] = 2395,
  [SMALL_STATE(134)] = 2408,
  [SMALL_STATE(135)] = 2417,
  [SMALL_STATE(136)] = 2430,
  [SMALL_STATE(137)] = 2443,
  [SMALL_STATE(138)] = 2456,
  [SMALL_STATE(139)] = 2469,
  [SMALL_STATE(140)] = 2482,
  [SMALL_STATE(141)] = 2495,
  [SMALL_STATE(142)] = 2508,
  [SMALL_STATE(143)] = 2521,
  [SMALL_STATE(144)] = 2534,
  [SMALL_STATE(145)] = 2547,
  [SMALL_STATE(146)] = 2560,
  [SMALL_STATE(147)] = 2573,
  [SMALL_STATE(148)] = 2586,
  [SMALL_STATE(149)] = 2595,
  [SMALL_STATE(150)] = 2608,
  [SMALL_STATE(151)] = 2621,
  [SMALL_STATE(152)] = 2634,
  [SMALL_STATE(153)] = 2643,
  [SMALL_STATE(154)] = 2656,
  [SMALL_STATE(155)] = 2669,
  [SMALL_STATE(156)] = 2682,
  [SMALL_STATE(157)] = 2691,
  [SMALL_STATE(158)] = 2700,
  [SMALL_STATE(159)] = 2713,
  [SMALL_STATE(160)] = 2726,
  [SMALL_STATE(161)] = 2739,
  [SMALL_STATE(162)] = 2752,
  [SMALL_STATE(163)] = 2765,
  [SMALL_STATE(164)] = 2775,
  [SMALL_STATE(165)] = 2785,
  [SMALL_STATE(166)] = 2795,
  [SMALL_STATE(167)] = 2805,
  [SMALL_STATE(168)] = 2813,
  [SMALL_STATE(169)] = 2823,
  [SMALL_STATE(170)] = 2831,
  [SMALL_STATE(171)] = 2841,
  [SMALL_STATE(172)] = 2849,
  [SMALL_STATE(173)] = 2859,
  [SMALL_STATE(174)] = 2867,
  [SMALL_STATE(175)] = 2875,
  [SMALL_STATE(176)] = 2883,
  [SMALL_STATE(177)] = 2891,
  [SMALL_STATE(178)] = 2899,
  [SMALL_STATE(179)] = 2907,
  [SMALL_STATE(180)] = 2915,
  [SMALL_STATE(181)] = 2923,
  [SMALL_STATE(182)] = 2931,
  [SMALL_STATE(183)] = 2941,
  [SMALL_STATE(184)] = 2951,
  [SMALL_STATE(185)] = 2961,
  [SMALL_STATE(186)] = 2971,
  [SMALL_STATE(187)] = 2979,
  [SMALL_STATE(188)] = 2987,
  [SMALL_STATE(189)] = 2997,
  [SMALL_STATE(190)] = 3005,
  [SMALL_STATE(191)] = 3015,
  [SMALL_STATE(192)] = 3023,
  [SMALL_STATE(193)] = 3033,
  [SMALL_STATE(194)] = 3041,
  [SMALL_STATE(195)] = 3051,
  [SMALL_STATE(196)] = 3058,
  [SMALL_STATE(197)] = 3065,
  [SMALL_STATE(198)] = 3072,
  [SMALL_STATE(199)] = 3079,
  [SMALL_STATE(200)] = 3086,
  [SMALL_STATE(201)] = 3093,
  [SMALL_STATE(202)] = 3100,
  [SMALL_STATE(203)] = 3107,
  [SMALL_STATE(204)] = 3114,
  [SMALL_STATE(205)] = 3121,
  [SMALL_STATE(206)] = 3128,
  [SMALL_STATE(207)] = 3135,
  [SMALL_STATE(208)] = 3142,
  [SMALL_STATE(209)] = 3149,
  [SMALL_STATE(210)] = 3156,
  [SMALL_STATE(211)] = 3163,
  [SMALL_STATE(212)] = 3170,
  [SMALL_STATE(213)] = 3177,
  [SMALL_STATE(214)] = 3184,
  [SMALL_STATE(215)] = 3191,
  [SMALL_STATE(216)] = 3198,
  [SMALL_STATE(217)] = 3205,
  [SMALL_STATE(218)] = 3212,
  [SMALL_STATE(219)] = 3219,
  [SMALL_STATE(220)] = 3226,
  [SMALL_STATE(221)] = 3233,
  [SMALL_STATE(222)] = 3240,
  [SMALL_STATE(223)] = 3247,
  [SMALL_STATE(224)] = 3254,
  [SMALL_STATE(225)] = 3261,
  [SMALL_STATE(226)] = 3268,
  [SMALL_STATE(227)] = 3275,
  [SMALL_STATE(228)] = 3282,
  [SMALL_STATE(229)] = 3289,
  [SMALL_STATE(230)] = 3296,
  [SMALL_STATE(231)] = 3303,
  [SMALL_STATE(232)] = 3310,
  [SMALL_STATE(233)] = 3317,
  [SMALL_STATE(234)] = 3324,
  [SMALL_STATE(235)] = 3331,
  [SMALL_STATE(236)] = 3338,
  [SMALL_STATE(237)] = 3345,
  [SMALL_STATE(238)] = 3352,
  [SMALL_STATE(239)] = 3359,
};

static const TSParseActionEntry ts_parse_actions[] = {
  [0] = {.entry = {.count = 0, .reusable = false}},
  [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(),
  [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT_EXTRA(),
  [5] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_schema, 0, 0, 0),
  [7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(190),
  [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(165),
  [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100),
  [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(235),
  [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(203),
  [17] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_schema_repeat1, 2, 0, 0),
  [19] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_schema_repeat1, 2, 0, 0), SHIFT_REPEAT(190),
  [22] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_schema_repeat1, 2, 0, 0), SHIFT_REPEAT(165),
  [25] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_schema_repeat1, 2, 0, 0), SHIFT_REPEAT(100),
  [28] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_schema_repeat1, 2, 0, 0), SHIFT_REPEAT(235),
  [31] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_schema_repeat1, 2, 0, 0), SHIFT_REPEAT(203),
  [34] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44),
  [36] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42),
  [38] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_schema, 1, 0, 0),
  [40] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67),
  [42] = {.entry = {.count = 1, .reusable = false}}, SHIFT(15),
  [44] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16),
  [46] = {.entry = {.count = 1, .reusable = false}}, SHIFT(121),
  [48] = {.entry = {.count = 1, .reusable = false}}, SHIFT(199),
  [50] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_name, 1, 0, 0),
  [52] = {.entry = {.count = 1, .reusable = true}}, SHIFT(206),
  [54] = {.entry = {.count = 1, .reusable = true}}, SHIFT(166),
  [56] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98),
  [58] = {.entry = {.count = 1, .reusable = true}}, SHIFT(215),
  [60] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78),
  [62] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string, 2, 0, 0),
  [64] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_qualified_name_repeat1, 2, 0, 0),
  [66] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_qualified_name_repeat1, 2, 0, 0), SHIFT_REPEAT(206),
  [69] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string, 3, 0, 0),
  [71] = {.entry = {.count = 1, .reusable = true}}, SHIFT(184),
  [73] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56),
  [75] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124),
  [77] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10),
  [79] = {.entry = {.count = 1, .reusable = true}}, SHIFT(205),
  [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_name, 2, 0, 0),
  [83] = {.entry = {.count = 1, .reusable = true}}, SHIFT(168),
  [85] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54),
  [87] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_string, 1, 0, 0),
  [89] = {.entry = {.count = 1, .reusable = false}}, SHIFT(24),
  [91] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17),
  [93] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24),
  [95] = {.entry = {.count = 1, .reusable = false}}, SHIFT_EXTRA(),
  [97] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_string, 2, 0, 0),
  [99] = {.entry = {.count = 1, .reusable = false}}, SHIFT(26),
  [101] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19),
  [103] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26),
  [105] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0),
  [107] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0), SHIFT_REPEAT(26),
  [110] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0),
  [112] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0), SHIFT_REPEAT(26),
  [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(95),
  [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(193),
  [119] = {.entry = {.count = 1, .reusable = true}}, SHIFT(226),
  [121] = {.entry = {.count = 1, .reusable = true}}, SHIFT(228),
  [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(229),
  [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(231),
  [127] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_namespace_repeat1, 2, 0, 0),
  [129] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_namespace_repeat1, 2, 0, 0), SHIFT_REPEAT(203),
  [132] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_namespace_repeat1, 2, 0, 0),
  [134] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99),
  [136] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_identifier_list, 2, 0, 0),
  [138] = {.entry = {.count = 1, .reusable = true}}, SHIFT(217),
  [140] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_identifier_list_repeat1, 2, 0, 0),
  [142] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_identifier_list_repeat1, 2, 0, 0), SHIFT_REPEAT(217),
  [145] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_annotation, 2, 0, 0),
  [147] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_annotation, 2, 0, 0),
  [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(172),
  [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(179),
  [153] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_identifier_list, 1, 0, 0),
  [155] = {.entry = {.count = 1, .reusable = true}}, SHIFT(187),
  [157] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_enum_type, 7, 0, 0),
  [159] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_declaration, 4, 0, 0),
  [161] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50),
  [163] = {.entry = {.count = 1, .reusable = true}}, SHIFT(234),
  [165] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59),
  [167] = {.entry = {.count = 1, .reusable = true}}, SHIFT(200),
  [169] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39),
  [171] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_namespace, 5, 0, 0),
  [173] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_entity_declaration, 5, 0, 0),
  [175] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_namespace, 4, 0, 0),
  [177] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_declaration, 5, 0, 0),
  [179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_common_type_declaration, 5, 0, 0),
  [181] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_annotation, 5, 0, 0),
  [183] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_annotation, 5, 0, 0),
  [185] = {.entry = {.count = 1, .reusable = true}}, SHIFT(188),
  [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(163),
  [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110),
  [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(224),
  [193] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_declaration, 3, 0, 0),
  [195] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_entity_declaration, 6, 0, 0),
  [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(194),
  [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_declaration, 6, 0, 0),
  [201] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_entity_declaration, 3, 0, 0),
  [203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_common_type_declaration, 6, 0, 0),
  [205] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_entity_declaration, 4, 0, 0),
  [207] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_enum_type, 5, 0, 0),
  [209] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_entity_declaration, 7, 0, 0),
  [211] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105),
  [213] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104),
  [215] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64),
  [217] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_declaration, 7, 0, 0),
  [219] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_enum_type, 6, 0, 0),
  [221] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_entity_declaration, 8, 0, 0),
  [223] = {.entry = {.count = 1, .reusable = false}}, SHIFT(65),
  [225] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65),
  [227] = {.entry = {.count = 1, .reusable = false}}, SHIFT(66),
  [229] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66),
  [231] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0), SHIFT_REPEAT(66),
  [234] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0), SHIFT_REPEAT(66),
  [237] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_namespace, 6, 0, 0),
  [239] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_type_list, 3, 0, 0),
  [241] = {.entry = {.count = 1, .reusable = true}}, SHIFT(173),
  [243] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88),
  [245] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118),
  [247] = {.entry = {.count = 1, .reusable = true}}, SHIFT(152),
  [249] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84),
  [251] = {.entry = {.count = 1, .reusable = true}}, SHIFT(148),
  [253] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_action_name_list_repeat1, 2, 0, 0),
  [255] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_action_name_list_repeat1, 2, 0, 0), SHIFT_REPEAT(115),
  [258] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_type_list, 5, 0, 0),
  [260] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_type_list, 2, 0, 0),
  [262] = {.entry = {.count = 1, .reusable = true}}, SHIFT(170),
  [264] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43),
  [266] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_name_list, 2, 0, 0),
  [268] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115),
  [270] = {.entry = {.count = 1, .reusable = false}}, SHIFT(79),
  [272] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79),
  [274] = {.entry = {.count = 1, .reusable = false}}, SHIFT(80),
  [276] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80),
  [278] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0), SHIFT_REPEAT(80),
  [281] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0), SHIFT_REPEAT(80),
  [284] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_type_list, 1, 0, 0),
  [286] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_name_list, 1, 0, 0),
  [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_type_list, 4, 0, 0),
  [290] = {.entry = {.count = 1, .reusable = false}}, SHIFT(85),
  [292] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85),
  [294] = {.entry = {.count = 1, .reusable = false}}, SHIFT(86),
  [296] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86),
  [298] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0), SHIFT_REPEAT(86),
  [301] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0), SHIFT_REPEAT(86),
  [304] = {.entry = {.count = 1, .reusable = true}}, SHIFT(212),
  [306] = {.entry = {.count = 1, .reusable = true}}, SHIFT(225),
  [308] = {.entry = {.count = 1, .reusable = true}}, SHIFT(210),
  [310] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111),
  [312] = {.entry = {.count = 1, .reusable = false}}, SHIFT(89),
  [314] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89),
  [316] = {.entry = {.count = 1, .reusable = false}}, SHIFT(90),
  [318] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90),
  [320] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0), SHIFT_REPEAT(90),
  [323] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0), SHIFT_REPEAT(90),
  [326] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112),
  [328] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112),
  [330] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45),
  [332] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record_type, 3, 0, 0),
  [334] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record_type, 4, 0, 0),
  [336] = {.entry = {.count = 1, .reusable = true}}, SHIFT(208),
  [338] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_qualified_name, 3, 0, 0),
  [340] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record_type, 2, 0, 0),
  [342] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record_type, 5, 0, 0),
  [344] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82),
  [346] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23),
  [348] = {.entry = {.count = 1, .reusable = true}}, SHIFT(209),
  [350] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_qualified_name, 4, 0, 0),
  [352] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__attribute_name, 1, 0, 0),
  [354] = {.entry = {.count = 1, .reusable = true}}, SHIFT(158),
  [356] = {.entry = {.count = 1, .reusable = false}}, SHIFT(107),
  [358] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107),
  [360] = {.entry = {.count = 1, .reusable = false}}, SHIFT(108),
  [362] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108),
  [364] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0), SHIFT_REPEAT(108),
  [367] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0), SHIFT_REPEAT(108),
  [370] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_qualified_name, 1, 0, 0),
  [372] = {.entry = {.count = 1, .reusable = false}}, SHIFT(91),
  [374] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91),
  [376] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0), SHIFT_REPEAT(112),
  [379] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0), SHIFT_REPEAT(112),
  [382] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_set_type, 4, 0, 0),
  [384] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113),
  [386] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15),
  [388] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117),
  [390] = {.entry = {.count = 1, .reusable = true}}, SHIFT(233),
  [392] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74),
  [394] = {.entry = {.count = 1, .reusable = true}}, SHIFT(161),
  [396] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_entity_parents, 2, 0, 0),
  [398] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_primitive_type, 1, 0, 0),
  [400] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37),
  [402] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53),
  [404] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_record_type_repeat1, 2, 0, 0),
  [406] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_record_type_repeat1, 2, 0, 0), SHIFT_REPEAT(35),
  [409] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83),
  [411] = {.entry = {.count = 1, .reusable = true}}, SHIFT(162),
  [413] = {.entry = {.count = 1, .reusable = true}}, SHIFT(196),
  [415] = {.entry = {.count = 1, .reusable = true}}, SHIFT(144),
  [417] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101),
  [419] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_qualified_name_list, 3, 0, 0),
  [421] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70),
  [423] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30),
  [425] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25),
  [427] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94),
  [429] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27),
  [431] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58),
  [433] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_type_list_repeat1, 2, 0, 0), SHIFT_REPEAT(183),
  [436] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_type_list_repeat1, 2, 0, 0),
  [438] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128),
  [440] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68),
  [442] = {.entry = {.count = 1, .reusable = true}}, SHIFT(207),
  [444] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_enum_type_repeat1, 2, 0, 0), SHIFT_REPEAT(185),
  [447] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_enum_type_repeat1, 2, 0, 0),
  [449] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130),
  [451] = {.entry = {.count = 1, .reusable = true}}, SHIFT(204),
  [453] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_action_attributes_repeat1, 2, 0, 0),
  [455] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_action_attributes_repeat1, 2, 0, 0), SHIFT_REPEAT(123),
  [458] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_qualified_name_list, 4, 0, 0),
  [460] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51),
  [462] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_qualified_name_list_repeat1, 2, 0, 0), SHIFT_REPEAT(103),
  [465] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_qualified_name_list_repeat1, 2, 0, 0),
  [467] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_applies_to_repeat1, 2, 0, 0),
  [469] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_applies_to_repeat1, 2, 0, 0), SHIFT_REPEAT(62),
  [472] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_qualified_name_list, 5, 0, 0),
  [474] = {.entry = {.count = 1, .reusable = true}}, SHIFT(220),
  [476] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96),
  [478] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71),
  [480] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134),
  [482] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_qualified_name_list, 1, 0, 0),
  [484] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_parents, 2, 0, 0),
  [486] = {.entry = {.count = 1, .reusable = true}}, SHIFT(191),
  [488] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34),
  [490] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73),
  [492] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36),
  [494] = {.entry = {.count = 1, .reusable = true}}, SHIFT(141),
  [496] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11),
  [498] = {.entry = {.count = 1, .reusable = true}}, SHIFT(232),
  [500] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_attribute_declaration, 4, 0, 0),
  [502] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106),
  [504] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_attribute_entry, 3, 0, 0),
  [506] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_principal_types, 3, 0, 0),
  [508] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_resource_types, 3, 0, 0),
  [510] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_context_type, 3, 0, 0),
  [512] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_applies_to, 5, 0, 0),
  [514] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_attribute_declaration, 5, 0, 0),
  [516] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_applies_to, 6, 0, 0),
  [518] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_attribute_declaration, 3, 0, 0),
  [520] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_applies_to, 4, 0, 0),
  [522] = {.entry = {.count = 1, .reusable = true}}, SHIFT(137),
  [524] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_applies_to, 3, 0, 0),
  [526] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12),
  [528] = {.entry = {.count = 1, .reusable = true}}, SHIFT(198),
  [530] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61),
  [532] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60),
  [534] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14),
  [536] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8),
  [538] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28),
  [540] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63),
  [542] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_entity_tags, 2, 0, 0),
  [544] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33),
  [546] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57),
  [548] = {.entry = {.count = 1, .reusable = true}}, SHIFT(182),
  [550] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38),
  [552] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_attributes, 5, 0, 0),
  [554] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_attributes, 6, 0, 0),
  [556] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69),
  [558] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55),
  [560] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3),
  [562] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49),
  [564] = {.entry = {.count = 1, .reusable = true}},  ACCEPT_INPUT(),
  [566] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_attributes, 4, 0, 0),
  [568] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13),
  [570] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9),
  [572] = {.entry = {.count = 1, .reusable = true}}, SHIFT(221),
  [574] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_action_attributes, 3, 0, 0),
  [576] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47),
  [578] = {.entry = {.count = 1, .reusable = true}}, SHIFT(116),
  [580] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120),
  [582] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122),
  [584] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87),
  [586] = {.entry = {.count = 1, .reusable = true}}, SHIFT(222),
  [588] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46),
  [590] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5),
  [592] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114),
};

#ifdef __cplusplus
extern "C" {
#endif
#ifdef TREE_SITTER_HIDE_SYMBOLS
#define TS_PUBLIC
#elif defined(_WIN32)
#define TS_PUBLIC __declspec(dllexport)
#else
#define TS_PUBLIC __attribute__((visibility("default")))
#endif

TS_PUBLIC const TSLanguage *tree_sitter_cedarschema(void) {
  static const TSLanguage language = {
    .abi_version = LANGUAGE_VERSION,
    .symbol_count = SYMBOL_COUNT,
    .alias_count = ALIAS_COUNT,
    .token_count = TOKEN_COUNT,
    .external_token_count = EXTERNAL_TOKEN_COUNT,
    .state_count = STATE_COUNT,
    .large_state_count = LARGE_STATE_COUNT,
    .production_id_count = PRODUCTION_ID_COUNT,
    .supertype_count = SUPERTYPE_COUNT,
    .field_count = FIELD_COUNT,
    .max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH,
    .parse_table = &ts_parse_table[0][0],
    .small_parse_table = ts_small_parse_table,
    .small_parse_table_map = ts_small_parse_table_map,
    .parse_actions = ts_parse_actions,
    .symbol_names = ts_symbol_names,
    .symbol_metadata = ts_symbol_metadata,
    .public_symbol_map = ts_symbol_map,
    .alias_map = ts_non_terminal_alias_map,
    .alias_sequences = &ts_alias_sequences[0][0],
    .lex_modes = (const void*)ts_lex_modes,
    .lex_fn = ts_lex,
    .keyword_lex_fn = ts_lex_keywords,
    .keyword_capture_token = sym_identifier,
    .primary_state_ids = ts_primary_state_ids,
    .name = "cedarschema",
    .max_reserved_word_set_size = 0,
    .metadata = {
      .major_version = 0,
      .minor_version = 0,
      .patch_version = 0,
    },
  };
  return &language;
}
#ifdef __cplusplus
}
#endif
