bytes

package
v0.0.0-...-e60f6ae Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2025 License: Unlicense Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchString

func MatchString(s string) gigaparsec.Parser[byte, string]

func Regexp

func Regexp(pattern string) gigaparsec.Parser[byte, string]

func Token

func Token[Out, WSOut any](whitespace gigaparsec.Parser[byte, WSOut]) func(p gigaparsec.Parser[byte, Out]) gigaparsec.Parser[byte, Out]

Types

type RuneReader

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

RuneReader is an io.RuneReader backed by a Cursor, for compatibility with the regexp package.

func NewRuneReader

func NewRuneReader(state gigaparsec.State[byte]) *RuneReader

func (*RuneReader) Count

func (rr *RuneReader) Count() uint64

func (*RuneReader) Error

func (rr *RuneReader) Error() error

func (*RuneReader) ReadRune

func (rr *RuneReader) ReadRune() (r rune, size int, err error)

func (*RuneReader) State

func (rr *RuneReader) State() gigaparsec.State[byte]

Jump to

Keyboard shortcuts

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