lexer

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 2 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lexer

type Lexer struct {
	FSM *fsm.FSM
	// contains filtered or unexported fields
}

Lexer is used for tokenizing programs

func New

func New(input string) *Lexer

New initializes a new lexer with input string

func (*Lexer) NextToken

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

NextToken makes lexer tokenize next character(s)

Jump to

Keyboard shortcuts

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