Documentation ¶
Index ¶
- func Accumulate[R parser.Reader, A, T any](acc A, f parser.Accumulator[T, A], parsers ...parser.Parser[R, T]) parser.Parser[R, A]
- func AccumulateBytes[R parser.Reader](parsers ...parser.Parser[R, []byte]) parser.Parser[R, []byte]
- func Delimited[R parser.Reader, F, S, T any](first parser.Parser[R, F], second parser.Parser[R, S], ...) parser.Parser[R, S]
- func Pair[R parser.Reader, F, S any](first parser.Parser[R, F], second parser.Parser[R, S]) parser.Parser[R, parser.Pair[F, S]]
- func Preceded[R parser.Reader, F, S any](first parser.Parser[R, F], second parser.Parser[R, S]) parser.Parser[R, S]
- func SeparatedPair[R parser.Reader, F, S, T any](first parser.Parser[R, F], separator parser.Parser[R, T], ...) parser.Parser[R, parser.Pair[F, S]]
- func Terminated[R parser.Reader, F, S any](first parser.Parser[R, F], second parser.Parser[R, S]) parser.Parser[R, F]
- func Tuple[R parser.Reader, T any](parsers ...parser.Parser[R, T]) parser.Parser[R, []T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Accumulate ¶
func Accumulate[R parser.Reader, A, T any]( acc A, f parser.Accumulator[T, A], parsers ...parser.Parser[R, T], ) parser.Parser[R, A]
Accumulate Matches a sequence of parsers and accumulates the results.
func AccumulateBytes ¶
AccumulateBytes Matches a sequence of byte slice parsers and accumulates the results.
func Delimited ¶
func Delimited[R parser.Reader, F, S, T any]( first parser.Parser[R, F], second parser.Parser[R, S], third parser.Parser[R, T], ) parser.Parser[R, S]
Delimited Matches an object from the first parser and discards it, then gets an object from the second parser, and finally matches an object from the third parser and discards it.
func Pair ¶
func Pair[R parser.Reader, F, S any](first parser.Parser[R, F], second parser.Parser[R, S]) parser.Parser[R, parser.Pair[F, S]]
Pair Gets an object from the first parser, then gets another object from the second parser.
func Preceded ¶
func Preceded[R parser.Reader, F, S any](first parser.Parser[R, F], second parser.Parser[R, S]) parser.Parser[R, S]
Preceded Matches an object from the first parser and discards it, then gets an object from the second parser.
func SeparatedPair ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.