Further work on the ast printing

This commit is contained in:
Maix0 2024-07-03 22:41:35 +02:00
parent 776ccfa9c0
commit 519aa1a781
5 changed files with 90 additions and 33 deletions

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/11 14:23:40 by maiboyer #+# #+# */
/* Updated: 2024/07/01 21:36:48 by maiboyer ### ########.fr */
/* Updated: 2024/07/03 22:33:51 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -38,7 +38,6 @@ enum e_ast_node_kind
AST_ELSE = S_AST_NONE | 0x0007,
AST_EMPTY = S_AST_NONE | 0x0008,
AST_RAW_STRING = S_AST_NONE | 0x000A,
AST_STRING = S_AST_NONE | 0x000B,
AST_WORD = S_AST_NONE | 0x000C,
AST_VARIABLE_ASSIGNMENT = S_AST_NONE | 0x000E,
AST_EXTGLOB = S_AST_NONE | 0x001A,
@ -82,7 +81,6 @@ union u_ast_node_data {
t_ast_program program;
t_ast_raw_string raw_string;
t_ast_regex regex;
t_ast_string string;
t_ast_subshell subshell;
t_ast_until until;
t_ast_variable_assignment variable_assignment;

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/11 14:24:24 by maiboyer #+# #+# */
/* Updated: 2024/07/01 21:35:22 by maiboyer ### ########.fr */
/* Updated: 2024/07/03 22:30:23 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -45,7 +45,6 @@ typedef struct s_ast_pipeline t_ast_pipeline;
typedef struct s_ast_program t_ast_program;
typedef struct s_ast_raw_string t_ast_raw_string;
typedef struct s_ast_regex t_ast_regex;
typedef struct s_ast_string t_ast_string;
typedef struct s_ast_subshell t_ast_subshell;
typedef struct s_ast_until t_ast_until;
typedef struct s_ast_variable_assignment t_ast_variable_assignment;

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/14 17:46:58 by maiboyer #+# #+# */
/* Updated: 2024/07/02 21:45:29 by maiboyer ### ########.fr */
/* Updated: 2024/07/03 22:30:01 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -82,11 +82,6 @@ struct s_ast_raw_string
t_usize len;
};
struct s_ast_string
{
t_vec_ast parts;
};
struct s_ast_word
{
t_ast_word_kind kind;