until

fun <S, T> Parser<S>.until(next: Parser<T>): Parser<Iterable<S>>

Returns a parser that consumes until another parser is successful

Parameters

next

The terminal parser. It will not consume input on success