php-parser/token.go
2017-12-03 18:36:34 +02:00

16 lines
252 B
Go

package main
type token struct {
value []byte
startLine int
endLine int
}
func newToken(value []byte, startLine int, endLine int) token {
return token{value, startLine, endLine}
}
func (t token) String() string {
return string(t.value)
}