rebasing lexer on dev
This commit is contained in:
commit
f226013955
2 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue