lexer

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MPL-2.0 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 {
	LastToken token.Token // last token for lookback
	// contains filtered or unexported fields
}

func New

func New(input string) *Lexer

func (*Lexer) Errors

func (l *Lexer) Errors() []string

Errors returns lexical errors accumulated while scanning. Meaningful only after the input has been fully consumed (e.g. the parser drove NextToken to EOF). Used by txcl.Validate; ignored by the runtime.

func (*Lexer) NextToken

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

Jump to

Keyboard shortcuts

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