lexer

package
v0.0.0-...-fdc08fd Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lexer

type Lexer struct {
	// contains filtered or unexported fields
}

@current - the current position in the text

@text - the text we want to lex

func New

func New(text string) *Lexer

func (*Lexer) Lex

func (l *Lexer) Lex() ([]tokens.TokenInterface[any], error)

Jump to

Keyboard shortcuts

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