/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* parse_separator.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/28 16:21:51 by jhalford #+# #+# */ /* Updated: 2017/02/09 19:27:22 by ariard ### ########.fr */ /* */ /* ************************************************************************** */ #include "parser.h" int parse_separator(t_btree **ast, t_list **start, t_list **lst) { t_token *token; t_astnode *node; token = (*lst)->content; node = (*ast)->item; node->type = token->type; ft_parse(&(*ast)->right, &(*lst)->next); (*lst)->next = NULL; ft_lst_delif(start, (*lst)->content, &ft_addrcmp, &token_free); ft_parse(&(*ast)->left, start); return (0); }