aboutsummaryrefslogtreecommitdiff
path: root/asm/lexer.cpp
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-04-15 16:31:07 +0630
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-04-15 16:31:07 +0630
commitc748ed8386bc8fd9f3795a02330e07095222ff68 (patch)
treef291e57e324ef481b8a47ec249c5fa86df118e6a /asm/lexer.cpp
parent83faf86312f10964fa607d07c10ea6a7a103dd59 (diff)
downloadovm-c748ed8386bc8fd9f3795a02330e07095222ff68.tar.gz
ovm-c748ed8386bc8fd9f3795a02330e07095222ff68.tar.bz2
ovm-c748ed8386bc8fd9f3795a02330e07095222ff68.zip
Changed output schema for printing tokens
Diffstat (limited to 'asm/lexer.cpp')
-rw-r--r--asm/lexer.cpp4
1 files changed, 2 insertions, 2 deletions
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<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()