package
0.17.0
Repository: https://github.com/conflowio/parsley.git
Documentation: pkg.go.dev

# Functions

Any tries all the given parsers independently and merges the results.
Choice tries to apply the given parsers until one of them succeeds.
Many applies the parser zero or more times.
Many1 applies the parser one or more times.
Memoize handles result cache and curtailing left recursion.
Optional returns the parser's matches and an empty match.
ReturnSingle returns the node, if the sequence parser only matched a single node.
Sentence matches the given parser until the end of input.
SepBy applies the given value parser zero or more times separated by the separator parser.
SepBy1 applies the given value parser one or more times separated by the separator parser.
Seq tries to apply all parsers after each other and returns with all combinations of the results.
SeqFirstOrAll tries to apply all parsers after each other and returns with all combinations of the results.
SeqOf tries to apply all parsers after each other and returns with all combinations of the results.
SeqTry tries to apply all parsers after each other and returns with all combinations of the results.
Single will change the result of p if it returns with a non terminal node with only one child.
SuppressError removes the error from the parser result.

# Structs

Sequence is a recursive and-type combinator.

# Interfaces

SeqResultHandler is an interface to handle the result of a Sequence parser Make sure to make a copy of the nodes slice.

# Type aliases

SeqResultHandlerFunc is a function to handle the result of a Sequence parser Make sure to make a copy of the nodes slice.