- sepBy<TToken, TOptions, TValue, TSep>(pValue: Parser<TToken, TOptions, TValue>, pSep: Parser<TToken, TOptions, TSep>): Matcher<TToken, TOptions, TValue[]>
-
Type Parameters
-
TToken
-
TOptions
-
TValue
-
TSep
Parameters
-
pValue: Parser<TToken, TOptions, TValue>
-
pSep: Parser<TToken, TOptions, TSep>
Returns Matcher<TToken, TOptions, TValue[]>
Make a Matcher that matches 0 or more values interleaved with separators.
A match with an empty array is returned if no single value was matched.
Implementation is based on sepBy1, otherwise and emit.