lexer

package
v0.0.0-...-491e816 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: MIT Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lexer

type Lexer struct {
	Output chan lingo.Lexeme
	Errors chan error

	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(name string, r io.Reader) *Lexer

func (*Lexer) Reset

func (l *Lexer) Reset(r io.Reader)

Reset resets the buffers. It creates a new Output and Error channel

func (*Lexer) Run

func (l *Lexer) Run()

Jump to

Keyboard shortcuts

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