compils now

This commit is contained in:
Jack Halford 2017-03-08 14:28:34 +01:00
parent 8528951041
commit 4ee0f24632
3 changed files with 13 additions and 13 deletions

View file

@ -6,7 +6,7 @@
/* By: jhalford <jhalford@student.42.fr> +#+ +:+ +#+ */ /* By: jhalford <jhalford@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2016/12/13 14:20:45 by jhalford #+# #+# */ /* 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 */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */

View file

@ -10,17 +10,17 @@ int lexer_dless(t_list **alst, t_lexer *lexer)
(void)lexer; (void)lexer;
heredoc_lst = *(t_list**)lexer->heredoc_stack->content; heredoc_lst = *(t_list**)lexer->heredoc_stack->content;
heredoc_tok = heredoc_lst->content; heredoc_tok = heredoc_lst->content;
/* if (!(heredoc_lst->next)) */ if (!(heredoc_lst->next))
/* { */ {
/* ft_dprintf(2, "{red}%s: parse error near `\\n'{eoc}\n", SHELL_NAME); */ ft_dprintf(2, "{red}%s: parse error near `\\n'{eoc}\n", SHELL_NAME);
/* return (1); */ return (1);
/* } */ }
/* eof_tok = heredoc_lst->next->content; */ eof_tok = heredoc_lst->next->content;
/* if (!(eof_tok->type == TK_WORD)) */ if (!(eof_tok->type == TK_WORD))
/* { */ {
/* ft_dprintf(2, "{red}%s: expected word token after <<{eoc}\n", SHELL_NAME); */ ft_dprintf(2, "{red}%s: expected word token after <<{eoc}\n", SHELL_NAME);
/* return (1); */ return (1);
/* } */ }
/* DG("heredoc contains [%s]", heredoc_tok->data); */ /* DG("heredoc contains [%s]", heredoc_tok->data); */
/* DG("heredoc ends at [%s]", eof_tok->data); */ /* DG("heredoc ends at [%s]", eof_tok->data); */
/* DG("input is [%s]", lexer->str + lexer->pos); */ /* DG("input is [%s]", lexer->str + lexer->pos); */

View file

@ -6,7 +6,7 @@
/* By: jhalford <jhalford@student.42.fr> +#+ +:+ +#+ */ /* By: jhalford <jhalford@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/28 19:26:32 by jhalford #+# #+# */ /* 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 */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */