token

package
v0.0.0-...-dcb838f Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2017 License: BSD-3-Clause Imports: 1 Imported by: 2

Documentation

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 (this 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 (this TokenMap) Id(tok Type) string

func (TokenMap) StringType

func (this TokenMap) StringType(typ Type) string

func (TokenMap) TokenString

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

func (TokenMap) Type

func (this TokenMap) Type(tok string) Type

type Type

type Type int
const (
	INVALID Type = iota
	EOF
)

Jump to

Keyboard shortcuts

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