aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index 6ea9a51..c0d611f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/28 11:45:44 by cacharle #+# #+# */
-/* Updated: 2020/06/15 13:43:38 by charles ### ########.fr */
+/* Updated: 2020/06/16 10:11:30 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -42,17 +42,18 @@ int main(int argc, char **argv, char **envp)
{
t_ftlst *lex_out = lexer(ft_strdup(argv[2]));
- ft_lstiter(lex_out, token_debug);
+ /* ft_lstiter(lex_out, token_debug); */
t_ret *parser_out = parse(lex_out);
- // printf("%s\n", ((t_token *)parser_out->ast->cmd_argv->data)->content);
- // printf("%s\n", ((t_token *)parser_out->ast->redirs->data)->content);
+ /* printf("%p\n", parser_out->ast->cmd_argv); */
+ /* printf("%p\n", parser_out->ast->redirs); */
- //ft_lstiter(parser_out->ast->cmd_argv, token_debug);
+ /* ft_lstiter(parser_out->ast->cmd_argv, token_debug); */
+ /* ft_lstiter(parser_out->ast->redirs, token_debug); */
- //int eval_out = eval_cmd(env, path, parser_out->ast);
- // (void)eval_out;
+ int eval_out = eval_cmd(env, path, parser_out->ast);
+ (void)eval_out;
}
ft_htdestroy(path, free);