ledisdb/vendor/github.com/yuin/gopher-lua/ast/token.go

23 lines
272 B
Go
Raw Permalink Normal View History

2017-04-15 16:51:03 +03:00
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)
}