andor four
This commit is contained in:
parent
ab028139c3
commit
01b7963467
1 changed files with 1 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
|
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2017/03/11 16:17:38 by ariard #+# #+# */
|
/* Created: 2017/03/11 16:17:38 by ariard #+# #+# */
|
||||||
/* Updated: 2017/03/29 14:27:02 by ariard ### ########.fr */
|
/* Updated: 2017/03/29 15:31:31 by ariard ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -40,7 +40,6 @@ int ft_parse(t_btree **ast, t_list **token, t_parser *parser)
|
||||||
while (parser && token && *token)
|
while (parser && token && *token)
|
||||||
{
|
{
|
||||||
produce_sym(&parser->stack, parser->new_sym, token);
|
produce_sym(&parser->stack, parser->new_sym, token);
|
||||||
DG("produce sym %s", read_state(*parser->new_sym));
|
|
||||||
if (parser->new_sym && eval_sym(&parser->stack, *parser->new_sym))
|
if (parser->new_sym && eval_sym(&parser->stack, *parser->new_sym))
|
||||||
return ((parser->state = ERROR));
|
return ((parser->state = ERROR));
|
||||||
if (aggregate_sym(&parser->stack, parser->new_sym, &parser->state))
|
if (aggregate_sym(&parser->stack, parser->new_sym, &parser->state))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue