chain1

inline fun <T, S> ParserState.chain1(crossinline p: Parser<T>, crossinline separator: Parser<S>): Chain<T, S>

Parses one or more instances of p, separated by separator, and returns the elements with their respective separators.


inline fun <T, S> chain1(crossinline p: Parser<T>, crossinline separator: Parser<S>): ParserState.() -> Chain<T, S>

Creates a ParserState.chain1 parser.