diff options
author | Johnny Richard <johnny@johnnyrichard.com> | 2023-05-17 15:31:24 +0200 |
---|---|---|
committer | Johnny Richard <johnny@johnnyrichard.com> | 2023-05-17 15:31:24 +0200 |
commit | 15196aa56339d34af9f74b019e6aeff5816e8dcc (patch) | |
tree | ffe7d6ec48bc6018b5eea7e9ef573cd1bbd57c2f /src/lexer.h | |
parent | ad54ee1182b1549880eddc8b1969d3992d9f7f1d (diff) | |
parent | ea7f65fe1250be8f49edcaaedd3410aed1401648 (diff) |
Merge commit 'ea7f65fe1250be8f49edcaaedd3410aed1401648' of https://git.sr.ht/~carlosmaniero/pipac-clone
Diffstat (limited to 'src/lexer.h')
-rw-r--r-- | src/lexer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lexer.h b/src/lexer.h index 0e36ada..c544a15 100644 --- a/src/lexer.h +++ b/src/lexer.h @@ -32,6 +32,7 @@ typedef enum // Literal Tokens TOKEN_OPAREN, TOKEN_CPAREN, + TOKEN_COMMA, TOKEN_COLON, TOKEN_SEMICOLON, TOKEN_OCURLY, @@ -114,6 +115,9 @@ void lexer_peek_next_token(lexer_t *lexer, token_t *token); void +lexer_step_back_to(lexer_t *lexer, token_t *token); + +void lexer_lookahead(lexer_t *lexer, token_t *token, size_t level); char * |