parser

package
v0.0.0-...-b44ac9e Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAlpha

func IsAlpha(c byte) bool

func IsDigit

func IsDigit(c byte) bool

func IsFirst

func IsFirst(c byte) bool

func IsLetter

func IsLetter(c byte) bool

func IsLower

func IsLower(c byte) bool

func IsSpace

func IsSpace(c byte) bool

func IsUpper

func IsUpper(c byte) bool

func ParseChar

func ParseChar(r []byte) (c rune, l int)

func ParseDec

func ParseDec(r []byte, L int) (i int64, l int)

func ParseFloat

func ParseFloat(r []byte) (f float64, l int)

func ParseHex

func ParseHex(r []byte, L int) (i int64, l int)

func ParseInt

func ParseInt(r []byte) (i int64, l int)

func ParseOct

func ParseOct(r []byte, L int) (i int64, l int)

Types

type Pattern

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

func (*Pattern) Add

func (p *Pattern) Add(f func([]byte) (interface{}, int))

func (*Pattern) AddString

func (p *Pattern) AddString(s string)

func (*Pattern) NewScanner

func (p *Pattern) NewScanner(s []byte, t bool) *Scanner

type Scanner

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

func (*Scanner) Over

func (s *Scanner) Over() bool

func (*Scanner) Scan

func (s *Scanner) Scan() (interface{}, int, error)

func (*Scanner) Skip

func (s *Scanner) Skip()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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