normed: includes
This commit is contained in:
parent
43d394ba32
commit
7bb95e24a6
3 changed files with 42 additions and 46 deletions
|
|
@ -6,37 +6,34 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/02 18:43:41 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/10/10 15:27:32 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/10/12 15:38:12 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef PASSES_H
|
||||
#define PASSES_H
|
||||
# define PASSES_H
|
||||
|
||||
#include "me/types.h"
|
||||
#include "me/vec/vec_token.h"
|
||||
#include "parser/token.h"
|
||||
# include "me/types.h"
|
||||
# include "me/vec/vec_token.h"
|
||||
# include "parser/token.h"
|
||||
|
||||
typedef t_error (*t_ts_pass)(t_vec_token input, t_vec_token *output);
|
||||
typedef t_error (*t_ts_pass)(t_vec_token input, t_vec_token *output);
|
||||
|
||||
struct s_ts_pass_def
|
||||
{
|
||||
t_ts_pass fn;
|
||||
t_const_str name;
|
||||
t_const_str name;
|
||||
};
|
||||
|
||||
t_error ts_apply_passes(t_vec_token ts, t_vec_token *out);
|
||||
t_error ts_apply_passes(t_vec_token ts, t_vec_token *out);
|
||||
|
||||
// This function is to apply stuff on doublequote meta token
|
||||
// You shouldn't have to use it !
|
||||
// It *may* disapear/change/whatever
|
||||
t_error ts_dq_apply_passes(t_vec_token ts, t_vec_token *out);
|
||||
t_error ts_dq_apply_passes(t_vec_token ts, t_vec_token *out);
|
||||
|
||||
// list passes function here
|
||||
|
||||
// this is a example one, does absolutly nothing lol
|
||||
t_error ts_do_fuck_all(t_vec_token input, t_vec_token *output);
|
||||
|
||||
t_error ts_double_amp(t_vec_token input, t_vec_token *output);
|
||||
t_error ts_double_lcarret(t_vec_token input, t_vec_token *output);
|
||||
t_error ts_double_lparen(t_vec_token input, t_vec_token *output);
|
||||
|
|
@ -51,8 +48,8 @@ t_error ts_fold_whitespace(t_vec_token input, t_vec_token *output);
|
|||
t_error ts_paren_to_noquote(t_vec_token input, t_vec_token *output);
|
||||
t_error ts_split_paren(t_vec_token input, t_vec_token *output);
|
||||
t_error ts_verify_tokens(t_vec_token input, t_vec_token *output);
|
||||
t_error ts_fold_expension(t_vec_token input, t_vec_token *output);
|
||||
t_error ts_fold_redir(t_vec_token input, t_vec_token *output);
|
||||
t_error ts_remove_whitespace(t_vec_token input, t_vec_token *output);
|
||||
t_error ts_fold_expension(t_vec_token input, t_vec_token *output);
|
||||
t_error ts_fold_redir(t_vec_token input, t_vec_token *output);
|
||||
t_error ts_remove_whitespace(t_vec_token input, t_vec_token *output);
|
||||
|
||||
#endif /* PASSES_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue