lexer (need refactoring)
+ littles miscs
This commit is contained in:
11
srcs/main.c
11
srcs/main.c
@@ -6,7 +6,7 @@
|
||||
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/10/04 05:59:26 by lperrey #+# #+# */
|
||||
/* Updated: 2021/10/10 08:50:20 by lperrey ### ########.fr */
|
||||
/* Updated: 2021/10/19 20:23:19 by lperrey ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -28,8 +28,13 @@ void shell_loop(t_all *c)
|
||||
builtin_env(0, NULL, c);
|
||||
else if (!ft_strncmp(line_input, "exit", 5)) // temp placeholder
|
||||
builtin_exit(0, NULL, c);
|
||||
else
|
||||
printf("echo: %s\n", line_input);
|
||||
else // temp placeholder
|
||||
{
|
||||
c->token_list = input_to_tokens(line_input);
|
||||
ft_lstprint((t_list *)c->token_list, 1);
|
||||
ft_lstclear((t_list **)&c->token_list, free);
|
||||
//printf("echo: %s\n", line_input);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user