scanner

package
v0.0.0-...-0394936 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Position

type Position struct {
	Line, Column int
}

func (Position) String

func (p Position) String() string

type Scanner

type Scanner struct {
	bufio.Scanner
	Position Position
}

func NewScanner

func NewScanner(rd io.Reader) *Scanner

func (*Scanner) End

func (sc *Scanner) End() bool

func (*Scanner) Next

func (sc *Scanner) Next() rune

func (*Scanner) NextEscaped

func (sc *Scanner) NextEscaped() rune

func (*Scanner) Peek

func (sc *Scanner) Peek() rune

func (Scanner) PeekEscaped

func (sc Scanner) PeekEscaped() rune

func (*Scanner) ReadLine

func (sc *Scanner) ReadLine() string

func (*Scanner) ReadUntil

func (sc *Scanner) ReadUntil(until func(rune) bool) string

func (*Scanner) ReadWord

func (sc *Scanner) ReadWord() string

Jump to

Keyboard shortcuts

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