lexer

package
v0.0.0-...-5abede8 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 2 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
}

Lexer is used for lexing the input, which results in producing tokens that will later be consumed by the parser (console / interactive mode / repl / shell)

func NewLexer

func NewLexer(input string) *Lexer

NewLexer initializes a new lexer type

func (*Lexer) NextToken

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

NextToken goes through the input string and extracts the tokens from it

Jump to

Keyboard shortcuts

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