From c748ed8386bc8fd9f3795a02330e07095222ff68 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 15 Apr 2024 16:31:07 +0630 Subject: Changed output schema for printing tokens --- asm/lexer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asm') diff --git a/asm/lexer.cpp b/asm/lexer.cpp index 7529eaf..caa1327 100644 --- a/asm/lexer.cpp +++ b/asm/lexer.cpp @@ -421,8 +421,8 @@ lerr_t tokenise_buffer(string_view source, std::vector &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() -- cgit v1.2.3-13-gbd6f