28 lines
1.1 KiB
C
28 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* token_print.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2016/11/28 14:39:01 by jhalford #+# #+# */
|
|
/* Updated: 2017/02/24 21:48:47 by ariard ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "lexer.h"
|
|
|
|
void token_print(t_list *lst)
|
|
{
|
|
t_token *token;
|
|
|
|
while (lst)
|
|
{
|
|
DG("token print");
|
|
if (lst->content)
|
|
token = lst->content;
|
|
if (token->type)
|
|
DG("token : %s data [%s]\n", read_state(token->type), token->data);
|
|
lst = lst->next;
|
|
}
|
|
}
|