diff --git a/grammar.js b/grammar.js index 551e7f9..4b71569 100644 --- a/grammar.js +++ b/grammar.js @@ -154,23 +154,18 @@ module.exports = grammar({ select_cases: ($) => seq( "{", optional(trailingCommaSeparated($.select_case)), - // default *must* be the last one, enforced at parse-time... - optional(seq(alias($.default_case, $.select_case), ",")), "}", ), select_case: ($) => seq( - field("pattern", $._string_literal), + field("pattern", choice( + $._string_literal, + alias("default", $.default), + )), ":", field("value", $._case_value) ), - default_case: ($) => seq( - field("pattern", alias("default", $.default)), - ":", - field("value", $._case_value), - ), - _case_value: ($) => choice( alias("unset", $.unset), $._expr, diff --git a/src/grammar.json b/src/grammar.json index b585ae1..ddd2141 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -628,32 +628,6 @@ } ] }, - { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "SYMBOL", - "name": "default_case" - }, - "named": true, - "value": "select_case" - }, - { - "type": "STRING", - "value": "," - } - ] - }, - { - "type": "BLANK" - } - ] - }, { "type": "STRING", "value": "}" @@ -667,38 +641,22 @@ "type": "FIELD", "name": "pattern", "content": { - "type": "SYMBOL", - "name": "_string_literal" - } - }, - { - "type": "STRING", - "value": ":" - }, - { - "type": "FIELD", - "name": "value", - "content": { - "type": "SYMBOL", - "name": "_case_value" - } - } - ] - }, - "default_case": { - "type": "SEQ", - "members": [ - { - "type": "FIELD", - "name": "pattern", - "content": { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "default" - }, - "named": true, - "value": "default" + "type": "CHOICE", + "members": [ + { + "type": "SYMBOL", + "name": "_string_literal" + }, + { + "type": "ALIAS", + "content": { + "type": "STRING", + "value": "default" + }, + "named": true, + "value": "default" + } + ] } }, { diff --git a/src/parser.c b/src/parser.c index ec2e024..5f3506f 100644 --- a/src/parser.c +++ b/src/parser.c @@ -5,9 +5,9 @@ #endif #define LANGUAGE_VERSION 14 -#define STATE_COUNT 123 +#define STATE_COUNT 114 #define LARGE_STATE_COUNT 2 -#define SYMBOL_COUNT 64 +#define SYMBOL_COUNT 63 #define ALIAS_COUNT 0 #define TOKEN_COUNT 34 #define EXTERNAL_TOKEN_COUNT 0 @@ -43,8 +43,8 @@ enum ts_symbol_identifiers { anon_sym_release_variable = 25, anon_sym_variant = 26, anon_sym_soong_config_variable = 27, - anon_sym_COLON = 28, - anon_sym_default = 29, + anon_sym_default = 28, + anon_sym_COLON = 29, anon_sym_unset = 30, anon_sym_LBRACK = 31, anon_sym_RBRACK = 32, @@ -66,19 +66,18 @@ enum ts_symbol_identifiers { sym_soong_config_variable = 48, sym_select_cases = 49, sym_select_case = 50, - sym_default_case = 51, - sym__case_value = 52, - sym_list_expression = 53, - sym_map_expression = 54, - sym_binary_expression = 55, - sym__colon_property = 56, - sym__equal_property = 57, - aux_sym_source_file_repeat1 = 58, - aux_sym__old_module_repeat1 = 59, - aux_sym__new_module_repeat1 = 60, - aux_sym_interpreted_string_literal_repeat1 = 61, - aux_sym_select_cases_repeat1 = 62, - aux_sym_list_expression_repeat1 = 63, + sym__case_value = 51, + sym_list_expression = 52, + sym_map_expression = 53, + sym_binary_expression = 54, + sym__colon_property = 55, + sym__equal_property = 56, + aux_sym_source_file_repeat1 = 57, + aux_sym__old_module_repeat1 = 58, + aux_sym__new_module_repeat1 = 59, + aux_sym_interpreted_string_literal_repeat1 = 60, + aux_sym_select_cases_repeat1 = 61, + aux_sym_list_expression_repeat1 = 62, }; static const char * const ts_symbol_names[] = { @@ -110,8 +109,8 @@ static const char * const ts_symbol_names[] = { [anon_sym_release_variable] = "selection_type", [anon_sym_variant] = "selection_type", [anon_sym_soong_config_variable] = "selection_type", - [anon_sym_COLON] = ":", [anon_sym_default] = "default", + [anon_sym_COLON] = ":", [anon_sym_unset] = "unset", [anon_sym_LBRACK] = "[", [anon_sym_RBRACK] = "]", @@ -133,7 +132,6 @@ static const char * const ts_symbol_names[] = { [sym_soong_config_variable] = "soong_config_variable", [sym_select_cases] = "select_cases", [sym_select_case] = "select_case", - [sym_default_case] = "select_case", [sym__case_value] = "_case_value", [sym_list_expression] = "list_expression", [sym_map_expression] = "map_expression", @@ -177,8 +175,8 @@ static const TSSymbol ts_symbol_map[] = { [anon_sym_release_variable] = anon_sym_product_variable, [anon_sym_variant] = anon_sym_product_variable, [anon_sym_soong_config_variable] = anon_sym_product_variable, - [anon_sym_COLON] = anon_sym_COLON, [anon_sym_default] = anon_sym_default, + [anon_sym_COLON] = anon_sym_COLON, [anon_sym_unset] = anon_sym_unset, [anon_sym_LBRACK] = anon_sym_LBRACK, [anon_sym_RBRACK] = anon_sym_RBRACK, @@ -200,7 +198,6 @@ static const TSSymbol ts_symbol_map[] = { [sym_soong_config_variable] = sym_soong_config_variable, [sym_select_cases] = sym_select_cases, [sym_select_case] = sym_select_case, - [sym_default_case] = sym_select_case, [sym__case_value] = sym__case_value, [sym_list_expression] = sym_list_expression, [sym_map_expression] = sym_map_expression, @@ -328,14 +325,14 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, - [anon_sym_COLON] = { - .visible = true, - .named = false, - }, [anon_sym_default] = { .visible = true, .named = true, }, + [anon_sym_COLON] = { + .visible = true, + .named = false, + }, [anon_sym_unset] = { .visible = true, .named = true, @@ -420,10 +417,6 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, - [sym_default_case] = { - .visible = true, - .named = true, - }, [sym__case_value] = { .visible = false, .named = true, @@ -707,15 +700,6 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [111] = 111, [112] = 112, [113] = 113, - [114] = 114, - [115] = 115, - [116] = 116, - [117] = 117, - [118] = 118, - [119] = 119, - [120] = 120, - [121] = 121, - [122] = 122, }; static inline bool sym_identifier_character_set_1(int32_t c) { @@ -4585,7 +4569,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == ',') ADVANCE(106); if (lookahead == '-') ADVANCE(191); if (lookahead == '/') ADVANCE(102); - if (lookahead == ':') ADVANCE(211); + if (lookahead == ':') ADVANCE(213); if (lookahead == '=') ADVANCE(103); if (lookahead == '[') ADVANCE(215); if (lookahead == '\\') ADVANCE(11); @@ -4869,7 +4853,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == 's') ADVANCE(39); END_STATE(); case 67: - if (lookahead == 't') ADVANCE(212); + if (lookahead == 't') ADVANCE(211); END_STATE(); case 68: if (lookahead == 't') ADVANCE(207); @@ -4952,7 +4936,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == ',') ADVANCE(106); if (lookahead == '-') ADVANCE(191); if (lookahead == '/') ADVANCE(102); - if (lookahead == ':') ADVANCE(211); + if (lookahead == ':') ADVANCE(213); if (lookahead == '=') ADVANCE(103); if (lookahead == '[') ADVANCE(215); if (lookahead == ']') ADVANCE(216); @@ -4979,7 +4963,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '+') ADVANCE(217); if (lookahead == ',') ADVANCE(106); if (lookahead == '/') ADVANCE(6); - if (lookahead == ':') ADVANCE(211); + if (lookahead == ':') ADVANCE(213); if (lookahead == ']') ADVANCE(216); if (lookahead == '`') ADVANCE(84); if (lookahead == '}') ADVANCE(107); @@ -5451,7 +5435,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { END_STATE(); case 179: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(213); + if (lookahead == 't') ADVANCE(212); if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); END_STATE(); case 180: @@ -5593,14 +5577,14 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); END_STATE(); case 211: - ACCEPT_TOKEN(anon_sym_COLON); + ACCEPT_TOKEN(anon_sym_default); END_STATE(); case 212: ACCEPT_TOKEN(anon_sym_default); + if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); END_STATE(); case 213: - ACCEPT_TOKEN(anon_sym_default); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); + ACCEPT_TOKEN(anon_sym_COLON); END_STATE(); case 214: ACCEPT_TOKEN(anon_sym_unset); @@ -5628,7 +5612,7 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0}, [1] = {.lex_state = 86}, [2] = {.lex_state = 3}, - [3] = {.lex_state = 3}, + [3] = {.lex_state = 4}, [4] = {.lex_state = 4}, [5] = {.lex_state = 4}, [6] = {.lex_state = 4}, @@ -5636,7 +5620,7 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [8] = {.lex_state = 4}, [9] = {.lex_state = 4}, [10] = {.lex_state = 4}, - [11] = {.lex_state = 4}, + [11] = {.lex_state = 86}, [12] = {.lex_state = 5}, [13] = {.lex_state = 5}, [14] = {.lex_state = 5}, @@ -5660,53 +5644,53 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [32] = {.lex_state = 86}, [33] = {.lex_state = 86}, [34] = {.lex_state = 86}, - [35] = {.lex_state = 86}, - [36] = {.lex_state = 5}, - [37] = {.lex_state = 86}, + [35] = {.lex_state = 5}, + [36] = {.lex_state = 1}, + [37] = {.lex_state = 3}, [38] = {.lex_state = 86}, - [39] = {.lex_state = 1}, - [40] = {.lex_state = 86}, - [41] = {.lex_state = 1}, - [42] = {.lex_state = 86}, + [39] = {.lex_state = 86}, + [40] = {.lex_state = 1}, + [41] = {.lex_state = 86}, + [42] = {.lex_state = 5}, [43] = {.lex_state = 1}, - [44] = {.lex_state = 3}, - [45] = {.lex_state = 5}, - [46] = {.lex_state = 0}, + [44] = {.lex_state = 86}, + [45] = {.lex_state = 86}, + [46] = {.lex_state = 86}, [47] = {.lex_state = 0}, - [48] = {.lex_state = 86}, + [48] = {.lex_state = 1}, [49] = {.lex_state = 86}, - [50] = {.lex_state = 86}, + [50] = {.lex_state = 0}, [51] = {.lex_state = 0}, [52] = {.lex_state = 86}, - [53] = {.lex_state = 1}, + [53] = {.lex_state = 86}, [54] = {.lex_state = 0}, - [55] = {.lex_state = 0}, - [56] = {.lex_state = 86}, - [57] = {.lex_state = 0}, + [55] = {.lex_state = 86}, + [56] = {.lex_state = 0}, + [57] = {.lex_state = 86}, [58] = {.lex_state = 86}, - [59] = {.lex_state = 0}, + [59] = {.lex_state = 86}, [60] = {.lex_state = 0}, [61] = {.lex_state = 86}, - [62] = {.lex_state = 86}, - [63] = {.lex_state = 86}, + [62] = {.lex_state = 0}, + [63] = {.lex_state = 0}, [64] = {.lex_state = 0}, [65] = {.lex_state = 86}, [66] = {.lex_state = 86}, - [67] = {.lex_state = 0}, - [68] = {.lex_state = 86}, + [67] = {.lex_state = 86}, + [68] = {.lex_state = 0}, [69] = {.lex_state = 86}, - [70] = {.lex_state = 86}, + [70] = {.lex_state = 0}, [71] = {.lex_state = 86}, [72] = {.lex_state = 0}, - [73] = {.lex_state = 0}, + [73] = {.lex_state = 86}, [74] = {.lex_state = 86}, [75] = {.lex_state = 86}, [76] = {.lex_state = 86}, [77] = {.lex_state = 86}, [78] = {.lex_state = 86}, [79] = {.lex_state = 86}, - [80] = {.lex_state = 86}, - [81] = {.lex_state = 0}, + [80] = {.lex_state = 0}, + [81] = {.lex_state = 86}, [82] = {.lex_state = 86}, [83] = {.lex_state = 86}, [84] = {.lex_state = 86}, @@ -5714,7 +5698,7 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [86] = {.lex_state = 86}, [87] = {.lex_state = 86}, [88] = {.lex_state = 86}, - [89] = {.lex_state = 86}, + [89] = {.lex_state = 93}, [90] = {.lex_state = 0}, [91] = {.lex_state = 0}, [92] = {.lex_state = 0}, @@ -5734,20 +5718,11 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [106] = {.lex_state = 0}, [107] = {.lex_state = 0}, [108] = {.lex_state = 0}, - [109] = {.lex_state = 93}, + [109] = {.lex_state = 7}, [110] = {.lex_state = 0}, [111] = {.lex_state = 0}, - [112] = {.lex_state = 0}, - [113] = {.lex_state = 0}, - [114] = {.lex_state = 7}, - [115] = {.lex_state = 0}, - [116] = {.lex_state = 0}, - [117] = {.lex_state = 0}, - [118] = {.lex_state = 0}, - [119] = {.lex_state = 0}, - [120] = {.lex_state = 0}, - [121] = {(TSStateId)(-1)}, - [122] = {(TSStateId)(-1)}, + [112] = {(TSStateId)(-1)}, + [113] = {(TSStateId)(-1)}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { @@ -5778,22 +5753,22 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_release_variable] = ACTIONS(1), [anon_sym_variant] = ACTIONS(1), [anon_sym_soong_config_variable] = ACTIONS(1), - [anon_sym_COLON] = ACTIONS(1), [anon_sym_default] = ACTIONS(1), + [anon_sym_COLON] = ACTIONS(1), [anon_sym_unset] = ACTIONS(1), [anon_sym_LBRACK] = ACTIONS(1), [anon_sym_RBRACK] = ACTIONS(1), [anon_sym_PLUS] = ACTIONS(1), }, [1] = { - [sym_source_file] = STATE(110), - [sym__definition] = STATE(77), + [sym_source_file] = STATE(104), + [sym__definition] = STATE(82), [sym_comment] = STATE(1), - [sym_assignment] = STATE(79), - [sym_module] = STATE(79), - [sym__old_module] = STATE(80), - [sym__new_module] = STATE(84), - [aux_sym_source_file_repeat1] = STATE(17), + [sym_assignment] = STATE(78), + [sym_module] = STATE(78), + [sym__old_module] = STATE(76), + [sym__new_module] = STATE(75), + [aux_sym_source_file_repeat1] = STATE(16), [ts_builtin_sym_end] = ACTIONS(7), [anon_sym_SLASH_SLASH] = ACTIONS(3), [anon_sym_SLASH_STAR] = ACTIONS(5), @@ -5827,16 +5802,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(2), 1, sym_comment, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, - STATE(75), 1, + STATE(79), 1, sym__expr, - STATE(119), 1, + STATE(91), 1, sym__case_value, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(26), 7, + STATE(24), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -5844,49 +5819,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [59] = 17, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(11), 1, - anon_sym_LBRACE, - ACTIONS(13), 1, - sym_identifier, - ACTIONS(17), 1, - anon_sym_DASH, - ACTIONS(19), 1, - aux_sym_integer_literal_token1, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(25), 1, - anon_sym_select, - ACTIONS(27), 1, - anon_sym_unset, - ACTIONS(29), 1, - anon_sym_LBRACK, - STATE(3), 1, - sym_comment, - STATE(19), 1, - sym_interpreted_string_literal, - STATE(75), 1, - sym__expr, - STATE(118), 1, - sym__case_value, - ACTIONS(15), 2, - anon_sym_true, - anon_sym_false, - STATE(26), 7, - sym_boolean_literal, - sym_integer_literal, - sym__string_literal, - sym_select_expression, - sym_list_expression, - sym_map_expression, - sym_binary_expression, - [118] = 16, + [59] = 16, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5909,16 +5842,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, ACTIONS(31), 1, anon_sym_RBRACK, - STATE(4), 1, + STATE(3), 1, sym_comment, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, - STATE(56), 1, + STATE(58), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(26), 7, + STATE(24), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -5926,7 +5859,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [174] = 16, + [115] = 16, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5949,16 +5882,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, ACTIONS(33), 1, anon_sym_RBRACK, - STATE(5), 1, + STATE(4), 1, sym_comment, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, - STATE(42), 1, + STATE(44), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(26), 7, + STATE(24), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -5966,7 +5899,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [230] = 16, + [171] = 16, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5989,16 +5922,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, ACTIONS(35), 1, anon_sym_RBRACK, - STATE(6), 1, + STATE(5), 1, sym_comment, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, - STATE(56), 1, + STATE(58), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(26), 7, + STATE(24), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6006,7 +5939,45 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [286] = 15, + [227] = 15, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(11), 1, + anon_sym_LBRACE, + ACTIONS(13), 1, + sym_identifier, + ACTIONS(17), 1, + anon_sym_DASH, + ACTIONS(19), 1, + aux_sym_integer_literal_token1, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(25), 1, + anon_sym_select, + ACTIONS(29), 1, + anon_sym_LBRACK, + STATE(6), 1, + sym_comment, + STATE(11), 1, + sym_interpreted_string_literal, + STATE(45), 1, + sym__expr, + ACTIONS(15), 2, + anon_sym_true, + anon_sym_false, + STATE(24), 7, + sym_boolean_literal, + sym_integer_literal, + sym__string_literal, + sym_select_expression, + sym_list_expression, + sym_map_expression, + sym_binary_expression, + [280] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6029,14 +6000,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(7), 1, sym_comment, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, - STATE(65), 1, + STATE(58), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(26), 7, + STATE(24), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6044,7 +6015,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [339] = 15, + [333] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6067,14 +6038,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(8), 1, sym_comment, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, - STATE(62), 1, + STATE(25), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(26), 7, + STATE(24), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6082,7 +6053,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [392] = 15, + [386] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6105,14 +6076,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(9), 1, sym_comment, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, - STATE(28), 1, + STATE(57), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(26), 7, + STATE(24), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6120,7 +6091,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [445] = 15, + [439] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6143,14 +6114,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(10), 1, sym_comment, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, - STATE(56), 1, + STATE(66), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(26), 7, + STATE(24), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6158,123 +6129,98 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [498] = 15, + [492] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(11), 1, - anon_sym_LBRACE, - ACTIONS(13), 1, - sym_identifier, - ACTIONS(17), 1, - anon_sym_DASH, - ACTIONS(19), 1, - aux_sym_integer_literal_token1, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(25), 1, - anon_sym_select, - ACTIONS(29), 1, - anon_sym_LBRACK, STATE(11), 1, sym_comment, - STATE(19), 1, - sym_interpreted_string_literal, - STATE(58), 1, - sym__expr, - ACTIONS(15), 2, - anon_sym_true, - anon_sym_false, - STATE(26), 7, - sym_boolean_literal, - sym_integer_literal, - sym__string_literal, - sym_select_expression, - sym_list_expression, - sym_map_expression, - sym_binary_expression, - [551] = 12, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(37), 1, + ACTIONS(37), 8, + ts_builtin_sym_end, + anon_sym_COMMA, anon_sym_RBRACE, - ACTIONS(39), 1, - anon_sym_default, - STATE(12), 1, - sym_comment, - STATE(14), 1, - aux_sym_select_cases_repeat1, - STATE(19), 1, - sym_interpreted_string_literal, - STATE(102), 1, - sym__string_literal, - STATE(103), 1, - sym_select_case, - STATE(113), 1, - sym_default_case, - [588] = 12, + anon_sym_RPAREN, + sym_identifier, + anon_sym_COLON, + anon_sym_RBRACK, + anon_sym_PLUS, + [512] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, ACTIONS(39), 1, - anon_sym_default, + anon_sym_RBRACE, ACTIONS(41), 1, + sym_raw_string_literal, + ACTIONS(44), 1, + anon_sym_DQUOTE, + ACTIONS(47), 1, + anon_sym_default, + STATE(11), 1, + sym_interpreted_string_literal, + STATE(90), 1, + sym_select_case, + STATE(101), 1, + sym__string_literal, + STATE(12), 2, + sym_comment, + aux_sym_select_cases_repeat1, + [544] = 11, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(50), 1, anon_sym_RBRACE, + ACTIONS(52), 1, + anon_sym_default, + STATE(11), 1, + sym_interpreted_string_literal, STATE(12), 1, aux_sym_select_cases_repeat1, STATE(13), 1, sym_comment, - STATE(19), 1, - sym_interpreted_string_literal, - STATE(102), 1, - sym__string_literal, - STATE(103), 1, + STATE(90), 1, sym_select_case, - STATE(104), 1, - sym_default_case, - [625] = 9, + STATE(101), 1, + sym__string_literal, + [578] = 11, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(45), 1, + ACTIONS(21), 1, sym_raw_string_literal, - ACTIONS(48), 1, + ACTIONS(23), 1, anon_sym_DQUOTE, - STATE(19), 1, - sym_interpreted_string_literal, - STATE(102), 1, - sym__string_literal, - STATE(103), 1, - sym_select_case, - ACTIONS(43), 2, - anon_sym_RBRACE, + ACTIONS(52), 1, anon_sym_default, - STATE(14), 2, - sym_comment, + ACTIONS(54), 1, + anon_sym_RBRACE, + STATE(11), 1, + sym_interpreted_string_literal, + STATE(13), 1, aux_sym_select_cases_repeat1, - [655] = 4, + STATE(14), 1, + sym_comment, + STATE(90), 1, + sym_select_case, + STATE(101), 1, + sym__string_literal, + [612] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(15), 1, sym_comment, - ACTIONS(51), 8, + ACTIONS(56), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6283,73 +6229,36 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [675] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(16), 1, - sym_comment, - ACTIONS(53), 8, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_COLON, - anon_sym_RBRACK, - anon_sym_PLUS, - [695] = 10, + [632] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(9), 1, sym_identifier, - ACTIONS(55), 1, + ACTIONS(58), 1, ts_builtin_sym_end, - STATE(17), 1, + STATE(16), 1, sym_comment, STATE(18), 1, aux_sym_source_file_repeat1, - STATE(77), 1, - sym__definition, - STATE(80), 1, - sym__old_module, - STATE(84), 1, + STATE(75), 1, sym__new_module, - STATE(79), 2, + STATE(76), 1, + sym__old_module, + STATE(82), 1, + sym__definition, + STATE(78), 2, sym_assignment, sym_module, - [727] = 9, + [664] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(57), 1, - ts_builtin_sym_end, - ACTIONS(59), 1, - sym_identifier, - STATE(77), 1, - sym__definition, - STATE(80), 1, - sym__old_module, - STATE(84), 1, - sym__new_module, - STATE(18), 2, + STATE(17), 1, sym_comment, - aux_sym_source_file_repeat1, - STATE(79), 2, - sym_assignment, - sym_module, - [757] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(19), 1, - sym_comment, - ACTIONS(62), 8, + ACTIONS(60), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6358,14 +6267,50 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [777] = 4, + [684] = 9, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(62), 1, + ts_builtin_sym_end, + ACTIONS(64), 1, + sym_identifier, + STATE(75), 1, + sym__new_module, + STATE(76), 1, + sym__old_module, + STATE(82), 1, + sym__definition, + STATE(18), 2, + sym_comment, + aux_sym_source_file_repeat1, + STATE(78), 2, + sym_assignment, + sym_module, + [714] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(19), 1, + sym_comment, + ACTIONS(67), 7, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_RBRACK, + anon_sym_PLUS, + [733] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(20), 1, sym_comment, - ACTIONS(64), 7, + ACTIONS(69), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6373,14 +6318,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [796] = 4, + [752] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(21), 1, sym_comment, - ACTIONS(66), 7, + ACTIONS(71), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6388,14 +6333,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [815] = 4, + [771] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(22), 1, sym_comment, - ACTIONS(68), 7, + ACTIONS(73), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6403,14 +6348,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [834] = 4, + [790] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(23), 1, sym_comment, - ACTIONS(70), 7, + ACTIONS(75), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6418,14 +6363,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [853] = 4, + [809] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(24), 1, sym_comment, - ACTIONS(72), 7, + ACTIONS(77), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6433,14 +6378,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [872] = 4, + [828] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(25), 1, sym_comment, - ACTIONS(74), 7, + ACTIONS(79), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6448,14 +6393,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [891] = 4, + [847] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(26), 1, sym_comment, - ACTIONS(76), 7, + ACTIONS(81), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6463,14 +6408,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [910] = 4, + [866] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(27), 1, sym_comment, - ACTIONS(78), 7, + ACTIONS(83), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6478,14 +6423,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [929] = 4, + [885] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(28), 1, sym_comment, - ACTIONS(80), 7, + ACTIONS(85), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6493,14 +6438,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [948] = 4, + [904] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(29), 1, sym_comment, - ACTIONS(82), 7, + ACTIONS(87), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6508,14 +6453,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [967] = 4, + [923] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(30), 1, sym_comment, - ACTIONS(84), 7, + ACTIONS(89), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6523,14 +6468,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [986] = 4, + [942] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(31), 1, sym_comment, - ACTIONS(86), 7, + ACTIONS(91), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6538,14 +6483,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1005] = 4, + [961] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(32), 1, sym_comment, - ACTIONS(88), 7, + ACTIONS(93), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6553,14 +6498,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1024] = 4, + [980] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(33), 1, sym_comment, - ACTIONS(90), 7, + ACTIONS(95), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6568,14 +6513,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1043] = 4, + [999] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(34), 1, sym_comment, - ACTIONS(92), 7, + ACTIONS(97), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6583,53 +6528,51 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1062] = 4, + [1018] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(101), 1, + anon_sym_soong_config_variable, STATE(35), 1, sym_comment, - ACTIONS(94), 7, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_RBRACK, - anon_sym_PLUS, - [1081] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(98), 1, - anon_sym_soong_config_variable, - STATE(36), 1, - sym_comment, - STATE(98), 2, + STATE(103), 2, sym_select_value, sym_soong_config_variable, - ACTIONS(96), 3, + ACTIONS(99), 3, anon_sym_product_variable, anon_sym_release_variable, anon_sym_variant, - [1103] = 7, + [1040] = 6, + ACTIONS(103), 1, + anon_sym_SLASH_SLASH, + ACTIONS(105), 1, + anon_sym_SLASH_STAR, + ACTIONS(107), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(110), 1, + anon_sym_DQUOTE2, + ACTIONS(112), 1, + sym_escape_sequence, + STATE(36), 2, + sym_comment, + aux_sym_interpreted_string_literal_repeat1, + [1060] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - STATE(19), 1, - sym_interpreted_string_literal, + ACTIONS(117), 1, + anon_sym_LBRACE, + ACTIONS(119), 1, + anon_sym_LPAREN, STATE(37), 1, sym_comment, - STATE(92), 1, - sym__string_literal, - [1125] = 7, + ACTIONS(115), 2, + anon_sym_EQ, + anon_sym_PLUS_EQ, + [1080] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6638,28 +6581,13 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, STATE(38), 1, sym_comment, - STATE(107), 1, + STATE(93), 1, sym__string_literal, - [1147] = 7, - ACTIONS(100), 1, - anon_sym_SLASH_SLASH, - ACTIONS(102), 1, - anon_sym_SLASH_STAR, - ACTIONS(104), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(106), 1, - anon_sym_DQUOTE2, - ACTIONS(108), 1, - sym_escape_sequence, - STATE(39), 1, - sym_comment, - STATE(43), 1, - aux_sym_interpreted_string_literal_repeat1, - [1169] = 7, + [1102] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6668,1152 +6596,1066 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, + STATE(39), 1, + sym_comment, + STATE(92), 1, + sym__string_literal, + [1124] = 7, + ACTIONS(103), 1, + anon_sym_SLASH_SLASH, + ACTIONS(105), 1, + anon_sym_SLASH_STAR, + ACTIONS(121), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(123), 1, + anon_sym_DQUOTE2, + ACTIONS(125), 1, + sym_escape_sequence, STATE(40), 1, sym_comment, - STATE(93), 1, - sym__string_literal, - [1191] = 7, - ACTIONS(100), 1, - anon_sym_SLASH_SLASH, - ACTIONS(102), 1, - anon_sym_SLASH_STAR, - ACTIONS(104), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(108), 1, - sym_escape_sequence, - ACTIONS(110), 1, - anon_sym_DQUOTE2, - STATE(39), 1, + STATE(43), 1, aux_sym_interpreted_string_literal_repeat1, + [1146] = 7, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + STATE(11), 1, + sym_interpreted_string_literal, STATE(41), 1, sym_comment, - [1213] = 7, + STATE(105), 1, + sym__string_literal, + [1168] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(112), 1, - anon_sym_COMMA, - ACTIONS(114), 1, - anon_sym_RBRACK, - ACTIONS(116), 1, - anon_sym_PLUS, STATE(42), 1, sym_comment, - STATE(60), 1, - aux_sym_list_expression_repeat1, - [1235] = 6, - ACTIONS(100), 1, - anon_sym_SLASH_SLASH, - ACTIONS(102), 1, - anon_sym_SLASH_STAR, - ACTIONS(118), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(121), 1, - anon_sym_DQUOTE2, - ACTIONS(123), 1, - sym_escape_sequence, - STATE(43), 2, - sym_comment, - aux_sym_interpreted_string_literal_repeat1, - [1255] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(128), 1, - anon_sym_LBRACE, - ACTIONS(130), 1, - anon_sym_LPAREN, - STATE(44), 1, - sym_comment, - ACTIONS(126), 2, - anon_sym_EQ, - anon_sym_PLUS_EQ, - [1275] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(45), 1, - sym_comment, - ACTIONS(43), 4, + ACTIONS(39), 4, anon_sym_RBRACE, sym_raw_string_literal, anon_sym_DQUOTE, anon_sym_default, - [1291] = 6, + [1184] = 7, + ACTIONS(103), 1, + anon_sym_SLASH_SLASH, + ACTIONS(105), 1, + anon_sym_SLASH_STAR, + ACTIONS(121), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(125), 1, + sym_escape_sequence, + ACTIONS(127), 1, + anon_sym_DQUOTE2, + STATE(36), 1, + aux_sym_interpreted_string_literal_repeat1, + STATE(43), 1, + sym_comment, + [1206] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(132), 1, + ACTIONS(129), 1, anon_sym_COMMA, - ACTIONS(134), 1, - anon_sym_RPAREN, + ACTIONS(131), 1, + anon_sym_RBRACK, + ACTIONS(133), 1, + anon_sym_PLUS, + STATE(44), 1, + sym_comment, + STATE(62), 1, + aux_sym_list_expression_repeat1, + [1228] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(133), 1, + anon_sym_PLUS, + STATE(45), 1, + sym_comment, + ACTIONS(135), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [1245] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(137), 1, + anon_sym_RBRACE, + ACTIONS(139), 1, + sym_identifier, STATE(46), 1, sym_comment, - STATE(51), 1, - aux_sym__new_module_repeat1, - [1310] = 6, + STATE(47), 1, + sym__colon_property, + [1264] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(136), 1, + ACTIONS(141), 1, anon_sym_COMMA, - ACTIONS(138), 1, + ACTIONS(143), 1, anon_sym_RBRACE, STATE(47), 1, sym_comment, - STATE(64), 1, + STATE(56), 1, aux_sym__old_module_repeat1, - [1329] = 6, - ACTIONS(3), 1, + [1283] = 5, + ACTIONS(103), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(105), 1, anon_sym_SLASH_STAR, - ACTIONS(140), 1, - anon_sym_RBRACE, - ACTIONS(142), 1, - sym_identifier, + ACTIONS(145), 1, + aux_sym_interpreted_string_literal_token1, STATE(48), 1, sym_comment, - STATE(73), 1, - sym__colon_property, - [1348] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(144), 1, - anon_sym_RPAREN, - ACTIONS(146), 1, - sym_identifier, - STATE(49), 1, - sym_comment, - STATE(72), 1, - sym__equal_property, - [1367] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(142), 1, - sym_identifier, - ACTIONS(148), 1, - anon_sym_RBRACE, - STATE(50), 1, - sym_comment, - STATE(57), 1, - sym__colon_property, - [1386] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(150), 1, - anon_sym_COMMA, - ACTIONS(152), 1, - anon_sym_RPAREN, - STATE(51), 1, - sym_comment, - STATE(67), 1, - aux_sym__new_module_repeat1, - [1405] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(142), 1, - sym_identifier, - ACTIONS(154), 1, - anon_sym_RBRACE, - STATE(52), 1, - sym_comment, - STATE(73), 1, - sym__colon_property, - [1424] = 5, - ACTIONS(100), 1, - anon_sym_SLASH_SLASH, - ACTIONS(102), 1, - anon_sym_SLASH_STAR, - ACTIONS(156), 1, - aux_sym_interpreted_string_literal_token1, - STATE(53), 1, - sym_comment, - ACTIONS(158), 2, + ACTIONS(147), 2, anon_sym_DQUOTE2, sym_escape_sequence, - [1441] = 6, + [1300] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(139), 1, + sym_identifier, + ACTIONS(149), 1, + anon_sym_RBRACE, + STATE(49), 1, + sym_comment, + STATE(70), 1, + sym__colon_property, + [1319] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(151), 1, + anon_sym_COMMA, + ACTIONS(154), 1, + anon_sym_RBRACK, + STATE(50), 2, + sym_comment, + aux_sym_list_expression_repeat1, + [1336] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(156), 1, + anon_sym_COMMA, + ACTIONS(158), 1, + anon_sym_RBRACE, + STATE(51), 1, + sym_comment, + STATE(68), 1, + aux_sym__old_module_repeat1, + [1355] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(160), 1, - anon_sym_COMMA, + anon_sym_RPAREN, ACTIONS(162), 1, - anon_sym_RBRACE, - STATE(54), 1, - sym_comment, - STATE(64), 1, - aux_sym__old_module_repeat1, - [1460] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(164), 1, - anon_sym_COMMA, - ACTIONS(166), 1, - anon_sym_RBRACE, - STATE(54), 1, - aux_sym__old_module_repeat1, - STATE(55), 1, - sym_comment, - [1479] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(116), 1, - anon_sym_PLUS, - STATE(56), 1, - sym_comment, - ACTIONS(168), 2, - anon_sym_COMMA, - anon_sym_RBRACK, - [1496] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(170), 1, - anon_sym_COMMA, - ACTIONS(172), 1, - anon_sym_RBRACE, - STATE(47), 1, - aux_sym__old_module_repeat1, - STATE(57), 1, - sym_comment, - [1515] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(116), 1, - anon_sym_PLUS, - STATE(58), 1, - sym_comment, - ACTIONS(174), 2, - ts_builtin_sym_end, sym_identifier, - [1532] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(176), 1, - anon_sym_COMMA, - ACTIONS(179), 1, - anon_sym_RBRACK, - STATE(59), 2, - sym_comment, - aux_sym_list_expression_repeat1, - [1549] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(181), 1, - anon_sym_COMMA, - ACTIONS(183), 1, - anon_sym_RBRACK, - STATE(59), 1, - aux_sym_list_expression_repeat1, - STATE(60), 1, - sym_comment, - [1568] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(142), 1, - sym_identifier, - ACTIONS(185), 1, - anon_sym_RBRACE, - STATE(55), 1, - sym__colon_property, - STATE(61), 1, - sym_comment, - [1587] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(116), 1, - anon_sym_PLUS, - STATE(62), 1, - sym_comment, - ACTIONS(187), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [1604] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(142), 1, - sym_identifier, - ACTIONS(189), 1, - anon_sym_RBRACE, - STATE(63), 1, - sym_comment, - STATE(73), 1, - sym__colon_property, - [1623] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(191), 1, - anon_sym_COMMA, - ACTIONS(194), 1, - anon_sym_RBRACE, - STATE(64), 2, - sym_comment, - aux_sym__old_module_repeat1, - [1640] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(116), 1, - anon_sym_PLUS, - STATE(65), 1, - sym_comment, - ACTIONS(196), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [1657] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(146), 1, - sym_identifier, - ACTIONS(198), 1, - anon_sym_RPAREN, - STATE(66), 1, + STATE(52), 1, sym_comment, STATE(72), 1, sym__equal_property, - [1676] = 5, + [1374] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(200), 1, + ACTIONS(139), 1, + sym_identifier, + ACTIONS(164), 1, + anon_sym_RBRACE, + STATE(53), 1, + sym_comment, + STATE(60), 1, + sym__colon_property, + [1393] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(166), 1, anon_sym_COMMA, - ACTIONS(203), 1, + ACTIONS(168), 1, anon_sym_RPAREN, - STATE(67), 2, + STATE(54), 1, + sym_comment, + STATE(64), 1, + aux_sym__new_module_repeat1, + [1412] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(139), 1, + sym_identifier, + ACTIONS(170), 1, + anon_sym_RBRACE, + STATE(55), 1, + sym_comment, + STATE(70), 1, + sym__colon_property, + [1431] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(172), 1, + anon_sym_COMMA, + ACTIONS(174), 1, + anon_sym_RBRACE, + STATE(56), 1, + sym_comment, + STATE(68), 1, + aux_sym__old_module_repeat1, + [1450] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(133), 1, + anon_sym_PLUS, + STATE(57), 1, + sym_comment, + ACTIONS(176), 2, + ts_builtin_sym_end, + sym_identifier, + [1467] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(133), 1, + anon_sym_PLUS, + STATE(58), 1, + sym_comment, + ACTIONS(178), 2, + anon_sym_COMMA, + anon_sym_RBRACK, + [1484] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(162), 1, + sym_identifier, + ACTIONS(180), 1, + anon_sym_RPAREN, + STATE(59), 1, + sym_comment, + STATE(63), 1, + sym__equal_property, + [1503] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(182), 1, + anon_sym_COMMA, + ACTIONS(184), 1, + anon_sym_RBRACE, + STATE(51), 1, + aux_sym__old_module_repeat1, + STATE(60), 1, + sym_comment, + [1522] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(139), 1, + sym_identifier, + ACTIONS(186), 1, + anon_sym_RBRACE, + STATE(61), 1, + sym_comment, + STATE(70), 1, + sym__colon_property, + [1541] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(188), 1, + anon_sym_COMMA, + ACTIONS(190), 1, + anon_sym_RBRACK, + STATE(50), 1, + aux_sym_list_expression_repeat1, + STATE(62), 1, + sym_comment, + [1560] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(192), 1, + anon_sym_COMMA, + ACTIONS(194), 1, + anon_sym_RPAREN, + STATE(54), 1, + aux_sym__new_module_repeat1, + STATE(63), 1, + sym_comment, + [1579] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(196), 1, + anon_sym_COMMA, + ACTIONS(199), 1, + anon_sym_RPAREN, + STATE(64), 2, sym_comment, aux_sym__new_module_repeat1, - [1693] = 6, + [1596] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(146), 1, + ACTIONS(162), 1, + sym_identifier, + ACTIONS(201), 1, + anon_sym_RPAREN, + STATE(65), 1, + sym_comment, + STATE(72), 1, + sym__equal_property, + [1615] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(133), 1, + anon_sym_PLUS, + STATE(66), 1, + sym_comment, + ACTIONS(203), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [1632] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(139), 1, sym_identifier, ACTIONS(205), 1, - anon_sym_RPAREN, - STATE(46), 1, - sym__equal_property, - STATE(68), 1, + anon_sym_RBRACE, + STATE(67), 1, sym_comment, - [1712] = 6, + STATE(70), 1, + sym__colon_property, + [1651] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(142), 1, - sym_identifier, ACTIONS(207), 1, + anon_sym_COMMA, + ACTIONS(210), 1, anon_sym_RBRACE, + STATE(68), 2, + sym_comment, + aux_sym__old_module_repeat1, + [1668] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, STATE(69), 1, sym_comment, - STATE(73), 1, - sym__colon_property, - [1731] = 4, + ACTIONS(212), 2, + ts_builtin_sym_end, + sym_identifier, + [1682] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(70), 1, sym_comment, - ACTIONS(209), 2, - ts_builtin_sym_end, - sym_identifier, - [1745] = 5, + ACTIONS(214), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [1696] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(146), 1, - sym_identifier, STATE(71), 1, sym_comment, - STATE(72), 1, - sym__equal_property, - [1761] = 4, + ACTIONS(216), 2, + ts_builtin_sym_end, + sym_identifier, + [1710] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(72), 1, sym_comment, - ACTIONS(211), 2, + ACTIONS(218), 2, anon_sym_COMMA, anon_sym_RPAREN, - [1775] = 4, + [1724] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(73), 1, sym_comment, - ACTIONS(213), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [1789] = 4, + ACTIONS(220), 2, + ts_builtin_sym_end, + sym_identifier, + [1738] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(74), 1, sym_comment, - ACTIONS(215), 2, + ACTIONS(222), 2, ts_builtin_sym_end, sym_identifier, - [1803] = 5, + [1752] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(116), 1, - anon_sym_PLUS, - ACTIONS(217), 1, - anon_sym_COMMA, STATE(75), 1, sym_comment, - [1819] = 4, + ACTIONS(224), 2, + ts_builtin_sym_end, + sym_identifier, + [1766] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(76), 1, sym_comment, - ACTIONS(219), 2, + ACTIONS(224), 2, ts_builtin_sym_end, sym_identifier, - [1833] = 4, + [1780] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(77), 1, sym_comment, - ACTIONS(221), 2, + ACTIONS(226), 2, ts_builtin_sym_end, sym_identifier, - [1847] = 4, + [1794] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(78), 1, sym_comment, - ACTIONS(223), 2, + ACTIONS(228), 2, ts_builtin_sym_end, sym_identifier, - [1861] = 4, + [1808] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(133), 1, + anon_sym_PLUS, + ACTIONS(230), 1, + anon_sym_COMMA, STATE(79), 1, sym_comment, - ACTIONS(225), 2, - ts_builtin_sym_end, - sym_identifier, - [1875] = 4, + [1824] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(80), 1, - sym_comment, - ACTIONS(227), 2, - ts_builtin_sym_end, - sym_identifier, - [1889] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(229), 1, + ACTIONS(232), 1, anon_sym_LBRACE, - STATE(81), 1, + STATE(80), 1, sym_comment, STATE(95), 1, sym_select_cases, - [1905] = 4, + [1840] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(81), 1, + sym_comment, + ACTIONS(234), 2, + ts_builtin_sym_end, + sym_identifier, + [1854] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(82), 1, sym_comment, - ACTIONS(231), 2, + ACTIONS(236), 2, ts_builtin_sym_end, sym_identifier, - [1919] = 4, + [1868] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(83), 1, sym_comment, - ACTIONS(233), 2, + ACTIONS(238), 2, ts_builtin_sym_end, sym_identifier, - [1933] = 4, + [1882] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(84), 1, sym_comment, - ACTIONS(227), 2, + ACTIONS(240), 2, ts_builtin_sym_end, sym_identifier, - [1947] = 4, + [1896] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(85), 1, sym_comment, - ACTIONS(235), 2, + ACTIONS(242), 2, ts_builtin_sym_end, sym_identifier, - [1961] = 4, + [1910] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(139), 1, + sym_identifier, + STATE(70), 1, + sym__colon_property, STATE(86), 1, sym_comment, - ACTIONS(237), 2, - ts_builtin_sym_end, - sym_identifier, - [1975] = 4, + [1926] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(87), 1, sym_comment, - ACTIONS(239), 2, + ACTIONS(244), 2, ts_builtin_sym_end, sym_identifier, - [1989] = 5, + [1940] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(142), 1, + ACTIONS(162), 1, sym_identifier, - STATE(73), 1, - sym__colon_property, + STATE(72), 1, + sym__equal_property, STATE(88), 1, sym_comment, - [2005] = 4, - ACTIONS(3), 1, + [1956] = 4, + ACTIONS(103), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(105), 1, anon_sym_SLASH_STAR, + ACTIONS(246), 1, + aux_sym_comment_token1, STATE(89), 1, sym_comment, - ACTIONS(241), 2, - ts_builtin_sym_end, - sym_identifier, - [2019] = 4, + [1969] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(243), 1, + ACTIONS(248), 1, anon_sym_COMMA, STATE(90), 1, sym_comment, - [2032] = 4, + [1982] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(245), 1, + ACTIONS(250), 1, anon_sym_COMMA, STATE(91), 1, sym_comment, - [2045] = 4, + [1995] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(247), 1, + ACTIONS(252), 1, anon_sym_RPAREN, STATE(92), 1, sym_comment, - [2058] = 4, + [2008] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(249), 1, + ACTIONS(254), 1, anon_sym_COMMA, STATE(93), 1, sym_comment, - [2071] = 4, + [2021] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(251), 1, - aux_sym_integer_literal_token1, + ACTIONS(256), 1, + anon_sym_SLASH, STATE(94), 1, sym_comment, - [2084] = 4, + [2034] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(253), 1, + ACTIONS(258), 1, anon_sym_RPAREN, STATE(95), 1, sym_comment, - [2097] = 4, + [2047] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(255), 1, - anon_sym_RPAREN, + ACTIONS(260), 1, + anon_sym_COLON, STATE(96), 1, sym_comment, - [2110] = 4, + [2060] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(257), 1, - anon_sym_SLASH, + ACTIONS(262), 1, + aux_sym_integer_literal_token1, STATE(97), 1, sym_comment, - [2123] = 4, + [2073] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(259), 1, + ACTIONS(264), 1, anon_sym_COMMA, STATE(98), 1, sym_comment, - [2136] = 4, + [2086] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(261), 1, - anon_sym_RBRACE, + ACTIONS(266), 1, + anon_sym_LPAREN, STATE(99), 1, sym_comment, - [2149] = 4, + [2099] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(263), 1, + ACTIONS(268), 1, anon_sym_RPAREN, STATE(100), 1, sym_comment, - [2162] = 4, + [2112] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(265), 1, + ACTIONS(270), 1, anon_sym_COLON, STATE(101), 1, sym_comment, - [2175] = 4, + [2125] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(267), 1, - anon_sym_COLON, + ACTIONS(272), 1, + anon_sym_EQ, STATE(102), 1, sym_comment, - [2188] = 4, + [2138] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(269), 1, + ACTIONS(274), 1, anon_sym_COMMA, STATE(103), 1, sym_comment, - [2201] = 4, + [2151] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(271), 1, - anon_sym_COMMA, + ACTIONS(276), 1, + ts_builtin_sym_end, STATE(104), 1, sym_comment, - [2214] = 4, + [2164] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(273), 1, - anon_sym_COLON, + ACTIONS(278), 1, + anon_sym_RPAREN, STATE(105), 1, sym_comment, - [2227] = 4, + [2177] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(275), 1, - anon_sym_EQ, + ACTIONS(280), 1, + anon_sym_LPAREN, STATE(106), 1, sym_comment, - [2240] = 4, + [2190] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(277), 1, - anon_sym_RPAREN, + ACTIONS(282), 1, + anon_sym_LPAREN, STATE(107), 1, sym_comment, - [2253] = 4, + [2203] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(279), 1, - anon_sym_LPAREN, + ACTIONS(284), 1, + anon_sym_RPAREN, STATE(108), 1, sym_comment, - [2266] = 4, - ACTIONS(100), 1, + [2216] = 4, + ACTIONS(103), 1, anon_sym_SLASH_SLASH, - ACTIONS(102), 1, + ACTIONS(105), 1, anon_sym_SLASH_STAR, - ACTIONS(281), 1, - aux_sym_comment_token1, + ACTIONS(286), 1, + aux_sym_comment_token2, STATE(109), 1, sym_comment, - [2279] = 4, + [2229] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(283), 1, - ts_builtin_sym_end, + ACTIONS(288), 1, + anon_sym_COMMA, STATE(110), 1, sym_comment, - [2292] = 4, + [2242] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(285), 1, - anon_sym_RBRACE, + ACTIONS(230), 1, + anon_sym_COMMA, STATE(111), 1, sym_comment, - [2305] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(287), 1, - anon_sym_RPAREN, - STATE(112), 1, - sym_comment, - [2318] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(289), 1, - anon_sym_COMMA, - STATE(113), 1, - sym_comment, - [2331] = 4, - ACTIONS(100), 1, - anon_sym_SLASH_SLASH, - ACTIONS(102), 1, - anon_sym_SLASH_STAR, - ACTIONS(291), 1, - aux_sym_comment_token2, - STATE(114), 1, - sym_comment, - [2344] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(293), 1, - anon_sym_LPAREN, - STATE(115), 1, - sym_comment, - [2357] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(217), 1, - anon_sym_COMMA, - STATE(116), 1, - sym_comment, - [2370] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(295), 1, - anon_sym_LPAREN, - STATE(117), 1, - sym_comment, - [2383] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(297), 1, - anon_sym_COMMA, - STATE(118), 1, - sym_comment, - [2396] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(299), 1, - anon_sym_COMMA, - STATE(119), 1, - sym_comment, - [2409] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(301), 1, - anon_sym_RPAREN, - STATE(120), 1, - sym_comment, - [2422] = 1, - ACTIONS(303), 1, + [2255] = 1, + ACTIONS(290), 1, ts_builtin_sym_end, - [2426] = 1, - ACTIONS(305), 1, + [2259] = 1, + ACTIONS(292), 1, ts_builtin_sym_end, }; static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(2)] = 0, [SMALL_STATE(3)] = 59, - [SMALL_STATE(4)] = 118, - [SMALL_STATE(5)] = 174, - [SMALL_STATE(6)] = 230, - [SMALL_STATE(7)] = 286, - [SMALL_STATE(8)] = 339, - [SMALL_STATE(9)] = 392, - [SMALL_STATE(10)] = 445, - [SMALL_STATE(11)] = 498, - [SMALL_STATE(12)] = 551, - [SMALL_STATE(13)] = 588, - [SMALL_STATE(14)] = 625, - [SMALL_STATE(15)] = 655, - [SMALL_STATE(16)] = 675, - [SMALL_STATE(17)] = 695, - [SMALL_STATE(18)] = 727, - [SMALL_STATE(19)] = 757, - [SMALL_STATE(20)] = 777, - [SMALL_STATE(21)] = 796, - [SMALL_STATE(22)] = 815, - [SMALL_STATE(23)] = 834, - [SMALL_STATE(24)] = 853, - [SMALL_STATE(25)] = 872, - [SMALL_STATE(26)] = 891, - [SMALL_STATE(27)] = 910, - [SMALL_STATE(28)] = 929, - [SMALL_STATE(29)] = 948, - [SMALL_STATE(30)] = 967, - [SMALL_STATE(31)] = 986, - [SMALL_STATE(32)] = 1005, - [SMALL_STATE(33)] = 1024, - [SMALL_STATE(34)] = 1043, - [SMALL_STATE(35)] = 1062, - [SMALL_STATE(36)] = 1081, - [SMALL_STATE(37)] = 1103, - [SMALL_STATE(38)] = 1125, - [SMALL_STATE(39)] = 1147, - [SMALL_STATE(40)] = 1169, - [SMALL_STATE(41)] = 1191, - [SMALL_STATE(42)] = 1213, - [SMALL_STATE(43)] = 1235, - [SMALL_STATE(44)] = 1255, - [SMALL_STATE(45)] = 1275, - [SMALL_STATE(46)] = 1291, - [SMALL_STATE(47)] = 1310, - [SMALL_STATE(48)] = 1329, - [SMALL_STATE(49)] = 1348, - [SMALL_STATE(50)] = 1367, - [SMALL_STATE(51)] = 1386, - [SMALL_STATE(52)] = 1405, - [SMALL_STATE(53)] = 1424, - [SMALL_STATE(54)] = 1441, - [SMALL_STATE(55)] = 1460, - [SMALL_STATE(56)] = 1479, - [SMALL_STATE(57)] = 1496, - [SMALL_STATE(58)] = 1515, - [SMALL_STATE(59)] = 1532, - [SMALL_STATE(60)] = 1549, - [SMALL_STATE(61)] = 1568, - [SMALL_STATE(62)] = 1587, - [SMALL_STATE(63)] = 1604, - [SMALL_STATE(64)] = 1623, - [SMALL_STATE(65)] = 1640, - [SMALL_STATE(66)] = 1657, - [SMALL_STATE(67)] = 1676, - [SMALL_STATE(68)] = 1693, - [SMALL_STATE(69)] = 1712, - [SMALL_STATE(70)] = 1731, - [SMALL_STATE(71)] = 1745, - [SMALL_STATE(72)] = 1761, - [SMALL_STATE(73)] = 1775, - [SMALL_STATE(74)] = 1789, - [SMALL_STATE(75)] = 1803, - [SMALL_STATE(76)] = 1819, - [SMALL_STATE(77)] = 1833, - [SMALL_STATE(78)] = 1847, - [SMALL_STATE(79)] = 1861, - [SMALL_STATE(80)] = 1875, - [SMALL_STATE(81)] = 1889, - [SMALL_STATE(82)] = 1905, - [SMALL_STATE(83)] = 1919, - [SMALL_STATE(84)] = 1933, - [SMALL_STATE(85)] = 1947, - [SMALL_STATE(86)] = 1961, - [SMALL_STATE(87)] = 1975, - [SMALL_STATE(88)] = 1989, - [SMALL_STATE(89)] = 2005, - [SMALL_STATE(90)] = 2019, - [SMALL_STATE(91)] = 2032, - [SMALL_STATE(92)] = 2045, - [SMALL_STATE(93)] = 2058, - [SMALL_STATE(94)] = 2071, - [SMALL_STATE(95)] = 2084, - [SMALL_STATE(96)] = 2097, - [SMALL_STATE(97)] = 2110, - [SMALL_STATE(98)] = 2123, - [SMALL_STATE(99)] = 2136, - [SMALL_STATE(100)] = 2149, - [SMALL_STATE(101)] = 2162, - [SMALL_STATE(102)] = 2175, - [SMALL_STATE(103)] = 2188, - [SMALL_STATE(104)] = 2201, - [SMALL_STATE(105)] = 2214, - [SMALL_STATE(106)] = 2227, - [SMALL_STATE(107)] = 2240, - [SMALL_STATE(108)] = 2253, - [SMALL_STATE(109)] = 2266, - [SMALL_STATE(110)] = 2279, - [SMALL_STATE(111)] = 2292, - [SMALL_STATE(112)] = 2305, - [SMALL_STATE(113)] = 2318, - [SMALL_STATE(114)] = 2331, - [SMALL_STATE(115)] = 2344, - [SMALL_STATE(116)] = 2357, - [SMALL_STATE(117)] = 2370, - [SMALL_STATE(118)] = 2383, - [SMALL_STATE(119)] = 2396, - [SMALL_STATE(120)] = 2409, - [SMALL_STATE(121)] = 2422, - [SMALL_STATE(122)] = 2426, + [SMALL_STATE(4)] = 115, + [SMALL_STATE(5)] = 171, + [SMALL_STATE(6)] = 227, + [SMALL_STATE(7)] = 280, + [SMALL_STATE(8)] = 333, + [SMALL_STATE(9)] = 386, + [SMALL_STATE(10)] = 439, + [SMALL_STATE(11)] = 492, + [SMALL_STATE(12)] = 512, + [SMALL_STATE(13)] = 544, + [SMALL_STATE(14)] = 578, + [SMALL_STATE(15)] = 612, + [SMALL_STATE(16)] = 632, + [SMALL_STATE(17)] = 664, + [SMALL_STATE(18)] = 684, + [SMALL_STATE(19)] = 714, + [SMALL_STATE(20)] = 733, + [SMALL_STATE(21)] = 752, + [SMALL_STATE(22)] = 771, + [SMALL_STATE(23)] = 790, + [SMALL_STATE(24)] = 809, + [SMALL_STATE(25)] = 828, + [SMALL_STATE(26)] = 847, + [SMALL_STATE(27)] = 866, + [SMALL_STATE(28)] = 885, + [SMALL_STATE(29)] = 904, + [SMALL_STATE(30)] = 923, + [SMALL_STATE(31)] = 942, + [SMALL_STATE(32)] = 961, + [SMALL_STATE(33)] = 980, + [SMALL_STATE(34)] = 999, + [SMALL_STATE(35)] = 1018, + [SMALL_STATE(36)] = 1040, + [SMALL_STATE(37)] = 1060, + [SMALL_STATE(38)] = 1080, + [SMALL_STATE(39)] = 1102, + [SMALL_STATE(40)] = 1124, + [SMALL_STATE(41)] = 1146, + [SMALL_STATE(42)] = 1168, + [SMALL_STATE(43)] = 1184, + [SMALL_STATE(44)] = 1206, + [SMALL_STATE(45)] = 1228, + [SMALL_STATE(46)] = 1245, + [SMALL_STATE(47)] = 1264, + [SMALL_STATE(48)] = 1283, + [SMALL_STATE(49)] = 1300, + [SMALL_STATE(50)] = 1319, + [SMALL_STATE(51)] = 1336, + [SMALL_STATE(52)] = 1355, + [SMALL_STATE(53)] = 1374, + [SMALL_STATE(54)] = 1393, + [SMALL_STATE(55)] = 1412, + [SMALL_STATE(56)] = 1431, + [SMALL_STATE(57)] = 1450, + [SMALL_STATE(58)] = 1467, + [SMALL_STATE(59)] = 1484, + [SMALL_STATE(60)] = 1503, + [SMALL_STATE(61)] = 1522, + [SMALL_STATE(62)] = 1541, + [SMALL_STATE(63)] = 1560, + [SMALL_STATE(64)] = 1579, + [SMALL_STATE(65)] = 1596, + [SMALL_STATE(66)] = 1615, + [SMALL_STATE(67)] = 1632, + [SMALL_STATE(68)] = 1651, + [SMALL_STATE(69)] = 1668, + [SMALL_STATE(70)] = 1682, + [SMALL_STATE(71)] = 1696, + [SMALL_STATE(72)] = 1710, + [SMALL_STATE(73)] = 1724, + [SMALL_STATE(74)] = 1738, + [SMALL_STATE(75)] = 1752, + [SMALL_STATE(76)] = 1766, + [SMALL_STATE(77)] = 1780, + [SMALL_STATE(78)] = 1794, + [SMALL_STATE(79)] = 1808, + [SMALL_STATE(80)] = 1824, + [SMALL_STATE(81)] = 1840, + [SMALL_STATE(82)] = 1854, + [SMALL_STATE(83)] = 1868, + [SMALL_STATE(84)] = 1882, + [SMALL_STATE(85)] = 1896, + [SMALL_STATE(86)] = 1910, + [SMALL_STATE(87)] = 1926, + [SMALL_STATE(88)] = 1940, + [SMALL_STATE(89)] = 1956, + [SMALL_STATE(90)] = 1969, + [SMALL_STATE(91)] = 1982, + [SMALL_STATE(92)] = 1995, + [SMALL_STATE(93)] = 2008, + [SMALL_STATE(94)] = 2021, + [SMALL_STATE(95)] = 2034, + [SMALL_STATE(96)] = 2047, + [SMALL_STATE(97)] = 2060, + [SMALL_STATE(98)] = 2073, + [SMALL_STATE(99)] = 2086, + [SMALL_STATE(100)] = 2099, + [SMALL_STATE(101)] = 2112, + [SMALL_STATE(102)] = 2125, + [SMALL_STATE(103)] = 2138, + [SMALL_STATE(104)] = 2151, + [SMALL_STATE(105)] = 2164, + [SMALL_STATE(106)] = 2177, + [SMALL_STATE(107)] = 2190, + [SMALL_STATE(108)] = 2203, + [SMALL_STATE(109)] = 2216, + [SMALL_STATE(110)] = 2229, + [SMALL_STATE(111)] = 2242, + [SMALL_STATE(112)] = 2255, + [SMALL_STATE(113)] = 2259, }; 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(109), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114), + [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), + [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), - [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(26), - [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(21), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), - [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(115), - [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), - [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), - [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), - [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), - [43] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), - [45] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(19), - [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(41), - [51] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), - [53] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), - [55] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), - [57] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [59] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(44), - [62] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), - [64] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), - [66] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), - [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), - [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), - [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), - [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), - [76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), - [78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), - [80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), - [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), - [84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), - [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), - [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), - [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), - [96] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), - [98] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), - [100] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109), - [102] = {.entry = {.count = 1, .reusable = false}}, SHIFT(114), - [104] = {.entry = {.count = 1, .reusable = false}}, SHIFT(53), - [106] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), - [108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [110] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [112] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [114] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), - [116] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [118] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(53), - [121] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [123] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(53), - [126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), - [128] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), - [130] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), - [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), - [134] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), - [136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [138] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76), - [140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), - [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), - [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), - [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), - [150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), - [152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [154] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [156] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [158] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), - [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [168] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), - [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), - [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), - [174] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [176] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(10), - [179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), - [181] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [183] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [185] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [187] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), - [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [191] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(88), - [194] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), - [196] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), - [198] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), - [200] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(71), - [203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), - [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), - [207] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [209] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), - [211] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), - [213] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), - [215] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), - [217] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), - [219] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), - [221] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), - [223] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), - [225] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), - [227] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), - [229] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), - [231] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), - [233] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), - [235] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), - [237] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), - [239] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), - [241] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), - [243] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 14), - [245] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_soong_config_variable, 6, .production_id = 15), - [247] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [249] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), - [251] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [253] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [255] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 5), - [257] = {.entry = {.count = 1, .reusable = false}}, SHIFT(122), - [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), - [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [263] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), - [265] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [267] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [269] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), - [271] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), - [273] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), - [275] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [277] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), - [279] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [281] = {.entry = {.count = 1, .reusable = false}}, SHIFT(121), - [283] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [285] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), - [287] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), - [289] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), - [291] = {.entry = {.count = 1, .reusable = false}}, SHIFT(97), - [293] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), - [295] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), - [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_default_case, 3, .production_id = 16), - [299] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 16), - [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 4), - [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), - [305] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(24), + [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(20), + [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), + [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), + [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(99), + [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(111), + [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [37] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), + [39] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), + [41] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(11), + [44] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(40), + [47] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(101), + [50] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), + [52] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), + [54] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), + [56] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), + [58] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), + [60] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), + [62] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), + [64] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(37), + [67] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), + [69] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), + [71] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), + [73] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), + [75] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), + [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), + [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), + [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), + [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), + [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), + [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), + [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), + [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), + [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), + [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), + [99] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), + [101] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), + [103] = {.entry = {.count = 1, .reusable = false}}, SHIFT(89), + [105] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109), + [107] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(48), + [110] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), + [112] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(48), + [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), + [119] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), + [121] = {.entry = {.count = 1, .reusable = false}}, SHIFT(48), + [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), + [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), + [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), + [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), + [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), + [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), + [135] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), + [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), + [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), + [143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [145] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [147] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), + [151] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(7), + [154] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), + [156] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), + [158] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), + [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), + [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), + [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), + [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65), + [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), + [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [176] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), + [178] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), + [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), + [182] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), + [184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), + [186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [192] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), + [194] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), + [196] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(88), + [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), + [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), + [203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), + [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), + [207] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(86), + [210] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), + [212] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), + [214] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), + [216] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), + [218] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), + [220] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), + [222] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), + [224] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), + [226] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), + [228] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), + [230] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), + [232] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), + [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), + [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), + [238] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), + [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), + [242] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), + [244] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), + [246] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), + [248] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), + [250] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 16), + [252] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), + [254] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), + [256] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112), + [258] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), + [260] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), + [262] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [264] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 14), + [266] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [268] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), + [270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), + [272] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), + [274] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80), + [276] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), + [280] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), + [282] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [284] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), + [286] = {.entry = {.count = 1, .reusable = false}}, SHIFT(94), + [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_soong_config_variable, 6, .production_id = 15), + [290] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [292] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), }; #ifdef __cplusplus diff --git a/test/corpus/select.txt b/test/corpus/select.txt index 166463a..0e493bb 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -135,10 +135,9 @@ foo = select(variant("VARIANT"), { (select_case (interpreted_string_literal) (interpreted_string_literal)) - (ERROR - (select_case - (default) - (unset))) + (select_case + (default) + (unset)) (select_case (interpreted_string_literal) (interpreted_string_literal))