collectUntil

fun collectUntil(matchFn: (Token) -> Boolean): Parser<List<Token>>

Collect all tokens from current till any one of them matches the given function.