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