package ast import ( "fmt" ) type Position struct { Source string Line int Column int } type Token struct { Type int Name string Str string Pos Position } func (self *Token) String() string { return fmt.Sprintf("", self.Name, self.Str) }