21 lines
300 B
C
21 lines
300 B
C
#ifndef EXEC_H
|
|
# define EXEC_H
|
|
# include "lexer_parser.h"
|
|
|
|
typedef struct s_exec t_exec;
|
|
|
|
struct s_exec
|
|
{
|
|
t_type type;
|
|
int (*f)(t_btree *ast);
|
|
};
|
|
|
|
extern t_exec g_exec[];
|
|
|
|
int ft_exec(t_btree *ast);
|
|
|
|
int ft_exec(t_btree *ast);
|
|
int exec_semi(t_btree *ast);
|
|
int exec_pipe(t_btree *ast);
|
|
|
|
#endif
|