Home > prsc > starConsumed
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>;
Parameter | Type | Description |
---|---|---|
parser | Parser<T> | Parser to apply repeatedly |
Returns:
Parser<void>