Skip to content
exec.h 756 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 Sun Nov 12 16:41:42 2006 Seblu
Seblu's avatar
Seblu committed
*/

#ifndef EXEC_H_
# define EXEC_H_

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

Seblu's avatar
Seblu committed
void		exec_node(s_ast_node *node);
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

Seblu's avatar
Seblu committed

/* void exec_for(struct s_for *node, struct s_42sh *sh); */
/* void exec_case(struct s_case *node, struct s_42sh *sh); */
/* void exec_funcdec(struct s_funcdec *node, struct s_42sh *sh); */

#endif