From b744ceb7559dfe76e8befb9ae71e0938d3a27373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl?= Date: Mon, 2 Sep 2024 17:01:47 +0200 Subject: [PATCH] Normed the private files --- ast/src/_here_doc_not_done.c | 77 +++++++++++++++++++ ..._done_print.c => _not_done_boucle_print.c} | 28 +------ ast/src/_not_done_function.c | 62 +-------------- ast/src/_not_done_scripting_print.c | 37 +++++++++ 4 files changed, 117 insertions(+), 87 deletions(-) create mode 100644 ast/src/_here_doc_not_done.c rename ast/src/{_not_done_print.c => _not_done_boucle_print.c} (70%) create mode 100644 ast/src/_not_done_scripting_print.c diff --git a/ast/src/_here_doc_not_done.c b/ast/src/_here_doc_not_done.c new file mode 100644 index 00000000..dee249f2 --- /dev/null +++ b/ast/src/_here_doc_not_done.c @@ -0,0 +1,77 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* _here_doc_not_done.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rparodi +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2024/09/02 16:37:28 by rparodi #+# #+# */ +/* Updated: 2024/09/02 16:39:15 by rparodi ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "app/node.h" +#include "ast/ast.h" +#include "gmr/symbols.h" +#include "me/types.h" +#include + +t_error build_sym_heredoc_body(t_parse_node self, t_const_str input, \ + t_ast_node *out) +{ + printf("This function is not done '%s'", __func__); + (void)(self); + (void)(input); + (void)(out); + return (ERROR); +} + +t_error build_sym_heredoc_content(t_parse_node self, t_const_str input, \ + t_ast_node *out) +{ + printf("This function is not done '%s'", __func__); + (void)(self); + (void)(input); + (void)(out); + return (ERROR); +} + +t_error build_sym_heredoc_end(t_parse_node self, t_const_str input, \ + t_ast_node *out) +{ + printf("This function is not done '%s'", __func__); + (void)(self); + (void)(input); + (void)(out); + return (ERROR); +} + +t_error build_sym_heredoc_redirect(t_parse_node self, t_const_str input, \ + t_ast_node *out) +{ + printf("This function is not done '%s'", __func__); + (void)(self); + (void)(input); + (void)(out); + return (ERROR); +} + +t_error build_sym_heredoc_start(t_parse_node self, t_const_str input, \ + t_ast_node *out) +{ + printf("This function is not done '%s'", __func__); + (void)(self); + (void)(input); + (void)(out); + return (ERROR); +} + +t_error build_sym_simple_heredoc_body(t_parse_node self, t_const_str input, \ + t_ast_node *out) +{ + printf("This function is not done '%s'", __func__); + (void)(self); + (void)(input); + (void)(out); + return (ERROR); +} diff --git a/ast/src/_not_done_print.c b/ast/src/_not_done_boucle_print.c similarity index 70% rename from ast/src/_not_done_print.c rename to ast/src/_not_done_boucle_print.c index 05c24534..fb61f96a 100644 --- a/ast/src/_not_done_print.c +++ b/ast/src/_not_done_boucle_print.c @@ -1,23 +1,17 @@ /* ************************************************************************** */ /* */ /* ::: :::::::: */ -/* not_done_print.c :+: :+: :+: */ +/* _not_done_print.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/07/26 11:00:25 by rparodi #+# #+# */ -/* Updated: 2024/07/30 18:24:16 by maiboyer ### ########.fr */ +/* Updated: 2024/09/02 17:01:00 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ #include "ast/_print_ast.h" -void ast_print_node_if(t_ast_node self) -{ - printf("This function is not done '%s'", __func__); - (void)(self); -} - void ast_print_node_case(t_ast_node self) { printf("This function is not done '%s'", __func__); @@ -30,30 +24,12 @@ void ast_print_node_case_item(t_ast_node self) (void)(self); } -void ast_print_node_elif(t_ast_node self) -{ - printf("This function is not done '%s'", __func__); - (void)(self); -} - -void ast_print_node_else(t_ast_node self) -{ - printf("This function is not done '%s'", __func__); - (void)(self); -} - void ast_print_node_for(t_ast_node self) { printf("This function is not done '%s'", __func__); (void)(self); } -void ast_print_node_until(t_ast_node self) -{ - printf("This function is not done '%s'", __func__); - (void)(self); -} - void ast_print_node_while(t_ast_node self) { printf("This function is not done '%s'", __func__); diff --git a/ast/src/_not_done_function.c b/ast/src/_not_done_function.c index 46532c58..abf6d41f 100644 --- a/ast/src/_not_done_function.c +++ b/ast/src/_not_done_function.c @@ -6,7 +6,7 @@ /* By: maiboyer +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/17 13:04:32 by maiboyer #+# #+# */ -/* Updated: 2024/08/04 16:36:58 by rparodi ### ########.fr */ +/* Updated: 2024/09/02 16:39:08 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -24,63 +24,3 @@ t_error _build_not_finished(t_parse_node self, t_const_str i, t_ast_node *out) printf("building undefined symbol '%s'\n", ts_node_type(self)); return (ERROR); } - -t_error build_sym_heredoc_body(t_parse_node self, t_const_str input, \ - t_ast_node *out) -{ - printf("This function is not done '%s'", __func__); - (void)(self); - (void)(input); - (void)(out); - return (ERROR); -} - -t_error build_sym_heredoc_content(t_parse_node self, t_const_str input, \ - t_ast_node *out) -{ - printf("This function is not done '%s'", __func__); - (void)(self); - (void)(input); - (void)(out); - return (ERROR); -} - -t_error build_sym_heredoc_end(t_parse_node self, t_const_str input, \ - t_ast_node *out) -{ - printf("This function is not done '%s'", __func__); - (void)(self); - (void)(input); - (void)(out); - return (ERROR); -} - -t_error build_sym_heredoc_redirect(t_parse_node self, t_const_str input, \ - t_ast_node *out) -{ - printf("This function is not done '%s'", __func__); - (void)(self); - (void)(input); - (void)(out); - return (ERROR); -} - -t_error build_sym_heredoc_start(t_parse_node self, t_const_str input, \ - t_ast_node *out) -{ - printf("This function is not done '%s'", __func__); - (void)(self); - (void)(input); - (void)(out); - return (ERROR); -} - -t_error build_sym_simple_heredoc_body(t_parse_node self, t_const_str input, \ - t_ast_node *out) -{ - printf("This function is not done '%s'", __func__); - (void)(self); - (void)(input); - (void)(out); - return (ERROR); -} diff --git a/ast/src/_not_done_scripting_print.c b/ast/src/_not_done_scripting_print.c new file mode 100644 index 00000000..fb94f4f7 --- /dev/null +++ b/ast/src/_not_done_scripting_print.c @@ -0,0 +1,37 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* _not_done_scripting_print.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rparodi +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2024/09/02 16:40:12 by rparodi #+# #+# */ +/* Updated: 2024/09/02 17:00:54 by rparodi ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "ast/_print_ast.h" + +void ast_print_node_if(t_ast_node self) +{ + printf("This function is not done '%s'", __func__); + (void)(self); +} + +void ast_print_node_elif(t_ast_node self) +{ + printf("This function is not done '%s'", __func__); + (void)(self); +} + +void ast_print_node_else(t_ast_node self) +{ + printf("This function is not done '%s'", __func__); + (void)(self); +} + +void ast_print_node_until(t_ast_node self) +{ + printf("This function is not done '%s'", __func__); + (void)(self); +}