passing first test
This commit is contained in:
parent
1ce662294b
commit
9c493f543a
3 changed files with 19 additions and 11 deletions
|
|
@ -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>();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue