lexer

package
v0.0.0-...-cad9b24 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 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 Collector

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

func (*Collector) Collect

func (c *Collector) Collect(t token.Token)

func (*Collector) Result

func (c *Collector) Result() []token.Token

type Lexer

type Lexer struct {
	Collector token.TokenCollector
	// contains filtered or unexported fields
}

func New

func New(filename string, source string) *Lexer

func (*Lexer) NextToken

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

func (*Lexer) RestoreState

func (l *Lexer) RestoreState()

func (*Lexer) Run

func (l *Lexer) Run() []token.Token

func (*Lexer) SaveState

func (l *Lexer) SaveState()

Jump to

Keyboard shortcuts

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