tokens

package
v0.0.0-...-aa934f5 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Type    TokenType
	Literal interface{}
}

func NewToken

func NewToken(Type TokenType, Literal interface{}) Token

func (Token) String

func (t Token) String() string

type TokenType

type TokenType int
const (

	// One or two character tokens.
	Bang TokenType = iota
	BangBang
	BangBangBang
	Question
	QuestionBang
	Period
	Dot

	// Literals
	BangStr
	Plain
)

Jump to

Keyboard shortcuts

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