diff --git a/src/lexer/lexer.c b/src/lexer/lexer.c index 1df0ec5..a432de8 100644 --- a/src/lexer/lexer.c +++ b/src/lexer/lexer.c @@ -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) { diff --git a/src/lexer/lexer.h b/src/lexer/lexer.h index 31a329a..6c561e0 100644 --- a/src/lexer/lexer.h +++ b/src/lexer/lexer.h @@ -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);