fix(lexer): typo in func name
This commit is contained in:
parent
bbb69fddca
commit
927e4ea25a
1 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
/* @brief: sets the ctx->current_token to [tok].
|
/* @brief: sets the ctx->current_token to [tok].
|
||||||
* this function is called by token_peek().
|
* this function is called by token_peek().
|
||||||
*/
|
*/
|
||||||
static void update_ctx->current_token(struct token *tok, struct lexer_context *ctx)
|
static void update_current_token(struct token *tok, struct lexer_context *ctx)
|
||||||
{
|
{
|
||||||
ctx->current_token = tok;
|
ctx->current_token = tok;
|
||||||
}
|
}
|
||||||
|
|
@ -22,7 +22,7 @@ static void update_ctx->current_token(struct token *tok, struct lexer_context *c
|
||||||
* Also sets ctx->current_token to NULL.
|
* Also sets ctx->current_token to NULL.
|
||||||
* this function is called by token_pop().
|
* this function is called by token_pop().
|
||||||
*/
|
*/
|
||||||
static void update_ctx->previous_token(struct token *tok, struct lexer_context *ctx)
|
static void update_previous_token(struct token *tok, struct lexer_context *ctx)
|
||||||
{
|
{
|
||||||
free_token(&ctx->previous_token);
|
free_token(&ctx->previous_token);
|
||||||
ctx->previous_token = tok;
|
ctx->previous_token = tok;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue