compils now
This commit is contained in:
parent
8528951041
commit
4ee0f24632
3 changed files with 13 additions and 13 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <jhalford@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2016/12/13 14:20:45 by jhalford #+# #+# */
|
||||
/* Updated: 2017/03/08 03:23:16 by wescande ### ########.fr */
|
||||
/* Updated: 2017/03/08 14:26:41 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
|
|||
|
|
@ -10,17 +10,17 @@ int lexer_dless(t_list **alst, t_lexer *lexer)
|
|||
(void)lexer;
|
||||
heredoc_lst = *(t_list**)lexer->heredoc_stack->content;
|
||||
heredoc_tok = heredoc_lst->content;
|
||||
/* if (!(heredoc_lst->next)) */
|
||||
/* { */
|
||||
/* ft_dprintf(2, "{red}%s: parse error near `\\n'{eoc}\n", SHELL_NAME); */
|
||||
/* return (1); */
|
||||
/* } */
|
||||
/* eof_tok = heredoc_lst->next->content; */
|
||||
/* if (!(eof_tok->type == TK_WORD)) */
|
||||
/* { */
|
||||
/* ft_dprintf(2, "{red}%s: expected word token after <<{eoc}\n", SHELL_NAME); */
|
||||
/* return (1); */
|
||||
/* } */
|
||||
if (!(heredoc_lst->next))
|
||||
{
|
||||
ft_dprintf(2, "{red}%s: parse error near `\\n'{eoc}\n", SHELL_NAME);
|
||||
return (1);
|
||||
}
|
||||
eof_tok = heredoc_lst->next->content;
|
||||
if (!(eof_tok->type == TK_WORD))
|
||||
{
|
||||
ft_dprintf(2, "{red}%s: expected word token after <<{eoc}\n", SHELL_NAME);
|
||||
return (1);
|
||||
}
|
||||
/* DG("heredoc contains [%s]", heredoc_tok->data); */
|
||||
/* DG("heredoc ends at [%s]", eof_tok->data); */
|
||||
/* DG("input is [%s]", lexer->str + lexer->pos); */
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <jhalford@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2016/11/28 19:26:32 by jhalford #+# #+# */
|
||||
/* Updated: 2017/03/08 13:48:27 by jhalford ### ########.fr */
|
||||
/* Updated: 2017/03/08 14:26:44 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue