lexer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: MIT Imports: 1 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 represents the lexical analysis component of the interpreter

func New

func New(input string) *Lexer

New creates a new lexer instance

func (*Lexer) NextToken

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

NextToken checks the current token being processed and continues on to the next one

Jump to

Keyboard shortcuts

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