diff --git a/Makefile b/Makefile index 23f9cb0c..11e94d37 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2024/07/31 17:42:00 by maiboyer ### ########.fr # +# Updated: 2024/08/01 07:16:16 by maiboyer ### ########.fr # # # # **************************************************************************** # @@ -45,10 +45,10 @@ endif # TODO: REMOVE THIS WHEN FINISHING THIS: CFLAGS_ADDITIONAL += -DPRINT_BACKTRACE -#CFLAGS_ADDITIONAL += -gcolumn-info +CFLAGS_ADDITIONAL += -gcolumn-info -g3 CFLAGS_ADDITIONAL += '-DERROR=((void)printf("ERROR HERE: " __FILE__ ":%d in %s\n", __LINE__, __func__), 1)' -CFLAGS_ADDITIONAL += -O2 -# CFLAGS_ADDITIONAL += -fuse-ld=gold -Wl,--print-symbol-counts -Wl,/tmp/symbols.count.log +#CFLAGS_ADDITIONAL += -O2 +#CFLAGS_ADDITIONAL += -fuse-ld=gold -Wl,--print-symbol-counts -Wl,/tmp/symbols.count.log export CFLAGS_ADDITIONAL export CC diff --git a/exec/include/exec/arith.h b/exec/include/exec/arith.h index 08b20c93..87671df8 100644 --- a/exec/include/exec/arith.h +++ b/exec/include/exec/arith.h @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/07/27 21:13:15 by rparodi #+# #+# */ -/* Updated: 2024/07/30 15:58:54 by maiboyer ### ########.fr */ +/* Updated: 2024/08/01 06:21:37 by maiboyer ### ########.fr */ /* */ /* ************************************************************************** */ @@ -36,14 +36,22 @@ t_ast_arithmetic_expansion *arithmetic_expansion, t_state *state, t_i64 *out); t_error _get_node_number(t_ast_node self, t_state *state, t_i64 *out); t_error _binary_op_add(t_ast_node self, t_state *state, t_i64 *out); -t_error _binary_op_sub(t_ast_node self, t_state *state, t_i64 *out); -t_error _binary_op_mul(t_ast_node self, t_state *state, t_i64 *out); t_error _binary_op_div(t_ast_node self, t_state *state, t_i64 *out); t_error _binary_op_mod(t_ast_node self, t_state *state, t_i64 *out); -t_error _postfix_op_inc(t_ast_node self, t_state *state, t_i64 *out); +t_error _binary_op_mul(t_ast_node self, t_state *state, t_i64 *out); +t_error _binary_op_sub(t_ast_node self, t_state *state, t_i64 *out); + t_error _postfix_op_dec(t_ast_node self, t_state *state, t_i64 *out); -t_error _unary_op_plus(t_ast_node self, t_state *state, t_i64 *out); +t_error _postfix_op_inc(t_ast_node self, t_state *state, t_i64 *out); + t_error _unary_op_minus(t_ast_node self, t_state *state, t_i64 *out); +t_error _unary_op_plus(t_ast_node self, t_state *state, t_i64 *out); + t_ast_node _arith_binary_to_ast_node(t_ast_arithmetic_binary *self); +t_ast_node _arith_expansion_to_ast_node(t_ast_arithmetic_expansion *self); +t_ast_node _arith_literal_to_ast_node(t_ast_arithmetic_literal *self); +t_ast_node _arith_postfix_to_ast_node(t_ast_arithmetic_postfix *self); +t_ast_node _arith_ternary_to_ast_node(t_ast_arithmetic_ternary *self); +t_ast_node _arith_unary_to_ast_node(t_ast_arithmetic_unary *self); #endif diff --git a/exec/src/run_ast.c b/exec/src/run_ast.c index 63322c41..7855ad3c 100644 --- a/exec/src/run_ast.c +++ b/exec/src/run_ast.c @@ -6,17 +6,19 @@ /* By: maiboyer +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/07/11 17:22:29 by maiboyer #+# #+# */ -/* Updated: 2024/07/31 15:33:50 by maiboyer ### ########.fr */ +/* Updated: 2024/08/01 06:23:29 by maiboyer ### ########.fr */ /* */ /* ************************************************************************** */ #include "app/state.h" #include "ast/ast.h" +#include "me/os/os.h" +#include "me/os/os.h" #include "exec/run.h" #include "me/convert/numbers_to_str.h" #include "me/hashmap/hashmap_env.h" #include "me/mem/mem.h" -#include "me/os/process.h" +#include "me/os/os.h" #include "me/str/str.h" #include "me/string/string.h" #include "me/types.h" diff --git a/includes/app/state.h b/includes/app/state.h index 63486c07..c15e2736 100644 --- a/includes/app/state.h +++ b/includes/app/state.h @@ -15,7 +15,7 @@ # include "app/node.h" # include "me/hashmap/hashmap_env.h" -# include "me/os/process.h" +# include "me/os/os.h" # include "me/types.h" typedef struct s_parser