php-parser/scanner/token.go

18 lines
301 B
Go
Raw Normal View History

package scanner
2017-12-03 18:49:18 +00:00
2018-01-05 15:03:59 +00:00
import (
"github.com/z7zmey/php-parser/comment"
"github.com/z7zmey/php-parser/position"
2018-01-05 15:03:59 +00:00
)
2018-01-11 18:49:00 +00:00
// Token value returned by lexer
2017-12-03 18:49:18 +00:00
type Token struct {
Value string
Position *position.Position
Comments []*comment.Comment
2017-12-03 18:49:18 +00:00
}
func (t *Token) String() string {
2017-12-03 18:49:18 +00:00
return string(t.Value)
}