/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* lexer_comment.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/02/07 12:15:59 by jhalford #+# #+# */ /* Updated: 2017/02/20 21:03:53 by ariard ### ########.fr */ /* */ /* ************************************************************************** */ #include "lexer.h" int lexer_comment(t_list **alst, t_lexer *lexer) { t_token *token; token = (*alst)->content; if (lexer->str[lexer->pos] == '\n') return (lexer_lex(&(*alst)->next, lexer)); return (lexer_comment(alst, lexer)); }