This commit is contained in:
parent
9f807afe1c
commit
def39d9112
@ -64,7 +64,7 @@ type Token struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t Token) String() string {
|
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 {
|
func makeToken(tt TokenType, lexeme string, lit interface{}, line, column int) *Token {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user