Skip to content

Commit

Permalink
lex.h add skip_to_token
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCrystalKeeper authored Jun 18, 2024
1 parent b17bd3a commit fb69f5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lexer/lex.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ int lex(Lexer * l, Token * token);

// Put a token back to be lexed again in the future.
int unlex(Lexer * l, Token * token);

// Jump to next token by skipping whitespace and comments (doesn't read it)
int skip_to_token(Lexer *l);

0 comments on commit fb69f5f

Please sign in to comment.