- sepBy1<TToken, TOptions, TValue, TSep>(pValue: Parser<TToken, TOptions, TValue>, pSep: Parser<TToken, TOptions, TSep>): Parser<TToken, TOptions, [TValue, ...TValue[]]>
-
Type Parameters
-
TToken
-
TOptions
-
TValue
-
TSep
Parameters
-
pValue: Parser<TToken, TOptions, TValue>
-
pSep: Parser<TToken, TOptions, TSep>
Returns Parser<TToken, TOptions, [TValue, ...TValue[]]>
Make a parser that matches 1 or more values interleaved with separators.
A nonmatch is returned if no single value was matched.
Implementation is based on ab, many and right.