lexer

package
v0.0.0-...-43a95db Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 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 is fed the program to be interpreted and reads over the characters one at a time returning tokens for each character

func New

func New(input string) *Lexer

New will create a Lexer to turn source code into tokens

func (*Lexer) NextToken

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

NextToken will return the next token in the input

Jump to

Keyboard shortcuts

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