Module combinator

Source

Traits§

ParseError
Represent a parser error. This type of error ca be recoverable or not and implements conversion to recoverable / non-recoverable instance.

Functions§

choice
Tries to apply the list of parser until one of them succeeds. Typically, this should be recoverable
non_recover
Makes an error non recoverable.
one_or_more
Consumes one or more instances of the provided parser.
optional
Try to consume one instances of the provided parser.
recover
Makes an error recoverable but does not reset cursor.
zero_or_more
Consumes zero or more instances of the provided parser.

Type Aliases§

ParseFunc
A parser func.