This commit is contained in:
@@ -64,7 +64,7 @@ type Token struct {
|
||||
}
|
||||
|
||||
func (t Token) String() string {
|
||||
return fmt.Sprintf("%v", t)
|
||||
return fmt.Sprintf("%s\t%s\t%s", t.tokenType, t.lexeme, t.literal)
|
||||
}
|
||||
|
||||
func makeToken(tt TokenType, lexeme string, lit interface{}, line, column int) *Token {
|
||||
|
Reference in New Issue
Block a user