Expand description
Combinators which take one or more parsers and attempts to parse successfully with at least one of them.
Structs§
Traits§
- ChoiceParser 
- ChoiceParserrepresents a parser which may parse one of several different choices depending on the input.
Functions§
- choice
- Takes a tuple, a slice or an array of parsers and tries to apply them each in order. Fails if all the parsers fails or if an applied parser consumes input before failing.
- optional
- Parses parserand outputsSome(value)if it succeeds,Noneif it fails without consuming any input. Fails ifparserfails after having committed some input.
- or
- Equivalent to p1.or(p2).