Back to godoc.org

Package token

v0.7.0
Latest Go to latest
Published: Feb 26, 2020 | License: BSD-3-Clause | Module: gonum.org/v1/gonum

Overview

Package token provides generated internal tokenizing functions for DOT parsing.

Index

Package Files

Variables

var TokMap = TokenMap{
	// contains filtered or unexported fields
}

type Pos

type Pos struct {
	Offset int
	Line   int
	Column int
}

func (Pos) String

func (p Pos) String() string

type Token

type Token struct {
	Type
	Lit []byte
	Pos
}

type TokenMap

type TokenMap struct {
	// contains filtered or unexported fields
}

func (TokenMap) Id

func (m TokenMap) Id(tok Type) string

func (TokenMap) StringType

func (m TokenMap) StringType(typ Type) string

func (TokenMap) TokenString

func (m TokenMap) TokenString(tok *Token) string

func (TokenMap) Type

func (m TokenMap) Type(tok string) Type

type Type

type Type int
const (
	INVALID Type = iota
	EOF
)
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier