Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 851 Bytes

prsc.starconsumed.md

File metadata and controls

26 lines (15 loc) · 851 Bytes

Home > prsc > starConsumed

starConsumed() function

Creates a Parser that tries to apply the given parser zero or more times in sequence. Values for successful matches are discarded. Once the inner parser no longer matches, success is returned at the offset reached.

If the inner parser returns a fatal failure, the error is returned as-is.

Signature:

export declare function starConsumed<T>(parser: Parser<T>): Parser<void>;

Parameters

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

Returns:

Parser<void>