renamed EOF_ to END_OF_FILE

This commit is contained in:
Karma Riuk
2025-06-29 12:33:09 +02:00
parent 1c928616a4
commit ca05c3577a
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ namespace token {
// X-macro list of token types and their string representations // X-macro list of token types and their string representations
#define TOKEN_LIST \ #define TOKEN_LIST \
X(ILLEGAL, "ILLEGAL") \ X(ILLEGAL, "ILLEGAL") \
X(EOF_, "EOF") \ X(END_OF_FILE, "EOF") \
X(IDENT, "IDENT") \ X(IDENT, "IDENT") \
X(INT, "INT") \ X(INT, "INT") \
X(ASSIGN, "=") \ X(ASSIGN, "=") \

View File

@ -24,7 +24,7 @@ TEST_CASE("next token") {
{token::type::RBRACE, "}"}, {token::type::RBRACE, "}"},
{token::type::COMMA, ","}, {token::type::COMMA, ","},
{token::type::SEMICOLON, ";"}, {token::type::SEMICOLON, ";"},
{token::type::EOF_, ""}, {token::type::END_OF_FILE, ""},
}; };
for (const auto& t : tests) { for (const auto& t : tests) {