From c109f142b680061161c6db63dd0f15b1add6fe13 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Sun, 25 Jun 2023 10:45:11 -0400 Subject: [PATCH] improve logging --- lexer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexer.go b/lexer.go index b12e53d..e206f6a 100644 --- a/lexer.go +++ b/lexer.go @@ -103,7 +103,7 @@ func (l *Lexer) acceptRun(valid string) { func (l *Lexer) emit(t ItemType) { i := Item{t, l.input[l.start:l.pos]} - log.Printf("emitting Item: %#+v\n", i) + log.Printf("emitting Item: %s\n", i.String()) l.items <- i l.start = l.pos }