very simple ast expension working

This commit is contained in:
Maieul BOYER 2024-07-02 13:11:42 +02:00
parent dc3f8cfba9
commit c10ce8b165
No known key found for this signature in database
5 changed files with 118 additions and 25 deletions

View file

@ -43,7 +43,6 @@ enum e_ast_node_kind
AST_VARIABLE_ASSIGNMENT = S_AST_NONE | 0x000E,
AST_EXTGLOB = S_AST_NONE | 0x001A,
AST_REGEX = S_AST_NONE | 0x001B,
AST_NUMBER = S_AST_NONE | 0x001C,
AST_FILE_REDIRECTION = S_AST_REDIRECT | 0x000F,
AST_HEREDOC_REDIRECTION = S_AST_REDIRECT | 0x0010,
@ -79,7 +78,6 @@ union u_ast_node_data {
t_ast_heredoc_redirection heredoc_redirection;
t_ast_if if_;
t_ast_list list;
t_ast_number number;
t_ast_pipeline pipeline;
t_ast_program program;
t_ast_raw_string raw_string;

View file

@ -41,7 +41,6 @@ typedef struct s_ast_function_definition t_ast_function_definition;
typedef struct s_ast_heredoc_redirection t_ast_heredoc_redirection;
typedef struct s_ast_if t_ast_if;
typedef struct s_ast_list t_ast_list;
typedef struct s_ast_number t_ast_number;
typedef struct s_ast_pipeline t_ast_pipeline;
typedef struct s_ast_program t_ast_program;
typedef struct s_ast_raw_string t_ast_raw_string;

View file

@ -396,13 +396,4 @@ struct s_ast_regex
t_str pattern;
};
/// Regex
/// ```shell
/// ~pattern
/// ```
struct s_ast_number
{
t_i64 number;
};
#endif /* AST_RAW_STRUCTS_H */