/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lexer.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/02/02 15:30:59 by jhalford #+# #+# */ /* Updated: 2017/02/06 20:27:07 by ariard ### ########.fr */ /* */ /* ************************************************************************** */ #include "lexer.h" int ft_lexer(t_list **alst, char **command) { int ret; ret = 0; if (!*command) ret = 1; else if (ft_tokenize(alst, *command, DEFAULT)) ret = 1; else if (ft_post_tokenize(alst, command)) ret = 1; ft_strdel(command); return (ret); }