up
This commit is contained in:
parent
ebaa4dd822
commit
f79172c669
12 changed files with 369 additions and 39 deletions
22
includes/app/node/handle_concat.h
Normal file
22
includes/app/node/handle_concat.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* handle_concat.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/02 15:49:12 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/02 15:52:16 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef HANDLE_CONCAT_H
|
||||
#define HANDLE_CONCAT_H
|
||||
|
||||
#include "app/state.h"
|
||||
#include "app/node.h"
|
||||
#include "me/types.h"
|
||||
|
||||
t_error handle_concat(t_node *self, t_utils *shcat, t_str *ret);
|
||||
|
||||
#endif /* HANDLE_CONCAT_H */
|
||||
21
includes/app/node/handle_raw_word.h
Normal file
21
includes/app/node/handle_raw_word.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* handle_raw_word.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/02 15:58:01 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/02 15:58:48 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef HANDLE_RAW_WORD_H
|
||||
#define HANDLE_RAW_WORD_H
|
||||
|
||||
#include "app/node.h"
|
||||
#include "app/state.h"
|
||||
|
||||
t_error handle_raw_string(t_node *self, t_utils *shcat, t_str *ret);
|
||||
|
||||
#endif /* HANDLE_RAW_WORD_H */
|
||||
22
includes/app/node/handle_word.h
Normal file
22
includes/app/node/handle_word.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* handle_word.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/02 16:00:11 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/02 16:00:40 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef HANDLE_WORD_H
|
||||
#define HANDLE_WORD_H
|
||||
|
||||
#include "app/state.h"
|
||||
#include "app/node.h"
|
||||
#include "me/types.h"
|
||||
|
||||
t_error handle_word(t_node *self, t_utils *shcat, t_str *ret);
|
||||
|
||||
#endif /* HANDLE_WORD_H */
|
||||
35
includes/app/state.h
Normal file
35
includes/app/state.h
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* state.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/02 15:49:56 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/02 15:51:38 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef STATE_H
|
||||
#define STATE_H
|
||||
|
||||
#include "app/node.h"
|
||||
#include "me/types.h"
|
||||
|
||||
typedef struct s_parser
|
||||
{
|
||||
t_first_parser *parser;
|
||||
} t_parser;
|
||||
|
||||
typedef struct s_utils
|
||||
{
|
||||
t_str name_shell;
|
||||
t_str str_input;
|
||||
t_str *strs_input;
|
||||
t_str *path;
|
||||
t_str *envp;
|
||||
t_parser parser;
|
||||
t_node current_node;
|
||||
} t_utils;
|
||||
|
||||
#endif /* STATE_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue