tokenizer

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: BSD-3-Clause Imports: 2 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 {
	Text string
	Type TokenType
}

func Tokenize

func Tokenize(str string) []Token

func (Token) IsEmpty

func (t Token) IsEmpty() bool

type TokenType

type TokenType uint8
const (
	Null TokenType = iota
	Digit
	Letter
	Other
)

Jump to

Keyboard shortcuts

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