From 9b1786213591691b8cb41ec06ada111af11c30a0 Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Sun, 19 Dec 2021 16:30:03 -0500 Subject: [PATCH] setup: print token with loc on BOSON_STAGE lex --- src/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setup.c b/src/setup.c index 8b4ca25..c8d26d3 100644 --- a/src/setup.c +++ b/src/setup.c @@ -127,7 +127,7 @@ setup(int argc, char **argv) info("printing out tokens"); struct token token = {0}; while (lex(&lexer, &token) != T_EOF) { - info("token: %s", token_str(&token)); + info("%s: %s", loc_str(&token.loc), token_str(&token)); token_finish(&token); } lexer_finish(&lexer); -- 2.45.2