passing first test

This commit is contained in:
bronku 2025-11-21 18:08:06 +01:00
parent 1ce662294b
commit 9c493f543a
3 changed files with 19 additions and 11 deletions

View file

@ -22,7 +22,7 @@ void dump_tokens(Scanner &scanner)
std::cout << Parser::symbol_name(static_cast<kind>(tok));
if (tok == Parser::token::TOK_WORD)
if (tok == Parser::token::TOK_IDENTIFIER || tok == Parser::token::TOK_NUMBER || tok == Parser::token::TOK_STRING)
{
std::cout << " " << lval.as<std::string>();
}