Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 827 Bytes

prsc.streamingstar.md

File metadata and controls

24 lines (14 loc) · 827 Bytes

Home > prsc > streamingStar

streamingStar() function

Creates a StreamingParser that tries to apply the given StreamingParser zero or more times in sequence. Values produced during each iteration are only yielded whenever the inner parser matches successfully.

Signature:

export declare function streamingStar<T>(parser: StreamingParser<T>): StreamingParser<T>;

Parameters

Parameter Type Description
parser StreamingParser<T> StreamingParser to apply repeatedly

Returns:

StreamingParser<T>