Changed even more the the grammar
This commit is contained in:
parent
b4f948d98d
commit
e7e395ed10
823 changed files with 69578 additions and 84107 deletions
|
|
@ -14,14 +14,14 @@
|
|||
# define CONSTANTS_H
|
||||
|
||||
# define LANGUAGE_VERSION 14
|
||||
# define STATE_COUNT 1805
|
||||
# define STATE_COUNT 1757
|
||||
# define LARGE_STATE_COUNT 2
|
||||
# define SYMBOL_COUNT 179
|
||||
# define SYMBOL_COUNT 157
|
||||
# define ALIAS_COUNT 0
|
||||
# define TOKEN_COUNT 110
|
||||
# define TOKEN_COUNT 88
|
||||
# define EXTERNAL_TOKEN_COUNT 20
|
||||
# define FIELD_COUNT 20
|
||||
# define MAX_ALIAS_SEQUENCE_LENGTH 8
|
||||
# define PRODUCTION_ID_COUNT 78
|
||||
# define PRODUCTION_ID_COUNT 77
|
||||
|
||||
#endif // CONSTANTS_H
|
||||
|
|
|
|||
|
|
@ -42,156 +42,134 @@ enum e_symbols {
|
|||
anon_sym_LT = 26,
|
||||
anon_sym_GT = 27,
|
||||
anon_sym_GT_GT = 28,
|
||||
anon_sym_LT_AMP = 29,
|
||||
anon_sym_GT_AMP = 30,
|
||||
anon_sym_GT_PIPE = 31,
|
||||
anon_sym_LT_GT = 32,
|
||||
anon_sym_LT_LT = 33,
|
||||
anon_sym_LT_LT_DASH = 34,
|
||||
aux_sym_heredoc_redirect_token1 = 35,
|
||||
anon_sym_DOLLAR_LPAREN_LPAREN = 36,
|
||||
anon_sym_RPAREN_RPAREN = 37,
|
||||
anon_sym_PLUS_EQ = 38,
|
||||
anon_sym_DASH_EQ = 39,
|
||||
anon_sym_STAR_EQ = 40,
|
||||
anon_sym_SLASH_EQ = 41,
|
||||
anon_sym_PERCENT_EQ = 42,
|
||||
anon_sym_LT_LT_EQ = 43,
|
||||
anon_sym_GT_GT_EQ = 44,
|
||||
anon_sym_AMP_EQ = 45,
|
||||
anon_sym_CARET_EQ = 46,
|
||||
anon_sym_PIPE_EQ = 47,
|
||||
anon_sym_CARET = 48,
|
||||
anon_sym_AMP = 49,
|
||||
anon_sym_EQ_EQ = 50,
|
||||
anon_sym_BANG_EQ = 51,
|
||||
anon_sym_LT_EQ = 52,
|
||||
anon_sym_GT_EQ = 53,
|
||||
anon_sym_PLUS = 54,
|
||||
anon_sym_DASH = 55,
|
||||
anon_sym_STAR = 56,
|
||||
anon_sym_SLASH = 57,
|
||||
anon_sym_PERCENT = 58,
|
||||
anon_sym_QMARK = 59,
|
||||
anon_sym_COLON = 60,
|
||||
anon_sym_PLUS_PLUS = 61,
|
||||
anon_sym_DASH_DASH = 62,
|
||||
anon_sym_DASH2 = 63,
|
||||
anon_sym_PLUS2 = 64,
|
||||
anon_sym_PLUS_PLUS2 = 65,
|
||||
anon_sym_DASH_DASH2 = 66,
|
||||
aux_sym_concatenation_token1 = 67,
|
||||
anon_sym_DOLLAR = 68,
|
||||
anon_sym_DQUOTE = 69,
|
||||
sym_string_content = 70,
|
||||
sym_raw_string = 71,
|
||||
sym_number = 72,
|
||||
anon_sym_POUND = 73,
|
||||
anon_sym_DOLLAR_LBRACE = 74,
|
||||
anon_sym_COLON_DASH = 75,
|
||||
anon_sym_DASH3 = 76,
|
||||
anon_sym_COLON_EQ = 77,
|
||||
anon_sym_EQ2 = 78,
|
||||
anon_sym_COLON_QMARK = 79,
|
||||
anon_sym_QMARK2 = 80,
|
||||
anon_sym_COLON_PLUS = 81,
|
||||
anon_sym_PLUS3 = 82,
|
||||
anon_sym_PERCENT_PERCENT = 83,
|
||||
aux_sym__expansion_regex_token1 = 84,
|
||||
anon_sym_DOLLAR_LPAREN = 85,
|
||||
anon_sym_BQUOTE = 86,
|
||||
sym_comment = 87,
|
||||
sym__comment_word = 88,
|
||||
aux_sym__simple_variable_name_token1 = 89,
|
||||
aux_sym__multiline_variable_name_token1 = 90,
|
||||
anon_sym_AT = 91,
|
||||
anon_sym_0 = 92,
|
||||
aux_sym__word_no_brace_token1 = 93,
|
||||
anon_sym_SEMI = 94,
|
||||
sym_heredoc_start = 95,
|
||||
sym_simple_heredoc_body = 96,
|
||||
sym__heredoc_body_beginning = 97,
|
||||
sym_heredoc_content = 98,
|
||||
sym_heredoc_end = 99,
|
||||
sym_file_descriptor = 100,
|
||||
sym__empty_value = 101,
|
||||
sym__concat = 102,
|
||||
sym_variable_name = 103,
|
||||
sym_regex = 104,
|
||||
sym__expansion_word = 105,
|
||||
sym_extglob_pattern = 106,
|
||||
sym__bare_dollar = 107,
|
||||
sym__immediate_double_hash = 108,
|
||||
sym___error_recovery = 109,
|
||||
sym_program = 110,
|
||||
sym__statements = 111,
|
||||
aux_sym__terminated_statement = 112,
|
||||
sym__statement_not_pipeline = 113,
|
||||
sym_redirected_statement = 114,
|
||||
sym_for_statement = 115,
|
||||
sym_while_statement = 116,
|
||||
sym_do_group = 117,
|
||||
sym_if_statement = 118,
|
||||
sym_elif_clause = 119,
|
||||
sym_else_clause = 120,
|
||||
sym_case_statement = 121,
|
||||
sym__case_item_last = 122,
|
||||
sym_case_item = 123,
|
||||
sym_function_definition = 124,
|
||||
sym_compound_statement = 125,
|
||||
sym_subshell = 126,
|
||||
sym_pipeline = 127,
|
||||
sym_list = 128,
|
||||
sym_negated_command = 129,
|
||||
sym_command = 130,
|
||||
sym_command_name = 131,
|
||||
sym_variable_assignment = 132,
|
||||
sym__variable_assignments = 133,
|
||||
sym_file_redirect = 134,
|
||||
sym_heredoc_redirect = 135,
|
||||
sym__heredoc_pipeline = 136,
|
||||
sym__heredoc_expression = 137,
|
||||
aux_sym__heredoc_command = 138,
|
||||
sym__heredoc_body = 139,
|
||||
sym_heredoc_body = 140,
|
||||
sym__simple_heredoc_body = 141,
|
||||
sym_arithmetic_expansion = 142,
|
||||
sym__arithmetic_expression = 143,
|
||||
sym_arithmetic_literal = 144,
|
||||
sym_arithmetic_binary_expression = 145,
|
||||
sym_arithmetic_ternary_expression = 146,
|
||||
sym_arithmetic_unary_expression = 147,
|
||||
sym_arithmetic_postfix_expression = 148,
|
||||
sym_arithmetic_parenthesized_expression = 149,
|
||||
sym_concatenation = 150,
|
||||
sym_string = 151,
|
||||
sym_simple_expansion = 152,
|
||||
sym_expansion = 153,
|
||||
sym__expansion_body = 154,
|
||||
sym__expansion_expression = 155,
|
||||
sym__expansion_regex = 156,
|
||||
sym__concatenation_in_expansion = 157,
|
||||
sym_command_substitution = 158,
|
||||
sym__extglob_blob = 159,
|
||||
sym__word_no_brace = 160,
|
||||
sym_terminator = 161,
|
||||
aux_sym__statements_repeat1 = 162,
|
||||
aux_sym_redirected_statement_repeat1 = 163,
|
||||
aux_sym_redirected_statement_repeat2 = 164,
|
||||
aux_sym_for_statement_repeat1 = 165,
|
||||
aux_sym_if_statement_repeat1 = 166,
|
||||
aux_sym_case_statement_repeat1 = 167,
|
||||
aux_sym__case_item_last_repeat1 = 168,
|
||||
aux_sym__case_item_last_repeat2 = 169,
|
||||
aux_sym_pipeline_repeat1 = 170,
|
||||
aux_sym_command_repeat1 = 171,
|
||||
aux_sym_command_repeat2 = 172,
|
||||
aux_sym__variable_assignments_repeat1 = 173,
|
||||
aux_sym_heredoc_body_repeat1 = 174,
|
||||
aux_sym_concatenation_repeat1 = 175,
|
||||
aux_sym_string_repeat1 = 176,
|
||||
aux_sym__expansion_regex_repeat1 = 177,
|
||||
aux_sym__concatenation_in_expansion_repeat1 = 178,
|
||||
anon_sym_LT_LT = 29,
|
||||
aux_sym_heredoc_redirect_token1 = 30,
|
||||
anon_sym_DOLLAR_LPAREN_LPAREN = 31,
|
||||
anon_sym_RPAREN_RPAREN = 32,
|
||||
anon_sym_PLUS = 33,
|
||||
anon_sym_DASH = 34,
|
||||
anon_sym_STAR = 35,
|
||||
anon_sym_SLASH = 36,
|
||||
anon_sym_PERCENT = 37,
|
||||
anon_sym_QMARK = 38,
|
||||
anon_sym_COLON = 39,
|
||||
anon_sym_DASH2 = 40,
|
||||
anon_sym_PLUS2 = 41,
|
||||
anon_sym_PLUS_PLUS = 42,
|
||||
anon_sym_DASH_DASH = 43,
|
||||
aux_sym_concatenation_token1 = 44,
|
||||
anon_sym_DOLLAR = 45,
|
||||
anon_sym_DQUOTE = 46,
|
||||
sym_string_content = 47,
|
||||
sym_raw_string = 48,
|
||||
sym_number = 49,
|
||||
anon_sym_POUND = 50,
|
||||
anon_sym_DOLLAR_LBRACE = 51,
|
||||
anon_sym_COLON_DASH = 52,
|
||||
anon_sym_DASH3 = 53,
|
||||
anon_sym_COLON_EQ = 54,
|
||||
anon_sym_EQ2 = 55,
|
||||
anon_sym_COLON_QMARK = 56,
|
||||
anon_sym_QMARK2 = 57,
|
||||
anon_sym_COLON_PLUS = 58,
|
||||
anon_sym_PLUS3 = 59,
|
||||
anon_sym_PERCENT_PERCENT = 60,
|
||||
aux_sym__expansion_regex_token1 = 61,
|
||||
anon_sym_DOLLAR_LPAREN = 62,
|
||||
anon_sym_BQUOTE = 63,
|
||||
sym_comment = 64,
|
||||
sym__comment_word = 65,
|
||||
aux_sym__simple_variable_name_token1 = 66,
|
||||
aux_sym__multiline_variable_name_token1 = 67,
|
||||
anon_sym_AT = 68,
|
||||
anon_sym_0 = 69,
|
||||
aux_sym__word_no_brace_token1 = 70,
|
||||
anon_sym_SEMI = 71,
|
||||
anon_sym_LT_LT_DASH = 72,
|
||||
sym_heredoc_start = 73,
|
||||
sym_simple_heredoc_body = 74,
|
||||
sym__heredoc_body_beginning = 75,
|
||||
sym_heredoc_content = 76,
|
||||
sym_heredoc_end = 77,
|
||||
sym_file_descriptor = 78,
|
||||
sym__empty_value = 79,
|
||||
sym__concat = 80,
|
||||
sym_variable_name = 81,
|
||||
sym_regex = 82,
|
||||
sym__expansion_word = 83,
|
||||
sym_extglob_pattern = 84,
|
||||
sym__bare_dollar = 85,
|
||||
sym__immediate_double_hash = 86,
|
||||
sym___error_recovery = 87,
|
||||
sym_program = 88,
|
||||
sym__statements = 89,
|
||||
aux_sym__terminated_statement = 90,
|
||||
sym__statement_not_pipeline = 91,
|
||||
sym_redirected_statement = 92,
|
||||
sym_for_statement = 93,
|
||||
sym_while_statement = 94,
|
||||
sym_do_group = 95,
|
||||
sym_if_statement = 96,
|
||||
sym_elif_clause = 97,
|
||||
sym_else_clause = 98,
|
||||
sym_case_statement = 99,
|
||||
sym__case_item_last = 100,
|
||||
sym_case_item = 101,
|
||||
sym_function_definition = 102,
|
||||
sym_compound_statement = 103,
|
||||
sym_subshell = 104,
|
||||
sym_pipeline = 105,
|
||||
sym_list = 106,
|
||||
sym_negated_command = 107,
|
||||
sym_command = 108,
|
||||
sym_command_name = 109,
|
||||
sym_variable_assignment = 110,
|
||||
sym__variable_assignments = 111,
|
||||
sym_file_redirect = 112,
|
||||
sym_heredoc_redirect = 113,
|
||||
sym__heredoc_pipeline = 114,
|
||||
sym__heredoc_expression = 115,
|
||||
aux_sym__heredoc_command = 116,
|
||||
sym__heredoc_body = 117,
|
||||
sym_heredoc_body = 118,
|
||||
sym__simple_heredoc_body = 119,
|
||||
sym_arithmetic_expansion = 120,
|
||||
sym__arithmetic_expression = 121,
|
||||
sym_arithmetic_literal = 122,
|
||||
sym_arithmetic_binary_expression = 123,
|
||||
sym_arithmetic_ternary_expression = 124,
|
||||
sym_arithmetic_unary_expression = 125,
|
||||
sym_arithmetic_postfix_expression = 126,
|
||||
sym_arithmetic_parenthesized_expression = 127,
|
||||
sym_concatenation = 128,
|
||||
sym_string = 129,
|
||||
sym_simple_expansion = 130,
|
||||
sym_expansion = 131,
|
||||
sym__expansion_body = 132,
|
||||
sym__expansion_expression = 133,
|
||||
sym__expansion_regex = 134,
|
||||
sym__concatenation_in_expansion = 135,
|
||||
sym_command_substitution = 136,
|
||||
sym__extglob_blob = 137,
|
||||
sym__word_no_brace = 138,
|
||||
sym_terminator = 139,
|
||||
aux_sym__statements_repeat1 = 140,
|
||||
aux_sym_redirected_statement_repeat1 = 141,
|
||||
aux_sym_redirected_statement_repeat2 = 142,
|
||||
aux_sym_for_statement_repeat1 = 143,
|
||||
aux_sym_if_statement_repeat1 = 144,
|
||||
aux_sym_case_statement_repeat1 = 145,
|
||||
aux_sym__case_item_last_repeat1 = 146,
|
||||
aux_sym__case_item_last_repeat2 = 147,
|
||||
aux_sym_pipeline_repeat1 = 148,
|
||||
aux_sym_command_repeat1 = 149,
|
||||
aux_sym_command_repeat2 = 150,
|
||||
aux_sym__variable_assignments_repeat1 = 151,
|
||||
aux_sym_heredoc_body_repeat1 = 152,
|
||||
aux_sym_concatenation_repeat1 = 153,
|
||||
aux_sym_string_repeat1 = 154,
|
||||
aux_sym__expansion_regex_repeat1 = 155,
|
||||
aux_sym__concatenation_in_expansion_repeat1 = 156,
|
||||
};
|
||||
|
||||
#endif // SYMBOLS_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue