fixed token dump

This commit is contained in:
bronku 2025-11-20 13:16:51 +01:00
parent 660306f6a5
commit 36396e97e9
2 changed files with 6 additions and 1 deletions

View file

@ -38,4 +38,7 @@ clean:
run: $(TARGET)
$(TARGET)
run_lexer: $(TARGET)
$(TARGET) -l
.PHONY: clean run

View file

@ -19,9 +19,11 @@ void dump_tokens(Elite::ParserCtx &ctx)
<< ", Location: " << tok.location
<< '\n';
if (tok.kind() == yy::Parser::token::END)
if (tok.kind() == yy::Parser::symbol_kind::S_YYEOF)
{
break;
}
}
}
int main(int argc, char *argv[])