gros merge
This commit is contained in:
43
includes/parser/drawio.h
Normal file
43
includes/parser/drawio.h
Normal file
@@ -0,0 +1,43 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* drawio.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: nalebrun <nalebrun@student.s19.be> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/01/27 14:20:35 by nalebrun #+# #+# */
|
||||
/* Updated: 2025/01/27 14:20:35 by nalebrun ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef DRAWIO_H
|
||||
# define DRAWIO_H
|
||||
|
||||
# include "../minishell.h"
|
||||
|
||||
typedef struct s_dio_node
|
||||
{
|
||||
const char *st;
|
||||
const char *redir;
|
||||
char *cmd;
|
||||
char *args;
|
||||
char *inf;
|
||||
char *outf;
|
||||
} t_dio_node;
|
||||
|
||||
typedef struct s_elems
|
||||
{
|
||||
t_dio_elem rect;
|
||||
t_dio_elem arrow;
|
||||
} t_elems;
|
||||
|
||||
// internal
|
||||
char *replace_ampercent(char *src);
|
||||
char *replace_left_red(char *src);
|
||||
t_dio_node get_cmd_txt(t_ast_n *node);
|
||||
int print_ast(t_ast_n *node, t_elems *e, int fd);
|
||||
|
||||
// external
|
||||
void gen_dio_linked_list(t_node *head, int fd);
|
||||
void gen_dio_ast(t_ast_n *head, int fd);
|
||||
#endif
|
||||
Reference in New Issue
Block a user