token

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category int
const (
	Operator Category = iota
	None
)

type Kind

type Kind int
const (
	Plus Kind = iota
	Minus
	Div
	Mul
	Mod
	Pipe
	LParen
	RParen
	Integer
	Identifier
	Assignment
	NewLine
	TernaryStart
	TernarySep
	EOF
	Invalid
)

func (Kind) String

func (k Kind) String() (s string)

type Token

type Token struct {
	Kind    Kind
	Content string
}

func (Token) String

func (t Token) String() string

Jump to

Keyboard shortcuts

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