zeus_lexer

package
v0.0.0-...-1ca21fd Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Word             = iota
	Punctuation      = iota
	Quotation        = iota
	Apostrophe       = iota
	Comma            = iota
	Number           = iota
	RightParenthesis = iota
	LeftParenthesis  = iota
	Symbol           = iota
	ForwardSlash     = iota
	Colon            = iota
	Abbreviation     = iota
	HTMLTagOpen      = iota
	HTMLTagClose     = iota
	Unknown          = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Lexer

type Lexer struct {
	Input    string
	Position int
}

func NewLexer

func NewLexer(input string) *Lexer

func (*Lexer) NextToken

func (l *Lexer) NextToken() Token

type Token

type Token struct {
	Type  TokenTyping
	Value string
}

type TokenTyping

type TokenTyping int

Jump to

Keyboard shortcuts

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