tokenizer but the pressisons

This commit is contained in:
Nathan Lebrun
2025-01-20 16:09:48 +01:00
parent 9ee0c5bf2d
commit 2f97574a37
3 changed files with 49 additions and 10 deletions

View File

@@ -22,11 +22,21 @@ typedef enum e_token
WORD
} t_token;
typedef enum e_pres
{
AND,
OR,
PIPE,
SUBSH_S,
SUBSH_E
} t_pres;
typedef struct s_node
{
struct s_node *next;
char *val;
enum e_token token;
enum e_pres pressision;
} t_node;
t_node *tokenize(char *str);