diff --git a/src/token/type.hpp b/src/token/type.hpp index 48b0d7e..b92116d 100644 --- a/src/token/type.hpp +++ b/src/token/type.hpp @@ -9,7 +9,7 @@ namespace token { // X-macro list of token types and their string representations #define TOKEN_LIST \ X(ILLEGAL, "ILLEGAL") \ - X(EOF_, "EOF") \ + X(END_OF_FILE, "EOF") \ X(IDENT, "IDENT") \ X(INT, "INT") \ X(ASSIGN, "=") \ diff --git a/test/lexer.cpp b/test/lexer.cpp index 06bef4d..36521e4 100644 --- a/test/lexer.cpp +++ b/test/lexer.cpp @@ -24,7 +24,7 @@ TEST_CASE("next token") { {token::type::RBRACE, "}"}, {token::type::COMMA, ","}, {token::type::SEMICOLON, ";"}, - {token::type::EOF_, ""}, + {token::type::END_OF_FILE, ""}, }; for (const auto& t : tests) {