- ahead<TToken, TOptions, TValue>(p: Matcher<TToken, TOptions, TValue>): Matcher<TToken, TOptions, TValue>
-
Parameters
-
p: Matcher<TToken, TOptions, TValue>
Returns Matcher<TToken, TOptions, TValue>
- ahead<TToken, TOptions, TValue>(p: Parser<TToken, TOptions, TValue>): Parser<TToken, TOptions, TValue>
-
Parameters
-
p: Parser<TToken, TOptions, TValue>
Returns Parser<TToken, TOptions, TValue>
This overload makes a Matcher that acts like a given one but doesn't consume input.