chainl
inline fun <T, S> ParserState.chainl( crossinline p: Parser<T>, crossinline separator: Parser<S>, crossinline combine: (T, T, S) -> T): T
Content copied to clipboard
Parses one or more instances of p, separated by separator, and combines the elements left-to-right using the given combine function.
inline fun <T, S> chainl( crossinline p: Parser<T>, crossinline separator: Parser<S>, crossinline combine: (T, T, S) -> T): ParserState.() -> T
Content copied to clipboard
Creates a ParserState.chainl parser.