Changed output schema for printing tokens

This commit is contained in:
2024-04-15 16:31:07 +06:30
parent 83faf86312
commit c748ed8386

View File

@@ -421,8 +421,8 @@ lerr_t tokenise_buffer(string_view source, std::vector<token_t *> &tokens)
std::ostream &operator<<(std::ostream &os, token_t &t)
{
return os << "TOKEN[" << token_type_as_cstr(t.type) << "(`" << t.content
<< "`)@" << t.line << ", " << t.column << "]";
return os << token_type_as_cstr(t.type) << "(`" << t.content << "`)@"
<< t.line << ", " << t.column;
}
token_t::token_t()