scanner

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 9 Imported by: 2

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