Type alias Matcher<TToken, TOptions, TValue>
Matcher
<TToken, TOptions, TValue>: ((data
: Data<TToken, TOptions>, i
: number) => Match<TValue>)
Type declaration
-
- (data: Data<TToken, TOptions>, i: number): Match<TValue>
-
Parameters
-
data: Data<TToken, TOptions>
-
i: number
Returns Match<TValue>
Special case of Parser function. Accepts Data and token position, always returns a Match.