Update AST signatures to remove the t_node type
This commit is contained in:
parent
c9baa2b499
commit
77a3b305aa
7 changed files with 291 additions and 33 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/03/28 14:40:38 by rparodi #+# #+# */
|
||||
/* Updated: 2024/06/09 21:39:11 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/06/17 13:27:16 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -28,6 +28,10 @@
|
|||
#undef realloc
|
||||
#undef calloc
|
||||
|
||||
#include "ast/ast.h"
|
||||
|
||||
t_error from_node();
|
||||
|
||||
t_first_parser *ts_parser_new();
|
||||
void ts_tree_delete(t_first_tree *);
|
||||
t_parse_node ts_tree_root_node(t_first_tree *);
|
||||
|
|
@ -153,8 +157,10 @@ void print_node_concat(t_node *self)
|
|||
void exec_shcat(t_utils *shcat)
|
||||
{
|
||||
t_i32 ret;
|
||||
t_ast_node out;
|
||||
|
||||
print_node_data(&shcat->current_node, 0);
|
||||
from_node(&shcat->current_node, &out);
|
||||
handle_program(&shcat->current_node, shcat, &ret);
|
||||
free_node(shcat->current_node);
|
||||
(void)ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue