scanner

package
v1.8.14 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 8 Imported by: 1

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