update: normed lots of stuff
This commit is contained in:
parent
978636b6ef
commit
50a2f3d4be
118 changed files with 1145 additions and 1330 deletions
|
|
@ -1,37 +0,0 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* node.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/28 18:35:22 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/29 14:46:20 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef NODE_H
|
||||
# define NODE_H
|
||||
|
||||
# include "me/types.h"
|
||||
# include "parser/api.h"
|
||||
|
||||
typedef struct s_node
|
||||
{
|
||||
t_u64 kind;
|
||||
t_const_str kind_str;
|
||||
t_const_str field_str;
|
||||
t_u64 field;
|
||||
t_const_str input;
|
||||
t_str single_str;
|
||||
t_usize start;
|
||||
t_usize end;
|
||||
t_usize childs_count;
|
||||
struct s_node *childs;
|
||||
} t_node;
|
||||
|
||||
t_node build_node(t_parse_node curr, t_const_str input);
|
||||
t_str node_getstr(t_node *node);
|
||||
void free_node(t_node self);
|
||||
|
||||
#endif /* NODE_H */
|
||||
|
|
@ -6,18 +6,18 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/02 15:49:56 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/09/06 15:33:05 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/09/19 17:28:52 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef STATE_H
|
||||
# define STATE_H
|
||||
|
||||
# include "app/node.h"
|
||||
# include "ast/ast.h"
|
||||
# include "me/hashmap/hashmap_env.h"
|
||||
# include "me/os/os.h"
|
||||
# include "me/types.h"
|
||||
# include "ast/ast.h"
|
||||
# include "parser/inner/node.h"
|
||||
|
||||
typedef struct s_state t_state;
|
||||
|
||||
|
|
@ -27,8 +27,7 @@ struct s_state
|
|||
t_str str_input;
|
||||
t_hashmap_env *env;
|
||||
t_hashmap_env *tmp_var;
|
||||
t_node current_node;
|
||||
t_first_parser *parser;
|
||||
t_parser *parser;
|
||||
t_ast_node ast;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue