scanner

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

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

Scanner is a lexical scanner.

func MustNewScanner

func MustNewScanner(filename string, src interface{}) *Scanner

MustNewScanner returns a new scanner for the given filename and data.

func NewScanner

func NewScanner(filename string, src interface{}) (*Scanner, error)

NewScanner returns a new scanner for the given filename and data.

func (*Scanner) NextToken

func (s *Scanner) NextToken() (token.Token, error)

NextToken returns the next token.

Jump to

Keyboard shortcuts

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