Restore to a stage where it works and is easier to manage (#5)

Everything in the parser that needs to be normed is in a single .c + .h file
(also there is the scanner.c file)
This commit is contained in:
Maix0 2024-05-01 17:35:42 +02:00 committed by GitHub
parent dc2358a320
commit cc8567f434
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
61 changed files with 14052 additions and 15081 deletions

View file

@ -28,7 +28,7 @@ typedef struct s_node
struct s_node *childs;
} t_node;
t_node build_node(t_parse_node curr, t_const_str input);
t_node build_node(TSNode curr, t_const_str input);
t_str node_getstr(t_node *node);
void free_node(t_node t);

View file

@ -30,10 +30,10 @@
# define PATH_FILES "/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
typedef struct s_myparser
typedef struct s_parser
{
t_parser *parser;
} t_myparser;
TSParser *parser;
} t_parser;
typedef struct s_utils
{
@ -42,7 +42,7 @@ typedef struct s_utils
t_str *strs_input;
t_str *path;
t_str *envp;
t_myparser parser;
t_parser parser;
t_node current_node;
} t_utils;