scanner

package
v0.0.0-...-f9c27df Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT 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