Created: test main for the parser

This commit is contained in:
Maieul BOYER 2024-04-28 18:58:46 +02:00
parent c28d673db7
commit 3bde20ba23
No known key found for this signature in database
10 changed files with 236 additions and 37 deletions

View file

@ -0,0 +1,35 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* node.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/28 18:35:22 by maiboyer #+# #+# */
/* Updated: 2024/04/28 18:53:13 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef NODE_H
#define NODE_H
#include "me/types.h"
#include "parser/api.h"
typedef struct s_node
{
t_u64 kind;
const char *kind_str;
const char *input;
char *single_str;
t_usize start;
t_usize end;
t_usize childs_count;
struct s_node *childs;
} t_node;
t_node build_node(TSNode curr, t_const_str input);
t_str node_getstr(t_node *node);
void free_node(t_node t);
#endif /* NODE_H */

1
shcat_c/includes/me Symbolic link
View file

@ -0,0 +1 @@
../stdme/include/me/

View file

@ -6,14 +6,14 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/28 14:41:15 by rparodi #+# #+# */
/* Updated: 2024/04/13 20:17:16 by rparodi ### ########.fr */
/* Updated: 2024/04/28 18:34:45 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MINISHELL_H
#define MINISHELL_H
# include "./type_rust.h"
# include "me/types.h"
# include <unistd.h>
# include <fcntl.h>

1
shcat_c/includes/parser Symbolic link
View file

@ -0,0 +1 @@
../parser/includes/