diff --git a/src/parser/lexer.c b/src/parser/lexer.c index 79540c7..ebbdb89 100644 --- a/src/parser/lexer.c +++ b/src/parser/lexer.c @@ -15,7 +15,7 @@ static t_token *tokenize(const char *line, size_t *start); static t_token_type get_token_type(const char *str); -static t_token *token_new(t_token_type type, const char *text); +static t_token *token_new(t_token_type type, char *text); static void token_clear(t_token *token); static t_token *read_token(t_token_type type, const char *line, size_t *i); static t_token *read_word(const char *line, size_t *i); @@ -97,7 +97,7 @@ static t_token_type get_token_type( static t_token *token_new( t_token_type type, - const char *text) + char *text) { t_token *token;