int exec_simple_command(char **args, t_shell *shell)
Execute a simple command (builtin or external)
static int exec_command_node(t_ast *node, t_shell *shell)
Execute a NODE_COMMAND AST node.
int executor(t_ast *node, t_shell *shell)
Main AST executor that dispatches by node type.
Executor prototypes for commands, pipes, redirections & heredocs.
int handle_pipe(t_ast *node, t_shell *shell)
Execute a pipe node by forking left and right children.
int handle_redir(t_ast *node, t_shell *shell)
Execute a redirection node.
t_ast_data data
cmd, redir or binary data
t_node_type type
To determine which union member to pick.
char ** args
NULL terminated args array.
Lexer, tokenizer, expander, and quote handling prototypes.