scanner

package
v0.0.0-...-c04ea6e Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpressiveScanner

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

ExpressiveScanner is a lexical analyzer for expressive

func (*ExpressiveScanner) Init

func (scanner *ExpressiveScanner) Init(input input.Input)

Init initializes scanner, setting current string buffer to empty string

func (*ExpressiveScanner) Next

func (scanner *ExpressiveScanner) Next() *token.Token

Next returns the next valid token, or ILLEGAL if parsing failed

type MockScanner

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

func (*MockScanner) Init

func (scanner *MockScanner) Init(toks []*token.Token)

func (*MockScanner) Next

func (scanner *MockScanner) Next() *token.Token

type Scanner

type Scanner interface {
	Next() *token.Token
}

Scanner interface

Jump to

Keyboard shortcuts

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