php-parser/scanner/token.go

20 lines
287 B
Go

package scanner
import (
"github.com/z7zmey/php-parser/meta"
)
// Token value returned by lexer
type Token struct {
Value string
Meta meta.Collection
StartLine int
EndLine int
StartPos int
EndPos int
}
func (t *Token) String() string {
return string(t.Value)
}