Documentation

Overview

Package token provides generated internal tokenizing functions for DOT parsing.

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

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
)

Source Files