many

fun <S, A> many(parser: Parser<S, A>): Parser<S, List<A>>

Creates a parser that matches zero or more occurrences of the given parser.

Return

A parser that matches zero or more occurrences of the given parser.

Parameters

parser

The parser to match zero or more times.