From ca3e916b89db2d3cc88910c00d2dce286a3c0eb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl?= Date: Mon, 22 Jul 2024 18:23:54 +0200 Subject: [PATCH] Adding the start of the arithmetic_expansion but giving up --- ast/src/from_node.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ast/src/from_node.c b/ast/src/from_node.c index a3719cca..ec1291e3 100644 --- a/ast/src/from_node.c +++ b/ast/src/from_node.c @@ -777,6 +777,19 @@ t_error build_sym_arithmetic_unary_expression(t_parse_node self, t_const_str inp return (ast_free(ret), ERROR); return (*out = ret, NO_ERROR); } +t_error build_sym_arithmetic_expansion(t_parse_node self, t_const_str input, t_ast_node *out) +{ + t_usize i; + t_ast_node ret; + + if (out == NULL) + return (ERROR); + if (ts_node_symbol(self) != sym_arithmetic_expansion) + return (ERROR); + i = 0; + ret = ast_alloc(AST_ARITHMETIC_EXPANSION); + return (*out = ret, NO_ERROR); +} //PLUS RAPH t_error build_sym_command_substitution(t_parse_node self, t_const_str input, t_ast_node *out)