scanner

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: ISC 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 {
	File   string    // file being read (for error messages only)
	Reader io.Reader // reader to scan from
	Werror io.Writer // where to output non-fatal errors
	// contains filtered or unexported fields
}

Scanner gathers information and methods for scanning frundis files.

func (*Scanner) Init

func (s *Scanner) Init()

Init initializes the Scanner.

func (*Scanner) Scan

func (s *Scanner) Scan() (tok token.Token, line int, lit string, err error)

Scan returns next token, the line of source where it starts, and a string.

Jump to

Keyboard shortcuts

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