token

package
v0.0.0-...-5c92d4a Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2015 License: GPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Position

type Position struct {
	File  string
	Line  int
	Start int
	End   int
}

func (Position) String

func (p Position) String() string

type Token

type Token struct {
	Typ Type
	Pos Position
	Val string
}

func (Token) String

func (t Token) String() string

type Type

type Type int
const (
	Error Type = iota
	Comment
	LeftPromise
	RightPromise
	PromiseName
	LeftArg
	Argument
	RightArg
	LeftGetter
	GetterType
	GetterSeparator
	GetterValue
	RightGetter
	EOF
)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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