Skip to content
exec.h 702 B
Newer Older
Seblu's avatar
Seblu committed
/*
** execution.h for 42sh
**
** Made by Seblu
** Login   <seblu@epita.fr>
**
** Started on  Sun Mar 30 16:02:07 2006 Seblu
Seblu's avatar
Seblu committed
** Last update Thu Nov 16 16:06:41 2006 seblu
Seblu's avatar
Seblu committed
*/

#ifndef EXEC_H_
# define EXEC_H_

# include <assert.h>
# include "../ast/ast.h"
# include "../shell/shell.h"
Seblu's avatar
Seblu committed

Seblu's avatar
Seblu committed
# define DEBUG_EXEC 0

Seblu's avatar
Seblu committed
void		exec_node(s_ast_node *node);
Seblu's avatar
Seblu committed

void		exec_cmd(s_cmd_node *cmd);
Seblu's avatar
Seblu committed
void		exec_and(s_bin_node *node);
void		exec_or(s_bin_node *node);
void		exec_bang(s_bin_node *node);
void		exec_if(s_if_node *node);
Seblu's avatar
Seblu committed
void		exec_red(s_red_node *red);
Seblu's avatar
Seblu committed
void		exec_while(s_while_node *node);
Seblu's avatar
Seblu committed
void		exec_sep(s_bin_node *node);
void		exec_sepand(s_bin_node *node);
void		exec_funcdec(s_funcdec_node *node);
Seblu's avatar
Seblu committed

#endif