|
|
@ -6,7 +6,7 @@ |
|
|
|
/* By: mea <marvin@42.fr> +#+ +:+ +#+ */ |
|
|
|
/* +#+#+#+#+#+ +#+ */ |
|
|
|
/* Created: 2022/05/02 12:14:09 by narnaud #+# #+# */ |
|
|
|
/* Updated: 2022/05/05 14:18:16 by mea ### ########.fr */ |
|
|
|
/* Updated: 2022/05/05 15:31:45 by mea ### ########.fr */ |
|
|
|
/* */ |
|
|
|
/* ************************************************************************** */ |
|
|
|
|
|
|
@ -108,7 +108,10 @@ t_token *lexer(t_datas *datas, char *line) |
|
|
|
if (check_state(lex, &line)) |
|
|
|
continue; |
|
|
|
if (lex->state != S_QUOTE_ST && *line == '$') |
|
|
|
{ |
|
|
|
tmp_i = replace_var(datas, &line, tmp, tmp_i); |
|
|
|
printf("TEST tmpi %d\n", tmp_i); |
|
|
|
} |
|
|
|
if (check_register(lex, &line, tmp)) |
|
|
|
{ |
|
|
|
tmp_i = 0; |
|
|
|