minishell/parser/static/headers/symbols.h
2024-08-01 13:53:00 +02:00

175 lines
5.1 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_in = 3,
anon_sym_while = 4,
anon_sym_until = 5,
anon_sym_do = 6,
anon_sym_done = 7,
anon_sym_if = 8,
anon_sym_then = 9,
anon_sym_fi = 10,
anon_sym_elif = 11,
anon_sym_else = 12,
anon_sym_case = 13,
anon_sym_esac = 14,
anon_sym_LPAREN = 15,
anon_sym_PIPE = 16,
anon_sym_RPAREN = 17,
anon_sym_LF = 18,
anon_sym_SEMI_SEMI = 19,
anon_sym_LBRACE = 20,
anon_sym_RBRACE = 21,
anon_sym_AMP_AMP = 22,
anon_sym_PIPE_PIPE = 23,
anon_sym_BANG = 24,
anon_sym_EQ = 25,
anon_sym_LT = 26,
anon_sym_GT = 27,
anon_sym_GT_GT = 28,
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