lexer

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 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 Lexer

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

Lexer represents the lexer and contains the source input and internal state

func New

func New(input string) *Lexer

New returns a new Lexer

func (*Lexer) NextToken

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

NextToken returns the next token read from the input stream

Jump to

Keyboard shortcuts

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