lexer

package
v0.0.0-...-8bbaf59 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error string
const (
	UNEXPECTED_CHARACTER Error = "unexpected character"
	UNTERMINATED_STRING  Error = "unterminated string"
)

type ErrorHandler

type ErrorHandler func(error)

type Lexer

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

func New

func New(input string, eh ErrorHandler) *Lexer

func (*Lexer) Next

func (l *Lexer) Next() token.Token

Jump to

Keyboard shortcuts

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