scanner

package
v0.0.0-...-76457cb Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Message string
	Line    int
	Column  int
}

func (*Error) Error

func (err *Error) Error() string

type Mode

type Mode uint
const (
	ScanIgnored Mode = 1 << iota
)

type Scanner

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

func New

func New(src []byte, mode Mode) *Scanner

func (*Scanner) Errors

func (s *Scanner) Errors() []*Error

func (*Scanner) Literal

func (s *Scanner) Literal() string

func (*Scanner) Position

func (s *Scanner) Position() token.Position

func (*Scanner) Scan

func (s *Scanner) Scan() bool

func (*Scanner) StringValue

func (s *Scanner) StringValue() string

func (*Scanner) Token

func (s *Scanner) Token() token.Token

Jump to

Keyboard shortcuts

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