Documentation ¶
Index ¶
- func AssignOption(options []Option, assignable interface{}) bool
- func IsDigit(b byte) bool
- func IsLetter(b byte) bool
- func IsWhiteSpace(b byte) bool
- func MatchFold(target, source []byte, targetOffset, sourceOffset int) bool
- func NewChar(value rune) parsly.Matcher
- func NewCharset(set string, options ...Option) parsly.Matcher
- func NewFragment(value string, options ...Option) parsly.Matcher
- func NewKeyword(value string, options ...Option) parsly.Matcher
- func NewNumber() *number
- func NewQuote(val, escape rune) parsly.Matcher
- func NewSet(set []string, options ...Option) parsly.Matcher
- func NewSpacedFragment(text string, options ...Option) parsly.Matcher
- func NewSpacedSet(texts []string, options ...Option) parsly.Matcher
- type Block
- type Byte
- type ByteQuote
- type Bytes
- type Digit
- type Digits
- type Fragment
- type FragmentFold
- type Fragments
- type FragmentsFold
- type Nop
- type Option
- type Rune
- type RuneQuote
- type Runes
- type SeqBlock
- type Set
- type SetFold
- type SpaceFragmentFold
- type SpaceSetFold
- type SpacedFragment
- type SpacedSet
- type Terminator
- type Whitespace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignOption ¶
AssignOption assign option to supplied assignable
func NewCharset ¶
NewCharset creates a bytes or runes matcher
func NewFragment ¶
NewFragments creates FragmentFold matcher
func NewKeyword ¶ added in v0.3.1
NewKeyword creates Fragment orFragmentFold matcher with non embedded option
func NewSpacedFragment ¶
NewSpaceFragments creates SpaceFragmentFold matcher
Types ¶
type ByteQuote ¶
type ByteQuote struct {
// contains filtered or unexported fields
}
func NewByteQuote ¶
NewByteQuote creates a byte quote
type FragmentFold ¶
type FragmentFold struct {
// contains filtered or unexported fields
}
type Fragments ¶
type Fragments struct {
// contains filtered or unexported fields
}
func NewFragments ¶
NewFragments returns fragments folds
type FragmentsFold ¶
type FragmentsFold struct {
// contains filtered or unexported fields
}
func NewFragmentsFold ¶
func NewFragmentsFold(values ...[]byte) *FragmentsFold
NewFragmentsFold returns fragments folds
type RuneQuote ¶
type RuneQuote struct {
// contains filtered or unexported fields
}
func NewRuneQuote ¶
type SeqBlock ¶
type SeqBlock struct {
// contains filtered or unexported fields
}
func NewSeqBlock ¶
type SpaceFragmentFold ¶
type SpaceFragmentFold struct {
// contains filtered or unexported fields
}
type SpaceSetFold ¶
type SpaceSetFold struct {
// contains filtered or unexported fields
}
type SpacedFragment ¶
type SpacedFragment struct {
// contains filtered or unexported fields
}
SpacedFragment represent space fragment
type SpacedSet ¶
type SpacedSet struct {
// contains filtered or unexported fields
}
SpacedSet represent space fragment
type Terminator ¶
type Terminator struct {
// contains filtered or unexported fields
}
func NewTerminator ¶
func NewTerminator(value byte, inclusive bool) *Terminator
Terminator creates a terminator byte matcher
type Whitespace ¶
type Whitespace struct{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.