- left<TToken, TOptions, TValueA, TValueB>(pa: Matcher<TToken, TOptions, TValueA>, pb: Matcher<TToken, TOptions, TValueB>): Matcher<TToken, TOptions, TValueA>
-
Type Parameters
-
TToken
-
TOptions
-
TValueA
-
TValueB
Parameters
-
pa: Matcher<TToken, TOptions, TValueA>
-
pb: Matcher<TToken, TOptions, TValueB>
Returns Matcher<TToken, TOptions, TValueA>
- left<TToken, TOptions, TValueA, TValueB>(pa: Parser<TToken, TOptions, TValueA>, pb: Parser<TToken, TOptions, TValueB>): Parser<TToken, TOptions, TValueA>
-
Type Parameters
-
TToken
-
TOptions
-
TValueA
-
TValueB
Parameters
-
pa: Parser<TToken, TOptions, TValueA>
-
pb: Parser<TToken, TOptions, TValueB>
Returns Parser<TToken, TOptions, TValueA>
This overload makes a Matcher that applies two matchers one after another and returns the result from the first one.
Implementation is based on ab.