Started working on ast

This commit is contained in:
Maieul BOYER 2024-06-11 16:08:12 +02:00
parent 9aee1f2272
commit 1d4dc219db
No known key found for this signature in database
1344 changed files with 118659 additions and 107610 deletions

View file

@ -13,8 +13,7 @@
#ifndef SYMBOLS_H
# define SYMBOLS_H
enum e_symbols
{
enum e_symbols {
sym_word = 1,
anon_sym_for = 2,
anon_sym_in = 3,
@ -91,113 +90,113 @@ enum e_symbols
anon_sym_DQUOTE = 74,
sym_string_content = 75,
sym_raw_string = 76,
aux_sym_number_token1 = 77,
aux_sym_number_token2 = 78,
anon_sym_POUND = 79,
anon_sym_DOLLAR_LBRACE = 80,
anon_sym_COLON_DASH = 81,
anon_sym_DASH3 = 82,
anon_sym_COLON_EQ = 83,
anon_sym_EQ2 = 84,
anon_sym_COLON_QMARK = 85,
anon_sym_QMARK2 = 86,
anon_sym_COLON_PLUS = 87,
anon_sym_PLUS3 = 88,
anon_sym_PERCENT_PERCENT = 89,
aux_sym_expansion_regex_token1 = 90,
anon_sym_DOLLAR_LPAREN = 91,
anon_sym_BQUOTE = 92,
sym_comment = 93,
sym__comment_word = 94,
aux_sym__simple_variable_name_token1 = 95,
aux_sym__multiline_variable_name_token1 = 96,
anon_sym_AT = 97,
anon_sym_0 = 98,
anon_sym__ = 99,
anon_sym_SEMI = 100,
sym_heredoc_start = 101,
sym_simple_heredoc_body = 102,
sym__heredoc_body_beginning = 103,
sym_heredoc_content = 104,
sym_heredoc_end = 105,
sym_file_descriptor = 106,
sym__empty_value = 107,
sym__concat = 108,
sym_variable_name = 109,
sym_regex = 110,
sym__expansion_word = 111,
sym_extglob_pattern = 112,
sym__bare_dollar = 113,
sym__immediate_double_hash = 114,
sym___error_recovery = 115,
sym_program = 116,
sym__statements = 117,
aux_sym__terminated_statement = 118,
sym__statement_not_pipeline = 119,
sym_redirected_statement = 120,
sym_for_statement = 121,
sym_while_statement = 122,
sym_do_group = 123,
sym_if_statement = 124,
sym_elif_clause = 125,
sym_else_clause = 126,
sym_case_statement = 127,
sym__case_item_last = 128,
sym_case_item = 129,
sym_function_definition = 130,
sym_compound_statement = 131,
sym_subshell = 132,
sym_pipeline = 133,
sym_list = 134,
sym_negated_command = 135,
sym_command = 136,
sym_command_name = 137,
sym_variable_assignment = 138,
sym_variable_assignments = 139,
sym_file_redirect = 140,
sym_heredoc_redirect = 141,
sym__heredoc_pipeline = 142,
sym__heredoc_expression = 143,
aux_sym__heredoc_command = 144,
sym__heredoc_body = 145,
sym_heredoc_body = 146,
sym__simple_heredoc_body = 147,
sym_arithmetic_expansion = 148,
sym__arithmetic_expression = 149,
sym_arithmetic_literal = 150,
sym_arithmetic_binary_expression = 151,
sym_arithmetic_ternary_expression = 152,
sym_arithmetic_unary_expression = 153,
sym_arithmetic_postfix_expression = 154,
sym_arithmetic_parenthesized_expression = 155,
sym_concatenation = 156,
sym_string = 157,
sym_number = 158,
sym_simple_expansion = 159,
sym_expansion = 160,
sym__expansion_body = 161,
sym_expansion_expression = 162,
sym_expansion_regex = 163,
sym__concatenation_in_expansion = 164,
sym_command_substitution = 165,
sym__extglob_blob = 166,
aux_sym__statements_repeat1 = 167,
aux_sym_redirected_statement_repeat1 = 168,
aux_sym_redirected_statement_repeat2 = 169,
aux_sym_for_statement_repeat1 = 170,
aux_sym_if_statement_repeat1 = 171,
aux_sym_case_statement_repeat1 = 172,
aux_sym__case_item_last_repeat1 = 173,
aux_sym__case_item_last_repeat2 = 174,
aux_sym_pipeline_repeat1 = 175,
aux_sym_command_repeat1 = 176,
aux_sym_command_repeat2 = 177,
aux_sym_variable_assignments_repeat1 = 178,
aux_sym_heredoc_body_repeat1 = 179,
aux_sym_concatenation_repeat1 = 180,
aux_sym_string_repeat1 = 181,
aux_sym_expansion_regex_repeat1 = 182,
aux_sym__concatenation_in_expansion_repeat1 = 183,
sym_number = 77,
anon_sym_POUND = 78,
anon_sym_DOLLAR_LBRACE = 79,
anon_sym_COLON_DASH = 80,
anon_sym_DASH3 = 81,
anon_sym_COLON_EQ = 82,
anon_sym_EQ2 = 83,
anon_sym_COLON_QMARK = 84,
anon_sym_QMARK2 = 85,
anon_sym_COLON_PLUS = 86,
anon_sym_PLUS3 = 87,
anon_sym_PERCENT_PERCENT = 88,
aux_sym_expansion_regex_token1 = 89,
anon_sym_DOLLAR_LPAREN = 90,
anon_sym_BQUOTE = 91,
sym_comment = 92,
sym__comment_word = 93,
aux_sym__simple_variable_name_token1 = 94,
aux_sym__multiline_variable_name_token1 = 95,
anon_sym_AT = 96,
anon_sym_0 = 97,
anon_sym__ = 98,
anon_sym_SEMI = 99,
sym_heredoc_start = 100,
sym_simple_heredoc_body = 101,
sym__heredoc_body_beginning = 102,
sym_heredoc_content = 103,
sym_heredoc_end = 104,
sym_file_descriptor = 105,
sym__empty_value = 106,
sym__concat = 107,
sym_variable_name = 108,
sym_regex = 109,
sym__expansion_word = 110,
sym_extglob_pattern = 111,
sym__bare_dollar = 112,
sym__immediate_double_hash = 113,
sym___error_recovery = 114,
sym_program = 115,
sym__statements = 116,
aux_sym__terminated_statement = 117,
sym__statement_not_pipeline = 118,
sym_redirected_statement = 119,
sym_for_statement = 120,
sym_while_statement = 121,
sym_do_group = 122,
sym_if_statement = 123,
sym_elif_clause = 124,
sym_else_clause = 125,
sym_case_statement = 126,
sym__case_item_last = 127,
sym_case_item = 128,
sym_function_definition = 129,
sym_compound_statement = 130,
sym_subshell = 131,
sym_pipeline = 132,
sym_list = 133,
sym_negated_command = 134,
sym_command = 135,
sym_command_name = 136,
sym_variable_assignment = 137,
sym_variable_assignments = 138,
sym_file_redirect = 139,
sym_heredoc_redirect = 140,
sym__heredoc_pipeline = 141,
sym__heredoc_expression = 142,
aux_sym__heredoc_command = 143,
sym__heredoc_body = 144,
sym_heredoc_body = 145,
sym__simple_heredoc_body = 146,
sym_arithmetic_expansion = 147,
sym__arithmetic_expression = 148,
sym_arithmetic_literal = 149,
sym_arithmetic_binary_expression = 150,
sym_arithmetic_ternary_expression = 151,
sym_arithmetic_unary_expression = 152,
sym_arithmetic_postfix_expression = 153,
sym_arithmetic_parenthesized_expression = 154,
sym_concatenation = 155,
sym_string = 156,
sym_simple_expansion = 157,
sym_expansion = 158,
sym__expansion_body = 159,
sym_expansion_expression = 160,
sym_expansion_regex = 161,
sym__concatenation_in_expansion = 162,
sym_command_substitution = 163,
sym__extglob_blob = 164,
aux_sym__statements_repeat1 = 165,
aux_sym_redirected_statement_repeat1 = 166,
aux_sym_redirected_statement_repeat2 = 167,
aux_sym_for_statement_repeat1 = 168,
aux_sym_if_statement_repeat1 = 169,
aux_sym_case_statement_repeat1 = 170,
aux_sym__case_item_last_repeat1 = 171,
aux_sym__case_item_last_repeat2 = 172,
aux_sym_pipeline_repeat1 = 173,
aux_sym_command_repeat1 = 174,
aux_sym_command_repeat2 = 175,
aux_sym_variable_assignments_repeat1 = 176,
aux_sym_heredoc_body_repeat1 = 177,
aux_sym_concatenation_repeat1 = 178,
aux_sym_string_repeat1 = 179,
aux_sym_expansion_regex_repeat1 = 180,
aux_sym__concatenation_in_expansion_repeat1 = 181,
alias_sym_statements = 182,
alias_sym_terminator = 183,
};
#endif // SYMBOLS_H