token

package
v0.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2018 License: MIT, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidStartMarkerErr = fmt.Errorf("invalid start marker")
View Source
var UnexpectedEOFErr = fmt.Errorf("unexpected end of file")

Functions

This section is empty.

Types

type T

type T struct {
	Sym *parsing.Scanner
}

func NewT

func NewT(r io.Reader) *T

func (*T) AtEnd

func (t *T) AtEnd() bool

func (*T) Bytes

func (t *T) Bytes() []byte

func (*T) EatSpace

func (t *T) EatSpace()

func (*T) NextRaw

func (t *T) NextRaw() ([]byte, bool)

func (*T) NextText

func (t *T) NextText() string

func (*T) ParseFloat64

func (t *T) ParseFloat64() (float64, error)

func (*T) ParseMultiPoint

func (t *T) ParseMultiPoint() (pts geom.MultiPoint, err error)

func (*T) ParsePoint

func (t *T) ParsePoint() (*geom.Point, error)

func (*T) Peek

func (t *T) Peek() byte

func (*T) PeekMatch

func (t *T) PeekMatch(syms ...byte) bool

func (*T) Scan

func (t *T) Scan() bool

func (*T) ScanTill

func (t *T) ScanTill(sym byte) (contents []byte)

func (*T) Symbol

func (t *T) Symbol() byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL