regenerated stuff
This commit is contained in:
parent
c284eb3786
commit
2e811bcec2
61 changed files with 1022 additions and 1697 deletions
20
parser/include/parser/_token.h
Normal file
20
parser/include/parser/_token.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* _token.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/09/25 11:38:28 by rparodi #+# #+# */
|
||||
/* Updated: 2024/09/26 18:21:45 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef _TOKEN_H
|
||||
# define _TOKEN_H
|
||||
|
||||
# include "me/types.h"
|
||||
|
||||
typedef struct s_token t_token;
|
||||
|
||||
#endif
|
||||
45
parser/include/parser/token.h
Normal file
45
parser/include/parser/token.h
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* token.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/09/26 17:59:23 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/09/26 18:29:25 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef TOKEN_H
|
||||
#define TOKEN_H
|
||||
|
||||
#include "parser/_token.h"
|
||||
|
||||
#include "me/string/string.h"
|
||||
#include "me/vec/vec_token.h"
|
||||
|
||||
enum e_token
|
||||
{
|
||||
AMP,
|
||||
DOLLAR,
|
||||
DQUOTE,
|
||||
LPAREN,
|
||||
NQUOTE,
|
||||
PIPE,
|
||||
CARRET,
|
||||
RPAREN,
|
||||
SEMICOLON,
|
||||
SQUOTE,
|
||||
WHITESPACE
|
||||
};
|
||||
|
||||
struct s_token
|
||||
{
|
||||
t_vec_token subtokens;
|
||||
t_string string;
|
||||
enum e_token type;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif /* TOKEN_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue