reader

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader interface {
	Next()
	Redo()
	HasNext() bool
	Index() int
	Line() int
	Char() rune
}

func NewStringReader

func NewStringReader(code string) Reader

func NewStringReaderFromFile

func NewStringReaderFromFile(file io.ReadCloser) Reader

type StringReader

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

func (*StringReader) Char

func (s *StringReader) Char() rune

func (*StringReader) HasNext

func (s *StringReader) HasNext() bool

func (*StringReader) Index

func (s *StringReader) Index() int

func (*StringReader) Line

func (s *StringReader) Line() int

func (*StringReader) Next

func (s *StringReader) Next()

func (*StringReader) Redo

func (s *StringReader) Redo()

Jump to

Keyboard shortcuts

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