lexer

package
v0.0.0-...-93a7d75 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEOF = errors.New("EOF")

ErrEOF #

View Source
var ErrInvalidNumber = errors.New("Invalid number")

ErrInvalidNumber #

Functions

This section is empty.

Types

type Lexer

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

Lexer struct

func FromBytes

func FromBytes(source []byte) *Lexer

FromBytes #

func FromString

func FromString(source string) *Lexer

FromString #

func New

func New(reader io.ReadCloser) (*Lexer, error)

New creates new lexer

func (*Lexer) Next

func (l *Lexer) Next() (*token.Token, error)

Next token

Jump to

Keyboard shortcuts

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