parserListOf

fun <S, A : Any, B : Any> parserListOf(parser: Parser<S, A>, separator: Parser<S, B>): Parser<S, List<A>>

Creates a parser that matches a list of parsers separated by separators.

Return

A parser that matches a list of parsers separated by separators.

Parameters

parser

The parser to match.

separator

The parser for the separator.