lexer (need refactoring)

+ littles miscs
This commit is contained in:
LuckyLaszlo
2021-10-19 20:25:41 +02:00
parent e451a1f050
commit 1054f3d6ff
8 changed files with 244 additions and 12 deletions

View File

@@ -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);
}
}
}
}