very simple ast expension working
This commit is contained in:
parent
dc3f8cfba9
commit
c10ce8b165
5 changed files with 118 additions and 25 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue