42-archive/42sh/src/parser/parse.c
2017-02-06 19:48:17 +01:00

26 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* parse.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/02/04 16:52:51 by ariard #+# #+# */
/* Updated: 2017/02/06 19:26:02 by ariard ### ########.fr */
/* */
/* ************************************************************************** */
#include "parser.h"
int parse(t_btree **ast, t_list **token)
{
t_list *start;
(void)ast;
start = *token;
if (get_instruction(token))
return (1);
if (ft_parse(ast, &start))
return (1);
return (0);
}