ast bigest fix + norm

This commit is contained in:
gazhonsepaskwa
2025-02-15 13:43:26 +01:00
parent d9687a8e3a
commit 07cf3a7066
11 changed files with 70 additions and 54 deletions

View File

@@ -39,7 +39,7 @@ int builtin_export(char **arg, t_ast_n *head);
//UTILS
int count_char(char *str);
int is_append(char *str);
int is_append(char *str);
char **key_value(char *str);
void set_new_export(char *str, t_ast_n *node);
int count_args(char **tab);

View File

@@ -19,5 +19,7 @@ typedef struct s_msh t_msh;
void read_hereinput(char *limiter, t_node *lst, t_msh *msh);
void parse_heredoc(char *limiter, t_node *lst, t_msh *msh);
void create_heredoc(t_node *lst, t_msh *msh);
void end_heredoc(char *buf, t_msh *msh, t_node *lst, char *limiter);
void exit_heredoc(char *limiter, t_msh *msh, t_node *lst);
#endif

View File

@@ -19,6 +19,8 @@ typedef struct s_msh t_msh;
t_ast_n *parser(char *input, t_msh *msh);
void interpret_cmd(char **input, t_msh *msh);
int unexpected_token(t_node *node);
int is_aop_operator(t_node *node);
int is_redir(t_node *cpy);
@@ -27,8 +29,7 @@ int syntax_err_mess(char *token_base, int selected);
int check_unclosed(char *c, t_node *node);
int check_unclosed_quote(char *c, t_node *node);
void interpret_cmd(char **input, t_msh *msh);
void end_heredoc(char *buf, t_msh *msh, t_node *lst, char *limiter);
void exit_heredoc(char *limiter, t_msh *msh, t_node *lst);
int last_tok_redir(t_node *lst);
int last_tok_subsh(t_node *lst);
#endif