update: fixed leak and stuff
This commit is contained in:
parent
75581c7ee0
commit
8d796c4094
8 changed files with 39 additions and 26 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/03/28 14:40:38 by rparodi #+# #+# */
|
||||
/* Updated: 2024/10/08 14:22:42 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/10/08 14:41:06 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -101,21 +101,20 @@ void print_node_data(t_node *t, t_usize depth)
|
|||
}
|
||||
*/
|
||||
|
||||
t_error yarn(t_vec_token *list, t_vec_token *output);
|
||||
t_error yarn(t_vec_token ts, t_vec_token *output);
|
||||
|
||||
void parse_str(t_state *state)
|
||||
{
|
||||
t_vec_token tokens;
|
||||
t_vec_token tok_yarn;
|
||||
|
||||
if (tokenize(state->str_input, &tokens))
|
||||
return ;
|
||||
if (ts_apply_passes(tokens, &tokens))
|
||||
return ;
|
||||
if (yarn(&tokens, &tok_yarn))
|
||||
if (yarn(tokens, &tokens))
|
||||
return ;
|
||||
printf("\n\nEND TOKENS\n");
|
||||
ts_print(&tok_yarn);
|
||||
ts_print(&tokens);
|
||||
vec_token_free(tokens);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue