token

package
v0.0.0-...-41221c5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Boolean

type Boolean struct {
	Offset int
	Value  bool
}

func (Boolean) VisitToken

func (t Boolean) VisitToken(v TokenVisitor)

type Identifier

type Identifier struct {
	Offset int
	Value  string
}

func (Identifier) VisitToken

func (t Identifier) VisitToken(v TokenVisitor)

type Keyword

type Keyword struct {
	Offset int
	Value  string
}

func (Keyword) VisitToken

func (t Keyword) VisitToken(v TokenVisitor)

type Newline

type Newline struct {
	Offset int
}

type Null

type Null struct {
	Offset int
}

func (Null) VisitToken

func (t Null) VisitToken(v TokenVisitor)

type Number

type Number struct {
	Offset int
	Value  float64
}

func (Number) VisitToken

func (t Number) VisitToken(v TokenVisitor)

type Punctuator

type Punctuator struct {
	Offset int
	Value  string
}

func (Punctuator) VisitToken

func (t Punctuator) VisitToken(v TokenVisitor)

type String

type String struct {
	Offset int
	Value  string
}

func (String) VisitToken

func (t String) VisitToken(v TokenVisitor)

type Template

type Template struct {
	Offset int
	Value  string
}

type TemplateHead

type TemplateHead struct {
	Offset int
	Value  string
}

type TemplateMiddle

type TemplateMiddle struct {
	Offset int
	Value  string
}

type TemplateTail

type TemplateTail struct {
	Offset int
	Value  string
}

type Token

type Token interface {
	VisitToken(TokenVisitor)
}

type TokenVisitor

type TokenVisitor struct {
	Newline        func(Newline)
	Keyword        func(Keyword)
	Identifier     func(Identifier)
	Punctuator     func(Punctuator)
	Number         func(Number)
	String         func(String)
	Boolean        func(Boolean)
	Null           func(Null)
	Template       func(Template)
	TemplateHead   func(TemplateHead)
	TemplateMiddle func(TemplateMiddle)
	TemplateTail   func(TemplateTail)
}

Jump to

Keyboard shortcuts

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