From e97ff01f8e1c16e1ad4e08447435c12fce2dd64d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl?= Date: Sat, 28 Sep 2024 12:19:10 +0200 Subject: [PATCH] feat: adding the prototype on the header --- parser/include/parser/token.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/parser/include/parser/token.h b/parser/include/parser/token.h index e862ace9..8185ac5b 100644 --- a/parser/include/parser/token.h +++ b/parser/include/parser/token.h @@ -31,11 +31,18 @@ enum e_token WHITESPACE }; -struct s_token +typedef struct s_token { t_vec_token subtokens; t_string string; enum e_token type; -}; +} t_token; -#endif /* TOKEN_H */ +bool is_dollar(char c); +bool is_quote(char c); +bool is_space(char c); +t_error find_end_string(t_str raw, t_usize *start, t_token *output); +t_error start_analyse(t_const_str raw, enum e_token list, t_vec_token *output); +t_error tokeniser(t_const_str raw, enum e_token list); + +#endif