Make a parser that runs a given parser, passes the matched value into a parser-generating function and then runs the returned parser.
A nonmatch is returned if any of two parsers did not match.
Use condition if there is no dependency on the value of the first parser.
decide combines parser-generating logic into the first parser.
Combine with chainReduce to get a stack-safe chain of arbitrary length.
A parser.
A function that returns a parser based on the input value.
A value from the first parser.
Data object (tokens and options).
Parser position in the tokens array (before the first parser matched).
Parser position in the tokens array (after the first parser matched).
Make a parser that runs a given parser, passes the matched value into a parser-generating function and then runs the returned parser.
A nonmatch is returned if any of two parsers did not match.
Use condition if there is no dependency on the value of the first parser.
decide combines parser-generating logic into the first parser.
Combine with chainReduce to get a stack-safe chain of arbitrary length.