/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/24 16:07:04 by dkaiser #+# #+# */
-/* Updated: 2024/08/11 14:41:29 by chuhlig ### ########.fr */
+/* Updated: 2024/08/29 15:29:16 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
{
char *input;
t_token *token_list;
- t_token *current;
- t_token *next;
+ t_list *lines;
while (1)
{
return ;
add_history(input);
token_list = NULL;
- current = token_list;
tokenizer(input, &token_list, '\0');
- while (current != NULL)
- {
- next = current->next;
- free_token(current);
- current = next;
- }
+ lines = parse(token_list);
+ if (lines)
+ print_ast(lines->content);
free(input);
}
}