Fixed some stuff

This commit is contained in:
Maieul BOYER 2024-07-30 18:40:27 +02:00
parent 8dbbfcf124
commit 9029af81b6
No known key found for this signature in database
6 changed files with 98 additions and 30 deletions

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/17 13:04:32 by maiboyer #+# #+# */
/* Updated: 2024/07/26 15:26:41 by maiboyer ### ########.fr */
/* Updated: 2024/07/30 18:30:47 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -16,18 +16,24 @@
#include "me/types.h"
#include <stdio.h>
t_error _build_not_finished(t_parse_node self, t_const_str input, t_ast_node *out)
t_error _build_not_finished(t_parse_node self, t_const_str i, t_ast_node *out)
{
(void)(self);
(void)(out);
(void)(input);
printf("building undefined symbol '%s'\n", ts_node_grammar_type(self));
(void)(i);
printf("building undefined symbol '%s'\n", ts_node_type(self));
return (ERROR);
}
t_error __attribute__((weak, alias("_build_not_finished"))) build_sym_heredoc_body(t_parse_node self, t_const_str input, t_ast_node *out);
t_error __attribute__((weak, alias("_build_not_finished"))) build_sym_heredoc_content(t_parse_node self, t_const_str input, t_ast_node *out);
t_error __attribute__((weak, alias("_build_not_finished"))) build_sym_heredoc_end(t_parse_node self, t_const_str input, t_ast_node *out);
t_error __attribute__((weak, alias("_build_not_finished"))) build_sym_heredoc_redirect(t_parse_node self, t_const_str input, t_ast_node *out);
t_error __attribute__((weak, alias("_build_not_finished"))) build_sym_heredoc_start(t_parse_node self, t_const_str input, t_ast_node *out);
t_error __attribute__((weak, alias("_build_not_finished"))) build_sym_simple_heredoc_body(t_parse_node self, t_const_str input, t_ast_node *out);
t_error build_sym_heredoc_body(t_parse_node self, t_const_str input, \
t_ast_node *out) __attribute__((weak, alias("_build_not_finished")));
t_error build_sym_heredoc_content(t_parse_node self, t_const_str input, \
t_ast_node *out) __attribute__((weak, alias("_build_not_finished")));
t_error build_sym_heredoc_end(t_parse_node self, t_const_str input, \
t_ast_node *out) __attribute__((weak, alias("_build_not_finished")));
t_error build_sym_heredoc_redirect(t_parse_node self, t_const_str input, \
t_ast_node *out) __attribute__((weak, alias("_build_not_finished")));
t_error build_sym_heredoc_start(t_parse_node self, t_const_str input, \
t_ast_node *out) __attribute__((weak, alias("_build_not_finished")));
t_error build_sym_simple_heredoc_body(t_parse_node self, t_const_str input, \
t_ast_node *out) __attribute__((weak, alias("_build_not_finished")));