rebasing lexer on dev

This commit is contained in:
matteo 2026-01-17 10:52:32 +01:00
commit f226013955
2 changed files with 1 additions and 1 deletions

View file

@ -27,7 +27,6 @@ static void update_current_token(struct token *tok)
/* @brief: frees the last token and sets it to [tok].
* Also sets current_token to NULL.
* this function is called by token_pop().
*
*/
static void update_last_token(struct token *tok)
{

View file

@ -45,6 +45,7 @@ struct token
* @brief: returns the next (newly allocated) token without consuming it.
* if end of input is reached, enters in EOF looping node,
* returning only the same token of type TOKEN_EOF.
* if end of input is reached, returns a token of type TOKEN_EOF.
*/
struct token *peek_token(void);