This commit is contained in:
det-fys 2024-12-30 19:08:36 +01:00
parent 5235189966
commit b5d2e5c506
2 changed files with 2 additions and 2 deletions

2
lex.c
View File

@ -160,7 +160,7 @@ void lex_next(struct lexer *lex) {
return;
}
struct token *lex_token(struct lexer *lex) {
const struct token *lex_token(const struct lexer *lex) {
return &lex->tok;
}

2
lex.h
View File

@ -76,7 +76,7 @@ void lex_next(struct lexer *lex);
* @param lex Lexer
* @return Adresa na token
*/
struct token *lex_token(struct lexer *lex);
const struct token *lex_token(const struct lexer *lex);
/**
* @brief Vypíše informaci o aktuální pozici ve vstupním řetězci