lexer

package
v0.0.0-...-2577f20 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 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
}

func New

func New(in string) *Lexer

func (*Lexer) CurrentPosition

func (l *Lexer) CurrentPosition() int

CurrentPosition returns l.position

func (*Lexer) ErrorLine

func (l *Lexer) ErrorLine(pos int) (int, int, string)

ErrorLine (pos) returns lineNum, column, errorLine

func (*Lexer) NextToken

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

func (*Lexer) Rewind

func (l *Lexer) Rewind(pos int)

Jump to

Keyboard shortcuts

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