230 lines
6.6 KiB
C
230 lines
6.6 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* symbols.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/04/14 19:17:54 by maiboyer #+# #+# */
|
|
/* Updated: 2024/04/14 19:18:20 by maiboyer ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef SYMBOLS_H
|
|
# define SYMBOLS_H
|
|
|
|
enum e_symbols {
|
|
sym_word = 1,
|
|
anon_sym_for = 2,
|
|
anon_sym_select = 3,
|
|
anon_sym_in = 4,
|
|
anon_sym_while = 5,
|
|
anon_sym_until = 6,
|
|
anon_sym_do = 7,
|
|
anon_sym_done = 8,
|
|
anon_sym_if = 9,
|
|
anon_sym_then = 10,
|
|
anon_sym_fi = 11,
|
|
anon_sym_elif = 12,
|
|
anon_sym_else = 13,
|
|
anon_sym_case = 14,
|
|
anon_sym_esac = 15,
|
|
anon_sym_LPAREN = 16,
|
|
anon_sym_PIPE = 17,
|
|
anon_sym_RPAREN = 18,
|
|
anon_sym_SEMI_SEMI = 19,
|
|
anon_sym_SEMI_AMP = 20,
|
|
anon_sym_SEMI_SEMI_AMP = 21,
|
|
anon_sym_function = 22,
|
|
anon_sym_LBRACE = 23,
|
|
anon_sym_RBRACE = 24,
|
|
anon_sym_PIPE_AMP = 25,
|
|
anon_sym_AMP_AMP = 26,
|
|
anon_sym_PIPE_PIPE = 27,
|
|
anon_sym_BANG = 28,
|
|
anon_sym_declare = 29,
|
|
anon_sym_typeset = 30,
|
|
anon_sym_export = 31,
|
|
anon_sym_readonly = 32,
|
|
anon_sym_local = 33,
|
|
anon_sym_unset = 34,
|
|
anon_sym_unsetenv = 35,
|
|
anon_sym_EQ = 36,
|
|
anon_sym_LT = 37,
|
|
anon_sym_GT = 38,
|
|
anon_sym_GT_GT = 39,
|
|
anon_sym_AMP_GT = 40,
|
|
anon_sym_AMP_GT_GT = 41,
|
|
anon_sym_LT_AMP = 42,
|
|
anon_sym_GT_AMP = 43,
|
|
anon_sym_GT_PIPE = 44,
|
|
anon_sym_LT_AMP_DASH = 45,
|
|
anon_sym_GT_AMP_DASH = 46,
|
|
anon_sym_LT_LT = 47,
|
|
anon_sym_LT_LT_DASH = 48,
|
|
aux_sym_heredoc_redirect_token1 = 49,
|
|
anon_sym_DOLLAR_LPAREN_LPAREN = 50,
|
|
anon_sym_COMMA = 51,
|
|
anon_sym_RPAREN_RPAREN = 52,
|
|
aux_sym_brace_expression_token1 = 53,
|
|
anon_sym_DOT_DOT = 54,
|
|
anon_sym_RBRACE2 = 55,
|
|
anon_sym_PLUS_EQ = 56,
|
|
anon_sym_DASH_EQ = 57,
|
|
anon_sym_STAR_EQ = 58,
|
|
anon_sym_SLASH_EQ = 59,
|
|
anon_sym_PERCENT_EQ = 60,
|
|
anon_sym_LT_LT_EQ = 61,
|
|
anon_sym_GT_GT_EQ = 62,
|
|
anon_sym_AMP_EQ = 63,
|
|
anon_sym_CARET_EQ = 64,
|
|
anon_sym_PIPE_EQ = 65,
|
|
anon_sym_CARET = 66,
|
|
anon_sym_AMP = 67,
|
|
anon_sym_EQ_EQ = 68,
|
|
anon_sym_BANG_EQ = 69,
|
|
anon_sym_LT_EQ = 70,
|
|
anon_sym_GT_EQ = 71,
|
|
anon_sym_PLUS = 72,
|
|
anon_sym_DASH = 73,
|
|
anon_sym_STAR = 74,
|
|
anon_sym_SLASH = 75,
|
|
anon_sym_PERCENT = 76,
|
|
anon_sym_QMARK = 77,
|
|
anon_sym_COLON = 78,
|
|
anon_sym_PLUS_PLUS = 79,
|
|
anon_sym_DASH_DASH = 80,
|
|
anon_sym_DASH2 = 81,
|
|
anon_sym_PLUS2 = 82,
|
|
anon_sym_TILDE = 83,
|
|
anon_sym_PLUS_PLUS2 = 84,
|
|
anon_sym_DASH_DASH2 = 85,
|
|
aux_sym_concatenation_token1 = 86,
|
|
anon_sym_DOLLAR = 87,
|
|
sym__special_character = 88,
|
|
anon_sym_DQUOTE = 89,
|
|
sym_string_content = 90,
|
|
sym_raw_string = 91,
|
|
aux_sym_number_token1 = 92,
|
|
aux_sym_number_token2 = 93,
|
|
anon_sym_POUND = 94,
|
|
anon_sym_DOLLAR_LBRACE = 95,
|
|
anon_sym_RBRACE3 = 96,
|
|
anon_sym_COLON_DASH = 97,
|
|
anon_sym_DASH3 = 98,
|
|
anon_sym_COLON_EQ = 99,
|
|
anon_sym_EQ2 = 100,
|
|
anon_sym_COLON_QMARK = 101,
|
|
anon_sym_QMARK2 = 102,
|
|
anon_sym_COLON_PLUS = 103,
|
|
anon_sym_PLUS3 = 104,
|
|
anon_sym_PERCENT_PERCENT = 105,
|
|
aux_sym__expansion_regex_token1 = 106,
|
|
anon_sym_DOLLAR_LPAREN = 107,
|
|
anon_sym_BQUOTE = 108,
|
|
anon_sym_DOLLAR_BQUOTE = 109,
|
|
sym_comment = 110,
|
|
sym__comment_word = 111,
|
|
aux_sym__simple_variable_name_token1 = 112,
|
|
aux_sym__multiline_variable_name_token1 = 113,
|
|
anon_sym_AT = 114,
|
|
anon_sym_0 = 115,
|
|
anon_sym__ = 116,
|
|
anon_sym_SEMI = 117,
|
|
anon_sym_RBRACK = 118,
|
|
sym_heredoc_start = 119,
|
|
sym_simple_heredoc_body = 120,
|
|
sym__heredoc_body_beginning = 121,
|
|
sym_heredoc_content = 122,
|
|
sym_heredoc_end = 123,
|
|
sym_file_descriptor = 124,
|
|
sym__empty_value = 125,
|
|
sym__concat = 126,
|
|
sym_variable_name = 127,
|
|
sym_test_operator = 128,
|
|
sym_regex = 129,
|
|
sym__regex_no_slash = 130,
|
|
sym__regex_no_space = 131,
|
|
sym__expansion_word = 132,
|
|
sym_extglob_pattern = 133,
|
|
sym__bare_dollar = 134,
|
|
sym__brace_start = 135,
|
|
sym__immediate_double_hash = 136,
|
|
sym___error_recovery = 137,
|
|
sym_program = 138,
|
|
sym__statements = 139,
|
|
aux_sym__terminated_statement = 140,
|
|
sym__statement_not_pipeline = 141,
|
|
sym_redirected_statement = 142,
|
|
sym_for_statement = 143,
|
|
sym_while_statement = 144,
|
|
sym_do_group = 145,
|
|
sym_if_statement = 146,
|
|
sym_elif_clause = 147,
|
|
sym_else_clause = 148,
|
|
sym_case_statement = 149,
|
|
sym_case_item = 150,
|
|
sym_last_case_item = 151,
|
|
sym_function_definition = 152,
|
|
sym_compound_statement = 153,
|
|
sym_subshell = 154,
|
|
sym_pipeline = 155,
|
|
sym_list = 156,
|
|
sym_negated_command = 157,
|
|
sym_declaration_command = 158,
|
|
sym_unset_command = 159,
|
|
sym_command = 160,
|
|
sym_command_name = 161,
|
|
sym_variable_assignment = 162,
|
|
sym_variable_assignments = 163,
|
|
sym_file_redirect = 164,
|
|
sym_heredoc_redirect = 165,
|
|
sym__heredoc_pipeline = 166,
|
|
sym__heredoc_expression = 167,
|
|
aux_sym__heredoc_command = 168,
|
|
sym__heredoc_body = 169,
|
|
sym_heredoc_body = 170,
|
|
sym__simple_heredoc_body = 171,
|
|
sym_arithmetic_expansion = 172,
|
|
sym_brace_expression = 173,
|
|
sym__arithmetic_expression = 174,
|
|
sym__arithmetic_literal = 175,
|
|
sym__arithmetic_binary_expression = 176,
|
|
sym__arithmetic_ternary_expression = 177,
|
|
sym__arithmetic_unary_expression = 178,
|
|
sym__arithmetic_postfix_expression = 179,
|
|
sym__arithmetic_parenthesized_expression = 180,
|
|
sym_concatenation = 181,
|
|
sym_string = 182,
|
|
sym_number = 183,
|
|
sym_simple_expansion = 184,
|
|
sym_expansion = 185,
|
|
sym__expansion_body = 186,
|
|
sym__expansion_expression = 187,
|
|
sym__expansion_regex = 188,
|
|
sym__concatenation_in_expansion = 189,
|
|
sym_command_substitution = 190,
|
|
sym__extglob_blob = 191,
|
|
aux_sym__statements_repeat1 = 192,
|
|
aux_sym_redirected_statement_repeat1 = 193,
|
|
aux_sym_redirected_statement_repeat2 = 194,
|
|
aux_sym_for_statement_repeat1 = 195,
|
|
aux_sym_if_statement_repeat1 = 196,
|
|
aux_sym_case_statement_repeat1 = 197,
|
|
aux_sym_case_item_repeat1 = 198,
|
|
aux_sym_pipeline_repeat1 = 199,
|
|
aux_sym_declaration_command_repeat1 = 200,
|
|
aux_sym_unset_command_repeat1 = 201,
|
|
aux_sym_command_repeat1 = 202,
|
|
aux_sym_command_repeat2 = 203,
|
|
aux_sym_variable_assignments_repeat1 = 204,
|
|
aux_sym_heredoc_body_repeat1 = 205,
|
|
aux_sym__literal_repeat1 = 206,
|
|
aux_sym_arithmetic_expansion_repeat1 = 207,
|
|
aux_sym_concatenation_repeat1 = 208,
|
|
aux_sym_string_repeat1 = 209,
|
|
aux_sym__expansion_regex_repeat1 = 210,
|
|
aux_sym__concatenation_in_expansion_repeat1 = 211,
|
|
};
|
|
|
|
#endif // SYMBOLS_H
|