- middle<TToken, TOptions, TValueA, TValueB, TValueC>(pa: Matcher<TToken, TOptions, TValueA>, pb: Matcher<TToken, TOptions, TValueB>, pc: Matcher<TToken, TOptions, TValueC>): Matcher<TToken, TOptions, TValueB>
-
Type Parameters
-
TToken
-
TOptions
-
TValueA
-
TValueB
-
TValueC
Parameters
-
pa: Matcher<TToken, TOptions, TValueA>
-
pb: Matcher<TToken, TOptions, TValueB>
-
pc: Matcher<TToken, TOptions, TValueC>
Returns Matcher<TToken, TOptions, TValueB>
- middle<TToken, TOptions, TValueA, TValueB, TValueC>(pa: Parser<TToken, TOptions, TValueA>, pb: Parser<TToken, TOptions, TValueB>, pc: Parser<TToken, TOptions, TValueC>): Parser<TToken, TOptions, TValueB>
-
Type Parameters
-
TToken
-
TOptions
-
TValueA
-
TValueB
-
TValueC
Parameters
-
pa: Parser<TToken, TOptions, TValueA>
-
pb: Parser<TToken, TOptions, TValueB>
-
pc: Parser<TToken, TOptions, TValueC>
Returns Parser<TToken, TOptions, TValueB>
This overload makes a Matcher that applies three matchers one after another and returns the middle result.
Implementation is based on abc.