Files
Martin DisibioandGitHub f3033f1791 Remove dependency on cortexproject/cortex/pkg/chunk/cache (#1237)
* Fork cortex/pkg/chunk/cache, remove dependency

* lint
2022-01-26 10:54:58 -05:00

23 lines
272 B
Go

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("<type:%v, str:%v>", self.Name, self.Str)
}