Match succeeded. Calls supply.
Match succeeded, but pass the data directly instead of calling supply. Useful for altering existing matches.
Types of the captured values.
Get the base match struct, without capture data.
Assign a slice of the capture output.
Number of source elements consumed.
Check if the match succeeded.
Get the data of the match. Throws ParserException if the match has failed.
Match failed.
Additional data added by a specific matcher function.
Result of the supply function.
If **not null**, the match failed with this message. Empty, but non-null, strings also count as successful matches. Use the Match directly as a boolean to see.
Source matched by the result. In case of failure, this is an empty range, but matched.source can still be used, and will contain the source range starting at the point of the match start.
Input range used by the parser.
Function supplying user data such as tokens.
Optional types for additional values to hold within the match, used to add result data specific to a matcher. If provided, the match can be implicitly casted to the original match type.
Result of the match.