greedy

fun <S, A> greedy(parser: Parser<S, A>): Parser<S, List<A>>

Creates a parser that matches the longest sequence of matches of the given parser.

Return

A parser that matches the longest sequence of matches of the given parser.

Parameters

parser

The parser to match greedily.