Documentation ¶
Index ¶
- Variables
- func AnyRune(in string) (rune, string, error)
- type Mapper
- type Parser
- func AllRunes(valid ...rune) Parser[[]rune, string]
- func AnyOfRune(valid ...rune) Parser[rune, string]
- func DropResult[T, U any](parser Parser[T, U]) Parser[T, U]
- func ExpectRune(expect rune) Parser[rune, string]
- func Not[T any](parser Parser[T, T]) Parser[T, T]
- func Or[T, U any](parsers ...Parser[T, U]) Parser[T, U]
- func ParseUntilPredicateSatisfied[T, U any](parser Parser[T, U], predicate func(in U) bool) Parser[[]T, U]
- func ParserMap[T, U, V any](parser Parser[T, U], mapper Mapper[V, T]) Parser[V, U]
- func RuneRange(lower, upper rune) Parser[rune, string]
- func Sequence[T, U any](parsers ...Parser[T, U]) Parser[[]T, U]
- func TagAsRuneSlice(tag string) Parser[[]rune, string]
- func TagAsString(tag string) Parser[string, string]
- func TakeAtLeast[T, U any](num int, parser Parser[T, U]) Parser[[]T, U]
- func TakeBetween[T, U any](min, max int, parser Parser[T, U]) Parser[[]T, U]
- func TakeExactly[T, U any](num int, parser Parser[T, U]) Parser[[]T, U]
- func TakeOneOrMore[T, U any](parser Parser[T, U]) Parser[[]T, U]
- func TakeRuneUntil(r rune) Parser[[]rune, string]
- func TakeZeroOrMore[T, U any](parser Parser[T, U]) Parser[[]T, U]
Constants ¶
This section is empty.
Variables ¶
View Source
var Alpha = Or(Lowercase, Uppercase)
View Source
var Alphanumeric = Or(Alpha, Digit)
View Source
var Digit = RuneRange('0', '9')
View Source
var HexLetters = Or(RuneRange('a', 'f'), RuneRange('A', 'F'))
View Source
var Hexadecimal = Or(Digit, HexLetters)
View Source
var Lowercase = RuneRange('a', 'z')
View Source
var Uppercase = RuneRange('A', 'Z')
View Source
var Whitespace = AnyOfRune(' ', '\t', '\r', '\n', '\v', '\f')
Functions ¶
Types ¶
type Parser ¶
func DropResult ¶ added in v0.1.4
func ParseUntilPredicateSatisfied ¶ added in v0.1.3
func TakeOneOrMore ¶
func TakeZeroOrMore ¶
Click to show internal directories.
Click to hide internal directories.